1 2004-08-04 Andrew Haley <aph@redhat.com>
3 * java/security/BasicPermission.java: Don't check wildcards.
5 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
6 Michael Koch <konqueror@gmx.de>
8 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
9 * configure.in: Replaced all usages of AC_LINK_FILES by
12 configure: Regenerated.
14 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
15 Michael Koch <konqueror@gmx.de>
17 * acconfig.h: Removed.
18 * Makefile.am: Rename variables for xlib peer to include xlib and
19 gtk_c_headers to gtk_jni_headers.
20 * Makefile.in: Regenerated.
22 2004-08-04 Andrew Haley <aph@redhat.com>
24 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
27 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
29 * configure.in: Eliminate uses of changequote (mostly by quoting []).
30 Replace most top level 'dnl' comments with '#' comments, conforming
31 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
35 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
37 * acinclude.m4: Include no-executables.m4.
38 * aclocal.m4: Rebuild.
39 * configure.in: Convert to the autoconf 2.59 version of
40 of the no-executables hack, and also of the nonstandard CXX
41 hack and the multilibbed CC and CXX hack. Change prerequisite
43 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
44 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
45 testsuite/Makefile.in: Regenerate.
47 2004-08-03 Tom Tromey <tromey@redhat.com>
51 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
53 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
55 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
57 * testsuite/libjava.compile/PR16701.java: New test.
59 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
61 * java/util/Collection.java, java/util/List.java,
62 java/util/Map.java, java/util/Set.java,
63 java/util/SortedMap.java, java/util/SortedSet.java:
64 Added additional exceptions to documentation.
66 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
69 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
70 * configure. Regenerate.
71 * include/win32.h: Explicitly include winsock2.h
72 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
75 2004-07-30 Michael Koch <konqueror@gmx.de>
77 * java/util/zip/GZIPInputStream.java
78 (GZIPInputStream): Increase buffer size to 4k.
79 * java/util/zip/GZIPOutputStream.java
80 (GZIPOutputStream): Likewise.
81 * java/util/zip/Inflater.java
82 (setInput): Merged formating with GNU classpath.
83 * java/util/zip/InflaterInputStream.java
84 (InflaterInputStream): Increase buffer size to 4k.
85 (fill): Throw exception if stream ends early.
86 (read): Merged endless-loop with GNU classpath.
87 (skip): Increase buffer size to 2k.
89 2004-07-30 Michael Koch <konqueror@gmx.de>
91 * gnu/java/awt/EmbeddedWindow.java
92 (addNotify): Use AccessController to allow execution of privileged
95 2004-07-29 Michael Koch <konqueror@gmx.de>
97 * gnu/java/lang/MainThread.java:
98 Explicitely import used classes.
99 (args): Make it type String[].
101 2004-07-29 Dalibor Topic <robilad@kaffe.org>
103 * gnu/java/awt/ComponentDataBlitOp.java,
104 gnu/java/beans/ExplicitBeanInfo.java,
105 gnu/java/beans/IntrospectionIncubator.java,
106 gnu/java/beans/editors/ColorEditor.java,
107 gnu/java/beans/editors/FontEditor.java,
108 gnu/java/beans/editors/NativeBooleanEditor.java,
109 gnu/java/beans/editors/NativeByteEditor.java,
110 gnu/java/beans/editors/NativeDoubleEditor.java,
111 gnu/java/beans/editors/NativeFloatEditor.java,
112 gnu/java/beans/editors/NativeIntEditor.java,
113 gnu/java/beans/editors/NativeLongEditor.java,
114 gnu/java/beans/editors/NativeShortEditor.java,
115 gnu/java/beans/editors/StringEditor.java,
116 gnu/java/io/ClassLoaderObjectInputStream.java,
117 gnu/java/io/decode/Decoder.java,
118 gnu/java/io/encode/Encoder.java,
119 gnu/java/lang/ClassHelper.java,
120 gnu/java/locale/Calendar.java,
121 gnu/java/locale/Calendar_de.java,
122 gnu/java/locale/Calendar_en.java,
123 gnu/java/locale/Calendar_nl.java,
124 gnu/java/locale/LocaleInformation_de.java,
125 gnu/java/locale/LocaleInformation_en.java,
126 gnu/java/locale/LocaleInformation_nl.java:
129 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
131 * README: Remove obsolete info. Update bug URL.
133 * NEWS: Updated with news up to GCC 3.4 release.
135 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
137 * gnu/java/security/action/GetPropertyAction.java (setParameters):
138 Renamed from 'setName'. New 2-argument form with default value.
139 (run): Pass default 'value' parameter to System.getProperty().
140 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
142 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
145 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
147 * configure.in: Check for minimum GTK version 2.4 requirement.
148 * configure: Rebuilt.
150 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
152 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
153 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
155 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
157 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
158 address. Reduce sleep times. Synchronize with target threads before
159 attempting to interrupt them. Don't try to calibrate yeild count,
160 instead, always loop for a fixed time.
161 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
162 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
163 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
164 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
165 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
166 * testsuite/libjava.lang/pr179.java: Likewise.
167 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
168 time. Remove upper bounds check on sleep time.
170 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
172 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
173 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
175 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
177 * java/io/File.java (toURI): Throw RuntimeException, not
179 * java/lang/Runtime.java (exit): Qualify static sleep() call with
180 class name, not instance.
182 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
184 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
185 and gnu/java/security/action/SetAccessibleAction.java.
186 * Makefile.in: Rebuilt.
188 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
190 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
191 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
193 (DECLARE_PRIM_TYPE): Don't declare array vtables.
194 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
195 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
197 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
199 * Makefile.am: Replace jar, rmic and rmiregistry references with
200 gjar, grmic and grmiregistry.
201 * configure.in: Likewise.
202 * Makefile.in: Regenerate.
203 * configure: Likewise.
204 * gcj/Makefile.in: Likewise.
205 * include/Makefile.in: Likewise.
206 * testsuite/Makefile.in: Likewise.
208 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
210 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
211 for privileged getProperty calls.
212 * java/io/ObjectOutputStream.java (getField): No longer static. Use
213 SetAccessibleAction instead of anonymous class for doPrivileged call.
214 (getMethod): Likewise.
215 (setAccessible): New field. PrivilegedAction object to use when
216 calling setAccessible.
217 * java/io/ObjectStreamClass.java (calculateOffsets): Use
218 SetAccessibleAction instead of anonymous class for diPrivileged call.
219 (setFields): Likewise.
220 (getClassUID): Likewise.
221 (findMethod): Likewise.
222 * gnu/java/security/action/GetPropertyAction.java: New class.
223 * gnu/java/security/action/SetAccessibleAction.java: New class.
225 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
227 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
229 * testsuite/libjava.lang/Serialization.java: New test.
230 * testsuite/libjava.lang/Serialization.out: New.
232 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
234 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
235 missed in last commit.
237 2004-07-23 Mark Wielaard <mark@klomp.org>
239 * java/lang/System.java (static): Set http.agent system property when
241 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
242 from system property inside AccessController.doPrivileged() call.
243 (proxyPort): Made package private.
244 (proxyInUse): Likewise.
245 (proxyHost): Likewise.
246 (userAgent): Likewise.
248 2004-07-23 Mark Wielaard <mark@klomp.org>
250 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
253 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
255 * Makefile.am (ordinary_java_source_files): Add
256 DefaultContentHandlerFactory.java.
257 * Makefile.in: Rebuilt.
258 * java/net/URLConnection.java (defaultFactory): New field.
260 (getContentHandler): Renamed from 'setContentHandler'. Try
261 defaultFactory after user-set factory, if any. Search for content
262 handler implementations in gnu.java.net.content, not gnu.gcj.content.
263 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
265 (getLastModified): Implemented.
266 (getPermission): Create file permission here, instead of in
268 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
270 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
272 (getLastModified): Implemented.
273 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
274 Default implementation.
275 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
276 Implement using GdkPixbufDecoder.
278 2004-07-21 Michael Koch <konqueror@gmx.de>
280 * javax/swing/JTextArea.java
281 (setLineWrap): Fire property change event after new value is set.
282 (setTabSize): Likewise.
284 2004-07-21 Michael Koch <konqueror@gmx.de>
286 * javax/swing/JTable.java
287 (autoCreateColumnsFromModel): New field.
288 (autoResizeMode): Likewise.
289 (cellEditor): Likewise.
290 (cellSelectionEnabled): Likewise.
291 (columnModel): Likewise.
292 (dataModel): Likewise.
293 (defaultEditorsByColumnClass): Likewise.
294 (defaultRenderersByColumnClass): Likewise.
295 (editingColumn): Likewise.
296 (editingRow): Likewise.
297 (gridColor): Likewise.
298 (preferredViewportSize): Likewise.
299 (rowHeight): Likewise.
300 (rowMargin): Likewise.
301 (rowSelectionAllowed): Likewise.
302 (selectionBackground): Likewise.
303 (selectionForeground): Likewise.
304 (selectionModel): Likewise.
305 (showHorizontalLines): Likewise.
306 (showVerticalLines): Likewise.
307 (tableHeader): Likewise.
308 (JTable): Implemented.
309 (getColumnModel): Likewise.
310 (getSelectedRow): Likewise.
311 (getSelectionModel): Likewise.
312 (setModel): Likewise.
313 (setSelectionModel): Likewise.
314 (createScrollPaneForTable): New method.
315 (createDefaultDataModel): Likewise.
316 (createDefaultListSelectionModel): Likewise.
317 (getModel): Likewise.
318 (getTableHeader): Likewise.
319 (setTableHeader): Likewise.
320 (getColumnSelectionAllowed): Likewise.
321 (setColumnSelectionAllowed): Likewise.
322 (getRowSelectionAllowed): Likewise.
323 (setRowSelectionAllowed): Likewise.
324 (getAutoResizeMode): Likewise.
325 (setAutoResizeMode): Likewise.
326 (getColumnCount): Likewise.
327 (getRowCount): Likewise.
328 (getCellRenderer): Likewise.
329 * javax/swing/JTree.java
330 (cellRenderer): New field.
331 (editable): Likewise.
332 (rootVisible): Likewise.
333 (showsRootHandles): Likewise.
334 (getModel): New method.
335 (setModel): Likewise.
336 (isEditable): Likewise.
337 (setEditable): Likewise.
338 (isRootVisbile): Likewise.
339 (setRootVisible): Likewise.
340 (getShowsRootHandles): Likewise.
341 (setShowRootHandles): Likewise.
342 (getCellRenderer): Likewise.
343 (setCellRenderer): Likewise.
345 2004-07-21 Michael Koch <konqueror@gmx.de>
347 * javax/swing/JFormattedTextField.java
348 (setDocument): Implemented.
349 * javax/swing/JRootPane.java:
351 * javax/swing/JTable.java
352 (getDefaultRenderer): New method.
353 * javax/swing/JTextField.java
355 (getPreferredSize): Likewise.
356 * javax/swing/JToggleButton.java
357 (getAccessibleContext): Fix javadoc.
358 * javax/swing/JTree.java:
360 * javax/swing/JViewport.java:
363 2004-07-21 David Jee <djee@redhat.com>
365 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
366 Collect all native method declaration at the top.
367 (create): Set the filename filter if necessary.
368 (setDirectory): Call nativeSetDirectory().
369 (setFilenameFilter): Implement.
370 (filenameFilterCallback): New method.
371 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
372 (create): Configure dialog to show hidden files.
373 (filenameFilterCallback): New function.
374 (nativeSetFilenameFilter): New function.
375 (nativeSetDirectory): New function.
377 2004-07-21 Kim Ho <kho@redhat.com>
379 * javax/swing/plaf/basic/BasicSliderUI.java:
381 (paintTrack): Fill the track before painting
384 2004-07-21 Graydon Hoare <graydon@redhat.com>
386 patch from Roman Kennke <roman@ontographics.com>
387 * javax/swing/Spring.java: New file.
388 * javax/swing/SpringLayout.java: New file.
389 * Makefile.am: Add new files.
390 * Makefile.in: Regenerate.
392 2004-07-21 Graydon Hoare <graydon@redhat.com>
394 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
395 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
396 * javax/swing/ScrollPaneLayout.java: Likewise.
398 2004-07-21 Kim Ho <kho@redhat.com>
400 * javax/swing/DefaultDesktopManager.java:
401 (findMinimum): Removed.
402 (resizeFrame): Trust the UI to pass valid
404 * javax/swing/JOptionPane.java:
405 Implemented showInternalXXXDialog methods.
406 (startModal): New method.
407 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
408 (BorderListener::mouseDragged): Verify that the new
409 bounds are valid before passing them to the DesktopManager.
410 (preferredLayoutSize): Delegate
412 (minimumLayoutSize): Ditto.
413 (getSize): New method.
414 (GlassPaneDispatcher): Reimplemented by copying
415 a stripped down LightweightDispatcher from Container.
416 (getMinimumSize): Call minimumLayoutSize.
417 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
419 (mousePressed): Add ability to properly close
421 * javax/swing/plaf/basic/BasicToolBarUI.java:
422 (DragWindow): Set owner for DragWindow.
424 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
426 * java/awt/image/ShortLookupTable.java: New file.
427 * java/awt/image/ByteLookupTable.java: New file.
428 * Makefile.am: Added new files.
429 * Makefile.in: Regenerated.
431 2004-07-21 David Jee <djee@redhat.com>
433 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
434 (create(GtkContainerPeer)): New native method.
435 (create()): Call native create(), passing in the parent frame
436 as the paramter. Natively set the current file and directory.
437 (setFile): Construct an absolute filename before passing it to
439 (nativeGetDirectory): New method.
440 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
441 (window_closed): Removed.
442 (ok_clicked): Likewise.
443 (cancel_clicked): Likewise.
444 (handle_response): New method.
445 (create): Use GtkFileChooserDialog.
446 (connectSignals): Connect to handle_response.
447 (nativeGetDirectory): New method.
448 (nativeSetFile): Use GtkFileChooserDialog.
450 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
452 * java/awt/image/LookupTable.java: New file.
453 * Makefile.am: Added new file.
454 * Makefile.in: Regenerated.
456 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
458 * java/awt/image/Kernel.java: New file.
459 * Makefile.am: Added new file.
460 * Makefile.in: Regenerated.
462 2004-07-21 Olga Rodimina <rodimina@redhat.com>
464 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
465 * javax/swing/JMenu.java: Likewise.
466 * javax/swing/JMenuBar.java: Likewise.
467 (MARGIN_CHANGED_PROPERTY): New property.
468 (setMargin): Implemented.
469 * javax/swing/JMenuItem.java: Fixed javadocs.
470 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
471 (LABEL_CHANGED_PROPERTY): New property.
472 (add): changed to use createActionComponent.
473 (createActionComponent): Implemented.
474 (setLabel): Fire PropertyChangeEvent if label property
476 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
477 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
478 (ContainerHandler): Repaint if margin property has changed.
479 * javax/swing/plaf/basic/BasicMenuItemUI.java:
480 (installUI): Call installComponents().
481 (uninstallUI): Call uinstallComponents().
482 * javax/swing/plaf/basic/BasicMenuUI.java:
484 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
487 2004-07-21 Kim Ho <kho@redhat.com>
489 * javax/swing/plaf/basic/BasicToolBarUI.java:
490 (DragWindow): Use the right constructor.
492 2004-07-21 Kim Ho <kho@redhat.com>
494 * javax/swing/JToolBar.java:
495 (layoutContainer): Use getComponents.
496 * javax/swing/plaf/basic/BasicToolBarUI.java:
497 (DragWindow): Don't use SwingUtilities'
499 (ToolBarDialog): ditto.
501 2004-07-21 Kim Ho <kho@redhat.com>
503 * javax/swing/JRootPane.java:
505 (layoutContainer): Set the glasspane's size to
506 be the same as the content pane.
507 (createGlassPane): Set opaque property to false.
509 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
511 * java/awt/Component.java (requestFocus()): Don't handle Panels
513 (requestFocus(boolean)): Likewise.
514 (requestFocusInWindow(boolean)): Likewise.
515 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
516 Set GTK_CAN_FOCUS flag.
518 2004-07-21 Kim Ho <kho@redhat.com>
520 * Makefile.am: Added new file.
521 * Makefile.in: Regenerated.
522 * gcj/Makefile.in: Regenerated.
523 * include/Makefile.in: Regenerated.
524 * javax/swing/AbstractButton.java:
525 Add rollOverEnabled property.
526 (setRolloverEnabled): Use new property.
527 (isRolloverEnabled): Use new property.
528 * javax/swing/JTabbedPane.java:
529 (setComponent): Remove useless JTabbedPane.this.
530 * javax/swing/JToolBar.java: Finish implementation.
531 * javax/swing/plaf/basic/BasicArrowButton.java:
532 (paint): Moved border painting to a border.
533 * javax/swing/plaf/basic/BasicLookAndFeel.java:
534 Change JToolBar look and feel defaults.
535 * javax/swing/plaf/basic/BasicOptionPaneUI.java
536 (actionPerformed): Return Integer index instead of name.
537 (addButtonComponents): Check to see if component is
539 (createMessageArea): Don't use components that are not
541 (getIconForType): Use temporary icons.
542 * javax/swing/plaf/basic/BasicSliderUI.java:
543 (mousePressed): Do not return if it's on thumb.
544 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
545 (paintMinorTickForVertSlider): ditto.
546 (paintMajorTickForHorizSlider): ditto.
547 (paintMajorTickForVertSlider): ditto.
548 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
549 Add a border around the SplitPaneDivider.
550 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
552 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
553 New file. Implemented.
554 * javax/swing/plaf/basic/BasicToolBarUI.java:
556 * testsuite/Makefile.in: Regenerated.
558 2004-07-21 Graydon Hoare <graydon@redhat.com>
560 * javax/swing/Timer.java (run): Queue events each time cycle.
562 2004-07-21 David Jee <djee@redhat.com>
564 * gnu/java/awt/peer/gtk/GtkImagePainter.java
565 (imageComplete): Call image.imageComplete().
566 * java/awt/image/MemoryImageSource.java:
567 Reimplement consumers as a Vector instead of a Hashtable. This is
568 because enumeration on a Hashtable is not thread-safe.
569 (addConsumer): Adapt to Vector consumers.
570 (isConsumer): Adapt to Vector consumers.
571 (removeConsumer): Adapt to Vector consumers.
572 (startProduction): Adapt to Vector consumers. Call imageComplete()
573 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
574 (newPixels): Adapt to Vector consumers.
575 (sendPicture): Set the color model of the image consumer.
576 (newPixels(IIII)): Adapt to Vector consumers.
577 (newPixels(IIIIB)): Adapt to Vector consumers.
579 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
581 * java/awt/Component.java (deliverEvent): Implement.
582 (postEvent): Implement.
583 (handleEvent): Implement.
584 (translateEvent): New method.
585 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
586 * java/awt/Container.java (deliverEvent): Implement.
587 * java/awt/Event.java (paramString): Fix formatting.
588 * java/awt/Font.java (toString): Likewise.
589 * java/awt/Window.java (postEvent): Implement.
591 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
593 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
594 Set window's focus owner upon receiving a FOCUS_LOST event.
595 * java/awt/Window.java (Window()): Refocus the previously
596 focused component within the window when the window regains the
598 (setFocusOwner): New method.
599 * java/awt/Component.java (requestFocus): Add FIXME.
601 * libgcj.pc.in: Remove library flags.
603 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
605 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
607 * java/awt/Component.java (requestFocus()): Handle Panel
608 specially. Post FOCUS_LOST event on opposite component.
609 (requestFocus(boolean)): Likewise.
610 (requestFocusInWindow(boolean)): Likewise.
611 (paramString): Reorder dimension fields.
612 * java/awt/Container.java (paramString): Fix string format.
613 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
614 Handle FOCUS_LOST events. Don't handle Windows specially. Only
615 process key events if the focus owner is non-null.
616 (dispatchKeyEvent): Likewise.
617 * java/awt/Frame.java (paramString): Fix formatting.
618 (generateName): New method.
619 (getUniqueLong): Likewise.
620 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
621 the temporary focus owner is null. If so, return the permanent
623 * java/awt/Panel.java (generateName): New method.
624 (getUniqueLong): Likewise.
625 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
626 signal handling to make callbacks more specific.
628 2004-07-21 Michael Koch <konqueror@gmx.de>
630 * javax/swing/text/Position.java
633 2004-07-21 Michael Koch <konqueror@gmx.de>
635 * javax/swing/LookAndFeel.java
636 (provideErrorFeedback): New method.
638 2004-07-21 Michael Koch <konqueror@gmx.de>
640 * javax/swing/JTextArea.java
641 (tabSize): New field.
642 (getTabSize): New method.
643 (setTabSize): Likewise.
645 2004-07-21 Michael Koch <konqueror@gmx.de>
647 * javax/swing/ActionMap.java:
648 Fixed javadocs all over.
649 (serialVersionUID): Made private.
650 (parent): Don't explicitely initialize with default value.
652 (keys): Reimplemented.
654 (convertSet): Removed.
655 * javax/swing/ComponentInputMap.java:
656 Fixed javadocs all over.
657 (ComponentInputMap): Implemented.
661 (SetParent): Likewise.
662 (getComponent): Likewise.
663 * javax/swing/InputMap.java:
664 Fixed javadocs all over.
665 (serialVersionUID): Made private.
666 (parent): Don't explicitely initialize with default value.
668 (keys): Reimplemented.
670 (convertSet): Removed.
672 2004-07-21 Michael Koch <konqueror@gmx.de>
674 * javax/swing/ActionMap.java,
675 javax/swing/ComponentInputMap.java,
676 javax/swing/InputMap.java,
677 javax/swing/table/DefaultTableColumnModel.java,
678 javax/swing/table/TableColumn.java,
679 javax/swing/table/TableColumnModel.java,
680 javax/swing/table/TableModel.java,
681 javax/swing/text/AbstractDocument.java,
682 javax/swing/text/TextAction.java:
685 2004-07-21 Graydon Hoare <graydon@redhat.com>
687 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
688 Make method non-static.
689 * javax/swing/AbstractButton.java:
690 Rename fields to match property names where possible.
691 (iconTextGap): New property.
692 * javax/swing/JCheckBox.java: Match AbstractButton changes.
693 (init) New method, call from after various constructors.
694 * javax/swing/JComponent.java (revalidate):
695 Invalidate before queueing repair.
696 * javax/swing/JList.java (getPreferredScrollableViewportSize):
697 Reimplement in terms of visibleRowCount property.
698 * javax/swing/JMenuButton.java: Match AbstractButton changes.
699 * javax/swing/JScrollPane.java (createScrollListener):
700 Remove tracing chatter.
701 * javax/swing/JToggleButton.java: Match AbstractButton changes.
702 * javax/swing/RepaintManager.java (addInvalidComponent):
704 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
706 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
707 Mimic sun behavior on top left/right positioning.
708 * javax/swing/ViewportLayout.java (preferredLayoutSize):
709 Remove mistaken use of preferredScrollableViewportSize here.
710 (layoutContainer): Use view's preferred size as basis.
711 * javax/swing/plaf/basic/BasicButtonUI.java:
712 Set, get, and use textIconGap property.
713 (paint) Paint text returned from layout (with ellipsis).
714 * javax/swing/plaf/basic/BasicListUI.java:
715 Remove tracing chatter, correct various minor calculations.
716 (getCellBounds): Update layout state before calculating.
717 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
718 Use margin default similar to sun's.
719 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
720 (createIncreaseIcon): Center icon, minimize margins.
721 (createDecreaseIcon): Likewise.
722 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
724 (installUI): Call it.
725 (uninstallDefaults): Implement.
726 (uninstallUI): Call it.
727 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
728 Call existing Window constructor.
729 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
730 Set clip before painting.
732 2004-07-21 Olga Rodimina <rodimina@redhat.com>
734 * javax/swing/JMenuItem.java:
735 (processMouseEvent): Reimplemented to deal with
737 (createMenuDragMouseEvent): New private helper method.
738 Creates MenuDragMouseEvent.
739 * javax/swing/MenuSelectionManager.java
740 (componentForPoint): Implemented.
741 (isComponentPartOfCurrentMenu): Made public.
742 (processMouseEvent): Reimplemented to deal with
744 (setSelectedPath): Corrected small mistake that caused
745 path to be set incorrectly.
746 (getPath): If given component is JMenu then also add this
747 menu's popup menu to the selected path.
748 * javax/swing/plaf/basic/BasicMenuItemUI.java:
750 (getPreferredSize): Call getPreferredMenuItemSize().
751 (getPreferredItemSize): Moved code from getPreferredSize to here.
752 (installListeners): Install MouseMotionListeners.
753 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
754 if mouse wasn't released in the bounds of this menu item.
755 (MenuDragMouseHandler): Implemented.
756 * javax/swing/plaf/basic/BasicMenuUI.java:
757 (installListeners): Install MouseMotionListener and
758 MenuDrageMouseListener.
759 (MenuDragMouseHandler): Implemented.
760 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
761 (uninstallListeners): Implemented.
763 2004-07-21 Michael Koch <konqueror@gmx.de>
765 * javax/swing/JCheckBox.java: Reformated.
766 (JCheckBox): Fixed all constructors.
767 (isBorderPaintedFlat): New method.
768 (setBorderPaintedFlat): New method.
769 * javax/swing/JEditorPane.java
770 (createEditorKitForContentType): Made public.
771 (scrollToReference): Likewise.
772 * javax/swing/JTextArea.java
773 (setLineWrap): Fire property change.
774 * javax/swing/JToggleButton.java
775 (JToggleButton): New constructor.
776 (JToggleButton): Simplified.
777 * javax/swing/text/AttributeSet.java
778 (FontAttribute): Renamed from FontCharacterAttribute.
779 * javax/swing/text/JTextComponent.java
780 (KeyBinBinding): Added javadoc.
781 (JTextComponent): Likewise.
782 (getAccessibleContext): Fixed javadoc.
783 * javax/swing/text/View.java
784 (View): Added javadoc.
785 * javax/swing/text/TabableView.java: New file.
786 * Makefile.am: Added javax/swing/text/TabableView.java.
787 * Makefile.in: Regenerated.
789 2004-07-21 Graydon Hoare <graydon@redhat.com>
791 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
792 * gnu/java/awt/peer/gtk/GtkToolkit.java
793 (GtkErrorImage): New helper class.
794 (bufferedImageOrError): New helper method.
795 (createImage): Use it.
797 2004-07-21 David Jee <djee@redhat.com>
799 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
800 (setCaretPosition): Scroll the text view so the new caret position
801 is visible on screen.
803 2004-07-21 David Jee <djee@redhat.com>
805 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
806 (setBounds): Do not validate awtComponent here.
807 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
808 (getPreferredSize): New method.
809 * java/awt/ScrollPane.java
810 (ScrollPane): Set default size to 100x100.
811 (addNotify): If child is not a Panel, wrap it with a new Panel.
812 (paramString): Implement.
814 2004-07-21 Olga Rodimina <rodimina@redhat.com>
816 * javax/swing/JMenu.java:
817 (setSelected): Display popup menu only if this menu
818 is showing on the screen.
819 * javax/swing/JPopupMenu.java:
820 (processMouseEvent): Added comment.
821 (processKeyEvent): Likewise.
822 * javax/swing/MenuSelectionManager.java:
823 (clearSelectedPath): Only fireStateChanged() after
824 selected path was changed, not before.
825 (setSelectedPath): Likewise.
826 * javax/swing/plaf/basic/BasicMenuItemUI.java:
827 (paintMenuItem): Corrected position of menu item's
829 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
830 (installUI): Correct setDefaultLightWeightPopupEnabled call.
831 (popupMenuCanceled): Reimplemented.
832 (popupMenuWillBecomeVisible): Select first menu item by default
833 when displaying free floating popup menus.
834 (TopWindowListener): Reimplemented.
836 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
838 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
839 Panel from being painted twice when it is first shown.
841 2004-07-21 Olga Rodimina <rodimina@redhat.com>
843 * java/awt/Window.java: Reverted changes from my
844 previous patch for creating window without an owner.
845 * javax/swing/SwingUtilities.java:
846 (SwingUtilities.OwnerFrame): made static.
847 (OwnerFrame.setVisible): New method. Overridden with
848 empty implementation.
849 (OwnerFrame.isShowing): New method. Ovverridden
850 to return always true.
852 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
854 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
855 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
856 (GtkComponentPeer): Remove temporary try/catch block.
857 (setVisible): Call show and hide.
860 (getArgs): Don't add "visible" argument.
861 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
862 (property_notify_predicate): Return Bool instead of int.
863 (find_layout): New function.
864 (connectJObject): Call find_layout.
865 (connectSignals): Likewise.
866 (moveLayout): Likewise.
867 (gtkLayoutSetVisible): Likewise.
869 2004-07-21 Mark Wielaard <mark@klomp.org>
871 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
872 on notifier object before calling notifyAll().
874 2004-07-21 Olga Rodimina <rodimina@redhat.com>
876 * java/awt/Window.java: Changed constructors to use new
877 method that is described below. Constructors call this
878 methods only if newly created window should have an owner.
879 (setWindowOwner): New method. Implementation for
880 this method is moved from this(owner,configuration).
881 * javax/swing/JWindow.java:
882 (JWindow): Reimplement to use SwingUtilities.ownerFrame
884 * javax/swing/SwingUtilities.java:
885 (ownerFrame): Change type of this field to OwnerFrame.
886 (getOwnerFrame): Changed to return object of type OwnerFrame.
887 (SwingUtilities.OwnerFrame): New class. Represents owner
888 of a Window that is not provided with one.
890 2004-07-21 Olga Rodimina <rodimina@redhat.com>
892 * javax/swing/AbstractButton.java:
893 (configurePropertiesFromAction): Set action command
894 to button's text by default if action command is not
895 explicitely specified.
896 * javax/swing/JMenu.java: Remove unnecessary listener
897 and methods relevant to it.
898 (setSelected): Reimplemented.
899 (menuSelectionChanged): Moved most part of implementation to
900 setSelected() and call it instead.
901 * javax/swing/JMenuItem.java:
902 (init): Comment out statement that sets paint_border to false.
903 (configurePropertiesFromAction): Do not set accelerator
905 (menuSelectionChanged): Change selected index in the selection
906 model of menu item's parent.
907 * javax/swing/JPopupMenu.java:
908 (remove): Set constraints.fill field to GridBagConstraints.BOTH
909 instead of GridBagConstraints.HORIZONTAL.
911 (createActionChangeListener): Implemented.
912 (setVisible): Correct location of HeavyWeightMenu and
913 don't firePopupMenuCanceled().
914 (menuSelectionChanged): Implemented.
915 (ActionChangeListener): New Listener. Implemented.
916 * javax/swing/plaf/basic/BasicMenuBarUI.java:
917 (BasicMenuBarUI.ContainerHandler): Implemented.
918 * javax/swing/plaf/basic/BasicMenuItemUI.java:
919 (paintMenuItem): Uncommented out code that paints
920 icon, now that icons are working properly.
921 (PropertyChangeListener): Implemented.
922 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
924 (topWindowListener): New field.
925 (Constructor): initialize topWindowListener.
926 (BasicPopupMenuUI.TopWindowListener): Implemented.
927 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
928 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
931 2004-07-21 Michael Koch <konqueror@gmx.de>
933 * javax/swing/plaf/basic/BasicButtonUI.java
934 (paintFocus): Fixed method signature.
935 (paintButtonPressed): Likewise.
936 (paintButtonNormal): Likewise.
937 (paintText): New method.
938 * javax/swing/plaf/basic/BasicLabelUI.java
939 (paint): Re-indented.
940 * javax/swing/plaf/basic/BasicTextUI.java
941 (installUI): Set parent textComponent to opaque.
942 * javax/swing/text/DefaultHighlighter.java
943 (checkPositions): New helper method.
944 (addHighlight): Throws BadLocationException, check positions.
945 (changeHighlight): Likewise.
946 * javax/swing/text/EditorKit.java
947 (EditorKit): Implements Serializable.
948 * javax/swing/text/JTextComponent.java
949 (getUI): Added javadoc.
951 (upadteUI): Added javadoc, don't revalidate and repaint.
953 2004-07-21 David Jee <djee@redhat.com>
955 * java/awt/GridBagLayout.java
956 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
957 * javax/swing/AbstractButton.java
959 * javax/swing/RepaintManager.java
960 (addInvalidComponent): Find the first ancestor that isValidateRoot().
962 2004-07-21 Michael Koch <konqueror@gmx.de>
964 * javax/swing/JFormattedTextField.java
966 (JFormattedTextField): Implemented.
967 (getValue): Likewise.
968 (setValue): Likewise.
969 * javax/swing/LookAndFeel.java
970 (getSupportsWindowDecorations): New method.
971 * javax/swing/UIDefaults.java:
972 Use java.beans.PropertyChangeSupport instead of doing all ourself.
973 (addPropertyChangeListener): Made public.
974 (addResourceBundle): Likewise.
975 (removeResourceBundle): Likewise.
976 (setDefaultLocale): Likewise.
977 * javax/swing/plaf/basic/BasicRootPaneUI.java
978 (BasicRootPaneUI): Implements PropertyChangeListener.
979 (propertyChange): New method.
980 * javax/swing/plaf/basic/BasicTextUI.java
981 (BasicHighlighter): New inner class.
982 (createHighlighter): New method.
983 * javax/swing/plaf/basic/BasicToolBarUI.java
984 (DragWindow): Extends java.awt.Window.
985 * javax/swing/text/JTextComponent.java
986 (getDocument): Removed debug output.
987 * javax/swing/plaf/basic/BasicTextFieldUI.java,
988 javax/swing/text/DefaultHighlighter.java,
989 javax/swing/text/FieldView.java,
990 javax/swing/text/PlainView.java: New files.
991 * Makefile.am: Added new files.
992 * Makefile.in: Regenerated.
994 2004-07-21 Michael Koch <konqueror@gmx.de>
996 * javax/swing/JEditorPane.java
997 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
998 (createEditorKitForContentType): Likewise.
999 * javax/swing/text/DefaultEditorKit.java
1000 (serialVersionUID): Added constant field.
1001 (EndOfLineStringPropery): Fixed typo.
1002 (DefaultEditorKit): New constructor.
1003 * javax/swing/text/Segment.java:
1004 Import java.text.CharacterIterator.
1005 * javax/swing/text/CharacterIterator.java,
1006 javax/swing/text/PlainEditorKit.java: Removed.
1007 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
1008 javax/swing/text/PlainEditorKit.java.
1009 * Makefile.in: Regenerated.
1011 2004-07-21 Michael Koch <konqueror@gmx.de>
1013 * javax/swing/JButton.java,
1014 javax/swing/text/DefaultEditorKit.java,
1015 javax/swing/text/EditorKit.java,
1016 javax/swing/text/Segment.java,
1017 javax/swing/text/StyledEditorKit.java:
1020 2004-07-21 Michael Koch <konqueror@gmx.de>
1022 * javax/swing/ImageIcon.java
1024 (description): Renamed from descr.
1025 (ImageIcon): Added missing constructors.
1026 (setParent): Removed.
1027 (setImageObserver): New method.
1028 (getImageObserver): New method.
1029 (paintIcon): Handle observer = null.
1030 * javax/swing/JButton.java
1031 (removeNotify): Fixed javadoc.
1032 (updateUI): Simplified.
1033 * javax/swing/JRootPane.java
1034 (serialVersionUID): New constant field.
1035 * javax/swing/UIManager.java:
1036 Fixed javadocs all over.
1037 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
1038 * javax/swing/text/AbstractDocument.java
1039 (createPosition): Throws BadLocationException.
1040 (getText): Likewise.
1042 * javax/swing/text/ComponentView.java
1043 (modelToView): Likewise.
1044 * javax/swing/text/DefaultEditorKit.java:
1045 Made all public methods public.
1046 (read): Throws BadLocationException and IOException.
1048 * javax/swing/text/EditorKit.java:
1049 Made all public methods public.
1050 (serialVersionUID): New constant field.
1051 (clone): New method.
1052 (read): Throws BadLocationException and IOException.
1054 * javax/swing/text/Segment.java
1055 (array): Made public.
1058 (Segment): New constructors.
1059 (clone): Reimplemented.
1060 * javax/swing/text/StyledEditorKit.java
1061 (serialVersionUID): New constant field.
1063 2004-07-21 Graydon Hoare <graydon@redhat.com>
1065 * java/awt/image/BufferedImage.java
1066 (getSource): Implement.
1067 * javax/swing/ImageIcon.java
1068 (ImageIcon): Implement ctor.
1069 * javax/swing/ScrollPaneLayout.java
1070 (preferredLayoutSize): Be more careful about nulls.
1072 2004-07-21 Michael Koch <konqueror@gmx.de>
1074 * javax/swing/text/AttributeSet.java
1075 (CharacterAttribute): New interface
1076 (ColorAttribute): Likewise.
1077 (FontCharacterAttribute): Likewise.
1078 (ParagraphAttribute): Likewise.
1079 * javax/swing/text/DefaultCaret.java
1080 (moveCaret): New method.
1081 (positionCaret): Likewise.
1082 (repaint): Made protected.
1083 * javax/swing/text/JTextComponent.java
1084 (KeyBinding): Made it static.
1085 * javax/swing/text/View.java
1086 (getContainer): Honor parent == null.
1088 2004-07-21 Michael Koch <konqueror@gmx.de>
1090 * javax/swing/text/AbstractDocument.java:
1093 2004-07-21 Michael Koch <konqueror@gmx.de>
1095 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1096 Import javax.swing.UIManager explicitely.
1097 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
1098 (ScrollingButton): Made it static.
1100 2004-07-21 Michael Koch <konqueror@gmx.de>
1102 * javax/swing/UIDefaults.java
1103 (ActiveValue): Made public.
1104 (LazyValue): Likewise.
1105 * javax/swing/plaf/basic/BasicTextUI.java
1106 (RootView): Reintroduced.
1108 (rootView): New field.
1109 (installUI): Create document if needed, initialize rootView.
1110 (uninstallUI): Hanle rootView.
1112 (getRootView): Likewise.
1113 (setView): Likewise.
1114 * javax/swing/text/DefaultCaret.java:
1115 Renamed all "evt" variables to "event".
1117 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1119 * libgcj.spec.in: Add -l-java-util-logging.
1121 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
1123 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1124 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
1125 gtk-xft-dpi can no calculate the right value.
1126 (dpi_changed_cb): Mark *pspec as unsused.
1128 2004-07-21 David Jee <djee@redhat.com>
1130 * java/awt/Component.java
1131 (move): Delegate to setBounds().
1133 (reshape): Fix so it repaints parent and self only when necessary.
1135 2004-07-21 David Jee <djee@redhat.com>
1137 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1138 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1139 (GtkComponentPeer): Revert previous patch from 2004-06-22.
1140 (setVisible): Likewise.
1143 (getArgs): Likewise.
1144 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1145 (property_notify_predicate): Likewise.
1146 (find_layout): Likewise.
1147 (connectJObject): Likewise.
1148 (connectSignals): Likewise.
1149 (moveLayout): Likewise.
1150 (gtkLayoutSetVisible): Likewise.
1152 2004-07-21 Graydon Hoare <graydon@redhat.com>
1158 (rmiregistry_LDADD): Add lib-java-util-logging.la
1159 * Makefile.in: Regenerate.
1161 2004-07-21 Michael Koch <konqueror@gmx.de>
1163 * javax/swing/text/AbstractDocument.java
1164 (replace): Dont use protected method of java.util.Vector directly.
1166 2004-07-21 Michael Koch <konqueror@gmx.de>
1168 * javax/swing/plaf/basic/BasicTextUI.java
1169 (installUI): Call specialized install methods.
1170 (installDefaults): New method.
1171 (installListeners): Likewise.
1172 (installKeyboardActions): Likewise.
1173 (uninstallUI): Likewise.
1174 (uninstallDefaults): New method.
1175 (uninstallListeners): Likewise.
1176 (uninstallKeyboardActions): Likewise.
1177 (getPropertyPrefix): New abstract method.
1178 (paint): Made final, just call paintSafely().
1179 (paintSavely): New method.
1180 (paintBackground): Likewise.
1181 (getVisibleEditorRect): Likewise.
1182 * javax/swing/text/LayeredHighlighter.java,
1183 javax/swing/text/TabExpander.java: New files.
1184 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
1185 and javax/swing/text/TabExpander.java.
1186 * Makefile.in: Regenerated.
1188 2004-07-21 Michael Koch <konqueror@gmx.de>
1190 * javax/swing/plaf/basic/BasicTextUI.java
1191 (BasicTextUI): Made abstract.
1192 (BasicCaret): New inner class.
1193 (view): Don't explicitely initialize with "null".
1194 (textComponent): New field.
1195 (textColor): Removed.
1196 (disabledTextColor): Removed.
1197 (normalBackgroundColor): Removed.
1198 (RootView): Removed commented out inner class.
1199 (createUI): Removed.
1200 (createCaret): New method.
1201 (getComponent): Likewise.
1202 (installUI): Initialize textComponent only.
1203 (getPreferredSize): Use installed JTextComponent.
1204 (setView): New method.
1206 * javax/swing/text/JTextComponent.java
1207 (highlighter): New field.
1208 (caretColor): Likewise.
1209 (disabledTextColor): Likewise.
1210 (seletedTextColor): Likewise.
1211 (selectionColor): Likewise.
1212 (setUI): New method.
1213 (getCaretColor): Likewise.
1214 (setCaretColor): Likewise.
1215 (getDisabledColor): Likewise.
1216 (setDisabledColor): Likewise.
1217 (getSelectedTextColor): Likewise.
1218 (setSelectedTextColor): Likewise.
1219 (getSelectionColor): Likewise.
1220 (setSelectionColor): Likewise.
1221 (getHighlighter): Likewise.
1222 (setHighlighter): Likewise.
1223 (replaceSelection): Likewise.
1225 2004-07-21 Michael Koch <konqueror@gmx.de>
1227 * javax/swing/plaf/basic/BasicScrollPaneUI.java
1228 (BasicScrollPaneUI): Implements ScrollPaneConstants.
1229 * javax/swing/plaf/basic/BasicToolBarUI.java
1230 (BasicToolBarUI): Implements SwingConstants.
1232 2004-07-21 Michael Koch <konqueror@gmx.de>
1234 * javax/swing/JPopupMenu.java: Removed CVS tags.
1235 * javax/swing/UIDefaults.java: Reformatted.
1236 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1237 Explicitely import used classes.
1239 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1241 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1242 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1243 (GtkComponentPeer): Remove temporary try/catch block.
1244 (setVisible): Call show and hide.
1245 (show): Make native.
1247 (getArgs): Don't add "visible" argument.
1248 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1249 (property_notify_predicate): Return Bool instead of int.
1250 (find_layout): New function.
1251 (connectJObject): Call find_layout.
1252 (connectSignals): Likewise.
1253 (moveLayout): Likewise.
1254 (gtkLayoutSetVisible): Likewise.
1256 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1258 * javax/swing/AbstractButton.java:
1259 (setDisplayedMnemonicIndex): Check if button
1260 text is not null before checking its length.
1261 * javax/swing/JMenuItem.java:
1262 (processMouseEvent): Disarm menu item if mouse has
1264 * javax/swing/plaf/basic/BasicMenuUI.java:
1265 (MouseInputHandler.mouseEntered): Do not raise
1266 popup menu if this menu is already selected.
1267 (MouseInputHandler.mousePressed): Do not fire
1269 (MenuHandler): Implemented.
1271 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1273 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
1274 (getSelectedObjects): Implemented.
1275 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
1276 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
1277 Added javadoc for few methods.
1278 (processMouseEvent): Made public.
1279 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
1280 (processMouseEvent): Likewise.
1282 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1284 * javax/swing/AbstractButton.java:
1285 (init): Set display mnemonic index to -1.
1286 (setMnemonic(char)): Use setMnemonic(int).
1287 (setMnemonic(int)): Set display mnemonic index.
1288 (getDisplayedMnemonicIndex): Change method signature
1289 by removing 'index' parameter.
1290 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1291 Added default for Menu.selectionBackground.
1292 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1293 (paintMenuItem): Change background color of the selected
1295 (paintText): Paint differently when menu item is disabled.
1296 Also paint mnemonic if it appears in the menu item's label.
1297 (paintAccelerator): Paint accelerator differently
1298 if menu item is disabled.
1299 * javax/swing/plaf/basic/BasicMenuUI.java:
1300 (installDefaults): Install defaults for
1301 selectionForeground and selectionBackground.
1302 (uninstallDefaults): Uninstall defauls for
1303 selectionForeground and selectionBackground.
1305 2004-07-21 Michael Koch <konqueror@gmx.de>
1307 * javax/swing/text/AbstractDocument.java
1308 (BranchElement): Implemented.
1309 (LeafElement): Implemented.
1310 * javax/swing/text/DefaultCaret.java:
1311 Import used classes.
1312 (serialVersionUID): New constant.
1313 * javax/swing/text/JTextComponent.java
1314 (AccessibleJTextComponent): Removed dead declaration.
1315 (caretPos): Removed.
1316 (setCaret): New method.
1317 * javax/swing/text/PlainDocument.java
1318 (rootElement): New field.
1319 (PlainDocument): Initialize rootElement.
1320 (createDefaultRoot): New method.
1321 (getDefaultRootElement): Implemented.
1322 * javax/swing/text/View.java: Reformatted.
1323 * javax/swing/text/ViewFactory.java
1324 (create): Added javadoc.
1326 2004-07-21 Michael Koch <konqueror@gmx.de>
1328 * javax/swing/ToolTipManager.java: Reformatted.
1330 2004-07-21 Rodimina Olga <rodimina@redhat.com>
1332 * javax/swing/AbstractButton.java
1333 (changeEvent): New field.
1334 (fireItemStateChanged): Change source of the event
1335 to 'this' before firing it to button listeners.
1336 (fireActionPerformed): Likewise.
1337 (fireStateChanged): Likewise.
1338 (createActionListener): Do not set source
1339 of the event to AbstractButton.
1340 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1341 (ContainerHandler.componentAdded): Removed
1342 print out statement.
1343 (ContainerHandler.componentRemoved): Likewise.
1345 2004-07-21 Michael Koch <konqueror@gmx.de>
1347 * javax/swing/text/Highlighter.java: New file.
1348 * Makefile.am: Added javax/swing/text/Highlighter.java.
1349 * Makefile.in: Regenerated.
1351 2004-07-21 Michael Koch <konqueror@gmx.de>
1353 * javax/swing/ToolTipManager.java
1354 (stillInsideTimerAction): Fixed constructor arguments.
1355 (outsideTimerAction): Likewise.
1356 (insideTimerAction): Likewise.
1358 2004-07-21 Michael Koch <konqueror@gmx.de>
1360 * javax/swing/JButton.java: Reformatted.
1361 * javax/swing/JFormattedTextField.java
1362 (getUIClassID): Implemented.
1363 * javax/swing/JRootPane.java
1364 (serialVersionUID): New constant.
1365 * javax/swing/JTextField.java
1367 (JTextField): Simplified.
1368 (getUIClassID): New method.
1369 (getActionListeners): Added @since tag.
1370 (setColumns): Invalidate layout and repaint.
1371 (getHorizontalAlignment): New method.
1372 (setHorizontalAlignment): New method.
1373 (selectAll): Removed.
1374 * javax/swing/SwingUtilities.java
1375 (getAncestorOfClass): Removed redundant @see tag.
1376 (isLeftMouseButton): Fixed implementation.
1377 (isMiddleMouseButton): Likewise.
1378 (isRightMouseButton): Likewise.
1379 * javax/swing/text/AbstractDocument.java
1380 (AttributeContext.addAttribute): New method.
1381 (AttributeContext.addAttributes): New method.
1382 (AttributeContext.getEmptySet): New method.
1383 (AttributeContext.reclaim): New method.
1384 (AttributeContext.removeAttribute): New method.
1385 (AttributeContext.removeAttributes): New method.
1386 * javax/swing/text/Document.java
1387 (createPosition): Throws BadLocationException.
1388 (getText): Likewise.
1390 * javax/swing/text/JTextComponent.java
1391 (getText): Return null if no document is set. Catch
1392 BadLocationException.
1394 (updateUI): Simplified.
1396 2004-07-21 Michael Koch <konqueror@gmx.de>
1398 * javax/swing/JButton.java
1399 (removeNotify): Fixed javadoc.
1400 (updateUI): Simplified.
1402 2004-07-21 David Jee <djee@redhat.com>
1404 * gnu/java/awt/image/ImageDecoder.java
1405 (startProduction): Only add consumer if it's not added yet.
1406 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
1407 (GdkPixbufDecoder): Don't call initState() here.
1408 (produce): Call initState() here, to ensure area_prepared and
1409 area_updated signals are properly connected.
1410 * gnu/java/awt/peer/gtk/GtkImage.java
1411 (setColorModel): Use equals() to compare ColorModel objects.
1412 (setPixels): Likewise.
1413 * java/awt/image/ColorModel.java
1414 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
1415 * java/awt/image/RGBImageFilter.java
1416 (setColorModel): Set consumer's color model.
1417 (setPixels): Use equals() to compare ColorModel objects.
1419 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
1421 * java/net/URLConnection.java (position): New field.
1422 (dateFormat1, dateFormat2, dateFormat3): Removed.
1423 (dateFormats): New field.
1424 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
1425 each time instead of re-allocating.
1426 (initializeDateFormats): Initialize 'dateFormats'.
1428 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1431 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
1434 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1436 * java/net/Socket.java (getImpl): Now private. Remove comment.
1438 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1440 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
1441 of chained Writer when calling super-constructor.
1442 * java/io/FilterWriter.java (FilterWriter): Likewise.
1443 * java/io/PrintWriter.java (PrintWriter): Likewise.
1445 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
1447 * prims.cc (process_gcj_properties): Don't increment i within LHS
1450 2004-07-19 Per Bothner <per@bothner.com>
1452 Print -verbose:message on "loading", not initialization.
1453 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
1454 * defineclass.cc (_Jv_ClassReader::parse): Print message if
1455 gcj::verbose_class_flag.
1456 * java/lang/natClass.cc (initializeClass): Don't print message here.
1457 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
1458 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
1459 (_Jv_PrepareCompiledClass): Likewise.
1461 2004-07-18 Matthias Klose <doko@debian.org>
1463 * configure.in: Substitute target_noncanonical.
1464 * configure: Regenerate
1466 2004-07-17 Michael Koch <konqueror@gmx.de>
1468 * java/lang/String.java: Fixed javadocs all over.
1470 2004-07-17 Mark Wielaard <mark@klomp.org>
1472 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
1473 when size is smaller.
1474 * java/io/RandomAccessFile.java (setLength): Use truncate for
1475 shrinking the file and seek plus write for expanding the file.
1477 2004-07-17 Michael Koch <konqueror@gmx.de>
1479 * gnu/java/nio/channels/natFileChannelPosix.cc
1480 (implTruncate): Always save current position. Only reposition file
1481 pointer to where we started if not beyond new lenght. Reposition file
1482 pointer to file length if it points beyond the end of file.
1484 2004-07-17 Mark Wielaard <mark@klomp.org>
1486 * javax/swing/Box.java: Put FIXME comment above class declaration.
1487 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1488 * javax/swing/JCheckBox.java: Likewise.
1489 * javax/swing/JDialog.java: Likewise.
1490 * javax/swing/JRadioButton.java: Likewise.
1491 * javax/swing/JToggleButton.java: Likewise.
1492 * javax/swing/UIManager.java: Likewise.
1493 * javax/swing/border/TitledBorder.java: Likewise.
1494 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1495 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1496 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1497 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1498 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1499 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1500 * javax/swing/text/JTextComponent.java: Likewise.
1502 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
1504 * java/net/DatagramPacket.java (setAddress): Removed check for
1507 2004-07-17 Michael Koch <konqueror@gmx.de>
1509 * java/net/DatagramSocket.java
1510 (getLocalAddress): Check if socket is bound or not.
1511 * java/net/Socket.java
1512 (getLocalAddrss): Check if socket is bound or not.
1513 (getPort): Return -1 when not connected. Dont check getImpl() for
1515 (setReuseAddress): Check if socket is closed.
1516 (isConnected): Check if getImpl() returns null.
1518 2004-07-17 Mark Wielaard <mark@klomp.org>
1520 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1521 on notifier object before calling notifyAll().
1523 2004-07-17 Michael Koch <konqueror@gmx.de>
1525 * gnu/java/nio/channels/FileChannelImpl.java
1526 (finalize): Added javadoc.
1528 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
1530 * java/text/CollationElementIterator.java
1531 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
1532 (setText): Use ArrayList instead of Vector.
1534 2004-07-17 Michael Koch <konqueror@gmx.de>
1536 * java/nio/ByteOrder.java
1537 (static): Removed. Not needed.
1538 Thanks to Patrick Reali for noticing.
1539 * java/nio/charset/CharsetDecoder.java
1540 (decode): Fix for classpath bug #9177: Reset state before flipping.
1542 2004-07-17 Michael Koch <konqueror@gmx.de>
1544 * java/security/Security.java: Fixed javadocs all over.
1546 2004-07-17 Michael Koch <konqueror@gmx.de>
1548 * gnu/java/awt/EmbeddedWindow.java
1550 (addNotify): Set peer via reflection.
1551 (setWindowPeer): Removed.
1552 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1553 * Makefile.am (nat_source_files):
1554 Removed gnu/java/awt/natEmbeddedWindow.cc.
1555 * Makefile.in: Regenerated.
1557 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
1559 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
1561 * configure: Regenerated.
1563 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
1565 * configure.in: Use build_noncanonical rather than build_alias.
1566 * configure: Rebuild.
1568 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
1569 by logic refactoring. Move default definition of NATIVE closer
1570 to first alternate definition.
1571 * configure: Regenerate.
1573 * Makefile.am: Set ZIP and GCJH directly using autoconf.
1574 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
1575 gcj/Makefile.in: Regenerate.
1576 * configure.in: Set ZIP and GCJH. Remove redundant condition
1577 in AM_CONDITIONAL(NATIVE,...)
1578 * configure: Regenerate.
1580 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
1582 * configure.in: Use target_noncanonical rather than
1583 target_alias for forward-compatibility with autoconf 2.59.
1584 * configure: Regenerate.
1585 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
1586 testsuite/Makefile.am: Substitute target_noncanonical.
1587 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1588 testsuite/Makefile.in: Regenerate.
1590 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
1591 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
1592 * acinclude.m4: Include acx.m4.
1593 * aclocal.m4: Regenerate.
1594 * configure: Regenerate.
1596 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
1599 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
1600 (decimalFormat): New static variable.
1602 (getTime): New. Override Date.getTime().
1603 (toString): Synchronize. Use decimalFormat to format nanos value
1604 correctly. Truncate extra zeros.
1605 (before): Compare getNanos() only if getTime() is equal.
1608 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1610 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
1611 * configure.in: ...here.
1612 * aclocal.m4: Regenerate.
1613 * configure: Regenerate.
1615 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
1616 * configure: Rebuilt with autoconf 2.13.
1617 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1618 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
1620 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
1623 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
1625 * Makefile.in: Rebuilt.
1626 * testsuite/libjava.lang/LargeFile.java: New test case.
1627 * testsuite/libjava.lang/LargeFile.out: New file.
1629 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1631 * java/beans/EventHandler.java: Remove debugging statements.
1633 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1635 * java/beans/EventHandler.java: New file.
1636 * Makefile.am (awt_java_source_files): Add EventHandler.java.
1637 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1638 testsuite/Makefile.in: Regenerate.
1640 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
1642 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
1643 flag to the gcj_setup.
1644 (gcj_jacks_run): Check tclsh version and launch jacks directly with
1646 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
1647 deprecation flag change. 58 XFAILS removed.
1649 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
1651 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
1652 -fno-use-divide-subroutine.
1653 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
1654 (HANDLE_FPE): Define.
1655 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
1656 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1657 (HANDLE_DIVIDE_OVERFLOW): Define.
1659 2004-07-14 Michael Koch <konqueror@gmx.de>
1660 Matthias Klose <doko@debian.org>
1662 * java/awt/im/InputContext.java: Initialize in, line.
1664 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
1666 * interpret.cc (run): Correctly access libffi return values of
1667 integral smaller-than-int type; these are implicitly promoted.
1669 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
1672 * interpret.cc (compile_mutex): New.
1673 (_Jv_InitInterpreter): New. Initialize compile_mutex.
1674 (run): Lock compile_mutex before calling compile() if compilation is
1676 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
1677 * include/java-interp.h (_Jv_InitInterpreter): Declare.
1679 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
1682 * include/jvm.h (_Jv_value): New union type.
1683 * gcj/field.h (_Jv_Field): Add new _addr union field variants
1684 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
1687 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
1689 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
1690 * gnu/awt/xlib/XOffScreenImage.java
1691 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
1692 constructor argument. Add constructor using ImageProducer.
1693 (getSource): Implement.
1694 (imageComplete): New method.
1695 (setColorModel): New method.
1696 (setDimensions): New method.
1697 (setHints): New method.
1698 (setPixels): New method.
1699 (setProperties): New method.
1700 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
1701 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
1703 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
1706 * prims.cc (_Jv_CreateJavaVM): Fix comment.
1707 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
1708 (finalizerReady): Now native.
1710 (runFinalizers): Removed.
1711 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
1712 a primitive lock, and don't hold it while running the finalizers.
1713 (runFinalizers): Implement. Don't aquire any Java lock.
1714 (finalizerReady): Use lock primitives to signal finalizer thread.
1716 2004-07-11 Mark Wielaard <mark@klomp.org>
1718 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
1719 * java/net/URLStreamHandler.java (parseURL): When url file part
1720 doesn't contain a '/' just ignore context.
1722 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
1724 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
1725 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1726 (MAKE_THROW_FRAME): Do not modify PSW address.
1727 (INIT_SEGV): Install SIGINFO-style signal handler.
1728 (INIT_FPE): Likewise.
1730 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1732 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
1733 status. 21 xfail's removed, 1 added.
1735 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1737 * gcj/javaprims.h: Regenerate CNI namespace definitions.
1739 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
1741 * java/text/MessageFormat.java
1742 (formatInternal): Append "{n}" if argument n is unavailable.
1743 (format(Object, StringBuffer, FieldPosition)): This
1744 should be equivalent to format(Object[],
1745 StringBuffer, FieldPosition).
1747 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1749 * java.util.Calendar.java (cache): New private static field. Cached
1750 mappings of locales->calendar classes.
1751 (ctorArgTypes): New private static field. Singleton argument for
1752 calendar class constructor lookup.
1753 (getInstance): Cache Locale->Calendar class mappings using HashMap.
1754 Optimize by bypassing reflection instantiation for the
1755 GregorianCalendar case.
1757 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1759 * java/util/Calendar.java: Use getSystemClassLoader as argument for
1760 ResourceBundle.getBundle() calls.
1761 * java/util/GregorianCalendar.java: Likewise.
1762 * java/util/Currency.java: Likewise.
1763 * java/text/BreakIterator.java: Likewise.
1764 * java/text/Collator.java: Likewise.
1765 * java/text/DateFormat.java: Likewise.
1766 * java/text/DateFormatSymbols.java: Likewise.
1767 * java/text/DecimalFormatSymbols.java: Likewise.
1768 * java/text/NumberFormat.java: Likewise.
1769 * java/awt/Window.java: Likewise.
1771 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1773 * java/util/ResourceBundle.java (bundleCache): Renamed from
1774 resourceBundleCache. Update comments.
1775 (getObject): Don't catch MissingResourceException.
1776 (getBundle(String)): Remove 'final'. Use system classloader if
1777 getCallingClassLoader returned null.
1778 (getBundle(String, Locale)): Likewise.
1779 (BundleKey): New private class. HashMap key for bundle cache lookup.
1780 (lookupKey): New. Singleton instance of BundleKey.
1781 (nullEntry): New. Cache entry to represent failed lookups.
1782 (getBundle(String, Locale, ClassLoader)): Re-written to use new
1783 caching strategy, no-allocation lookup, and new tryBundle methods.
1784 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
1785 name using given classloader.
1786 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
1787 baseName for given Locale and attempt to load bundle.
1789 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1791 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
1792 illegal protected method calls.
1794 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1796 Fix or remove some bogus test cases.
1797 * testsuite/libjava.compile/pr10459_2.java: Removed.
1798 * testsuite/libjava.compile/pr10459.java: Test using its own method,
1800 * testsuite/libjava.compile/inner_data.java: Test against its own
1803 2004-07-09 Michael Koch <konqueror@gmx.de>
1805 * scripts/unicode-muncher.pl: Updated to version 2.1
1806 from GNU classpath. Added some clarifications on where to find the
1807 needed files from www.unicode.org.
1808 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
1809 gnu/gcj/convert/UnicodeData-3.0.0.txt:
1810 Removed, these can directly be downloaded from www.unicode.org if
1812 * gnu/java/lang/CharData.java: Regenerated.
1813 * include/java-chartables.h: Regenerated.
1814 * Makefile.am (ordinary_java_source_files):
1815 Removed gnu/java/lang/CharData.java.
1816 * Makefile.in: Regenerated.
1818 2004-07-09 Michael Koch <konqueror@gmx.de>
1820 * java/security/AccessControlContext.java,
1821 java/security/SecureClassLoader.java:
1824 2004-07-09 Michael Koch <konqueror@gmx.de>
1826 * java/io/ObjectInputStream.java (readFields): Use long datatype
1827 when shifting byte values more then 24 bits left.
1829 2004-07-09 Michael Koch <konqueror@gmx.de>
1831 * java/util/zip/DeflaterOutputStream.java,
1832 java/util/zip/GZIPInputStream.java,
1833 java/util/zip/GZIPOutputStream.java,
1834 java/util/zip/InflaterInputStream.java:
1835 Reformatted. Added javadocs. Reordered all stuff.
1836 Renamed variables to be more clear.
1838 2004-07-09 Michael Koch <konqueror@gmx.de>
1840 * javax/imageio/IIOException.java,
1841 javax/imageio/event/IIOReadProgressListener.java,
1842 javax/imageio/event/IIOReadUpdateListener.java,
1843 javax/imageio/event/IIOReadWarningListener.java,
1844 javax/imageio/event/IIOWriteProgressListener.java,
1845 javax/imageio/event/IIOWriteWarningListener.java:
1847 * Makefile.am: Added new files.
1848 * Makefile.in: Regenerated.
1850 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
1852 * java/text/RuleBasedCollator.java
1853 (mergeRules): Use ArrayList instead of Vector.
1854 (subParseString): likewise.
1855 (parseString): likewise.
1856 (buildCollationVector): likewise.
1857 (getCollationKey): likewise.
1859 2004-07-09 Dalibor Topic <robilad@kaffe.org>
1861 * java/text/DateFormat.java (parse):
1862 Improved javadoc. Improved exception message.
1864 2004-07-09 Mark Wielaard <mark@klomp.org>
1866 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
1867 interrupted() method to clear interupt flag of our Thread.
1869 2004-07-09 Dalibor Topic <robilad@kaffe.org>
1871 * java/nio/Buffer.java,
1872 java/nio/ByteBuffer.java,
1873 java/nio/ByteBufferHelper.java,
1874 java/nio/ByteBufferImpl.java,
1875 java/nio/CharBuffer.java,
1876 java/nio/CharBufferImpl.java,
1877 java/nio/CharViewBufferImpl.java,
1878 java/nio/DirectByteBufferImpl.java,
1879 java/nio/DoubleBuffer.java,
1880 java/nio/DoubleBufferImpl.java,
1881 java/nio/DoubleViewBufferImpl.java,
1882 java/nio/FloatBuffer.java,
1883 java/nio/FloatBufferImpl.java,
1884 java/nio/FloatViewBufferImpl.java,
1885 java/nio/IntBuffer.java,
1886 java/nio/IntBufferImpl.java,
1887 java/nio/IntViewBufferImpl.java,
1888 java/nio/LongBuffer.java,
1889 java/nio/LongBufferImpl.java,
1890 java/nio/LongViewBufferImpl.java,
1891 java/nio/MappedByteBufferImpl.java,
1892 java/nio/ShortBuffer.java,
1893 java/nio/ShortBufferImpl.java,
1894 java/nio/ShortViewBufferImpl.java:
1895 Fixed javadocs all over. Improved input error
1898 * java/nio/Buffer.java
1899 (checkForUnderflow, checkForOverflow, checkIndex,
1900 checkIfReadOnly, checkArraySize): New helper methods
1903 * java/nio/ByteBufferHelper.java
1904 (checkRemainingForRead, checkRemainingForWrite,
1905 checkAvailableForRead, checkAvailableForWrite): Removed
1906 no longer needed methods.
1908 2004-07-09 Michael Koch <konqueror@gmx.de>
1910 * gnu/regexp/CharIndexedInputStream.java:
1911 Reordered imports to match classpath.
1913 2004-07-09 Michael Koch <konqueror@gmx.de>
1915 * gnu/java/awt/EmbeddedWindow.java:
1916 Load native library for setWindowPeer method.
1918 2004-07-08 Randolph Chung <tausq@debian.org>
1920 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
1921 * configure: Regenerate.
1922 * configure.host: Set can_unwind_signal for hppa*-linux.
1923 * include/pa-signal.h: New file.
1925 2004-07-07 Per Bothner <per@bothner.com>
1927 * Makefile.am: Add rules to build libgij from just gij.cc.
1929 * include/jvm.h (namespace jcj): Declare verbose_class_flag
1930 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
1931 (initializeClass): If verbose_class_flag, print message.
1932 * gij.cc (main): Handle -verbose:class flag.
1934 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
1936 * configure.host: Enable hash synchronization on Darwin.
1937 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
1938 ';', since this is a comment on Darwin.
1939 (compare_and_swap_release): Likewise.
1941 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
1943 * java/net/URLStreamHandler.java (parseURL): Canonicalize
1944 file portion of URL in addition to spec for file: protocol.
1946 2004-07-05 Anthony Green <green@redhat.com>
1948 * java/io/File.java (toURI): Merge from Classpath.
1950 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
1952 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
1953 before passing to URL constructor. Rethrow any MalformedURLException
1954 as a RuntimeException. Catch MalformedURLException specifically, not
1957 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
1959 * java/util/Locale.java (readObject): Intern strings read from object
1962 2004-07-04 Michael Koch <konqueror@gmx.de>
1964 * gnu/gcj/runtime/FirstThread.java,
1965 gnu/gcj/runtime/natFirstThread.cc: Removed.
1966 * gnu/java/lang/MainThread.java,
1967 gnu/java/lang/natMainThread.cc: New files.
1968 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
1969 * Makefile.am: Added new files and removed deleted ones.
1970 * Makefile.in: Regenerated.
1972 2004-07-03 Mark Wielaard <mark@klomp.org>
1973 Anthony Green <green@redhat.com>
1975 * java/net/URL.java (getFile): Clarify return value doc.
1976 (getPath): Return null if file is empty - not empty String.
1977 (set): Convert protocol to lower case before doing anything.
1978 Only change the protocol handler if it's different.
1980 2004-07-03 Anthony Green <green@redhat.com>
1982 * java/net/URL.java (URL): Convert protocol to lower case before
1983 doing anything, so we getURLStreamHandler() with the proper value.
1985 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
1987 * java/util/Locale.java (hashcode): Made transient.
1988 (hashCode): No longer synchronized.
1989 (equals): Remove comment.
1990 (writeObject): No longer synchronized. Implement using writeObject
1991 calls instead of tweaking hashCode field. Update doc.
1992 (readObject): Implement using readObject calls.
1994 2004-06-26 Geoffrey Keating <geoffk@apple.com>
1995 Andreas Tobler <a.tobler@schweiz.ch>
1997 * configure.host (powerpc-*-darwin*): New case, define
1999 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
2000 * configure: Regenerate.
2001 * include/darwin-signal.h: New.
2003 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
2005 * java/beans/Statement.java (doExecute): Fix formatting.
2007 2004-06-29 Per Bothner <per@bothner.com>
2009 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
2010 etc etc): Remove needless parenthesis, which causes __stdcall__
2011 attribute on MinGW to get ignored.
2013 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
2015 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
2017 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
2019 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
2021 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
2023 * java/beans/Expression.java: New file.
2024 * java/beans/Statement.java: New file.
2025 * Makefile.am: Added new files.
2026 * Makefile.in: Re-generate.
2028 2004-06-27 Mark Wielaard <mark@klomp.org>
2030 * java/io/FilePermission.java (usingPerms): Removed.
2031 (actionsString): Made final.
2032 (cachePerms): Renamed to checkPerms.
2033 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
2035 (FilePermission): Check arguments, call checkPerms().
2036 (equals): Remove cachePerms() call.
2037 (implies): Likewise.
2039 2004-06-27 Mark Wielaard <mark@klomp.org>
2041 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
2043 (sendRequest): Use new field in user-agent http agent.
2045 2004-06-27 Mark Wielaard <mark@klomp.org>
2047 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
2048 when argument is null.
2050 2004-06-26 Mark Wielaard <mark@klomp.org>
2052 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2053 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
2055 (cancel_clicked): Likewise.
2057 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
2059 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
2060 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
2061 can not calculate the right value.
2062 (dpi_changed_cb): Likewise. Mark *pspec as unused.
2064 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
2066 * testsuite/libjava.jacks/jacks.xfail: Remove
2067 15.9.1-qualified-concrete-20.
2069 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2071 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
2072 encoding name to iconv.
2073 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2075 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2078 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
2079 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
2080 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2082 2004-06-21 Andrew Haley <aph@redhat.com>
2084 * java/io/ObjectOutputStream.java: Add DEBUG statements
2086 (dumpElementln): New method.
2088 * java/io/ObjectInputStream.java
2089 (currentClassLoader): Make native.
2090 (callersClassLoader): New field.
2092 (readObject): ENDBLOCKDATA is generated if the class has a write
2093 method, not if it has a read method.
2094 (readObject): Save and restore this.currentObject and
2095 this.currentObjectStreamClass around calls to callReadMethod().
2096 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
2099 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
2101 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
2104 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2106 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
2107 if desired, before the default class loader is initialised.
2108 Call INIT_SEGV only if HANDLE_SEGV is defined.
2110 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2112 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
2113 directory only if it actually exists.
2115 2004-06-18 Graydon Hoare <graydon@redhat.com>
2117 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
2118 Fix up non-ansi comments.
2120 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2122 * javax/swing/text/AbstractDocument.java: Adding missing import
2123 for javax.swing.event.EventListenerList.
2124 * javax/swing/text/DefaultCaret.java: Likewise.
2126 2004-06-17 Michael Koch <konqueror@gmx.de>
2128 * javax/swing/JToolBar.java
2130 (JToolBar): Use Component.setName(String) instead of doing it all
2132 * javax/swing/Timer.java
2133 (queueEvent): Added missing modifier.
2135 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
2137 * Makefile.am: Added new file.
2138 * Makefile.in: Re-generate.
2139 * javax/swing/JMenu.java:
2140 (insertSeparator): Implemented.
2141 * javax/swing/JPopupMenu.java:
2142 (JPopupMenu.Separator): Implemented.
2143 * javax/swing/MenuSelectionManager.java:
2144 (processMouseEvent): Use java.awt.Component
2145 for event source instead of javax.swing.JComponent.
2146 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
2147 New File. Implemented.
2149 2004-06-16 David Jee <djee@redhat.com>
2151 * java/awt/GridBagLayout.java
2152 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
2153 Make sure pos_x and pos_y are never negative.
2155 2004-04-16 Andrew Overholt <overholt@redhat.com>
2157 * Makefile.am: Add new file.
2158 * Makefile.in: Re-generate.
2159 * javax/swing/JToolBar.java
2160 Partially implemented.
2161 * javax/swing/plaf/basic/BasicToolBarUI.java
2162 New file. Partially implemented.
2164 2004-06-16 Graydon Hoare <graydon@redhat.com>
2166 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
2167 (setComposite): Accept AlphaComposite arguments.
2168 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
2169 (createBufferedImage): Add new overloads.
2170 * gnu/java/awt/peer/gtk/GtkToolkit.java
2171 (createImage): Use GdkPixbufDecoder.createBufferedImage
2172 when useGraphics2D() is true.
2173 (getImage): Delegate to createImage.
2174 * javax/swing/JList.java
2176 (getFirstVisibleIndex):
2177 (getLastVisibleIndex):
2179 (ensureIndexIsVisible): New methods.
2180 * javax/swing/Timer.java: Reimplement.
2182 2004-06-16 Michael Koch <konqueror@gmx.de>
2184 * javax/swing/text/AbstractDocument.java
2185 (AbstracElement): Made public, implements java.io.Serializable.
2186 (AttributeContext): Made public.
2187 (BranchElement): Likewise.
2188 (Content): Likewise.
2189 (DefaultDocumentEvent): Made public, extends
2190 javax.swing.undo.CompoundEdit.
2191 (ElementEdit): Made public, extends
2192 javax.swing.undo.AbstractUndoableEdit.
2193 (LeafElement): Made public.
2194 (LeafElement.LeafElement): Made public.
2196 2004-06-16 Michael Koch <konqueror@gmx.de>
2198 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
2199 methods (that were obviously never be intended to get included hi this
2200 class. Added some methods too.
2202 2004-06-16 Michael Koch <konqueror@gmx.de>
2204 * javax/swing/text/PlainDocument.java
2205 (serialVersionUID): New constant.
2206 (lineLimitAttribute): Likewise.
2207 (tabSizeAttribute): Likewise.
2208 (tabSize): New field.
2209 (PlainDocument): Made public.
2210 (PlainDocument): New constructor.
2212 2004-06-16 Michael Koch <konqueror@gmx.de>
2214 * javax/swing/text/AbstractDocument.java
2215 (insertString): Throws BadLocationException.
2216 * javax/swing/text/Document.java
2217 (insertString): Likewise.
2218 * javax/swing/text/JTextComponent.java:
2219 Javadocs and comments cleaned up.
2221 2004-06-16 Michael Koch <konqueror@gmx.de>
2223 * javax/swing/event/UndoableEditListener.java: Reformatted.
2224 * javax/swing/text/AbstractDocument.java
2225 (AbstractDocument): Implements java.io.Serializable.
2226 (doc_list): Removed.
2227 (undo_list): Removed.
2228 (AbstractElement.serialVerionUID): New field.
2229 (BranchElement.serialVerionUID): Likewise.
2230 (DefaultDocumentEvent.serialVerionUID): Likewise.
2231 (ElementEdit.serialVerionUID): Likewise.
2232 (LeafElement.serialVerionUID): Likewise.
2233 (serialVerionUID): Likewise.
2234 (BAD_LOCATION): New constant.
2235 (BidiElementName): Likewise.
2236 (ContentElementName): Likewise.
2237 (ParagraphElementName): Likewise.
2238 (SectionElementName): Likewise.
2239 (ElementNameAttribute): Likewise.
2240 (AbstractDocument): Made protected.
2241 (AbstractDocument): New construtor.
2242 (listenerList): New field.
2243 (fireChangedUpdate): Implemented.
2244 (fireInsertUpdate): Likewise.
2245 (fireRemoveUpdate): Likewise.
2246 (fireUndoableEditUpdate): Likewise.
2247 (getListeners): Likewise.
2248 (addDocumentListener): Likewise.
2249 (removeDocumentListener): Likewise.
2250 (addUndoableEditListener): Likewise.
2251 (removeUndoableEditListener): Likewise.
2252 (getDocumentListeners): New method.
2253 (getUndoableEditListeners): Likewise.
2254 (getAsynchronousLoadPriority): Made public.
2255 (getBidiRootElement): Likewise.
2256 (setAsynchronousLoadPriority): Likewise.
2257 (setDocumentProperties): Likewise.
2258 * javax/swing/text/BadLocationException.java
2259 (serialVerionUID): New field.
2260 * javax/swing/text/DefaultCaret.java
2261 (changeEvent): New field.
2262 (listenerList): Likewise.
2264 (addChangeListener): Reimplemented.
2265 (removeChangeListener): Likewise.
2266 (getListeners): New method.
2267 (getChangeListeners): Likwise.
2268 (getComponent): Likewise.
2269 * javax/swing/text/GapContent.java
2270 (GapContent): Implements java.io.Serializable.
2271 (serialVerionUID): New field.
2273 2004-06-16 Michael Koch <konqueror@gmx.de>
2275 * javax/swing/JTree.java
2276 (treeModel): New field.
2277 (JTree): New constructors, one existing one made public.
2278 (createTreeModel): New method.
2279 (addTreeExpansionListener): Likewise.
2280 (removeTreeExpansionListener): Likewise.
2281 (getTreeExpansionListeners): Likewise.
2282 (fireTreeCollapsed): Likewise.
2283 (fireTreeExpanded): Likewise.
2284 (addTreeSelectionListener): Likewise.
2285 (removeTreeSelectionListener): Likewise.
2286 (getTreeSelectionListeners): Likewise.
2287 (fireValueChanged): Likewise.
2288 (addTreeWillExpandListener): Likewise.
2289 (removeTreeWillExpandListener): Likewise.
2290 (getTreeWillExpandListeners): Likewise.
2291 (fireTreeWillCollapse): Likewise.
2292 (fireTreeWillExpand): Likewise.
2294 2004-06-16 Michael Koch <konqueror@gmx.de>
2296 * javax/swing/JTree.java: Reformatted.
2298 2004-06-16 Michael Koch <konqueror@gmx.de>
2300 * javax/swing/JTextArea.java: New file.
2301 * javax/swing/JTextField.java
2303 (notifyAction): New constant.
2304 (columns): New field.
2305 (JTextField): New constructors.
2306 (createDefaultModel): New method.
2307 (addActionListener): Reimplmemented.
2308 (removeActionListener): Reimplemented.
2309 (getActionListeners): New method.
2310 (fireActionPerformed): New method.
2311 (getColumns): New method.
2312 (setColumne): New method.
2313 * javax/swing/text/JTextComponent.java
2314 (AccessibleJTextComponent.serialVersionUID): New field.
2315 (serialVersionUID): Likewise.
2316 (DEFAULT_KEYMAP): Likewise.
2317 (FOCUS_ACCELERATOR_KEY): Likewise.
2318 (doc): Made private.
2319 (icon_gap): Likewise.
2322 (JTextComponent): Some constructors removed.
2323 (getScrollableTracksViewportHeight): New method.
2324 (getScrollableTracksViewportWidth): Likewise.
2325 * Makefile.am: Added javax/swing/JTextArea.java.
2326 * Makefile.in: Regenerated.
2328 2004-06-15 Graydon Hoare <graydon@redhat.com>
2330 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
2331 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
2332 * javax/swing/JViewport.java
2333 (getExtentSize): Return size rather than preferred size.
2334 (toViewCoordinates): New methods.
2335 (getViewSize): Return size rather than preferred size.
2336 (setViewSize): Note view size as set.
2337 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
2338 * javax/swing/plaf/basic/BasicScrollBarUI.java
2339 (getPreferredSize): Don't redo layout.
2340 * javax/swing/plaf/basic/BasicViewportUI.java
2341 (paint): Translate image properly and eat exceptions.
2343 2004-06-15 Kim Ho <kho@redhat.com>
2345 * javax/swing/JTabbedPane.java
2346 (setComponent): Remove old component and
2348 (setSelectedIndex): Don't operate on the
2349 components if they're null. Don't set index
2350 on the model if the index is the same.
2351 (insertTab): Don't add or hide the component
2352 if it's null. Repaint the container.
2353 * javax/swing/plaf/basic/BasicLookAndFeel.java
2354 Change colors for TabbedPane.
2355 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
2356 (mousePressed): Re-layout and paint the component.
2357 (layoutContainer): Don't set location on the view.
2358 (ScrollingViewport::paint): Remove.
2360 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
2362 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2363 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
2365 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
2366 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
2367 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
2369 (drawLine): Call gdk_flush before leaving GDK critical region.
2370 (fillRect): Likewise.
2371 (drawRect): Likewise.
2372 (copyArea): Likewise.
2373 (copyPixmap): Likewise.
2374 (clearRect): Likewise.
2375 (drawArc): Likewise.
2376 (drawPolyline): Likewise.
2377 (drawPolygon): Likewise.
2378 (fillPolygon): Likewise.
2379 (fillArc): Likewise.
2380 (drawOval): Likewise.
2381 (fillOval): Likewise.
2383 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
2385 (GdkFontMetrics): Add style argument to initState call.
2386 (stringWidth(String,int,int,String)): Add style parameter.
2387 (stringWidth(String)): Add style argument to stringWidth call.
2388 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
2389 (initState): Set pango font style and weight based on AWT style
2390 parameter. Pass default GTK language to
2391 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
2392 simply dividing by PANGO_SCALE.
2393 (stringWidth): Set pango font style and weight based on AWT style
2396 * java/awt/Button.java (next_button_number): New field.
2397 (paramString): Change output.
2398 (generateName): New method.
2399 (getUniqueLong): New method.
2401 2004-06-14 Kim Ho <kho@redhat.com>
2403 * javax/swing/JTabbedPane.java:
2404 (setComponentAt): Set the component, not
2406 * javax/swing/plaf/basic/BasicDesktopIconUI.java
2407 (actionPerformed): Let deiconize catch exception.
2409 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2411 * javax/swing/JPopupMenu.java:
2412 (setVisible): Corrected location of a
2413 heavyweight popup menu.
2415 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2417 * javax/swing/MenuSelectionManager.java:
2418 Ran through jalopy to fix formatting style.
2420 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2422 * javax/swing/JLayeredPane.java:
2423 (remove): Revalidate and repaint layered pane after
2424 the component was removed.
2425 javax/swing/JMenu.java:
2426 (setVisible): Display popup menu at the user location,
2427 if one was set by the user.
2428 (setMenuLocation): Reimplemented. Fixed javadoc.
2429 * javax/swing/JMenuBar.java: Added javadoc.
2430 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
2431 (MODEL_CHANGED_PROPERTY): New Property.
2432 (isSelected): Implemented.
2433 (setBorderPainted): Fire PropertyChangeEvent
2434 if paintBorder property changes.
2435 (setSelected): Implemented.
2436 (setSelectionModel): Implemented.
2437 * javax/swing/JPopupMenu.java: Added Javadoc
2438 (pack): Implemented.
2439 (setVisible): Reimplemented.
2440 (show): Fixed location.
2441 (JPopupMenu.LigthWeightPopup): Reimplemented to use
2442 Container instead of JPanel.
2443 * javax/swing/MenuSelectionManager.java: Added Javadocs.
2444 (clearSelectedPath): Reimplemented to clear selectedPath
2446 (processMouseEvent): Reimplemented.
2447 (setSelectedPath): Fire stateChange event indicating that
2448 selected menu path has changed.
2449 (getPath): Change to use ArrayList instead of Vector.
2450 * javax/swing/plaf/basic/BasicMenuBarUI.java:
2451 (installUI): call installKeyboardActions().
2452 (uninstallUI): call uninstallKeyboardActions().
2454 2004-06-13 Michael Koch <konqueror@gmx.de>
2456 * javax/swing/text/DefaultCaret.java,
2457 javax/swing/text/BadLocationException.java:
2460 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
2462 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
2463 DEFAULT_COLS): New variables.
2464 (create): Don't allow 0 rows or 0 columns. Instead, set the
2465 values to DEFAULT_ROWS or DEFAULT_COLS.
2466 (getMinimumSize): Likewise.
2467 (getPreferredSize): Likewise.
2468 (minimumSize): Likewise.
2469 (preferredSize): Likewise.
2470 (create): Set peer's editable state.
2471 * java/awt/TextArea.java (TextArea()): Set rows and columns to
2472 zero. Update javadocs.
2473 (TextArea(String)): Likewise.
2474 (TextArea(int,int)): Fix javadocs.
2475 (TextArea(String,int,int,int)): Only throw exception if one of
2476 rows or columns is zero. Fix javadocs.
2478 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
2480 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
2481 addition to Components.
2483 * java/awt/MenuItem.java (dispatchEventImpl): If the event
2484 wasn't consumed by normal processing, send it to the parent
2487 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2488 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
2491 2004-06-11 David Jee <djee@redhat.com>
2493 * java/awt/MediaTracker.java
2494 (addImage(Image,int)): Call imageUpdate() to udpate image status.
2495 (addImage(Image,int,int,int)): Likewise.
2497 2004-06-11 Michael Koch <konqueror@gmx.de>
2499 * javax/swing/text/AbstractDocument.java,
2500 javax/swing/text/Document.java,
2501 javax/swing/text/GapContent.java,
2502 javax/swing/text/JTextComponent.java,
2503 javax/swing/text/PlainDocument.java:
2506 2004-06-11 Michael Koch <konqueror@gmx.de>
2508 * javax/swing/JRootPane.java
2509 (AccessibleJRootPane.serialVersionUID): New field.
2510 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
2511 (AccessibleJRootPane.getAccessibleRole): New method.
2512 (RootLayout): Implements Serializable.
2513 (RootLayout.serialVersionUID): New field.
2514 (RootLayout.RootLayout): New constructor.
2515 (setJMenuBar): Made public.
2516 (getJMenuBar): Likewise.
2517 (JRootPane): Likewise.
2518 (createContentPane): Likewise.
2519 (createGlassPane): Likewise.
2520 (createLayeredPane): Likewise.
2522 2004-06-11 Michael Koch <konqueror@gmx.de>
2524 * javax/swing/SwingUtilities.java
2525 (isLeftMouseButton): Fixed javadoc.
2526 (isMiddleMouseButton): Likewise.
2527 (isRightMouseButton): Likewise.
2529 2004-06-11 Michael Koch <konqueror@gmx.de>
2531 * javax/swing/JScrollPane.java
2532 (serialVersionUID): New field.
2533 (columnHeader): Made protected.
2534 (rowHeader): Likewise.
2535 (lowerLeft): Likewise.
2536 (lowerRight): Likewise.
2537 (upperLeft): Likewise.
2538 (upperRight): Likewise.
2539 (horizontalScrollBar): Likewise.
2540 (horizontalScrollBarPolicy): Likewise.
2541 (verticalScrollBar): Likewise.
2542 (verticalScrollBarPolicy): Likewise.
2543 (viewport): Likewise.
2545 2004-06-11 Michael Koch <konqueror@gmx.de>
2547 * javax/swing/LookAndFeel.java: Fixed javadocs.
2549 2004-06-11 Michael Koch <konqueror@gmx.de>
2551 * javax/swing/JEditorPane.java: Fixed javadocs.
2552 (JEditorPane): Removed redundant call to to this().
2553 (fireHyperlinkUpdate): Implemented.
2555 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2557 * javax/swing/JMenu.java: Fixed file name
2558 in the file comment.
2560 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2562 * javax/swing/JMenu.java: Added javadoc.
2563 (JMenu): Added MenuChangeListener to listen to
2564 ChangeEvents occuring in menu's model.
2565 (insert): Throw IllegalArgumentException if
2566 index is less than 0
2567 (setSelected): Reimplement.
2568 (setPopupMenuVisible): Call menu's model isEnabled()
2569 (setDelay): Throw IllegalArgumentException if
2570 given amount of delay is less than 0.
2571 (createActionComponent): Implemented.
2572 (createActionChangeListener): Implemented.
2573 (addSeparator): Implemented.
2574 (getItem): Throw IllegalArgumentException if index is
2576 (getItemCount): Implemented.
2577 (fireMenuSelected): Changed to use menuEvent.
2578 (fireMenuDeselected): Likewise.
2579 (fireMenuCanceled): Likewise.
2580 (setAccelerator): Changed to throw an error if this
2582 (doClick): Implemented.
2583 (JMenu.ActionChangedListener): New inner class to handle
2584 PropertyChangeEvents occuring in the actions associated with menu.
2585 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
2586 (BasicMenuUI): Added PropertyChangeListener to the menu.
2587 (createChangeListener): Implemented.
2588 (createMenuDragMouseListener): Likewise.
2589 (createMenuKeyListener): Likewise.
2590 (createPropertyChangeListener): Likewise.
2591 (uninstallListeners): Likewise.
2592 (BasicMenuUI.MouseInputHandler): Reimplemented.
2593 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
2594 (BasicMenuUI.ChangeHandler): Likewise.
2595 (BasicMenuUI.MenuDragMouseHandler): Likewise.
2596 (BasicMenuUI.MenuKeyHandler): Likewise.
2598 2004-06-10 David Jee <djee@redhat.com>
2600 * java/awt/MediaTracker.java
2601 (imageUpdate): Only do notifyAll() if the image is complete.
2603 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2605 * javax/swing/JApplet.java:
2606 (getJMenuBar): Made public.
2607 (setJMenuBar): Likewise.
2608 * javax/swing/JFrame.java:
2609 (getJMenuBar): Made public.
2610 (setJMenuBar): Likewise.
2611 * javax/swing/JWindow.java:
2612 (getJMenuBar): Removed.
2613 (setJMenuBar): Removed.
2615 2004-06-10 Michael Koch <konqueror@gmx.de>
2617 * javax/swing/JEditorPane.java
2618 (createEditorKitForContentType): Fixed visibility.
2619 (fireHyperlinkUpdate): Likewise.
2620 (getContentType): Likewise.
2621 (getEditorKit): Likewise.
2622 (getEditorKitForContentType): Likewise.
2623 (getPage): Likewise.
2625 (registerEditorKitForContentTyoe): Likewise.
2626 (replaceSelection): Likewise.
2627 (setContentType): Likewise.
2628 (setEditorKit): Likewise.
2629 (setPage): Likewise.
2631 2004-06-10 Michael Koch <konqueror@gmx.de>
2633 * javax/swing/Timer.java
2634 (Timer): New constructor.
2635 * javax/swing/plaf/basic/BasicProgressBarUI.java
2636 (animationTimer): Don't initialize at construction.
2637 (startAnimationTimer): Added since tag.
2638 (stopAnimationTimer): Likewise.
2639 (installUI): Use new Timer constructor.
2640 * javax/swing/plaf/basic/BasicScrollBarUI.java
2641 (installUI): Likewise.
2642 * javax/swing/plaf/basic/BasicSliderUI.java
2643 (installUI): Likewise.
2645 2004-06-10 Michael Koch <konqueror@gmx.de>
2647 * javax/swing/ButtonGroup.java
2648 (serialVersionUID): Made private.
2649 (buttons): Renamed from v, added javadoc.
2650 (sel): Added javadoc.
2651 (ButtonGroup): Likewise.
2654 (getElements): Likewise.
2655 (getSelection): Likewise.
2656 (setSelected): Likewise.
2657 (isSelected): Likewise.
2658 (getButtonCount): Likewise.
2660 2004-06-10 Michael Koch <konqueror@gmx.de>
2662 * javax/swing/ButtonGroup.java,
2663 javax/swing/ImageIcon.java,
2664 javax/swing/JEditorPane.java,
2665 javax/swing/JRootPane.java,
2666 javax/swing/JTextField.java,
2667 javax/swing/LookAndFeel.java,
2668 javax/swing/plaf/basic/BasicTextUI.java:
2671 2004-06-10 Michael Koch <konqueror@gmx.de>
2673 * javax/swing/text/Style.java: Added javadocs.
2675 2004-06-10 Michael Koch <konqueror@gmx.de>
2677 * javax/swing/JComponent.java
2678 (fireVetoableChange): Removed redundant cast.
2679 * javax/swing/JLabel.java
2680 (getDisabledIcon): Save icon for next call.
2682 2004-06-10 Michael Koch <konqueror@gmx.de>
2684 * javax/swing/KeyStroke.java
2685 (getKeyStroke(char,boolean)): Marked deprecated.
2687 2004-06-10 Michael Koch <konqueror@gmx.de>
2689 * javax/swing/DefaultCellEditor.java,
2690 javax/swing/GrayFilter.java,
2691 javax/swing/event/DocumentEvent.java,
2692 javax/swing/text/JTextComponent.java,
2693 javax/swing/text/MutableAttributeSet.java:
2696 2004-06-10 Michael Koch <konqueror@gmx.de>
2698 * javax/swing/plaf/BorderUIResource.java:
2699 Added serialVersionUID all over.
2701 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
2703 * javax/swing/undo/UndoManager.java: Re-written from scratch.
2705 2004-06-10 Michael Koch <konqueror@gmx.de>
2707 * javax/swing/table/DefaultTableCellRenderer.java
2708 (noFocusBorder): Initialize directly.
2710 2004-06-10 Michael Koch <konqueror@gmx.de>
2712 * javax/swing/plaf/basic/BasicArrowButton.java
2713 (setDirection): Use method argument.
2715 2004-06-10 Michael Koch <konqueror@gmx.de>
2717 * javax/swing/plaf/BorderUIResource.java,
2718 javax/swing/plaf/ComponentUI.java,
2719 javax/swing/undo/CompoundEdit.java,
2720 javax/swing/undo/StateEdit.java:
2721 Fixed javadocs all over.
2723 2004-06-10 Michael Koch <konqueror@gmx.de>
2725 * javax/swing/DefaultButtonModel.java
2726 (ARMED): Made public final, fixed value.
2727 (ENABLED): Likewise.
2728 (PRESSED): Likewise.
2729 (ROLLOVER): Likewise.
2730 (SELECTED): Likewise.
2731 (stateMask): Initialize directly.
2732 (listenerList): Likewise.
2733 (mnemonic): Likewise.
2734 (fireStateChanged): Removed argument, use changeEvent as event.
2735 All places where this method is called are fixed too.
2736 (getActionCommant): Fixed javadoc.
2737 (setGroup): Fixed javadoc.
2738 (getGroup): New method.
2740 2004-06-09 Olga Rodimina <rodimina@redhat.com>
2742 * javax/swing/AbstractButton.java
2743 (AbstractButton): Use init() to initialize the button.
2744 (init): New Method. Initializes AbstractButton.
2745 * javax/swing/JMenuItem.java: Documented.
2746 (JMenuItem): Reimplemented.
2747 (init): Implemented.
2748 (setEnabled): Changed to call super.setEnabled()
2749 (processMouseEvent): Reimplemented.
2750 (fireMenuKeyPressed): Implemented.
2751 (fireMenuKeyReleased): Implemented.
2752 (fireMenuKeyTyped): Implemented.
2753 (menuSelectionChanged): disarm the model if the menu item was
2755 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
2756 (getPath): Change to use ArrayList instead of Vector.
2757 (getPreferredSize): Renamed variable.
2758 (paintMenuItem): Paint margin area of menu item.
2759 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
2760 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
2761 menu item's bounds before clearing the selection.
2763 2004-06-09 David Jee <djee@redhat.com>
2765 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
2766 (GtkTextComponentPeer): Set caret position to 0.
2767 * java/awt/TextComponent.java
2768 (setText): Set caret position to 0.
2769 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2770 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
2771 Handle GtkScrolledWindow separately. Fix signal handler blocking.
2772 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
2774 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
2775 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
2778 2004-06-09 Kim Ho <kho@redhat.com>
2780 * Makefile.am: New files
2781 * Makefile.in: Regenerated
2782 * java/awt/Container.java
2783 (getComponentAt): Removed.
2784 * javax/swing/AbstractAction.java
2785 (ENABLED_PROPERTY): New property.
2786 (putValue): Fire PropertyChangeEvents.
2787 (setEnabled): ditto.
2788 (firePropertyChange): Javadoc and implement
2790 * javax/swing/AbstractButton.java
2791 (setAction): Don't create PropertyChangeListener
2792 if new Action is null.
2793 (setIcon): Don't set icon till after comparing
2795 (configurePropertiesFromAction): Check mnemonic
2796 key before calling intValue().
2797 (createActionPropertyChangeListener): Check
2798 properties rather than bulk change.
2799 * javax/swing/DefaultDesktopManager.java:
2801 * javax/swing/DesktopManager.java:
2803 * javax/swing/JComponent.java
2804 (fireVetoableChange): Implement.
2805 (paintImmediately): Use root component.
2806 * javax/swing/JDesktopPane.java: Implement
2807 * javax/swing/JInternalFrame.java: Implement
2808 * javax/swing/JLabel.java
2809 (getDisabledIcon): Return grayscaled icon if
2810 no disabled icon specified.
2811 * javax/swing/JMenuBar.java
2812 (getComponentAtIndex): Use getComponent
2813 * javax/swing/JOptionPane.java
2814 (getDesktopPaneForComponent): Use SwingUtilities'
2816 (getFrameForComponent): ditto.
2817 * javax/swing/JSplitPane.java
2818 (remove): Use getComponent.
2819 * javax/swing/SwingUtilities.java
2820 (convertPoint): Implement.
2821 * javax/swing/plaf/basic/BasicButtonUI.java
2822 (paintButtonNormal): Check opaqueness before
2824 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
2826 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
2828 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
2830 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2832 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2833 Change InternalFrame and Desktop colors.
2835 2004-06-09 David Jee <djee@redhat.com>
2837 * java/awt/Container.java
2838 (remove): Do not set component to invisible.
2840 2004-06-09 Michael Koch <konqueror@gmx.de>
2842 * javax/swing/tree/DefaultMutableTreeNode.java
2843 (getLeafCount): Renamed enum to e.
2845 2004-06-09 Michael Koch <konqueror@gmx.de>
2847 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
2848 (positionForMouseEvent): Removed redundant semicolon.
2849 (continueDrag): Use method arguments.
2851 2004-06-09 Michael Koch <konqueror@gmx.de>
2853 * javax/swing/border/TitledBorder.java,
2854 javax/swing/filechooser/FileSystemView.java,
2855 javax/swing/plaf/basic/BasicButtonListener.java,
2856 javax/swing/plaf/basic/BasicGraphicsUtils.java,
2857 javax/swing/plaf/basic/BasicLabelUI.java,
2858 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
2859 javax/swing/plaf/basic/BasicScrollBarUI.java,
2860 javax/swing/plaf/basic/BasicScrollPaneUI.java,
2861 javax/swing/plaf/basic/BasicSliderUI.java,
2862 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
2863 javax/swing/plaf/basic/BasicToggleButtonUI.java,
2864 javax/swing/table/JTableHeader.java,
2865 javax/swing/text/AbstractDocument.java,
2866 javax/swing/text/DefaultCaret.java,
2867 javax/swing/text/StyledEditorKit.java,
2868 javax/swing/tree/DefaultTreeCellEditor.java:
2869 Reworked import statements.
2871 2004-06-08 Graydon Hoare <graydon@redhat.com>
2873 * javax/swing/Box.java: Temporarily comment out code
2874 broken due to visibility bug.
2876 2004-06-09 Michael Koch <konqueror@gmx.de>
2878 * javax/swing/ImageIcon.java
2879 (ImageIcon): Added missing constructor.
2881 2004-06-08 Michael Koch <konqueror@gmx.de>
2883 * javax/swing/JToggleButton.java
2884 (JToggleButton): New constructor.
2885 (getAccessibleContext): Moved documentation into javadoc.
2886 (getUIClassID): Likewise.
2888 2004-06-08 Michael Koch <konqueror@gmx.de>
2890 * javax/swing/AbstractButton.java
2891 (getDisabledIcon): Create disabled icon if none exists yet.
2893 2004-06-08 Michael Koch <konqueror@gmx.de>
2895 * javax/swing/plaf/basic/BasicLookAndFeel.java
2896 (initClassDefaults): Added FormattedTextFieldUI.
2897 (loadResourceBundle): Renamed enum to e.
2899 2004-06-08 Michael Koch <konqueror@gmx.de>
2901 * javax/swing/plaf/basic/BasicButtonUI.java
2902 (paintIcon): Simplified.
2903 (paintText): Paint disabled button correctly.
2905 2004-06-08 Michael Koch <konqueror@gmx.de>
2907 * javax/swing/JComponent.java
2908 (createToolTip): Use official JToolTip API.
2910 2004-06-08 Michael Koch <konqueror@gmx.de>
2912 * javax/swing/JToolTip.java
2913 (JToolTip): No arguments in API.
2914 (setTipText): New method.
2916 2004-06-08 Michael Koch <konqueror@gmx.de>
2918 * javax/swing/SwingUtilities.java
2919 (isLeftMouseButton): New method.
2920 (isMiddleMouseButton): New method.
2921 (isRightMouseButton): New method.
2923 2004-06-08 Michael Koch <konqueror@gmx.de>
2925 * javax/swing/AbstractButton.java,
2926 javax/swing/CellRendererPane.java,
2927 javax/swing/JCheckBoxMenuItem.java,
2928 javax/swing/JColorChooser.java,
2929 javax/swing/JComboBox.java,
2930 javax/swing/JComponent.java,
2931 javax/swing/JDesktopPane.java,
2932 javax/swing/JFileChooser.java,
2933 javax/swing/JMenu.java,
2934 javax/swing/JMenuItem.java,
2935 javax/swing/JOptionPane.java,
2936 javax/swing/JPasswordField.java,
2937 javax/swing/JPopupMenu.java,
2938 javax/swing/JProgressBar.java,
2939 javax/swing/JRadioButtonMenuItem.java,
2940 javax/swing/JScrollBar.java,
2941 javax/swing/JSeparator.java,
2942 javax/swing/JSlider.java,
2943 javax/swing/JSplitPane.java,
2944 javax/swing/JTabbedPane.java,
2945 javax/swing/JTextField.java,
2946 javax/swing/JToolBar.java,
2947 javax/swing/text/JTextComponent.java:
2948 Fixed all constructors of accessibility classes.
2950 2004-06-08 Michael Koch <konqueror@gmx.de>
2952 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
2955 2004-06-08 Michael Koch <konqueror@gmx.de>
2957 * javax/swing/Box.java
2958 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
2959 (AccessibleBoxFiller.serialVersionUID): New member variable.
2960 * javax/swing/DefaultButtonModel.java
2961 (stateMask): Made protected.
2962 (listenerList): Likewise.
2963 (changeEvent): Likewise.
2965 (mnemonic): Likewise.
2966 (actionCommand): Likewise.
2967 (getListeners): New method.
2968 (getActionListeners): New method.
2969 (getItemListeners): New method.
2970 (getChangeListeners): New method.
2971 (fireItemStateChanged): Simplified.
2972 (fireActionPerformed): Simplified.
2973 (fireStateChanged): Simplified.
2974 * javax/swing/JFrame.java
2975 (JFrame): Implements WindowContants.
2976 (HIDE_ON_CLOSE): Removed.
2977 (EXIT_ON_CLOSE): Removed.
2978 (DISPOSE_ON_CLOSE): Removed.
2979 (DO_NOTHING_ON_CLOSE): Removed.
2980 (processWindowEvent): Exit with code 0.
2981 (setDefaultCloseOperation): Do security check before setting value.
2982 * javax/swing/JOptionPane.java
2983 (message): Initialize only in constructor.
2984 * javax/swing/JToolTip.java: Removed unused imports.
2985 * javax/swing/JViewport.java
2986 (serialVersionUID): New member variable.
2987 (SIMPLE_SCROLL_MODE): Made final, fixed value.
2988 (BLIT_SCROLL_MODE): Likewise.
2989 (BACKINGSTORE_SCROLL_MODE): Likewise.
2990 (scrollUnderway): Made protected.
2991 (isViewSizeSet): Likewise.
2992 * javax/swing/ListModel.java: Fixed javadoc.
2993 * javax/swing/Popup.java: Likewise.
2994 * javax/swing/RepaintManager.java
2995 (paintDirtyRegions): Don't use internal classes of
2996 java.util.AbstractMap.
2997 * javax/swing/ScrollPaneConstants.java: Reindented.
2998 * javax/swing/ScrollPaneLayout.java
2999 (viewport): Made protected.
3000 (verticalScrollBar): Made protected, renamed to vsb.
3001 (horizontalScrollBar): Made protected, renamed to hsb.
3002 (rowHeader): Made protected, renamed to rowHead.
3003 (columnHeader): Made protected, renamed to colHead.
3004 (lowerLeft): Made protected.
3005 (lowerRight): Made protected.
3006 (upperLeft): Made protected.
3007 (upperRight): Made protected.
3008 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
3009 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
3011 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
3013 * java/awt/MediaTracker.java (imageUpdate): Only set status to
3014 LOADING if flags has SOMEBITS set.
3016 2004-06-07 Michael Koch <konqueror@gmx.de>
3018 * javax/swing/AbstractButton.java: Reorganized imports.
3019 * javax/swing/ActionMap.java: Likewise.
3020 * javax/swing/DefaultButtonModel.java: Likewise.
3021 * javax/swing/DefaultListModel.java: Likewise.
3022 * javax/swing/ImageIcon.java: Likewise.
3023 (serialVersionUID): New member variable.
3024 * javax/swing/JComboBox.java: Reorganized imports.
3025 * javax/swing/JComponent.java: Likewise.
3026 (ui): Made protected.
3027 (listenerList): Made protected.
3028 (TOOL_TIP_TEXT_KEY): New constant.
3029 (scrollRectToVisible): Removed redundant null check.
3030 * javax/swing/JFrame.java: Reorganized imports.
3031 * javax/swing/JInternalFrame.java: Reorganized imports.
3032 * javax/swing/JProgressBar.java: Likewise.
3033 * javax/swing/JRootPane.java: Likewise.
3034 * javax/swing/JScrollBar.java: Likewise.
3035 * javax/swing/JSeparator.java: Likewise.
3036 * javax/swing/JSlider.java: Likewise.
3037 * javax/swing/JTabbedPane.java: Likewise.
3038 * javax/swing/JTextField.java: Likewise.
3039 * javax/swing/JToolBar.java: Likewise.
3040 * javax/swing/JTree.java: Likewise.
3041 * javax/swing/JViewport.java: Likewise.
3042 * javax/swing/JWindow.java: Likewise.
3043 * javax/swing/KeyStroke.java: Likewise.
3044 * javax/swing/LookAndFeel.java: Likewise.
3045 * javax/swing/MenuSelectionManager.java: Likewise.
3046 * javax/swing/SwingUtilities.java: Likewise.
3047 * javax/swing/Timer.java: Likewise.
3048 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
3049 * javax/swing/JList.java
3050 (HORIZONTAL_WRAP): Made final, fixed value.
3051 (VERTICAL): Likewise.
3052 (VERTICAL_WRAP): Likewise.
3054 2004-06-07 Michael Koch <konqueror@gmx.de>
3056 * javax/swing/AbstractButton.java
3057 (serialVersionUID): New member variable.
3058 (AccessibleAbstractButton.serialVersionUID): Likewise.
3059 (AbstractButton): Made public.
3060 * javax/swing/Box.java
3061 (AccessibleBox.serialVersionUID): New member variable.
3062 (Filler.serialVersionUID): Likewise.
3063 * javax/swing/DefaultListSelectionModel.java
3064 (serialVersionUID): Likewise.
3065 * javax/swing/JApplet.java
3066 (serialVersionUID): Likewise.
3067 * javax/swing/JCheckBox.java
3068 (serialVersionUID): Likewise.
3069 * javax/swing/JCheckBoxMenuItem.java
3070 (serialVersionUID): Likewise.
3071 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
3072 * javax/swing/JColorChooser.java
3073 (serialVersionUID): Likewise.
3074 (AccessibleJColorChooser.serialVersionUID): Likewise.
3075 * javax/swing/JComponent.java
3076 (serialVersionUID): Made private.
3077 (AccessibleJComponent.serialVersionUID): New member variable.
3078 * javax/swing/JDesktopPane.java
3079 (serialVersionUID): Likewise.
3080 * javax/swing/JDialog.java
3081 (serialVersionUID): Likewise.
3082 * javax/swing/JFormattedTextField.java
3083 (serialVersionUID): Fixed value.
3084 * javax/swing/JFrame.java
3085 (serialVersionUID): New member variable.
3086 (getDefaultCloseOpertation): Made public.
3087 * javax/swing/JLayeredPane.java
3088 (serialVersionUID): Likewise.
3089 (LAYER_PROPERTY): Made final, fixed value.
3090 (JLayeredPane): Made public.
3091 * javax/swing/JMenu.java
3092 (AccessibleJMenu.serialVersionUID): New member variable.
3093 (WinListener.serialVersionUID): Likewise.
3094 * javax/swing/JMenuBar.java
3095 (serialVersionUID): Likewise.
3096 (getComponentAtIndex): Added @deprecated tag.
3097 * javax/swing/JMenuItem.java
3098 (serialVersionUID): New member variable.
3099 (AccessibleJMenuItem.serialVersionUID): Likewise.
3100 * javax/swing/JOptionPane.java
3101 (serialVersionUID): Likewise.
3102 (AccessibleJOptionPane.serialVersionUID): Likewise.
3103 * javax/swing/JPopupMenu.java
3104 (serialVersionUID): Likewise.
3105 (AccessibleJPopupMenu.serialVersionUID): Likewise.
3106 (getPopupMenuListeners): New method.
3107 (getComponentAtIndex): Added @deprecated tag.
3108 * javax/swing/JProgressBar.java
3109 (serialVersionUID): New member variable.
3110 (AccessibleJProgressBar.serialVersionUID): Likewise.
3111 * javax/swing/JRadioButton.java
3112 (serialVersionUID): Likewise.
3113 * javax/swing/JRadioButtonMenuItem.java
3114 (serialVersionUID): Likewise.
3115 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
3116 * javax/swing/JScrollBar.java
3117 (serialVersionUID): Likewise.
3118 (AccessibleJScrollBar.serialVersionUID): Likewise.
3119 * javax/swing/JSeparator.java
3120 (serialVersionUID): Likewise.
3121 (AccessibleJSeparator.serialVersionUID): Likewise.
3122 * javax/swing/JSlider.java: Fixed javadocs.
3123 (AccessibleJSlider.serialVersionUID): New member variable.
3124 * javax/swing/JSplitPane.java: Added copyright statement.
3125 (serialVersionUID): New member variable.
3126 (AccessibleJSplitPane.serialVersionUID): Likewise.
3127 * javax/swing/JTabbedPane.java
3128 (serialVersionUID): Likewise.
3129 (AccessibleJTabbedPane.serialVersionUID): Likewise.
3130 (ModelListener.serialVersionUID): Likewise.
3131 (ModelListener.ModelListener): New constructor.
3132 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
3133 (WRAP_TAB_LAYOUT): Likewise.
3134 * javax/swing/JTable.java
3135 (serialVersionUID): New member variable.
3136 * javax/swing/JToggleButton.java
3137 (serialVersionUID): Likewise.
3138 (ToggleButtonModel): Made static.
3139 (ToggleButtonModel.serialVersionUID): New member variable.
3140 * javax/swing/JToolTip.java
3141 (serialVersionUID): Likewise.
3142 * javax/swing/JTree.java
3143 (serialVersionUID): Likewise.
3144 * javax/swing/JWindow.java
3145 (serialVersionUID): Likewise.
3146 * javax/swing/Timer.java
3147 (serialVersionUID): Likewise.
3149 2004-06-06 Michael Koch <konqueror@gmx.de>
3151 * javax/swing/SwingConstants.java
3152 (NEXT): New constant.
3153 (PREVIOUS): Likewise.
3154 * javax/swing/UIManager.java
3155 (LookAndFeel): Made public.
3156 (LookAndFeel.getClassName): Likewise.
3157 (LookAndFeel.getName): Likewise.
3159 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3161 * javax/swing/JCheckBoxMenuItem.java:
3163 * javax/swing/JMenu.java: Likewise.
3164 * javax/swing/JMenuBar.java: Likewise.
3165 * javax/swing/JMenuItem.java: Likewise.
3166 * javax/swing/JPopupMenu.java: Likewise.
3167 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3168 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3169 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3170 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3171 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3172 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3173 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3175 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3177 * javax/swing/plaf/basic/BasicMenuUI.java:
3178 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3179 Call getPath() from super class instead.
3181 2004-05-31 David Jee <djee@redhat.com>
3183 * java/awt/Container.java
3184 (remove): Set component visibility to false after removing it.
3186 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
3188 * java/awt/Component.java (getForeground): Return SystemColor if
3190 (getBackground): Likewise.
3192 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3193 (item_highlighted): New function.
3194 (connectSignals): Set item_highlighted as list's select
3197 * java/applet/Applet.java: Revert changes from 2004-04-29,
3198 2004-03-15 and 2004-03-14.
3200 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3201 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
3204 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
3205 "Dialog" as the default font.
3206 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
3208 * java/awt/Component.java (getFont): Return "Dialog" font by
3210 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
3211 Multiply size argument to pango_font_description_set_size by the
3212 DPI conversion factor rather than by PANGO_SCALE.
3213 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
3214 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
3215 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
3216 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
3217 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3218 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
3219 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
3220 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
3221 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
3222 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3223 Divide baseline y coordinate by DPI conversion factor rather
3224 than by PANGO_SCALE.
3225 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
3226 (area_prepared): Fix typo.
3227 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
3228 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
3229 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3230 (dpi_conversion_factor): New global variable.
3231 (init_dpi_conversion_factor): New function to calculate and
3232 track DPI conversion factor.
3233 (dpi_changed_cb): New callback.
3234 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
3236 2004-05-27 David Jee <djee@redhat.com>
3238 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3239 (getGraphics): Return a new GdkGraphics instance.
3240 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3241 (getGraphics): Call super.getGraphics().
3243 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3245 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3246 (setNativeBounds): Clamp width and height values to >= 0.
3248 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3249 (find_fg_color_widget): Handle GtkOptionMenu specially.
3251 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3252 (pre_event_handler): Only post configure events to visible
3255 2004-05-26 David Jee <djee@redhat.com>
3257 * java/awt/BorderLayout.java
3258 (layoutContainer): Fix size calculations.
3260 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3262 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3263 (window_wm_protocols_filter): Remove function.
3264 (create): Remove filter that removes WM_TAKE_FOCUS client
3267 2004-06-17 Anthony Green <green@redhat.com>
3269 * java/util/zip/ZipFile.java (getInputStream): Return null if
3272 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
3273 directory contents to the class path.
3275 2004-06-15 Andrew Haley <aph@redhat.com>
3277 * java/lang/natSystem.cc (getenv0): Don't assume environment
3278 variable is Latin 1 coded.
3280 2004-06-14 Andreas Jaeger <aj@suse.de>
3282 * configure.in: Support --enable-version-specific-runtime-libs.
3283 * configure: Regenerated.
3285 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
3287 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
3288 to pass ClassLoader argument.
3289 * java/util/GregorianCalendar.java: Likewise.
3290 * java/util/Currency.java: Likewise.
3291 * java/text/BreakIterator.java: Likewise.
3292 * java/text/Collator.java: Likewise.
3293 * java/text/DateFormat.java: Likewise.
3294 * java/text/DateFormatSymbols.java: Likewise.
3295 * java/text/DecimalFormatSymbols.java: Likewise.
3296 * java/text/NumberFormat.java: Likewise.
3297 * java/awt/Window.java: Likewise.
3299 2004-06-14 Andrew Haley <aph@redhat.com>
3301 * java/lang/System.java: (getenv0): New method.
3302 (getenv): Add security check. Do the right thing.
3303 * java/lang/natSystem.cc (getenv0): New method.
3305 2004-06-12 Mark Wielaard <mark@klomp.org>
3307 * javax/swing/RepaintManager.java
3308 (paintDirtyRegions): Use entrySet(), not values().
3310 2004-06-10 Mark Wielaard <mark@klomp.org>
3312 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
3315 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
3317 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
3318 when we already know the answer.
3319 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3320 (setStartRule,setEndRule): Don't take abs of day number.
3321 (getOffset): Clarify docs. Add argument checks.
3322 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3323 (equals,hasSameRules,toString,readObject): Use startTimeMode and
3326 2004-06-10 Tom Tromey <tromey@redhat.com>
3328 * interpret.cc (run): Handle wide fload.
3330 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
3332 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
3334 2004-06-05 Michael Koch <konqueror@gmx.de>
3336 * javax/swing/SwingConstants.java
3337 (NEXT): New constant.
3338 (PREVIOUS): Likewise.
3340 2004-06-05 Michael Koch <konqueror@gmx.de>
3342 * javax/swing/UIManager.java
3343 (LookAndFeel): Made public.
3344 (LookAndFeel.getName): Likewise.
3345 (LookAndFeel.getClassName): Likewise.
3347 2004-06-03 Michael Koch <konqueror@gmx.de>
3349 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3350 (requestFocus): Revert last changes.
3351 (gtkRequestFocus): Removed.
3352 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3353 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3355 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
3356 Reverted last patch.
3357 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3358 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
3359 Reverted comment change.
3361 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3363 * javax/swing/JCheckBoxMenuItem.java:
3365 * javax/swing/JMenu.java: Likewise.
3366 * javax/swing/JMenuBar.java: Likewise.
3367 * javax/swing/JMenuItem.java: Likewise.
3368 * javax/swing/JPopupMenu.java: Likewise.
3369 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3370 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3371 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3372 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3373 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3374 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3375 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3377 2004-06-01 Tom Tromey <tromey@redhat.com>
3379 * java/io/ObjectStreamField.java: Cleaned up imports.
3381 2004-06-01 Michael Koch <konqueror@gmx.de>
3383 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
3385 2004-06-01 Mark Wielaard <mark@klomp.org>
3387 * java/io/Writer.java (Writer(Object)): Fixed API doc.
3389 2004-06-01 Michael Koch <konqueror@gmx.de>
3391 * java/security/Security.java
3392 (insertProviderAt): Use equals() instead of ==.
3393 (removeProvicer): Likewise.
3394 (getProvider): Likewise.
3395 * java/security/Signature.java
3396 (sign): Don't set state to UNINITIALIZED.
3399 2004-06-01 Mark Wielaard <mark@klomp.org>
3401 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
3402 Implement by calling gtkRequestFocus.
3403 (gtkRequestFocus): New native method.
3404 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3405 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
3407 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3409 (filter_expose_event_handler):
3411 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3412 (menu_pos): Mark static.
3414 2004-06-01 Michael Koch <konqueror@gmx.de>
3416 * java/text/CollationElementIterator.java,
3417 java/text/CollationKey.java,
3418 java/text/RuleBasedCollator.java: New versions from GNU classpath.
3419 * testsuite/libjava.mauve/xfails: Removed all
3420 java.text.CollationElementIterator tests.
3422 2004-06-01 Michael Koch <konqueror@gmx.de>
3424 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
3426 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
3427 Java 1.5 keyword usage.
3429 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3431 * javax/swing/plaf/basic/BasicMenuUI.java:
3432 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3433 Call getPath() from super class instead.
3435 2004-05-31 Michael Koch <konqueror@gmx.de>
3437 * java/io/SequenceInputStream.java:
3438 Rename enum to e because enum is a keyword in Java 1.5.
3440 2004-05-31 Michael Koch <konqueror@gmx.de>
3442 * gnu/java/rmi/rmic/CompilerProcess.java:
3443 Fixed javadoc to by XHTML compliant.
3445 2004-05-30 Mark Wielaard <mark@klomp.org>
3447 * java/awt/Toolkit.java (loadSystemColors): Implement.
3449 2004-05-30 Michael Koch <konqueror@gmx.de>
3451 * java/lang/System.java: Reordered imports.
3453 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
3455 * java/text/DecimalFormat.java
3456 (parse): Fixed parsing of decimal strings. Number of maximum
3457 digits to be read should now work.
3458 * java/text/SimpleDateFormat.java
3459 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
3460 formatter. This fixes DateFormatTest.
3462 2004-05-30 Michael Koch <konqueror@gmx.de>
3464 * java/nio/Buffer.java
3465 (limit): Fixed off by one error.
3466 * java/nio/CharBuffer.java
3467 (wrap): Fixed arguments, added javadocs.
3469 2004-05-30 Michael Koch <konqueror@gmx.de>
3471 * gnu/java/beans/BeanInfoEmbryo.java,
3472 java/awt/im/InputContext.java,
3473 javax/swing/tree/DefaultMutableTreeNode.java:
3474 Rename enum to e because enum is a keyword in Java 1.5.
3476 2004-05-30 Michael Koch <konqueror@gmx.de>
3478 * gnu/java/math/MPN.java,
3479 java/awt/geom/Arc2D.java:
3480 Fixed javadocs all over.
3482 2004-05-30 Michael Koch <konqueror@gmx.de>
3484 * java/awt/DefaultKeyboardFocusManager.java
3485 (dispatchEvent): Call method to get key event dispatchers.
3486 (dispatchKeyEvent): Call method to get key event post processors.
3487 * javax/swing/JComponent.java
3488 (listenerList): Made protected.
3489 * javax/swing/JOptionPane.java
3490 (message): Don't initialize.
3491 (JOptionPane): Set message text.
3492 * javax/swing/JPopupMenu.java
3493 (show): Fixed typo in argument name.
3494 * javax/swing/RepaintManager.java
3495 (paintDirtyRegions): Use public API of java.util.Map.
3496 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3497 (positionForMouseEvent): Removed redundant ';'.
3498 (continueDrag): Use method arguments.
3500 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
3502 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
3505 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
3507 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
3509 * gnu/gcj/RawDataManaged.java: New file.
3510 * java/lang/Thread.java (data): Declare as RawDataManaged.
3511 * java/lang/natThread.cc (init_native): Cast natThread data to
3512 RawDataManaged, not jobject.
3513 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
3514 * Makefile.in: Rebuilt.
3516 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
3518 * java/util/SimpleTimeZone.java: Reverting my last change until I
3519 can fix it properly.
3521 2004-05-27 Michael Koch <konqueror@gmx.de>
3523 * javax/swing/JPopupMenu.java
3524 (isVisible): Do not use visible directly.
3525 (setVisible): Likewise.
3526 * javax/swing/JWindow.java
3527 (JWindow): call accessible constructor.
3528 * javax/swing/RepaintManager.java
3529 (paintDirtyRegions): Use public methods to obtain iterator.
3531 2004-05-25 David Jee <djee@redhat.com>
3533 * java/awt/Container.java
3534 (remove): Set component's parent to null only after we removed the
3535 component from its parent's layout manager.
3537 2004-05-25 David Jee <djee@redhat.com>
3539 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3540 (GtkComponentPeer): Set bounds regardless of whether awtComponent
3542 * gnu/java/awt/peer/gtk/GtkListPeer.java
3543 (getSize): Change native method declaration.
3544 (minimumSize): Pass visible row count into getSize().
3545 (preferredSize): Likewise.
3546 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3547 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
3548 natural size. Use visible row count to determine the final height
3551 2004-05-21 Graydon Hoare <graydon@redhat.com>
3553 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
3554 (setClip): Minor correction to order of operations.
3556 * javax/swing/JScrollPane.java: Extend sketchy implementation.
3557 * javax/swing/ScrollPaneLayout.java: Likewise.
3558 * javax/swing/JViewPort.java: Likewise.
3559 * javax/swing/ViewportLayout.java: Likewise.
3561 * javax/swing/JComponent.java: Rewrite.
3562 * javax/swing/RepaintManager.java: Likewise.
3564 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
3565 * javax/swing/JList.java
3566 (setSelectedIndices):
3567 (getSelectedIndices):
3568 (getSelectedValues): New functions.
3569 (getPreferredScrollableViewportSize): Return preferred size.
3570 (getScrollableUnitIncrement):
3571 (getScrollableBlockIncrement): Initial implementations.
3572 * javax/swing/JRootPane.java: Clean up slightly.
3577 (isValidateRoot): Add overrides from JComponent.
3578 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
3579 * javax/swing/UIManager.java (getDimension): Return the dimension.
3581 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
3582 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3583 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3584 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3585 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3586 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
3587 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
3588 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3589 Likewise, and set background.
3590 * javax/swing/plaf/basic/BasicListUI.java:
3591 Likewise, and improve a bit.
3592 * javax/swing/plaf/basic/BasicScrollBarUI.java:
3593 Likewise, and adjust calculations.
3594 * javax/swing/plaf/basic/BasicViewportUI.java:
3595 Likewise, and improve a bit.
3596 * javax/swing/plaf/basic/BasicLookAndFeel.java
3597 (Button.margin): Shrink.
3599 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
3600 Hack to set horizontal always, workaround pango.
3602 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
3603 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
3604 Synchronize more often, check cairo status after ops,
3605 handle changes to cairo pattern API, check for disposal.
3607 2004-05-21 Olga Rodimina <rodimina@redhat.com>
3609 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3610 (BasicMenuItemUI): Create propertyChangeListener.
3611 (getPath):Implemented.
3612 (installListeners): Add propertyChangeListener to menuItem.
3613 (uninstallListeners): Remove propertyChangeListener from menuItem.
3614 (update): Implemented.
3615 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3616 (mouseEntered): Take insets of popup menu into account when
3617 calculating position of popup menu.
3619 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3621 * Makefile.am: Added new file.
3622 * Makefile.in: Regenerate.
3623 * javax/swing/JMenuBar.java:
3624 Started implementation.
3625 * javax/swing/JPopupMenu.java:
3626 (setVisible): Fixed location of lightweight/mediumweight
3628 (show): Fixed location of PopupMenu.
3629 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3630 New file. UI Delegate for JMenuBar.
3631 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3632 (mouseEntered): Corrected position of the submenu.
3634 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
3636 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
3637 to _gtk_accel_group_attach.
3638 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
3641 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
3642 package access. Don't override setFont.
3643 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
3644 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
3645 gtkWidgetRequestFocus package access.
3646 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
3648 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
3649 Give gtkWidgetRequestFocus package access.
3650 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
3651 gtkWidgetRequestFocus package access. Don't override setFont.
3652 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
3654 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3655 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
3657 (gtkSetFont): Likewise.
3658 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
3660 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3661 (gtkSetFont): Whitespace fix.
3663 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3664 (gtkWidgetSetUsize): Remove method.
3666 2004-05-18 David Jee <djee@redhat.com>
3668 * java/awt/image/MemoryImageSource.java
3669 (newPixels(int,int,int,int,boolean)): Set only the specified
3670 rectangle of pixels.
3671 (newPixels(byte[],ColorModel,int,int)): Implement.
3672 (newPixels(int[],ColorModel,int,int)): Implement.
3674 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3676 * Makefile.am: Added new file.
3677 * Makefile.in: Regenerate.
3678 * javax/swing/JMenu.java: Started
3680 * javax/swing/JPopupMenu.java:
3681 (insert): If specified index is -1, then
3682 add component at the end.
3683 (isPopupTrigger): Reimplemented.
3684 (JPopupMenu.LightWeightPopup): setBounds
3685 of the lightWeightPopup before adding it
3687 (javax/swing/plaf/basic/BasicIconFactory.java):
3688 (getMenuArrowIcon): Implemented.
3689 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3690 (getPreferredSize): Add size of the arrow icon
3691 if this menu item is instance of JMenu.
3692 (paintMenuItem): Paint arrow icon if this
3693 menu item is a submenu.
3694 * javax/swing/plaf/basic/BasicMenuUI.java:
3695 New File. UI Delegate for JMenu.
3697 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
3699 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
3700 Post KEY_TYPED events.
3701 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3702 (generates_key_typed_event): Remove function.
3704 2004-05-17 Olga Rodimina <rodimina@redhat.com>
3706 * javax/swing/JRootPane.java
3707 (JRootPane.RootLayout): Reimplemented to
3708 set bounds of contentPane and menuBar.
3709 (setJMenuBar): Add menu bar to the layered pane.
3710 (createLayeredPane): Set layout of layeredPane
3712 * javax/swing/JLayeredPane.java:
3713 (addImpl): Calculate index of the component in the
3714 layeredPane according to the specified position within
3717 2004-05-17 David Jee <djee@redhat.com>
3719 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3720 (setPixels): Change color model to the default model after
3722 * java/awt/image/MemoryImageSource.java
3723 (newPixels): Set only the specified rectangle of pixels.
3725 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
3727 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
3728 -l-java-beans -l-javax-accessibility -l-javax-swing.
3730 * java/awt/AWTEvent.java (toString): Print source's name rather
3731 than the source itself.
3733 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
3735 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
3737 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
3738 (gdk_color_to_java_color): New function.
3739 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
3741 2004-05-12 David Jee <djee@redhat.com>
3743 * java/awt/image/RGBImageFilter.java:
3744 Initialize origmodel as null.
3745 (makeColor): Fix pixel component order.
3746 (filterRGBPixels): Fix pixel iteration.
3747 (setPixels): Add extra checks for index color model. Convert pixels
3748 to default color model if necessary.
3749 (convertColorModelToDefault): New override method for byte pixels.
3750 (convertColorModelToDefault): For int pixels, fix pixel iteration.
3751 (makeColorbyDefaultCM): New override method for byte pixels.
3752 (makeColorbyDefaultCM): For int pixel, add color model as argument.
3753 (makeColor): Fix pixel component order.
3755 2004-05-11 Kim Ho <kho@redhat.com>
3757 * javax/swing/Box.java:
3758 Comment out more parts of Box.Filler.
3760 2004-05-11 Kim Ho <kho@redhat.com>
3762 * javax/swing/Box.java:
3763 Remove reference to AccessibleAWTComponent so
3766 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
3768 * gnu/java/awt/peer/gtk/GtkListPeer.java,
3769 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
3770 implementation of list peer to use GtkTreeView instead of
3771 deprecated GtkCList.
3773 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
3775 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3776 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
3777 (handleEvent): Remove keyChar argument to
3778 gtkWidgetDispatchKeyEvent calls.
3779 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
3781 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3782 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
3783 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
3786 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
3788 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3789 (gtkWidgetRequestFocus): Mark protected.
3790 (GtkComponentPeer): Only set the peer's bounds if its component
3792 * java/awt/Component.java (static): Set the default keyboard
3794 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
3795 requestFocusInWindow(temporary)): Don't request focus if the
3796 component is not showing. Get tree lock before traversing
3797 component hierarchy.
3798 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3799 Only set the global focus owner if it is not a Window.
3800 (processKeyEvent): Consume keystrokes associated with the focus
3801 traversal keystroke.
3802 (focusPreviousComponent, focusNextComponent, upFocusCycle,
3803 downFocusCycle): Call requestFocusInWindow instead of
3805 * java/awt/EventDispatchThread.java (run): Move setting of
3806 default keyboard focus manager to Component.java.
3807 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3808 (awt_keycode_to_keysym): New function.
3809 (gtkWidgetDispatchKeyEvent): Finish implementation.
3810 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3811 (pre_event_handler): Add FIXME comment.
3813 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
3814 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3815 (gtkWidgetRequestFocus): New method.
3816 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
3817 disable Tab and Shift-Tab keystrokes.
3818 (addNotify, appendText, insertText, replaceText): Simplify peer
3820 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3821 (connectSignals): Remove connections to "commit" signals.
3822 Remove C++-style comments.
3824 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
3825 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3826 (handleEvent): Activate GTK button when the space bar key is
3828 (gtkActivate): New method.
3830 2004-05-06 David Jee <djee@redhat.com>
3832 * java/awt/image/CropImageFilter.java
3833 (setPixels): Implement for byte array pixels.
3834 * java/awt/image/ReplicateScaleFilter.java
3835 (setPixels): Implement for byte array pixels.
3836 (replicatePixels): Overload for byte array pixels.
3838 2004-05-06 Kim Ho <kho@redhat.com>
3840 * javax/swing/Box.java:
3841 (getAccessibleContext): Return an instance of the
3844 2004-05-05 David Jee <djee@redhat.com>
3846 * gnu/java/awt/peer/gtk/GdkGraphics.java
3847 (drawImage): When component is null, use SystemColor.window as
3848 the default bgcolor.
3849 * gnu/java/awt/peer/gtk/GtkImage.java
3850 (setPixels): We can avoid iterating through the pixel rows only
3852 * java/awt/Image.java
3853 (getScaledInstance): Partially implement.
3854 * java/awt/image/CropImageFilter.java
3855 (setProperties): Fix "filter" property.
3856 (setPixels): Implement.
3857 * java/awt/image/ReplicateScaleFilter.java
3858 (setDimensions): Use scaled dimensions.
3859 (setPixels): Implement.
3860 (replicatePixels): New method.
3862 2004-05-05 David Jee <djee@redhat.com>
3864 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3865 (convertPixels): If either pixels or model is null, return null.
3866 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
3867 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
3868 is null, do nothing and return.
3870 2004-05-03 Kim Ho <kho@redhat.com>
3872 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
3873 (getGraphics): Like GtkFramePeer, the Graphics
3874 object needs to be translate to account for
3876 (postMouseEvent): New method. Account for
3878 (postExposeEvent): ditto.
3879 * javax/swing/Box.java: Stubbed.
3880 * javax/swing/JDialog.java: Ran through jalopy
3882 (JDialog): Call SwingUtilities' getOwnerFrame
3884 (setLayout): Check isRootPaneCheckingEnabled
3885 * javax/swing/JOptionPane.java: Re-implemented.
3886 * javax/swing/SwingUtilities.java:
3887 (getOwnerFrame): Static method to grab a default
3888 owner frame for Dialogs that don't specify owners.
3889 * javax/swing/event/SwingPropertyChangeSupport.java:
3890 (firePropertyChange): Fix early exit condition.
3891 * javax/swing/plaf/basic/BasicLabelUI.java:
3892 (paint): Avoid painting text if it is null
3894 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
3897 2004-05-03 Olga Rodimina <rodimina@redhat.com>
3899 * Makefile.am: Added new file.
3900 * Makefile.in: Regenerate.
3901 * javax/swing/JPopupMenu.java:
3902 Started implementation.
3903 * javax/swing/JWindow.java
3904 (JWindow): call super() if parent for window
3906 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3907 New File. UI Delegate for JPopupMenu.
3909 2004-04-30 Olga Rodimina <rodimina@redhat.com>
3911 * javax/swing/JApplet.java: Indicated that JApplet
3912 implements RootPaneContainer and made method of this
3914 * javax/swing/JFrame.java: Ditto.
3915 * javax/swing/JWindow.java: Ditto.
3917 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
3919 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3920 (nativeSetBounds): Call gdk_window_move in addition to
3923 * java/applet/Applet.java (preferredSize): Call parent's
3924 preferredSize if the applet stub is null.
3925 (minimumSize): Likewise for parent's minimumSize.
3927 2004-04-27 Olga Rodimina <rodimina@redhat.com>
3929 * javax/swing/JMenuItem.java
3930 (createActionPropertyChangeListener): Implemented.
3931 (processMouseEvent): Ditto.
3932 (fireMenuDragMouseEntered): Ditto.
3933 (fireMenuDragMouseExited): Ditto.
3934 (fireMenuDragMouseDragged): Ditto.
3935 (fireMenuDragMouseReleased): Ditto.
3936 (menuSelectionChanged): Ditto.
3937 (getSubElements): Ditto.
3938 (getComponent): Ditto.
3939 (addMenuDragMouseListener): Ditto.
3940 (removeMenuDragMouseListener):Ditto.
3941 (addMenuKeyListener): Ditto.
3942 (removeMenuKeyListener): Ditto.
3943 * javax/swing/plaf/basic/BasicMenuItemUI.java
3944 (doClick): Imlemented.
3945 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
3946 Don't handle mouse events here. Pass them to
3947 MenuSelectionManager.
3949 2004-04-26 Olga Rodimina <rodimina@redhat.com>
3950 Used correct version of jalopy configuration
3951 file to fix style in the files below.
3953 2004-04-26 Olga Rodimina <rodimina@redhat.com>
3955 * javax/swing/JCheckBoxMenuItem.java:
3956 Fixed style and removed unnecessary comments.
3957 * javax/swing/JMenuItem.java: Ditto.
3958 * javax/swing/JRadioButtonMenuItem.java: Ditto.
3959 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
3960 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
3961 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
3963 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
3965 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
3968 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
3970 * java/awt/ContainerOrderFocusTraversalPolicy.java
3971 (getComponentAfter): Start from current component and work up
3972 the component hierarchy until an acceptable component is found.
3973 Synchronize on tree lock.
3974 (getComponentBefore): Likewise.
3976 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
3978 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
3979 focus-related debugging messages.
3980 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
3981 * java/awt/EventDispatchThread.java: Likewise.
3982 * java/awt/KeyboardFocusManager.java: Likewise.
3983 * java/awt/Window.java: Likewise.
3984 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3985 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3987 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
3988 new C++-style comments to C-style comments.
3989 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3991 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3992 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3993 (handleEvent): Dispatch key press and key release events to
3995 (requestFocus): Post a FOCUS_GAINED event to the event queue.
3996 (gtkWidgetRequestFocus): New method.
3997 (gtkWidgetDispatchKeyEvent): Likewise.
3998 * java/awt/Component.java (requestFocus, requestFocus(boolean),
3999 requestFocusInWindow, requestFocusInWindow(boolean),
4000 getFocusCycleRootAncestor, nextFocus, transferFocus,
4001 transferFocusBackward, transferFocusUpCycle, hasFocus,
4002 isFocusOwner): Implement and document focus-handling methods.
4003 (setFocusTraversalKeys): Inherit focus traversal keys when
4004 keystrokes argument is null. Fix focus-handling documentation
4006 * java/awt/Container.java (setFocusTraversalKeys,
4007 getFocusTraversalKeys, areFocusTraversalKeysSet,
4008 isFocusCycleRoot, setFocusTraversalPolicy,
4009 getFocusTraversalPolicy, isFocusTraversalPolicySet,
4010 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
4011 Implement and document focus-handling methods.
4012 (transferFocusBackward): Remove method.
4013 (readObject, writeObject): Implement and document serialization
4015 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
4017 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
4019 * java/awt/DefaultKeyboardFocusManager.java: Implement and
4021 * java/awt/EventDispatchThread.java (run): Set default keyboard
4022 focus manager. Attempt to dispatch each event to the keyboard
4023 focus manager before normal dispatch.
4024 * java/awt/KeyboardFocusManager.java: Implement and partially
4026 * java/awt/Window.java (Window): Set focusCycleRoot to true.
4027 (show): Focus initial component when window is shown for the
4029 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
4030 (pre_event_handler): Replace complex key press and key release
4031 logic with simple callbacks into GtkComponentPeer.
4032 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
4034 2004-04-21 Olga Rodimina <rodimina@redhat.com>
4036 * javax/swing/MenuSelectionManager.java
4037 (componentForPoint): Added new method.
4038 (defaultManager): New Method. Implemented.
4039 (getSelectedPath): Ditto.
4040 (isComponentPartOfCurrentMenu): Ditto.
4041 (processKeyEvent): Added new method.
4042 (processMouseEvent): New Method. Implemented.
4043 (setSelectedPath): Ditto.
4046 2004-04-19 Kim Ho <kho@redhat.com>
4048 * java/awt/Container.java:
4049 (remove): Set the component's parent to null.
4050 (getComponentAt): Implement.
4051 * javax/swing/JComponent.java:
4052 (JComponent): Initialize defaultLocale
4053 (getDefaultLocale): Implement.
4054 (setDefaultLocale): ditto.
4055 * javax/swing/JSlider.java:
4056 (JSlider): Fix calculation of value.
4057 * javax/swing/JSplitPane.java: Implement.
4058 * javax/swing/plaf/basic/BasicLookAndFeel.java:
4059 Change SplitPane's default divider size.
4060 * javax/swing/plaf/basic/BasicScrollBarUI.java:
4061 (paint): Remove unused code.
4062 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
4063 Added comments and ran through jalopy.
4064 (setBasicSplitPaneUI): Get reference to hidden divider
4065 and set up one touch buttons if necessary.
4066 (setBorder): Fire propertyChangeEvent only if
4067 borders are different.
4068 (getPreferredSize): Defer to layout manager.
4069 (propertyChange): Implement.
4070 (oneTouchExpandableChanged): ditto.
4071 (createLeftOneTouchButton): Use BasicArrowButton.
4072 (createRightOneTouchButton): ditto.
4073 (moveDividerTo): New method. Moves the divider
4074 to a set location based on the last divider location.
4075 (BasicSplitPaneDivider::MouseHandler): Implement.
4076 (BasicSplitPaneDivider::OneTouchButton): Removed.
4077 (BasicSplitPaneDivider::DragController): Implement.
4078 (BasicSplitPaneDivider::VerticalDragController):
4080 (BasicSplitPaneDivider::DividerLayout): ditto.
4081 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
4082 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
4083 (calculateLayoutInfo): Don't show component if it's
4085 (paintTab): Fix title paint logic.
4087 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
4090 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
4091 (setStartRule,setEndRule): Don't take abs of day number.
4092 (getOffset): Clarify docs. Add argument checks.
4093 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
4094 (equals,hasSameRules,toString,readObject): Use startTimeMode and
4096 * testsuite/libjava.mauve/xfails
4097 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
4099 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
4101 Layout interfaces during preparation, not initialization.
4102 * java/lang/natClass.cc (initializeClass): Move
4103 _Jv_LayoutInterfaceMethods call...
4104 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
4106 2004-05-19 Anthony Green <green@localhost.localdomain>
4108 * Makefile.am (awt_java_source_files): Remove javax.rmi and
4110 * Makefile.in: Rebuilt.
4111 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
4112 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
4113 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
4114 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
4115 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
4116 gnu/javax/rmi/CORBA/DelegateFactory.java,
4117 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
4118 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
4119 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
4120 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
4121 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
4122 gnu/javax/rmi/PortableServer.java: Remove files.
4124 2004-05-19 Anthony Green <green@redhat.com>
4126 * Makefile.am: Define JAVA_EXT_DIRS.
4127 * Makefile.in: Rebuilt.
4128 * java/lang/natRuntime.cc (insertSystemProperties): Set
4129 java.ext.dirs property.
4131 2004-05-16 Mark Wielaard <mark@klomp.org>
4133 * java/io/Writer.java (Writer(Object)): Check for null lock object.
4135 2004-05-15 Mark Wielaard <mark@klomp.org>
4137 * doc/cni.sgml: Removed, merged into gcj.texi.
4139 2004-05-15 Mark Wielaard <mark@klomp.org>
4141 * Makefile.am (ordinary_java_source_files): Add new javax.print
4143 * Makefile.in: Regenerated.
4145 2004-05-15 Michael Koch <konqueror@gmx.de>
4147 * javax/print/attribute/standard/DateTimeAtCompleted.java,
4148 javax/print/attribute/standard/DateTimeAtCreation.java,
4149 javax/print/attribute/standard/DateTimeAtProcessing.java,
4150 javax/print/attribute/standard/DocumentName.java,
4151 javax/print/attribute/standard/JobHoldUntil.java,
4152 javax/print/attribute/standard/JobImpressionsCompleted.java,
4153 javax/print/attribute/standard/JobMessageFromOperator.java,
4154 javax/print/attribute/standard/JobName.java,
4155 javax/print/attribute/standard/JobOriginatingUserName.java,
4156 javax/print/attribute/standard/JobPriority.java,
4157 javax/print/attribute/standard/JobPrioritySupported.java,
4158 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4159 javax/print/attribute/standard/OutputDeviceAssigned.java,
4160 javax/print/attribute/standard/PrinterInfo.java,
4161 javax/print/attribute/standard/PrinterLocation.java,
4162 javax/print/attribute/standard/PrinterMakeAndModel.java,
4163 javax/print/attribute/standard/PrinterMessageFromOperator.java,
4164 javax/print/attribute/standard/PrinterName.java,
4165 javax/print/attribute/standard/QueuedJobCount.java,
4166 javax/print/attribute/standard/RequestingUserName.java:
4167 Fixed javadocs all over.
4169 2004-05-15 Michael Koch <konqueror@gmx.de>
4171 * javax/print/DocFlavor.java,
4172 javax/print/attribute/standard/ColorSupported.java,
4173 javax/print/attribute/standard/Compression.java,
4174 javax/print/attribute/standard/CopiesSupported.java,
4175 javax/print/attribute/standard/Fidelity.java,
4176 javax/print/attribute/standard/Finishings.java,
4177 javax/print/attribute/standard/JobImpressionsSupported.java,
4178 javax/print/attribute/standard/JobKOctetsSupported.java,
4179 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4180 javax/print/attribute/standard/JobSheets.java,
4181 javax/print/attribute/standard/JobState.java,
4182 javax/print/attribute/standard/JobStateReason.java,
4183 javax/print/attribute/standard/JobStateReasons.java,
4184 javax/print/attribute/standard/Media.java,
4185 javax/print/attribute/standard/MediaSizeName.java,
4186 javax/print/attribute/standard/MultipleDocumentHandling.java,
4187 javax/print/attribute/standard/NumberUpSupported.java,
4188 javax/print/attribute/standard/OrientationRequested.java,
4189 javax/print/attribute/standard/PDLOverrideSupported.java,
4190 javax/print/attribute/standard/PageRanges.java,
4191 javax/print/attribute/standard/PresentationDirection.java,
4192 javax/print/attribute/standard/PrintQuality.java,
4193 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4194 javax/print/attribute/standard/PrinterMoreInfo.java,
4195 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4196 javax/print/attribute/standard/PrinterResolution.java,
4197 javax/print/attribute/standard/PrinterState.java,
4198 javax/print/attribute/standard/PrinterStateReason.java,
4199 javax/print/attribute/standard/PrinterStateReasons.java,
4200 javax/print/attribute/standard/PrinterURI.java,
4201 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4202 javax/print/attribute/standard/Severity.java,
4203 javax/print/attribute/standard/SheetCollate.java,
4204 javax/print/attribute/standard/Sides.java:
4205 Added serialVersionUID and removed final keyword where it doenst
4208 2004-05-15 Michael Koch <konqueror@gmx.de>
4210 * javax/print/PrintServiceLookup.java: New file.
4212 2004-05-15 Michael Koch <konqueror@gmx.de>
4214 * javax/print/DocFlavor.java:
4215 Implemented all flavor classes.
4217 2004-05-15 Michael Koch <konqueror@gmx.de>
4219 * javax/print/attribute/standard/ColorSupported.java,
4220 javax/print/attribute/standard/Compression.java,
4221 javax/print/attribute/standard/CopiesSupported.java,
4222 javax/print/attribute/standard/Fidelity.java,
4223 javax/print/attribute/standard/Finishings.java,
4224 javax/print/attribute/standard/JobImpressionsSupported.java,
4225 javax/print/attribute/standard/JobKOctetsSupported.java,
4226 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4227 javax/print/attribute/standard/JobSheets.java,
4228 javax/print/attribute/standard/JobState.java,
4229 javax/print/attribute/standard/JobStateReason.java,
4230 javax/print/attribute/standard/JobStateReasons.java,
4231 javax/print/attribute/standard/Media.java,
4232 javax/print/attribute/standard/MediaSizeName.java,
4233 javax/print/attribute/standard/MultipleDocumentHandling.java,
4234 javax/print/attribute/standard/NumberUpSupported.java,
4235 javax/print/attribute/standard/OrientationRequested.java,
4236 javax/print/attribute/standard/PDLOverrideSupported.java,
4237 javax/print/attribute/standard/PageRanges.java,
4238 javax/print/attribute/standard/PresentationDirection.java,
4239 javax/print/attribute/standard/PrintQuality.java,
4240 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4241 javax/print/attribute/standard/PrinterMoreInfo.java,
4242 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4243 javax/print/attribute/standard/PrinterResolution.java,
4244 javax/print/attribute/standard/PrinterState.java,
4245 javax/print/attribute/standard/PrinterStateReason.java,
4246 javax/print/attribute/standard/PrinterStateReasons.java,
4247 javax/print/attribute/standard/PrinterURI.java,
4248 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4249 javax/print/attribute/standard/Severity.java,
4250 javax/print/attribute/standard/SheetCollate.java,
4251 javax/print/attribute/standard/Sides.java: New files.
4253 2004-05-15 Michael Koch <konqueror@gmx.de>
4255 * javax/print/Doc.java
4256 (getPrintData): Throws IOException.
4257 (getReaderForText): Likewise.
4258 (getStreamForBytes): Likewise.
4259 * javax/print/DocFlavor.java:
4260 Fixed filename in copyright.
4261 (serialVersionUID): New field.
4262 * javax/print/ServiceUIFactory.java:
4263 Made all constants final.
4264 * javax/print/AttributeException.java
4265 javax/print/MultiDoc.java
4266 javax/print/MultiDocPrintJob.java
4267 javax/print/MultiDocPrintService.java
4268 javax/print/StreamPrintService.java
4269 javax/print/URIException.java: New files.
4270 * javax/print/Makefile.am
4271 (EXTRA_DIST): Added all new files.
4273 2004-05-15 Michael Koch <konqueror@gmx.de>
4275 * javax/print/attribute/standard/Copies.java,
4276 javax/print/attribute/standard/DateTimeAtCompleted.java,
4277 javax/print/attribute/standard/DateTimeAtCreation.java,
4278 javax/print/attribute/standard/DateTimeAtProcessing.java,
4279 javax/print/attribute/standard/DocumentName.java,
4280 javax/print/attribute/standard/JobHoldUntil.java,
4281 javax/print/attribute/standard/JobImpressions.java,
4282 javax/print/attribute/standard/JobImpressionsCompleted.java,
4283 javax/print/attribute/standard/JobKOctets.java,
4284 javax/print/attribute/standard/JobKOctetsProcessed.java,
4285 javax/print/attribute/standard/JobMediaSheets.java,
4286 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
4287 javax/print/attribute/standard/JobMessageFromOperator.java,
4288 javax/print/attribute/standard/JobName.java,
4289 javax/print/attribute/standard/JobOriginatingUserName.java,
4290 javax/print/attribute/standard/JobPriority.java,
4291 javax/print/attribute/standard/JobPrioritySupported.java,
4292 javax/print/attribute/standard/NumberOfDocuments.java,
4293 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4294 javax/print/attribute/standard/NumberUp.java,
4295 javax/print/attribute/standard/OutputDeviceAssigned.java,
4296 javax/print/attribute/standard/PagesPerMinute.java,
4297 javax/print/attribute/standard/PagesPerMinuteColor.java:
4298 Fixed @return tag all over.
4300 2004-05-15 Michael Koch <konqueror@gmx.de>
4302 * javax/print/attribute/AttributeSetUtilities.java
4303 (verifyCategoryForValue): Fixed typo in javadoc.
4304 * javax/print/attribute/HashAttributeSet.java
4305 (containsKey): Fixed @return tag.
4306 (comtainsValue): Likewise.
4308 * javax/print/attribute/IntegerSyntax.java
4310 * javax/print/attribute/ResolutionSyntax.java
4312 (getCrossFeedResolution): Removed unused code.
4313 (getFeedResolution): Likewise.
4314 * javax/print/attribute/SetOfIntegerSyntax.java
4315 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
4316 (equals): Fixed @return tag.
4317 * javax/print/attribute/TextSyntax.java
4318 (TextSyntax): Take locale into account.
4319 (hashCode): Better implementation.
4321 2004-05-15 Michael Koch <konqueror@gmx.de>
4323 * javax/print/CancelablePrintJob.java,
4324 javax/print/Doc.java,
4325 javax/print/DocFlavor.java,
4326 javax/print/DocPrintJob.java,
4327 javax/print/FlavorException.java,
4328 javax/print/PrintException.java,
4329 javax/print/PrintService.java,
4330 javax/print/ServiceUIFactory.java: New files.
4332 2004-05-15 Mark Wielaard <mark@klomp.org>
4334 * gnu/regexp/CharIndexedReader.java: Removed.
4335 * gnu/regexp/REFilterReader.java: Likewise.
4336 * gnu/regexp/RETokenLookAhead.java: Likewise.
4337 * Makefile.am (ordinary_java_source_files): Remove above classes.
4338 * Makefile.in: Regenerated.
4340 2004-05-14 Tom Tromey <tromey@redhat.com>
4342 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
4343 not `XGraphicsConfiguration.XOffScreenImage'.
4345 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
4347 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
4349 2004-05-14 Steven Augart <augart@watson.ibm.com>
4351 * include/jni.h (_Jv_func): Removed.
4352 (struct JNINativeInterface): Use `void *' for reserved slots.
4353 (struct JNIInvokeInterface): Likewise.
4355 2004-05-11 Michael Koch <konqueror@gmx.de>
4357 * gnu/java/net/natPlainSocketImplPosix.cc
4358 (read): Fixed typo in expression.
4360 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
4362 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
4363 ld_library_additions. Adjust all calls to libjava_invoke to match
4366 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
4367 path to cxxflagslist.
4368 Pass path of libstdc++ to libjava_invoke.
4370 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
4371 libjava_invoke arguments.
4373 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
4375 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
4378 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
4380 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
4381 main binary against the JNI shared library.
4383 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4385 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
4386 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
4387 (SimpleTimeZone): Tweak docs. Add new variation.
4388 (setStartRule,setEndRule): Add new variations. Use
4389 startTimeMode and endTimeMode.
4391 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4393 * java/util/Calendar.java (getActualMinimum,
4394 getActualMaximum): Remove abstract. Implement.
4396 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4398 Run the jni tests using the interpreter.
4399 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
4400 options_cxx to shared lib compile command.
4401 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
4402 they are used to link the shared lib, not the main binary.
4403 Use libjava_invoke to run gij.
4405 2004-05-06 Michael Koch <konqueror@gmx.de>
4407 * java/util/logging/Level.java
4408 (parse): Use == instead of String.equals().
4410 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4412 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
4413 verify_field_signature and verify_method_signature, not
4414 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
4415 (_Jv_ClassReader::handleField): Likewise.
4416 (_Jv_ClassReader::handleMethod): Likewise.
4418 2004-05-06 Michael Koch <konqueror@gmx.de>
4420 * javax/swing/table/TableColumn.java:
4423 2004-05-06 Michael Koch <konqueror@gmx.de>
4425 * javax/imageio/spi/ImageReaderWriterSpi.java
4426 (ImageReaderWriterSpi): Made it public.
4427 * javax/imageio/stream/ImageInputStream.java:
4430 2004-05-06 Michael Koch <konqueror@gmx.de>
4432 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4435 2004-05-06 Michael Koch <konqueror@gmx.de>
4437 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
4438 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
4440 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
4441 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
4442 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4443 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
4444 their own source file.
4445 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4446 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
4447 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
4448 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
4449 (create): Define variable on top of function.
4450 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
4451 (menu_pos): Prototyped.
4452 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4453 (setTitle): Removed.
4454 * jni/gtk-peer/gthread-jni.c
4455 (gdk_threads_wake): Removed.
4456 * Makefile.am (gtk_c_source_files): Added new files
4457 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
4458 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
4459 * Makefile.in: Regenerated.
4461 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
4463 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
4466 2004-05-05 Mark Wielaard <mark@klomp.org>
4468 * javax/swing/AbstractButton.java: Replace special HTML entities with
4470 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
4471 * javax/swing/DefaultButtonModel.java: Likewise.
4472 * javax/swing/DefaultListModel.java: Likewise.
4473 * javax/swing/JList.java: Likewise.
4474 * javax/swing/JSlider.java: Likewise.
4475 * javax/swing/ListModel.java: Likewise.
4476 * javax/swing/Popup.java: Likewise.
4477 * javax/swing/SwingUtilities.java: Likewise.
4479 2004-05-05 Michael Koch <konqueror@gmx.de>
4481 * javax/swing/AbstractButton.java,
4482 javax/swing/ActionMap.java,
4483 javax/swing/DefaultButtonModel.java,
4484 javax/swing/DefaultListModel.java,
4485 javax/swing/ImageIcon.java,
4486 javax/swing/JComboBox.java,
4487 javax/swing/JComponent.java,
4488 javax/swing/JFrame.java,
4489 javax/swing/JInternalFrame.java,
4490 javax/swing/JMenuBar.java,
4491 javax/swing/JMenuItem.java,
4492 javax/swing/JOptionPane.java,
4493 javax/swing/JProgressBar.java,
4494 javax/swing/JRootPane.java,
4495 javax/swing/JScrollBar.java,
4496 javax/swing/JScrollPane.java,
4497 javax/swing/JSeparator.java,
4498 javax/swing/JSlider.java,
4499 javax/swing/JTabbedPane.java,
4500 javax/swing/JTable.java,
4501 javax/swing/JTextField.java,
4502 javax/swing/JToolBar.java,
4503 javax/swing/JToolTip.java,
4504 javax/swing/JTree.java,
4505 javax/swing/JViewport.java,
4506 javax/swing/JWindow.java,
4507 javax/swing/KeyStroke.java,
4508 javax/swing/LookAndFeel.java,
4509 javax/swing/SwingUtilities.java,
4510 javax/swing/Timer.java,
4511 javax/swing/ToolTipManager.java,
4512 javax/swing/UIDefaults.java,
4513 javax/swing/border/TitledBorder.java,
4514 javax/swing/filechooser/FileSystemView.java,
4515 javax/swing/plaf/basic/BasicButtonListener.java,
4516 javax/swing/plaf/basic/BasicButtonUI.java,
4517 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
4518 javax/swing/plaf/basic/BasicGraphicsUtils.java,
4519 javax/swing/plaf/basic/BasicLabelUI.java,
4520 javax/swing/plaf/basic/BasicMenuItemUI.java,
4521 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
4522 javax/swing/plaf/basic/BasicRootPaneUI.java,
4523 javax/swing/plaf/basic/BasicScrollBarUI.java,
4524 javax/swing/plaf/basic/BasicScrollPaneUI.java,
4525 javax/swing/plaf/basic/BasicSliderUI.java,
4526 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
4527 javax/swing/plaf/basic/BasicToggleButtonUI.java,
4528 javax/swing/table/JTableHeader.java,
4529 javax/swing/text/AbstractDocument.java,
4530 javax/swing/text/DefaultCaret.java,
4531 javax/swing/text/StyledEditorKit.java,
4532 javax/swing/tree/DefaultTreeCellEditor.java:
4535 2004-05-05 Michael Koch <konqueror@gmx.de>
4537 * java/util/prefs/AbstractPreferences.java
4538 (AbstractPreferences): Added parenthesis for clarity.
4539 Closes classpath bug #7940.
4541 2004-05-05 Tom Tromey <tromey@redhat.com>
4543 * javax/naming/CompoundName.java (endsWith): Look at correct
4544 element of source name.
4546 2004-05-05 Mark Wielaard <mark@klomp.org>
4548 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
4549 * java/util/HashMap.java (rehash): Add entry at start of bucket.
4551 2004-05-05 Tom Tromey <tromey@redhat.com>
4553 * java/io/BufferedReader.java (skip): Removed unused
4556 2004-05-05 Michael Koch <konqueror@gmx.de>
4558 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
4560 2004-05-05 Dalibor Topic <robilad@kaffe.org>
4562 * java/text/AttributedString.java,
4563 java/text/AttributedStringIterator.java,
4564 java/text/Collator.java,
4565 java/text/DecimalFormatSymbols.java,
4566 java/text/NumberFormat.java,
4567 java/text/RuleBasedCollator.java:
4570 2004-05-05 Tom Tromey <tromey@redhat.com>
4572 * java/text/Format.java: Cleaned up imports.
4573 * java/text/DecimalFormat.java: Cleaned up imports.
4574 * java/security/SecureRandom.java: Cleaned up imports.
4575 (SecureRandom): Removed unused variable.
4576 * java/security/UnresolvedPermission.java: Cleaned up imports.
4577 * java/util/Date.java (parse): Removed unused variable.
4578 * java/util/ResourceBundle.java: Cleaned up imports.
4579 (getBundle): Removed unused variable.
4580 (tryBundle): Likewise.
4581 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
4583 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4585 * java/text/SimpleDateFormat.java:
4586 (formatWithAttribute): New method. It implements
4587 the formatting process with attributes.
4588 (format): Use formatWithAttribute.
4589 (formatToCharacterIterator): New method. Use
4590 formatWithAttribute.
4592 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4594 * java/text/MessageFormat.java:
4595 (class Field): New class.
4596 (formatToCharacterIterator): New method.
4597 (format): Use formatInternal now.
4598 (formatInternal): New method. String formatter should
4599 be done here (with attributes). Attributes merging supported.
4600 (parse): More documentation.
4601 (getFormatsByArgumentIndex): New method.
4602 (setFormatByArgumentIndex): New method.
4603 (setFormatsByArgumentIndex): New method.
4605 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4607 * java/text/DecimalFormat.java
4608 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
4609 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
4610 (parse): Fixed handling of exponentiation notation and grouping.
4612 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4614 * java/text/DecimalFormat.java
4615 (scanFix): Build attribute array. Fixed error reporting.
4616 (applyPatternWithSymbols): Store attributes for the prefix and
4618 (formatInternal): New method. Changed the way the string is
4619 computed. Implemented attributes. Cleant up rounding in
4620 exponential notation.
4621 (format): Use formatInternal.
4622 (formatToCharacterIterator): New method.
4623 (exponentRound, negativePrefixRanges, positivePrefixRanges,
4624 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
4625 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
4628 2004-05-04 Dalibor Topic <robilad@kaffe.org>
4630 * java/security/interfaces/DSAKeyPairGenerator.java,
4631 java/security/interfaces/DSAPrivateKey.java,
4632 java/security/interfaces/DSAPublicKey.java,
4633 java/security/interfaces/RSAPrivateKey.java,
4634 java/security/interfaces/RSAPublicKey.java:
4637 2004-05-04 Michael Koch <konqueror@gmx.de>
4639 * java/nio/ByteBuffer.java,
4640 java/nio/CharBuffer.java,
4641 java/nio/DoubleBuffer.java,
4642 java/nio/FloatBuffer.java,
4643 java/nio/IntBuffer.java,
4644 java/nio/LongBuffer.java,
4645 java/nio/ShortBuffer.java:
4646 (compareTo): Fixed bogus implementation in all buffer classes.
4648 2004-05-04 Ingo Proetel <proetel@aicas.com>
4650 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
4651 32 bit pixels not 8 bit pixels.
4652 (isCompatibleRaster): Added javadoc comment.
4654 2004-05-04 Ingo Proetel <proetel@aicas.com>
4656 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
4659 2004-05-04 Ingo Proetel <proetel@aicas.com>
4661 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
4662 (getColorModel): Return the actual color model.
4663 (getRaster): Implemented.
4664 (ColorRaster): New inner class.
4665 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
4667 * java/awt/Color.java (<init>): Make exception more verbose.
4668 (createContext): Use ColorModel when creating a PaintContext.
4670 2004-05-04 Michael Koch <konqueror@gmx.de>
4672 * gnu/java/text/CharacterBreakIterator.java
4673 (previous): Removed unused variable.
4675 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
4677 * gnu/java/text/FormatBuffer.java,
4678 gnu/java/text/AttributedFormatBuffer.java,
4679 gnu/java/text/StringFormatBuffer.java: New classes to implement
4680 attributed iterators in java.text.
4681 * gnu/java/text/FormatCharacterIterator.java: Moved
4682 from java/text as it is an internal class.
4683 * java/text/FormatCharacterIterator.java: Removed.
4684 * java/text/Format.java:
4685 Import gnu.java.text.FormatCharacterIterator.
4686 * Makefile.am (java_source_files): Added new files.
4687 * Makefile.in: Regenerated.
4690 2004-05-04 Mark Wielaard <mark@klomp.org>
4692 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
4694 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
4696 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
4697 * Makefile.in: Rebuilt.
4699 2004-05-03 Mark Wielaard <mark@klomp.org>
4701 * gnu/java/security/der/DERReader.java: Call static methods staticly.
4702 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
4704 (set(String, String, int, String, String, String, String, String)):
4705 Assign this.file to path or path + "?" + query.
4706 * java/util/Arrays.java: Call static methods staticly.
4707 * java/util/zip/ZipEntry.java: Likewise.
4708 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
4709 dir to this.direction.
4710 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
4711 Assign static field only once.
4712 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
4714 2004-05-03 Mark Wielaard <mark@klomp.org>
4716 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
4717 unused variables hScrollbarHeight and vScrollbarWidth.
4718 (preferredSize): Likewise.
4719 * gnu/java/security/provider/DSAParameters.java (engineToString):
4720 Removed unused call to System.getProperty("line.seperator");
4721 * java/security/Security.java (loadProviders): Return result.
4723 2004-05-03 Tom Tromey <tromey@redhat.com>
4725 * java/net/URLStreamHandler.java (toExternalForm): Removed
4728 * java/math/BigDecimal.java (divide): Removed unused variable.
4729 * java/lang/Throwable.java: Cleaned up imports.
4730 * java/lang/ClassLoader.java: Cleaned up imports.
4731 * java/io/FilePermission.java (implies): Removed unused
4733 * java/awt/TextComponent.java: Removed unused import.
4734 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
4735 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
4736 * gnu/java/text/WordBreakIterator.java: Removed unused import.
4737 * gnu/java/text/SentenceBreakIterator.java: Removed unused
4739 * gnu/java/text/LineBreakIterator.java: Removed unused import.
4740 * gnu/java/text/CharacterBreakIterator.java: Removed
4742 * gnu/java/security/provider/DSAKeyPairGenerator.java:
4744 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
4745 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
4747 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
4748 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
4749 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
4750 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
4751 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
4752 (lookupProviders): Removed unused variable.
4753 (loadNextServiceProvider): Likewise.
4754 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
4756 2004-05-03 Michael Koch <konqueror@gmx.de>
4758 Fixes PR libgcj/14695:
4759 * java/net/NetworkInterface.java
4760 (getByName): Return null when no interface was found.
4762 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
4763 Tom Tromey <tromey@redhat.com>
4765 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
4766 additional option "-Wmissing-prototypes" for compiling C sources.
4767 Print actual filename for pass/fail rather than $name.c.
4768 * testsuite/libjava.jni/PR15133.java: New testcase file.
4769 * testsuite/libjava.jni/PR15133.c: Likewise.
4770 * testsuite/libjava.jni/PR15133.out: Likewise.
4772 2004-04-30 Roger Sayle <roger@eyesopen.com>
4774 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
4777 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
4779 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
4780 limit the maximum heap size to avoid unnecessary thrashing.
4782 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
4784 * java/text/CollationElementIterator.java (reset): Reset
4785 lookahead variables.
4787 2004-04-23 Mark Wielaard <mark@klomp.org>
4789 * jni/classpath/jcl.c: Changed C++ comments into C comments.
4791 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4793 * java/sql/DriverManager.java:
4796 2004-04-23 Michael Koch <konqueror@gmx.de>
4799 (hashcode): Don't initialize with default value explicitely.
4800 (getContent): Removed redundant "final" keyword.
4801 (openStream): Likewise.
4802 (getURLStreamHandler): Fixed coding style.
4803 * java/net/URLConnection.java
4804 (defaultAllowUserInteraction): Don't initialize with default value
4806 (connected): Likewise.
4807 (doOutput): Likewise.
4808 (ifModifiedSince): Likewise.
4809 (dateformats_initialized): Likewise.
4810 (setURLStreamHander): Use StreamTokenizer where it belongs to.
4812 2004-04-23 Michael Koch <konqueror@gmx.de>
4814 * gnu/java/nio/channels/FileChannelImpl.java
4815 (SET, CUR): Unused, removed.
4816 (read): Implement here directly.
4817 (implRead): Removed.
4818 (write): Implement here directly.
4819 (implWrite): Removed.
4821 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4823 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
4824 javax/rmi/CORBA/Stub.java,
4825 javax/rmi/CORBA/Util.java,
4826 javax/rmi/CORBA/ValueHandler.java,
4827 javax/rmi/CORBA/ValueHandler.java,
4828 javax/rmi/PortableRemoteObject.java:
4831 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4833 * java/util/jar/JarFile.java,
4834 java/util/jar/JarInputStream.java,
4835 java/util/jar/JarOutputStream.java,
4836 java/util/jar/Manifest.java:
4839 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4841 * java/util/ArrayList.java,
4842 java/util/Calendar.java,
4843 java/util/Currency.java,
4844 java/util/HashMap.java,
4845 java/util/HashSet.java,
4846 java/util/Hashtable.java,
4847 java/util/LinkedList.java,
4848 java/util/Properties.java,
4849 java/util/PropertyPermission.java,
4850 java/util/TimeZone.java,
4851 java/util/TreeMap.java,
4852 java/util/TreeSet.java,
4853 java/util/Vector.java,
4854 java/util/WeakHashMap.java:
4857 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4859 * java/util/logging/FileHandler.java,
4860 java/util/logging/Formatter.java,
4861 java/util/logging/Handler.java,
4862 java/util/logging/Logger.java,
4863 java/util/logging/SimpleFormatter.java,
4864 java/util/logging/XMLFormatter.java:
4867 2004-04-22 Mark Wielaard <mark@klomp.org>
4869 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
4870 -Wno-long-long flags variable.
4871 (gtk_c_files): Use PEDANTIC_CFLAGS.
4872 * Makefile.in: Regenerated.
4874 2004-04-22 Mark Wielaard <mark@klomp.org>
4876 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4877 Changed C++ comments into C comments.
4878 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
4881 2004-04-22 Michael Koch <konqueror@gmx.de>
4883 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
4884 Merged copyright year with GNU classpath.
4886 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4888 * javax/security/auth/x500/X500Principal.java:
4891 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4893 * javax/swing/JSlider.java:
4894 Fixed HTML tags in comments.
4896 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4898 * javax/accessibility/AccessibleText.java:
4901 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
4903 * java/net/URLStreamHandler.java
4904 (parseURL): Convert the file path to using '/' instead of native
4907 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
4910 (userInfo): New field.
4911 (URL): Set authority to the right value.
4912 (setURL): Fixed authority and file initialization.
4913 * java/net/URLStreamHandler.java
4914 (parseURL): Take care of the query tag. Build authority.
4915 (toExternalForm): Fixed URL building using authority.
4917 2004-04-22 Michael Koch <konqueror@gmx.de>
4919 * java/net/Socket.java
4920 (impl): Made package-private.
4921 * java/net/ServerSocket.java
4922 (implAccept): Access Socket.impl field directly.
4924 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4926 * java/util/prefs/Preferences.java,
4927 java/util/prefs/InvalidPreferencesFormatException.java,
4928 java/util/prefs/BackingStoreException.java,
4929 java/util/prefs/AbstractPreferences.java:
4932 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4934 * java/util/regex/Matcher.java,
4935 java/util/regex/Pattern.java:
4938 2004-04-22 Michael Koch <konqueror@gmx.de>
4940 * java/nio/charset/IllegalCharsetNameException.java
4941 (charsetName): Made private.
4942 (IllegalCharsetNameException): Added @param tag to javadoc.
4943 (getCharsetName): Added @return tag to javadoc.
4944 * java/nio/charset/MalformedInputException.java
4945 (MalformedInputException): Added @param tag to javadoc.
4946 (getInputLength): Revised method description, added @return tag.
4947 (getMessage): Added @return tag.
4949 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
4951 * java/awt/Font.java (deriveFont): Implement missing variants.
4952 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
4955 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
4957 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
4958 Set method->index values for interface methods to their itable index.
4959 (initializeClass): Call _Jv_LayoutInterfaceMethods.
4961 2004-04-21 Michael Koch <konqueror@gmx.de>
4963 * java/nio/DirectByteBufferImpl.java
4964 (shiftDown): Made static, give address as argument and
4965 provide a convenience method that overwrites shiftDown in
4966 ByteBufferImpl and calls the native shiftDown.
4967 * java/nio/MappedByteBufferImpl.java
4968 (): Use optimized method in DirectByteBufferImpl.
4969 * java/nio/natDirectByteBufferImpl.cc
4970 (shiftDown): Changed method signature. Removed usage of array_offset.
4972 2004-04-21 Michael Koch <konqueror@gmx.de>
4974 * gnu/java/net/natPlainSocketImplPosix.cc
4975 (SocketInputStream::read): Make sure returned data is a byte value.
4977 2004-04-21 Michael Koch <konqueror@gmx.de>
4979 * gnu/classpath/ServiceFactory.java,
4980 gnu/classpath/ServiceProviderLoadingAction.java,
4981 javax/imageio/ImageReader.java,
4982 javax/imageio/ImageTranscoder.java,
4983 javax/imageio/ImageWriter.java,
4984 javax/imageio/package.html,
4985 javax/imageio/spi/IIOServiceProvider.java,
4986 javax/imageio/spi/ImageInputStreamSpi.java,
4987 javax/imageio/spi/ImageOutputStreamSpi.java,
4988 javax/imageio/spi/ImageReaderWriterSpi.java,
4989 javax/imageio/spi/ImageTranscoderSpi.java,
4990 javax/imageio/spi/RegisterableService.java,
4991 javax/imageio/spi/ServiceRegistry.java,
4992 javax/imageio/spi/package.html,
4993 javax/imageio/stream/IIOByteBuffer.java,
4994 javax/imageio/stream/ImageInputStream.java,
4995 javax/imageio/stream/ImageOutputStream.java,
4996 javax/imageio/stream/package.html:
4999 (ordinary_java_source_files): Added
5000 gnu/classpath/ServiceFactory.java and
5001 gnu/classpath/ServiceProviderLoadingAction.java.
5002 (javax_source_files): Added
5003 javax/imageio/ImageReader.java,
5004 javax/imageio/ImageTranscoder.java,
5005 javax/imageio/ImageWriter.java,
5006 javax/imageio/spi/IIOServiceProvider.java,
5007 javax/imageio/spi/ImageInputStreamSpi.java,
5008 javax/imageio/spi/ImageOutputStreamSpi.java,
5009 javax/imageio/spi/ImageReaderWriterSpi.java,
5010 javax/imageio/spi/ImageTranscoderSpi.java,
5011 javax/imageio/spi/RegisterableService.java,
5012 javax/imageio/spi/ServiceRegistry.java,
5013 javax/imageio/stream/IIOByteBuffer.java,
5014 javax/imageio/stream/ImageInputStream.java and
5015 javax/imageio/stream/ImageOutputStream.java.
5016 * Makefile.in: Regenerated.
5018 2004-04-21 Michael Koch <konqueror@gmx.de>
5020 * java/util/Properties.java
5021 (load): Fix wrongly merged fix.
5023 2004-04-21 Mark Wielaard <mark@klomp.org>
5025 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
5026 malloc and free buf.
5028 2004-04-21 Dalibor Topic <robilad@kaffe.org>
5030 * javax/naming/AuthenticationException.java,
5031 javax/naming/AuthenticationNotSupportedException.java,
5032 javax/naming/CannotProceedException.java,
5033 javax/naming/CommunicationException.java,
5034 javax/naming/CompoundName.java,
5035 javax/naming/ConfigurationException.java,
5036 javax/naming/ContextNotEmptyException.java,
5037 javax/naming/InitialContext.java,
5038 javax/naming/InsufficientResourcesException.java,
5039 javax/naming/InterruptedNamingException.java,
5040 javax/naming/LimitExceededException.java,
5041 javax/naming/LinkException.java,
5042 javax/naming/LinkLoopException.java,
5043 javax/naming/LinkRef.java,
5044 javax/naming/MalformedLinkException.java,
5045 javax/naming/Name.java,
5046 javax/naming/NameAlreadyBoundException.java,
5047 javax/naming/NameNotFoundException.java,
5048 javax/naming/NamingSecurityException.java,
5049 javax/naming/NoInitialContextException.java,
5050 javax/naming/NoPermissionException.java,
5051 javax/naming/NotContextException.java,
5052 javax/naming/PartialResultException.java,
5053 javax/naming/ReferralException.java,
5054 javax/naming/ServiceUnavailableException.java,
5055 javax/naming/SizeLimitExceededException.java,
5056 javax/naming/TimeLimitExceededException.java,
5057 javax/naming/directory/Attribute.java,
5058 javax/naming/directory/Attributes.java,
5059 javax/naming/directory/SearchResult.java,
5060 javax/naming/event/NamingExceptionEvent.java,
5061 javax/naming/spi/ResolveResult.java:
5064 2004-04-21 Mark Wielaard <mark@klomp.org>
5066 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
5067 Changed C++ comments into C comments. Removed commented out code.
5068 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5070 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
5072 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
5074 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
5076 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
5078 * native/jni/gtk-peer/gthread-jni.c:
5081 2004-04-21 Mark Wielaard <mark@klomp.org>
5083 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
5084 static fields defined in interface.
5085 * javax/awt/JDialog.java: Likewise.
5086 (JDialog): Make constructors public.
5087 (getDefaultCloseOperation): Make public.
5088 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
5089 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
5090 * javax/swing/JViewport.java (JViewport): Make constructor public.
5092 2004-04-21 Michael Koch <konqueror@gmx.de>
5094 * java/util/Map.java
5095 (Entry): Removed redundant "static" modifier.
5096 * java/text/AttributedCharacterIterator.java:
5097 Updated copyright year.
5099 2004-04-20 Michael Koch <konqueror@gmx.de>
5101 * javax/naming/directory/SearchControls.java:
5102 Don't explicitely extend java.lang.Object.
5103 * javax/naming/spi/DirStateFactory.java:
5104 Merged copyright year with GNU classpath.
5106 2004-04-20 Michael Koch <konqueror@gmx.de>
5108 * java/nio/channels/Channels.java:
5109 Merged coding style with GNU classpath.
5111 2004-04-20 Michael Koch <konqueror@gmx.de>
5113 * java/net/ServerSocket.java
5114 Merged coding style from GNU classpath.
5116 2004-04-20 Michael Koch <konqueror@gmx.de>
5118 * java/io/BufferedWriter.java:
5119 Reordered variables to be at top of the class.
5120 (localFlush): Removed redundant final keyword.
5122 2004-04-20 Ingo Proetel <proetel@aicas.com>
5124 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
5126 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5128 * java/text/DecimalFormat.java (scanFix): Removed suffix check
5129 for percent and permill check.
5131 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5133 * java/text/FieldPosition.java
5134 (FieldPosition) Constructor now behaves as it should according
5135 to the java documentation.
5137 2004-04-20 Mark Wielaard <mark@klomp.org>
5139 * java/util/Properties.java: Use the word umlaut, not ä in api
5142 2004-04-20 Michael Koch <konqueror@gmx.de>
5144 * java/nio/Buffer.java,
5145 java/nio/channels/AlreadyConnectedException.java,
5146 java/nio/channels/AsynchronousCloseException.java,
5147 java/nio/channels/ByteChannel.java,
5148 java/nio/channels/CancelledKeyException.java,
5149 java/nio/channels/Channel.java,
5150 java/nio/channels/Channels.java,
5151 java/nio/channels/ClosedByInterruptException.java,
5152 java/nio/channels/ClosedChannelException.java,
5153 java/nio/channels/ClosedSelectorException.java,
5154 java/nio/channels/ConnectionPendingException.java,
5155 java/nio/channels/DatagramChannel.java,
5156 java/nio/channels/FileChannel.java,
5157 java/nio/channels/FileLock.java,
5158 java/nio/channels/FileLockInterruptionException.java,
5159 java/nio/channels/GatheringByteChannel.java,
5160 java/nio/channels/IllegalBlockingModeException.java,
5161 java/nio/channels/IllegalSelectorException.java,
5162 java/nio/channels/InterruptibleChannel.java,
5163 java/nio/channels/NoConnectionPendingException.java,
5164 java/nio/channels/NonReadableChannelException.java,
5165 java/nio/channels/NonWritableChannelException.java,
5166 java/nio/channels/NotYetBoundException.java,
5167 java/nio/channels/NotYetConnectedException.java,
5168 java/nio/channels/OverlappingFileLockException.java,
5169 java/nio/channels/Pipe.java,
5170 java/nio/channels/ReadableByteChannel.java,
5171 java/nio/channels/ScatteringByteChannel.java,
5172 java/nio/channels/SelectableChannel.java,
5173 java/nio/channels/SelectionKey.java,
5174 java/nio/channels/Selector.java,
5175 java/nio/channels/ServerSocketChannel.java,
5176 java/nio/channels/SocketChannel.java,
5177 java/nio/channels/UnresolvedAddressException.java,
5178 java/nio/channels/UnsupportedAddressTypeException.java,
5179 java/nio/channels/WritableByteChannel.java,
5180 java/nio/channels/spi/AbstractInterruptibleChannel.java,
5181 java/nio/channels/spi/AbstractSelectableChannel.java,
5182 java/nio/channels/spi/AbstractSelectionKey.java,
5183 java/nio/channels/spi/AbstractSelector.java,
5184 java/nio/channels/spi/SelectorProvider.java,
5185 java/nio/charset/spi/CharsetProvider.java:
5186 Fixed javadocs and jalopied all over java.nio.
5188 2004-04-20 Michael Koch <konqueror@gmx.de>
5190 * java/nio/ByteBufferImpl.java,
5191 java/nio/CharBufferImpl.java,
5192 java/nio/DirectByteBufferImpl.java,
5193 java/nio/DoubleBufferImpl.java,
5194 java/nio/DoubleViewBufferImpl.java,
5195 java/nio/FloatBufferImpl.java,
5196 java/nio/FloatViewBufferImpl.java,
5197 java/nio/IntBufferImpl.java,
5198 java/nio/IntViewBufferImpl.java,
5199 java/nio/LongBufferImpl.java,
5200 java/nio/LongViewBufferImpl.java,
5201 java/nio/MappedByteBufferImpl.java,
5202 java/nio/ShortBufferImpl.java,
5203 java/nio/ShortViewBufferImpl.java:
5204 Made sure all classes are final and removed final keyword from all
5207 2004-04-20 Michael Koch <konqueror@gmx.de>
5209 * java/rmi/MarshalledObject.java,
5210 java/rmi/Naming.java,
5211 java/rmi/RemoteException.java,
5212 java/rmi/activation/ActivationException.java,
5213 java/rmi/server/ServerCloneException.java,
5214 java/security/AccessController.java,
5215 java/security/AlgorithmParameterGenerator.java,
5216 java/security/AlgorithmParameters.java,
5217 java/security/CodeSource.java,
5218 java/security/Identity.java,
5219 java/security/IdentityScope.java,
5220 java/security/KeyPairGenerator.java,
5221 java/security/KeyStore.java,
5222 java/security/Security.java,
5223 java/security/Signature.java,
5224 java/security/SignatureSpi.java,
5225 java/security/SignedObject.java,
5226 java/security/spec/DSAParameterSpec.java,
5227 java/security/spec/DSAPrivateKeySpec.java,
5228 java/security/spec/DSAPublicKeySpec.java,
5229 java/sql/Array.java,
5230 java/sql/DatabaseMetaData.java,
5231 java/sql/ResultSet.java,
5232 java/text/ChoiceFormat.java,
5233 java/text/CollationElementIterator.java,
5234 java/text/CollationKey.java,
5235 java/text/Collator.java,
5236 java/text/DateFormat.java,
5237 java/text/DateFormatSymbols.java,
5238 java/text/DecimalFormatSymbols.java,
5239 java/text/Format.java,
5240 java/text/ParsePosition.java,
5241 java/text/RuleBasedCollator.java,
5242 java/text/SimpleDateFormat.java,
5243 java/text/StringCharacterIterator.java,
5244 java/util/Collections.java,
5245 java/util/PropertyResourceBundle.java,
5246 java/util/ResourceBundle.java,
5247 java/util/StringTokenizer.java,
5248 java/util/jar/Attributes.java,
5249 java/util/logging/ConsoleHandler.java,
5250 java/util/logging/LogManager.java,
5251 java/util/logging/MemoryHandler.java,
5252 java/util/logging/SocketHandler.java,
5253 javax/naming/NamingException.java:
5254 Fixed javadoc, coding style and argument names all over.
5256 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5258 * java/io/FileDescriptor.java: (FileDescriptor) Added public
5259 constructor. (valid) Added null check.
5261 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5263 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
5264 * java/io/FileOutputStream.java
5265 (FileOutputStream) Reorganized constructors. Constructors now
5266 check whether the given path is directory.
5268 2004-04-20 Michael Koch <konqueror@gmx.de>
5270 * java/net/Authenticator.java,
5271 java/net/BindException.java,
5272 java/net/ConnectException.java,
5273 java/net/ContentHandler.java,
5274 java/net/ContentHandlerFactory.java,
5275 java/net/DatagramPacket.java,
5276 java/net/DatagramSocket.java,
5277 java/net/DatagramSocketImpl.java,
5278 java/net/DatagramSocketImplFactory.java,
5279 java/net/FileNameMap.java,
5280 java/net/HttpURLConnection.java,
5281 java/net/Inet4Address.java,
5282 java/net/Inet6Address.java,
5283 java/net/InetAddress.java,
5284 java/net/InetSocketAddress.java,
5285 java/net/JarURLConnection.java,
5286 java/net/MalformedURLException.java,
5287 java/net/MulticastSocket.java,
5288 java/net/NetPermission.java,
5289 java/net/NetworkInterface.java,
5290 java/net/NoRouteToHostException.java,
5291 java/net/PasswordAuthentication.java,
5292 java/net/PortUnreachableException.java,
5293 java/net/ProtocolException.java,
5294 java/net/ServerSocket.java,
5295 java/net/Socket.java,
5296 java/net/SocketAddress.java,
5297 java/net/SocketException.java,
5298 java/net/SocketImpl.java,
5299 java/net/SocketImplFactory.java,
5300 java/net/SocketOptions.java,
5301 java/net/SocketPermission.java,
5302 java/net/SocketTimeoutException.java,
5304 java/net/URISyntaxException.java,
5306 java/net/URLClassLoader.java,
5307 java/net/URLConnection.java,
5308 java/net/URLDecoder.java,
5309 java/net/URLEncoder.java,
5310 java/net/URLStreamHandler.java,
5311 java/net/URLStreamHandlerFactory.java,
5312 java/net/UnknownHostException.java,
5313 java/net/UnknownServiceException.java:
5314 Fixed javadocs, coding style and argument names all over.
5316 2004-04-20 Michael Koch <konqueror@gmx.de>
5318 * java/lang/Byte.java,
5319 java/lang/CharSequence.java,
5320 java/lang/ClassLoader.java,
5321 java/lang/Compiler.java,
5322 java/lang/Double.java,
5323 java/lang/Float.java,
5324 java/lang/Integer.java,
5325 java/lang/Long.java,
5326 java/lang/Math.java,
5327 java/lang/Number.java,
5328 java/lang/Package.java,
5329 java/lang/Runtime.java,
5330 java/lang/RuntimePermission.java,
5331 java/lang/SecurityManager.java,
5332 java/lang/Short.java,
5333 java/lang/StringBuffer.java,
5334 java/lang/System.java,
5335 java/lang/ThreadGroup.java,
5336 java/lang/Throwable.java,
5337 java/lang/reflect/InvocationHandler.java,
5338 java/lang/reflect/Proxy.java:
5339 Fixed javadocs, coding style and argument names all over.
5341 2004-04-20 Michael Koch <konqueror@gmx.de>
5343 * java/io/BufferedWriter.java,
5344 java/io/ByteArrayInputStream.java,
5345 java/io/CharArrayWriter.java,
5346 java/io/DataInput.java,
5347 java/io/DataInputStream.java,
5349 java/io/FilterInputStream.java,
5350 java/io/InputStream.java,
5351 java/io/InputStreamReader.java,
5352 java/io/ObjectInputStream.java,
5353 java/io/ObjectStreamClass.java,
5354 java/io/PipedInputStream.java,
5355 java/io/PipedReader.java,
5356 java/io/PushbackInputStream.java,
5357 java/io/PushbackReader.java,
5358 java/io/RandomAccessFile.java,
5359 java/io/SerializablePermission.java,
5360 java/io/StreamTokenizer.java,
5361 java/io/StringWriter.java,
5362 java/io/WriteAbortedException.java,
5363 java/io/Writer.java:
5364 Fixed javadocs all over, rename arguments to match javadocs,
5367 2004-04-20 Ingo Proetel <proetel@aicas.com>
5369 * java/awt/FontMetrics.java:
5370 (charsWidth): fixed accumulation of total_width
5371 (getWidth): simple default implementation
5372 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
5373 in Rectangle constructor.
5374 * java/awt/image/Raster.java (toString): Added method.
5375 * java/awt/image/SampleModel.java (<init>): Added error cause
5376 information to thrown exception.
5377 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
5379 (setDataElements): New method.
5380 (setPixels): New method.
5381 (toString): New method.
5383 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5385 * java/awt/image/ComponentColorModel.java
5386 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
5387 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
5388 Mauve tests on this method. Improved documentation.
5390 2004-04-20 Michael Koch <konqueror@gmx.de>
5392 * javax/swing/JLayeredPane.java,
5393 javax/swing/plaf/BorderUIResource.java,
5394 javax/swing/plaf/ComponentUI.java,
5395 javax/swing/undo/CompoundEdit.java,
5396 javax/swing/undo/StateEdit.java:
5397 Fixed HTML tags in javadocs all over.
5399 2004-04-20 Michael Koch <konqueror@gmx.de>
5401 * javax/print/attribute/EnumSyntax.java
5402 (getOffset): Made protected.
5403 * javax/print/attribute/HashAttributeSet.java
5404 (HashAttributeSet): Likewise.
5405 * javax/print/attribute/ResolutionSyntax.java
5406 (getFeedResolution): Fixed typo in exception name.
5407 (getCrossFeedResolution): Likewise.
5408 * javax/print/attribute/SetOfIntegerSyntax.java
5409 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
5410 * javax/print/attribute/TextSyntax.java
5411 (TextSyntax): Handle locale correctly.
5412 (hashCode): Calc better hashcode value.
5413 (equals): Fixed @return tag.
5414 (toString): New method.
5416 2004-04-20 Michael Koch <konqueror@gmx.de>
5418 * gnu/java/nio/FileLockImpl.java
5419 (static): Removed, not needed anymore.
5420 * gnu/java/nio/channels/FileChannelImpl.java
5421 (FileChannelImpl): Made final.
5422 (mode): Made private.
5423 (READ, WRITE, APPEND): Made public.
5424 (EXCL, SYNC, DSYNC): Likewise.
5425 (static): Load native JNI library, when needed.
5426 (length): Unused, removed.
5427 (available): Made public.
5428 (implPosition): Throws IOException.
5430 (implTruncate): Likewise.
5434 2004-04-20 Michael Koch <konqueror@gmx.de>
5436 * java/awt/AWTPermission.java,
5437 java/awt/Component.java,
5438 java/awt/ComponentOrientation.java,,
5439 java/awt/Dialog.java,
5440 java/awt/FontMetrics.java,
5441 java/awt/Graphics.java,
5442 java/awt/datatransfer/DataFlavor.java,
5443 java/beans/Introspector.java,
5444 java/beans/PropertyEditor.java,
5445 java/beans/PropertyEditorManager.java,
5446 java/beans/beancontext/BeanContextServiceProvider.java:
5447 Fixed HTML tags in javadocs all over.
5449 2004-04-20 Mark Wielaard <mark@klomp.org>
5451 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
5452 MissingResourceException is thrown.
5453 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
5454 null when a MissingResourceException is thrown. Should never happen.
5456 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5458 * java/awt/image/DataBufferShort.java,
5459 java/awt/image/DataBufferFloat.java,
5460 java/awt/image/DataBufferDouble.java,
5461 java/awt/image/PixelInterleavedSampleModel.java: New files.
5462 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
5463 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
5465 2004-04-20 Michael Koch <konqueror@gmx.de>
5467 * Makefile.am (java_source_files): Added
5468 java/awt/image/DataBufferDouble.java,
5469 java/awt/image/DataBufferFloat.java,
5470 java/awt/image/DataBufferShort.java and
5471 java/awt/image/PixelInterleavedSampleModel.java.
5472 * Makefile.in: Regenerated.
5474 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
5476 * gcj/cni.h (JvAllocObject): Remove these obsolete,
5477 undocumented CNI calls.
5478 * include/java-interp.h (_Jv_InterpClass): No longer
5479 extends java.lang.Class.
5480 * java/lang/Class.h (Class): Add new field `aux_info'.
5481 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
5482 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
5483 Use Class->aux_info instead.
5484 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
5485 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
5486 Use Class->aux_info instead.
5487 * java/io/natObjectInputStream.cc (allocateObject): Use
5489 * java/lang/natClass.cc (newInstance): Likewise.
5490 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
5491 * java/lang/natObject.cc (clone): Likewise.
5492 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
5493 * java/lang/natVMClassLoader.cc (defineClass): Don't use
5494 JvAllocObject. Allocate klass->aux_info here for interpreted
5497 2004-04-17 Mark Wielaard <mark@klomp.org>
5499 * javax/swing/JToggleButton.java (ToggleButtonModel):
5500 Make public static inner class.
5501 * javax/swing/JTabbedPane.java (setComponentAt):
5502 Call Page.setComponent().
5503 (SCROLL_TAB_LAYOUT): Make public, value is 1.
5504 (WRAP_TAB_LAYOUT): Make public, value is 0.
5505 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
5506 Make private static inner class.
5508 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
5510 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
5511 arguments to match new signature. Remove FIXME comments.
5513 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
5515 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
5517 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
5520 2004-04-02 Olga Rodimina <rodimina@redhat.com>
5522 * Makefile.am: Added new file.
5523 * Makefile.in: Regenerate.
5524 * javax/swing/ImageIcon.java:
5525 (ImageIcon(file)): set description of the icon
5527 * javax/swing/JCheckBoxMenuItem.java:
5528 Mostly Implemented. Work in progress.
5529 * javax/swing/JRadioButtonMenuItem.java:
5530 Reimplement constructors to use JToggleButtonModel.
5531 * javax/swing/plaf/basic/BasicIconFactory.java:
5532 (getCheckBoxMenuItemIcon): return check box
5534 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5535 paint menu item selected only when it is armed and
5538 2004-04-02 David Jee <djee@redhat.com>
5540 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5541 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
5542 * java/awt/Component.java
5543 (add): Set the parent of the popup as this component.
5544 * java/awt/PopupMenu.java
5545 (addNotify): Create popup menu when peer is null.
5546 (show): Call addNotify() if peer is null.
5547 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5548 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
5549 argument for gtk_menu_popup() as zero. This causes the popup menu to
5550 respond to any mouse button.
5552 2004-03-31 Olga Rodimina <rodimina@redhat.com>
5554 * Makefile.am: Added new file.
5555 * Makefile.in: Regenerate.
5556 * javax/swing/JRadioButtonMenuItem.java:
5558 * javax/swing/plaf/basic/BasicIconFactory.java:
5559 (getRadioButtonMenuItemIcon): Return
5561 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5562 (getPreferredSize): Add size of checkIcon if it
5564 (installDefaults): Don't initialize checkIcon.
5565 It's value will be set in subclasses.
5566 (uninstallDefaults): remove uninstallation of
5568 (paint): Moved code to paintMenuItem().
5569 (paintMenuItem): Implemented.
5570 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
5571 UI delegate for JRadioButtonMenuItem.
5573 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5575 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5576 Corrected position of the accelerator.
5578 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5580 * Makefile.am: Added new file.
5581 * Makefile.in: Regenerate.
5582 * javax/swing/JMenuItem.java: Partly
5583 implemented. Work in progress
5584 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5585 Changed default value of acceleratorDelimiter.
5586 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5587 New class. Partly implemented.
5589 2004-03-26 Mark Wielaard <mark@klomp.org>
5591 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
5592 (item_activate): Declare label before use.
5593 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5594 (gtkSetFont): Removed unused variable label.
5595 (addExposeFilter): Declare variables before use.
5596 (removeExposeFilter): Likewise.
5597 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
5598 (ok_clicked): Declare str_fileName before use.
5600 2004-03-26 David Jee <djee@redhat.com>
5602 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
5603 (addSeparator): Remove.
5604 * java/awt/Menu.java
5605 (separator): Remove static final MenuItem field.
5606 (separatorLabel): New static final String field.
5607 (addSeparator): Do not use peer method; use add(MenuItem) instead.
5608 Use separatorLabel to denote that it is a separator.
5609 (insertSeparator): Create a new MenuItem with separatorLabel, instead
5610 of reusing the static separator instance, because a MenuItem instance
5611 can't be added more than once without being cloned.
5612 * java/awt/peer/MenuPeer.java
5613 (addSeparator): Remove from interface.
5615 2004-03-26 David Jee <djee@redhat.com>
5617 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5618 (connectSignals): New native method declaration.
5619 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
5620 * java/awt/MenuItem.java
5621 (getActionCommand): Return the label if the action command is not set.
5622 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
5623 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
5624 gtk_menu_shell_append().
5625 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
5626 (item_activate): Fix argument type.
5627 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
5629 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
5631 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
5632 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
5633 given. Add the menu widget's top-level GtkWindow to the global window
5634 group, so it can grab the pointer.
5635 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
5636 gtk_menu_shell_append().
5638 2004-03-23 Graydon Hoare <graydon@redhat.com>
5640 * java/text/AttributedString.java
5641 (addAttribute): Fix off-by-one.
5642 (getIterator): Likewise.
5643 * java/text/AttributedStringIterator.java
5644 (getRunLimit): Correct logic.
5645 (getRunStart): Likewise.
5646 (getAttribute): Fix inequality.
5647 (getAttributes): Likewise.
5648 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
5650 2004-03-23 Kim Ho <kho@redhat.com>
5652 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5653 (calculateSizes): Return real width and height.
5655 2004-03-23 Kim Ho <kho@redhat.com>
5657 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
5658 (calculateTabRects): Set the selectedRun before
5659 trying to rotate tabs.
5661 2004-03-23 Kim Ho <kho@redhat.com>
5663 * Makefile.am: New file
5664 * Makefile.in: Regenerate
5665 * java/awt/Graphics.java: (drawRect):
5666 Draw to the correct point.
5667 * javax/swing/DefaultSingleSelectionModel.java
5668 (isSelected): Return true if the selected index
5670 * javax/swing/JLabel.java: Do not change mnemonic
5671 index if text is null.
5672 * javax/swing/JProgressBar.java: Use JComponent's
5674 * javax/swing/JScrollBar.java: Ditto.
5675 * javax/swing/JSlider.java: Ditto.
5676 * javax/swing/JTabbedPane.java: Reimplement.
5677 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5678 Add defaults for TabbedPane.
5679 * javax/swing/plaf/basic/BasicArrowButton.java:
5681 * javax/swing/plaf/basic/BasicProgressBarUI.java:
5682 (paintDeterminate): Don't paint String if it's
5684 (paintIndeterminate): ditto.
5685 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5688 2004-03-19 Michael Koch <konqueror@gmx.de>
5690 * java/awt/image/AffineTransformOp.java
5691 (AffineTransformOp): Made public.
5692 * javax/swing/JComponent.java
5693 (listenerList): Made protected.
5694 (accessibleContext): Likewise.
5695 * javax/swing/JList.java
5696 (valueChanged): Dont use internal fields of ListSelectionEvent.
5697 * javax/swing/JViewport.java
5698 (getView): Dont use internal fields of Component.
5699 (addImpl): Likewise.
5700 * javax/swing/Timer.java
5701 (isRunning): Made public.
5704 * javax/swing/UIDefaults.java
5705 (getInt): Made public.
5706 * javax/swing/plaf/basic/BasicListUI.java
5707 (mousePressed): Dont use internal fields of MouseEvent.
5708 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5709 * javax/swing/plaf/basic/BasicScrollBarUI.java
5710 (arrowIcon): Made static.
5711 * javax/swing/plaf/basic/BasicViewportUI.java
5712 (stateChanged): Dont use internal field on ChangeEvent.
5713 * javax/swing/text/JTextComponent.java
5714 (getUI): Call UIManager.getUI().
5715 (updateUI): Use getUI().
5717 2004-03-19 Graydon Hoare <graydon@redhat.com>
5719 * javax/swing/JComponent.java: Turn off double buffer by default.
5720 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
5721 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
5722 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
5723 Use cairo to copy areas.
5724 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
5725 Initialize and set clip region.
5727 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
5729 * java/applet/Applet.java (preferredSize): Override deprecated
5730 variant of getPreferredSize.
5731 (minimumSize): Override deprecated variant of getMinimumSize.
5733 2004-03-15 Olga Rodimina <rodimina@redhat.com>
5735 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5736 (drawImage(img,xform,bgcolor,obs)): New Method.
5737 Helper function that every drawImage method will
5739 (drawRaster): Added new parameter, bgcolor. All
5740 transparent pixels are changed to bgcolor before
5742 (drawRenderedImage): Fixed to use changed drawRaster().
5743 (drawImage(image,xform,obs): Fixed to use new helper function
5744 (drawImage(image,op,x,y)): Ditto.
5745 (drawImage (img,x,y,observer)): Ditto.
5746 ((PainterThread) bgcolor): New Field.
5747 ((PainterThread) (setPixels)): Changed all transparent pixels
5749 (drawImage(img,x,y,width,height,bgcolor,observer)):
5750 Fixed FIXME - all the transparent pixels are
5751 changed to the specified bgcolor.
5752 (drawImage(img, x, y, width, height, observer): Changed to
5754 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
5755 Fixed FIXME- changed all transparent pixels to bgcolor.
5756 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
5757 Changed to use function above.
5759 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
5761 * java/applet/Applet.java (dimensions): New field.
5762 (getDimensions): New method.
5763 (getPreferredSize): Call getDimensions.
5764 (getMinimumSize): Likewise.
5766 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
5768 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
5769 * jni/classpath/jnilink.c: Likewise.
5771 * java/applet/Applet.java (getPreferredSize): New method.
5772 (getMinimumSize): New method.
5774 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
5776 * prims.cc (_Jv_AllocObject): Remove `size' argument.
5777 (_Jv_AllocObjectNoFinalizer): Likewise.
5778 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
5779 (_Jv_AllocPtrFreeObject): Likewise.
5780 (_Jv_AllocString): Moved from natString.cc. Call collector interface
5781 directly even in the JVMPI case.
5782 * gcj/cni.h (JvAllocObject): Remove `size' argument from
5783 _Jv_AllocObject calls.
5784 * gcj/javaprims.h: Update prototypes.
5785 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
5786 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
5787 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
5789 2004-04-14 Andrew Haley <aph@redhat.com>
5790 Bryce McKinlay <mckinlay@redhat.com>
5792 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
5793 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
5794 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
5796 * testsuite/libjava.lang/InvokeInterface.java: New file.
5797 * testsuite/libjava.lang/InvokeInterface.out: New file.
5799 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
5801 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
5803 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
5804 StackTraceElement directly.
5805 (newElement): New native helper method to create StackTraceElement
5806 bypassing Java access control.
5807 (createStackTraceElement): Use newElement() instead of directly
5808 calling StackTraceElement's constructor.
5809 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
5811 2004-04-01 Michael Koch <konqueror@gmx.de>
5813 * java/lang/SecurityManager.java
5814 (checkAwtEventQueueAccess): Implemented.
5816 2004-04-01 Gary Benson <gbenson@redhat.com>
5818 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
5819 (_Jv_SearchMethodInClass): Likewise.
5821 2004-03-26 Peter Moon <peterm@miraculum.com>
5823 * java/text/NumberFormat.java: Fix spelling of setCurrency
5826 2004-03-21 Anthony Green <green@redhat.com>
5828 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
5829 recursion when searching for the system ClassLoader.
5831 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
5833 * java/net/ServerSocket.java
5834 (accept): Close the socket when error occured.
5836 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
5838 * java/net/URI.java (parseURI): Added unquoting.
5839 (unquote): New method.
5840 (quoteAuthority): Implemented.
5841 (quote(String,String)): New method.
5842 (quotePath): Implemented.
5843 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
5844 (getSchemeSpecificPart): Removed FIXME comment.
5845 (getRawAuthority): Return new rawAuthority field.
5846 (getAuthority): Removed FIXME comment.
5847 (getRawUserInfo): Return new rawUserInfo field.
5848 (getUserInfo): Removed FIXME comment.
5849 (getRawPath): Return new rawPath field.
5850 (getPath): Removed FIXME comment.
5851 (getRawQuery): Return new rawQuery field.
5852 (getQuery): Removed FIXME comment.
5853 (getRawFragment): Return new rawFragment field.
5854 (getFragment): Removed FIXME comment.
5856 2004-03-20 Michael Koch <konqueror@gmx.de>
5858 * java/net/URLConnection.java: Merged copyright year with classpath.
5860 2004-03-20 Norbert Frese <postfach@nfrese.net>
5862 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
5863 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
5864 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
5866 (getObjectInputStream): Return object reference, throw IOException if null.
5867 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
5868 (getObjectOutputStream): Return object reference, throw IOException if null.
5869 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
5870 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
5871 (UnicastConnectionManager): Throw RemoteException if port is not available.
5872 (getInstance): Throw RemoteException.
5873 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
5874 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
5875 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
5876 Collect Exceptions which are returned by a rmi-call and fix void returns.
5877 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
5878 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
5879 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
5880 (dispatch): Answer ping messages which are sent by other java implementions.
5881 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
5882 for every rmi-message and fix void return problems.
5883 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
5884 (UnicastServerRef): Throw RemoteException.
5885 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
5886 In some situations it is necessary to export a subclass of the class which has the _Stub.
5887 For instance when the class with has the _Stub is abstract.
5888 (findStubSkelClass): New method which looks for the class which has the _Stub.
5889 (getClientHost): Implementated.
5890 * gcc/libjava/java/rmi/server/RemoteServer.java
5891 (getClientHost): Implementated.
5892 * gcc/libjava/Makefile.am (rmi_java_source_files):
5893 Added gnu/java/rmi/server/RMIIncomingThread.java.
5894 * Makefile.in: Regenerated.
5896 2004-03-20 Michael Koch <konqueror@gmx.de>
5898 * java/net/InetAddress.java
5899 (getLocalHostname): Added javadoc.
5901 2004-03-19 Per Bothner <per@bothner.com>
5903 * configure.in: FILE variable overrides FLATFORM when linking
5904 natFileChannelXXX.cc.
5906 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
5907 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
5909 2004-03-19 Per Bothner <per@bothner.com>
5911 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
5912 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
5913 * Makefile.am: Update accordingly.
5914 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
5915 as aliases for UnicodeLittle and UnicodeBig.
5917 2004-03-20 Mark Wielaard <mark@klomp.org>
5919 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5920 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
5921 Don't access ws when it is null.
5922 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
5925 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
5927 * java/lang/ThreadGroup.java (list): Changed print to println.
5929 2004-03-19 Mark Wielaard <mark@klomp.org>
5931 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
5934 2004-02-10 Randolph Chung <tausq@debian.org>
5936 * configure.in: Build java for hppa target.
5937 * configure: Regenerate.
5938 * libjava/configure.host (hppa-*): Add target.
5939 * libjava/sysdeps/pa/lock.h: New file.
5941 2004-03-19 Mark Wielaard <mark@klomp.org>
5943 Reported by Stephen Crawley
5944 * java/io/FilePermission.java (implies): Use String.length() -1 to
5945 access last char of String.
5947 2004-03-19 Michael Koch <konqueror@gmx.de>
5949 * java/awt/image/AffineTransformOp.java
5950 (AffineTransformOp): Made public.
5951 * javax/swing/JComponent.java
5952 (listenerList): Made protected.
5953 (accessibleContext): Likewise.
5954 * javax/swing/JList.java
5955 (valueChanged): Dont use internal fields of ListSelectionEvent.
5956 * javax/swing/JViewport.java
5957 (getView): Dont use internal fields of Component.
5958 (addImpl): Likewise.
5959 * javax/swing/Timer.java
5960 (isRunning): Made public.
5963 * javax/swing/UIDefaults.java
5964 (getInt): Made public.
5965 * javax/swing/plaf/basic/BasicListUI.java
5966 (mousePressed): Dont use internal fields of MouseEvent.
5967 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5968 * javax/swing/plaf/basic/BasicScrollBarUI.java
5969 (arrowIcon): Made static.
5970 * javax/swing/plaf/basic/BasicViewportUI.java
5971 (stateChanged): Dont use internal field on ChangeEvent.
5972 * javax/swing/text/JTextComponent.java
5973 (getUI): Call UIManager.getUI().
5974 (updateUI): Use getUI().
5976 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5978 * verify.cc: Undef PC.
5980 2004-03-18 Michael Koch <konqueror@gmx.de>
5982 * java/nio/channels/spi/AbstractSelectableChannel.java
5983 (keys): Initialize at declaration.
5984 (locate): keys cant be null.
5986 (addSelectionKey): New method.
5987 (removeSelectionKey): New method.
5988 * java/nio/channels/spi/AbstractSelectionKey.java
5989 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
5990 * java/nio/channels/spi/AbstractSelector.java
5991 (provider): Javadoc added.
5992 (cancelledKeys): Javadoc added.
5993 (cancelKey): Javadoc added, add key to cancelledKeys.
5994 (deregister): Implemented.
5996 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5998 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
5999 MAP_FAILED to void *.
6001 2004-03-12 Graydon Hoare <graydon@redhat.com>
6003 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
6004 * javax/swing/JComponent.java (paint): Use persistent double buffer.
6005 * javax/swing/JList.java (ListListener): Revalidate on changes.
6006 * javax/swing/JScrollPane.java: Reimplement.
6007 * javax/swing/JViewport.java: Reimplement.
6008 * javax/swing/ScrollPaneLayout.java: Reimplement.
6009 * javax/swing/ViewportLayout.java: Tidy up.
6010 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
6011 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
6012 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
6013 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
6016 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
6018 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6019 (window_wm_protocols_filter): New function.
6020 (window_focus_in_cb): Remove function.
6021 (window_focus_out_cb): Likewise.
6022 (window_focus_or_active_state_change_cb): New function.
6023 (create): Add filter that removes WM_TAKE_FOCUS client messages.
6024 (connectSignals): Don't attach handlers to focus-in-event or
6025 focus-out-event signals. Handle notify signal.
6027 2004-03-11 David Jee <djee@redhat.com>
6029 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6030 (gtkSetLabel): New native method declaration.
6031 (setLabel): Use gtkSetLabel.
6032 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6033 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
6035 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6037 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
6038 black when color argument is null.
6040 2004-03-10 Kim Ho <kho@redhat.com>
6042 * java/awt/Container.java: Remove check
6045 2004-03-10 Kim Ho <kho@redhat.com>
6047 * java/awt/Container.java: (visitChild):
6048 Remove candidate clip. Use the component
6050 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6051 (handleEvent): Use the PaintEvent's clip.
6053 2004-03-10 Kim Ho <kho@redhat.com>
6055 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6056 (handleEvent): Don't set the clip for the
6059 2004-03-09 Graydon Hoare <graydon@redhat.com>
6061 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
6062 Fix double <-> fixed macros, reset font transform.
6063 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
6066 2004-03-09Â Kim Ho <kho@redhat.com>
6068 * java/awt/Container.java: (visitChild): Move
6069 the x and y coordinate of the component rectangle
6070 to correct position.
6071 (handleEvent): Forward drag events to the pressed
6073 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6075 (ArrowButtonListener::mousePressed): Stop the
6077 (mouseDragged): Implement.
6078 (TrackListener::mousePressed): Only react if
6079 the press doesn't occur on the thumb, otherwise
6080 just set the offset.
6081 (TrackListener::mouseReleased): Unset the isAdjusting
6083 (createIncreaseIcon): Switch icon.
6084 (createDecreaseIcon): Switch icon.
6085 (calculatePreferredSize): Use width.
6086 (getThumbBounds): Use the top as the lower value.
6087 (layoutVScrollBar): Switch the button locations.
6088 (paintIncreaseHighlight): Paint correct side of thumb.
6089 (paintDecreaseHighlight): ditto.
6090 (valueForYPosition): Use top as the lower value.
6091 * javax/swing/plaf/basic/BasicSliderUI.java:
6093 (mouseDragged): Implement.
6094 (mousePressed): Only react when the thumb isn't
6095 pressed, otherwise just set offset.
6096 (mouseReleased): Handle a release of the thumb.
6097 (scrollDueToClickInTrack): Stop the timer first.
6098 * javax/swing/JProgressBar.java:
6099 (setString): Fix change condition.
6100 * javax/swing/JSeparator.java:
6103 2004-03-08 David Jee <djee@redhat.com>
6105 * java/awt/image/AffineTransformOp.java:
6106 (filter): Use Graphics2D interface instead of directly using the
6109 2004-03-05 David Jee <djee@redhat.com>
6111 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
6112 (handleEvent): Action events are generated upon MOUSE_RELEASED.
6113 * java/awt/Container.java
6114 (acquireComponentForMouseEvent): Fixed.
6115 (handleEvent): Fixed.
6116 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6117 (state_to_awt_mods_with_button_states): New method.
6118 (pre_event_handler): Fixed mouse event generation.
6120 2004-03-05 Olga Rodimina <rodimina@redhat.com>
6122 gnu/java/awt/peer/gtk/GdkGraphics2D.java
6123 (GdkGraphics2D (BufferedImage)): Initialize
6124 pixmap associated with specified BufferedImage.
6125 (setPaint): Changed implementation of Texture
6126 Paint to use AffineTransformOp.
6127 * java/awt/image/AffineTransformOp.java
6128 (createCompatibleDestRaster): Throw RasterFormatException
6129 if resulting width or height of raster is 0.
6131 2004-03-04 Olga Rodimina <rodimina@redhat.com>
6133 * java/awt/image/AffineTransformOp.java:
6134 Removed unnecessary field interpolationType.
6135 Formatted some of the lines to be consistent with
6137 (AffineTransformOp): Create new RenderingHints
6138 containing specified interpolation type.
6139 (createCompatibleDestImage): Implemented.
6140 (createCompatibleDestRaster): Implemented.
6141 (filter): Implemented.
6142 (getBounds2D(BufferedImage)): Implemented.
6143 (getBounds2D(Raster)): Implemented.
6144 (getInterpolationType): Get interpolation value from
6147 2004-03-04 David Jee <djee@redhat.com>
6149 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6150 (setFont): Check if child peers are null.
6152 2004-03-04 Graydon Hoare <graydon@redhat.com>
6154 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
6156 (libjava_arguments): Add new libraries to argument list.
6158 2004-03-02 Olga Rodimina <rodimina@redhat.com>
6160 * Makefile.am: Added java/awt/image/AffineTransformOp.java
6161 * Makefile.in: Re-generated.
6162 * java/awt/image/AffineTransformOp.java: New Class.
6164 2004-03-01 Olga Rodimina <rodimina@redhat.com>
6166 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6167 (setPaint): Interpret correctly TexturePaint's
6169 (drawImage): Fixed scale factors of the affine
6172 2004-02-27 David Jee <djee@redhat.com>
6174 * gnu/java/awt/peer/gtk/GdkGraphics.java
6175 (GdkGraphics(Component)): Inherit font from component.
6176 (drawString): Use font style.
6177 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6178 (gtkSetFont): New native method declaration.
6179 (setFont): New method.
6180 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6181 (gtkSetFont): New native method declaration.
6182 (setFont): Call new native method gtkSetFont.
6183 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6184 (setFont): For all child components who do not their fonts set,
6185 set their peers' fonts with this container's font.
6186 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
6187 Move all native method declarations to the top for readability.
6188 (gtkSetFont): New native method declaration.
6189 (setFont): New method.
6190 * java/awt/Component.java
6191 (setFont): Invalidate after setting the font.
6192 * java/awt/Container.java
6193 (invalidateTree): New method.
6194 (setFont): Invalidate the container tree after setting the font.
6195 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
6196 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
6197 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6198 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
6199 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6200 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
6201 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
6202 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
6204 2004-02-27 Olga Rodimina <rodimina@redhat.com>
6206 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6207 (updateBufferedImage): New helper function.
6208 Updates BufferedImage in memory if it was changed.
6209 (draw): changed to update BufferedImage in memory after
6210 this drawing operation
6212 (draw3DRect): Ditto.
6213 (fill3DRect): Ditto.
6215 (drawRaster): Ditto.
6216 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
6217 no affine transformation.
6218 (drawGlyphVector): Ditto.
6220 2004-02-26 Olga Rodimina <rodimina@redhat.com>
6222 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6223 (isBufferedImageGraphics): New Helper function.
6224 Returns true if this graphics2d can be used to draw
6225 into buffered image and false otherwise.
6226 (updateImagePixels): New Helper function.
6227 Updates pixels in the BufferedImage.
6228 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
6229 (getImagePixels): New function. Returns pixels
6230 of the buffered image associated with
6233 2004-02-26 David Jee <djee@redhat.com>
6235 * java/awt/BorderLayout.java
6236 (layoutContainer): Fix width and height calculations to ensure
6237 that they're non-negative.
6238 * java/awt/Component.java
6239 (setBackground): If c is null, inherit from closest ancestor whose
6240 background color is set.
6242 2004-02-26 Kim Ho <kho@redhat.com>
6244 * Makefile.am: Add new files.
6245 * Makefile.in: Re-generate.
6246 * javax/swing/JProgressBar.java:
6247 (JProgressBar(int, int int)): Throw
6248 IllegalArgumentException if orientation is
6250 (JProgressBar(BoundedRangeModel)): Create
6251 ChangeListener and register it. UpdateUI.
6252 (getChangeListeners): Implement.
6253 (setModel): Reset ChangeListener.
6254 * javax/swing/JScrollBar.java: Implement.
6255 * javax/swing/JSeparator.java: Implement.
6256 * javax/swing/JSlider.java:
6257 (JSlider(int, int, int, int)): Throw
6258 IllegalArgumentException if orientation
6260 (getChangeListeners): Fix method name.
6261 * javax/swing/SwingUtilities.java:
6262 (layoutCompoundLabel): If there is no text,
6263 set the text rectangle dimensions to 0.
6264 * javax/swing/plaf/basic/BasicButtonUI.java:
6265 (paint): If there is no text, don't paint it.
6266 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6268 * javax/swing/plaf/basic/BasicSeparatorUI.java:
6270 * javax/swing/plaf/basic/BasicSliderUI.java:
6271 (propertyChange): If the model changes, change
6272 the listeners accordingly.
6274 2004-02-25 Graydon Hoare <graydon@redhat.com>
6276 * javax/swing/AbstractButton.java: Add "final" qualifiers.
6277 * javax/swing/JList.java: Reimplement.
6278 * javax/swing/DefaultListSelectionModel.java: Reimplement.
6279 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
6280 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
6281 * javax/swing/ListModel.java: Javadoc.
6282 * javax/swing/ListSelectionModel.java: Add missing methods.
6283 * javax/swing/AbstractListModel.java: Javadoc and corrections.
6284 * javax/swing/DefaultListModel.java: Javadoc and corrections.
6285 * javax/swing/ListModel.java: Javadoc and corrections.
6286 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
6288 2004-02-25 David Jee <djee@redhat.com>
6290 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6291 (GtkFontPeer): Change default size to 12.
6292 * gnu/java/awt/peer/gtk/GtkToolkit.java
6293 (getFontPeer): Change default size to 12.
6294 (getClasspathFontPeer): Likewise. Set default name to "Default".
6295 * java/awt/Font.java
6296 (Font(Map)): Call Font(String,Map).
6297 (Font(String,Map)): If attrs is null, initialize it as an empty
6298 HashMap, which will ensure that the Font will get default attributes.
6300 2004-02-25 David Jee <djee@redhat.com>
6302 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6303 (GtkFontPeer(String,int)): Call the new constructor with size 1.
6304 (GtkFontPeer(String,int,int)): New constructor with size attribute.
6305 * gnu/java/awt/peer/gtk/GtkToolkit.java
6306 (getFontPeer(String,int)): Call the new overload method with size 1.
6307 (getFontPeer(String,int,int)): New method. Overloaded with size
6309 (getClasspathFontPeer): Set the size of the font.
6311 2004-02-24 Olga Rodimina <rodimina@redhat.com>
6313 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6314 (bimage): New field.
6315 (GdkGraphics2D): New Constructor. Constructs Graphics
6316 object that can be used to draw into the Buffered Image.
6317 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6318 (GdkGraphicsEnvironment): Fixed to include public
6320 (createGraphics): Implemented.
6321 * gnu/java/awt/peer/gtk/GtkToolkit.java
6322 (getLocalGraphicsEnvironment): Implemented.
6323 * java/awt/GraphicsEnvironment.java:
6324 (getLocalGraphicsEnvironment): Implemented.
6325 * java/awt/image/BufferedImage.java:
6326 (createGraphics): Implemented.
6328 2004-02-24 David Jee <djee@redhat.com>
6330 * java/awt/Component.java
6331 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
6332 * java/awt/Container.java
6333 (addNotifyContainerChildren): Fix event enabling.
6335 2004-02-23 Olga Rodimina <rodimina@redhat.com>
6337 * Makefile.am: Added
6338 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
6339 * Makefile.in: Re-generated.
6340 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6343 2004-02-19 Kim Ho <kho@redhat.com>
6345 * Makefile.am: Add BasicProgressBarUI
6346 * Makefile.in: Regenerate.
6347 * javax/swing/JProgressBar.java:
6349 * javax/swing/plaf/basic/BasicLookAndFeel.java
6350 Add constants for JProgressBar.
6351 * javax/swing/plaf/basic/BasicProgressBarUI.java
6353 * javax/swing/plaf/basic/BasicSliderUI.java
6355 (calculateGeometry): New method
6356 (paint): Remove unnecessary size calculations.
6358 2004-02-18 Olga Rodimina <rodimina@redhat.com>
6360 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6361 (drawRaster): Fixed small error that caused
6362 imageToUser transformation to be set incorrectly.
6363 (toString): Implemented.
6365 2004-02-18 David Jee <djee@redhat.com>
6367 * java/awt/CardLayout.java
6368 (addLayoutComponent): Show the first component added as the default.
6369 (removeLayoutComponent): After removing, show the next component.
6370 (gotoComponent): If there is only one component, show it and return.
6372 2004-02-18 Kim Ho <kho@redhat.com>
6374 * javax/swing/JSlider.java: Re-order
6376 * javax/swing/JLabel.java: Re-order
6378 * javax/swing/JComponent.java:
6379 (addPropertyChangeListener):
6381 (removePropertyChangeListener):
6383 (firePropertyChangeEvent):
6386 2004-02-17 David Jee <djee@redhat.com>
6388 * java/awt/Component.java
6389 (show): Dispatch ComponentEvent via system event queue.
6393 (reshape): Likewise.
6394 * java/awt/Window.java
6395 (setBoundsCallback): Likewise.
6397 2004-02-17 David Jee <djee@redhat.com>
6399 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6400 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
6401 Use gtk_widget_set_size_request() instead of the deprecated
6402 gtk_widget_set_usize().
6404 2004-02-17 Kim Ho <kho@redhat.com>
6406 * javax/swing/JSlider.java: Fix comments and
6407 make property strings constants.
6408 (createStandardLabels): Use the labels
6409 preferred size as bounds.
6410 * javax/swing/plaf/basic/BasicSliderUI.java
6412 (ScrollHandler::actionPerformed): Don't
6413 calculate the timer stop value. Let the
6414 MouseListeners find the stop location.
6415 (getPreferredHorizontalSize): Re-implement.
6416 (getPreferredVerticalSize): ditto.
6417 (getMinimumHorizontalSize): ditto.
6418 (getMinimumVerticalSize): ditto.
6419 (getPreferredSize): ditto.
6420 (getMinimumSize): ditto.
6421 (getMaximumSize): ditto.
6422 (paintTicks): Use doubles to find the
6424 (paintHorizontalLabel):Â Use preferredSize
6425 as initial width and height.
6426 (paintVerticalLabel): ditto.
6428 2004-02-17 Kim Ho <kho@redhat.com>
6430 * javax/swing/JLabel.java: Changed
6431 property strings to constants.
6432 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
6434 (setText): Change mnemonic index if
6436 (setDisplayedMnemonicIndex): Fire property
6438 (getDisplayedMnemonicIndex): Remove check
6441 2004-02-17 Olga Rodimina <rodimina@redhat.com>
6443 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6444 (drawImage(img,xform,obs)): Invert xform before
6445 passing the xform to cairo.
6446 (drawImage(img,x,y,bgcolor,obs)): Implemented.
6447 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
6449 (drawImage (img,x,y,w,h,obs)): Implemented.
6450 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
6451 bgcolor,obs)): Partly implemented.
6452 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
6454 * java/awt/image/BufferedImage.java:
6455 (copyData): if dest is null, create raster with same
6456 dimensions as the current image.
6458 2004-02-16 Graydon Hoare <graydon@redhat.com>
6460 * javax/swing/plaf/basic/BasicLabelUI.java
6461 (getPreferredSize): Use layoutCL.
6462 * javax/swing/plaf/basic/BasicGraphicsUtils.java
6463 (getPreferredButtonSize): Start with empty view rect, layout using
6464 component's preferred alignment.
6465 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
6468 2004-02-16 David Jee <djee@redhat.com>
6470 * java/awt/Component.java
6471 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
6472 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
6473 (move): Erase old bounds and repaint new bounds. Dispatch
6474 COMPONENT_MOVED ComponentEvent.
6475 (resize): Erase old bounds and repaint new bounds. Dispatch
6476 COMPONENT_RESIZED ComponentEvent.
6477 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6479 * java/awt/Window.java
6480 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6483 2004-02-16 Olga Rodimina <rodimina@redhat.com>
6485 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6486 (setRenderingHint): Added implementation of
6487 Interpolation rendering hints.
6488 (setRenderingHints): Ditto.
6489 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6490 (drawPixels): fixed to allow user to choose type
6491 of filtering that should be used when displaying images.
6492 (cairoSurfaceSetFilter): New method. Sets filter type for
6493 interpolation of pixel values.
6495 2004-02-16 David Jee <djee@redhat.com>
6497 * java/awt/GridBagLayout.java
6498 (calcCellSizes): Rows or columns with zero sizes should still be
6499 considered for extra space distribution.
6501 2004-02-16 Kim Ho <kho@redhat.com>
6503 * javax/swing/JLabel.java: Re-implement.
6504 * javax/swing/plaf/basic/BasicLabelUI.java
6506 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6509 2004-02-16 Kim Ho <kho@redhat.com>
6511 * javax/swing/JSlider.java: Fix indentation and comments.
6512 (setModel): Remove null check to conform with Sun's.
6513 (setOrientation): Throw exception if not
6514 HORIZONTAL or VERTICAL.
6515 (getInverted): Use private variable instead of
6516 ComponentOrientation.
6517 (setInverted): ditto.
6518 * javax/swing/plaf/basic/BasicSliderUI.java:
6519 Fix indentation and comments.
6520 (propertyChange): Remove check for inverted slider, handle
6522 (getMinimumSize): Return preferred size.
6523 (getMaximumSize): ditto.
6524 (calculateFocusRect): Don't relocate rectangle.
6525 (drawInverted): Return XOR of the slider's inversion and
6526 the component's orientation.
6527 (paint): Update leftToRightCache
6529 2004-02-13 David Jee <djee@redhat.com>
6531 * java/awt/GridBagLayout.java
6532 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
6533 code to helper methods.
6534 (sortBySpan): New helper method.
6535 (distributeSizeAndWeight): Likewise.
6536 (calcCellWeights): Likewise.
6537 (calcCellSizes): Add comments.
6539 2004-02-13 David Jee <djee@redhat.com>
6541 * java/awt/Component.java
6542 (show): Only do something if component is invisible at the moment.
6543 (hide): Only do something if component is visible at the moment.
6544 (reshape): If lightweight, erase old bounds and repaint new bounds.
6546 2004-02-13 Kim Ho <kho@redhat.com>
6548 * Makefile.am: Updated for new file.
6549 * Makefile.in: Regenerated.
6550 * javax/swing/JSlider.java: Reimplement.
6551 * javax/swing/SwingUtilities.java
6552 (layoutCompoundLabel): Use icon height
6554 (paintComponent): Implement.
6555 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6556 Add JSlider defaults.
6557 * javax/swing/plaf/basic/BasicSliderUI.java:
6558 Implement. New file.
6560 2004-03-17 Michael Koch <konqueror@gmx.de>
6562 * gnu/java/net/PlainDatagramSocketImpl.java
6563 (RECEIVE_LOCK): New member field.
6564 (SEND_LOCK): New member field.
6565 (send0): New method.
6566 (send): Synchronize on SEND_LOCK.
6567 (receive0): New method.
6568 (receive): Synchronize on RECEIVE_LOCK.
6569 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
6570 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
6571 gnu/java/net/natPlainDatagramSocketImplWin32.cc
6572 (send0): Renamed from send.
6573 (receive0): Renamed from receive.
6574 2004-03-17 Michael Koch <konqueror@gmx.de>
6576 * gnu/java/net/natPlainSocketImplPosix.cc
6577 (write): Just call write(jbyteArray, offset, len).
6578 (read): Just call read(jbyteArray, offset, len).
6580 2004-03-16 Michael Koch <konqueror@gmx.de>
6582 * javax/swing/JTabbedPane.java
6583 (serialVersionUID): New field.
6585 2004-03-16 Norbert Frese <postfach@nfrese.net>
6587 * java/net/InetAddress.java
6588 (getByName): Handle hostname == "" case.
6590 2004-03-16 Dalibor Topic <robilad@kaffe.org>
6592 Reported by: Adam Heath <doogie@debian.org>
6593 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
6596 2004-03-15 Michael Koch <konqueror@gmx.de>
6598 * java/util/Locale.java: Reverting my last patch
6599 and add a comment why the original version was okay.
6601 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
6603 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
6604 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
6605 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
6606 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
6608 2004-03-12 Michael Koch <konqueror@gmx.de>
6610 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
6612 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6614 * java/net/URI.java (toURL): Implemented.
6616 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6619 (URI_REGEXP) updated to contain scheme specific part.
6620 (SCHEME_SPEC_PART_GROUP) new constant.
6621 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
6622 updated to make room for SCHEME_SPEC_PART_GROUP.
6623 (parseURI) parse scheme specific part.
6624 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
6625 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
6626 getQuery, getFragment) implemented.
6628 2004-03-12 Dalibor Topic <robilad@kaffe.org>
6630 * libraries/javalib/java/net/URI.java
6631 partially implemented using java.util.regex.
6632 (URI_REGEXP) new constant. Used to parse URIs.
6633 (SCHEME_GROUP) new constant representing index of scheme group
6635 (AUTHORITY_GROUP) new constant representing index of authority
6636 group in parsed URI.
6637 (PATH_GROUP) new constant representing index of path group in
6639 (QUERY_GROUP) new constant representing index of query group in
6641 (FRAGMENT_GROUP) new constant representing index of fragment
6642 group in parsed URI.
6643 (getURIGroup) new static utility method.
6644 (parseURI) implemented.
6645 (quote) stub for new static utility method.
6646 (quoteAuthority) stub for new static utility method.
6647 (quoteHost) stub for new static utility method.
6648 (quotePath) stub for new static utility method.
6649 (quoteUserInfo) stub for new static utility method.
6651 (create) don't throw URISyntaxException. Implemented.
6652 (toString) implemented.
6654 2004-03-12 Michael Koch <konqueror@gmx.de>
6656 * java/net/HttpURLConnection.java
6657 (getResponseCode): Fix another typo in javadoc.
6659 2004-03-11 Michael Koch <konqueror@gmx.de>
6661 * java/util/logging/Level.java
6662 (parse): Use String.equals() instead of ==.
6664 2004-03-11 Michael Koch <konqueror@gmx.de>
6666 * gnu/java/net/protocol/jar/Connection.java
6667 (getContentLength): New method.
6669 2004-03-11 Michael Koch <konqueror@gmx.de>
6671 * gnu/java/net/PlainSocketImpl.java:
6672 Reformated to merge better with classpath's version.
6674 2004-03-11 Michael Koch <konqueror@gmx.de>
6676 * java/util/Locale.java
6677 (getISO3Language): Use String.equals() instead of ==.
6678 (getISO3Country): Likewise.
6680 2004-03-11 Dalibor Topic <robilad@kaffe.org>
6682 * java/text/AttributedString.java
6683 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
6684 Use HashMap instead of Hashtable since value can be null, and
6685 you can not store a null value in a Hashtable.
6687 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6689 * java/text/AttributedStringIterator.java
6690 (getAllAttributesKey): Return only keys concerned
6691 by the current iterator.
6692 (getAttributes): Use strict inequality for
6695 2004-03-11 Michael Koch <konqueror@gmx.de>
6697 * java/net/HttpURLConnection.java:
6698 Fixed typo in javadoc.
6700 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6702 * java/io/BufferedInputStream.java (marktarget): New field for max
6704 (CHUNKSIZE): New constant for incremental mark buffer allocation.
6705 (mark): Use new fields.
6707 (read(byte[],int,int)): Likewise.
6711 2004-03-11 Mark Wielaard <mark@klomp.org>
6713 * java/beans/BeanDescriptor.java (BeanDescriptor):
6714 Set the FeatureDescriptor programmatic name.
6716 2004-03-11 Michael Koch <konqueror@gmx.de>
6718 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
6719 This file was was just copied form java/io/natFileDescriptorEcos.cc
6720 and never changed to compile correctly.
6722 2004-03-11 Michael Koch <konqueror@gmx.de>
6724 * gnu/java/nio/PipeImpl.java
6725 (SourceChannelImpl): Made final.
6726 (read): Implemented.
6727 (SinkChannelImpl): Made final.
6728 (write): Implemented.
6730 2004-03-11 Michael Koch <konqueror@gmx.de>
6732 * gnu/java/net/PlainDatagramSocketImpl.java:
6733 Reformated to match classpath's version more.
6735 2004-03-11 Michael Koch <konqueror@gmx.de>
6737 * gnu/java/awt/peer/ClasspathFontPeer.java:
6738 Fixed javadoc to be correct xhtml.
6739 * gnu/java/awt/peer/gtk/GtkArgList.java
6740 (add): Use Boolean.valueOf() instead of new Boolean().
6742 2004-03-09 Michael Koch <konqueror@gmx.de>
6744 * java/lang/Thread.java
6745 (runnable): Moved around.
6746 (daemon): Renamed from daemon_flag.
6747 (contextClassLoader): Renamed from context_class_loader.
6748 (Thread): Reordered constructors.
6749 (activeCount): Use group directly.
6750 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
6751 (holdsLock): Reworked javadoc.
6752 (setDaemon): Reworked.
6753 * java/lang/natThread.cc
6756 2004-03-08 Anthony Green <green@redhat.com>
6758 * Makefile.am: Build property resource files into libgcj.
6759 * Makefile.in: Rebuilt.
6760 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
6761 java/util/regex/PatternSyntaxException.java,
6762 gnu/regexp/CharIndexed.java,
6763 gnu/regexp/CharIndexedCharArray.java,
6764 gnu/regexp/CharIndexedInputStream.java,
6765 gnu/regexp/CharIndexedReader.java,
6766 gnu/regexp/CharIndexedString.java,
6767 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
6768 gnu/regexp/REException.java,
6769 gnu/regexp/REFilterInputStream.java,
6770 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
6771 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
6772 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
6773 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
6774 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
6775 gnu/regexp/RETokenLookAhead.java,
6776 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
6777 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
6778 gnu/regexp/RETokenStart.java,
6779 gnu/regexp/RETokenWordBoundary.java,
6780 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
6782 2004-03-03 Per Bothner <per@bothner.com>
6784 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
6785 Optimize when argument is a FileChannelImpl.
6786 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
6788 * java/nio/channels/natChannels.cc: New file for new native methods.
6789 * Makefile.am: Update accordingly.
6791 2004-03-02 Jan Hubicka <jh@suse.cz>
6793 * configure.host: Pass -fno-omit-frame-pointer for i386.
6794 * configure.in: Likewise.
6795 * configure: Regenerate.
6797 2004-03-01 Per Bothner <per@bothner.com>
6799 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
6801 2004-02-29 Per Bothner <per@bothner.com>
6803 * java/nio/channels/FileChannelImpl.java: Moved to package
6804 gnu/java/nio/channels, since we need to refer to it from java.io.
6805 * java/nio/channels/natFileChannelImpl.cc: Removed file.
6806 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
6807 from java/nio/channels. Don't depend on FileDescriptor.
6808 (in, out, err): New static fields.
6810 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
6811 from FileDescriptor.
6812 (by): Removed MappedByteBuffer field.
6813 (map): New working implementation.
6814 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
6815 some code "ported" from natFileDescriptoPosix.cc.
6816 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
6817 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
6818 * java/io/FileDescriptor.java: Implement on top of FileChannel.
6819 Remove native methods.
6820 * Makefile.am, configure.in: Updated accordingly.
6822 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
6823 (ch): New FileChannelImpl field. Update constructor to match.
6824 (releaseImpl): Remove native method. Instead ...
6825 (release): Call unlock on channel.
6826 * gnu/java/nio/natFileLockImpl.cc: Removed file.
6828 * java/io/natFileDescriptorEcos.cc: Remove file.
6829 * java/io/natFileDescriptorPosix.cc: Remove file.
6830 * java/io/natFileDescriptorWin32.cc: Remove file.
6831 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
6832 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
6833 (<init>(FileChannelImpl)): New package-private constructor.
6834 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
6835 (available, close, read, skip): Implement using FileChannelImpl.
6836 (getFD): Allocate FileDescriptor if needed.
6837 (getChannel): Is now trivial.
6838 * java/io/FileOutputStream.java: Corresponding changes.
6839 * java/io/RandomAccessFile.java: Corresponding changes.
6841 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
6842 unmapImpl): New dummy methods, to be overridden by subclass.
6843 (finalize, isLoaded, load, force): New methods.
6844 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
6845 Now works, at least for read mapping.
6847 * java/lang/natPosixProcess.cc (startProcess): Implement standard
6848 streams using FileChannelImpl, not FileDescriptor.
6849 * java/lang/natWin32Process.cc (startProcess): Likewise.
6851 2004-02-28 Michael Koch <konqueror@gmx.de>
6853 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
6856 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
6858 * java/io/ObjectInputStream.java
6859 (readClassDescriptor): Keep elements of the mapping non null.
6860 (checkTypeConsistency): New method.
6861 (readFields): Fixed main loop and base logic. Small reindentation.
6862 * java/io/ObjectStreamField.java
6863 (lookupField): New method to update the field reference.
6864 (checkFieldType): New method.
6865 * java/io/ObjectStreamClass.java
6866 (setClass, setFields): Call lookupField when building the field
6867 database. Check the real field type.
6869 2004-02-28 Michael Koch <konqueror@gmx.de>
6871 * java/nio/ByteOrder.java
6872 (nativeOrder): Use equals() to compare strings.
6874 2004-02-26 Michael Koch <konqueror@gmx.de>
6876 * gnu/java/nio/FileLockImpl.java
6877 (finalize): Made protected.
6878 * java/nio/channels/FileChannel.java
6879 (MapMode.READ_ONLY): Made final.
6880 (MapMode.READ_WRITE): Made final.
6881 (MapMode.PRIVATE): Made final.
6882 * java/nio/channels/SocketChannel.java
6883 (open): Simplified code.
6884 * java/nio/channels/spi/AbstractSelectableChannel.java
6885 (registered): Unused, removed.
6886 (keyFor): Check channel is open, only locate key
6887 and not add a new one.
6888 (register): Don't delete attachments.
6890 2004-02-26 Michael Koch <konqueror@gmx.de>
6892 * gnu/java/awt/ComponentDataBlitOp.java
6893 (INSTANCE): Made final.
6894 * gnu/java/awt/image/ImageDecoder.java:
6896 (cm): Unused, removed.
6898 2004-02-26 Michael Koch <konqueror@gmx.de>
6900 * gnu/java/nio/DatagramChannelImpl.java
6901 (send): Check if target address is resolved.
6903 2004-02-26 Michael Koch <konqueror@gmx.de>
6905 * Makefile.am: Generate and install headers for inner classes in
6906 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
6907 * Makefile.in: Regenerated.
6909 2004-02-24 Anthony Green <green@redhat.com>
6911 * java/lang/StringBuffer.java: No need to NULL out remainder of
6912 buffer since ensureCapacity_unsynchronized will have done this for
6915 2004-02-20 Michael Koch <konqueror@gmx.de>
6917 * gnu/java/net/protocol/jar/Handler.java
6918 (): Removed unneeded check for file != null. java.net.URL.getFile()
6919 returns an empty string but never null.
6921 2004-02-20 Michael Koch <konqueror@gmx.de>
6923 * gnu/gcj/convert/Convert.java
6924 (main): Use equals() to compare strings.
6926 2004-02-20 Michael Koch <konqueror@gmx.de>
6928 * javax/swing/AbstractButton.java: Made several constants final.
6929 (getRolloverSelectedIcon): Made public.
6930 (getSelectedIcon): Made public.
6932 2004-02-16 Per Bothner <per@bothner.com>
6934 * java/nio/CharBufferImpl.java: Inline super constructor.
6935 * java/nio/DoubleBufferImpl.java: Likewise.
6936 * java/nio/FloatBufferImpl.java: Likewise.
6937 * java/nio/IntBufferImpl.java: Likewise.
6938 * java/nio/LongBufferImpl.java: Likewise.
6939 * java/nio/ShortBufferImpl.java: Likewise.
6940 * java/nio/CharBuffer.java: Remove unused constructor.
6941 * java/nio/DoubleBuffer.java: Likewise.
6942 * java/nio/FloatBuffer.java: Likewise.
6943 * java/nio/IntBuffer.java: Likewise.
6944 * java/nio/LongBuffer.java: Likewise.
6945 * java/nio/ShortBuffer.java: Likewise.
6946 * java/nio/CharViewBufferImpl.java: New convenience constructor.
6947 Fix buggy call to super constructor.
6948 * java/nio/DoubleViewBufferImpl.java: Likewise.
6949 * java/nio/FloatViewBufferImpl.java: Likewise.
6950 * java/nio/IntViewBufferImpl.java: Likewise.
6951 * java/nio/LongViewBufferImpl.java: Likewise.
6952 * java/nio/ShortViewBufferImpl.java: Likewise.
6954 * java/nio/ByteBuffer.java (endian): Make non-private so other
6955 java.nio classes can inherit it.
6956 (<init>): Don't bother clearing array_offset.
6957 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
6958 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
6959 Remove redundant test.
6961 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
6962 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
6963 Use new XxxViewBufferImpl constructors.
6964 * java/nio/MappedByteBufferImpl.java: Likewise.
6965 * java/nio/DirectByteBufferImpl.java: Likewise.
6967 * java/nio/ByteBufferImpl.java: Remove one constructor.
6968 Inline super in remaining constructor.
6969 * java/nio/ByteBuffer.java: Remove unused constructor.
6971 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
6973 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
6974 * java/nio/DirectByteBufferImpl.java (owner): New field.
6975 (offset): Remove unused field.
6976 (<init>): Modify one and add another constructor. Change callers.
6977 (allocateDirect): Removed - not used.
6978 (getImpl, putImpl): Make static and pass address explicitly,
6979 to make them useful for MappedByteBufferImpl.
6980 (get, put): Check for underflow. Modify for new getImpl.
6981 (getImpl): New native method where target is array.
6982 (get(byte[],int,int)): Use the above.
6983 (adjustAddress): New static native method.
6984 (slice, duplicate, asReadOnly): New implementations.
6985 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
6986 adjustAddress): New or updated native methods.
6988 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
6990 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
6991 overflow of fieldmapping.
6993 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
6995 * javax/swing/undo/UndoManager.java: Re-written from scratch.
6997 2004-02-14 Per Bothner <per@bothner.com>
6999 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
7000 Set closed before calling implCloseChannel, as in the spec.
7002 2004-02-09 Graydon Hoare <graydon@redhat.com>
7004 * javax/swing/ToggleButtonModel.java: Remove dead class.
7005 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
7006 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
7007 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
7008 * Makefile.am: Update for new and removed files.
7009 * Makefile.in: Regenerate.
7011 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
7012 * javax/swing/AbstractButton.java
7013 (AbstractButton): Initialize fields correctly in ctor.
7014 * javax/swing/JCheckbox.java
7015 (JCheckBox): Override painting flags.
7016 * javax/swing/DefaultButtonModel.java: Conform to sun.
7017 * javax/swing/JComponent.java (paint): Fill with background color
7019 (processComponentKeyEvent)
7022 (processMouseMotionEvent): Remove event-consuming empty methods.
7023 (getUIClassID): Return "ComponentUI" not "JComponent"
7024 * javax/swing/JFrame.java: Remove some debugging chatter.
7025 (JFrame): Subscribe to window events.
7026 * javax/swing/JRadioButton.java
7027 (JRadioButton): Override painting flags.
7028 * javax/swing/JRootPane.java
7029 (JRootPane): Set background from UIDefaults.
7030 * javax/swing/JToggleButton.java
7031 (ToggleButtonModel): New inner class.
7032 (JToggleButton): Override layout alighment.
7033 * javax/swing/SwingUtilities.java:
7034 (getLocalBounds): Return width and height, not x and y.
7035 (calculateInnerArea): Use local bounds, not bounds.
7036 (layoutCompoundLabel): Provide overridden form.
7037 (layoutCompoundLabel): Correct bugs.
7038 * javax/swing/UIDefaults.java: Correct comment.
7039 * javax/swing/plaf/basic/BasicButtonUI.java:
7040 Move most logic into defaults, external listener.
7041 (paintIcon): Implement icon painting.
7042 (paint): Fix state painting to conform to changes in model.
7043 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
7044 Remove most dead/wrong methods.
7045 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
7046 * javax/swing/plaf/basic/BasicIconFactory.java:
7047 (DummyIcon): New class.
7048 (getMenuItemCheckIcon)
7049 (getMenuItemArrowIcon)
7051 (getCheckBoxMenuItemIcon)
7052 (getRadioButtonMenuItemIcon)
7053 (createEmptyFrameIcon): Return DummyIcons, not null.
7054 (getCheckBoxIcon): Implement an icon that looks like sun's.
7055 (getRadioButtonIcon): Implement an icon that looks like sun's.
7056 * javax/swing/plaf/basic/BasicLookAndFeel.java
7057 (initComponentDefaults): Fix impossible values, add some missing.
7058 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
7059 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
7060 Remove most dead/wrong methods.
7062 (getDefaultIcon): New method.
7063 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
7064 Remove most dead/wrong methods.
7065 * javax/swing/plaf/metal/MetalLookAndFeel.java
7066 (getDefaults): Return super.getDefaults(), not BasicDefaults.
7067 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
7068 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
7069 Implement "clearing" as drawing, when on pixmap drawables.
7071 * javax/swing/JButton.java (getUIClassID):
7072 * javax/swing/JCheckBox.java (getUIClassID):
7073 * javax/swing/JEditorPane.java (getUIClassID):
7074 * javax/swing/JLabel.java (getUIClassID):
7075 * javax/swing/JList.java (getUIClassID):
7076 * javax/swing/JOptionPane.java (getUIClassID):
7077 * javax/swing/JPanel.java (getUIClassID):
7078 * javax/swing/JPasswordField.java (uiClassID):
7079 * javax/swing/JRadioButton.java (getUIClassID):
7080 * javax/swing/JRootPane.java (getUIClassID):
7081 * javax/swing/JScrollPane.java (getUIClassID):
7082 * javax/swing/JTabbedPane.java (getUIClassID):
7083 * javax/swing/JToggleButton.java (getUIClassID):
7084 * javax/swing/JTree.java (getUIClassID):
7085 * javax/swing/JViewport.java (getUIClassID):
7086 * javax/swing/text/JTextComponent.java (getUIClassID):
7087 Return "fooUI" not "Jfoo"
7089 2004-02-11 Michael Koch <konqueror@gmx.de>
7091 * java/net/DatagramSocket.java
7092 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
7094 (setBroadcast): Likewise.
7095 * java/net/MulticastSocket.java
7096 (setLoopbackMode): Likewise.
7097 * java/net/ServerSocket.java
7098 (setReuseAddress): Likewise.
7099 * java/net/Socket.java
7100 (setTcpNoDelay): Likewise.
7101 (setSoLinger): Likewise.
7102 (setOOBInline): Likewise.
7103 (setKeepAlive): Likewise.
7104 (setReuseAddress): Likewise.
7105 * java/net/URLConnection.java
7106 (setContentHandler): Replace == with equals().
7107 * java/net/URLStreamHandler.java
7108 (hostSEquals): Fix checking host addresses.
7109 (toExternalForm): Dont check protocol for null. We know already its
7112 2004-02-10 David Jee <djee@redhat.com>
7114 * java/awt/BorderLayout.java
7115 (calcCompSize): Invisible components get zero dimensions.
7116 * java/awt/Button.java
7117 (setLabel): Set actionCommand.
7118 * java/awt/Component.java
7119 (show): Invalidate component and parent container.
7122 2004-02-10 David Jee <djee@redhat.com>
7124 * java/awt/GridBagLayout.java
7125 (GridBagLayout): New private field, internalcomptable.
7126 (lookupInternalConstraints): New method.
7127 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
7128 (GetLayoutInfo): Reimplement.
7129 (calcCellSizes): Ignore rows/columns with size 0.
7131 2004-02-10 Michael Koch <konqueror@gmx.de>
7133 * gnu/java/awt/EmbeddedWindow.java
7134 (setHandle): Use java.awt.Component.getPeer() instead of
7135 java.awt.Component.peer directly.
7137 2004-02-10 David Jee <djee@redhat.com>
7139 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
7140 (gtkSetLabel): New native method definition.
7141 (setLabel): Use gtkSetLabel.
7142 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
7143 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
7145 2004-02-10 Alan Modra <amodra@bigpond.net.au>
7147 * include/powerpc-signal.h: Revert 2004-01-21 change.
7148 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
7149 from syscall for ppc32 versions.
7151 2004-02-08 Per Bothner <per@bothner.com>
7153 * java/nio/ByteBuffer.java (shiftDown): New helper method.
7154 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
7155 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
7156 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
7157 Pass ByteOrder parameter to most methods, since the underlying
7158 ByteBuffer's order isn't always what we should use.
7159 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
7160 * java/nio/DirectByteBufferImpl.java: Likewise.
7161 Use ByteBufferHelper methods.
7162 * java/nio/MappedByteBufferImpl.java: Likewise.
7163 (compact): Use shiftDown.
7164 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
7165 (get, put): Use ByteBufferHelper.
7166 (compact): Use new shiftDown method.
7167 (duplicate(boolean)): New helper method.
7168 (duplicate, asReadOnlyBuffer): Use it.
7169 (order): Return endian field.
7170 * java/nio/DoubleViewBufferImpl.java: Likewise.
7171 * java/nio/FloatViewBufferImpl.java: Likewise.
7172 * java/nio/IntViewBufferImpl.java: Likewise.
7173 * java/nio/LongViewBufferImpl.java: Likewise.
7174 * java/nio/ShortViewBufferImpl.java: Likewise.
7175 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
7176 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
7177 (compact): Re-implement using shiftDown.
7179 2004-02-08 Andreas Jaeger <aj@suse.de>
7181 * include/x86_64-signal.h: Fix typo.
7183 2004-02-08 Diego Novillo <dnovillo@redhat.com>
7185 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
7187 (HANDLE_DIVIDE_OVERFLOW): Likewise.
7189 2004-02-06 Michael Koch <konqueror@gmx.de>
7191 * java/io/ObjectInputStream.java
7192 (currentClassLoader): Reverted to old version of this method.
7194 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
7196 * java/io/ObjectInputStream.java: Made all calls
7197 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
7198 use cached info from ObjectStreamClass. (readClassDescriptor):
7199 Cache more information in ObjectStreamClass. (processResolution,
7200 readFields): Use cached info from ObjectStreamClass.
7201 (newObject): Throw exception instead of returning null for failure.
7202 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
7203 setCharField, setDoubleField, setFloatField, setIntField,
7204 setLongField, setShortField, setObjectField, readObjectParams):
7205 Removed. (dumpElement, dumpElementln): Removed dump flag condition
7207 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
7208 (setClass): Added call to cacheMethods() (findMethod): New method.
7209 (cacheMethods): New method. (ObjectStreamClass): Added call to
7210 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
7211 AccessController.doPrivileged to invoke setAccessible.
7212 (readObjectMethod, readResolveMethod, realClassIsSerializable,
7213 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
7215 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
7216 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
7217 isPrimitive): Made safe for cases where type == null.
7218 (setBooleanField, setByteField, setCharField, setShortField,
7219 setIntField, setLongField, setFloatField, setDoubleField,
7220 setObjectField): New methods.
7222 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
7224 * java/awt/Component.java (getFont): Return a default font
7227 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
7228 (Scrollbar (int, int, int, int, int)): Make default page
7230 (setValues): Only call peer.setValues if one of the values has
7232 (generateName): New method.
7233 (getUniqueLong): New method.
7234 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
7235 (range_scrollbar): Remove structure.
7236 (post_adjustment_event): Remove function.
7237 (post_change_event): Accept jobject argument.
7238 (create): Cast jints to gdoubles. Round scrollbar values to the
7239 nearest integer. Clamp min, max and value settings.
7240 (connectJObject): Connect hook to widget->window.
7241 (connectSignals): Remove range_scrollbar structure variables.
7242 Remove "move-slider" connection. Pass global peer reference to
7243 "value-changed" callback.
7244 (setLineIncrement): Cast jint value to gdouble.
7245 (setPageIncrement): Likewise.
7246 (setValues): Likewise. Clamp min, max and value settings.
7248 2004-02-05 Michael Koch <konqueror@gmx.de>
7250 * javax/swing/AbstractCellEditor.java
7251 (getCellEditorValue): Removed.
7252 * javax/swing/Box.java: Reformated.
7253 (serialVersionUID): New field.
7254 * javax/swing/ButtonGroup.java:
7255 Removed some weird whitespace.
7256 * javax/swing/CellEditor.java: Reformated.
7257 * javax/swing/CellRendererPane.java
7258 (serialVersionUID): New field.
7259 (AccessibleCellRendererPaneserialVersionUID): New field.
7260 * javax/swing/DefaultListModel.java
7261 (serialVersionUID): New field.
7262 * javax/swing/JEditorPane.java
7263 (serialVersionUID): New field.
7264 (setPage): Throws IOException.
7265 (addHyperlinkListener): Implemented.
7266 (removeHyperlinkListener): Implemented.
7267 (getHyperlinkListener): New method.
7268 * javax/swing/JFileChooser.java
7269 (serialVersionUID): New field.
7270 (AccessibleJFileChooser.serialVersionUID): New field.
7271 (addActionListener): Implemented.
7272 (removeActionListener): Implemented.
7273 (getActionListeners): New method.
7274 * javax/swing/JFormattedTextField.java
7275 (serialVersionUID): New field.
7276 (AbstractFormatter.serialVersionUID): New field.
7277 (clone): Throws CloneNotSupportedException
7278 (setEditValid): Add missing argument.
7279 (stringToValue): Throws ParseExcpetion.
7280 (valueToString): Throws ParseException.
7281 (commitEdit): Throws ParseException.
7282 * javax/swing/JLabel.java
7283 (serialVersionUID): New field.
7284 * javax/swing/JList.java
7285 (serialVersionUID): New field.
7286 (addListSelectionListener): Reformated.
7287 (removeListSelectionListener): Reformated.
7288 (getListSelectionListeners): New method.
7289 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
7291 (serialVersionUID): New field.
7292 * javax/swing/table/AbstractTableModel.java
7293 (getValueAt): Removed.
7294 (getColumnCount): Removed.
7295 (getRowCount): Removed.
7297 2004-02-05 Michael Koch <konqueror@gmx.de>
7299 * java/awt/datatransfer/DataFlavor.java
7300 (imageFlavor): Javadoc added.
7301 (javaJVMLocalObjectType): Fixed.
7303 2004-02-05 Michael Koch <konqueror@gmx.de>
7305 * java/lang/Thread.java
7306 (Thread): Reordered.
7307 (setContextClassLoader): Fixed javadoc comment.
7308 (setPriority): Reordered.
7310 (initialize_native): Reordered.
7311 (gen_name): Reordered.
7313 2004-02-05 Michael Koch <konqueror@gmx.de>
7315 * java/lang/Thread.java: Reordered fields, reformated much code,
7316 no functional changes, some variables renamed, javadoc comments
7319 2004-02-05 Michael Koch <konqueror@gmx.de>
7321 * java/util/zip/Deflater.java,
7322 java/util/zip/DeflaterOutputStream.java,
7323 java/util/zip/GZIPInputStream.java:
7324 Reformated and javadoc comments merged from classpath.
7326 2004-02-05 Michael Koch <konqueror@gmx.de>
7328 * gnu/java/nio/NIOServerSocket.java
7329 (impl): Unused, removed.
7330 * gnu/java/nio/SocketChannelImpl.java
7331 (finnishConnect): Don't throw NoConnectionPendingException if not
7332 connected or no connection pending.
7334 2004-02-02 Graydon Hoare <graydon@redhat.com>
7336 * javax/swing/SwingUtilities.java: Many new functions.
7337 * java/awt/Container.java (LightweightDispatcher): Reimplement.
7338 * javax/swing/basic/BasicGraphicsUtils.java
7339 (getPreferredButtonSize): Start layout from top-left corner.
7341 2004-02-04 Olga Rodimina <rodimina@redhat.com>
7343 * java/awt/geom/AffineTransform.java:
7344 Corrected comments on the field definitions for
7346 (shear): Fixed few errors that caused shear
7347 transformation to be performed incorrectly.
7348 (createInverse): Fixed to return correct
7349 inverse of the given matrix.
7351 2004-02-03 Tom Tromey <tromey@redhat.com>
7353 * java/lang/natPosixProcess.cc (startProcess): Handle case where
7354 PATH or LD_LIBRARY_PATH is not set in parent environment.
7356 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
7358 * gnu/java/awt/peer/gtk/GtkListPeer.java,
7359 java/awt/BorderLayout.java, java/awt/CardLayout.java,
7360 java/awt/CheckboxGroup.java, java/awt/Choice.java,
7361 java/awt/Component.java, java/awt/Container.java,
7362 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
7363 java/awt/LayoutManager2.java, java/awt/List.java,
7364 java/awt/Menu.java, java/awt/MenuBar.java,
7365 java/awt/MenuItem.java, java/awt/Polygon.java,
7366 java/awt/Rectangle.java, java/awt/ScrollPane.java,
7367 java/awt/Scrollbar.java, java/awt/TextArea.java,
7368 java/awt/TextField.java,
7369 java/awt/image/renderable/RenderContext.java,
7370 javax/swing/JApplet.java: Fix handling of alias methods, where a
7371 method has been deprecated in favour of a new one with the same
7372 funtion but a different name. Put the method implementation in
7373 the deprecated method and have the new method call the
7374 deprecated one. Make all other code call the new method.
7376 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
7378 * gnu/java/nio/DatagramChannelImpl.java
7379 (inChannelOperation): New field.
7380 (isInChannelOperation): New accessor.
7381 (setInChannelOperation): New modifier.
7382 (receive): Use capacity() - position() of destination
7383 buffer instead of remaining(). Set and reset our "in
7384 channel operation indicator" before and after delegating
7385 the receive to our datagram socket. Removed testing code.
7386 Update destination buffer's current position if it is
7387 backed by a byte array (hasArray() is true).
7388 (send): Set and reset our "in channel operation indicator"
7389 before and after delegating the send to our datagram socket.
7390 Removed testing code. Update source buffer's current position
7391 if it is backed by a byte array (hasArray() is true).
7392 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
7393 Use capacity() - position() of destination buffer instead
7395 * java/net/DatagramSocket.java (receive): Don't throw an
7396 IllegalBlockingModeException if we have a non-blocking
7397 channel which initiated this operation.
7400 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
7402 * configure.in: Add pkgconfig check for glib and gthread.
7403 * configure: Regenerate.
7405 2004-02-01 Michael Koch <konqueror@gmx.de>
7407 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
7409 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
7410 * verify.cc (debug_print): Mark 'fmt' unused.
7412 2004-01-30 Michael Koch <konqueror@gmx.de>
7414 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
7415 * configure: Regenerated.
7416 * glib-2.0.m4: Removed.
7417 * gtk-2.0.m4: Removed.
7418 * libart.m4: Removed.
7421 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
7423 * gnu/java/net/PlainSocketImpl.java
7424 (inChannelOperation): New field.
7425 (isInChannelOperation): New accessor.
7426 (setInChannelOperation): New modifier.
7427 * gnu/java/nio/ServerSocketChannelImpl.java
7428 (accept): Set and reset our server socket's PlainSocketImpl's
7429 "in channel operation" indicator before and after delegating
7430 the accept to our server socket.
7431 * gnu/java/nio/SocketChannelImpl.java
7432 (connect): Set and reset our socket's PlainSocketImpl's "in channel
7433 operation" indicator before and after delegating the operation to
7437 * java/net/ServerSocket.java (implAccept): Don't throw an
7438 IllegalBlockingModeException if we have a non-blocking
7439 channel which initiated this accept operation.
7440 * java/net/Socket.java (connect): Don't throw an
7441 IllegalBlockingModeException if we have a non-blocking
7442 channel which initiated this connect operation.
7443 * java/nio/channels/spi/AbstractSelectableChannel.java
7444 (configureBlocking): Only call implConfigureBlocking() if
7445 the desired blocking mode is different from our current one.
7447 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
7449 * java/io/BufferedReader.java (sbuf): New field.
7450 (readLine): Use String.valueOf instead of new String() as per
7451 Per Bothner's suggestion. Use instance sbuf field instead of a
7452 local StringBuffer instance.
7453 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
7454 caller's buffer to refill().
7455 (read(void)): Pass our internal work buffer to refill if our
7456 input queue is empty.
7457 (refill): Changed return type to int. Use the specified buffer
7458 instead of our work buffer as per Bryce McKinlay's suggestion.
7459 Return the number of characters read or -1 for EOF.
7461 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7463 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
7465 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7467 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
7468 * Makefile.in: Re-generated.
7469 * gnu/awt/xlib/XFontPeer.java: New file.
7470 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
7471 (setClip): Commented out debug printout.
7472 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
7473 (getFontPeer): Return XFontPeer.
7474 (getLocalGraphicsEnvironment): New method.
7475 (getClasspathFontPeer): New method.
7476 (createFont): New method.
7478 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7480 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
7483 2004-01-29 Kim Ho <kho@redhat.com>
7485 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7486 (gtkLayoutSetVisible): New method
7487 (setMenuBar): Hide layout before setting MenuBar
7488 and reshow it after.
7489 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7490 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
7492 2004-01-28 Michael Koch <konqueror@gmx.de>
7494 * gnu/java/lang/ClassHelper.java
7495 (getPackagePortion): Removed.
7497 2004-01-28 Michael Koch <konqueror@gmx.de>
7499 * javax/swing/JComponent.java
7500 (listenerList): Initalize globally.
7501 (ancestor_list): Removed.
7502 (veto_list): Removed.
7503 (change_list): Removed.
7504 (get_veto_list): Removed.
7505 (get_change_list): Removed.
7506 (get_ancestor_list): Removed.
7507 (removeAncestorListener): Reimplemented.
7508 (removePropertyChangeListener): Likewise.
7509 (removeVetoableChangeListener): Likewise.
7510 (addAncestorListener): Likewise.
7511 (addPropertyChangeListener): Likewise.
7512 (addVetoableChangeListener): Likewise.
7513 (getListeners): New method.
7514 (getAncestorListeners): Likewise.
7515 (getVetoableChangeListeners): Likewise.
7516 (fireVetoableChange): Throws PropertyVetoException.
7517 * javax/swing/JEditorPane.java
7518 (JEditorPane): Throws IOException.
7520 2004-01-28 David Jee <djee@redhat.com>
7522 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7523 (create): Set the default foreground color to
7524 java.awt.SystemColor.windowText.
7526 2004-01-27 Michael Koch <konqueror@gmx.de>
7528 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
7529 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7530 Reindented to merge with classpath.
7532 2004-01-27 David Jee <djee@redhat.com>
7534 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7535 (addExposeFilter): Handle GtkFramePeer separately.
7536 (removeExposeFilter): Likewise.
7538 2004-01-27 Michael Koch <konqueror@gmx.de>
7540 * gnu/java/net/protocol/http/Connection.java
7541 (getOutputStream): Fixed typo.
7543 2004-01-27 Michael Koch <konqueror@gmx.de>
7545 * java/lang/Class.java
7546 (getConstructor): Removed SecurityException from throws clause.
7547 (_getConstructors): Likewise.
7548 (getConstructors): Likewise.
7549 (getDeclaredConstructor): Likewise.
7550 (getDeclaredClasses): Likewise.
7551 (getDeclaredConstructors): Likewise.
7552 (getDeclaredField): Likewise.
7553 (getDeclaredMethod): Likewise.
7554 (getDeclaredMethods): Likewise.
7555 (getField): Likewise.
7556 (getMethod): Likewise.
7557 (getMethods): Likewise.
7559 2004-01-27 Kim Ho <kho@redhat.com>
7561 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7562 (removeMenuBarPeer): Remove MenuBarPeer argument.
7563 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
7564 (dispose): Call native method.
7565 * java/awt/Frame.java (setMenuBar): Create and remove
7566 MenuBar peers only if the Frame has a peer.
7567 (addNotify): Create the MenuBar peer if one exists.
7568 (removeNotify): Remove MenuBar peer if one exists.
7569 * java/awt/Menu.java: Fix imports.
7570 (addNotify): Don't use full class name.
7571 (removeNotify): Call removeNotify on all children.
7572 * java/awt/MenuBar.java (removeNotify): Call
7573 removeNotify on all children.
7574 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7575 (removeMenuBarPeer): Remove MenuBarPeer argument.
7576 Iterate through children to find the Frame's MenuBar.
7577 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
7579 (dispose): Remove references to the MenuComponent.
7581 2004-01-27 Michael Koch <konqueror@gmx.de>
7583 * javax/swing/AbstractCellEditor.java: Reformated.
7584 * javax/swing/DefaultListSelectionModel.java
7585 (listenerList): Made protected.
7586 (addListSelectionListener): Javadoc added.
7587 (removeListSelectionListener): Likewise.
7588 (getListeners): Likewise.
7589 (getListSelectionListeners): Likewise.
7590 * javax/swing/JComboBox.java: Merged copyright year.
7591 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
7593 2004-01-26 Andrew Haley <aph@redhat.com>
7595 * javax/swing/table/JTableHeader.java: Extend JComponent
7597 2004-01-26 Kim Ho <kho@redhat.com>
7599 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
7602 2004-01-26 Kim Ho <kho@redhat.com>
7604 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
7606 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
7607 height and let the Layout Managers readjust anything that
7609 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7610 (moveLayout): New method. Shift everything in the Gtk
7611 layout in the Y direction by an offset.
7613 2004-01-26 David Jee <djee@redhat.com>
7615 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
7616 (handleEvent): Implemented. Handles PaintEvents.
7617 (paint): Implemented. Use GTK native methods to queue updates
7618 for this heavyweight peer.
7619 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
7620 (handleEvent): Removed.
7621 * java/awt/Component.java
7622 (paint): Implemented. Explictly paint the heavyweight peer.
7623 (update): Clear the background for heavyweight components.
7624 (paintAll): No need to call peer.paint() anymore.
7625 (processEvent): Don't process PaintEvents here. It's now done in
7626 the peer's handleEvent().
7627 (processPaintEvent): Removed.
7628 * java/awt/Container.java
7629 (paint): No need to call super.paint(). Visit heavyweight
7631 (update): Don't clear the background here. It's done in
7633 (visitChildren): Added check to not recurse into Containers.
7634 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7635 (filter_expose_event_handler): New method. Filter unwanted
7636 expose events while painting heavyweight peers.
7637 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
7638 New method. Connect filter and block pre_event_handler.
7639 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
7640 New method. Disconnect filter and unblock pre_event_handler.
7641 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
7642 New method. Invalidate and update given area.
7643 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
7644 (pre_event_handler): Add checks for unwanted expose events.
7646 2004-01-26 David Jee <djee@redhat.com>
7648 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7649 (find_bg_color_widget): For GtkButton, return its child.
7651 2004-01-26 Kim Ho <kho@redhat.com>
7653 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
7655 (setMenuBar): Grab MenuBar height and change insets.
7656 (setBounds): Account for MenuBar height.
7657 (postInsetsChangedEvent): Ditto.
7658 (postSizeAllocateEvent): Remove.
7659 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7660 (menubar_resize_cb): Remove
7661 (setMenuBarPeer): Remove callback.
7662 (getMenuBarHeight): Use size requisition instead of
7665 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7667 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
7668 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
7670 (setColumns): Remove FIXME -- peer will retrieve number of
7671 columns by calling getColumns.
7672 (setRows): Likewise for number of rows.
7673 (next_text_number): New field.
7674 (paramString): Fix param string.
7675 (generateName): New method.
7676 (getUniqueLong): New method.
7678 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7680 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
7681 image observer of image loading status.
7682 (getImage (String)): Start image production.
7683 (getImage (URL)): Likewise.
7685 2004-01-25 Michael Koch <konqueror@gmx.de>
7687 * java/lang/Class.java: Imports reworked, reformated.
7688 (Class): Javadoc added.
7689 (forName): Likewise.
7690 (getClasses): Likewise.
7691 (getClassLoader): Likewise.
7692 (getComponentType): Likewise.
7693 (getConstructor): Likewise.
7694 (getConstructors): Likewise.
7695 (getDeclaredConstructor): Likewise.
7696 (getDeclaredClasses): Likewise.
7697 (getDeclaredConstructors): Likewise.
7698 (getDeclaredField): Likewise.
7699 (getDeclaredMethod): Likewise.
7700 (getDeclaredMethods): Likewise.
7701 (getDeclaringClass): Likewise.
7702 (getField): Likewise.
7703 (getInterfaces): Likewise.
7704 (getMethod): Likewise.
7705 (getMethods): Likewise.
7706 (getModifiers): Likewise.
7707 (getName): Likewise.
7708 (getResource): Likewise.
7709 (getResourceAsStream): Likewise.
7710 (getSigners): Likewise.
7711 (setSigners): Likewise.
7712 (getSuperclass): Likewise.
7713 (isArray): Likewise.
7714 (isAssignableFrom): Likewise.
7715 (isInstance): Likewise.
7716 (isInterface): Likewise.
7717 (isPrimitive): Likewise.
7718 (newInstance): Likewise.
7719 (getProtectionDomain): Likewise.
7720 (toString): Likewise.
7722 (initializeClass): Likewise.
7723 (finalize): Likewise.
7725 2004-01-24 Michael Koch <konqueror@gmx.de>
7727 * gnu/java/net/protocol/jar/Connection.java
7730 (gotHeaders): Removed.
7731 (getHeaderField): Removed.
7732 (getHeaderFields): Removed.
7733 (getHeaderFieldKey): Removed.
7735 (getField): Removed.
7736 (getHeaders): Removed.
7738 2004-01-24 Michael Koch <konqueror@gmx.de>
7740 * Makefile.am: Added library version to gtk peer lib.
7741 * Makefile.in: Regenerated.
7743 2004-01-24 Michael Koch <konqueror@gmx.de>
7745 * java/util/zip/InflaterInputStream.java: Merged class documentation
7748 2004-01-21 Jakub Jelinek <jakub@redhat.com>
7750 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
7751 header. For __powerpc64__ provide the default-signal.h definitions
7753 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
7754 instead of the dummy definitions.
7755 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
7756 (powerpc64*-*): Remove with_libffi_default.
7757 Only add -mminimal-toc for 64-bit compilations.
7758 * configure.in: Use powerpc-signal.h on powerpc64 as well.
7759 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
7760 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
7761 * configure: Rebuilt.
7763 2004-01-23 Michael Koch <konqueror@gmx.de>
7765 * gnu/java/nio/FileLockImpl.java: Compile fixes.
7767 2004-01-23 Michael Koch <konqueror@gmx.de>
7769 * java/lang/VMClassLoader.java: Reworked imports.
7771 2004-01-23 Michael Koch <konqueror@gmx.de>
7773 * javax/swing/AbstractAction.java: Reformated.
7775 2004-01-23 Michael Koch <konqueror@gmx.de>
7777 * java/text/CollationElementIterator.java:
7778 (setText): New method.
7780 2004-01-23 Michael Koch <konqueror@gmx.de>
7782 * gnu/java/nio/FileLockImpl.java:
7783 Fixed filename in copyright.
7784 (released): Removed.
7785 (finalize): New method.
7786 * gnu/java/nio/natFileLockImpl.cc
7787 (releaseImpl): Implemented.
7788 * java/nio/channels/FileChannelImpl.java:
7790 (lock): Implemented.
7791 (lockImpl): New method.
7792 (tryLock): Implemented.
7793 (tryLockImpl): New method.
7794 * java/nio/channels/natFileChannelImpl.cc
7795 (lockImpl): New method.
7796 (tryLockImpl): New method.
7798 2004-01-23 Michael Koch <konqueror@gmx.de>
7800 * java/io/FileDescriptor.java
7802 (tryLock): New method.
7803 (unlock): New method.
7804 * java/io/natFileDescriptorEcos.cc
7806 (tryLock): New method.
7807 (unlock): New method.
7808 * java/io/natFileDescriptorPosix.cc
7810 (tryLock): New method.
7811 (unlock): New method.
7812 * java/io/natFileDescriptorWin32.cc
7814 (tryLock): New method.
7815 (unlock): New method.
7817 2004-01-23 Michael Koch <konqueror@gmx.de>
7819 * java/io/FileDescriptor.java
7820 (sync): Moved around, added javadoc.
7825 (setLength): Likewise.
7827 (getLength): Likewise.
7828 (getFilePointer): Likewise.
7830 (available): Likewise.
7831 (finalize): Likewise.
7833 2004-01-23 Michael Koch <konqueror@gmx.de>
7835 * javax/swing/AbstractAction.java: Reformated.
7836 (getPropertyChangeListeners): New method.
7837 * javax/swing/AbstractCellEditor.java: Reformated.
7838 (getCellEditorListeners): New method.
7839 * javax/swing/DefaultListSelectionModel.java
7840 (listenerList): New field.
7841 (listeners): Removed.
7842 (get_listeners): Removed.
7843 (addListSelectionListener): Rewritten.
7844 (removeListSelectionListener): Rewritten.
7845 (getListSelectionListeners): New method.
7846 (getListeners): New method.
7847 * javax/swing/JComboBox.java: Imports reworked.
7848 (addActionListener): Implemented.
7849 (removeActionListener): Implemented.
7850 (addItemListener): Implemented.
7851 (removeItemListener): Implemented.
7852 (addPopupMenuListener): Implemented.
7853 (removePopupMenuListener): Implemented.
7854 (getActionListeners): New method.
7855 (getItemListeners): New method.
7856 (getPopupMenuListeners): New method.
7858 2004-01-23 Michael Koch <konqueror@gmx.de>
7860 * gnu/java/net/protocol/http/Connection.java
7861 (connect): Don't initialize bufferedOutputStream if not needed.
7862 (sendRequest): Set property for content length if content is present.
7863 Write content only if present.
7864 (getOutputStream): Check if already connected, dont connect,
7865 initalize bufferedOutputStream if needed.
7867 2004-01-23 Michael Koch <konqueror@gmx.de>
7869 * java/io/FileDescriptor.java
7870 (in, out, err): Added javadoc.
7871 (static): Merged loading code.
7872 (fd, position): Moved around.
7874 2004-01-23 Michael Koch <konqueror@gmx.de>
7876 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
7879 2004-01-23 Michael Koch <konqueror@gmx.de>
7881 * java/lang/Class.java,
7882 java/lang/Object.java,
7883 java/lang/Thread.java: Merged copyright with classpath.
7885 2004-01-23 Michael Koch <konqueror@gmx.de>
7887 * java/io/FileDescriptor.java: Merged copyright with classpath to
7888 start merging this class.
7890 2004-01-22 Tom Tromey <tromey@redhat.com>
7893 * testsuite/libjava.lang/pr13107_2.xfail: New file.
7894 * testsuite/libjava.lang/pr13107_3.xfail: New file.
7895 * testsuite/libjava.lang/pr13107_3.java: New file.
7896 * testsuite/libjava.lang/pr13107_3.out: New file.
7897 * testsuite/libjava.lang/pr13107_2.java: New file.
7898 * testsuite/libjava.lang/pr13107_2.out: New file.
7899 * testsuite/libjava.lang/pr13107.java: New file.
7900 * testsuite/libjava.lang/pr13107.out: New file.
7901 * verify.cc (jsr_ptrs): Removed.
7902 (entry_points): Likewise.
7903 (struct subr_info): Likewise.
7904 (struct subr_entry_info): Likewise.
7905 (type_val::unused_by_subroutine_type): Likewise.
7906 (type::merge): Don't handle unused_by_subroutine_type.
7907 (type::print): Likewise.
7908 (state::flags): Removed.
7909 (state::subroutine): Likewise.
7910 (state::seen_subrs): Likewise.
7911 (state::NO_STACK): Likewise.
7912 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
7913 (state): Updated all methods.
7914 (state::clean_subrs): Removed.
7915 (state::state): Removed `ret_semantics' flag.
7916 (state::copy): Likewise.
7917 (state::add_subr): Removed.
7918 (state::enter_subroutine): Likewise.
7919 (type::set_return_address): New method.
7920 (handle_jsr_insn): Set return address on the type. Always
7921 invalidate PC after call.
7922 (check_nonrecursive_call): Removed.
7923 (~_Jv_BytecodeVerifier): Updated.
7924 (branch_prepass): Removed special handling of jsr.
7925 (note_branch_target): Likewise.
7926 (get_subroutine): Removed.
7927 (state::merge): Don't merge subroutines and don't handle
7928 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
7929 (state::note_variable): Removed.
7930 (state::is_unmerged_ret_state): Likewise.
7931 (state::print): Updated.
7932 (set_variable): Likewise.
7933 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
7934 and jsr_semantics arguments. Updated for new reverification
7936 (pop_jump): Rewrote.
7937 (construct_primitive_array_type): Updated.
7938 (state::next): Removed.
7939 (INVALID_STATE): New define.
7940 (state::INVALID): Removed.
7941 (state::NO_NEXT): New value.
7942 (state::pc, state::next): New fields.
7943 (state::get_pc): New method.
7944 (next_verify_pc): Removed.
7945 (next_verify_state): New field.
7946 (verify_instructions_0): Always check for falling off end.
7948 (linked_utf8): Removed.
7949 (states): Changed type.
7950 (type::state_mergeable_p): New method.
7951 (state::state_mergeable_p): Likewise.
7952 (handle_ret_insn): Removed most code.
7953 (state::reverify): New method.
7954 (add_new_state): Likewise.
7955 (state::set_pc): Likewise.
7957 2004-01-22 Jeff Sturm <jsturm@one-point.com>
7960 * testsuite/libjava.compile/PR13733.java: New file.
7961 * testsuite/libjava.compile/PR13733.xfail: New file.
7963 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
7964 Michael Koch <konqueror@gmx.de>
7966 * javax/swing/table/DefaultTableCellRenderer.java
7967 (DefaultTableCellRenderer): Added javadoc for the class and for
7968 the constructor, Border instance, create an EmptyBorder.
7969 (UIResource): Removed the comment at the end of the class
7970 (setForeground): New method.
7971 (setBackground): New method.
7972 (updateUI): New method.
7973 (getTableCellRendererComponent): Rewritten with the help of
7974 dvholten and Stephane Meslin-Weber.
7975 (validate): New method.
7976 (repaint): New method.
7977 (firePropertyChange): New method.
7978 (setValue): New method.
7980 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
7982 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7983 (connectJObject): Replace printf calls with g_assert statements.
7984 Move property-notify-event signal connection to ...
7985 (connectSignals): Connect property-notify-event signal. Iterate
7986 through the vbox's children to find layout.
7988 2004-01-22 Graydon Hoare <graydon@redhat.com>
7990 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
7991 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7992 Predicate static initialization on GtkToolkit.useGraphics2D().
7993 * java/awt/Component.java (processPaintEvent): Consume event.
7994 * javax/swing/AbstractButton.java: Reimplement, document.
7995 * javax/swing/DefaultButtonModel.java: Reimplement, document.
7996 * javax/swing/JComponent.java (paint): Use double buffer.
7997 (listenerList): Enable member.
7998 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
7999 * javax/swing/JToggleButton.java
8000 (JToggleButton): Modify model constructor.
8001 * javax/swing/SwingUtilities.java
8002 (layoutCompoundLabel): Adjust arithmetic.
8003 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
8004 * javax/swing/plaf/basic/BasicGraphicsUtils.java
8005 (getPreferredButtonSize): Include margins in calculation.
8006 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8007 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
8008 Receive up events from subordinate layout component.
8010 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
8012 * java/awt/Component.java (show): Set visible to true before
8015 2004-01-21 Kim Ho <kho@redhat.com>
8017 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
8019 (removeMenuBarPeer): Make package private.
8020 (setMenuBarPeer): Make package private.
8021 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8022 (menubar_resize_cb): Mark attributes unused.
8023 (getMenuBarHeight): ditto.
8025 2004-01-21 David Jee <djee@redhat.com>
8027 * java/awt/Container.java
8028 (LightweightDispatcher.handleEvent): Add an extra check to avoid
8029 dispatching MOUSE_ENTERED event twice. Translate the point for
8030 the mouse event target before dispatching the event.
8032 2004-01-20 Jakub Jelinek <jakub@redhat.com>
8034 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
8035 lib_org_w3c_dom_la_LDFLAGS): New.
8036 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
8037 * Makefile.in: Rebuilt.
8039 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
8041 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
8042 Calculate proper offsets for heavyweight components packed in
8043 lightweight containers.
8045 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
8046 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
8047 (native create): Add width parameter.
8048 (create): Calculate text entry width based on current font's
8049 metrics and number of columns. Set TextField's font if not
8050 already set. Call native create.
8051 (gtkEntryGetBorderWidth): New native method.
8052 (gtkEntryGetSize): Remove method.
8053 (getMinimumSize): Call minimumSize.
8054 (getPreferredSize): Call preferredSize.
8055 (minimumSize): Calculate minimum size based on backing
8056 GtkEntry's borders, font metrics and number of columns.
8057 (preferredSize): Likewise for preferred size.
8058 (get_border_width): New static function.
8060 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
8061 Override GtkWindowPeer's setResizable method to account for menu
8062 bar height when setting the frame's size.
8064 2004-01-19 Matthias Klose <doko@debian.org>
8066 * libtool-version: Increased `current' to 6.
8068 2004-01-19 Kim Ho <kho@redhat.com>
8070 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8071 (connectJObject): Iterate through the vbox's children to find layout.
8073 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8075 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
8076 isDispatchThread method to replace wrong test condition.
8078 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8080 * java/awt/EventQueue.java (pop): Prevent racing condition to add
8081 events to the queue out of order by acquiring locks in the proper
8082 order and not by releasing one before acquiring the other.
8084 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8086 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
8087 visible so that dialog can be reused.
8089 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8091 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
8092 events may be handled by any queue in the stack.
8094 2004-01-19 Kim Ho <kho@redhat.com>
8096 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
8097 MenuBarPeer parameter.
8098 (removeMenuBarPeer): New native method.
8099 (setMenuBar): Call remove if menu bar is null. Adjust insets
8101 (postSizeAllocateEvent): New method. Called when menu bar size is
8102 allocated. Adjust insets and redo layout.
8103 (GtkFramePeer): Set menu bar during frame creation.
8104 (postConfigureEvent): Adjust position and size to accomodate
8106 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
8107 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
8108 (addNotify): Create the peer if it doesn't exist and call addNotify
8109 for the menu's items.
8110 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
8111 * java/awt/MenuItem.java (addNotify): Create the peer if it
8113 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8114 (removeMenuBarPeer): New method. Remove menu bar on the current
8116 (setMenuBarPeer): Add the menu bar to the current frame and the
8117 callback for size-allocate events on the menu bar.
8118 (getMenuBarHeight): Add menu bar parameter.
8119 (menubar_resize_cb): New callback method for postSizeAllocate events.
8121 Also: Fix indentation on last ChangeLog entry.
8123 2004-01-16 Kim Ho <kho@redhat.com>
8125 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8126 (gtkWidgetGetDimensions): Remove.
8127 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8128 (gtkWidgetGetDimensions): Remove.
8130 2004-01-16 Tom Tromey <tromey@redhat.com>
8132 * java/awt/Container.java: Typo and indentation fixes.
8134 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
8135 * java/lang/natVMClassLoader.cc: ...here. New file.
8136 * Makefile.in: Rebuilt.
8137 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
8139 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8141 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
8142 Discard GDK_ENTER_NOTIFY related to ungrabs.
8144 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8146 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
8147 is called for an intermediate queue.
8149 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
8151 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8152 (window_property_changed_cb): Set id_set.
8154 2004-01-16 Kim Ho <kho@redhat.com>
8156 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
8157 it is a FileDialog and has dimensions of 0 by 0, then the initial
8158 size is set to size request plus insets.
8159 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8160 (gtkWidgetGetDimensions): Override method.
8161 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8162 (gtkWidgetGetDimensions): Override method. Returns size request plus
8165 2004-01-16 Andrew Haley <aph@redhat.com>
8167 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
8168 * sysdep/i386/locks.h: Likewise.
8170 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8172 * java/awt/EventDispatchThread.java (run): Stop running when
8174 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
8175 Reset the queue after transferring its contents.
8176 (push): Start a new dispatch thread if none is running.
8178 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
8180 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8181 (doPolygon): set fill rule of polygon to
8182 WIND_EVEN_ODD by default.
8184 2004-01-15 Olga Rodimina <rodimina@redhat.com>
8186 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8187 Implemented rendering hints related methods.
8188 (getDefaultHints): New helper method. Returns
8189 default rendering hints.
8190 (walkPath): changed to normalize path if
8191 the KEY_STROKE_CONTROL key is in "normalize" mode.
8192 (draw3DRect): changed coordinates of rectangle by +0.5
8193 if in "normalize" mode.
8195 2004-01-15 Tom Tromey <tromey@redhat.com>
8197 * Makefile.in: Rebuilt.
8198 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
8199 (%.lo: %.java) Filter out StackTrace.lo.
8201 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
8203 * configure.in: Add in AC_PREREQ(2.13)
8204 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
8207 2004-01-14 Nathan Bryant <nbryant@optonline.net>
8208 Tom Tromey <tromey@redhat.com>
8211 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
8212 array to superclass.
8213 (init): Changed interface; add URLs here.
8214 (initialize): New static method.
8215 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
8216 (_Jv_RunMain): ... not here.
8218 2004-01-14 Michael Koch <konqueror@gmx.de>
8220 * java/text/MessageFormat.java:
8221 Added descriptions to exceptions.
8222 This fixes PR libgcj/2429.
8224 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8226 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
8227 (push): Make sure push is performed at the top of the thread stack.
8229 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8231 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
8232 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8233 (native create): Add width and height parameters. Set text
8234 view's size request according to new parameters.
8235 (create): Calculate text view size based on current font's
8236 metrics and number of rows and columns. Set TextArea's font if
8237 not already set. Call native create.
8238 (getMinimumSize): Call minimumSize.
8239 (getPreferredSize): Call preferredSize.
8240 (getHScrollbarHeight): New method.
8241 (getVScrollbarWidth): New method.
8242 (minimumSize): Calculate minimum size based on scrollbar
8243 visibility, scrollbar sizes, font metrics and number of rows and
8245 (preferredSize): Likewise for preferred size.
8246 (gtkTextGetSize): Remove method.
8248 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8250 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8251 (initializeInsets): Remove method.
8252 (GtkComponentPeer): Initialize insets field. Remove call to
8254 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
8256 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
8258 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
8259 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
8260 (latestInsets): Remove field.
8261 (native create): Add insets parameter. Call
8262 window_get_frame_extents. Set the window's default size and
8263 size request based on its frame extents.
8264 (create): Initialize insets.
8265 (postInsetsChangedEvent): New method.
8266 (postConfigureEvent): Remove parameters top, left, bottom,
8267 right. Remove insets-related logic.
8268 (connectJObject): Handle property-notify-event.
8269 (window_get_frame_extents, request_frame_extents,
8270 property_notify_predicate, window_property_changed_cb): New
8272 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8273 (pre_event_handler): Remove insets-related logic for configure
8275 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
8276 Update postConfigureEvent signature.
8278 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8280 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
8281 to handle Window "Closing" events.
8283 2004-01-13 David Jee <djee@redhat.com>
8285 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8286 (setBackground): New method. Children with no explicitly-set
8287 background will be repainted with the parent container's new
8290 2004-01-13 David Jee <djee@redhat.com>
8292 * Makefile.am: Add BitwiseXORComposite.java.
8293 * Makefile.in: Regenerated.
8294 * gcj/Makefile.in: Regenerated.
8295 * include/Makefile.in: Regenerated.
8296 * testsuite/Makefile.in: Regenerated.
8298 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8300 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
8301 not show modal dialogs twice and so that it allows showing a modal
8302 dialog from another modal dialog.
8304 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8306 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
8307 and run secondary dispatch thread to process event queue while this
8310 2004-01-12 Graydon Hoare <graydon@redhat.com>
8312 * gnu/java/awt/gtk/GdkGraphics2D.java
8313 (static): Check GtkToolkit before initializing static state.
8314 (Graphics2D): Don't construct transform with 0.5 unit offset.
8316 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
8318 * gnu/java/awt/BitwiseXORComposite.java: Add.
8319 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8320 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
8321 (BitwiseXORComposite): Remove inner class.
8323 2004-01-11 Michael Koch <konqueror@gmx.de>
8325 * gnu/java/lang/reflect/TypeSignature.java
8326 (getEncodingOfClass): Documentation fixed.
8327 (getClassForEncoding): Give class loader to Class.forName().
8328 Documentation fixed.
8330 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
8332 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
8334 2004-01-11 Michael Koch <konqueror@gmx.de>
8336 * javax/swing/undo/StateEditable.java
8337 (RCSID): Removed redundant modifiers.
8339 2004-01-10 Michael Koch <konqueror@gmx.de>
8341 * javax/print/attribute/EnumSyntax.java
8342 (getStringTable): Made protected.
8343 (getEnumValueTable): Likewise.
8344 * javax/print/attribute/standard/JobKOctetsProcessed.java
8345 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
8346 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
8347 (JobMediaSheetsCompleted): Made class final.
8348 * javax/print/attribute/standard/OutputDeviceAssigned.java
8349 (getName): Fixed typo.
8350 * javax/print/attribute/standard/RequestingUserName.java
8351 (serialVersionUID): Fixed value.
8353 2004-01-10 Michael Koch <konqueror@gmx.de>
8355 * javax/swing/plaf/basic/BasicButtonUI.java,
8356 javax/swing/plaf/basic/BasicCheckBoxUI.java,
8357 javax/swing/plaf/basic/BasicListUI.java,
8358 javax/swing/plaf/basic/BasicOptionPaneUI.java,
8359 javax/swing/plaf/basic/BasicPanelUI.java,
8360 javax/swing/plaf/basic/BasicRadioButtonUI.java,
8361 javax/swing/plaf/basic/BasicScrollPaneUI.java,
8362 javax/swing/plaf/basic/BasicToggleButtonUI.java,
8363 javax/swing/plaf/basic/BasicViewportUI.java:
8364 Fixed import statements.
8366 2004-01-10 Michael Koch <konqueror@gmx.de>
8368 * gnu/java/awt/image/ImageDecoder.java
8369 (produce): Made public.
8370 * gnu/java/awt/peer/GLightweightPeer.java,
8371 gnu/java/awt/peer/gtk/GtkToolkit.java:
8374 2004-01-10 Michael Koch <konqueror@gmx.de>
8376 * javax/swing/JRadioButtonMenuItem.java,
8377 javax/swing/JSeparator.java,
8378 javax/swing/JSplitPane.java,
8379 javax/swing/JTextPane.java,
8380 javax/swing/JToolBar.java,
8381 javax/swing/ListCellRenderer.java,
8382 javax/swing/ListModel.java,
8383 javax/swing/MenuElement.java,
8384 javax/swing/OverlayLayout.java,
8385 javax/swing/ProgressMonitor.java,
8386 javax/swing/ProgressMonitorInputStream.java,
8387 javax/swing/Renderer.java,
8388 javax/swing/RootPaneContainer.java,
8389 javax/swing/Scrollable.java,
8390 javax/swing/SingleSelectionModel.java,
8391 javax/swing/ToolTipManager.java,
8392 javax/swing/ViewportLayout.java,
8393 javax/swing/event/DocumentEvent.java,
8394 javax/swing/event/SwingPropertyChangeSupport.java,
8395 javax/swing/event/TreeSelectionEvent.java,
8396 javax/swing/event/UndoableEditEvent.java,
8397 javax/swing/text/AbstractDocument.java,
8398 javax/swing/text/AttributeSet.java,
8399 javax/swing/text/Caret.java,
8400 javax/swing/text/ComponentView.java,
8401 javax/swing/text/DefaultCaret.java,
8402 javax/swing/text/DefaultEditorKit.java,
8403 javax/swing/text/Document.java,
8404 javax/swing/text/EditorKit.java,
8405 javax/swing/text/GapContent.java,
8406 javax/swing/text/Keymap.java,
8407 javax/swing/text/MutableAttributeSet.java,
8408 javax/swing/text/PlainEditorKit.java,
8409 javax/swing/text/Segment.java,
8410 javax/swing/text/Style.java,
8411 javax/swing/text/StyledDocument.java,
8412 javax/swing/text/StyledEditorKit.java,
8413 javax/swing/text/TextAction.java,
8414 javax/swing/text/View.java: Fixed import statements.
8416 2004-01-08 Graydon Hoare <graydon@redhat.com>
8418 * javax/swing/JLayeredPane.java: Rewrite to accomodate
8419 djee@redhat.com's recent inverse ordering of Container elements.
8421 2004-01-09 Michael Koch <konqueror@gmx.de>
8423 * gnu/java/lang/ArrayHelper.java
8424 (equalsArray): Removed.
8426 2004-01-09 Andrew Haley <aph@redhat.com>
8428 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
8429 a Utf8Const field before looking at its class.
8431 2004-01-09 Michael Koch <konqueror@gmx.de>
8433 * javax/print/attribute/standard/DocumentName.java,
8434 javax/print/attribute/standard/JobHoldUntil.java,
8435 javax/print/attribute/standard/JobMessageFromOperator.java,
8436 javax/print/attribute/standard/JobName.java,
8437 javax/print/attribute/standard/JobOriginatingUserName.java,
8438 javax/print/attribute/standard/OutputDeviceAssigned.java,
8439 javax/print/attribute/standard/PrinterInfo.java,
8440 javax/print/attribute/standard/PrinterLocation.java,
8441 javax/print/attribute/standard/PrinterMakeAndModel.java,
8442 javax/print/attribute/standard/PrinterMessageFromOperator.java,
8443 javax/print/attribute/standard/PrinterName.java,
8444 javax/print/attribute/standard/RequestingUserName.java: New files.
8445 * Makefile.am (javax_source_files): Added new files.
8446 * Makefile.in: Regenerated.
8448 2004-01-09 Michael Koch <konqueror@gmx.de>
8450 * javax/swing/AbstractAction.java,
8451 javax/swing/AbstractSet.java,
8452 javax/swing/Action.java,
8453 javax/swing/ActionMap.java,
8454 javax/swing/BoundedRangeModel.java,
8455 javax/swing/ButtonModel.java,
8456 javax/swing/CellEditor.java,
8457 javax/swing/CellRendererPane.java,
8458 javax/swing/ComboBoxEditor.java,
8459 javax/swing/DebugGraphics.java,
8460 javax/swing/DefaultCellEditor.java,
8461 javax/swing/DefaultCellRenderer.java,
8462 javax/swing/DefaultComboBoxModel.java,
8463 javax/swing/DefaultDesktopManager.java,
8464 javax/swing/DefaultFocusManager.java,
8465 javax/swing/DefaultListCellRenderer.java,
8466 javax/swing/Icon.java,
8467 javax/swing/JButton.java,
8468 javax/swing/JCheckBoxMenuItem.java,
8469 javax/swing/JDesktopPane.java,
8470 javax/swing/JEditorPane.java,
8471 javax/swing/JMenu.java,
8472 javax/swing/JPanel.java,
8473 javax/swing/JPasswordField.java,
8474 javax/swing/JPopupMenu.java,
8475 javax/swing/JProgressBar.java: Reworked imports.
8477 2004-01-09 Michael Koch <konqueror@gmx.de>
8479 * java/awt/geom/PathIterator.java
8480 (WIND_EVEN_ODD): Removed redundant modifiers.
8481 (WIND_NON_ZERO): Likewise.
8482 (SEG_MOVETO): Likewise.
8483 (SEG_LINETO): Likewise.
8484 (SEG_QUADTO): Likewise.
8485 (SEG_CUBICTO): Likewise.
8486 (SEG_CLOSE): Likewise.
8487 * java/awt/image/SinglePixelPackedSampleModel.java:
8488 Removed redundant semicolon.
8489 * java/io/ObjectInputStream.java
8490 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
8491 * java/util/logging/Filter.java
8492 (isLoggable): Removed redundant modifier.
8493 * java/util/logging/LogManager.java:
8494 Removed redundant semicolon.
8495 * java/util/logging/XMLFormatter.java
8496 (format): Removed unused variable "key".
8498 2004-01-08 Fernando Nasser <fnasser@redhat.com>
8500 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
8501 New name for the former setFile native method.
8502 (setFile): New method.
8503 (setDirectory): Implemented.
8504 (connectSignals): New native method.
8505 (setFilenameFilter): Improve comment.
8506 (getGraphics): Comment.
8507 (gtkHideFileDialog): New method.
8508 (gtkDisposeFileDialog): New method.
8509 (gtkSetFilename): New method.
8510 * java/awt/Dialog.java (show): Block on modal dialogs, but only
8511 for FileDialog for now.
8513 (dispose): New method.
8514 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8515 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
8516 deprecated creation functions. Make dialog modal. Add it to the
8518 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
8520 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
8522 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
8524 (window_closed): New function.
8525 (ok_clicked): New function.
8526 (cancel_clicked): New function.
8528 2004-01-08 Michael Koch <konqueror@gmx.de>
8530 * javax/swing/JLayeredPane.java: Revert changes to standard
8531 boilerplate, reworked imports.
8533 2004-01-07 Tom Tromey <tromey@redhat.com>
8536 * verify.cc (state::merge): Copy changed locals out of subroutine
8538 (state::FLAG_CHANGED): New const.
8539 (state::FLAG_UNUSED): Likewise.
8540 (state::local_changed): Removed. Updated all users.
8541 (state::flags): New field.
8542 (state::merge): Added jsr_semantics argument, more logic.
8543 (push_jump_merge): Added jsr_semantics argument.
8544 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
8545 merging through the jsr instruction.
8547 2004-01-07 Tom Tromey <tromey@redhat.com>
8549 * scripts/MakeDefaultMimeTypes.java: Use \n, not
8552 2004-01-07 Graydon Hoare <graydon@redhat.com>
8554 * java/awt/Container.java (LightweightDispatcher): Implement.
8555 (visitChild): Reuse graphics object.
8556 (dispatchEventImpl): Optionally dispatch to lightweight.
8557 (addNotifyContainerChildren): Build LightweightDispatcher.
8559 2004-01-07 David Jee <djee@redhat.com>
8561 * java/awt/Container.java
8562 (update): Clear only the clipped region, instead of clearing the
8564 (visitChildren): Visit children in descending order.
8566 2004-01-07 Michael Koch <konqueror@gmx.de>
8568 * java/lang/reflect/Array.java: Merged documentation with classpath.
8570 2004-01-07 Michael Koch <konqueror@gmx.de>
8572 * java/text/CollationElementIterator.java
8573 (textIndex): Renamed from index.
8574 * java/text/CollationKey.java
8575 (collator): New member.
8576 (CollationKey): New argument for parent collator.
8577 (equals): Check for same collator, source string and key array.
8578 * java/text/RuleBasedCollator.java:
8580 (RuleBasedCollator): Don't re-initialize frenchAccents with default
8582 (getCollationElementIterator): Rewritten.
8583 (getCollationKey): Added new argument to CollationKey constructor.
8585 2004-01-07 Michael Koch <konqueror@gmx.de>
8587 * gnu/java/nio/DatagramChannelImpl.java
8588 (blocking): Removed.
8589 (DatagramChannelImpl): Call configureBlocking().
8590 (implConfigureBlocking): Dont initialize blocking.
8591 * gnu/java/nio/ServerSocketChannelImpl.java
8592 (blocking): Removed.
8593 (ServerSocketChannelImpl): Call configureBlocking().
8594 (implConfigureBlocking): Dont initialize blocking.
8595 * gnu/java/nio/SocketChannelImpl.java
8596 (blocking): Removed.
8597 (SocketChannelImpl): Call configureBlocking().
8598 (implConfigureBlocking): Dont initialize blocking.
8599 (connect): Use isBlocking().
8600 * java/nio/channels/spi/AbstractSelectableChannel.java
8601 (configureBlocking): Use blockingLock() instead of LOCK.
8602 Set blocking after successfully called implConfigureBlocking().
8603 (register): Use blockingLock() instead of LOCK.
8605 2004-01-07 Michael Koch <konqueror@gmx.de>
8607 * java/net/ServerSocket.java (isBound): Fixed documentation.
8609 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
8611 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
8612 (changeEvent): Create event object on demand.
8613 (DefaultBoundedRangeModel, toString, setValue, setExtent,
8614 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
8615 fireStateChanged): Re-written.
8616 * javax/swing/event/EventListenerList.java: Reformatted, document
8618 (toString): Implemented.
8619 (getListeners): Re-written.
8620 (remove): Re-written.
8622 (NO_LISTENERS): New singleton field.
8623 (listenerList): Declare as transient; document.
8624 (serialVersionUID): Document.
8625 (getListenerCount(Class)): More efficient implementation,
8626 also accepts null argument. Improve Javadoc.
8627 (getListenerCount()): Remove unnecessary cast; docfix.
8628 * javax/swing/undo/UndoableEditSupport.java:
8629 Re-format, document.
8630 (UndoableEditSupport): Set realSource field. Improve documentation.
8631 (_postEdit): Iterate over cloned listener vector.
8632 (toString): Don't emit realSource.
8633 (beginUpdate, endUpdate): Support nested updates.
8634 (postEdit): Use compound edit if present.
8636 2004-01-06 Graydon Hoare <graydon@redhat.com>
8638 * java/awt/Container.java (swapComponents): Add forgotten
8639 function, required for JLayeredPane change.
8641 2004-01-06 Michael Koch <konqueror@gmx.de>
8643 * java/text/CollationElementIterator.java: Reformated.
8644 (CollationElementIterator): Changed order of arguments.
8645 * java/text/RuleBasedCollator.java
8646 (RuleBasedCollator): Merged class documentation.
8647 (CollationElement): Added documentation.
8648 (compare): Reformated, renamed arguments.
8650 (getCollationElementIterator): Likewise.
8651 (getCollationKey): Likewise.
8653 2004-01-06 Graydon Hoare <graydon@redhat.com>
8655 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
8657 2004-01-06 Michael Koch <konqueror@gmx.de>
8659 * gnu/java/net/protocol/file/Connection.java:
8660 Reformated copyright.
8663 (gotHeaders): Removed.
8664 (getHeaderField): Removed.
8665 (getHeaderField): Removed.
8666 (getHeaderFieldKey): Removed.
8668 (getField): Removed.
8669 (getHeaders): Removed.
8671 2004-01-06 Michael Koch <konqueror@gmx.de>
8673 * javax/print/attribute/standard/DateTimeAtCompleted.java,
8674 javax/print/attribute/standard/DateTimeAtCreation.java,
8675 javax/print/attribute/standard/DateTimeAtProcessing.java,
8676 javax/print/attribute/standard/JobImpressionsCompleted.java,
8677 javax/print/attribute/standard/JobKOctets.java,
8678 javax/print/attribute/standard/JobKOctetsProcessed.java,
8679 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
8680 javax/print/attribute/standard/JobPrioritySupported.java: New files.
8681 * Makefile.am (javax_source_files): Added new files.
8682 * Makefile.in: Regenerated.
8684 2004-01-06 Michael Koch <konqueror@gmx.de>
8686 * java/net/URLConnection.java
8687 (contentHandler): Removed.
8689 (getHeaderFields): Return an empty map instead of null.
8690 (getContent): Connect if needed, renamed "cType" to "type" and
8691 "contentHandler" to "ch" and made it a local variable.
8692 (getPermission): Don't use package in class name.
8693 (setDefaultRequestProperty): Fixed typo in documentation.
8694 (initializeDateFormats): Made locale a local variable.
8696 2004-01-06 Michael Koch <konqueror@gmx.de>
8698 * java/lang/Package.java
8699 (getPackage): Get the current class loader directly.
8700 * java/lang/SecurityManager.java
8701 (currentLoadedClass): Dont iterate over class contexts.
8702 (classLoaderDepth): Don't check class loaders if everything is allowed.
8704 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8706 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8707 (pre_event_handler): Set all insets to 0 when a Configure event
8708 is received for a GtkPlug.
8709 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
8710 Make handle long, not int.
8711 (EmbeddedWindow()): New constructor.
8712 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
8714 (setHandle): New method.
8715 (getHandle): Return long, not int.
8716 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
8718 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
8719 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
8720 (create(long)): Take long parameter, not int. Cast gtk_plug_new
8721 argument to GdkNativeWindow.
8722 (construct): New method.
8723 (embed): New method.
8725 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
8726 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
8727 (create(int, int)): New method.
8728 (create): Call new create method.
8729 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
8731 (childResized): Remove native implementation. Implement in
8733 (getHScrollbarHeight, getVScrollbarWidth): Call
8734 gtk_widget_size_request to get scrollbar dimensions.
8735 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
8736 call getVScrollbarWidth and getHScrollbarHeight when vertical
8737 and horizontal scrollbars respectively are needed.
8738 (doLayout): Enlarge child if it is smaller than the viewport.
8740 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8742 * java/awt/Dialog.java (constructor): Accept null title as per spec.
8743 * java/awt/FileDialog.java (constructor): Throw exception on invalid
8744 argument as per spec.
8746 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8748 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
8750 (remove): Ditto. Also, Check for valid argument.
8751 (removeAll): Use peer interface method.
8752 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
8753 native add function.
8754 (nativeRemove): New name for native remove function.
8755 (getHistory): New native function.
8756 (constructor): Generate ItemEvent.
8757 (add): Ditto, if selection is changed.
8758 (remove): Ditto, ditto.
8759 (removeAll): Add implementation.
8760 (handleEvent): Remove. Dead code.
8761 (choicePostItemEvent): Add comment.
8762 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8763 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
8764 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
8765 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
8766 comments and fix condition to change selection.
8767 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
8768 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
8769 remove all capability.
8770 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
8771 (item_activate): Add cast to remove compiler warning.
8773 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8775 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
8776 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8777 (getPreferredSize): Call preferredSize.
8778 (preferredSize): Call gtkWidgetGetPreferredDimensions.
8779 (getMinimumSize): Call minimumSize.
8780 (minimumSize): Call gtkWidgetGetPreferredDimensions.
8781 (gtkWidgetGetDimensions): Return the peer widget's current size
8783 (gtkWidgetGetPreferredDimensions): Return the peer widget's
8784 natural size request.
8786 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
8788 Thanks to Brian Gough <bjg@network-theory.com>
8789 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
8790 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
8792 2004-01-04 Matthias Klose <doko@debian.org>
8794 * aclocal.m4: Rebuilt using "aclocal -I .".
8795 * configure: Rebuilt.
8797 2004-01-03 Per Bothner <per@bothner.com>
8799 * java/util/Date.java (parse): Fix a number of problems.
8800 (skipParens): Remove no-longer-needed method.