1 2004-08-04 Paolo Bonzini <bonzini@gnu.org>
3 * configure.ac: New name of...
4 * configure.in: ... this file.
6 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
8 * configure.in: Eliminate uses of changequote (mostly by quoting []).
9 Replace most top level 'dnl' comments with '#' comments, conforming
10 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
14 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
16 * acinclude.m4: Include no-executables.m4.
17 * aclocal.m4: Rebuild.
18 * configure.in: Convert to the autoconf 2.59 version of
19 of the no-executables hack, and also of the nonstandard CXX
20 hack and the multilibbed CC and CXX hack. Change prerequisite
22 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
23 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
24 testsuite/Makefile.in: Regenerate.
26 2004-08-03 Tom Tromey <tromey@redhat.com>
30 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
32 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
34 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
36 * testsuite/libjava.compile/PR16701.java: New test.
38 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
40 * java/util/Collection.java, java/util/List.java,
41 java/util/Map.java, java/util/Set.java,
42 java/util/SortedMap.java, java/util/SortedSet.java:
43 Added additional exceptions to documentation.
45 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
48 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
49 * configure. Regenerate.
50 * include/win32.h: Explicitly include winsock2.h
51 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
54 2004-07-30 Michael Koch <konqueror@gmx.de>
56 * java/util/zip/GZIPInputStream.java
57 (GZIPInputStream): Increase buffer size to 4k.
58 * java/util/zip/GZIPOutputStream.java
59 (GZIPOutputStream): Likewise.
60 * java/util/zip/Inflater.java
61 (setInput): Merged formating with GNU classpath.
62 * java/util/zip/InflaterInputStream.java
63 (InflaterInputStream): Increase buffer size to 4k.
64 (fill): Throw exception if stream ends early.
65 (read): Merged endless-loop with GNU classpath.
66 (skip): Increase buffer size to 2k.
68 2004-07-30 Michael Koch <konqueror@gmx.de>
70 * gnu/java/awt/EmbeddedWindow.java
71 (addNotify): Use AccessController to allow execution of privileged
74 2004-07-29 Michael Koch <konqueror@gmx.de>
76 * gnu/java/lang/MainThread.java:
77 Explicitely import used classes.
78 (args): Make it type String[].
80 2004-07-29 Dalibor Topic <robilad@kaffe.org>
82 * gnu/java/awt/ComponentDataBlitOp.java,
83 gnu/java/beans/ExplicitBeanInfo.java,
84 gnu/java/beans/IntrospectionIncubator.java,
85 gnu/java/beans/editors/ColorEditor.java,
86 gnu/java/beans/editors/FontEditor.java,
87 gnu/java/beans/editors/NativeBooleanEditor.java,
88 gnu/java/beans/editors/NativeByteEditor.java,
89 gnu/java/beans/editors/NativeDoubleEditor.java,
90 gnu/java/beans/editors/NativeFloatEditor.java,
91 gnu/java/beans/editors/NativeIntEditor.java,
92 gnu/java/beans/editors/NativeLongEditor.java,
93 gnu/java/beans/editors/NativeShortEditor.java,
94 gnu/java/beans/editors/StringEditor.java,
95 gnu/java/io/ClassLoaderObjectInputStream.java,
96 gnu/java/io/decode/Decoder.java,
97 gnu/java/io/encode/Encoder.java,
98 gnu/java/lang/ClassHelper.java,
99 gnu/java/locale/Calendar.java,
100 gnu/java/locale/Calendar_de.java,
101 gnu/java/locale/Calendar_en.java,
102 gnu/java/locale/Calendar_nl.java,
103 gnu/java/locale/LocaleInformation_de.java,
104 gnu/java/locale/LocaleInformation_en.java,
105 gnu/java/locale/LocaleInformation_nl.java:
108 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
110 * README: Remove obsolete info. Update bug URL.
112 * NEWS: Updated with news up to GCC 3.4 release.
114 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
116 * gnu/java/security/action/GetPropertyAction.java (setParameters):
117 Renamed from 'setName'. New 2-argument form with default value.
118 (run): Pass default 'value' parameter to System.getProperty().
119 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
121 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
124 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
126 * configure.in: Check for minimum GTK version 2.4 requirement.
127 * configure: Rebuilt.
129 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
131 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
132 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
134 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
136 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
137 address. Reduce sleep times. Synchronize with target threads before
138 attempting to interrupt them. Don't try to calibrate yeild count,
139 instead, always loop for a fixed time.
140 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
141 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
142 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
143 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
144 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
145 * testsuite/libjava.lang/pr179.java: Likewise.
146 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
147 time. Remove upper bounds check on sleep time.
149 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
151 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
152 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
154 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
156 * java/io/File.java (toURI): Throw RuntimeException, not
158 * java/lang/Runtime.java (exit): Qualify static sleep() call with
159 class name, not instance.
161 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
163 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
164 and gnu/java/security/action/SetAccessibleAction.java.
165 * Makefile.in: Rebuilt.
167 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
169 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
170 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
172 (DECLARE_PRIM_TYPE): Don't declare array vtables.
173 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
174 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
176 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
178 * Makefile.am: Replace jar, rmic and rmiregistry references with
179 gjar, grmic and grmiregistry.
180 * configure.in: Likewise.
181 * Makefile.in: Regenerate.
182 * configure: Likewise.
183 * gcj/Makefile.in: Likewise.
184 * include/Makefile.in: Likewise.
185 * testsuite/Makefile.in: Likewise.
187 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
189 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
190 for privileged getProperty calls.
191 * java/io/ObjectOutputStream.java (getField): No longer static. Use
192 SetAccessibleAction instead of anonymous class for doPrivileged call.
193 (getMethod): Likewise.
194 (setAccessible): New field. PrivilegedAction object to use when
195 calling setAccessible.
196 * java/io/ObjectStreamClass.java (calculateOffsets): Use
197 SetAccessibleAction instead of anonymous class for diPrivileged call.
198 (setFields): Likewise.
199 (getClassUID): Likewise.
200 (findMethod): Likewise.
201 * gnu/java/security/action/GetPropertyAction.java: New class.
202 * gnu/java/security/action/SetAccessibleAction.java: New class.
204 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
206 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
208 * testsuite/libjava.lang/Serialization.java: New test.
209 * testsuite/libjava.lang/Serialization.out: New.
211 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
213 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
214 missed in last commit.
216 2004-07-23 Mark Wielaard <mark@klomp.org>
218 * java/lang/System.java (static): Set http.agent system property when
220 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
221 from system property inside AccessController.doPrivileged() call.
222 (proxyPort): Made package private.
223 (proxyInUse): Likewise.
224 (proxyHost): Likewise.
225 (userAgent): Likewise.
227 2004-07-23 Mark Wielaard <mark@klomp.org>
229 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
232 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
234 * Makefile.am (ordinary_java_source_files): Add
235 DefaultContentHandlerFactory.java.
236 * Makefile.in: Rebuilt.
237 * java/net/URLConnection.java (defaultFactory): New field.
239 (getContentHandler): Renamed from 'setContentHandler'. Try
240 defaultFactory after user-set factory, if any. Search for content
241 handler implementations in gnu.java.net.content, not gnu.gcj.content.
242 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
244 (getLastModified): Implemented.
245 (getPermission): Create file permission here, instead of in
247 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
249 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
251 (getLastModified): Implemented.
252 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
253 Default implementation.
254 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
255 Implement using GdkPixbufDecoder.
257 2004-07-21 Michael Koch <konqueror@gmx.de>
259 * javax/swing/JTextArea.java
260 (setLineWrap): Fire property change event after new value is set.
261 (setTabSize): Likewise.
263 2004-07-21 Michael Koch <konqueror@gmx.de>
265 * javax/swing/JTable.java
266 (autoCreateColumnsFromModel): New field.
267 (autoResizeMode): Likewise.
268 (cellEditor): Likewise.
269 (cellSelectionEnabled): Likewise.
270 (columnModel): Likewise.
271 (dataModel): Likewise.
272 (defaultEditorsByColumnClass): Likewise.
273 (defaultRenderersByColumnClass): Likewise.
274 (editingColumn): Likewise.
275 (editingRow): Likewise.
276 (gridColor): Likewise.
277 (preferredViewportSize): Likewise.
278 (rowHeight): Likewise.
279 (rowMargin): Likewise.
280 (rowSelectionAllowed): Likewise.
281 (selectionBackground): Likewise.
282 (selectionForeground): Likewise.
283 (selectionModel): Likewise.
284 (showHorizontalLines): Likewise.
285 (showVerticalLines): Likewise.
286 (tableHeader): Likewise.
287 (JTable): Implemented.
288 (getColumnModel): Likewise.
289 (getSelectedRow): Likewise.
290 (getSelectionModel): Likewise.
291 (setModel): Likewise.
292 (setSelectionModel): Likewise.
293 (createScrollPaneForTable): New method.
294 (createDefaultDataModel): Likewise.
295 (createDefaultListSelectionModel): Likewise.
296 (getModel): Likewise.
297 (getTableHeader): Likewise.
298 (setTableHeader): Likewise.
299 (getColumnSelectionAllowed): Likewise.
300 (setColumnSelectionAllowed): Likewise.
301 (getRowSelectionAllowed): Likewise.
302 (setRowSelectionAllowed): Likewise.
303 (getAutoResizeMode): Likewise.
304 (setAutoResizeMode): Likewise.
305 (getColumnCount): Likewise.
306 (getRowCount): Likewise.
307 (getCellRenderer): Likewise.
308 * javax/swing/JTree.java
309 (cellRenderer): New field.
310 (editable): Likewise.
311 (rootVisible): Likewise.
312 (showsRootHandles): Likewise.
313 (getModel): New method.
314 (setModel): Likewise.
315 (isEditable): Likewise.
316 (setEditable): Likewise.
317 (isRootVisbile): Likewise.
318 (setRootVisible): Likewise.
319 (getShowsRootHandles): Likewise.
320 (setShowRootHandles): Likewise.
321 (getCellRenderer): Likewise.
322 (setCellRenderer): Likewise.
324 2004-07-21 Michael Koch <konqueror@gmx.de>
326 * javax/swing/JFormattedTextField.java
327 (setDocument): Implemented.
328 * javax/swing/JRootPane.java:
330 * javax/swing/JTable.java
331 (getDefaultRenderer): New method.
332 * javax/swing/JTextField.java
334 (getPreferredSize): Likewise.
335 * javax/swing/JToggleButton.java
336 (getAccessibleContext): Fix javadoc.
337 * javax/swing/JTree.java:
339 * javax/swing/JViewport.java:
342 2004-07-21 David Jee <djee@redhat.com>
344 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
345 Collect all native method declaration at the top.
346 (create): Set the filename filter if necessary.
347 (setDirectory): Call nativeSetDirectory().
348 (setFilenameFilter): Implement.
349 (filenameFilterCallback): New method.
350 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
351 (create): Configure dialog to show hidden files.
352 (filenameFilterCallback): New function.
353 (nativeSetFilenameFilter): New function.
354 (nativeSetDirectory): New function.
356 2004-07-21 Kim Ho <kho@redhat.com>
358 * javax/swing/plaf/basic/BasicSliderUI.java:
360 (paintTrack): Fill the track before painting
363 2004-07-21 Graydon Hoare <graydon@redhat.com>
365 patch from Roman Kennke <roman@ontographics.com>
366 * javax/swing/Spring.java: New file.
367 * javax/swing/SpringLayout.java: New file.
368 * Makefile.am: Add new files.
369 * Makefile.in: Regenerate.
371 2004-07-21 Graydon Hoare <graydon@redhat.com>
373 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
374 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
375 * javax/swing/ScrollPaneLayout.java: Likewise.
377 2004-07-21 Kim Ho <kho@redhat.com>
379 * javax/swing/DefaultDesktopManager.java:
380 (findMinimum): Removed.
381 (resizeFrame): Trust the UI to pass valid
383 * javax/swing/JOptionPane.java:
384 Implemented showInternalXXXDialog methods.
385 (startModal): New method.
386 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
387 (BorderListener::mouseDragged): Verify that the new
388 bounds are valid before passing them to the DesktopManager.
389 (preferredLayoutSize): Delegate
391 (minimumLayoutSize): Ditto.
392 (getSize): New method.
393 (GlassPaneDispatcher): Reimplemented by copying
394 a stripped down LightweightDispatcher from Container.
395 (getMinimumSize): Call minimumLayoutSize.
396 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
398 (mousePressed): Add ability to properly close
400 * javax/swing/plaf/basic/BasicToolBarUI.java:
401 (DragWindow): Set owner for DragWindow.
403 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
405 * java/awt/image/ShortLookupTable.java: New file.
406 * java/awt/image/ByteLookupTable.java: New file.
407 * Makefile.am: Added new files.
408 * Makefile.in: Regenerated.
410 2004-07-21 David Jee <djee@redhat.com>
412 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
413 (create(GtkContainerPeer)): New native method.
414 (create()): Call native create(), passing in the parent frame
415 as the paramter. Natively set the current file and directory.
416 (setFile): Construct an absolute filename before passing it to
418 (nativeGetDirectory): New method.
419 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
420 (window_closed): Removed.
421 (ok_clicked): Likewise.
422 (cancel_clicked): Likewise.
423 (handle_response): New method.
424 (create): Use GtkFileChooserDialog.
425 (connectSignals): Connect to handle_response.
426 (nativeGetDirectory): New method.
427 (nativeSetFile): Use GtkFileChooserDialog.
429 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
431 * java/awt/image/LookupTable.java: New file.
432 * Makefile.am: Added new file.
433 * Makefile.in: Regenerated.
435 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
437 * java/awt/image/Kernel.java: New file.
438 * Makefile.am: Added new file.
439 * Makefile.in: Regenerated.
441 2004-07-21 Olga Rodimina <rodimina@redhat.com>
443 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
444 * javax/swing/JMenu.java: Likewise.
445 * javax/swing/JMenuBar.java: Likewise.
446 (MARGIN_CHANGED_PROPERTY): New property.
447 (setMargin): Implemented.
448 * javax/swing/JMenuItem.java: Fixed javadocs.
449 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
450 (LABEL_CHANGED_PROPERTY): New property.
451 (add): changed to use createActionComponent.
452 (createActionComponent): Implemented.
453 (setLabel): Fire PropertyChangeEvent if label property
455 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
456 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
457 (ContainerHandler): Repaint if margin property has changed.
458 * javax/swing/plaf/basic/BasicMenuItemUI.java:
459 (installUI): Call installComponents().
460 (uninstallUI): Call uinstallComponents().
461 * javax/swing/plaf/basic/BasicMenuUI.java:
463 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
466 2004-07-21 Kim Ho <kho@redhat.com>
468 * javax/swing/plaf/basic/BasicToolBarUI.java:
469 (DragWindow): Use the right constructor.
471 2004-07-21 Kim Ho <kho@redhat.com>
473 * javax/swing/JToolBar.java:
474 (layoutContainer): Use getComponents.
475 * javax/swing/plaf/basic/BasicToolBarUI.java:
476 (DragWindow): Don't use SwingUtilities'
478 (ToolBarDialog): ditto.
480 2004-07-21 Kim Ho <kho@redhat.com>
482 * javax/swing/JRootPane.java:
484 (layoutContainer): Set the glasspane's size to
485 be the same as the content pane.
486 (createGlassPane): Set opaque property to false.
488 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
490 * java/awt/Component.java (requestFocus()): Don't handle Panels
492 (requestFocus(boolean)): Likewise.
493 (requestFocusInWindow(boolean)): Likewise.
494 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
495 Set GTK_CAN_FOCUS flag.
497 2004-07-21 Kim Ho <kho@redhat.com>
499 * Makefile.am: Added new file.
500 * Makefile.in: Regenerated.
501 * gcj/Makefile.in: Regenerated.
502 * include/Makefile.in: Regenerated.
503 * javax/swing/AbstractButton.java:
504 Add rollOverEnabled property.
505 (setRolloverEnabled): Use new property.
506 (isRolloverEnabled): Use new property.
507 * javax/swing/JTabbedPane.java:
508 (setComponent): Remove useless JTabbedPane.this.
509 * javax/swing/JToolBar.java: Finish implementation.
510 * javax/swing/plaf/basic/BasicArrowButton.java:
511 (paint): Moved border painting to a border.
512 * javax/swing/plaf/basic/BasicLookAndFeel.java:
513 Change JToolBar look and feel defaults.
514 * javax/swing/plaf/basic/BasicOptionPaneUI.java
515 (actionPerformed): Return Integer index instead of name.
516 (addButtonComponents): Check to see if component is
518 (createMessageArea): Don't use components that are not
520 (getIconForType): Use temporary icons.
521 * javax/swing/plaf/basic/BasicSliderUI.java:
522 (mousePressed): Do not return if it's on thumb.
523 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
524 (paintMinorTickForVertSlider): ditto.
525 (paintMajorTickForHorizSlider): ditto.
526 (paintMajorTickForVertSlider): ditto.
527 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
528 Add a border around the SplitPaneDivider.
529 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
531 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
532 New file. Implemented.
533 * javax/swing/plaf/basic/BasicToolBarUI.java:
535 * testsuite/Makefile.in: Regenerated.
537 2004-07-21 Graydon Hoare <graydon@redhat.com>
539 * javax/swing/Timer.java (run): Queue events each time cycle.
541 2004-07-21 David Jee <djee@redhat.com>
543 * gnu/java/awt/peer/gtk/GtkImagePainter.java
544 (imageComplete): Call image.imageComplete().
545 * java/awt/image/MemoryImageSource.java:
546 Reimplement consumers as a Vector instead of a Hashtable. This is
547 because enumeration on a Hashtable is not thread-safe.
548 (addConsumer): Adapt to Vector consumers.
549 (isConsumer): Adapt to Vector consumers.
550 (removeConsumer): Adapt to Vector consumers.
551 (startProduction): Adapt to Vector consumers. Call imageComplete()
552 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
553 (newPixels): Adapt to Vector consumers.
554 (sendPicture): Set the color model of the image consumer.
555 (newPixels(IIII)): Adapt to Vector consumers.
556 (newPixels(IIIIB)): Adapt to Vector consumers.
558 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
560 * java/awt/Component.java (deliverEvent): Implement.
561 (postEvent): Implement.
562 (handleEvent): Implement.
563 (translateEvent): New method.
564 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
565 * java/awt/Container.java (deliverEvent): Implement.
566 * java/awt/Event.java (paramString): Fix formatting.
567 * java/awt/Font.java (toString): Likewise.
568 * java/awt/Window.java (postEvent): Implement.
570 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
572 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
573 Set window's focus owner upon receiving a FOCUS_LOST event.
574 * java/awt/Window.java (Window()): Refocus the previously
575 focused component within the window when the window regains the
577 (setFocusOwner): New method.
578 * java/awt/Component.java (requestFocus): Add FIXME.
580 * libgcj.pc.in: Remove library flags.
582 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
584 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
586 * java/awt/Component.java (requestFocus()): Handle Panel
587 specially. Post FOCUS_LOST event on opposite component.
588 (requestFocus(boolean)): Likewise.
589 (requestFocusInWindow(boolean)): Likewise.
590 (paramString): Reorder dimension fields.
591 * java/awt/Container.java (paramString): Fix string format.
592 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
593 Handle FOCUS_LOST events. Don't handle Windows specially. Only
594 process key events if the focus owner is non-null.
595 (dispatchKeyEvent): Likewise.
596 * java/awt/Frame.java (paramString): Fix formatting.
597 (generateName): New method.
598 (getUniqueLong): Likewise.
599 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
600 the temporary focus owner is null. If so, return the permanent
602 * java/awt/Panel.java (generateName): New method.
603 (getUniqueLong): Likewise.
604 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
605 signal handling to make callbacks more specific.
607 2004-07-21 Michael Koch <konqueror@gmx.de>
609 * javax/swing/text/Position.java
612 2004-07-21 Michael Koch <konqueror@gmx.de>
614 * javax/swing/LookAndFeel.java
615 (provideErrorFeedback): New method.
617 2004-07-21 Michael Koch <konqueror@gmx.de>
619 * javax/swing/JTextArea.java
620 (tabSize): New field.
621 (getTabSize): New method.
622 (setTabSize): Likewise.
624 2004-07-21 Michael Koch <konqueror@gmx.de>
626 * javax/swing/ActionMap.java:
627 Fixed javadocs all over.
628 (serialVersionUID): Made private.
629 (parent): Don't explicitely initialize with default value.
631 (keys): Reimplemented.
633 (convertSet): Removed.
634 * javax/swing/ComponentInputMap.java:
635 Fixed javadocs all over.
636 (ComponentInputMap): Implemented.
640 (SetParent): Likewise.
641 (getComponent): Likewise.
642 * javax/swing/InputMap.java:
643 Fixed javadocs all over.
644 (serialVersionUID): Made private.
645 (parent): Don't explicitely initialize with default value.
647 (keys): Reimplemented.
649 (convertSet): Removed.
651 2004-07-21 Michael Koch <konqueror@gmx.de>
653 * javax/swing/ActionMap.java,
654 javax/swing/ComponentInputMap.java,
655 javax/swing/InputMap.java,
656 javax/swing/table/DefaultTableColumnModel.java,
657 javax/swing/table/TableColumn.java,
658 javax/swing/table/TableColumnModel.java,
659 javax/swing/table/TableModel.java,
660 javax/swing/text/AbstractDocument.java,
661 javax/swing/text/TextAction.java:
664 2004-07-21 Graydon Hoare <graydon@redhat.com>
666 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
667 Make method non-static.
668 * javax/swing/AbstractButton.java:
669 Rename fields to match property names where possible.
670 (iconTextGap): New property.
671 * javax/swing/JCheckBox.java: Match AbstractButton changes.
672 (init) New method, call from after various constructors.
673 * javax/swing/JComponent.java (revalidate):
674 Invalidate before queueing repair.
675 * javax/swing/JList.java (getPreferredScrollableViewportSize):
676 Reimplement in terms of visibleRowCount property.
677 * javax/swing/JMenuButton.java: Match AbstractButton changes.
678 * javax/swing/JScrollPane.java (createScrollListener):
679 Remove tracing chatter.
680 * javax/swing/JToggleButton.java: Match AbstractButton changes.
681 * javax/swing/RepaintManager.java (addInvalidComponent):
683 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
685 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
686 Mimic sun behavior on top left/right positioning.
687 * javax/swing/ViewportLayout.java (preferredLayoutSize):
688 Remove mistaken use of preferredScrollableViewportSize here.
689 (layoutContainer): Use view's preferred size as basis.
690 * javax/swing/plaf/basic/BasicButtonUI.java:
691 Set, get, and use textIconGap property.
692 (paint) Paint text returned from layout (with ellipsis).
693 * javax/swing/plaf/basic/BasicListUI.java:
694 Remove tracing chatter, correct various minor calculations.
695 (getCellBounds): Update layout state before calculating.
696 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
697 Use margin default similar to sun's.
698 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
699 (createIncreaseIcon): Center icon, minimize margins.
700 (createDecreaseIcon): Likewise.
701 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
703 (installUI): Call it.
704 (uninstallDefaults): Implement.
705 (uninstallUI): Call it.
706 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
707 Call existing Window constructor.
708 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
709 Set clip before painting.
711 2004-07-21 Olga Rodimina <rodimina@redhat.com>
713 * javax/swing/JMenuItem.java:
714 (processMouseEvent): Reimplemented to deal with
716 (createMenuDragMouseEvent): New private helper method.
717 Creates MenuDragMouseEvent.
718 * javax/swing/MenuSelectionManager.java
719 (componentForPoint): Implemented.
720 (isComponentPartOfCurrentMenu): Made public.
721 (processMouseEvent): Reimplemented to deal with
723 (setSelectedPath): Corrected small mistake that caused
724 path to be set incorrectly.
725 (getPath): If given component is JMenu then also add this
726 menu's popup menu to the selected path.
727 * javax/swing/plaf/basic/BasicMenuItemUI.java:
729 (getPreferredSize): Call getPreferredMenuItemSize().
730 (getPreferredItemSize): Moved code from getPreferredSize to here.
731 (installListeners): Install MouseMotionListeners.
732 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
733 if mouse wasn't released in the bounds of this menu item.
734 (MenuDragMouseHandler): Implemented.
735 * javax/swing/plaf/basic/BasicMenuUI.java:
736 (installListeners): Install MouseMotionListener and
737 MenuDrageMouseListener.
738 (MenuDragMouseHandler): Implemented.
739 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
740 (uninstallListeners): Implemented.
742 2004-07-21 Michael Koch <konqueror@gmx.de>
744 * javax/swing/JCheckBox.java: Reformated.
745 (JCheckBox): Fixed all constructors.
746 (isBorderPaintedFlat): New method.
747 (setBorderPaintedFlat): New method.
748 * javax/swing/JEditorPane.java
749 (createEditorKitForContentType): Made public.
750 (scrollToReference): Likewise.
751 * javax/swing/JTextArea.java
752 (setLineWrap): Fire property change.
753 * javax/swing/JToggleButton.java
754 (JToggleButton): New constructor.
755 (JToggleButton): Simplified.
756 * javax/swing/text/AttributeSet.java
757 (FontAttribute): Renamed from FontCharacterAttribute.
758 * javax/swing/text/JTextComponent.java
759 (KeyBinBinding): Added javadoc.
760 (JTextComponent): Likewise.
761 (getAccessibleContext): Fixed javadoc.
762 * javax/swing/text/View.java
763 (View): Added javadoc.
764 * javax/swing/text/TabableView.java: New file.
765 * Makefile.am: Added javax/swing/text/TabableView.java.
766 * Makefile.in: Regenerated.
768 2004-07-21 Graydon Hoare <graydon@redhat.com>
770 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
771 * gnu/java/awt/peer/gtk/GtkToolkit.java
772 (GtkErrorImage): New helper class.
773 (bufferedImageOrError): New helper method.
774 (createImage): Use it.
776 2004-07-21 David Jee <djee@redhat.com>
778 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
779 (setCaretPosition): Scroll the text view so the new caret position
780 is visible on screen.
782 2004-07-21 David Jee <djee@redhat.com>
784 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
785 (setBounds): Do not validate awtComponent here.
786 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
787 (getPreferredSize): New method.
788 * java/awt/ScrollPane.java
789 (ScrollPane): Set default size to 100x100.
790 (addNotify): If child is not a Panel, wrap it with a new Panel.
791 (paramString): Implement.
793 2004-07-21 Olga Rodimina <rodimina@redhat.com>
795 * javax/swing/JMenu.java:
796 (setSelected): Display popup menu only if this menu
797 is showing on the screen.
798 * javax/swing/JPopupMenu.java:
799 (processMouseEvent): Added comment.
800 (processKeyEvent): Likewise.
801 * javax/swing/MenuSelectionManager.java:
802 (clearSelectedPath): Only fireStateChanged() after
803 selected path was changed, not before.
804 (setSelectedPath): Likewise.
805 * javax/swing/plaf/basic/BasicMenuItemUI.java:
806 (paintMenuItem): Corrected position of menu item's
808 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
809 (installUI): Correct setDefaultLightWeightPopupEnabled call.
810 (popupMenuCanceled): Reimplemented.
811 (popupMenuWillBecomeVisible): Select first menu item by default
812 when displaying free floating popup menus.
813 (TopWindowListener): Reimplemented.
815 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
817 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
818 Panel from being painted twice when it is first shown.
820 2004-07-21 Olga Rodimina <rodimina@redhat.com>
822 * java/awt/Window.java: Reverted changes from my
823 previous patch for creating window without an owner.
824 * javax/swing/SwingUtilities.java:
825 (SwingUtilities.OwnerFrame): made static.
826 (OwnerFrame.setVisible): New method. Overridden with
827 empty implementation.
828 (OwnerFrame.isShowing): New method. Ovverridden
829 to return always true.
831 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
833 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
834 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
835 (GtkComponentPeer): Remove temporary try/catch block.
836 (setVisible): Call show and hide.
839 (getArgs): Don't add "visible" argument.
840 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
841 (property_notify_predicate): Return Bool instead of int.
842 (find_layout): New function.
843 (connectJObject): Call find_layout.
844 (connectSignals): Likewise.
845 (moveLayout): Likewise.
846 (gtkLayoutSetVisible): Likewise.
848 2004-07-21 Mark Wielaard <mark@klomp.org>
850 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
851 on notifier object before calling notifyAll().
853 2004-07-21 Olga Rodimina <rodimina@redhat.com>
855 * java/awt/Window.java: Changed constructors to use new
856 method that is described below. Constructors call this
857 methods only if newly created window should have an owner.
858 (setWindowOwner): New method. Implementation for
859 this method is moved from this(owner,configuration).
860 * javax/swing/JWindow.java:
861 (JWindow): Reimplement to use SwingUtilities.ownerFrame
863 * javax/swing/SwingUtilities.java:
864 (ownerFrame): Change type of this field to OwnerFrame.
865 (getOwnerFrame): Changed to return object of type OwnerFrame.
866 (SwingUtilities.OwnerFrame): New class. Represents owner
867 of a Window that is not provided with one.
869 2004-07-21 Olga Rodimina <rodimina@redhat.com>
871 * javax/swing/AbstractButton.java:
872 (configurePropertiesFromAction): Set action command
873 to button's text by default if action command is not
874 explicitely specified.
875 * javax/swing/JMenu.java: Remove unnecessary listener
876 and methods relevant to it.
877 (setSelected): Reimplemented.
878 (menuSelectionChanged): Moved most part of implementation to
879 setSelected() and call it instead.
880 * javax/swing/JMenuItem.java:
881 (init): Comment out statement that sets paint_border to false.
882 (configurePropertiesFromAction): Do not set accelerator
884 (menuSelectionChanged): Change selected index in the selection
885 model of menu item's parent.
886 * javax/swing/JPopupMenu.java:
887 (remove): Set constraints.fill field to GridBagConstraints.BOTH
888 instead of GridBagConstraints.HORIZONTAL.
890 (createActionChangeListener): Implemented.
891 (setVisible): Correct location of HeavyWeightMenu and
892 don't firePopupMenuCanceled().
893 (menuSelectionChanged): Implemented.
894 (ActionChangeListener): New Listener. Implemented.
895 * javax/swing/plaf/basic/BasicMenuBarUI.java:
896 (BasicMenuBarUI.ContainerHandler): Implemented.
897 * javax/swing/plaf/basic/BasicMenuItemUI.java:
898 (paintMenuItem): Uncommented out code that paints
899 icon, now that icons are working properly.
900 (PropertyChangeListener): Implemented.
901 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
903 (topWindowListener): New field.
904 (Constructor): initialize topWindowListener.
905 (BasicPopupMenuUI.TopWindowListener): Implemented.
906 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
907 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
910 2004-07-21 Michael Koch <konqueror@gmx.de>
912 * javax/swing/plaf/basic/BasicButtonUI.java
913 (paintFocus): Fixed method signature.
914 (paintButtonPressed): Likewise.
915 (paintButtonNormal): Likewise.
916 (paintText): New method.
917 * javax/swing/plaf/basic/BasicLabelUI.java
918 (paint): Re-indented.
919 * javax/swing/plaf/basic/BasicTextUI.java
920 (installUI): Set parent textComponent to opaque.
921 * javax/swing/text/DefaultHighlighter.java
922 (checkPositions): New helper method.
923 (addHighlight): Throws BadLocationException, check positions.
924 (changeHighlight): Likewise.
925 * javax/swing/text/EditorKit.java
926 (EditorKit): Implements Serializable.
927 * javax/swing/text/JTextComponent.java
928 (getUI): Added javadoc.
930 (upadteUI): Added javadoc, don't revalidate and repaint.
932 2004-07-21 David Jee <djee@redhat.com>
934 * java/awt/GridBagLayout.java
935 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
936 * javax/swing/AbstractButton.java
938 * javax/swing/RepaintManager.java
939 (addInvalidComponent): Find the first ancestor that isValidateRoot().
941 2004-07-21 Michael Koch <konqueror@gmx.de>
943 * javax/swing/JFormattedTextField.java
945 (JFormattedTextField): Implemented.
946 (getValue): Likewise.
947 (setValue): Likewise.
948 * javax/swing/LookAndFeel.java
949 (getSupportsWindowDecorations): New method.
950 * javax/swing/UIDefaults.java:
951 Use java.beans.PropertyChangeSupport instead of doing all ourself.
952 (addPropertyChangeListener): Made public.
953 (addResourceBundle): Likewise.
954 (removeResourceBundle): Likewise.
955 (setDefaultLocale): Likewise.
956 * javax/swing/plaf/basic/BasicRootPaneUI.java
957 (BasicRootPaneUI): Implements PropertyChangeListener.
958 (propertyChange): New method.
959 * javax/swing/plaf/basic/BasicTextUI.java
960 (BasicHighlighter): New inner class.
961 (createHighlighter): New method.
962 * javax/swing/plaf/basic/BasicToolBarUI.java
963 (DragWindow): Extends java.awt.Window.
964 * javax/swing/text/JTextComponent.java
965 (getDocument): Removed debug output.
966 * javax/swing/plaf/basic/BasicTextFieldUI.java,
967 javax/swing/text/DefaultHighlighter.java,
968 javax/swing/text/FieldView.java,
969 javax/swing/text/PlainView.java: New files.
970 * Makefile.am: Added new files.
971 * Makefile.in: Regenerated.
973 2004-07-21 Michael Koch <konqueror@gmx.de>
975 * javax/swing/JEditorPane.java
976 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
977 (createEditorKitForContentType): Likewise.
978 * javax/swing/text/DefaultEditorKit.java
979 (serialVersionUID): Added constant field.
980 (EndOfLineStringPropery): Fixed typo.
981 (DefaultEditorKit): New constructor.
982 * javax/swing/text/Segment.java:
983 Import java.text.CharacterIterator.
984 * javax/swing/text/CharacterIterator.java,
985 javax/swing/text/PlainEditorKit.java: Removed.
986 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
987 javax/swing/text/PlainEditorKit.java.
988 * Makefile.in: Regenerated.
990 2004-07-21 Michael Koch <konqueror@gmx.de>
992 * javax/swing/JButton.java,
993 javax/swing/text/DefaultEditorKit.java,
994 javax/swing/text/EditorKit.java,
995 javax/swing/text/Segment.java,
996 javax/swing/text/StyledEditorKit.java:
999 2004-07-21 Michael Koch <konqueror@gmx.de>
1001 * javax/swing/ImageIcon.java
1003 (description): Renamed from descr.
1004 (ImageIcon): Added missing constructors.
1005 (setParent): Removed.
1006 (setImageObserver): New method.
1007 (getImageObserver): New method.
1008 (paintIcon): Handle observer = null.
1009 * javax/swing/JButton.java
1010 (removeNotify): Fixed javadoc.
1011 (updateUI): Simplified.
1012 * javax/swing/JRootPane.java
1013 (serialVersionUID): New constant field.
1014 * javax/swing/UIManager.java:
1015 Fixed javadocs all over.
1016 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
1017 * javax/swing/text/AbstractDocument.java
1018 (createPosition): Throws BadLocationException.
1019 (getText): Likewise.
1021 * javax/swing/text/ComponentView.java
1022 (modelToView): Likewise.
1023 * javax/swing/text/DefaultEditorKit.java:
1024 Made all public methods public.
1025 (read): Throws BadLocationException and IOException.
1027 * javax/swing/text/EditorKit.java:
1028 Made all public methods public.
1029 (serialVersionUID): New constant field.
1030 (clone): New method.
1031 (read): Throws BadLocationException and IOException.
1033 * javax/swing/text/Segment.java
1034 (array): Made public.
1037 (Segment): New constructors.
1038 (clone): Reimplemented.
1039 * javax/swing/text/StyledEditorKit.java
1040 (serialVersionUID): New constant field.
1042 2004-07-21 Graydon Hoare <graydon@redhat.com>
1044 * java/awt/image/BufferedImage.java
1045 (getSource): Implement.
1046 * javax/swing/ImageIcon.java
1047 (ImageIcon): Implement ctor.
1048 * javax/swing/ScrollPaneLayout.java
1049 (preferredLayoutSize): Be more careful about nulls.
1051 2004-07-21 Michael Koch <konqueror@gmx.de>
1053 * javax/swing/text/AttributeSet.java
1054 (CharacterAttribute): New interface
1055 (ColorAttribute): Likewise.
1056 (FontCharacterAttribute): Likewise.
1057 (ParagraphAttribute): Likewise.
1058 * javax/swing/text/DefaultCaret.java
1059 (moveCaret): New method.
1060 (positionCaret): Likewise.
1061 (repaint): Made protected.
1062 * javax/swing/text/JTextComponent.java
1063 (KeyBinding): Made it static.
1064 * javax/swing/text/View.java
1065 (getContainer): Honor parent == null.
1067 2004-07-21 Michael Koch <konqueror@gmx.de>
1069 * javax/swing/text/AbstractDocument.java:
1072 2004-07-21 Michael Koch <konqueror@gmx.de>
1074 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1075 Import javax.swing.UIManager explicitely.
1076 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
1077 (ScrollingButton): Made it static.
1079 2004-07-21 Michael Koch <konqueror@gmx.de>
1081 * javax/swing/UIDefaults.java
1082 (ActiveValue): Made public.
1083 (LazyValue): Likewise.
1084 * javax/swing/plaf/basic/BasicTextUI.java
1085 (RootView): Reintroduced.
1087 (rootView): New field.
1088 (installUI): Create document if needed, initialize rootView.
1089 (uninstallUI): Hanle rootView.
1091 (getRootView): Likewise.
1092 (setView): Likewise.
1093 * javax/swing/text/DefaultCaret.java:
1094 Renamed all "evt" variables to "event".
1096 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1098 * libgcj.spec.in: Add -l-java-util-logging.
1100 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
1102 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1103 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
1104 gtk-xft-dpi can no calculate the right value.
1105 (dpi_changed_cb): Mark *pspec as unsused.
1107 2004-07-21 David Jee <djee@redhat.com>
1109 * java/awt/Component.java
1110 (move): Delegate to setBounds().
1112 (reshape): Fix so it repaints parent and self only when necessary.
1114 2004-07-21 David Jee <djee@redhat.com>
1116 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1117 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1118 (GtkComponentPeer): Revert previous patch from 2004-06-22.
1119 (setVisible): Likewise.
1122 (getArgs): Likewise.
1123 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1124 (property_notify_predicate): Likewise.
1125 (find_layout): Likewise.
1126 (connectJObject): Likewise.
1127 (connectSignals): Likewise.
1128 (moveLayout): Likewise.
1129 (gtkLayoutSetVisible): Likewise.
1131 2004-07-21 Graydon Hoare <graydon@redhat.com>
1137 (rmiregistry_LDADD): Add lib-java-util-logging.la
1138 * Makefile.in: Regenerate.
1140 2004-07-21 Michael Koch <konqueror@gmx.de>
1142 * javax/swing/text/AbstractDocument.java
1143 (replace): Dont use protected method of java.util.Vector directly.
1145 2004-07-21 Michael Koch <konqueror@gmx.de>
1147 * javax/swing/plaf/basic/BasicTextUI.java
1148 (installUI): Call specialized install methods.
1149 (installDefaults): New method.
1150 (installListeners): Likewise.
1151 (installKeyboardActions): Likewise.
1152 (uninstallUI): Likewise.
1153 (uninstallDefaults): New method.
1154 (uninstallListeners): Likewise.
1155 (uninstallKeyboardActions): Likewise.
1156 (getPropertyPrefix): New abstract method.
1157 (paint): Made final, just call paintSafely().
1158 (paintSavely): New method.
1159 (paintBackground): Likewise.
1160 (getVisibleEditorRect): Likewise.
1161 * javax/swing/text/LayeredHighlighter.java,
1162 javax/swing/text/TabExpander.java: New files.
1163 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
1164 and javax/swing/text/TabExpander.java.
1165 * Makefile.in: Regenerated.
1167 2004-07-21 Michael Koch <konqueror@gmx.de>
1169 * javax/swing/plaf/basic/BasicTextUI.java
1170 (BasicTextUI): Made abstract.
1171 (BasicCaret): New inner class.
1172 (view): Don't explicitely initialize with "null".
1173 (textComponent): New field.
1174 (textColor): Removed.
1175 (disabledTextColor): Removed.
1176 (normalBackgroundColor): Removed.
1177 (RootView): Removed commented out inner class.
1178 (createUI): Removed.
1179 (createCaret): New method.
1180 (getComponent): Likewise.
1181 (installUI): Initialize textComponent only.
1182 (getPreferredSize): Use installed JTextComponent.
1183 (setView): New method.
1185 * javax/swing/text/JTextComponent.java
1186 (highlighter): New field.
1187 (caretColor): Likewise.
1188 (disabledTextColor): Likewise.
1189 (seletedTextColor): Likewise.
1190 (selectionColor): Likewise.
1191 (setUI): New method.
1192 (getCaretColor): Likewise.
1193 (setCaretColor): Likewise.
1194 (getDisabledColor): Likewise.
1195 (setDisabledColor): Likewise.
1196 (getSelectedTextColor): Likewise.
1197 (setSelectedTextColor): Likewise.
1198 (getSelectionColor): Likewise.
1199 (setSelectionColor): Likewise.
1200 (getHighlighter): Likewise.
1201 (setHighlighter): Likewise.
1202 (replaceSelection): Likewise.
1204 2004-07-21 Michael Koch <konqueror@gmx.de>
1206 * javax/swing/plaf/basic/BasicScrollPaneUI.java
1207 (BasicScrollPaneUI): Implements ScrollPaneConstants.
1208 * javax/swing/plaf/basic/BasicToolBarUI.java
1209 (BasicToolBarUI): Implements SwingConstants.
1211 2004-07-21 Michael Koch <konqueror@gmx.de>
1213 * javax/swing/JPopupMenu.java: Removed CVS tags.
1214 * javax/swing/UIDefaults.java: Reformatted.
1215 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1216 Explicitely import used classes.
1218 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1220 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1221 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1222 (GtkComponentPeer): Remove temporary try/catch block.
1223 (setVisible): Call show and hide.
1224 (show): Make native.
1226 (getArgs): Don't add "visible" argument.
1227 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1228 (property_notify_predicate): Return Bool instead of int.
1229 (find_layout): New function.
1230 (connectJObject): Call find_layout.
1231 (connectSignals): Likewise.
1232 (moveLayout): Likewise.
1233 (gtkLayoutSetVisible): Likewise.
1235 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1237 * javax/swing/AbstractButton.java:
1238 (setDisplayedMnemonicIndex): Check if button
1239 text is not null before checking its length.
1240 * javax/swing/JMenuItem.java:
1241 (processMouseEvent): Disarm menu item if mouse has
1243 * javax/swing/plaf/basic/BasicMenuUI.java:
1244 (MouseInputHandler.mouseEntered): Do not raise
1245 popup menu if this menu is already selected.
1246 (MouseInputHandler.mousePressed): Do not fire
1248 (MenuHandler): Implemented.
1250 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1252 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
1253 (getSelectedObjects): Implemented.
1254 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
1255 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
1256 Added javadoc for few methods.
1257 (processMouseEvent): Made public.
1258 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
1259 (processMouseEvent): Likewise.
1261 2004-07-21 Olga Rodimina <rodimina@redhat.com>
1263 * javax/swing/AbstractButton.java:
1264 (init): Set display mnemonic index to -1.
1265 (setMnemonic(char)): Use setMnemonic(int).
1266 (setMnemonic(int)): Set display mnemonic index.
1267 (getDisplayedMnemonicIndex): Change method signature
1268 by removing 'index' parameter.
1269 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1270 Added default for Menu.selectionBackground.
1271 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1272 (paintMenuItem): Change background color of the selected
1274 (paintText): Paint differently when menu item is disabled.
1275 Also paint mnemonic if it appears in the menu item's label.
1276 (paintAccelerator): Paint accelerator differently
1277 if menu item is disabled.
1278 * javax/swing/plaf/basic/BasicMenuUI.java:
1279 (installDefaults): Install defaults for
1280 selectionForeground and selectionBackground.
1281 (uninstallDefaults): Uninstall defauls for
1282 selectionForeground and selectionBackground.
1284 2004-07-21 Michael Koch <konqueror@gmx.de>
1286 * javax/swing/text/AbstractDocument.java
1287 (BranchElement): Implemented.
1288 (LeafElement): Implemented.
1289 * javax/swing/text/DefaultCaret.java:
1290 Import used classes.
1291 (serialVersionUID): New constant.
1292 * javax/swing/text/JTextComponent.java
1293 (AccessibleJTextComponent): Removed dead declaration.
1294 (caretPos): Removed.
1295 (setCaret): New method.
1296 * javax/swing/text/PlainDocument.java
1297 (rootElement): New field.
1298 (PlainDocument): Initialize rootElement.
1299 (createDefaultRoot): New method.
1300 (getDefaultRootElement): Implemented.
1301 * javax/swing/text/View.java: Reformatted.
1302 * javax/swing/text/ViewFactory.java
1303 (create): Added javadoc.
1305 2004-07-21 Michael Koch <konqueror@gmx.de>
1307 * javax/swing/ToolTipManager.java: Reformatted.
1309 2004-07-21 Rodimina Olga <rodimina@redhat.com>
1311 * javax/swing/AbstractButton.java
1312 (changeEvent): New field.
1313 (fireItemStateChanged): Change source of the event
1314 to 'this' before firing it to button listeners.
1315 (fireActionPerformed): Likewise.
1316 (fireStateChanged): Likewise.
1317 (createActionListener): Do not set source
1318 of the event to AbstractButton.
1319 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1320 (ContainerHandler.componentAdded): Removed
1321 print out statement.
1322 (ContainerHandler.componentRemoved): Likewise.
1324 2004-07-21 Michael Koch <konqueror@gmx.de>
1326 * javax/swing/text/Highlighter.java: New file.
1327 * Makefile.am: Added javax/swing/text/Highlighter.java.
1328 * Makefile.in: Regenerated.
1330 2004-07-21 Michael Koch <konqueror@gmx.de>
1332 * javax/swing/ToolTipManager.java
1333 (stillInsideTimerAction): Fixed constructor arguments.
1334 (outsideTimerAction): Likewise.
1335 (insideTimerAction): Likewise.
1337 2004-07-21 Michael Koch <konqueror@gmx.de>
1339 * javax/swing/JButton.java: Reformatted.
1340 * javax/swing/JFormattedTextField.java
1341 (getUIClassID): Implemented.
1342 * javax/swing/JRootPane.java
1343 (serialVersionUID): New constant.
1344 * javax/swing/JTextField.java
1346 (JTextField): Simplified.
1347 (getUIClassID): New method.
1348 (getActionListeners): Added @since tag.
1349 (setColumns): Invalidate layout and repaint.
1350 (getHorizontalAlignment): New method.
1351 (setHorizontalAlignment): New method.
1352 (selectAll): Removed.
1353 * javax/swing/SwingUtilities.java
1354 (getAncestorOfClass): Removed redundant @see tag.
1355 (isLeftMouseButton): Fixed implementation.
1356 (isMiddleMouseButton): Likewise.
1357 (isRightMouseButton): Likewise.
1358 * javax/swing/text/AbstractDocument.java
1359 (AttributeContext.addAttribute): New method.
1360 (AttributeContext.addAttributes): New method.
1361 (AttributeContext.getEmptySet): New method.
1362 (AttributeContext.reclaim): New method.
1363 (AttributeContext.removeAttribute): New method.
1364 (AttributeContext.removeAttributes): New method.
1365 * javax/swing/text/Document.java
1366 (createPosition): Throws BadLocationException.
1367 (getText): Likewise.
1369 * javax/swing/text/JTextComponent.java
1370 (getText): Return null if no document is set. Catch
1371 BadLocationException.
1373 (updateUI): Simplified.
1375 2004-07-21 Michael Koch <konqueror@gmx.de>
1377 * javax/swing/JButton.java
1378 (removeNotify): Fixed javadoc.
1379 (updateUI): Simplified.
1381 2004-07-21 David Jee <djee@redhat.com>
1383 * gnu/java/awt/image/ImageDecoder.java
1384 (startProduction): Only add consumer if it's not added yet.
1385 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
1386 (GdkPixbufDecoder): Don't call initState() here.
1387 (produce): Call initState() here, to ensure area_prepared and
1388 area_updated signals are properly connected.
1389 * gnu/java/awt/peer/gtk/GtkImage.java
1390 (setColorModel): Use equals() to compare ColorModel objects.
1391 (setPixels): Likewise.
1392 * java/awt/image/ColorModel.java
1393 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
1394 * java/awt/image/RGBImageFilter.java
1395 (setColorModel): Set consumer's color model.
1396 (setPixels): Use equals() to compare ColorModel objects.
1398 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
1400 * java/net/URLConnection.java (position): New field.
1401 (dateFormat1, dateFormat2, dateFormat3): Removed.
1402 (dateFormats): New field.
1403 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
1404 each time instead of re-allocating.
1405 (initializeDateFormats): Initialize 'dateFormats'.
1407 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1410 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
1413 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1415 * java/net/Socket.java (getImpl): Now private. Remove comment.
1417 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1419 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
1420 of chained Writer when calling super-constructor.
1421 * java/io/FilterWriter.java (FilterWriter): Likewise.
1422 * java/io/PrintWriter.java (PrintWriter): Likewise.
1424 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
1426 * prims.cc (process_gcj_properties): Don't increment i within LHS
1429 2004-07-19 Per Bothner <per@bothner.com>
1431 Print -verbose:message on "loading", not initialization.
1432 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
1433 * defineclass.cc (_Jv_ClassReader::parse): Print message if
1434 gcj::verbose_class_flag.
1435 * java/lang/natClass.cc (initializeClass): Don't print message here.
1436 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
1437 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
1438 (_Jv_PrepareCompiledClass): Likewise.
1440 2004-07-18 Matthias Klose <doko@debian.org>
1442 * configure.in: Substitute target_noncanonical.
1443 * configure: Regenerate
1445 2004-07-17 Michael Koch <konqueror@gmx.de>
1447 * java/lang/String.java: Fixed javadocs all over.
1449 2004-07-17 Mark Wielaard <mark@klomp.org>
1451 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
1452 when size is smaller.
1453 * java/io/RandomAccessFile.java (setLength): Use truncate for
1454 shrinking the file and seek plus write for expanding the file.
1456 2004-07-17 Michael Koch <konqueror@gmx.de>
1458 * gnu/java/nio/channels/natFileChannelPosix.cc
1459 (implTruncate): Always save current position. Only reposition file
1460 pointer to where we started if not beyond new lenght. Reposition file
1461 pointer to file length if it points beyond the end of file.
1463 2004-07-17 Mark Wielaard <mark@klomp.org>
1465 * javax/swing/Box.java: Put FIXME comment above class declaration.
1466 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1467 * javax/swing/JCheckBox.java: Likewise.
1468 * javax/swing/JDialog.java: Likewise.
1469 * javax/swing/JRadioButton.java: Likewise.
1470 * javax/swing/JToggleButton.java: Likewise.
1471 * javax/swing/UIManager.java: Likewise.
1472 * javax/swing/border/TitledBorder.java: Likewise.
1473 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1474 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1475 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1476 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1477 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1478 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1479 * javax/swing/text/JTextComponent.java: Likewise.
1481 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
1483 * java/net/DatagramPacket.java (setAddress): Removed check for
1486 2004-07-17 Michael Koch <konqueror@gmx.de>
1488 * java/net/DatagramSocket.java
1489 (getLocalAddress): Check if socket is bound or not.
1490 * java/net/Socket.java
1491 (getLocalAddrss): Check if socket is bound or not.
1492 (getPort): Return -1 when not connected. Dont check getImpl() for
1494 (setReuseAddress): Check if socket is closed.
1495 (isConnected): Check if getImpl() returns null.
1497 2004-07-17 Mark Wielaard <mark@klomp.org>
1499 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1500 on notifier object before calling notifyAll().
1502 2004-07-17 Michael Koch <konqueror@gmx.de>
1504 * gnu/java/nio/channels/FileChannelImpl.java
1505 (finalize): Added javadoc.
1507 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
1509 * java/text/CollationElementIterator.java
1510 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
1511 (setText): Use ArrayList instead of Vector.
1513 2004-07-17 Michael Koch <konqueror@gmx.de>
1515 * java/nio/ByteOrder.java
1516 (static): Removed. Not needed.
1517 Thanks to Patrick Reali for noticing.
1518 * java/nio/charset/CharsetDecoder.java
1519 (decode): Fix for classpath bug #9177: Reset state before flipping.
1521 2004-07-17 Michael Koch <konqueror@gmx.de>
1523 * java/security/Security.java: Fixed javadocs all over.
1525 2004-07-17 Michael Koch <konqueror@gmx.de>
1527 * gnu/java/awt/EmbeddedWindow.java
1529 (addNotify): Set peer via reflection.
1530 (setWindowPeer): Removed.
1531 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1532 * Makefile.am (nat_source_files):
1533 Removed gnu/java/awt/natEmbeddedWindow.cc.
1534 * Makefile.in: Regenerated.
1536 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
1538 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
1540 * configure: Regenerated.
1542 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
1544 * configure.in: Use build_noncanonical rather than build_alias.
1545 * configure: Rebuild.
1547 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
1548 by logic refactoring. Move default definition of NATIVE closer
1549 to first alternate definition.
1550 * configure: Regenerate.
1552 * Makefile.am: Set ZIP and GCJH directly using autoconf.
1553 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
1554 gcj/Makefile.in: Regenerate.
1555 * configure.in: Set ZIP and GCJH. Remove redundant condition
1556 in AM_CONDITIONAL(NATIVE,...)
1557 * configure: Regenerate.
1559 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
1561 * configure.in: Use target_noncanonical rather than
1562 target_alias for forward-compatibility with autoconf 2.59.
1563 * configure: Regenerate.
1564 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
1565 testsuite/Makefile.am: Substitute target_noncanonical.
1566 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1567 testsuite/Makefile.in: Regenerate.
1569 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
1570 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
1571 * acinclude.m4: Include acx.m4.
1572 * aclocal.m4: Regenerate.
1573 * configure: Regenerate.
1575 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
1578 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
1579 (decimalFormat): New static variable.
1581 (getTime): New. Override Date.getTime().
1582 (toString): Synchronize. Use decimalFormat to format nanos value
1583 correctly. Truncate extra zeros.
1584 (before): Compare getNanos() only if getTime() is equal.
1587 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1589 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
1590 * configure.in: ...here.
1591 * aclocal.m4: Regenerate.
1592 * configure: Regenerate.
1594 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
1595 * configure: Rebuilt with autoconf 2.13.
1596 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1597 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
1599 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
1602 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
1604 * Makefile.in: Rebuilt.
1605 * testsuite/libjava.lang/LargeFile.java: New test case.
1606 * testsuite/libjava.lang/LargeFile.out: New file.
1608 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1610 * java/beans/EventHandler.java: Remove debugging statements.
1612 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
1614 * java/beans/EventHandler.java: New file.
1615 * Makefile.am (awt_java_source_files): Add EventHandler.java.
1616 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1617 testsuite/Makefile.in: Regenerate.
1619 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
1621 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
1622 flag to the gcj_setup.
1623 (gcj_jacks_run): Check tclsh version and launch jacks directly with
1625 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
1626 deprecation flag change. 58 XFAILS removed.
1628 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
1630 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
1631 -fno-use-divide-subroutine.
1632 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
1633 (HANDLE_FPE): Define.
1634 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
1635 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1636 (HANDLE_DIVIDE_OVERFLOW): Define.
1638 2004-07-14 Michael Koch <konqueror@gmx.de>
1639 Matthias Klose <doko@debian.org>
1641 * java/awt/im/InputContext.java: Initialize in, line.
1643 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
1645 * interpret.cc (run): Correctly access libffi return values of
1646 integral smaller-than-int type; these are implicitly promoted.
1648 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
1651 * interpret.cc (compile_mutex): New.
1652 (_Jv_InitInterpreter): New. Initialize compile_mutex.
1653 (run): Lock compile_mutex before calling compile() if compilation is
1655 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
1656 * include/java-interp.h (_Jv_InitInterpreter): Declare.
1658 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
1661 * include/jvm.h (_Jv_value): New union type.
1662 * gcj/field.h (_Jv_Field): Add new _addr union field variants
1663 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
1666 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
1668 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
1669 * gnu/awt/xlib/XOffScreenImage.java
1670 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
1671 constructor argument. Add constructor using ImageProducer.
1672 (getSource): Implement.
1673 (imageComplete): New method.
1674 (setColorModel): New method.
1675 (setDimensions): New method.
1676 (setHints): New method.
1677 (setPixels): New method.
1678 (setProperties): New method.
1679 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
1680 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
1682 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
1685 * prims.cc (_Jv_CreateJavaVM): Fix comment.
1686 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
1687 (finalizerReady): Now native.
1689 (runFinalizers): Removed.
1690 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
1691 a primitive lock, and don't hold it while running the finalizers.
1692 (runFinalizers): Implement. Don't aquire any Java lock.
1693 (finalizerReady): Use lock primitives to signal finalizer thread.
1695 2004-07-11 Mark Wielaard <mark@klomp.org>
1697 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
1698 * java/net/URLStreamHandler.java (parseURL): When url file part
1699 doesn't contain a '/' just ignore context.
1701 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
1703 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
1704 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1705 (MAKE_THROW_FRAME): Do not modify PSW address.
1706 (INIT_SEGV): Install SIGINFO-style signal handler.
1707 (INIT_FPE): Likewise.
1709 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1711 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
1712 status. 21 xfail's removed, 1 added.
1714 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1716 * gcj/javaprims.h: Regenerate CNI namespace definitions.
1718 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
1720 * java/text/MessageFormat.java
1721 (formatInternal): Append "{n}" if argument n is unavailable.
1722 (format(Object, StringBuffer, FieldPosition)): This
1723 should be equivalent to format(Object[],
1724 StringBuffer, FieldPosition).
1726 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1728 * java.util.Calendar.java (cache): New private static field. Cached
1729 mappings of locales->calendar classes.
1730 (ctorArgTypes): New private static field. Singleton argument for
1731 calendar class constructor lookup.
1732 (getInstance): Cache Locale->Calendar class mappings using HashMap.
1733 Optimize by bypassing reflection instantiation for the
1734 GregorianCalendar case.
1736 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1738 * java/util/Calendar.java: Use getSystemClassLoader as argument for
1739 ResourceBundle.getBundle() calls.
1740 * java/util/GregorianCalendar.java: Likewise.
1741 * java/util/Currency.java: Likewise.
1742 * java/text/BreakIterator.java: Likewise.
1743 * java/text/Collator.java: Likewise.
1744 * java/text/DateFormat.java: Likewise.
1745 * java/text/DateFormatSymbols.java: Likewise.
1746 * java/text/DecimalFormatSymbols.java: Likewise.
1747 * java/text/NumberFormat.java: Likewise.
1748 * java/awt/Window.java: Likewise.
1750 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1752 * java/util/ResourceBundle.java (bundleCache): Renamed from
1753 resourceBundleCache. Update comments.
1754 (getObject): Don't catch MissingResourceException.
1755 (getBundle(String)): Remove 'final'. Use system classloader if
1756 getCallingClassLoader returned null.
1757 (getBundle(String, Locale)): Likewise.
1758 (BundleKey): New private class. HashMap key for bundle cache lookup.
1759 (lookupKey): New. Singleton instance of BundleKey.
1760 (nullEntry): New. Cache entry to represent failed lookups.
1761 (getBundle(String, Locale, ClassLoader)): Re-written to use new
1762 caching strategy, no-allocation lookup, and new tryBundle methods.
1763 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
1764 name using given classloader.
1765 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
1766 baseName for given Locale and attempt to load bundle.
1768 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1770 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
1771 illegal protected method calls.
1773 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1775 Fix or remove some bogus test cases.
1776 * testsuite/libjava.compile/pr10459_2.java: Removed.
1777 * testsuite/libjava.compile/pr10459.java: Test using its own method,
1779 * testsuite/libjava.compile/inner_data.java: Test against its own
1782 2004-07-09 Michael Koch <konqueror@gmx.de>
1784 * scripts/unicode-muncher.pl: Updated to version 2.1
1785 from GNU classpath. Added some clarifications on where to find the
1786 needed files from www.unicode.org.
1787 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
1788 gnu/gcj/convert/UnicodeData-3.0.0.txt:
1789 Removed, these can directly be downloaded from www.unicode.org if
1791 * gnu/java/lang/CharData.java: Regenerated.
1792 * include/java-chartables.h: Regenerated.
1793 * Makefile.am (ordinary_java_source_files):
1794 Removed gnu/java/lang/CharData.java.
1795 * Makefile.in: Regenerated.
1797 2004-07-09 Michael Koch <konqueror@gmx.de>
1799 * java/security/AccessControlContext.java,
1800 java/security/SecureClassLoader.java:
1803 2004-07-09 Michael Koch <konqueror@gmx.de>
1805 * java/io/ObjectInputStream.java (readFields): Use long datatype
1806 when shifting byte values more then 24 bits left.
1808 2004-07-09 Michael Koch <konqueror@gmx.de>
1810 * java/util/zip/DeflaterOutputStream.java,
1811 java/util/zip/GZIPInputStream.java,
1812 java/util/zip/GZIPOutputStream.java,
1813 java/util/zip/InflaterInputStream.java:
1814 Reformatted. Added javadocs. Reordered all stuff.
1815 Renamed variables to be more clear.
1817 2004-07-09 Michael Koch <konqueror@gmx.de>
1819 * javax/imageio/IIOException.java,
1820 javax/imageio/event/IIOReadProgressListener.java,
1821 javax/imageio/event/IIOReadUpdateListener.java,
1822 javax/imageio/event/IIOReadWarningListener.java,
1823 javax/imageio/event/IIOWriteProgressListener.java,
1824 javax/imageio/event/IIOWriteWarningListener.java:
1826 * Makefile.am: Added new files.
1827 * Makefile.in: Regenerated.
1829 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
1831 * java/text/RuleBasedCollator.java
1832 (mergeRules): Use ArrayList instead of Vector.
1833 (subParseString): likewise.
1834 (parseString): likewise.
1835 (buildCollationVector): likewise.
1836 (getCollationKey): likewise.
1838 2004-07-09 Dalibor Topic <robilad@kaffe.org>
1840 * java/text/DateFormat.java (parse):
1841 Improved javadoc. Improved exception message.
1843 2004-07-09 Mark Wielaard <mark@klomp.org>
1845 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
1846 interrupted() method to clear interupt flag of our Thread.
1848 2004-07-09 Dalibor Topic <robilad@kaffe.org>
1850 * java/nio/Buffer.java,
1851 java/nio/ByteBuffer.java,
1852 java/nio/ByteBufferHelper.java,
1853 java/nio/ByteBufferImpl.java,
1854 java/nio/CharBuffer.java,
1855 java/nio/CharBufferImpl.java,
1856 java/nio/CharViewBufferImpl.java,
1857 java/nio/DirectByteBufferImpl.java,
1858 java/nio/DoubleBuffer.java,
1859 java/nio/DoubleBufferImpl.java,
1860 java/nio/DoubleViewBufferImpl.java,
1861 java/nio/FloatBuffer.java,
1862 java/nio/FloatBufferImpl.java,
1863 java/nio/FloatViewBufferImpl.java,
1864 java/nio/IntBuffer.java,
1865 java/nio/IntBufferImpl.java,
1866 java/nio/IntViewBufferImpl.java,
1867 java/nio/LongBuffer.java,
1868 java/nio/LongBufferImpl.java,
1869 java/nio/LongViewBufferImpl.java,
1870 java/nio/MappedByteBufferImpl.java,
1871 java/nio/ShortBuffer.java,
1872 java/nio/ShortBufferImpl.java,
1873 java/nio/ShortViewBufferImpl.java:
1874 Fixed javadocs all over. Improved input error
1877 * java/nio/Buffer.java
1878 (checkForUnderflow, checkForOverflow, checkIndex,
1879 checkIfReadOnly, checkArraySize): New helper methods
1882 * java/nio/ByteBufferHelper.java
1883 (checkRemainingForRead, checkRemainingForWrite,
1884 checkAvailableForRead, checkAvailableForWrite): Removed
1885 no longer needed methods.
1887 2004-07-09 Michael Koch <konqueror@gmx.de>
1889 * gnu/regexp/CharIndexedInputStream.java:
1890 Reordered imports to match classpath.
1892 2004-07-09 Michael Koch <konqueror@gmx.de>
1894 * gnu/java/awt/EmbeddedWindow.java:
1895 Load native library for setWindowPeer method.
1897 2004-07-08 Randolph Chung <tausq@debian.org>
1899 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
1900 * configure: Regenerate.
1901 * configure.host: Set can_unwind_signal for hppa*-linux.
1902 * include/pa-signal.h: New file.
1904 2004-07-07 Per Bothner <per@bothner.com>
1906 * Makefile.am: Add rules to build libgij from just gij.cc.
1908 * include/jvm.h (namespace jcj): Declare verbose_class_flag
1909 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
1910 (initializeClass): If verbose_class_flag, print message.
1911 * gij.cc (main): Handle -verbose:class flag.
1913 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
1915 * configure.host: Enable hash synchronization on Darwin.
1916 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
1917 ';', since this is a comment on Darwin.
1918 (compare_and_swap_release): Likewise.
1920 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
1922 * java/net/URLStreamHandler.java (parseURL): Canonicalize
1923 file portion of URL in addition to spec for file: protocol.
1925 2004-07-05 Anthony Green <green@redhat.com>
1927 * java/io/File.java (toURI): Merge from Classpath.
1929 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
1931 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
1932 before passing to URL constructor. Rethrow any MalformedURLException
1933 as a RuntimeException. Catch MalformedURLException specifically, not
1936 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
1938 * java/util/Locale.java (readObject): Intern strings read from object
1941 2004-07-04 Michael Koch <konqueror@gmx.de>
1943 * gnu/gcj/runtime/FirstThread.java,
1944 gnu/gcj/runtime/natFirstThread.cc: Removed.
1945 * gnu/java/lang/MainThread.java,
1946 gnu/java/lang/natMainThread.cc: New files.
1947 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
1948 * Makefile.am: Added new files and removed deleted ones.
1949 * Makefile.in: Regenerated.
1951 2004-07-03 Mark Wielaard <mark@klomp.org>
1952 Anthony Green <green@redhat.com>
1954 * java/net/URL.java (getFile): Clarify return value doc.
1955 (getPath): Return null if file is empty - not empty String.
1956 (set): Convert protocol to lower case before doing anything.
1957 Only change the protocol handler if it's different.
1959 2004-07-03 Anthony Green <green@redhat.com>
1961 * java/net/URL.java (URL): Convert protocol to lower case before
1962 doing anything, so we getURLStreamHandler() with the proper value.
1964 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
1966 * java/util/Locale.java (hashcode): Made transient.
1967 (hashCode): No longer synchronized.
1968 (equals): Remove comment.
1969 (writeObject): No longer synchronized. Implement using writeObject
1970 calls instead of tweaking hashCode field. Update doc.
1971 (readObject): Implement using readObject calls.
1973 2004-06-26 Geoffrey Keating <geoffk@apple.com>
1974 Andreas Tobler <a.tobler@schweiz.ch>
1976 * configure.host (powerpc-*-darwin*): New case, define
1978 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
1979 * configure: Regenerate.
1980 * include/darwin-signal.h: New.
1982 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
1984 * java/beans/Statement.java (doExecute): Fix formatting.
1986 2004-06-29 Per Bothner <per@bothner.com>
1988 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
1989 etc etc): Remove needless parenthesis, which causes __stdcall__
1990 attribute on MinGW to get ignored.
1992 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
1994 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
1996 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
1998 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
2000 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
2002 * java/beans/Expression.java: New file.
2003 * java/beans/Statement.java: New file.
2004 * Makefile.am: Added new files.
2005 * Makefile.in: Re-generate.
2007 2004-06-27 Mark Wielaard <mark@klomp.org>
2009 * java/io/FilePermission.java (usingPerms): Removed.
2010 (actionsString): Made final.
2011 (cachePerms): Renamed to checkPerms.
2012 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
2014 (FilePermission): Check arguments, call checkPerms().
2015 (equals): Remove cachePerms() call.
2016 (implies): Likewise.
2018 2004-06-27 Mark Wielaard <mark@klomp.org>
2020 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
2022 (sendRequest): Use new field in user-agent http agent.
2024 2004-06-27 Mark Wielaard <mark@klomp.org>
2026 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
2027 when argument is null.
2029 2004-06-26 Mark Wielaard <mark@klomp.org>
2031 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2032 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
2034 (cancel_clicked): Likewise.
2036 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
2038 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
2039 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
2040 can not calculate the right value.
2041 (dpi_changed_cb): Likewise. Mark *pspec as unused.
2043 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
2045 * testsuite/libjava.jacks/jacks.xfail: Remove
2046 15.9.1-qualified-concrete-20.
2048 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2050 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
2051 encoding name to iconv.
2052 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2054 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2057 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
2058 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
2059 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2061 2004-06-21 Andrew Haley <aph@redhat.com>
2063 * java/io/ObjectOutputStream.java: Add DEBUG statements
2065 (dumpElementln): New method.
2067 * java/io/ObjectInputStream.java
2068 (currentClassLoader): Make native.
2069 (callersClassLoader): New field.
2071 (readObject): ENDBLOCKDATA is generated if the class has a write
2072 method, not if it has a read method.
2073 (readObject): Save and restore this.currentObject and
2074 this.currentObjectStreamClass around calls to callReadMethod().
2075 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
2078 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
2080 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
2083 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2085 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
2086 if desired, before the default class loader is initialised.
2087 Call INIT_SEGV only if HANDLE_SEGV is defined.
2089 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2091 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
2092 directory only if it actually exists.
2094 2004-06-18 Graydon Hoare <graydon@redhat.com>
2096 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
2097 Fix up non-ansi comments.
2099 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2101 * javax/swing/text/AbstractDocument.java: Adding missing import
2102 for javax.swing.event.EventListenerList.
2103 * javax/swing/text/DefaultCaret.java: Likewise.
2105 2004-06-17 Michael Koch <konqueror@gmx.de>
2107 * javax/swing/JToolBar.java
2109 (JToolBar): Use Component.setName(String) instead of doing it all
2111 * javax/swing/Timer.java
2112 (queueEvent): Added missing modifier.
2114 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
2116 * Makefile.am: Added new file.
2117 * Makefile.in: Re-generate.
2118 * javax/swing/JMenu.java:
2119 (insertSeparator): Implemented.
2120 * javax/swing/JPopupMenu.java:
2121 (JPopupMenu.Separator): Implemented.
2122 * javax/swing/MenuSelectionManager.java:
2123 (processMouseEvent): Use java.awt.Component
2124 for event source instead of javax.swing.JComponent.
2125 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
2126 New File. Implemented.
2128 2004-06-16 David Jee <djee@redhat.com>
2130 * java/awt/GridBagLayout.java
2131 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
2132 Make sure pos_x and pos_y are never negative.
2134 2004-04-16 Andrew Overholt <overholt@redhat.com>
2136 * Makefile.am: Add new file.
2137 * Makefile.in: Re-generate.
2138 * javax/swing/JToolBar.java
2139 Partially implemented.
2140 * javax/swing/plaf/basic/BasicToolBarUI.java
2141 New file. Partially implemented.
2143 2004-06-16 Graydon Hoare <graydon@redhat.com>
2145 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
2146 (setComposite): Accept AlphaComposite arguments.
2147 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
2148 (createBufferedImage): Add new overloads.
2149 * gnu/java/awt/peer/gtk/GtkToolkit.java
2150 (createImage): Use GdkPixbufDecoder.createBufferedImage
2151 when useGraphics2D() is true.
2152 (getImage): Delegate to createImage.
2153 * javax/swing/JList.java
2155 (getFirstVisibleIndex):
2156 (getLastVisibleIndex):
2158 (ensureIndexIsVisible): New methods.
2159 * javax/swing/Timer.java: Reimplement.
2161 2004-06-16 Michael Koch <konqueror@gmx.de>
2163 * javax/swing/text/AbstractDocument.java
2164 (AbstracElement): Made public, implements java.io.Serializable.
2165 (AttributeContext): Made public.
2166 (BranchElement): Likewise.
2167 (Content): Likewise.
2168 (DefaultDocumentEvent): Made public, extends
2169 javax.swing.undo.CompoundEdit.
2170 (ElementEdit): Made public, extends
2171 javax.swing.undo.AbstractUndoableEdit.
2172 (LeafElement): Made public.
2173 (LeafElement.LeafElement): Made public.
2175 2004-06-16 Michael Koch <konqueror@gmx.de>
2177 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
2178 methods (that were obviously never be intended to get included hi this
2179 class. Added some methods too.
2181 2004-06-16 Michael Koch <konqueror@gmx.de>
2183 * javax/swing/text/PlainDocument.java
2184 (serialVersionUID): New constant.
2185 (lineLimitAttribute): Likewise.
2186 (tabSizeAttribute): Likewise.
2187 (tabSize): New field.
2188 (PlainDocument): Made public.
2189 (PlainDocument): New constructor.
2191 2004-06-16 Michael Koch <konqueror@gmx.de>
2193 * javax/swing/text/AbstractDocument.java
2194 (insertString): Throws BadLocationException.
2195 * javax/swing/text/Document.java
2196 (insertString): Likewise.
2197 * javax/swing/text/JTextComponent.java:
2198 Javadocs and comments cleaned up.
2200 2004-06-16 Michael Koch <konqueror@gmx.de>
2202 * javax/swing/event/UndoableEditListener.java: Reformatted.
2203 * javax/swing/text/AbstractDocument.java
2204 (AbstractDocument): Implements java.io.Serializable.
2205 (doc_list): Removed.
2206 (undo_list): Removed.
2207 (AbstractElement.serialVerionUID): New field.
2208 (BranchElement.serialVerionUID): Likewise.
2209 (DefaultDocumentEvent.serialVerionUID): Likewise.
2210 (ElementEdit.serialVerionUID): Likewise.
2211 (LeafElement.serialVerionUID): Likewise.
2212 (serialVerionUID): Likewise.
2213 (BAD_LOCATION): New constant.
2214 (BidiElementName): Likewise.
2215 (ContentElementName): Likewise.
2216 (ParagraphElementName): Likewise.
2217 (SectionElementName): Likewise.
2218 (ElementNameAttribute): Likewise.
2219 (AbstractDocument): Made protected.
2220 (AbstractDocument): New construtor.
2221 (listenerList): New field.
2222 (fireChangedUpdate): Implemented.
2223 (fireInsertUpdate): Likewise.
2224 (fireRemoveUpdate): Likewise.
2225 (fireUndoableEditUpdate): Likewise.
2226 (getListeners): Likewise.
2227 (addDocumentListener): Likewise.
2228 (removeDocumentListener): Likewise.
2229 (addUndoableEditListener): Likewise.
2230 (removeUndoableEditListener): Likewise.
2231 (getDocumentListeners): New method.
2232 (getUndoableEditListeners): Likewise.
2233 (getAsynchronousLoadPriority): Made public.
2234 (getBidiRootElement): Likewise.
2235 (setAsynchronousLoadPriority): Likewise.
2236 (setDocumentProperties): Likewise.
2237 * javax/swing/text/BadLocationException.java
2238 (serialVerionUID): New field.
2239 * javax/swing/text/DefaultCaret.java
2240 (changeEvent): New field.
2241 (listenerList): Likewise.
2243 (addChangeListener): Reimplemented.
2244 (removeChangeListener): Likewise.
2245 (getListeners): New method.
2246 (getChangeListeners): Likwise.
2247 (getComponent): Likewise.
2248 * javax/swing/text/GapContent.java
2249 (GapContent): Implements java.io.Serializable.
2250 (serialVerionUID): New field.
2252 2004-06-16 Michael Koch <konqueror@gmx.de>
2254 * javax/swing/JTree.java
2255 (treeModel): New field.
2256 (JTree): New constructors, one existing one made public.
2257 (createTreeModel): New method.
2258 (addTreeExpansionListener): Likewise.
2259 (removeTreeExpansionListener): Likewise.
2260 (getTreeExpansionListeners): Likewise.
2261 (fireTreeCollapsed): Likewise.
2262 (fireTreeExpanded): Likewise.
2263 (addTreeSelectionListener): Likewise.
2264 (removeTreeSelectionListener): Likewise.
2265 (getTreeSelectionListeners): Likewise.
2266 (fireValueChanged): Likewise.
2267 (addTreeWillExpandListener): Likewise.
2268 (removeTreeWillExpandListener): Likewise.
2269 (getTreeWillExpandListeners): Likewise.
2270 (fireTreeWillCollapse): Likewise.
2271 (fireTreeWillExpand): Likewise.
2273 2004-06-16 Michael Koch <konqueror@gmx.de>
2275 * javax/swing/JTree.java: Reformatted.
2277 2004-06-16 Michael Koch <konqueror@gmx.de>
2279 * javax/swing/JTextArea.java: New file.
2280 * javax/swing/JTextField.java
2282 (notifyAction): New constant.
2283 (columns): New field.
2284 (JTextField): New constructors.
2285 (createDefaultModel): New method.
2286 (addActionListener): Reimplmemented.
2287 (removeActionListener): Reimplemented.
2288 (getActionListeners): New method.
2289 (fireActionPerformed): New method.
2290 (getColumns): New method.
2291 (setColumne): New method.
2292 * javax/swing/text/JTextComponent.java
2293 (AccessibleJTextComponent.serialVersionUID): New field.
2294 (serialVersionUID): Likewise.
2295 (DEFAULT_KEYMAP): Likewise.
2296 (FOCUS_ACCELERATOR_KEY): Likewise.
2297 (doc): Made private.
2298 (icon_gap): Likewise.
2301 (JTextComponent): Some constructors removed.
2302 (getScrollableTracksViewportHeight): New method.
2303 (getScrollableTracksViewportWidth): Likewise.
2304 * Makefile.am: Added javax/swing/JTextArea.java.
2305 * Makefile.in: Regenerated.
2307 2004-06-15 Graydon Hoare <graydon@redhat.com>
2309 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
2310 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
2311 * javax/swing/JViewport.java
2312 (getExtentSize): Return size rather than preferred size.
2313 (toViewCoordinates): New methods.
2314 (getViewSize): Return size rather than preferred size.
2315 (setViewSize): Note view size as set.
2316 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
2317 * javax/swing/plaf/basic/BasicScrollBarUI.java
2318 (getPreferredSize): Don't redo layout.
2319 * javax/swing/plaf/basic/BasicViewportUI.java
2320 (paint): Translate image properly and eat exceptions.
2322 2004-06-15 Kim Ho <kho@redhat.com>
2324 * javax/swing/JTabbedPane.java
2325 (setComponent): Remove old component and
2327 (setSelectedIndex): Don't operate on the
2328 components if they're null. Don't set index
2329 on the model if the index is the same.
2330 (insertTab): Don't add or hide the component
2331 if it's null. Repaint the container.
2332 * javax/swing/plaf/basic/BasicLookAndFeel.java
2333 Change colors for TabbedPane.
2334 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
2335 (mousePressed): Re-layout and paint the component.
2336 (layoutContainer): Don't set location on the view.
2337 (ScrollingViewport::paint): Remove.
2339 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
2341 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2342 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
2344 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
2345 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
2346 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
2348 (drawLine): Call gdk_flush before leaving GDK critical region.
2349 (fillRect): Likewise.
2350 (drawRect): Likewise.
2351 (copyArea): Likewise.
2352 (copyPixmap): Likewise.
2353 (clearRect): Likewise.
2354 (drawArc): Likewise.
2355 (drawPolyline): Likewise.
2356 (drawPolygon): Likewise.
2357 (fillPolygon): Likewise.
2358 (fillArc): Likewise.
2359 (drawOval): Likewise.
2360 (fillOval): Likewise.
2362 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
2364 (GdkFontMetrics): Add style argument to initState call.
2365 (stringWidth(String,int,int,String)): Add style parameter.
2366 (stringWidth(String)): Add style argument to stringWidth call.
2367 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
2368 (initState): Set pango font style and weight based on AWT style
2369 parameter. Pass default GTK language to
2370 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
2371 simply dividing by PANGO_SCALE.
2372 (stringWidth): Set pango font style and weight based on AWT style
2375 * java/awt/Button.java (next_button_number): New field.
2376 (paramString): Change output.
2377 (generateName): New method.
2378 (getUniqueLong): New method.
2380 2004-06-14 Kim Ho <kho@redhat.com>
2382 * javax/swing/JTabbedPane.java:
2383 (setComponentAt): Set the component, not
2385 * javax/swing/plaf/basic/BasicDesktopIconUI.java
2386 (actionPerformed): Let deiconize catch exception.
2388 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2390 * javax/swing/JPopupMenu.java:
2391 (setVisible): Corrected location of a
2392 heavyweight popup menu.
2394 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2396 * javax/swing/MenuSelectionManager.java:
2397 Ran through jalopy to fix formatting style.
2399 2004-06-14 Olga Rodimina <rodimina@redhat.com>
2401 * javax/swing/JLayeredPane.java:
2402 (remove): Revalidate and repaint layered pane after
2403 the component was removed.
2404 javax/swing/JMenu.java:
2405 (setVisible): Display popup menu at the user location,
2406 if one was set by the user.
2407 (setMenuLocation): Reimplemented. Fixed javadoc.
2408 * javax/swing/JMenuBar.java: Added javadoc.
2409 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
2410 (MODEL_CHANGED_PROPERTY): New Property.
2411 (isSelected): Implemented.
2412 (setBorderPainted): Fire PropertyChangeEvent
2413 if paintBorder property changes.
2414 (setSelected): Implemented.
2415 (setSelectionModel): Implemented.
2416 * javax/swing/JPopupMenu.java: Added Javadoc
2417 (pack): Implemented.
2418 (setVisible): Reimplemented.
2419 (show): Fixed location.
2420 (JPopupMenu.LigthWeightPopup): Reimplemented to use
2421 Container instead of JPanel.
2422 * javax/swing/MenuSelectionManager.java: Added Javadocs.
2423 (clearSelectedPath): Reimplemented to clear selectedPath
2425 (processMouseEvent): Reimplemented.
2426 (setSelectedPath): Fire stateChange event indicating that
2427 selected menu path has changed.
2428 (getPath): Change to use ArrayList instead of Vector.
2429 * javax/swing/plaf/basic/BasicMenuBarUI.java:
2430 (installUI): call installKeyboardActions().
2431 (uninstallUI): call uninstallKeyboardActions().
2433 2004-06-13 Michael Koch <konqueror@gmx.de>
2435 * javax/swing/text/DefaultCaret.java,
2436 javax/swing/text/BadLocationException.java:
2439 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
2441 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
2442 DEFAULT_COLS): New variables.
2443 (create): Don't allow 0 rows or 0 columns. Instead, set the
2444 values to DEFAULT_ROWS or DEFAULT_COLS.
2445 (getMinimumSize): Likewise.
2446 (getPreferredSize): Likewise.
2447 (minimumSize): Likewise.
2448 (preferredSize): Likewise.
2449 (create): Set peer's editable state.
2450 * java/awt/TextArea.java (TextArea()): Set rows and columns to
2451 zero. Update javadocs.
2452 (TextArea(String)): Likewise.
2453 (TextArea(int,int)): Fix javadocs.
2454 (TextArea(String,int,int,int)): Only throw exception if one of
2455 rows or columns is zero. Fix javadocs.
2457 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
2459 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
2460 addition to Components.
2462 * java/awt/MenuItem.java (dispatchEventImpl): If the event
2463 wasn't consumed by normal processing, send it to the parent
2466 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2467 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
2470 2004-06-11 David Jee <djee@redhat.com>
2472 * java/awt/MediaTracker.java
2473 (addImage(Image,int)): Call imageUpdate() to udpate image status.
2474 (addImage(Image,int,int,int)): Likewise.
2476 2004-06-11 Michael Koch <konqueror@gmx.de>
2478 * javax/swing/text/AbstractDocument.java,
2479 javax/swing/text/Document.java,
2480 javax/swing/text/GapContent.java,
2481 javax/swing/text/JTextComponent.java,
2482 javax/swing/text/PlainDocument.java:
2485 2004-06-11 Michael Koch <konqueror@gmx.de>
2487 * javax/swing/JRootPane.java
2488 (AccessibleJRootPane.serialVersionUID): New field.
2489 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
2490 (AccessibleJRootPane.getAccessibleRole): New method.
2491 (RootLayout): Implements Serializable.
2492 (RootLayout.serialVersionUID): New field.
2493 (RootLayout.RootLayout): New constructor.
2494 (setJMenuBar): Made public.
2495 (getJMenuBar): Likewise.
2496 (JRootPane): Likewise.
2497 (createContentPane): Likewise.
2498 (createGlassPane): Likewise.
2499 (createLayeredPane): Likewise.
2501 2004-06-11 Michael Koch <konqueror@gmx.de>
2503 * javax/swing/SwingUtilities.java
2504 (isLeftMouseButton): Fixed javadoc.
2505 (isMiddleMouseButton): Likewise.
2506 (isRightMouseButton): Likewise.
2508 2004-06-11 Michael Koch <konqueror@gmx.de>
2510 * javax/swing/JScrollPane.java
2511 (serialVersionUID): New field.
2512 (columnHeader): Made protected.
2513 (rowHeader): Likewise.
2514 (lowerLeft): Likewise.
2515 (lowerRight): Likewise.
2516 (upperLeft): Likewise.
2517 (upperRight): Likewise.
2518 (horizontalScrollBar): Likewise.
2519 (horizontalScrollBarPolicy): Likewise.
2520 (verticalScrollBar): Likewise.
2521 (verticalScrollBarPolicy): Likewise.
2522 (viewport): Likewise.
2524 2004-06-11 Michael Koch <konqueror@gmx.de>
2526 * javax/swing/LookAndFeel.java: Fixed javadocs.
2528 2004-06-11 Michael Koch <konqueror@gmx.de>
2530 * javax/swing/JEditorPane.java: Fixed javadocs.
2531 (JEditorPane): Removed redundant call to to this().
2532 (fireHyperlinkUpdate): Implemented.
2534 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2536 * javax/swing/JMenu.java: Fixed file name
2537 in the file comment.
2539 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2541 * javax/swing/JMenu.java: Added javadoc.
2542 (JMenu): Added MenuChangeListener to listen to
2543 ChangeEvents occuring in menu's model.
2544 (insert): Throw IllegalArgumentException if
2545 index is less than 0
2546 (setSelected): Reimplement.
2547 (setPopupMenuVisible): Call menu's model isEnabled()
2548 (setDelay): Throw IllegalArgumentException if
2549 given amount of delay is less than 0.
2550 (createActionComponent): Implemented.
2551 (createActionChangeListener): Implemented.
2552 (addSeparator): Implemented.
2553 (getItem): Throw IllegalArgumentException if index is
2555 (getItemCount): Implemented.
2556 (fireMenuSelected): Changed to use menuEvent.
2557 (fireMenuDeselected): Likewise.
2558 (fireMenuCanceled): Likewise.
2559 (setAccelerator): Changed to throw an error if this
2561 (doClick): Implemented.
2562 (JMenu.ActionChangedListener): New inner class to handle
2563 PropertyChangeEvents occuring in the actions associated with menu.
2564 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
2565 (BasicMenuUI): Added PropertyChangeListener to the menu.
2566 (createChangeListener): Implemented.
2567 (createMenuDragMouseListener): Likewise.
2568 (createMenuKeyListener): Likewise.
2569 (createPropertyChangeListener): Likewise.
2570 (uninstallListeners): Likewise.
2571 (BasicMenuUI.MouseInputHandler): Reimplemented.
2572 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
2573 (BasicMenuUI.ChangeHandler): Likewise.
2574 (BasicMenuUI.MenuDragMouseHandler): Likewise.
2575 (BasicMenuUI.MenuKeyHandler): Likewise.
2577 2004-06-10 David Jee <djee@redhat.com>
2579 * java/awt/MediaTracker.java
2580 (imageUpdate): Only do notifyAll() if the image is complete.
2582 2004-06-10 Olga Rodimina <rodimina@redhat.com>
2584 * javax/swing/JApplet.java:
2585 (getJMenuBar): Made public.
2586 (setJMenuBar): Likewise.
2587 * javax/swing/JFrame.java:
2588 (getJMenuBar): Made public.
2589 (setJMenuBar): Likewise.
2590 * javax/swing/JWindow.java:
2591 (getJMenuBar): Removed.
2592 (setJMenuBar): Removed.
2594 2004-06-10 Michael Koch <konqueror@gmx.de>
2596 * javax/swing/JEditorPane.java
2597 (createEditorKitForContentType): Fixed visibility.
2598 (fireHyperlinkUpdate): Likewise.
2599 (getContentType): Likewise.
2600 (getEditorKit): Likewise.
2601 (getEditorKitForContentType): Likewise.
2602 (getPage): Likewise.
2604 (registerEditorKitForContentTyoe): Likewise.
2605 (replaceSelection): Likewise.
2606 (setContentType): Likewise.
2607 (setEditorKit): Likewise.
2608 (setPage): Likewise.
2610 2004-06-10 Michael Koch <konqueror@gmx.de>
2612 * javax/swing/Timer.java
2613 (Timer): New constructor.
2614 * javax/swing/plaf/basic/BasicProgressBarUI.java
2615 (animationTimer): Don't initialize at construction.
2616 (startAnimationTimer): Added since tag.
2617 (stopAnimationTimer): Likewise.
2618 (installUI): Use new Timer constructor.
2619 * javax/swing/plaf/basic/BasicScrollBarUI.java
2620 (installUI): Likewise.
2621 * javax/swing/plaf/basic/BasicSliderUI.java
2622 (installUI): Likewise.
2624 2004-06-10 Michael Koch <konqueror@gmx.de>
2626 * javax/swing/ButtonGroup.java
2627 (serialVersionUID): Made private.
2628 (buttons): Renamed from v, added javadoc.
2629 (sel): Added javadoc.
2630 (ButtonGroup): Likewise.
2633 (getElements): Likewise.
2634 (getSelection): Likewise.
2635 (setSelected): Likewise.
2636 (isSelected): Likewise.
2637 (getButtonCount): Likewise.
2639 2004-06-10 Michael Koch <konqueror@gmx.de>
2641 * javax/swing/ButtonGroup.java,
2642 javax/swing/ImageIcon.java,
2643 javax/swing/JEditorPane.java,
2644 javax/swing/JRootPane.java,
2645 javax/swing/JTextField.java,
2646 javax/swing/LookAndFeel.java,
2647 javax/swing/plaf/basic/BasicTextUI.java:
2650 2004-06-10 Michael Koch <konqueror@gmx.de>
2652 * javax/swing/text/Style.java: Added javadocs.
2654 2004-06-10 Michael Koch <konqueror@gmx.de>
2656 * javax/swing/JComponent.java
2657 (fireVetoableChange): Removed redundant cast.
2658 * javax/swing/JLabel.java
2659 (getDisabledIcon): Save icon for next call.
2661 2004-06-10 Michael Koch <konqueror@gmx.de>
2663 * javax/swing/KeyStroke.java
2664 (getKeyStroke(char,boolean)): Marked deprecated.
2666 2004-06-10 Michael Koch <konqueror@gmx.de>
2668 * javax/swing/DefaultCellEditor.java,
2669 javax/swing/GrayFilter.java,
2670 javax/swing/event/DocumentEvent.java,
2671 javax/swing/text/JTextComponent.java,
2672 javax/swing/text/MutableAttributeSet.java:
2675 2004-06-10 Michael Koch <konqueror@gmx.de>
2677 * javax/swing/plaf/BorderUIResource.java:
2678 Added serialVersionUID all over.
2680 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
2682 * javax/swing/undo/UndoManager.java: Re-written from scratch.
2684 2004-06-10 Michael Koch <konqueror@gmx.de>
2686 * javax/swing/table/DefaultTableCellRenderer.java
2687 (noFocusBorder): Initialize directly.
2689 2004-06-10 Michael Koch <konqueror@gmx.de>
2691 * javax/swing/plaf/basic/BasicArrowButton.java
2692 (setDirection): Use method argument.
2694 2004-06-10 Michael Koch <konqueror@gmx.de>
2696 * javax/swing/plaf/BorderUIResource.java,
2697 javax/swing/plaf/ComponentUI.java,
2698 javax/swing/undo/CompoundEdit.java,
2699 javax/swing/undo/StateEdit.java:
2700 Fixed javadocs all over.
2702 2004-06-10 Michael Koch <konqueror@gmx.de>
2704 * javax/swing/DefaultButtonModel.java
2705 (ARMED): Made public final, fixed value.
2706 (ENABLED): Likewise.
2707 (PRESSED): Likewise.
2708 (ROLLOVER): Likewise.
2709 (SELECTED): Likewise.
2710 (stateMask): Initialize directly.
2711 (listenerList): Likewise.
2712 (mnemonic): Likewise.
2713 (fireStateChanged): Removed argument, use changeEvent as event.
2714 All places where this method is called are fixed too.
2715 (getActionCommant): Fixed javadoc.
2716 (setGroup): Fixed javadoc.
2717 (getGroup): New method.
2719 2004-06-09 Olga Rodimina <rodimina@redhat.com>
2721 * javax/swing/AbstractButton.java
2722 (AbstractButton): Use init() to initialize the button.
2723 (init): New Method. Initializes AbstractButton.
2724 * javax/swing/JMenuItem.java: Documented.
2725 (JMenuItem): Reimplemented.
2726 (init): Implemented.
2727 (setEnabled): Changed to call super.setEnabled()
2728 (processMouseEvent): Reimplemented.
2729 (fireMenuKeyPressed): Implemented.
2730 (fireMenuKeyReleased): Implemented.
2731 (fireMenuKeyTyped): Implemented.
2732 (menuSelectionChanged): disarm the model if the menu item was
2734 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
2735 (getPath): Change to use ArrayList instead of Vector.
2736 (getPreferredSize): Renamed variable.
2737 (paintMenuItem): Paint margin area of menu item.
2738 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
2739 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
2740 menu item's bounds before clearing the selection.
2742 2004-06-09 David Jee <djee@redhat.com>
2744 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
2745 (GtkTextComponentPeer): Set caret position to 0.
2746 * java/awt/TextComponent.java
2747 (setText): Set caret position to 0.
2748 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2749 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
2750 Handle GtkScrolledWindow separately. Fix signal handler blocking.
2751 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
2753 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
2754 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
2757 2004-06-09 Kim Ho <kho@redhat.com>
2759 * Makefile.am: New files
2760 * Makefile.in: Regenerated
2761 * java/awt/Container.java
2762 (getComponentAt): Removed.
2763 * javax/swing/AbstractAction.java
2764 (ENABLED_PROPERTY): New property.
2765 (putValue): Fire PropertyChangeEvents.
2766 (setEnabled): ditto.
2767 (firePropertyChange): Javadoc and implement
2769 * javax/swing/AbstractButton.java
2770 (setAction): Don't create PropertyChangeListener
2771 if new Action is null.
2772 (setIcon): Don't set icon till after comparing
2774 (configurePropertiesFromAction): Check mnemonic
2775 key before calling intValue().
2776 (createActionPropertyChangeListener): Check
2777 properties rather than bulk change.
2778 * javax/swing/DefaultDesktopManager.java:
2780 * javax/swing/DesktopManager.java:
2782 * javax/swing/JComponent.java
2783 (fireVetoableChange): Implement.
2784 (paintImmediately): Use root component.
2785 * javax/swing/JDesktopPane.java: Implement
2786 * javax/swing/JInternalFrame.java: Implement
2787 * javax/swing/JLabel.java
2788 (getDisabledIcon): Return grayscaled icon if
2789 no disabled icon specified.
2790 * javax/swing/JMenuBar.java
2791 (getComponentAtIndex): Use getComponent
2792 * javax/swing/JOptionPane.java
2793 (getDesktopPaneForComponent): Use SwingUtilities'
2795 (getFrameForComponent): ditto.
2796 * javax/swing/JSplitPane.java
2797 (remove): Use getComponent.
2798 * javax/swing/SwingUtilities.java
2799 (convertPoint): Implement.
2800 * javax/swing/plaf/basic/BasicButtonUI.java
2801 (paintButtonNormal): Check opaqueness before
2803 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
2805 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
2807 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
2809 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2811 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2812 Change InternalFrame and Desktop colors.
2814 2004-06-09 David Jee <djee@redhat.com>
2816 * java/awt/Container.java
2817 (remove): Do not set component to invisible.
2819 2004-06-09 Michael Koch <konqueror@gmx.de>
2821 * javax/swing/tree/DefaultMutableTreeNode.java
2822 (getLeafCount): Renamed enum to e.
2824 2004-06-09 Michael Koch <konqueror@gmx.de>
2826 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
2827 (positionForMouseEvent): Removed redundant semicolon.
2828 (continueDrag): Use method arguments.
2830 2004-06-09 Michael Koch <konqueror@gmx.de>
2832 * javax/swing/border/TitledBorder.java,
2833 javax/swing/filechooser/FileSystemView.java,
2834 javax/swing/plaf/basic/BasicButtonListener.java,
2835 javax/swing/plaf/basic/BasicGraphicsUtils.java,
2836 javax/swing/plaf/basic/BasicLabelUI.java,
2837 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
2838 javax/swing/plaf/basic/BasicScrollBarUI.java,
2839 javax/swing/plaf/basic/BasicScrollPaneUI.java,
2840 javax/swing/plaf/basic/BasicSliderUI.java,
2841 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
2842 javax/swing/plaf/basic/BasicToggleButtonUI.java,
2843 javax/swing/table/JTableHeader.java,
2844 javax/swing/text/AbstractDocument.java,
2845 javax/swing/text/DefaultCaret.java,
2846 javax/swing/text/StyledEditorKit.java,
2847 javax/swing/tree/DefaultTreeCellEditor.java:
2848 Reworked import statements.
2850 2004-06-08 Graydon Hoare <graydon@redhat.com>
2852 * javax/swing/Box.java: Temporarily comment out code
2853 broken due to visibility bug.
2855 2004-06-09 Michael Koch <konqueror@gmx.de>
2857 * javax/swing/ImageIcon.java
2858 (ImageIcon): Added missing constructor.
2860 2004-06-08 Michael Koch <konqueror@gmx.de>
2862 * javax/swing/JToggleButton.java
2863 (JToggleButton): New constructor.
2864 (getAccessibleContext): Moved documentation into javadoc.
2865 (getUIClassID): Likewise.
2867 2004-06-08 Michael Koch <konqueror@gmx.de>
2869 * javax/swing/AbstractButton.java
2870 (getDisabledIcon): Create disabled icon if none exists yet.
2872 2004-06-08 Michael Koch <konqueror@gmx.de>
2874 * javax/swing/plaf/basic/BasicLookAndFeel.java
2875 (initClassDefaults): Added FormattedTextFieldUI.
2876 (loadResourceBundle): Renamed enum to e.
2878 2004-06-08 Michael Koch <konqueror@gmx.de>
2880 * javax/swing/plaf/basic/BasicButtonUI.java
2881 (paintIcon): Simplified.
2882 (paintText): Paint disabled button correctly.
2884 2004-06-08 Michael Koch <konqueror@gmx.de>
2886 * javax/swing/JComponent.java
2887 (createToolTip): Use official JToolTip API.
2889 2004-06-08 Michael Koch <konqueror@gmx.de>
2891 * javax/swing/JToolTip.java
2892 (JToolTip): No arguments in API.
2893 (setTipText): New method.
2895 2004-06-08 Michael Koch <konqueror@gmx.de>
2897 * javax/swing/SwingUtilities.java
2898 (isLeftMouseButton): New method.
2899 (isMiddleMouseButton): New method.
2900 (isRightMouseButton): New method.
2902 2004-06-08 Michael Koch <konqueror@gmx.de>
2904 * javax/swing/AbstractButton.java,
2905 javax/swing/CellRendererPane.java,
2906 javax/swing/JCheckBoxMenuItem.java,
2907 javax/swing/JColorChooser.java,
2908 javax/swing/JComboBox.java,
2909 javax/swing/JComponent.java,
2910 javax/swing/JDesktopPane.java,
2911 javax/swing/JFileChooser.java,
2912 javax/swing/JMenu.java,
2913 javax/swing/JMenuItem.java,
2914 javax/swing/JOptionPane.java,
2915 javax/swing/JPasswordField.java,
2916 javax/swing/JPopupMenu.java,
2917 javax/swing/JProgressBar.java,
2918 javax/swing/JRadioButtonMenuItem.java,
2919 javax/swing/JScrollBar.java,
2920 javax/swing/JSeparator.java,
2921 javax/swing/JSlider.java,
2922 javax/swing/JSplitPane.java,
2923 javax/swing/JTabbedPane.java,
2924 javax/swing/JTextField.java,
2925 javax/swing/JToolBar.java,
2926 javax/swing/text/JTextComponent.java:
2927 Fixed all constructors of accessibility classes.
2929 2004-06-08 Michael Koch <konqueror@gmx.de>
2931 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
2934 2004-06-08 Michael Koch <konqueror@gmx.de>
2936 * javax/swing/Box.java
2937 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
2938 (AccessibleBoxFiller.serialVersionUID): New member variable.
2939 * javax/swing/DefaultButtonModel.java
2940 (stateMask): Made protected.
2941 (listenerList): Likewise.
2942 (changeEvent): Likewise.
2944 (mnemonic): Likewise.
2945 (actionCommand): Likewise.
2946 (getListeners): New method.
2947 (getActionListeners): New method.
2948 (getItemListeners): New method.
2949 (getChangeListeners): New method.
2950 (fireItemStateChanged): Simplified.
2951 (fireActionPerformed): Simplified.
2952 (fireStateChanged): Simplified.
2953 * javax/swing/JFrame.java
2954 (JFrame): Implements WindowContants.
2955 (HIDE_ON_CLOSE): Removed.
2956 (EXIT_ON_CLOSE): Removed.
2957 (DISPOSE_ON_CLOSE): Removed.
2958 (DO_NOTHING_ON_CLOSE): Removed.
2959 (processWindowEvent): Exit with code 0.
2960 (setDefaultCloseOperation): Do security check before setting value.
2961 * javax/swing/JOptionPane.java
2962 (message): Initialize only in constructor.
2963 * javax/swing/JToolTip.java: Removed unused imports.
2964 * javax/swing/JViewport.java
2965 (serialVersionUID): New member variable.
2966 (SIMPLE_SCROLL_MODE): Made final, fixed value.
2967 (BLIT_SCROLL_MODE): Likewise.
2968 (BACKINGSTORE_SCROLL_MODE): Likewise.
2969 (scrollUnderway): Made protected.
2970 (isViewSizeSet): Likewise.
2971 * javax/swing/ListModel.java: Fixed javadoc.
2972 * javax/swing/Popup.java: Likewise.
2973 * javax/swing/RepaintManager.java
2974 (paintDirtyRegions): Don't use internal classes of
2975 java.util.AbstractMap.
2976 * javax/swing/ScrollPaneConstants.java: Reindented.
2977 * javax/swing/ScrollPaneLayout.java
2978 (viewport): Made protected.
2979 (verticalScrollBar): Made protected, renamed to vsb.
2980 (horizontalScrollBar): Made protected, renamed to hsb.
2981 (rowHeader): Made protected, renamed to rowHead.
2982 (columnHeader): Made protected, renamed to colHead.
2983 (lowerLeft): Made protected.
2984 (lowerRight): Made protected.
2985 (upperLeft): Made protected.
2986 (upperRight): Made protected.
2987 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
2988 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
2990 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
2992 * java/awt/MediaTracker.java (imageUpdate): Only set status to
2993 LOADING if flags has SOMEBITS set.
2995 2004-06-07 Michael Koch <konqueror@gmx.de>
2997 * javax/swing/AbstractButton.java: Reorganized imports.
2998 * javax/swing/ActionMap.java: Likewise.
2999 * javax/swing/DefaultButtonModel.java: Likewise.
3000 * javax/swing/DefaultListModel.java: Likewise.
3001 * javax/swing/ImageIcon.java: Likewise.
3002 (serialVersionUID): New member variable.
3003 * javax/swing/JComboBox.java: Reorganized imports.
3004 * javax/swing/JComponent.java: Likewise.
3005 (ui): Made protected.
3006 (listenerList): Made protected.
3007 (TOOL_TIP_TEXT_KEY): New constant.
3008 (scrollRectToVisible): Removed redundant null check.
3009 * javax/swing/JFrame.java: Reorganized imports.
3010 * javax/swing/JInternalFrame.java: Reorganized imports.
3011 * javax/swing/JProgressBar.java: Likewise.
3012 * javax/swing/JRootPane.java: Likewise.
3013 * javax/swing/JScrollBar.java: Likewise.
3014 * javax/swing/JSeparator.java: Likewise.
3015 * javax/swing/JSlider.java: Likewise.
3016 * javax/swing/JTabbedPane.java: Likewise.
3017 * javax/swing/JTextField.java: Likewise.
3018 * javax/swing/JToolBar.java: Likewise.
3019 * javax/swing/JTree.java: Likewise.
3020 * javax/swing/JViewport.java: Likewise.
3021 * javax/swing/JWindow.java: Likewise.
3022 * javax/swing/KeyStroke.java: Likewise.
3023 * javax/swing/LookAndFeel.java: Likewise.
3024 * javax/swing/MenuSelectionManager.java: Likewise.
3025 * javax/swing/SwingUtilities.java: Likewise.
3026 * javax/swing/Timer.java: Likewise.
3027 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
3028 * javax/swing/JList.java
3029 (HORIZONTAL_WRAP): Made final, fixed value.
3030 (VERTICAL): Likewise.
3031 (VERTICAL_WRAP): Likewise.
3033 2004-06-07 Michael Koch <konqueror@gmx.de>
3035 * javax/swing/AbstractButton.java
3036 (serialVersionUID): New member variable.
3037 (AccessibleAbstractButton.serialVersionUID): Likewise.
3038 (AbstractButton): Made public.
3039 * javax/swing/Box.java
3040 (AccessibleBox.serialVersionUID): New member variable.
3041 (Filler.serialVersionUID): Likewise.
3042 * javax/swing/DefaultListSelectionModel.java
3043 (serialVersionUID): Likewise.
3044 * javax/swing/JApplet.java
3045 (serialVersionUID): Likewise.
3046 * javax/swing/JCheckBox.java
3047 (serialVersionUID): Likewise.
3048 * javax/swing/JCheckBoxMenuItem.java
3049 (serialVersionUID): Likewise.
3050 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
3051 * javax/swing/JColorChooser.java
3052 (serialVersionUID): Likewise.
3053 (AccessibleJColorChooser.serialVersionUID): Likewise.
3054 * javax/swing/JComponent.java
3055 (serialVersionUID): Made private.
3056 (AccessibleJComponent.serialVersionUID): New member variable.
3057 * javax/swing/JDesktopPane.java
3058 (serialVersionUID): Likewise.
3059 * javax/swing/JDialog.java
3060 (serialVersionUID): Likewise.
3061 * javax/swing/JFormattedTextField.java
3062 (serialVersionUID): Fixed value.
3063 * javax/swing/JFrame.java
3064 (serialVersionUID): New member variable.
3065 (getDefaultCloseOpertation): Made public.
3066 * javax/swing/JLayeredPane.java
3067 (serialVersionUID): Likewise.
3068 (LAYER_PROPERTY): Made final, fixed value.
3069 (JLayeredPane): Made public.
3070 * javax/swing/JMenu.java
3071 (AccessibleJMenu.serialVersionUID): New member variable.
3072 (WinListener.serialVersionUID): Likewise.
3073 * javax/swing/JMenuBar.java
3074 (serialVersionUID): Likewise.
3075 (getComponentAtIndex): Added @deprecated tag.
3076 * javax/swing/JMenuItem.java
3077 (serialVersionUID): New member variable.
3078 (AccessibleJMenuItem.serialVersionUID): Likewise.
3079 * javax/swing/JOptionPane.java
3080 (serialVersionUID): Likewise.
3081 (AccessibleJOptionPane.serialVersionUID): Likewise.
3082 * javax/swing/JPopupMenu.java
3083 (serialVersionUID): Likewise.
3084 (AccessibleJPopupMenu.serialVersionUID): Likewise.
3085 (getPopupMenuListeners): New method.
3086 (getComponentAtIndex): Added @deprecated tag.
3087 * javax/swing/JProgressBar.java
3088 (serialVersionUID): New member variable.
3089 (AccessibleJProgressBar.serialVersionUID): Likewise.
3090 * javax/swing/JRadioButton.java
3091 (serialVersionUID): Likewise.
3092 * javax/swing/JRadioButtonMenuItem.java
3093 (serialVersionUID): Likewise.
3094 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
3095 * javax/swing/JScrollBar.java
3096 (serialVersionUID): Likewise.
3097 (AccessibleJScrollBar.serialVersionUID): Likewise.
3098 * javax/swing/JSeparator.java
3099 (serialVersionUID): Likewise.
3100 (AccessibleJSeparator.serialVersionUID): Likewise.
3101 * javax/swing/JSlider.java: Fixed javadocs.
3102 (AccessibleJSlider.serialVersionUID): New member variable.
3103 * javax/swing/JSplitPane.java: Added copyright statement.
3104 (serialVersionUID): New member variable.
3105 (AccessibleJSplitPane.serialVersionUID): Likewise.
3106 * javax/swing/JTabbedPane.java
3107 (serialVersionUID): Likewise.
3108 (AccessibleJTabbedPane.serialVersionUID): Likewise.
3109 (ModelListener.serialVersionUID): Likewise.
3110 (ModelListener.ModelListener): New constructor.
3111 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
3112 (WRAP_TAB_LAYOUT): Likewise.
3113 * javax/swing/JTable.java
3114 (serialVersionUID): New member variable.
3115 * javax/swing/JToggleButton.java
3116 (serialVersionUID): Likewise.
3117 (ToggleButtonModel): Made static.
3118 (ToggleButtonModel.serialVersionUID): New member variable.
3119 * javax/swing/JToolTip.java
3120 (serialVersionUID): Likewise.
3121 * javax/swing/JTree.java
3122 (serialVersionUID): Likewise.
3123 * javax/swing/JWindow.java
3124 (serialVersionUID): Likewise.
3125 * javax/swing/Timer.java
3126 (serialVersionUID): Likewise.
3128 2004-06-06 Michael Koch <konqueror@gmx.de>
3130 * javax/swing/SwingConstants.java
3131 (NEXT): New constant.
3132 (PREVIOUS): Likewise.
3133 * javax/swing/UIManager.java
3134 (LookAndFeel): Made public.
3135 (LookAndFeel.getClassName): Likewise.
3136 (LookAndFeel.getName): Likewise.
3138 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3140 * javax/swing/JCheckBoxMenuItem.java:
3142 * javax/swing/JMenu.java: Likewise.
3143 * javax/swing/JMenuBar.java: Likewise.
3144 * javax/swing/JMenuItem.java: Likewise.
3145 * javax/swing/JPopupMenu.java: Likewise.
3146 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3147 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3148 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3149 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3150 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3151 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3152 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3154 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3156 * javax/swing/plaf/basic/BasicMenuUI.java:
3157 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3158 Call getPath() from super class instead.
3160 2004-05-31 David Jee <djee@redhat.com>
3162 * java/awt/Container.java
3163 (remove): Set component visibility to false after removing it.
3165 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
3167 * java/awt/Component.java (getForeground): Return SystemColor if
3169 (getBackground): Likewise.
3171 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3172 (item_highlighted): New function.
3173 (connectSignals): Set item_highlighted as list's select
3176 * java/applet/Applet.java: Revert changes from 2004-04-29,
3177 2004-03-15 and 2004-03-14.
3179 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3180 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
3183 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
3184 "Dialog" as the default font.
3185 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
3187 * java/awt/Component.java (getFont): Return "Dialog" font by
3189 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
3190 Multiply size argument to pango_font_description_set_size by the
3191 DPI conversion factor rather than by PANGO_SCALE.
3192 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
3193 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
3194 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
3195 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
3196 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3197 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
3198 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
3199 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
3200 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
3201 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3202 Divide baseline y coordinate by DPI conversion factor rather
3203 than by PANGO_SCALE.
3204 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
3205 (area_prepared): Fix typo.
3206 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
3207 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
3208 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3209 (dpi_conversion_factor): New global variable.
3210 (init_dpi_conversion_factor): New function to calculate and
3211 track DPI conversion factor.
3212 (dpi_changed_cb): New callback.
3213 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
3215 2004-05-27 David Jee <djee@redhat.com>
3217 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3218 (getGraphics): Return a new GdkGraphics instance.
3219 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3220 (getGraphics): Call super.getGraphics().
3222 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3224 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3225 (setNativeBounds): Clamp width and height values to >= 0.
3227 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3228 (find_fg_color_widget): Handle GtkOptionMenu specially.
3230 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3231 (pre_event_handler): Only post configure events to visible
3234 2004-05-26 David Jee <djee@redhat.com>
3236 * java/awt/BorderLayout.java
3237 (layoutContainer): Fix size calculations.
3239 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3241 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3242 (window_wm_protocols_filter): Remove function.
3243 (create): Remove filter that removes WM_TAKE_FOCUS client
3246 2004-06-17 Anthony Green <green@redhat.com>
3248 * java/util/zip/ZipFile.java (getInputStream): Return null if
3251 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
3252 directory contents to the class path.
3254 2004-06-15 Andrew Haley <aph@redhat.com>
3256 * java/lang/natSystem.cc (getenv0): Don't assume environment
3257 variable is Latin 1 coded.
3259 2004-06-14 Andreas Jaeger <aj@suse.de>
3261 * configure.in: Support --enable-version-specific-runtime-libs.
3262 * configure: Regenerated.
3264 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
3266 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
3267 to pass ClassLoader argument.
3268 * java/util/GregorianCalendar.java: Likewise.
3269 * java/util/Currency.java: Likewise.
3270 * java/text/BreakIterator.java: Likewise.
3271 * java/text/Collator.java: Likewise.
3272 * java/text/DateFormat.java: Likewise.
3273 * java/text/DateFormatSymbols.java: Likewise.
3274 * java/text/DecimalFormatSymbols.java: Likewise.
3275 * java/text/NumberFormat.java: Likewise.
3276 * java/awt/Window.java: Likewise.
3278 2004-06-14 Andrew Haley <aph@redhat.com>
3280 * java/lang/System.java: (getenv0): New method.
3281 (getenv): Add security check. Do the right thing.
3282 * java/lang/natSystem.cc (getenv0): New method.
3284 2004-06-12 Mark Wielaard <mark@klomp.org>
3286 * javax/swing/RepaintManager.java
3287 (paintDirtyRegions): Use entrySet(), not values().
3289 2004-06-10 Mark Wielaard <mark@klomp.org>
3291 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
3294 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
3296 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
3297 when we already know the answer.
3298 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3299 (setStartRule,setEndRule): Don't take abs of day number.
3300 (getOffset): Clarify docs. Add argument checks.
3301 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3302 (equals,hasSameRules,toString,readObject): Use startTimeMode and
3305 2004-06-10 Tom Tromey <tromey@redhat.com>
3307 * interpret.cc (run): Handle wide fload.
3309 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
3311 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
3313 2004-06-05 Michael Koch <konqueror@gmx.de>
3315 * javax/swing/SwingConstants.java
3316 (NEXT): New constant.
3317 (PREVIOUS): Likewise.
3319 2004-06-05 Michael Koch <konqueror@gmx.de>
3321 * javax/swing/UIManager.java
3322 (LookAndFeel): Made public.
3323 (LookAndFeel.getName): Likewise.
3324 (LookAndFeel.getClassName): Likewise.
3326 2004-06-03 Michael Koch <konqueror@gmx.de>
3328 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3329 (requestFocus): Revert last changes.
3330 (gtkRequestFocus): Removed.
3331 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3332 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3334 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
3335 Reverted last patch.
3336 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3337 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
3338 Reverted comment change.
3340 2004-06-02 Olga Rodimina <rodimina@redhat.com>
3342 * javax/swing/JCheckBoxMenuItem.java:
3344 * javax/swing/JMenu.java: Likewise.
3345 * javax/swing/JMenuBar.java: Likewise.
3346 * javax/swing/JMenuItem.java: Likewise.
3347 * javax/swing/JPopupMenu.java: Likewise.
3348 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3349 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3350 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3351 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3352 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3353 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3354 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3356 2004-06-01 Tom Tromey <tromey@redhat.com>
3358 * java/io/ObjectStreamField.java: Cleaned up imports.
3360 2004-06-01 Michael Koch <konqueror@gmx.de>
3362 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
3364 2004-06-01 Mark Wielaard <mark@klomp.org>
3366 * java/io/Writer.java (Writer(Object)): Fixed API doc.
3368 2004-06-01 Michael Koch <konqueror@gmx.de>
3370 * java/security/Security.java
3371 (insertProviderAt): Use equals() instead of ==.
3372 (removeProvicer): Likewise.
3373 (getProvider): Likewise.
3374 * java/security/Signature.java
3375 (sign): Don't set state to UNINITIALIZED.
3378 2004-06-01 Mark Wielaard <mark@klomp.org>
3380 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
3381 Implement by calling gtkRequestFocus.
3382 (gtkRequestFocus): New native method.
3383 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3384 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
3386 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3388 (filter_expose_event_handler):
3390 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3391 (menu_pos): Mark static.
3393 2004-06-01 Michael Koch <konqueror@gmx.de>
3395 * java/text/CollationElementIterator.java,
3396 java/text/CollationKey.java,
3397 java/text/RuleBasedCollator.java: New versions from GNU classpath.
3398 * testsuite/libjava.mauve/xfails: Removed all
3399 java.text.CollationElementIterator tests.
3401 2004-06-01 Michael Koch <konqueror@gmx.de>
3403 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
3405 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
3406 Java 1.5 keyword usage.
3408 2004-05-31 Olga Rodimina <rodimina@redhat.com>
3410 * javax/swing/plaf/basic/BasicMenuUI.java:
3411 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3412 Call getPath() from super class instead.
3414 2004-05-31 Michael Koch <konqueror@gmx.de>
3416 * java/io/SequenceInputStream.java:
3417 Rename enum to e because enum is a keyword in Java 1.5.
3419 2004-05-31 Michael Koch <konqueror@gmx.de>
3421 * gnu/java/rmi/rmic/CompilerProcess.java:
3422 Fixed javadoc to by XHTML compliant.
3424 2004-05-30 Mark Wielaard <mark@klomp.org>
3426 * java/awt/Toolkit.java (loadSystemColors): Implement.
3428 2004-05-30 Michael Koch <konqueror@gmx.de>
3430 * java/lang/System.java: Reordered imports.
3432 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
3434 * java/text/DecimalFormat.java
3435 (parse): Fixed parsing of decimal strings. Number of maximum
3436 digits to be read should now work.
3437 * java/text/SimpleDateFormat.java
3438 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
3439 formatter. This fixes DateFormatTest.
3441 2004-05-30 Michael Koch <konqueror@gmx.de>
3443 * java/nio/Buffer.java
3444 (limit): Fixed off by one error.
3445 * java/nio/CharBuffer.java
3446 (wrap): Fixed arguments, added javadocs.
3448 2004-05-30 Michael Koch <konqueror@gmx.de>
3450 * gnu/java/beans/BeanInfoEmbryo.java,
3451 java/awt/im/InputContext.java,
3452 javax/swing/tree/DefaultMutableTreeNode.java:
3453 Rename enum to e because enum is a keyword in Java 1.5.
3455 2004-05-30 Michael Koch <konqueror@gmx.de>
3457 * gnu/java/math/MPN.java,
3458 java/awt/geom/Arc2D.java:
3459 Fixed javadocs all over.
3461 2004-05-30 Michael Koch <konqueror@gmx.de>
3463 * java/awt/DefaultKeyboardFocusManager.java
3464 (dispatchEvent): Call method to get key event dispatchers.
3465 (dispatchKeyEvent): Call method to get key event post processors.
3466 * javax/swing/JComponent.java
3467 (listenerList): Made protected.
3468 * javax/swing/JOptionPane.java
3469 (message): Don't initialize.
3470 (JOptionPane): Set message text.
3471 * javax/swing/JPopupMenu.java
3472 (show): Fixed typo in argument name.
3473 * javax/swing/RepaintManager.java
3474 (paintDirtyRegions): Use public API of java.util.Map.
3475 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3476 (positionForMouseEvent): Removed redundant ';'.
3477 (continueDrag): Use method arguments.
3479 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
3481 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
3484 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
3486 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
3488 * gnu/gcj/RawDataManaged.java: New file.
3489 * java/lang/Thread.java (data): Declare as RawDataManaged.
3490 * java/lang/natThread.cc (init_native): Cast natThread data to
3491 RawDataManaged, not jobject.
3492 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
3493 * Makefile.in: Rebuilt.
3495 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
3497 * java/util/SimpleTimeZone.java: Reverting my last change until I
3498 can fix it properly.
3500 2004-05-27 Michael Koch <konqueror@gmx.de>
3502 * javax/swing/JPopupMenu.java
3503 (isVisible): Do not use visible directly.
3504 (setVisible): Likewise.
3505 * javax/swing/JWindow.java
3506 (JWindow): call accessible constructor.
3507 * javax/swing/RepaintManager.java
3508 (paintDirtyRegions): Use public methods to obtain iterator.
3510 2004-05-25 David Jee <djee@redhat.com>
3512 * java/awt/Container.java
3513 (remove): Set component's parent to null only after we removed the
3514 component from its parent's layout manager.
3516 2004-05-25 David Jee <djee@redhat.com>
3518 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3519 (GtkComponentPeer): Set bounds regardless of whether awtComponent
3521 * gnu/java/awt/peer/gtk/GtkListPeer.java
3522 (getSize): Change native method declaration.
3523 (minimumSize): Pass visible row count into getSize().
3524 (preferredSize): Likewise.
3525 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3526 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
3527 natural size. Use visible row count to determine the final height
3530 2004-05-21 Graydon Hoare <graydon@redhat.com>
3532 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
3533 (setClip): Minor correction to order of operations.
3535 * javax/swing/JScrollPane.java: Extend sketchy implementation.
3536 * javax/swing/ScrollPaneLayout.java: Likewise.
3537 * javax/swing/JViewPort.java: Likewise.
3538 * javax/swing/ViewportLayout.java: Likewise.
3540 * javax/swing/JComponent.java: Rewrite.
3541 * javax/swing/RepaintManager.java: Likewise.
3543 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
3544 * javax/swing/JList.java
3545 (setSelectedIndices):
3546 (getSelectedIndices):
3547 (getSelectedValues): New functions.
3548 (getPreferredScrollableViewportSize): Return preferred size.
3549 (getScrollableUnitIncrement):
3550 (getScrollableBlockIncrement): Initial implementations.
3551 * javax/swing/JRootPane.java: Clean up slightly.
3556 (isValidateRoot): Add overrides from JComponent.
3557 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
3558 * javax/swing/UIManager.java (getDimension): Return the dimension.
3560 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
3561 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3562 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3563 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3564 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3565 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
3566 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
3567 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3568 Likewise, and set background.
3569 * javax/swing/plaf/basic/BasicListUI.java:
3570 Likewise, and improve a bit.
3571 * javax/swing/plaf/basic/BasicScrollBarUI.java:
3572 Likewise, and adjust calculations.
3573 * javax/swing/plaf/basic/BasicViewportUI.java:
3574 Likewise, and improve a bit.
3575 * javax/swing/plaf/basic/BasicLookAndFeel.java
3576 (Button.margin): Shrink.
3578 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
3579 Hack to set horizontal always, workaround pango.
3581 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
3582 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
3583 Synchronize more often, check cairo status after ops,
3584 handle changes to cairo pattern API, check for disposal.
3586 2004-05-21 Olga Rodimina <rodimina@redhat.com>
3588 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3589 (BasicMenuItemUI): Create propertyChangeListener.
3590 (getPath):Implemented.
3591 (installListeners): Add propertyChangeListener to menuItem.
3592 (uninstallListeners): Remove propertyChangeListener from menuItem.
3593 (update): Implemented.
3594 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3595 (mouseEntered): Take insets of popup menu into account when
3596 calculating position of popup menu.
3598 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3600 * Makefile.am: Added new file.
3601 * Makefile.in: Regenerate.
3602 * javax/swing/JMenuBar.java:
3603 Started implementation.
3604 * javax/swing/JPopupMenu.java:
3605 (setVisible): Fixed location of lightweight/mediumweight
3607 (show): Fixed location of PopupMenu.
3608 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3609 New file. UI Delegate for JMenuBar.
3610 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3611 (mouseEntered): Corrected position of the submenu.
3613 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
3615 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
3616 to _gtk_accel_group_attach.
3617 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
3620 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
3621 package access. Don't override setFont.
3622 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
3623 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
3624 gtkWidgetRequestFocus package access.
3625 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
3627 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
3628 Give gtkWidgetRequestFocus package access.
3629 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
3630 gtkWidgetRequestFocus package access. Don't override setFont.
3631 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
3633 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3634 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
3636 (gtkSetFont): Likewise.
3637 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
3639 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3640 (gtkSetFont): Whitespace fix.
3642 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3643 (gtkWidgetSetUsize): Remove method.
3645 2004-05-18 David Jee <djee@redhat.com>
3647 * java/awt/image/MemoryImageSource.java
3648 (newPixels(int,int,int,int,boolean)): Set only the specified
3649 rectangle of pixels.
3650 (newPixels(byte[],ColorModel,int,int)): Implement.
3651 (newPixels(int[],ColorModel,int,int)): Implement.
3653 2004-05-18 Olga Rodimina <rodimina@redhat.com>
3655 * Makefile.am: Added new file.
3656 * Makefile.in: Regenerate.
3657 * javax/swing/JMenu.java: Started
3659 * javax/swing/JPopupMenu.java:
3660 (insert): If specified index is -1, then
3661 add component at the end.
3662 (isPopupTrigger): Reimplemented.
3663 (JPopupMenu.LightWeightPopup): setBounds
3664 of the lightWeightPopup before adding it
3666 (javax/swing/plaf/basic/BasicIconFactory.java):
3667 (getMenuArrowIcon): Implemented.
3668 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3669 (getPreferredSize): Add size of the arrow icon
3670 if this menu item is instance of JMenu.
3671 (paintMenuItem): Paint arrow icon if this
3672 menu item is a submenu.
3673 * javax/swing/plaf/basic/BasicMenuUI.java:
3674 New File. UI Delegate for JMenu.
3676 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
3678 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
3679 Post KEY_TYPED events.
3680 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3681 (generates_key_typed_event): Remove function.
3683 2004-05-17 Olga Rodimina <rodimina@redhat.com>
3685 * javax/swing/JRootPane.java
3686 (JRootPane.RootLayout): Reimplemented to
3687 set bounds of contentPane and menuBar.
3688 (setJMenuBar): Add menu bar to the layered pane.
3689 (createLayeredPane): Set layout of layeredPane
3691 * javax/swing/JLayeredPane.java:
3692 (addImpl): Calculate index of the component in the
3693 layeredPane according to the specified position within
3696 2004-05-17 David Jee <djee@redhat.com>
3698 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3699 (setPixels): Change color model to the default model after
3701 * java/awt/image/MemoryImageSource.java
3702 (newPixels): Set only the specified rectangle of pixels.
3704 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
3706 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
3707 -l-java-beans -l-javax-accessibility -l-javax-swing.
3709 * java/awt/AWTEvent.java (toString): Print source's name rather
3710 than the source itself.
3712 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
3714 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
3716 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
3717 (gdk_color_to_java_color): New function.
3718 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
3720 2004-05-12 David Jee <djee@redhat.com>
3722 * java/awt/image/RGBImageFilter.java:
3723 Initialize origmodel as null.
3724 (makeColor): Fix pixel component order.
3725 (filterRGBPixels): Fix pixel iteration.
3726 (setPixels): Add extra checks for index color model. Convert pixels
3727 to default color model if necessary.
3728 (convertColorModelToDefault): New override method for byte pixels.
3729 (convertColorModelToDefault): For int pixels, fix pixel iteration.
3730 (makeColorbyDefaultCM): New override method for byte pixels.
3731 (makeColorbyDefaultCM): For int pixel, add color model as argument.
3732 (makeColor): Fix pixel component order.
3734 2004-05-11 Kim Ho <kho@redhat.com>
3736 * javax/swing/Box.java:
3737 Comment out more parts of Box.Filler.
3739 2004-05-11 Kim Ho <kho@redhat.com>
3741 * javax/swing/Box.java:
3742 Remove reference to AccessibleAWTComponent so
3745 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
3747 * gnu/java/awt/peer/gtk/GtkListPeer.java,
3748 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
3749 implementation of list peer to use GtkTreeView instead of
3750 deprecated GtkCList.
3752 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
3754 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3755 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
3756 (handleEvent): Remove keyChar argument to
3757 gtkWidgetDispatchKeyEvent calls.
3758 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
3760 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3761 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
3762 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
3765 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
3767 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3768 (gtkWidgetRequestFocus): Mark protected.
3769 (GtkComponentPeer): Only set the peer's bounds if its component
3771 * java/awt/Component.java (static): Set the default keyboard
3773 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
3774 requestFocusInWindow(temporary)): Don't request focus if the
3775 component is not showing. Get tree lock before traversing
3776 component hierarchy.
3777 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3778 Only set the global focus owner if it is not a Window.
3779 (processKeyEvent): Consume keystrokes associated with the focus
3780 traversal keystroke.
3781 (focusPreviousComponent, focusNextComponent, upFocusCycle,
3782 downFocusCycle): Call requestFocusInWindow instead of
3784 * java/awt/EventDispatchThread.java (run): Move setting of
3785 default keyboard focus manager to Component.java.
3786 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3787 (awt_keycode_to_keysym): New function.
3788 (gtkWidgetDispatchKeyEvent): Finish implementation.
3789 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3790 (pre_event_handler): Add FIXME comment.
3792 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
3793 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3794 (gtkWidgetRequestFocus): New method.
3795 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
3796 disable Tab and Shift-Tab keystrokes.
3797 (addNotify, appendText, insertText, replaceText): Simplify peer
3799 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3800 (connectSignals): Remove connections to "commit" signals.
3801 Remove C++-style comments.
3803 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
3804 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3805 (handleEvent): Activate GTK button when the space bar key is
3807 (gtkActivate): New method.
3809 2004-05-06 David Jee <djee@redhat.com>
3811 * java/awt/image/CropImageFilter.java
3812 (setPixels): Implement for byte array pixels.
3813 * java/awt/image/ReplicateScaleFilter.java
3814 (setPixels): Implement for byte array pixels.
3815 (replicatePixels): Overload for byte array pixels.
3817 2004-05-06 Kim Ho <kho@redhat.com>
3819 * javax/swing/Box.java:
3820 (getAccessibleContext): Return an instance of the
3823 2004-05-05 David Jee <djee@redhat.com>
3825 * gnu/java/awt/peer/gtk/GdkGraphics.java
3826 (drawImage): When component is null, use SystemColor.window as
3827 the default bgcolor.
3828 * gnu/java/awt/peer/gtk/GtkImage.java
3829 (setPixels): We can avoid iterating through the pixel rows only
3831 * java/awt/Image.java
3832 (getScaledInstance): Partially implement.
3833 * java/awt/image/CropImageFilter.java
3834 (setProperties): Fix "filter" property.
3835 (setPixels): Implement.
3836 * java/awt/image/ReplicateScaleFilter.java
3837 (setDimensions): Use scaled dimensions.
3838 (setPixels): Implement.
3839 (replicatePixels): New method.
3841 2004-05-05 David Jee <djee@redhat.com>
3843 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3844 (convertPixels): If either pixels or model is null, return null.
3845 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
3846 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
3847 is null, do nothing and return.
3849 2004-05-03 Kim Ho <kho@redhat.com>
3851 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
3852 (getGraphics): Like GtkFramePeer, the Graphics
3853 object needs to be translate to account for
3855 (postMouseEvent): New method. Account for
3857 (postExposeEvent): ditto.
3858 * javax/swing/Box.java: Stubbed.
3859 * javax/swing/JDialog.java: Ran through jalopy
3861 (JDialog): Call SwingUtilities' getOwnerFrame
3863 (setLayout): Check isRootPaneCheckingEnabled
3864 * javax/swing/JOptionPane.java: Re-implemented.
3865 * javax/swing/SwingUtilities.java:
3866 (getOwnerFrame): Static method to grab a default
3867 owner frame for Dialogs that don't specify owners.
3868 * javax/swing/event/SwingPropertyChangeSupport.java:
3869 (firePropertyChange): Fix early exit condition.
3870 * javax/swing/plaf/basic/BasicLabelUI.java:
3871 (paint): Avoid painting text if it is null
3873 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
3876 2004-05-03 Olga Rodimina <rodimina@redhat.com>
3878 * Makefile.am: Added new file.
3879 * Makefile.in: Regenerate.
3880 * javax/swing/JPopupMenu.java:
3881 Started implementation.
3882 * javax/swing/JWindow.java
3883 (JWindow): call super() if parent for window
3885 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3886 New File. UI Delegate for JPopupMenu.
3888 2004-04-30 Olga Rodimina <rodimina@redhat.com>
3890 * javax/swing/JApplet.java: Indicated that JApplet
3891 implements RootPaneContainer and made method of this
3893 * javax/swing/JFrame.java: Ditto.
3894 * javax/swing/JWindow.java: Ditto.
3896 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
3898 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3899 (nativeSetBounds): Call gdk_window_move in addition to
3902 * java/applet/Applet.java (preferredSize): Call parent's
3903 preferredSize if the applet stub is null.
3904 (minimumSize): Likewise for parent's minimumSize.
3906 2004-04-27 Olga Rodimina <rodimina@redhat.com>
3908 * javax/swing/JMenuItem.java
3909 (createActionPropertyChangeListener): Implemented.
3910 (processMouseEvent): Ditto.
3911 (fireMenuDragMouseEntered): Ditto.
3912 (fireMenuDragMouseExited): Ditto.
3913 (fireMenuDragMouseDragged): Ditto.
3914 (fireMenuDragMouseReleased): Ditto.
3915 (menuSelectionChanged): Ditto.
3916 (getSubElements): Ditto.
3917 (getComponent): Ditto.
3918 (addMenuDragMouseListener): Ditto.
3919 (removeMenuDragMouseListener):Ditto.
3920 (addMenuKeyListener): Ditto.
3921 (removeMenuKeyListener): Ditto.
3922 * javax/swing/plaf/basic/BasicMenuItemUI.java
3923 (doClick): Imlemented.
3924 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
3925 Don't handle mouse events here. Pass them to
3926 MenuSelectionManager.
3928 2004-04-26 Olga Rodimina <rodimina@redhat.com>
3929 Used correct version of jalopy configuration
3930 file to fix style in the files below.
3932 2004-04-26 Olga Rodimina <rodimina@redhat.com>
3934 * javax/swing/JCheckBoxMenuItem.java:
3935 Fixed style and removed unnecessary comments.
3936 * javax/swing/JMenuItem.java: Ditto.
3937 * javax/swing/JRadioButtonMenuItem.java: Ditto.
3938 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
3939 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
3940 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
3942 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
3944 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
3947 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
3949 * java/awt/ContainerOrderFocusTraversalPolicy.java
3950 (getComponentAfter): Start from current component and work up
3951 the component hierarchy until an acceptable component is found.
3952 Synchronize on tree lock.
3953 (getComponentBefore): Likewise.
3955 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
3957 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
3958 focus-related debugging messages.
3959 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
3960 * java/awt/EventDispatchThread.java: Likewise.
3961 * java/awt/KeyboardFocusManager.java: Likewise.
3962 * java/awt/Window.java: Likewise.
3963 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3964 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3966 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
3967 new C++-style comments to C-style comments.
3968 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3970 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3971 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3972 (handleEvent): Dispatch key press and key release events to
3974 (requestFocus): Post a FOCUS_GAINED event to the event queue.
3975 (gtkWidgetRequestFocus): New method.
3976 (gtkWidgetDispatchKeyEvent): Likewise.
3977 * java/awt/Component.java (requestFocus, requestFocus(boolean),
3978 requestFocusInWindow, requestFocusInWindow(boolean),
3979 getFocusCycleRootAncestor, nextFocus, transferFocus,
3980 transferFocusBackward, transferFocusUpCycle, hasFocus,
3981 isFocusOwner): Implement and document focus-handling methods.
3982 (setFocusTraversalKeys): Inherit focus traversal keys when
3983 keystrokes argument is null. Fix focus-handling documentation
3985 * java/awt/Container.java (setFocusTraversalKeys,
3986 getFocusTraversalKeys, areFocusTraversalKeysSet,
3987 isFocusCycleRoot, setFocusTraversalPolicy,
3988 getFocusTraversalPolicy, isFocusTraversalPolicySet,
3989 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
3990 Implement and document focus-handling methods.
3991 (transferFocusBackward): Remove method.
3992 (readObject, writeObject): Implement and document serialization
3994 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
3996 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
3998 * java/awt/DefaultKeyboardFocusManager.java: Implement and
4000 * java/awt/EventDispatchThread.java (run): Set default keyboard
4001 focus manager. Attempt to dispatch each event to the keyboard
4002 focus manager before normal dispatch.
4003 * java/awt/KeyboardFocusManager.java: Implement and partially
4005 * java/awt/Window.java (Window): Set focusCycleRoot to true.
4006 (show): Focus initial component when window is shown for the
4008 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
4009 (pre_event_handler): Replace complex key press and key release
4010 logic with simple callbacks into GtkComponentPeer.
4011 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
4013 2004-04-21 Olga Rodimina <rodimina@redhat.com>
4015 * javax/swing/MenuSelectionManager.java
4016 (componentForPoint): Added new method.
4017 (defaultManager): New Method. Implemented.
4018 (getSelectedPath): Ditto.
4019 (isComponentPartOfCurrentMenu): Ditto.
4020 (processKeyEvent): Added new method.
4021 (processMouseEvent): New Method. Implemented.
4022 (setSelectedPath): Ditto.
4025 2004-04-19 Kim Ho <kho@redhat.com>
4027 * java/awt/Container.java:
4028 (remove): Set the component's parent to null.
4029 (getComponentAt): Implement.
4030 * javax/swing/JComponent.java:
4031 (JComponent): Initialize defaultLocale
4032 (getDefaultLocale): Implement.
4033 (setDefaultLocale): ditto.
4034 * javax/swing/JSlider.java:
4035 (JSlider): Fix calculation of value.
4036 * javax/swing/JSplitPane.java: Implement.
4037 * javax/swing/plaf/basic/BasicLookAndFeel.java:
4038 Change SplitPane's default divider size.
4039 * javax/swing/plaf/basic/BasicScrollBarUI.java:
4040 (paint): Remove unused code.
4041 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
4042 Added comments and ran through jalopy.
4043 (setBasicSplitPaneUI): Get reference to hidden divider
4044 and set up one touch buttons if necessary.
4045 (setBorder): Fire propertyChangeEvent only if
4046 borders are different.
4047 (getPreferredSize): Defer to layout manager.
4048 (propertyChange): Implement.
4049 (oneTouchExpandableChanged): ditto.
4050 (createLeftOneTouchButton): Use BasicArrowButton.
4051 (createRightOneTouchButton): ditto.
4052 (moveDividerTo): New method. Moves the divider
4053 to a set location based on the last divider location.
4054 (BasicSplitPaneDivider::MouseHandler): Implement.
4055 (BasicSplitPaneDivider::OneTouchButton): Removed.
4056 (BasicSplitPaneDivider::DragController): Implement.
4057 (BasicSplitPaneDivider::VerticalDragController):
4059 (BasicSplitPaneDivider::DividerLayout): ditto.
4060 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
4061 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
4062 (calculateLayoutInfo): Don't show component if it's
4064 (paintTab): Fix title paint logic.
4066 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
4069 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
4070 (setStartRule,setEndRule): Don't take abs of day number.
4071 (getOffset): Clarify docs. Add argument checks.
4072 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
4073 (equals,hasSameRules,toString,readObject): Use startTimeMode and
4075 * testsuite/libjava.mauve/xfails
4076 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
4078 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
4080 Layout interfaces during preparation, not initialization.
4081 * java/lang/natClass.cc (initializeClass): Move
4082 _Jv_LayoutInterfaceMethods call...
4083 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
4085 2004-05-19 Anthony Green <green@localhost.localdomain>
4087 * Makefile.am (awt_java_source_files): Remove javax.rmi and
4089 * Makefile.in: Rebuilt.
4090 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
4091 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
4092 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
4093 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
4094 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
4095 gnu/javax/rmi/CORBA/DelegateFactory.java,
4096 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
4097 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
4098 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
4099 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
4100 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
4101 gnu/javax/rmi/PortableServer.java: Remove files.
4103 2004-05-19 Anthony Green <green@redhat.com>
4105 * Makefile.am: Define JAVA_EXT_DIRS.
4106 * Makefile.in: Rebuilt.
4107 * java/lang/natRuntime.cc (insertSystemProperties): Set
4108 java.ext.dirs property.
4110 2004-05-16 Mark Wielaard <mark@klomp.org>
4112 * java/io/Writer.java (Writer(Object)): Check for null lock object.
4114 2004-05-15 Mark Wielaard <mark@klomp.org>
4116 * doc/cni.sgml: Removed, merged into gcj.texi.
4118 2004-05-15 Mark Wielaard <mark@klomp.org>
4120 * Makefile.am (ordinary_java_source_files): Add new javax.print
4122 * Makefile.in: Regenerated.
4124 2004-05-15 Michael Koch <konqueror@gmx.de>
4126 * javax/print/attribute/standard/DateTimeAtCompleted.java,
4127 javax/print/attribute/standard/DateTimeAtCreation.java,
4128 javax/print/attribute/standard/DateTimeAtProcessing.java,
4129 javax/print/attribute/standard/DocumentName.java,
4130 javax/print/attribute/standard/JobHoldUntil.java,
4131 javax/print/attribute/standard/JobImpressionsCompleted.java,
4132 javax/print/attribute/standard/JobMessageFromOperator.java,
4133 javax/print/attribute/standard/JobName.java,
4134 javax/print/attribute/standard/JobOriginatingUserName.java,
4135 javax/print/attribute/standard/JobPriority.java,
4136 javax/print/attribute/standard/JobPrioritySupported.java,
4137 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4138 javax/print/attribute/standard/OutputDeviceAssigned.java,
4139 javax/print/attribute/standard/PrinterInfo.java,
4140 javax/print/attribute/standard/PrinterLocation.java,
4141 javax/print/attribute/standard/PrinterMakeAndModel.java,
4142 javax/print/attribute/standard/PrinterMessageFromOperator.java,
4143 javax/print/attribute/standard/PrinterName.java,
4144 javax/print/attribute/standard/QueuedJobCount.java,
4145 javax/print/attribute/standard/RequestingUserName.java:
4146 Fixed javadocs all over.
4148 2004-05-15 Michael Koch <konqueror@gmx.de>
4150 * javax/print/DocFlavor.java,
4151 javax/print/attribute/standard/ColorSupported.java,
4152 javax/print/attribute/standard/Compression.java,
4153 javax/print/attribute/standard/CopiesSupported.java,
4154 javax/print/attribute/standard/Fidelity.java,
4155 javax/print/attribute/standard/Finishings.java,
4156 javax/print/attribute/standard/JobImpressionsSupported.java,
4157 javax/print/attribute/standard/JobKOctetsSupported.java,
4158 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4159 javax/print/attribute/standard/JobSheets.java,
4160 javax/print/attribute/standard/JobState.java,
4161 javax/print/attribute/standard/JobStateReason.java,
4162 javax/print/attribute/standard/JobStateReasons.java,
4163 javax/print/attribute/standard/Media.java,
4164 javax/print/attribute/standard/MediaSizeName.java,
4165 javax/print/attribute/standard/MultipleDocumentHandling.java,
4166 javax/print/attribute/standard/NumberUpSupported.java,
4167 javax/print/attribute/standard/OrientationRequested.java,
4168 javax/print/attribute/standard/PDLOverrideSupported.java,
4169 javax/print/attribute/standard/PageRanges.java,
4170 javax/print/attribute/standard/PresentationDirection.java,
4171 javax/print/attribute/standard/PrintQuality.java,
4172 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4173 javax/print/attribute/standard/PrinterMoreInfo.java,
4174 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4175 javax/print/attribute/standard/PrinterResolution.java,
4176 javax/print/attribute/standard/PrinterState.java,
4177 javax/print/attribute/standard/PrinterStateReason.java,
4178 javax/print/attribute/standard/PrinterStateReasons.java,
4179 javax/print/attribute/standard/PrinterURI.java,
4180 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4181 javax/print/attribute/standard/Severity.java,
4182 javax/print/attribute/standard/SheetCollate.java,
4183 javax/print/attribute/standard/Sides.java:
4184 Added serialVersionUID and removed final keyword where it doenst
4187 2004-05-15 Michael Koch <konqueror@gmx.de>
4189 * javax/print/PrintServiceLookup.java: New file.
4191 2004-05-15 Michael Koch <konqueror@gmx.de>
4193 * javax/print/DocFlavor.java:
4194 Implemented all flavor classes.
4196 2004-05-15 Michael Koch <konqueror@gmx.de>
4198 * javax/print/attribute/standard/ColorSupported.java,
4199 javax/print/attribute/standard/Compression.java,
4200 javax/print/attribute/standard/CopiesSupported.java,
4201 javax/print/attribute/standard/Fidelity.java,
4202 javax/print/attribute/standard/Finishings.java,
4203 javax/print/attribute/standard/JobImpressionsSupported.java,
4204 javax/print/attribute/standard/JobKOctetsSupported.java,
4205 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4206 javax/print/attribute/standard/JobSheets.java,
4207 javax/print/attribute/standard/JobState.java,
4208 javax/print/attribute/standard/JobStateReason.java,
4209 javax/print/attribute/standard/JobStateReasons.java,
4210 javax/print/attribute/standard/Media.java,
4211 javax/print/attribute/standard/MediaSizeName.java,
4212 javax/print/attribute/standard/MultipleDocumentHandling.java,
4213 javax/print/attribute/standard/NumberUpSupported.java,
4214 javax/print/attribute/standard/OrientationRequested.java,
4215 javax/print/attribute/standard/PDLOverrideSupported.java,
4216 javax/print/attribute/standard/PageRanges.java,
4217 javax/print/attribute/standard/PresentationDirection.java,
4218 javax/print/attribute/standard/PrintQuality.java,
4219 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4220 javax/print/attribute/standard/PrinterMoreInfo.java,
4221 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4222 javax/print/attribute/standard/PrinterResolution.java,
4223 javax/print/attribute/standard/PrinterState.java,
4224 javax/print/attribute/standard/PrinterStateReason.java,
4225 javax/print/attribute/standard/PrinterStateReasons.java,
4226 javax/print/attribute/standard/PrinterURI.java,
4227 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4228 javax/print/attribute/standard/Severity.java,
4229 javax/print/attribute/standard/SheetCollate.java,
4230 javax/print/attribute/standard/Sides.java: New files.
4232 2004-05-15 Michael Koch <konqueror@gmx.de>
4234 * javax/print/Doc.java
4235 (getPrintData): Throws IOException.
4236 (getReaderForText): Likewise.
4237 (getStreamForBytes): Likewise.
4238 * javax/print/DocFlavor.java:
4239 Fixed filename in copyright.
4240 (serialVersionUID): New field.
4241 * javax/print/ServiceUIFactory.java:
4242 Made all constants final.
4243 * javax/print/AttributeException.java
4244 javax/print/MultiDoc.java
4245 javax/print/MultiDocPrintJob.java
4246 javax/print/MultiDocPrintService.java
4247 javax/print/StreamPrintService.java
4248 javax/print/URIException.java: New files.
4249 * javax/print/Makefile.am
4250 (EXTRA_DIST): Added all new files.
4252 2004-05-15 Michael Koch <konqueror@gmx.de>
4254 * javax/print/attribute/standard/Copies.java,
4255 javax/print/attribute/standard/DateTimeAtCompleted.java,
4256 javax/print/attribute/standard/DateTimeAtCreation.java,
4257 javax/print/attribute/standard/DateTimeAtProcessing.java,
4258 javax/print/attribute/standard/DocumentName.java,
4259 javax/print/attribute/standard/JobHoldUntil.java,
4260 javax/print/attribute/standard/JobImpressions.java,
4261 javax/print/attribute/standard/JobImpressionsCompleted.java,
4262 javax/print/attribute/standard/JobKOctets.java,
4263 javax/print/attribute/standard/JobKOctetsProcessed.java,
4264 javax/print/attribute/standard/JobMediaSheets.java,
4265 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
4266 javax/print/attribute/standard/JobMessageFromOperator.java,
4267 javax/print/attribute/standard/JobName.java,
4268 javax/print/attribute/standard/JobOriginatingUserName.java,
4269 javax/print/attribute/standard/JobPriority.java,
4270 javax/print/attribute/standard/JobPrioritySupported.java,
4271 javax/print/attribute/standard/NumberOfDocuments.java,
4272 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4273 javax/print/attribute/standard/NumberUp.java,
4274 javax/print/attribute/standard/OutputDeviceAssigned.java,
4275 javax/print/attribute/standard/PagesPerMinute.java,
4276 javax/print/attribute/standard/PagesPerMinuteColor.java:
4277 Fixed @return tag all over.
4279 2004-05-15 Michael Koch <konqueror@gmx.de>
4281 * javax/print/attribute/AttributeSetUtilities.java
4282 (verifyCategoryForValue): Fixed typo in javadoc.
4283 * javax/print/attribute/HashAttributeSet.java
4284 (containsKey): Fixed @return tag.
4285 (comtainsValue): Likewise.
4287 * javax/print/attribute/IntegerSyntax.java
4289 * javax/print/attribute/ResolutionSyntax.java
4291 (getCrossFeedResolution): Removed unused code.
4292 (getFeedResolution): Likewise.
4293 * javax/print/attribute/SetOfIntegerSyntax.java
4294 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
4295 (equals): Fixed @return tag.
4296 * javax/print/attribute/TextSyntax.java
4297 (TextSyntax): Take locale into account.
4298 (hashCode): Better implementation.
4300 2004-05-15 Michael Koch <konqueror@gmx.de>
4302 * javax/print/CancelablePrintJob.java,
4303 javax/print/Doc.java,
4304 javax/print/DocFlavor.java,
4305 javax/print/DocPrintJob.java,
4306 javax/print/FlavorException.java,
4307 javax/print/PrintException.java,
4308 javax/print/PrintService.java,
4309 javax/print/ServiceUIFactory.java: New files.
4311 2004-05-15 Mark Wielaard <mark@klomp.org>
4313 * gnu/regexp/CharIndexedReader.java: Removed.
4314 * gnu/regexp/REFilterReader.java: Likewise.
4315 * gnu/regexp/RETokenLookAhead.java: Likewise.
4316 * Makefile.am (ordinary_java_source_files): Remove above classes.
4317 * Makefile.in: Regenerated.
4319 2004-05-14 Tom Tromey <tromey@redhat.com>
4321 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
4322 not `XGraphicsConfiguration.XOffScreenImage'.
4324 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
4326 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
4328 2004-05-14 Steven Augart <augart@watson.ibm.com>
4330 * include/jni.h (_Jv_func): Removed.
4331 (struct JNINativeInterface): Use `void *' for reserved slots.
4332 (struct JNIInvokeInterface): Likewise.
4334 2004-05-11 Michael Koch <konqueror@gmx.de>
4336 * gnu/java/net/natPlainSocketImplPosix.cc
4337 (read): Fixed typo in expression.
4339 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
4341 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
4342 ld_library_additions. Adjust all calls to libjava_invoke to match
4345 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
4346 path to cxxflagslist.
4347 Pass path of libstdc++ to libjava_invoke.
4349 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
4350 libjava_invoke arguments.
4352 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
4354 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
4357 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
4359 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
4360 main binary against the JNI shared library.
4362 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4364 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
4365 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
4366 (SimpleTimeZone): Tweak docs. Add new variation.
4367 (setStartRule,setEndRule): Add new variations. Use
4368 startTimeMode and endTimeMode.
4370 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
4372 * java/util/Calendar.java (getActualMinimum,
4373 getActualMaximum): Remove abstract. Implement.
4375 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4377 Run the jni tests using the interpreter.
4378 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
4379 options_cxx to shared lib compile command.
4380 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
4381 they are used to link the shared lib, not the main binary.
4382 Use libjava_invoke to run gij.
4384 2004-05-06 Michael Koch <konqueror@gmx.de>
4386 * java/util/logging/Level.java
4387 (parse): Use == instead of String.equals().
4389 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4391 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
4392 verify_field_signature and verify_method_signature, not
4393 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
4394 (_Jv_ClassReader::handleField): Likewise.
4395 (_Jv_ClassReader::handleMethod): Likewise.
4397 2004-05-06 Michael Koch <konqueror@gmx.de>
4399 * javax/swing/table/TableColumn.java:
4402 2004-05-06 Michael Koch <konqueror@gmx.de>
4404 * javax/imageio/spi/ImageReaderWriterSpi.java
4405 (ImageReaderWriterSpi): Made it public.
4406 * javax/imageio/stream/ImageInputStream.java:
4409 2004-05-06 Michael Koch <konqueror@gmx.de>
4411 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4414 2004-05-06 Michael Koch <konqueror@gmx.de>
4416 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
4417 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
4419 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
4420 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
4421 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4422 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
4423 their own source file.
4424 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4425 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
4426 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
4427 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
4428 (create): Define variable on top of function.
4429 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
4430 (menu_pos): Prototyped.
4431 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4432 (setTitle): Removed.
4433 * jni/gtk-peer/gthread-jni.c
4434 (gdk_threads_wake): Removed.
4435 * Makefile.am (gtk_c_source_files): Added new files
4436 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
4437 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
4438 * Makefile.in: Regenerated.
4440 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
4442 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
4445 2004-05-05 Mark Wielaard <mark@klomp.org>
4447 * javax/swing/AbstractButton.java: Replace special HTML entities with
4449 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
4450 * javax/swing/DefaultButtonModel.java: Likewise.
4451 * javax/swing/DefaultListModel.java: Likewise.
4452 * javax/swing/JList.java: Likewise.
4453 * javax/swing/JSlider.java: Likewise.
4454 * javax/swing/ListModel.java: Likewise.
4455 * javax/swing/Popup.java: Likewise.
4456 * javax/swing/SwingUtilities.java: Likewise.
4458 2004-05-05 Michael Koch <konqueror@gmx.de>
4460 * javax/swing/AbstractButton.java,
4461 javax/swing/ActionMap.java,
4462 javax/swing/DefaultButtonModel.java,
4463 javax/swing/DefaultListModel.java,
4464 javax/swing/ImageIcon.java,
4465 javax/swing/JComboBox.java,
4466 javax/swing/JComponent.java,
4467 javax/swing/JFrame.java,
4468 javax/swing/JInternalFrame.java,
4469 javax/swing/JMenuBar.java,
4470 javax/swing/JMenuItem.java,
4471 javax/swing/JOptionPane.java,
4472 javax/swing/JProgressBar.java,
4473 javax/swing/JRootPane.java,
4474 javax/swing/JScrollBar.java,
4475 javax/swing/JScrollPane.java,
4476 javax/swing/JSeparator.java,
4477 javax/swing/JSlider.java,
4478 javax/swing/JTabbedPane.java,
4479 javax/swing/JTable.java,
4480 javax/swing/JTextField.java,
4481 javax/swing/JToolBar.java,
4482 javax/swing/JToolTip.java,
4483 javax/swing/JTree.java,
4484 javax/swing/JViewport.java,
4485 javax/swing/JWindow.java,
4486 javax/swing/KeyStroke.java,
4487 javax/swing/LookAndFeel.java,
4488 javax/swing/SwingUtilities.java,
4489 javax/swing/Timer.java,
4490 javax/swing/ToolTipManager.java,
4491 javax/swing/UIDefaults.java,
4492 javax/swing/border/TitledBorder.java,
4493 javax/swing/filechooser/FileSystemView.java,
4494 javax/swing/plaf/basic/BasicButtonListener.java,
4495 javax/swing/plaf/basic/BasicButtonUI.java,
4496 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
4497 javax/swing/plaf/basic/BasicGraphicsUtils.java,
4498 javax/swing/plaf/basic/BasicLabelUI.java,
4499 javax/swing/plaf/basic/BasicMenuItemUI.java,
4500 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
4501 javax/swing/plaf/basic/BasicRootPaneUI.java,
4502 javax/swing/plaf/basic/BasicScrollBarUI.java,
4503 javax/swing/plaf/basic/BasicScrollPaneUI.java,
4504 javax/swing/plaf/basic/BasicSliderUI.java,
4505 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
4506 javax/swing/plaf/basic/BasicToggleButtonUI.java,
4507 javax/swing/table/JTableHeader.java,
4508 javax/swing/text/AbstractDocument.java,
4509 javax/swing/text/DefaultCaret.java,
4510 javax/swing/text/StyledEditorKit.java,
4511 javax/swing/tree/DefaultTreeCellEditor.java:
4514 2004-05-05 Michael Koch <konqueror@gmx.de>
4516 * java/util/prefs/AbstractPreferences.java
4517 (AbstractPreferences): Added parenthesis for clarity.
4518 Closes classpath bug #7940.
4520 2004-05-05 Tom Tromey <tromey@redhat.com>
4522 * javax/naming/CompoundName.java (endsWith): Look at correct
4523 element of source name.
4525 2004-05-05 Mark Wielaard <mark@klomp.org>
4527 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
4528 * java/util/HashMap.java (rehash): Add entry at start of bucket.
4530 2004-05-05 Tom Tromey <tromey@redhat.com>
4532 * java/io/BufferedReader.java (skip): Removed unused
4535 2004-05-05 Michael Koch <konqueror@gmx.de>
4537 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
4539 2004-05-05 Dalibor Topic <robilad@kaffe.org>
4541 * java/text/AttributedString.java,
4542 java/text/AttributedStringIterator.java,
4543 java/text/Collator.java,
4544 java/text/DecimalFormatSymbols.java,
4545 java/text/NumberFormat.java,
4546 java/text/RuleBasedCollator.java:
4549 2004-05-05 Tom Tromey <tromey@redhat.com>
4551 * java/text/Format.java: Cleaned up imports.
4552 * java/text/DecimalFormat.java: Cleaned up imports.
4553 * java/security/SecureRandom.java: Cleaned up imports.
4554 (SecureRandom): Removed unused variable.
4555 * java/security/UnresolvedPermission.java: Cleaned up imports.
4556 * java/util/Date.java (parse): Removed unused variable.
4557 * java/util/ResourceBundle.java: Cleaned up imports.
4558 (getBundle): Removed unused variable.
4559 (tryBundle): Likewise.
4560 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
4562 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4564 * java/text/SimpleDateFormat.java:
4565 (formatWithAttribute): New method. It implements
4566 the formatting process with attributes.
4567 (format): Use formatWithAttribute.
4568 (formatToCharacterIterator): New method. Use
4569 formatWithAttribute.
4571 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4573 * java/text/MessageFormat.java:
4574 (class Field): New class.
4575 (formatToCharacterIterator): New method.
4576 (format): Use formatInternal now.
4577 (formatInternal): New method. String formatter should
4578 be done here (with attributes). Attributes merging supported.
4579 (parse): More documentation.
4580 (getFormatsByArgumentIndex): New method.
4581 (setFormatByArgumentIndex): New method.
4582 (setFormatsByArgumentIndex): New method.
4584 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4586 * java/text/DecimalFormat.java
4587 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
4588 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
4589 (parse): Fixed handling of exponentiation notation and grouping.
4591 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4593 * java/text/DecimalFormat.java
4594 (scanFix): Build attribute array. Fixed error reporting.
4595 (applyPatternWithSymbols): Store attributes for the prefix and
4597 (formatInternal): New method. Changed the way the string is
4598 computed. Implemented attributes. Cleant up rounding in
4599 exponential notation.
4600 (format): Use formatInternal.
4601 (formatToCharacterIterator): New method.
4602 (exponentRound, negativePrefixRanges, positivePrefixRanges,
4603 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
4604 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
4607 2004-05-04 Dalibor Topic <robilad@kaffe.org>
4609 * java/security/interfaces/DSAKeyPairGenerator.java,
4610 java/security/interfaces/DSAPrivateKey.java,
4611 java/security/interfaces/DSAPublicKey.java,
4612 java/security/interfaces/RSAPrivateKey.java,
4613 java/security/interfaces/RSAPublicKey.java:
4616 2004-05-04 Michael Koch <konqueror@gmx.de>
4618 * java/nio/ByteBuffer.java,
4619 java/nio/CharBuffer.java,
4620 java/nio/DoubleBuffer.java,
4621 java/nio/FloatBuffer.java,
4622 java/nio/IntBuffer.java,
4623 java/nio/LongBuffer.java,
4624 java/nio/ShortBuffer.java:
4625 (compareTo): Fixed bogus implementation in all buffer classes.
4627 2004-05-04 Ingo Proetel <proetel@aicas.com>
4629 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
4630 32 bit pixels not 8 bit pixels.
4631 (isCompatibleRaster): Added javadoc comment.
4633 2004-05-04 Ingo Proetel <proetel@aicas.com>
4635 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
4638 2004-05-04 Ingo Proetel <proetel@aicas.com>
4640 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
4641 (getColorModel): Return the actual color model.
4642 (getRaster): Implemented.
4643 (ColorRaster): New inner class.
4644 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
4646 * java/awt/Color.java (<init>): Make exception more verbose.
4647 (createContext): Use ColorModel when creating a PaintContext.
4649 2004-05-04 Michael Koch <konqueror@gmx.de>
4651 * gnu/java/text/CharacterBreakIterator.java
4652 (previous): Removed unused variable.
4654 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
4656 * gnu/java/text/FormatBuffer.java,
4657 gnu/java/text/AttributedFormatBuffer.java,
4658 gnu/java/text/StringFormatBuffer.java: New classes to implement
4659 attributed iterators in java.text.
4660 * gnu/java/text/FormatCharacterIterator.java: Moved
4661 from java/text as it is an internal class.
4662 * java/text/FormatCharacterIterator.java: Removed.
4663 * java/text/Format.java:
4664 Import gnu.java.text.FormatCharacterIterator.
4665 * Makefile.am (java_source_files): Added new files.
4666 * Makefile.in: Regenerated.
4669 2004-05-04 Mark Wielaard <mark@klomp.org>
4671 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
4673 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
4675 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
4676 * Makefile.in: Rebuilt.
4678 2004-05-03 Mark Wielaard <mark@klomp.org>
4680 * gnu/java/security/der/DERReader.java: Call static methods staticly.
4681 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
4683 (set(String, String, int, String, String, String, String, String)):
4684 Assign this.file to path or path + "?" + query.
4685 * java/util/Arrays.java: Call static methods staticly.
4686 * java/util/zip/ZipEntry.java: Likewise.
4687 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
4688 dir to this.direction.
4689 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
4690 Assign static field only once.
4691 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
4693 2004-05-03 Mark Wielaard <mark@klomp.org>
4695 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
4696 unused variables hScrollbarHeight and vScrollbarWidth.
4697 (preferredSize): Likewise.
4698 * gnu/java/security/provider/DSAParameters.java (engineToString):
4699 Removed unused call to System.getProperty("line.seperator");
4700 * java/security/Security.java (loadProviders): Return result.
4702 2004-05-03 Tom Tromey <tromey@redhat.com>
4704 * java/net/URLStreamHandler.java (toExternalForm): Removed
4707 * java/math/BigDecimal.java (divide): Removed unused variable.
4708 * java/lang/Throwable.java: Cleaned up imports.
4709 * java/lang/ClassLoader.java: Cleaned up imports.
4710 * java/io/FilePermission.java (implies): Removed unused
4712 * java/awt/TextComponent.java: Removed unused import.
4713 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
4714 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
4715 * gnu/java/text/WordBreakIterator.java: Removed unused import.
4716 * gnu/java/text/SentenceBreakIterator.java: Removed unused
4718 * gnu/java/text/LineBreakIterator.java: Removed unused import.
4719 * gnu/java/text/CharacterBreakIterator.java: Removed
4721 * gnu/java/security/provider/DSAKeyPairGenerator.java:
4723 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
4724 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
4726 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
4727 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
4728 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
4729 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
4730 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
4731 (lookupProviders): Removed unused variable.
4732 (loadNextServiceProvider): Likewise.
4733 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
4735 2004-05-03 Michael Koch <konqueror@gmx.de>
4737 Fixes PR libgcj/14695:
4738 * java/net/NetworkInterface.java
4739 (getByName): Return null when no interface was found.
4741 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
4742 Tom Tromey <tromey@redhat.com>
4744 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
4745 additional option "-Wmissing-prototypes" for compiling C sources.
4746 Print actual filename for pass/fail rather than $name.c.
4747 * testsuite/libjava.jni/PR15133.java: New testcase file.
4748 * testsuite/libjava.jni/PR15133.c: Likewise.
4749 * testsuite/libjava.jni/PR15133.out: Likewise.
4751 2004-04-30 Roger Sayle <roger@eyesopen.com>
4753 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
4756 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
4758 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
4759 limit the maximum heap size to avoid unnecessary thrashing.
4761 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
4763 * java/text/CollationElementIterator.java (reset): Reset
4764 lookahead variables.
4766 2004-04-23 Mark Wielaard <mark@klomp.org>
4768 * jni/classpath/jcl.c: Changed C++ comments into C comments.
4770 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4772 * java/sql/DriverManager.java:
4775 2004-04-23 Michael Koch <konqueror@gmx.de>
4778 (hashcode): Don't initialize with default value explicitely.
4779 (getContent): Removed redundant "final" keyword.
4780 (openStream): Likewise.
4781 (getURLStreamHandler): Fixed coding style.
4782 * java/net/URLConnection.java
4783 (defaultAllowUserInteraction): Don't initialize with default value
4785 (connected): Likewise.
4786 (doOutput): Likewise.
4787 (ifModifiedSince): Likewise.
4788 (dateformats_initialized): Likewise.
4789 (setURLStreamHander): Use StreamTokenizer where it belongs to.
4791 2004-04-23 Michael Koch <konqueror@gmx.de>
4793 * gnu/java/nio/channels/FileChannelImpl.java
4794 (SET, CUR): Unused, removed.
4795 (read): Implement here directly.
4796 (implRead): Removed.
4797 (write): Implement here directly.
4798 (implWrite): Removed.
4800 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4802 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
4803 javax/rmi/CORBA/Stub.java,
4804 javax/rmi/CORBA/Util.java,
4805 javax/rmi/CORBA/ValueHandler.java,
4806 javax/rmi/CORBA/ValueHandler.java,
4807 javax/rmi/PortableRemoteObject.java:
4810 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4812 * java/util/jar/JarFile.java,
4813 java/util/jar/JarInputStream.java,
4814 java/util/jar/JarOutputStream.java,
4815 java/util/jar/Manifest.java:
4818 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4820 * java/util/ArrayList.java,
4821 java/util/Calendar.java,
4822 java/util/Currency.java,
4823 java/util/HashMap.java,
4824 java/util/HashSet.java,
4825 java/util/Hashtable.java,
4826 java/util/LinkedList.java,
4827 java/util/Properties.java,
4828 java/util/PropertyPermission.java,
4829 java/util/TimeZone.java,
4830 java/util/TreeMap.java,
4831 java/util/TreeSet.java,
4832 java/util/Vector.java,
4833 java/util/WeakHashMap.java:
4836 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4838 * java/util/logging/FileHandler.java,
4839 java/util/logging/Formatter.java,
4840 java/util/logging/Handler.java,
4841 java/util/logging/Logger.java,
4842 java/util/logging/SimpleFormatter.java,
4843 java/util/logging/XMLFormatter.java:
4846 2004-04-22 Mark Wielaard <mark@klomp.org>
4848 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
4849 -Wno-long-long flags variable.
4850 (gtk_c_files): Use PEDANTIC_CFLAGS.
4851 * Makefile.in: Regenerated.
4853 2004-04-22 Mark Wielaard <mark@klomp.org>
4855 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4856 Changed C++ comments into C comments.
4857 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
4860 2004-04-22 Michael Koch <konqueror@gmx.de>
4862 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
4863 Merged copyright year with GNU classpath.
4865 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4867 * javax/security/auth/x500/X500Principal.java:
4870 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4872 * javax/swing/JSlider.java:
4873 Fixed HTML tags in comments.
4875 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4877 * javax/accessibility/AccessibleText.java:
4880 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
4882 * java/net/URLStreamHandler.java
4883 (parseURL): Convert the file path to using '/' instead of native
4886 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
4889 (userInfo): New field.
4890 (URL): Set authority to the right value.
4891 (setURL): Fixed authority and file initialization.
4892 * java/net/URLStreamHandler.java
4893 (parseURL): Take care of the query tag. Build authority.
4894 (toExternalForm): Fixed URL building using authority.
4896 2004-04-22 Michael Koch <konqueror@gmx.de>
4898 * java/net/Socket.java
4899 (impl): Made package-private.
4900 * java/net/ServerSocket.java
4901 (implAccept): Access Socket.impl field directly.
4903 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4905 * java/util/prefs/Preferences.java,
4906 java/util/prefs/InvalidPreferencesFormatException.java,
4907 java/util/prefs/BackingStoreException.java,
4908 java/util/prefs/AbstractPreferences.java:
4911 2004-04-22 Dalibor Topic <robilad@kaffe.org>
4913 * java/util/regex/Matcher.java,
4914 java/util/regex/Pattern.java:
4917 2004-04-22 Michael Koch <konqueror@gmx.de>
4919 * java/nio/charset/IllegalCharsetNameException.java
4920 (charsetName): Made private.
4921 (IllegalCharsetNameException): Added @param tag to javadoc.
4922 (getCharsetName): Added @return tag to javadoc.
4923 * java/nio/charset/MalformedInputException.java
4924 (MalformedInputException): Added @param tag to javadoc.
4925 (getInputLength): Revised method description, added @return tag.
4926 (getMessage): Added @return tag.
4928 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
4930 * java/awt/Font.java (deriveFont): Implement missing variants.
4931 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
4934 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
4936 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
4937 Set method->index values for interface methods to their itable index.
4938 (initializeClass): Call _Jv_LayoutInterfaceMethods.
4940 2004-04-21 Michael Koch <konqueror@gmx.de>
4942 * java/nio/DirectByteBufferImpl.java
4943 (shiftDown): Made static, give address as argument and
4944 provide a convenience method that overwrites shiftDown in
4945 ByteBufferImpl and calls the native shiftDown.
4946 * java/nio/MappedByteBufferImpl.java
4947 (): Use optimized method in DirectByteBufferImpl.
4948 * java/nio/natDirectByteBufferImpl.cc
4949 (shiftDown): Changed method signature. Removed usage of array_offset.
4951 2004-04-21 Michael Koch <konqueror@gmx.de>
4953 * gnu/java/net/natPlainSocketImplPosix.cc
4954 (SocketInputStream::read): Make sure returned data is a byte value.
4956 2004-04-21 Michael Koch <konqueror@gmx.de>
4958 * gnu/classpath/ServiceFactory.java,
4959 gnu/classpath/ServiceProviderLoadingAction.java,
4960 javax/imageio/ImageReader.java,
4961 javax/imageio/ImageTranscoder.java,
4962 javax/imageio/ImageWriter.java,
4963 javax/imageio/package.html,
4964 javax/imageio/spi/IIOServiceProvider.java,
4965 javax/imageio/spi/ImageInputStreamSpi.java,
4966 javax/imageio/spi/ImageOutputStreamSpi.java,
4967 javax/imageio/spi/ImageReaderWriterSpi.java,
4968 javax/imageio/spi/ImageTranscoderSpi.java,
4969 javax/imageio/spi/RegisterableService.java,
4970 javax/imageio/spi/ServiceRegistry.java,
4971 javax/imageio/spi/package.html,
4972 javax/imageio/stream/IIOByteBuffer.java,
4973 javax/imageio/stream/ImageInputStream.java,
4974 javax/imageio/stream/ImageOutputStream.java,
4975 javax/imageio/stream/package.html:
4978 (ordinary_java_source_files): Added
4979 gnu/classpath/ServiceFactory.java and
4980 gnu/classpath/ServiceProviderLoadingAction.java.
4981 (javax_source_files): Added
4982 javax/imageio/ImageReader.java,
4983 javax/imageio/ImageTranscoder.java,
4984 javax/imageio/ImageWriter.java,
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/stream/IIOByteBuffer.java,
4993 javax/imageio/stream/ImageInputStream.java and
4994 javax/imageio/stream/ImageOutputStream.java.
4995 * Makefile.in: Regenerated.
4997 2004-04-21 Michael Koch <konqueror@gmx.de>
4999 * java/util/Properties.java
5000 (load): Fix wrongly merged fix.
5002 2004-04-21 Mark Wielaard <mark@klomp.org>
5004 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
5005 malloc and free buf.
5007 2004-04-21 Dalibor Topic <robilad@kaffe.org>
5009 * javax/naming/AuthenticationException.java,
5010 javax/naming/AuthenticationNotSupportedException.java,
5011 javax/naming/CannotProceedException.java,
5012 javax/naming/CommunicationException.java,
5013 javax/naming/CompoundName.java,
5014 javax/naming/ConfigurationException.java,
5015 javax/naming/ContextNotEmptyException.java,
5016 javax/naming/InitialContext.java,
5017 javax/naming/InsufficientResourcesException.java,
5018 javax/naming/InterruptedNamingException.java,
5019 javax/naming/LimitExceededException.java,
5020 javax/naming/LinkException.java,
5021 javax/naming/LinkLoopException.java,
5022 javax/naming/LinkRef.java,
5023 javax/naming/MalformedLinkException.java,
5024 javax/naming/Name.java,
5025 javax/naming/NameAlreadyBoundException.java,
5026 javax/naming/NameNotFoundException.java,
5027 javax/naming/NamingSecurityException.java,
5028 javax/naming/NoInitialContextException.java,
5029 javax/naming/NoPermissionException.java,
5030 javax/naming/NotContextException.java,
5031 javax/naming/PartialResultException.java,
5032 javax/naming/ReferralException.java,
5033 javax/naming/ServiceUnavailableException.java,
5034 javax/naming/SizeLimitExceededException.java,
5035 javax/naming/TimeLimitExceededException.java,
5036 javax/naming/directory/Attribute.java,
5037 javax/naming/directory/Attributes.java,
5038 javax/naming/directory/SearchResult.java,
5039 javax/naming/event/NamingExceptionEvent.java,
5040 javax/naming/spi/ResolveResult.java:
5043 2004-04-21 Mark Wielaard <mark@klomp.org>
5045 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
5046 Changed C++ comments into C comments. Removed commented out code.
5047 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5049 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
5051 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
5053 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
5055 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
5057 * native/jni/gtk-peer/gthread-jni.c:
5060 2004-04-21 Mark Wielaard <mark@klomp.org>
5062 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
5063 static fields defined in interface.
5064 * javax/awt/JDialog.java: Likewise.
5065 (JDialog): Make constructors public.
5066 (getDefaultCloseOperation): Make public.
5067 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
5068 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
5069 * javax/swing/JViewport.java (JViewport): Make constructor public.
5071 2004-04-21 Michael Koch <konqueror@gmx.de>
5073 * java/util/Map.java
5074 (Entry): Removed redundant "static" modifier.
5075 * java/text/AttributedCharacterIterator.java:
5076 Updated copyright year.
5078 2004-04-20 Michael Koch <konqueror@gmx.de>
5080 * javax/naming/directory/SearchControls.java:
5081 Don't explicitely extend java.lang.Object.
5082 * javax/naming/spi/DirStateFactory.java:
5083 Merged copyright year with GNU classpath.
5085 2004-04-20 Michael Koch <konqueror@gmx.de>
5087 * java/nio/channels/Channels.java:
5088 Merged coding style with GNU classpath.
5090 2004-04-20 Michael Koch <konqueror@gmx.de>
5092 * java/net/ServerSocket.java
5093 Merged coding style from GNU classpath.
5095 2004-04-20 Michael Koch <konqueror@gmx.de>
5097 * java/io/BufferedWriter.java:
5098 Reordered variables to be at top of the class.
5099 (localFlush): Removed redundant final keyword.
5101 2004-04-20 Ingo Proetel <proetel@aicas.com>
5103 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
5105 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5107 * java/text/DecimalFormat.java (scanFix): Removed suffix check
5108 for percent and permill check.
5110 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5112 * java/text/FieldPosition.java
5113 (FieldPosition) Constructor now behaves as it should according
5114 to the java documentation.
5116 2004-04-20 Mark Wielaard <mark@klomp.org>
5118 * java/util/Properties.java: Use the word umlaut, not ä in api
5121 2004-04-20 Michael Koch <konqueror@gmx.de>
5123 * java/nio/Buffer.java,
5124 java/nio/channels/AlreadyConnectedException.java,
5125 java/nio/channels/AsynchronousCloseException.java,
5126 java/nio/channels/ByteChannel.java,
5127 java/nio/channels/CancelledKeyException.java,
5128 java/nio/channels/Channel.java,
5129 java/nio/channels/Channels.java,
5130 java/nio/channels/ClosedByInterruptException.java,
5131 java/nio/channels/ClosedChannelException.java,
5132 java/nio/channels/ClosedSelectorException.java,
5133 java/nio/channels/ConnectionPendingException.java,
5134 java/nio/channels/DatagramChannel.java,
5135 java/nio/channels/FileChannel.java,
5136 java/nio/channels/FileLock.java,
5137 java/nio/channels/FileLockInterruptionException.java,
5138 java/nio/channels/GatheringByteChannel.java,
5139 java/nio/channels/IllegalBlockingModeException.java,
5140 java/nio/channels/IllegalSelectorException.java,
5141 java/nio/channels/InterruptibleChannel.java,
5142 java/nio/channels/NoConnectionPendingException.java,
5143 java/nio/channels/NonReadableChannelException.java,
5144 java/nio/channels/NonWritableChannelException.java,
5145 java/nio/channels/NotYetBoundException.java,
5146 java/nio/channels/NotYetConnectedException.java,
5147 java/nio/channels/OverlappingFileLockException.java,
5148 java/nio/channels/Pipe.java,
5149 java/nio/channels/ReadableByteChannel.java,
5150 java/nio/channels/ScatteringByteChannel.java,
5151 java/nio/channels/SelectableChannel.java,
5152 java/nio/channels/SelectionKey.java,
5153 java/nio/channels/Selector.java,
5154 java/nio/channels/ServerSocketChannel.java,
5155 java/nio/channels/SocketChannel.java,
5156 java/nio/channels/UnresolvedAddressException.java,
5157 java/nio/channels/UnsupportedAddressTypeException.java,
5158 java/nio/channels/WritableByteChannel.java,
5159 java/nio/channels/spi/AbstractInterruptibleChannel.java,
5160 java/nio/channels/spi/AbstractSelectableChannel.java,
5161 java/nio/channels/spi/AbstractSelectionKey.java,
5162 java/nio/channels/spi/AbstractSelector.java,
5163 java/nio/channels/spi/SelectorProvider.java,
5164 java/nio/charset/spi/CharsetProvider.java:
5165 Fixed javadocs and jalopied all over java.nio.
5167 2004-04-20 Michael Koch <konqueror@gmx.de>
5169 * java/nio/ByteBufferImpl.java,
5170 java/nio/CharBufferImpl.java,
5171 java/nio/DirectByteBufferImpl.java,
5172 java/nio/DoubleBufferImpl.java,
5173 java/nio/DoubleViewBufferImpl.java,
5174 java/nio/FloatBufferImpl.java,
5175 java/nio/FloatViewBufferImpl.java,
5176 java/nio/IntBufferImpl.java,
5177 java/nio/IntViewBufferImpl.java,
5178 java/nio/LongBufferImpl.java,
5179 java/nio/LongViewBufferImpl.java,
5180 java/nio/MappedByteBufferImpl.java,
5181 java/nio/ShortBufferImpl.java,
5182 java/nio/ShortViewBufferImpl.java:
5183 Made sure all classes are final and removed final keyword from all
5186 2004-04-20 Michael Koch <konqueror@gmx.de>
5188 * java/rmi/MarshalledObject.java,
5189 java/rmi/Naming.java,
5190 java/rmi/RemoteException.java,
5191 java/rmi/activation/ActivationException.java,
5192 java/rmi/server/ServerCloneException.java,
5193 java/security/AccessController.java,
5194 java/security/AlgorithmParameterGenerator.java,
5195 java/security/AlgorithmParameters.java,
5196 java/security/CodeSource.java,
5197 java/security/Identity.java,
5198 java/security/IdentityScope.java,
5199 java/security/KeyPairGenerator.java,
5200 java/security/KeyStore.java,
5201 java/security/Security.java,
5202 java/security/Signature.java,
5203 java/security/SignatureSpi.java,
5204 java/security/SignedObject.java,
5205 java/security/spec/DSAParameterSpec.java,
5206 java/security/spec/DSAPrivateKeySpec.java,
5207 java/security/spec/DSAPublicKeySpec.java,
5208 java/sql/Array.java,
5209 java/sql/DatabaseMetaData.java,
5210 java/sql/ResultSet.java,
5211 java/text/ChoiceFormat.java,
5212 java/text/CollationElementIterator.java,
5213 java/text/CollationKey.java,
5214 java/text/Collator.java,
5215 java/text/DateFormat.java,
5216 java/text/DateFormatSymbols.java,
5217 java/text/DecimalFormatSymbols.java,
5218 java/text/Format.java,
5219 java/text/ParsePosition.java,
5220 java/text/RuleBasedCollator.java,
5221 java/text/SimpleDateFormat.java,
5222 java/text/StringCharacterIterator.java,
5223 java/util/Collections.java,
5224 java/util/PropertyResourceBundle.java,
5225 java/util/ResourceBundle.java,
5226 java/util/StringTokenizer.java,
5227 java/util/jar/Attributes.java,
5228 java/util/logging/ConsoleHandler.java,
5229 java/util/logging/LogManager.java,
5230 java/util/logging/MemoryHandler.java,
5231 java/util/logging/SocketHandler.java,
5232 javax/naming/NamingException.java:
5233 Fixed javadoc, coding style and argument names all over.
5235 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
5237 * java/io/FileDescriptor.java: (FileDescriptor) Added public
5238 constructor. (valid) Added null check.
5240 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5242 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
5243 * java/io/FileOutputStream.java
5244 (FileOutputStream) Reorganized constructors. Constructors now
5245 check whether the given path is directory.
5247 2004-04-20 Michael Koch <konqueror@gmx.de>
5249 * java/net/Authenticator.java,
5250 java/net/BindException.java,
5251 java/net/ConnectException.java,
5252 java/net/ContentHandler.java,
5253 java/net/ContentHandlerFactory.java,
5254 java/net/DatagramPacket.java,
5255 java/net/DatagramSocket.java,
5256 java/net/DatagramSocketImpl.java,
5257 java/net/DatagramSocketImplFactory.java,
5258 java/net/FileNameMap.java,
5259 java/net/HttpURLConnection.java,
5260 java/net/Inet4Address.java,
5261 java/net/Inet6Address.java,
5262 java/net/InetAddress.java,
5263 java/net/InetSocketAddress.java,
5264 java/net/JarURLConnection.java,
5265 java/net/MalformedURLException.java,
5266 java/net/MulticastSocket.java,
5267 java/net/NetPermission.java,
5268 java/net/NetworkInterface.java,
5269 java/net/NoRouteToHostException.java,
5270 java/net/PasswordAuthentication.java,
5271 java/net/PortUnreachableException.java,
5272 java/net/ProtocolException.java,
5273 java/net/ServerSocket.java,
5274 java/net/Socket.java,
5275 java/net/SocketAddress.java,
5276 java/net/SocketException.java,
5277 java/net/SocketImpl.java,
5278 java/net/SocketImplFactory.java,
5279 java/net/SocketOptions.java,
5280 java/net/SocketPermission.java,
5281 java/net/SocketTimeoutException.java,
5283 java/net/URISyntaxException.java,
5285 java/net/URLClassLoader.java,
5286 java/net/URLConnection.java,
5287 java/net/URLDecoder.java,
5288 java/net/URLEncoder.java,
5289 java/net/URLStreamHandler.java,
5290 java/net/URLStreamHandlerFactory.java,
5291 java/net/UnknownHostException.java,
5292 java/net/UnknownServiceException.java:
5293 Fixed javadocs, coding style and argument names all over.
5295 2004-04-20 Michael Koch <konqueror@gmx.de>
5297 * java/lang/Byte.java,
5298 java/lang/CharSequence.java,
5299 java/lang/ClassLoader.java,
5300 java/lang/Compiler.java,
5301 java/lang/Double.java,
5302 java/lang/Float.java,
5303 java/lang/Integer.java,
5304 java/lang/Long.java,
5305 java/lang/Math.java,
5306 java/lang/Number.java,
5307 java/lang/Package.java,
5308 java/lang/Runtime.java,
5309 java/lang/RuntimePermission.java,
5310 java/lang/SecurityManager.java,
5311 java/lang/Short.java,
5312 java/lang/StringBuffer.java,
5313 java/lang/System.java,
5314 java/lang/ThreadGroup.java,
5315 java/lang/Throwable.java,
5316 java/lang/reflect/InvocationHandler.java,
5317 java/lang/reflect/Proxy.java:
5318 Fixed javadocs, coding style and argument names all over.
5320 2004-04-20 Michael Koch <konqueror@gmx.de>
5322 * java/io/BufferedWriter.java,
5323 java/io/ByteArrayInputStream.java,
5324 java/io/CharArrayWriter.java,
5325 java/io/DataInput.java,
5326 java/io/DataInputStream.java,
5328 java/io/FilterInputStream.java,
5329 java/io/InputStream.java,
5330 java/io/InputStreamReader.java,
5331 java/io/ObjectInputStream.java,
5332 java/io/ObjectStreamClass.java,
5333 java/io/PipedInputStream.java,
5334 java/io/PipedReader.java,
5335 java/io/PushbackInputStream.java,
5336 java/io/PushbackReader.java,
5337 java/io/RandomAccessFile.java,
5338 java/io/SerializablePermission.java,
5339 java/io/StreamTokenizer.java,
5340 java/io/StringWriter.java,
5341 java/io/WriteAbortedException.java,
5342 java/io/Writer.java:
5343 Fixed javadocs all over, rename arguments to match javadocs,
5346 2004-04-20 Ingo Proetel <proetel@aicas.com>
5348 * java/awt/FontMetrics.java:
5349 (charsWidth): fixed accumulation of total_width
5350 (getWidth): simple default implementation
5351 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
5352 in Rectangle constructor.
5353 * java/awt/image/Raster.java (toString): Added method.
5354 * java/awt/image/SampleModel.java (<init>): Added error cause
5355 information to thrown exception.
5356 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
5358 (setDataElements): New method.
5359 (setPixels): New method.
5360 (toString): New method.
5362 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5364 * java/awt/image/ComponentColorModel.java
5365 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
5366 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
5367 Mauve tests on this method. Improved documentation.
5369 2004-04-20 Michael Koch <konqueror@gmx.de>
5371 * javax/swing/JLayeredPane.java,
5372 javax/swing/plaf/BorderUIResource.java,
5373 javax/swing/plaf/ComponentUI.java,
5374 javax/swing/undo/CompoundEdit.java,
5375 javax/swing/undo/StateEdit.java:
5376 Fixed HTML tags in javadocs all over.
5378 2004-04-20 Michael Koch <konqueror@gmx.de>
5380 * javax/print/attribute/EnumSyntax.java
5381 (getOffset): Made protected.
5382 * javax/print/attribute/HashAttributeSet.java
5383 (HashAttributeSet): Likewise.
5384 * javax/print/attribute/ResolutionSyntax.java
5385 (getFeedResolution): Fixed typo in exception name.
5386 (getCrossFeedResolution): Likewise.
5387 * javax/print/attribute/SetOfIntegerSyntax.java
5388 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
5389 * javax/print/attribute/TextSyntax.java
5390 (TextSyntax): Handle locale correctly.
5391 (hashCode): Calc better hashcode value.
5392 (equals): Fixed @return tag.
5393 (toString): New method.
5395 2004-04-20 Michael Koch <konqueror@gmx.de>
5397 * gnu/java/nio/FileLockImpl.java
5398 (static): Removed, not needed anymore.
5399 * gnu/java/nio/channels/FileChannelImpl.java
5400 (FileChannelImpl): Made final.
5401 (mode): Made private.
5402 (READ, WRITE, APPEND): Made public.
5403 (EXCL, SYNC, DSYNC): Likewise.
5404 (static): Load native JNI library, when needed.
5405 (length): Unused, removed.
5406 (available): Made public.
5407 (implPosition): Throws IOException.
5409 (implTruncate): Likewise.
5413 2004-04-20 Michael Koch <konqueror@gmx.de>
5415 * java/awt/AWTPermission.java,
5416 java/awt/Component.java,
5417 java/awt/ComponentOrientation.java,,
5418 java/awt/Dialog.java,
5419 java/awt/FontMetrics.java,
5420 java/awt/Graphics.java,
5421 java/awt/datatransfer/DataFlavor.java,
5422 java/beans/Introspector.java,
5423 java/beans/PropertyEditor.java,
5424 java/beans/PropertyEditorManager.java,
5425 java/beans/beancontext/BeanContextServiceProvider.java:
5426 Fixed HTML tags in javadocs all over.
5428 2004-04-20 Mark Wielaard <mark@klomp.org>
5430 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
5431 MissingResourceException is thrown.
5432 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
5433 null when a MissingResourceException is thrown. Should never happen.
5435 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
5437 * java/awt/image/DataBufferShort.java,
5438 java/awt/image/DataBufferFloat.java,
5439 java/awt/image/DataBufferDouble.java,
5440 java/awt/image/PixelInterleavedSampleModel.java: New files.
5441 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
5442 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
5444 2004-04-20 Michael Koch <konqueror@gmx.de>
5446 * Makefile.am (java_source_files): Added
5447 java/awt/image/DataBufferDouble.java,
5448 java/awt/image/DataBufferFloat.java,
5449 java/awt/image/DataBufferShort.java and
5450 java/awt/image/PixelInterleavedSampleModel.java.
5451 * Makefile.in: Regenerated.
5453 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
5455 * gcj/cni.h (JvAllocObject): Remove these obsolete,
5456 undocumented CNI calls.
5457 * include/java-interp.h (_Jv_InterpClass): No longer
5458 extends java.lang.Class.
5459 * java/lang/Class.h (Class): Add new field `aux_info'.
5460 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
5461 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
5462 Use Class->aux_info instead.
5463 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
5464 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
5465 Use Class->aux_info instead.
5466 * java/io/natObjectInputStream.cc (allocateObject): Use
5468 * java/lang/natClass.cc (newInstance): Likewise.
5469 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
5470 * java/lang/natObject.cc (clone): Likewise.
5471 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
5472 * java/lang/natVMClassLoader.cc (defineClass): Don't use
5473 JvAllocObject. Allocate klass->aux_info here for interpreted
5476 2004-04-17 Mark Wielaard <mark@klomp.org>
5478 * javax/swing/JToggleButton.java (ToggleButtonModel):
5479 Make public static inner class.
5480 * javax/swing/JTabbedPane.java (setComponentAt):
5481 Call Page.setComponent().
5482 (SCROLL_TAB_LAYOUT): Make public, value is 1.
5483 (WRAP_TAB_LAYOUT): Make public, value is 0.
5484 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
5485 Make private static inner class.
5487 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
5489 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
5490 arguments to match new signature. Remove FIXME comments.
5492 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
5494 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
5496 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
5499 2004-04-02 Olga Rodimina <rodimina@redhat.com>
5501 * Makefile.am: Added new file.
5502 * Makefile.in: Regenerate.
5503 * javax/swing/ImageIcon.java:
5504 (ImageIcon(file)): set description of the icon
5506 * javax/swing/JCheckBoxMenuItem.java:
5507 Mostly Implemented. Work in progress.
5508 * javax/swing/JRadioButtonMenuItem.java:
5509 Reimplement constructors to use JToggleButtonModel.
5510 * javax/swing/plaf/basic/BasicIconFactory.java:
5511 (getCheckBoxMenuItemIcon): return check box
5513 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5514 paint menu item selected only when it is armed and
5517 2004-04-02 David Jee <djee@redhat.com>
5519 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5520 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
5521 * java/awt/Component.java
5522 (add): Set the parent of the popup as this component.
5523 * java/awt/PopupMenu.java
5524 (addNotify): Create popup menu when peer is null.
5525 (show): Call addNotify() if peer is null.
5526 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5527 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
5528 argument for gtk_menu_popup() as zero. This causes the popup menu to
5529 respond to any mouse button.
5531 2004-03-31 Olga Rodimina <rodimina@redhat.com>
5533 * Makefile.am: Added new file.
5534 * Makefile.in: Regenerate.
5535 * javax/swing/JRadioButtonMenuItem.java:
5537 * javax/swing/plaf/basic/BasicIconFactory.java:
5538 (getRadioButtonMenuItemIcon): Return
5540 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5541 (getPreferredSize): Add size of checkIcon if it
5543 (installDefaults): Don't initialize checkIcon.
5544 It's value will be set in subclasses.
5545 (uninstallDefaults): remove uninstallation of
5547 (paint): Moved code to paintMenuItem().
5548 (paintMenuItem): Implemented.
5549 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
5550 UI delegate for JRadioButtonMenuItem.
5552 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5554 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5555 Corrected position of the accelerator.
5557 2004-03-29 Olga Rodimina <rodimina@redhat.com>
5559 * Makefile.am: Added new file.
5560 * Makefile.in: Regenerate.
5561 * javax/swing/JMenuItem.java: Partly
5562 implemented. Work in progress
5563 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5564 Changed default value of acceleratorDelimiter.
5565 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5566 New class. Partly implemented.
5568 2004-03-26 Mark Wielaard <mark@klomp.org>
5570 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
5571 (item_activate): Declare label before use.
5572 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5573 (gtkSetFont): Removed unused variable label.
5574 (addExposeFilter): Declare variables before use.
5575 (removeExposeFilter): Likewise.
5576 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
5577 (ok_clicked): Declare str_fileName before use.
5579 2004-03-26 David Jee <djee@redhat.com>
5581 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
5582 (addSeparator): Remove.
5583 * java/awt/Menu.java
5584 (separator): Remove static final MenuItem field.
5585 (separatorLabel): New static final String field.
5586 (addSeparator): Do not use peer method; use add(MenuItem) instead.
5587 Use separatorLabel to denote that it is a separator.
5588 (insertSeparator): Create a new MenuItem with separatorLabel, instead
5589 of reusing the static separator instance, because a MenuItem instance
5590 can't be added more than once without being cloned.
5591 * java/awt/peer/MenuPeer.java
5592 (addSeparator): Remove from interface.
5594 2004-03-26 David Jee <djee@redhat.com>
5596 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5597 (connectSignals): New native method declaration.
5598 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
5599 * java/awt/MenuItem.java
5600 (getActionCommand): Return the label if the action command is not set.
5601 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
5602 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
5603 gtk_menu_shell_append().
5604 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
5605 (item_activate): Fix argument type.
5606 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
5608 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
5610 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
5611 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
5612 given. Add the menu widget's top-level GtkWindow to the global window
5613 group, so it can grab the pointer.
5614 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
5615 gtk_menu_shell_append().
5617 2004-03-23 Graydon Hoare <graydon@redhat.com>
5619 * java/text/AttributedString.java
5620 (addAttribute): Fix off-by-one.
5621 (getIterator): Likewise.
5622 * java/text/AttributedStringIterator.java
5623 (getRunLimit): Correct logic.
5624 (getRunStart): Likewise.
5625 (getAttribute): Fix inequality.
5626 (getAttributes): Likewise.
5627 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
5629 2004-03-23 Kim Ho <kho@redhat.com>
5631 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5632 (calculateSizes): Return real width and height.
5634 2004-03-23 Kim Ho <kho@redhat.com>
5636 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
5637 (calculateTabRects): Set the selectedRun before
5638 trying to rotate tabs.
5640 2004-03-23 Kim Ho <kho@redhat.com>
5642 * Makefile.am: New file
5643 * Makefile.in: Regenerate
5644 * java/awt/Graphics.java: (drawRect):
5645 Draw to the correct point.
5646 * javax/swing/DefaultSingleSelectionModel.java
5647 (isSelected): Return true if the selected index
5649 * javax/swing/JLabel.java: Do not change mnemonic
5650 index if text is null.
5651 * javax/swing/JProgressBar.java: Use JComponent's
5653 * javax/swing/JScrollBar.java: Ditto.
5654 * javax/swing/JSlider.java: Ditto.
5655 * javax/swing/JTabbedPane.java: Reimplement.
5656 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5657 Add defaults for TabbedPane.
5658 * javax/swing/plaf/basic/BasicArrowButton.java:
5660 * javax/swing/plaf/basic/BasicProgressBarUI.java:
5661 (paintDeterminate): Don't paint String if it's
5663 (paintIndeterminate): ditto.
5664 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5667 2004-03-19 Michael Koch <konqueror@gmx.de>
5669 * java/awt/image/AffineTransformOp.java
5670 (AffineTransformOp): Made public.
5671 * javax/swing/JComponent.java
5672 (listenerList): Made protected.
5673 (accessibleContext): Likewise.
5674 * javax/swing/JList.java
5675 (valueChanged): Dont use internal fields of ListSelectionEvent.
5676 * javax/swing/JViewport.java
5677 (getView): Dont use internal fields of Component.
5678 (addImpl): Likewise.
5679 * javax/swing/Timer.java
5680 (isRunning): Made public.
5683 * javax/swing/UIDefaults.java
5684 (getInt): Made public.
5685 * javax/swing/plaf/basic/BasicListUI.java
5686 (mousePressed): Dont use internal fields of MouseEvent.
5687 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5688 * javax/swing/plaf/basic/BasicScrollBarUI.java
5689 (arrowIcon): Made static.
5690 * javax/swing/plaf/basic/BasicViewportUI.java
5691 (stateChanged): Dont use internal field on ChangeEvent.
5692 * javax/swing/text/JTextComponent.java
5693 (getUI): Call UIManager.getUI().
5694 (updateUI): Use getUI().
5696 2004-03-19 Graydon Hoare <graydon@redhat.com>
5698 * javax/swing/JComponent.java: Turn off double buffer by default.
5699 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
5700 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
5701 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
5702 Use cairo to copy areas.
5703 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
5704 Initialize and set clip region.
5706 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
5708 * java/applet/Applet.java (preferredSize): Override deprecated
5709 variant of getPreferredSize.
5710 (minimumSize): Override deprecated variant of getMinimumSize.
5712 2004-03-15 Olga Rodimina <rodimina@redhat.com>
5714 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5715 (drawImage(img,xform,bgcolor,obs)): New Method.
5716 Helper function that every drawImage method will
5718 (drawRaster): Added new parameter, bgcolor. All
5719 transparent pixels are changed to bgcolor before
5721 (drawRenderedImage): Fixed to use changed drawRaster().
5722 (drawImage(image,xform,obs): Fixed to use new helper function
5723 (drawImage(image,op,x,y)): Ditto.
5724 (drawImage (img,x,y,observer)): Ditto.
5725 ((PainterThread) bgcolor): New Field.
5726 ((PainterThread) (setPixels)): Changed all transparent pixels
5728 (drawImage(img,x,y,width,height,bgcolor,observer)):
5729 Fixed FIXME - all the transparent pixels are
5730 changed to the specified bgcolor.
5731 (drawImage(img, x, y, width, height, observer): Changed to
5733 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
5734 Fixed FIXME- changed all transparent pixels to bgcolor.
5735 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
5736 Changed to use function above.
5738 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
5740 * java/applet/Applet.java (dimensions): New field.
5741 (getDimensions): New method.
5742 (getPreferredSize): Call getDimensions.
5743 (getMinimumSize): Likewise.
5745 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
5747 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
5748 * jni/classpath/jnilink.c: Likewise.
5750 * java/applet/Applet.java (getPreferredSize): New method.
5751 (getMinimumSize): New method.
5753 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
5755 * prims.cc (_Jv_AllocObject): Remove `size' argument.
5756 (_Jv_AllocObjectNoFinalizer): Likewise.
5757 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
5758 (_Jv_AllocPtrFreeObject): Likewise.
5759 (_Jv_AllocString): Moved from natString.cc. Call collector interface
5760 directly even in the JVMPI case.
5761 * gcj/cni.h (JvAllocObject): Remove `size' argument from
5762 _Jv_AllocObject calls.
5763 * gcj/javaprims.h: Update prototypes.
5764 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
5765 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
5766 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
5768 2004-04-14 Andrew Haley <aph@redhat.com>
5769 Bryce McKinlay <mckinlay@redhat.com>
5771 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
5772 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
5773 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
5775 * testsuite/libjava.lang/InvokeInterface.java: New file.
5776 * testsuite/libjava.lang/InvokeInterface.out: New file.
5778 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
5780 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
5782 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
5783 StackTraceElement directly.
5784 (newElement): New native helper method to create StackTraceElement
5785 bypassing Java access control.
5786 (createStackTraceElement): Use newElement() instead of directly
5787 calling StackTraceElement's constructor.
5788 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
5790 2004-04-01 Michael Koch <konqueror@gmx.de>
5792 * java/lang/SecurityManager.java
5793 (checkAwtEventQueueAccess): Implemented.
5795 2004-04-01 Gary Benson <gbenson@redhat.com>
5797 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
5798 (_Jv_SearchMethodInClass): Likewise.
5800 2004-03-26 Peter Moon <peterm@miraculum.com>
5802 * java/text/NumberFormat.java: Fix spelling of setCurrency
5805 2004-03-21 Anthony Green <green@redhat.com>
5807 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
5808 recursion when searching for the system ClassLoader.
5810 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
5812 * java/net/ServerSocket.java
5813 (accept): Close the socket when error occured.
5815 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
5817 * java/net/URI.java (parseURI): Added unquoting.
5818 (unquote): New method.
5819 (quoteAuthority): Implemented.
5820 (quote(String,String)): New method.
5821 (quotePath): Implemented.
5822 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
5823 (getSchemeSpecificPart): Removed FIXME comment.
5824 (getRawAuthority): Return new rawAuthority field.
5825 (getAuthority): Removed FIXME comment.
5826 (getRawUserInfo): Return new rawUserInfo field.
5827 (getUserInfo): Removed FIXME comment.
5828 (getRawPath): Return new rawPath field.
5829 (getPath): Removed FIXME comment.
5830 (getRawQuery): Return new rawQuery field.
5831 (getQuery): Removed FIXME comment.
5832 (getRawFragment): Return new rawFragment field.
5833 (getFragment): Removed FIXME comment.
5835 2004-03-20 Michael Koch <konqueror@gmx.de>
5837 * java/net/URLConnection.java: Merged copyright year with classpath.
5839 2004-03-20 Norbert Frese <postfach@nfrese.net>
5841 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
5842 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
5843 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
5845 (getObjectInputStream): Return object reference, throw IOException if null.
5846 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
5847 (getObjectOutputStream): Return object reference, throw IOException if null.
5848 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
5849 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
5850 (UnicastConnectionManager): Throw RemoteException if port is not available.
5851 (getInstance): Throw RemoteException.
5852 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
5853 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
5854 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
5855 Collect Exceptions which are returned by a rmi-call and fix void returns.
5856 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
5857 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
5858 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
5859 (dispatch): Answer ping messages which are sent by other java implementions.
5860 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
5861 for every rmi-message and fix void return problems.
5862 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
5863 (UnicastServerRef): Throw RemoteException.
5864 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
5865 In some situations it is necessary to export a subclass of the class which has the _Stub.
5866 For instance when the class with has the _Stub is abstract.
5867 (findStubSkelClass): New method which looks for the class which has the _Stub.
5868 (getClientHost): Implementated.
5869 * gcc/libjava/java/rmi/server/RemoteServer.java
5870 (getClientHost): Implementated.
5871 * gcc/libjava/Makefile.am (rmi_java_source_files):
5872 Added gnu/java/rmi/server/RMIIncomingThread.java.
5873 * Makefile.in: Regenerated.
5875 2004-03-20 Michael Koch <konqueror@gmx.de>
5877 * java/net/InetAddress.java
5878 (getLocalHostname): Added javadoc.
5880 2004-03-19 Per Bothner <per@bothner.com>
5882 * configure.in: FILE variable overrides FLATFORM when linking
5883 natFileChannelXXX.cc.
5885 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
5886 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
5888 2004-03-19 Per Bothner <per@bothner.com>
5890 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
5891 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
5892 * Makefile.am: Update accordingly.
5893 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
5894 as aliases for UnicodeLittle and UnicodeBig.
5896 2004-03-20 Mark Wielaard <mark@klomp.org>
5898 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5899 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
5900 Don't access ws when it is null.
5901 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
5904 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
5906 * java/lang/ThreadGroup.java (list): Changed print to println.
5908 2004-03-19 Mark Wielaard <mark@klomp.org>
5910 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
5913 2004-02-10 Randolph Chung <tausq@debian.org>
5915 * configure.in: Build java for hppa target.
5916 * configure: Regenerate.
5917 * libjava/configure.host (hppa-*): Add target.
5918 * libjava/sysdeps/pa/lock.h: New file.
5920 2004-03-19 Mark Wielaard <mark@klomp.org>
5922 Reported by Stephen Crawley
5923 * java/io/FilePermission.java (implies): Use String.length() -1 to
5924 access last char of String.
5926 2004-03-19 Michael Koch <konqueror@gmx.de>
5928 * java/awt/image/AffineTransformOp.java
5929 (AffineTransformOp): Made public.
5930 * javax/swing/JComponent.java
5931 (listenerList): Made protected.
5932 (accessibleContext): Likewise.
5933 * javax/swing/JList.java
5934 (valueChanged): Dont use internal fields of ListSelectionEvent.
5935 * javax/swing/JViewport.java
5936 (getView): Dont use internal fields of Component.
5937 (addImpl): Likewise.
5938 * javax/swing/Timer.java
5939 (isRunning): Made public.
5942 * javax/swing/UIDefaults.java
5943 (getInt): Made public.
5944 * javax/swing/plaf/basic/BasicListUI.java
5945 (mousePressed): Dont use internal fields of MouseEvent.
5946 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5947 * javax/swing/plaf/basic/BasicScrollBarUI.java
5948 (arrowIcon): Made static.
5949 * javax/swing/plaf/basic/BasicViewportUI.java
5950 (stateChanged): Dont use internal field on ChangeEvent.
5951 * javax/swing/text/JTextComponent.java
5952 (getUI): Call UIManager.getUI().
5953 (updateUI): Use getUI().
5955 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5957 * verify.cc: Undef PC.
5959 2004-03-18 Michael Koch <konqueror@gmx.de>
5961 * java/nio/channels/spi/AbstractSelectableChannel.java
5962 (keys): Initialize at declaration.
5963 (locate): keys cant be null.
5965 (addSelectionKey): New method.
5966 (removeSelectionKey): New method.
5967 * java/nio/channels/spi/AbstractSelectionKey.java
5968 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
5969 * java/nio/channels/spi/AbstractSelector.java
5970 (provider): Javadoc added.
5971 (cancelledKeys): Javadoc added.
5972 (cancelKey): Javadoc added, add key to cancelledKeys.
5973 (deregister): Implemented.
5975 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5977 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
5978 MAP_FAILED to void *.
5980 2004-03-12 Graydon Hoare <graydon@redhat.com>
5982 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
5983 * javax/swing/JComponent.java (paint): Use persistent double buffer.
5984 * javax/swing/JList.java (ListListener): Revalidate on changes.
5985 * javax/swing/JScrollPane.java: Reimplement.
5986 * javax/swing/JViewport.java: Reimplement.
5987 * javax/swing/ScrollPaneLayout.java: Reimplement.
5988 * javax/swing/ViewportLayout.java: Tidy up.
5989 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
5990 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
5991 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
5992 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
5995 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
5997 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5998 (window_wm_protocols_filter): New function.
5999 (window_focus_in_cb): Remove function.
6000 (window_focus_out_cb): Likewise.
6001 (window_focus_or_active_state_change_cb): New function.
6002 (create): Add filter that removes WM_TAKE_FOCUS client messages.
6003 (connectSignals): Don't attach handlers to focus-in-event or
6004 focus-out-event signals. Handle notify signal.
6006 2004-03-11 David Jee <djee@redhat.com>
6008 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6009 (gtkSetLabel): New native method declaration.
6010 (setLabel): Use gtkSetLabel.
6011 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6012 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
6014 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6016 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
6017 black when color argument is null.
6019 2004-03-10 Kim Ho <kho@redhat.com>
6021 * java/awt/Container.java: Remove check
6024 2004-03-10 Kim Ho <kho@redhat.com>
6026 * java/awt/Container.java: (visitChild):
6027 Remove candidate clip. Use the component
6029 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6030 (handleEvent): Use the PaintEvent's clip.
6032 2004-03-10 Kim Ho <kho@redhat.com>
6034 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6035 (handleEvent): Don't set the clip for the
6038 2004-03-09 Graydon Hoare <graydon@redhat.com>
6040 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
6041 Fix double <-> fixed macros, reset font transform.
6042 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
6045 2004-03-09Â Kim Ho <kho@redhat.com>
6047 * java/awt/Container.java: (visitChild): Move
6048 the x and y coordinate of the component rectangle
6049 to correct position.
6050 (handleEvent): Forward drag events to the pressed
6052 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6054 (ArrowButtonListener::mousePressed): Stop the
6056 (mouseDragged): Implement.
6057 (TrackListener::mousePressed): Only react if
6058 the press doesn't occur on the thumb, otherwise
6059 just set the offset.
6060 (TrackListener::mouseReleased): Unset the isAdjusting
6062 (createIncreaseIcon): Switch icon.
6063 (createDecreaseIcon): Switch icon.
6064 (calculatePreferredSize): Use width.
6065 (getThumbBounds): Use the top as the lower value.
6066 (layoutVScrollBar): Switch the button locations.
6067 (paintIncreaseHighlight): Paint correct side of thumb.
6068 (paintDecreaseHighlight): ditto.
6069 (valueForYPosition): Use top as the lower value.
6070 * javax/swing/plaf/basic/BasicSliderUI.java:
6072 (mouseDragged): Implement.
6073 (mousePressed): Only react when the thumb isn't
6074 pressed, otherwise just set offset.
6075 (mouseReleased): Handle a release of the thumb.
6076 (scrollDueToClickInTrack): Stop the timer first.
6077 * javax/swing/JProgressBar.java:
6078 (setString): Fix change condition.
6079 * javax/swing/JSeparator.java:
6082 2004-03-08 David Jee <djee@redhat.com>
6084 * java/awt/image/AffineTransformOp.java:
6085 (filter): Use Graphics2D interface instead of directly using the
6088 2004-03-05 David Jee <djee@redhat.com>
6090 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
6091 (handleEvent): Action events are generated upon MOUSE_RELEASED.
6092 * java/awt/Container.java
6093 (acquireComponentForMouseEvent): Fixed.
6094 (handleEvent): Fixed.
6095 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6096 (state_to_awt_mods_with_button_states): New method.
6097 (pre_event_handler): Fixed mouse event generation.
6099 2004-03-05 Olga Rodimina <rodimina@redhat.com>
6101 gnu/java/awt/peer/gtk/GdkGraphics2D.java
6102 (GdkGraphics2D (BufferedImage)): Initialize
6103 pixmap associated with specified BufferedImage.
6104 (setPaint): Changed implementation of Texture
6105 Paint to use AffineTransformOp.
6106 * java/awt/image/AffineTransformOp.java
6107 (createCompatibleDestRaster): Throw RasterFormatException
6108 if resulting width or height of raster is 0.
6110 2004-03-04 Olga Rodimina <rodimina@redhat.com>
6112 * java/awt/image/AffineTransformOp.java:
6113 Removed unnecessary field interpolationType.
6114 Formatted some of the lines to be consistent with
6116 (AffineTransformOp): Create new RenderingHints
6117 containing specified interpolation type.
6118 (createCompatibleDestImage): Implemented.
6119 (createCompatibleDestRaster): Implemented.
6120 (filter): Implemented.
6121 (getBounds2D(BufferedImage)): Implemented.
6122 (getBounds2D(Raster)): Implemented.
6123 (getInterpolationType): Get interpolation value from
6126 2004-03-04 David Jee <djee@redhat.com>
6128 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6129 (setFont): Check if child peers are null.
6131 2004-03-04 Graydon Hoare <graydon@redhat.com>
6133 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
6135 (libjava_arguments): Add new libraries to argument list.
6137 2004-03-02 Olga Rodimina <rodimina@redhat.com>
6139 * Makefile.am: Added java/awt/image/AffineTransformOp.java
6140 * Makefile.in: Re-generated.
6141 * java/awt/image/AffineTransformOp.java: New Class.
6143 2004-03-01 Olga Rodimina <rodimina@redhat.com>
6145 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6146 (setPaint): Interpret correctly TexturePaint's
6148 (drawImage): Fixed scale factors of the affine
6151 2004-02-27 David Jee <djee@redhat.com>
6153 * gnu/java/awt/peer/gtk/GdkGraphics.java
6154 (GdkGraphics(Component)): Inherit font from component.
6155 (drawString): Use font style.
6156 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6157 (gtkSetFont): New native method declaration.
6158 (setFont): New method.
6159 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6160 (gtkSetFont): New native method declaration.
6161 (setFont): Call new native method gtkSetFont.
6162 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6163 (setFont): For all child components who do not their fonts set,
6164 set their peers' fonts with this container's font.
6165 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
6166 Move all native method declarations to the top for readability.
6167 (gtkSetFont): New native method declaration.
6168 (setFont): New method.
6169 * java/awt/Component.java
6170 (setFont): Invalidate after setting the font.
6171 * java/awt/Container.java
6172 (invalidateTree): New method.
6173 (setFont): Invalidate the container tree after setting the font.
6174 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
6175 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
6176 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6177 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
6178 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6179 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
6180 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
6181 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
6183 2004-02-27 Olga Rodimina <rodimina@redhat.com>
6185 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6186 (updateBufferedImage): New helper function.
6187 Updates BufferedImage in memory if it was changed.
6188 (draw): changed to update BufferedImage in memory after
6189 this drawing operation
6191 (draw3DRect): Ditto.
6192 (fill3DRect): Ditto.
6194 (drawRaster): Ditto.
6195 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
6196 no affine transformation.
6197 (drawGlyphVector): Ditto.
6199 2004-02-26 Olga Rodimina <rodimina@redhat.com>
6201 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6202 (isBufferedImageGraphics): New Helper function.
6203 Returns true if this graphics2d can be used to draw
6204 into buffered image and false otherwise.
6205 (updateImagePixels): New Helper function.
6206 Updates pixels in the BufferedImage.
6207 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
6208 (getImagePixels): New function. Returns pixels
6209 of the buffered image associated with
6212 2004-02-26 David Jee <djee@redhat.com>
6214 * java/awt/BorderLayout.java
6215 (layoutContainer): Fix width and height calculations to ensure
6216 that they're non-negative.
6217 * java/awt/Component.java
6218 (setBackground): If c is null, inherit from closest ancestor whose
6219 background color is set.
6221 2004-02-26 Kim Ho <kho@redhat.com>
6223 * Makefile.am: Add new files.
6224 * Makefile.in: Re-generate.
6225 * javax/swing/JProgressBar.java:
6226 (JProgressBar(int, int int)): Throw
6227 IllegalArgumentException if orientation is
6229 (JProgressBar(BoundedRangeModel)): Create
6230 ChangeListener and register it. UpdateUI.
6231 (getChangeListeners): Implement.
6232 (setModel): Reset ChangeListener.
6233 * javax/swing/JScrollBar.java: Implement.
6234 * javax/swing/JSeparator.java: Implement.
6235 * javax/swing/JSlider.java:
6236 (JSlider(int, int, int, int)): Throw
6237 IllegalArgumentException if orientation
6239 (getChangeListeners): Fix method name.
6240 * javax/swing/SwingUtilities.java:
6241 (layoutCompoundLabel): If there is no text,
6242 set the text rectangle dimensions to 0.
6243 * javax/swing/plaf/basic/BasicButtonUI.java:
6244 (paint): If there is no text, don't paint it.
6245 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6247 * javax/swing/plaf/basic/BasicSeparatorUI.java:
6249 * javax/swing/plaf/basic/BasicSliderUI.java:
6250 (propertyChange): If the model changes, change
6251 the listeners accordingly.
6253 2004-02-25 Graydon Hoare <graydon@redhat.com>
6255 * javax/swing/AbstractButton.java: Add "final" qualifiers.
6256 * javax/swing/JList.java: Reimplement.
6257 * javax/swing/DefaultListSelectionModel.java: Reimplement.
6258 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
6259 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
6260 * javax/swing/ListModel.java: Javadoc.
6261 * javax/swing/ListSelectionModel.java: Add missing methods.
6262 * javax/swing/AbstractListModel.java: Javadoc and corrections.
6263 * javax/swing/DefaultListModel.java: Javadoc and corrections.
6264 * javax/swing/ListModel.java: Javadoc and corrections.
6265 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
6267 2004-02-25 David Jee <djee@redhat.com>
6269 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6270 (GtkFontPeer): Change default size to 12.
6271 * gnu/java/awt/peer/gtk/GtkToolkit.java
6272 (getFontPeer): Change default size to 12.
6273 (getClasspathFontPeer): Likewise. Set default name to "Default".
6274 * java/awt/Font.java
6275 (Font(Map)): Call Font(String,Map).
6276 (Font(String,Map)): If attrs is null, initialize it as an empty
6277 HashMap, which will ensure that the Font will get default attributes.
6279 2004-02-25 David Jee <djee@redhat.com>
6281 * gnu/java/awt/peer/gtk/GtkFontPeer.java
6282 (GtkFontPeer(String,int)): Call the new constructor with size 1.
6283 (GtkFontPeer(String,int,int)): New constructor with size attribute.
6284 * gnu/java/awt/peer/gtk/GtkToolkit.java
6285 (getFontPeer(String,int)): Call the new overload method with size 1.
6286 (getFontPeer(String,int,int)): New method. Overloaded with size
6288 (getClasspathFontPeer): Set the size of the font.
6290 2004-02-24 Olga Rodimina <rodimina@redhat.com>
6292 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6293 (bimage): New field.
6294 (GdkGraphics2D): New Constructor. Constructs Graphics
6295 object that can be used to draw into the Buffered Image.
6296 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6297 (GdkGraphicsEnvironment): Fixed to include public
6299 (createGraphics): Implemented.
6300 * gnu/java/awt/peer/gtk/GtkToolkit.java
6301 (getLocalGraphicsEnvironment): Implemented.
6302 * java/awt/GraphicsEnvironment.java:
6303 (getLocalGraphicsEnvironment): Implemented.
6304 * java/awt/image/BufferedImage.java:
6305 (createGraphics): Implemented.
6307 2004-02-24 David Jee <djee@redhat.com>
6309 * java/awt/Component.java
6310 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
6311 * java/awt/Container.java
6312 (addNotifyContainerChildren): Fix event enabling.
6314 2004-02-23 Olga Rodimina <rodimina@redhat.com>
6316 * Makefile.am: Added
6317 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
6318 * Makefile.in: Re-generated.
6319 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6322 2004-02-19 Kim Ho <kho@redhat.com>
6324 * Makefile.am: Add BasicProgressBarUI
6325 * Makefile.in: Regenerate.
6326 * javax/swing/JProgressBar.java:
6328 * javax/swing/plaf/basic/BasicLookAndFeel.java
6329 Add constants for JProgressBar.
6330 * javax/swing/plaf/basic/BasicProgressBarUI.java
6332 * javax/swing/plaf/basic/BasicSliderUI.java
6334 (calculateGeometry): New method
6335 (paint): Remove unnecessary size calculations.
6337 2004-02-18 Olga Rodimina <rodimina@redhat.com>
6339 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6340 (drawRaster): Fixed small error that caused
6341 imageToUser transformation to be set incorrectly.
6342 (toString): Implemented.
6344 2004-02-18 David Jee <djee@redhat.com>
6346 * java/awt/CardLayout.java
6347 (addLayoutComponent): Show the first component added as the default.
6348 (removeLayoutComponent): After removing, show the next component.
6349 (gotoComponent): If there is only one component, show it and return.
6351 2004-02-18 Kim Ho <kho@redhat.com>
6353 * javax/swing/JSlider.java: Re-order
6355 * javax/swing/JLabel.java: Re-order
6357 * javax/swing/JComponent.java:
6358 (addPropertyChangeListener):
6360 (removePropertyChangeListener):
6362 (firePropertyChangeEvent):
6365 2004-02-17 David Jee <djee@redhat.com>
6367 * java/awt/Component.java
6368 (show): Dispatch ComponentEvent via system event queue.
6372 (reshape): Likewise.
6373 * java/awt/Window.java
6374 (setBoundsCallback): Likewise.
6376 2004-02-17 David Jee <djee@redhat.com>
6378 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6379 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
6380 Use gtk_widget_set_size_request() instead of the deprecated
6381 gtk_widget_set_usize().
6383 2004-02-17 Kim Ho <kho@redhat.com>
6385 * javax/swing/JSlider.java: Fix comments and
6386 make property strings constants.
6387 (createStandardLabels): Use the labels
6388 preferred size as bounds.
6389 * javax/swing/plaf/basic/BasicSliderUI.java
6391 (ScrollHandler::actionPerformed): Don't
6392 calculate the timer stop value. Let the
6393 MouseListeners find the stop location.
6394 (getPreferredHorizontalSize): Re-implement.
6395 (getPreferredVerticalSize): ditto.
6396 (getMinimumHorizontalSize): ditto.
6397 (getMinimumVerticalSize): ditto.
6398 (getPreferredSize): ditto.
6399 (getMinimumSize): ditto.
6400 (getMaximumSize): ditto.
6401 (paintTicks): Use doubles to find the
6403 (paintHorizontalLabel):Â Use preferredSize
6404 as initial width and height.
6405 (paintVerticalLabel): ditto.
6407 2004-02-17 Kim Ho <kho@redhat.com>
6409 * javax/swing/JLabel.java: Changed
6410 property strings to constants.
6411 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
6413 (setText): Change mnemonic index if
6415 (setDisplayedMnemonicIndex): Fire property
6417 (getDisplayedMnemonicIndex): Remove check
6420 2004-02-17 Olga Rodimina <rodimina@redhat.com>
6422 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6423 (drawImage(img,xform,obs)): Invert xform before
6424 passing the xform to cairo.
6425 (drawImage(img,x,y,bgcolor,obs)): Implemented.
6426 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
6428 (drawImage (img,x,y,w,h,obs)): Implemented.
6429 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
6430 bgcolor,obs)): Partly implemented.
6431 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
6433 * java/awt/image/BufferedImage.java:
6434 (copyData): if dest is null, create raster with same
6435 dimensions as the current image.
6437 2004-02-16 Graydon Hoare <graydon@redhat.com>
6439 * javax/swing/plaf/basic/BasicLabelUI.java
6440 (getPreferredSize): Use layoutCL.
6441 * javax/swing/plaf/basic/BasicGraphicsUtils.java
6442 (getPreferredButtonSize): Start with empty view rect, layout using
6443 component's preferred alignment.
6444 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
6447 2004-02-16 David Jee <djee@redhat.com>
6449 * java/awt/Component.java
6450 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
6451 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
6452 (move): Erase old bounds and repaint new bounds. Dispatch
6453 COMPONENT_MOVED ComponentEvent.
6454 (resize): Erase old bounds and repaint new bounds. Dispatch
6455 COMPONENT_RESIZED ComponentEvent.
6456 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6458 * java/awt/Window.java
6459 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6462 2004-02-16 Olga Rodimina <rodimina@redhat.com>
6464 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6465 (setRenderingHint): Added implementation of
6466 Interpolation rendering hints.
6467 (setRenderingHints): Ditto.
6468 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6469 (drawPixels): fixed to allow user to choose type
6470 of filtering that should be used when displaying images.
6471 (cairoSurfaceSetFilter): New method. Sets filter type for
6472 interpolation of pixel values.
6474 2004-02-16 David Jee <djee@redhat.com>
6476 * java/awt/GridBagLayout.java
6477 (calcCellSizes): Rows or columns with zero sizes should still be
6478 considered for extra space distribution.
6480 2004-02-16 Kim Ho <kho@redhat.com>
6482 * javax/swing/JLabel.java: Re-implement.
6483 * javax/swing/plaf/basic/BasicLabelUI.java
6485 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6488 2004-02-16 Kim Ho <kho@redhat.com>
6490 * javax/swing/JSlider.java: Fix indentation and comments.
6491 (setModel): Remove null check to conform with Sun's.
6492 (setOrientation): Throw exception if not
6493 HORIZONTAL or VERTICAL.
6494 (getInverted): Use private variable instead of
6495 ComponentOrientation.
6496 (setInverted): ditto.
6497 * javax/swing/plaf/basic/BasicSliderUI.java:
6498 Fix indentation and comments.
6499 (propertyChange): Remove check for inverted slider, handle
6501 (getMinimumSize): Return preferred size.
6502 (getMaximumSize): ditto.
6503 (calculateFocusRect): Don't relocate rectangle.
6504 (drawInverted): Return XOR of the slider's inversion and
6505 the component's orientation.
6506 (paint): Update leftToRightCache
6508 2004-02-13 David Jee <djee@redhat.com>
6510 * java/awt/GridBagLayout.java
6511 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
6512 code to helper methods.
6513 (sortBySpan): New helper method.
6514 (distributeSizeAndWeight): Likewise.
6515 (calcCellWeights): Likewise.
6516 (calcCellSizes): Add comments.
6518 2004-02-13 David Jee <djee@redhat.com>
6520 * java/awt/Component.java
6521 (show): Only do something if component is invisible at the moment.
6522 (hide): Only do something if component is visible at the moment.
6523 (reshape): If lightweight, erase old bounds and repaint new bounds.
6525 2004-02-13 Kim Ho <kho@redhat.com>
6527 * Makefile.am: Updated for new file.
6528 * Makefile.in: Regenerated.
6529 * javax/swing/JSlider.java: Reimplement.
6530 * javax/swing/SwingUtilities.java
6531 (layoutCompoundLabel): Use icon height
6533 (paintComponent): Implement.
6534 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6535 Add JSlider defaults.
6536 * javax/swing/plaf/basic/BasicSliderUI.java:
6537 Implement. New file.
6539 2004-03-17 Michael Koch <konqueror@gmx.de>
6541 * gnu/java/net/PlainDatagramSocketImpl.java
6542 (RECEIVE_LOCK): New member field.
6543 (SEND_LOCK): New member field.
6544 (send0): New method.
6545 (send): Synchronize on SEND_LOCK.
6546 (receive0): New method.
6547 (receive): Synchronize on RECEIVE_LOCK.
6548 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
6549 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
6550 gnu/java/net/natPlainDatagramSocketImplWin32.cc
6551 (send0): Renamed from send.
6552 (receive0): Renamed from receive.
6553 2004-03-17 Michael Koch <konqueror@gmx.de>
6555 * gnu/java/net/natPlainSocketImplPosix.cc
6556 (write): Just call write(jbyteArray, offset, len).
6557 (read): Just call read(jbyteArray, offset, len).
6559 2004-03-16 Michael Koch <konqueror@gmx.de>
6561 * javax/swing/JTabbedPane.java
6562 (serialVersionUID): New field.
6564 2004-03-16 Norbert Frese <postfach@nfrese.net>
6566 * java/net/InetAddress.java
6567 (getByName): Handle hostname == "" case.
6569 2004-03-16 Dalibor Topic <robilad@kaffe.org>
6571 Reported by: Adam Heath <doogie@debian.org>
6572 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
6575 2004-03-15 Michael Koch <konqueror@gmx.de>
6577 * java/util/Locale.java: Reverting my last patch
6578 and add a comment why the original version was okay.
6580 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
6582 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
6583 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
6584 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
6585 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
6587 2004-03-12 Michael Koch <konqueror@gmx.de>
6589 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
6591 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6593 * java/net/URI.java (toURL): Implemented.
6595 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
6598 (URI_REGEXP) updated to contain scheme specific part.
6599 (SCHEME_SPEC_PART_GROUP) new constant.
6600 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
6601 updated to make room for SCHEME_SPEC_PART_GROUP.
6602 (parseURI) parse scheme specific part.
6603 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
6604 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
6605 getQuery, getFragment) implemented.
6607 2004-03-12 Dalibor Topic <robilad@kaffe.org>
6609 * libraries/javalib/java/net/URI.java
6610 partially implemented using java.util.regex.
6611 (URI_REGEXP) new constant. Used to parse URIs.
6612 (SCHEME_GROUP) new constant representing index of scheme group
6614 (AUTHORITY_GROUP) new constant representing index of authority
6615 group in parsed URI.
6616 (PATH_GROUP) new constant representing index of path group in
6618 (QUERY_GROUP) new constant representing index of query group in
6620 (FRAGMENT_GROUP) new constant representing index of fragment
6621 group in parsed URI.
6622 (getURIGroup) new static utility method.
6623 (parseURI) implemented.
6624 (quote) stub for new static utility method.
6625 (quoteAuthority) stub for new static utility method.
6626 (quoteHost) stub for new static utility method.
6627 (quotePath) stub for new static utility method.
6628 (quoteUserInfo) stub for new static utility method.
6630 (create) don't throw URISyntaxException. Implemented.
6631 (toString) implemented.
6633 2004-03-12 Michael Koch <konqueror@gmx.de>
6635 * java/net/HttpURLConnection.java
6636 (getResponseCode): Fix another typo in javadoc.
6638 2004-03-11 Michael Koch <konqueror@gmx.de>
6640 * java/util/logging/Level.java
6641 (parse): Use String.equals() instead of ==.
6643 2004-03-11 Michael Koch <konqueror@gmx.de>
6645 * gnu/java/net/protocol/jar/Connection.java
6646 (getContentLength): New method.
6648 2004-03-11 Michael Koch <konqueror@gmx.de>
6650 * gnu/java/net/PlainSocketImpl.java:
6651 Reformated to merge better with classpath's version.
6653 2004-03-11 Michael Koch <konqueror@gmx.de>
6655 * java/util/Locale.java
6656 (getISO3Language): Use String.equals() instead of ==.
6657 (getISO3Country): Likewise.
6659 2004-03-11 Dalibor Topic <robilad@kaffe.org>
6661 * java/text/AttributedString.java
6662 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
6663 Use HashMap instead of Hashtable since value can be null, and
6664 you can not store a null value in a Hashtable.
6666 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6668 * java/text/AttributedStringIterator.java
6669 (getAllAttributesKey): Return only keys concerned
6670 by the current iterator.
6671 (getAttributes): Use strict inequality for
6674 2004-03-11 Michael Koch <konqueror@gmx.de>
6676 * java/net/HttpURLConnection.java:
6677 Fixed typo in javadoc.
6679 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
6681 * java/io/BufferedInputStream.java (marktarget): New field for max
6683 (CHUNKSIZE): New constant for incremental mark buffer allocation.
6684 (mark): Use new fields.
6686 (read(byte[],int,int)): Likewise.
6690 2004-03-11 Mark Wielaard <mark@klomp.org>
6692 * java/beans/BeanDescriptor.java (BeanDescriptor):
6693 Set the FeatureDescriptor programmatic name.
6695 2004-03-11 Michael Koch <konqueror@gmx.de>
6697 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
6698 This file was was just copied form java/io/natFileDescriptorEcos.cc
6699 and never changed to compile correctly.
6701 2004-03-11 Michael Koch <konqueror@gmx.de>
6703 * gnu/java/nio/PipeImpl.java
6704 (SourceChannelImpl): Made final.
6705 (read): Implemented.
6706 (SinkChannelImpl): Made final.
6707 (write): Implemented.
6709 2004-03-11 Michael Koch <konqueror@gmx.de>
6711 * gnu/java/net/PlainDatagramSocketImpl.java:
6712 Reformated to match classpath's version more.
6714 2004-03-11 Michael Koch <konqueror@gmx.de>
6716 * gnu/java/awt/peer/ClasspathFontPeer.java:
6717 Fixed javadoc to be correct xhtml.
6718 * gnu/java/awt/peer/gtk/GtkArgList.java
6719 (add): Use Boolean.valueOf() instead of new Boolean().
6721 2004-03-09 Michael Koch <konqueror@gmx.de>
6723 * java/lang/Thread.java
6724 (runnable): Moved around.
6725 (daemon): Renamed from daemon_flag.
6726 (contextClassLoader): Renamed from context_class_loader.
6727 (Thread): Reordered constructors.
6728 (activeCount): Use group directly.
6729 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
6730 (holdsLock): Reworked javadoc.
6731 (setDaemon): Reworked.
6732 * java/lang/natThread.cc
6735 2004-03-08 Anthony Green <green@redhat.com>
6737 * Makefile.am: Build property resource files into libgcj.
6738 * Makefile.in: Rebuilt.
6739 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
6740 java/util/regex/PatternSyntaxException.java,
6741 gnu/regexp/CharIndexed.java,
6742 gnu/regexp/CharIndexedCharArray.java,
6743 gnu/regexp/CharIndexedInputStream.java,
6744 gnu/regexp/CharIndexedReader.java,
6745 gnu/regexp/CharIndexedString.java,
6746 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
6747 gnu/regexp/REException.java,
6748 gnu/regexp/REFilterInputStream.java,
6749 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
6750 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
6751 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
6752 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
6753 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
6754 gnu/regexp/RETokenLookAhead.java,
6755 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
6756 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
6757 gnu/regexp/RETokenStart.java,
6758 gnu/regexp/RETokenWordBoundary.java,
6759 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
6761 2004-03-03 Per Bothner <per@bothner.com>
6763 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
6764 Optimize when argument is a FileChannelImpl.
6765 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
6767 * java/nio/channels/natChannels.cc: New file for new native methods.
6768 * Makefile.am: Update accordingly.
6770 2004-03-02 Jan Hubicka <jh@suse.cz>
6772 * configure.host: Pass -fno-omit-frame-pointer for i386.
6773 * configure.in: Likewise.
6774 * configure: Regenerate.
6776 2004-03-01 Per Bothner <per@bothner.com>
6778 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
6780 2004-02-29 Per Bothner <per@bothner.com>
6782 * java/nio/channels/FileChannelImpl.java: Moved to package
6783 gnu/java/nio/channels, since we need to refer to it from java.io.
6784 * java/nio/channels/natFileChannelImpl.cc: Removed file.
6785 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
6786 from java/nio/channels. Don't depend on FileDescriptor.
6787 (in, out, err): New static fields.
6789 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
6790 from FileDescriptor.
6791 (by): Removed MappedByteBuffer field.
6792 (map): New working implementation.
6793 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
6794 some code "ported" from natFileDescriptoPosix.cc.
6795 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
6796 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
6797 * java/io/FileDescriptor.java: Implement on top of FileChannel.
6798 Remove native methods.
6799 * Makefile.am, configure.in: Updated accordingly.
6801 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
6802 (ch): New FileChannelImpl field. Update constructor to match.
6803 (releaseImpl): Remove native method. Instead ...
6804 (release): Call unlock on channel.
6805 * gnu/java/nio/natFileLockImpl.cc: Removed file.
6807 * java/io/natFileDescriptorEcos.cc: Remove file.
6808 * java/io/natFileDescriptorPosix.cc: Remove file.
6809 * java/io/natFileDescriptorWin32.cc: Remove file.
6810 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
6811 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
6812 (<init>(FileChannelImpl)): New package-private constructor.
6813 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
6814 (available, close, read, skip): Implement using FileChannelImpl.
6815 (getFD): Allocate FileDescriptor if needed.
6816 (getChannel): Is now trivial.
6817 * java/io/FileOutputStream.java: Corresponding changes.
6818 * java/io/RandomAccessFile.java: Corresponding changes.
6820 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
6821 unmapImpl): New dummy methods, to be overridden by subclass.
6822 (finalize, isLoaded, load, force): New methods.
6823 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
6824 Now works, at least for read mapping.
6826 * java/lang/natPosixProcess.cc (startProcess): Implement standard
6827 streams using FileChannelImpl, not FileDescriptor.
6828 * java/lang/natWin32Process.cc (startProcess): Likewise.
6830 2004-02-28 Michael Koch <konqueror@gmx.de>
6832 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
6835 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
6837 * java/io/ObjectInputStream.java
6838 (readClassDescriptor): Keep elements of the mapping non null.
6839 (checkTypeConsistency): New method.
6840 (readFields): Fixed main loop and base logic. Small reindentation.
6841 * java/io/ObjectStreamField.java
6842 (lookupField): New method to update the field reference.
6843 (checkFieldType): New method.
6844 * java/io/ObjectStreamClass.java
6845 (setClass, setFields): Call lookupField when building the field
6846 database. Check the real field type.
6848 2004-02-28 Michael Koch <konqueror@gmx.de>
6850 * java/nio/ByteOrder.java
6851 (nativeOrder): Use equals() to compare strings.
6853 2004-02-26 Michael Koch <konqueror@gmx.de>
6855 * gnu/java/nio/FileLockImpl.java
6856 (finalize): Made protected.
6857 * java/nio/channels/FileChannel.java
6858 (MapMode.READ_ONLY): Made final.
6859 (MapMode.READ_WRITE): Made final.
6860 (MapMode.PRIVATE): Made final.
6861 * java/nio/channels/SocketChannel.java
6862 (open): Simplified code.
6863 * java/nio/channels/spi/AbstractSelectableChannel.java
6864 (registered): Unused, removed.
6865 (keyFor): Check channel is open, only locate key
6866 and not add a new one.
6867 (register): Don't delete attachments.
6869 2004-02-26 Michael Koch <konqueror@gmx.de>
6871 * gnu/java/awt/ComponentDataBlitOp.java
6872 (INSTANCE): Made final.
6873 * gnu/java/awt/image/ImageDecoder.java:
6875 (cm): Unused, removed.
6877 2004-02-26 Michael Koch <konqueror@gmx.de>
6879 * gnu/java/nio/DatagramChannelImpl.java
6880 (send): Check if target address is resolved.
6882 2004-02-26 Michael Koch <konqueror@gmx.de>
6884 * Makefile.am: Generate and install headers for inner classes in
6885 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
6886 * Makefile.in: Regenerated.
6888 2004-02-24 Anthony Green <green@redhat.com>
6890 * java/lang/StringBuffer.java: No need to NULL out remainder of
6891 buffer since ensureCapacity_unsynchronized will have done this for
6894 2004-02-20 Michael Koch <konqueror@gmx.de>
6896 * gnu/java/net/protocol/jar/Handler.java
6897 (): Removed unneeded check for file != null. java.net.URL.getFile()
6898 returns an empty string but never null.
6900 2004-02-20 Michael Koch <konqueror@gmx.de>
6902 * gnu/gcj/convert/Convert.java
6903 (main): Use equals() to compare strings.
6905 2004-02-20 Michael Koch <konqueror@gmx.de>
6907 * javax/swing/AbstractButton.java: Made several constants final.
6908 (getRolloverSelectedIcon): Made public.
6909 (getSelectedIcon): Made public.
6911 2004-02-16 Per Bothner <per@bothner.com>
6913 * java/nio/CharBufferImpl.java: Inline super constructor.
6914 * java/nio/DoubleBufferImpl.java: Likewise.
6915 * java/nio/FloatBufferImpl.java: Likewise.
6916 * java/nio/IntBufferImpl.java: Likewise.
6917 * java/nio/LongBufferImpl.java: Likewise.
6918 * java/nio/ShortBufferImpl.java: Likewise.
6919 * java/nio/CharBuffer.java: Remove unused constructor.
6920 * java/nio/DoubleBuffer.java: Likewise.
6921 * java/nio/FloatBuffer.java: Likewise.
6922 * java/nio/IntBuffer.java: Likewise.
6923 * java/nio/LongBuffer.java: Likewise.
6924 * java/nio/ShortBuffer.java: Likewise.
6925 * java/nio/CharViewBufferImpl.java: New convenience constructor.
6926 Fix buggy call to super constructor.
6927 * java/nio/DoubleViewBufferImpl.java: Likewise.
6928 * java/nio/FloatViewBufferImpl.java: Likewise.
6929 * java/nio/IntViewBufferImpl.java: Likewise.
6930 * java/nio/LongViewBufferImpl.java: Likewise.
6931 * java/nio/ShortViewBufferImpl.java: Likewise.
6933 * java/nio/ByteBuffer.java (endian): Make non-private so other
6934 java.nio classes can inherit it.
6935 (<init>): Don't bother clearing array_offset.
6936 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
6937 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
6938 Remove redundant test.
6940 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
6941 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
6942 Use new XxxViewBufferImpl constructors.
6943 * java/nio/MappedByteBufferImpl.java: Likewise.
6944 * java/nio/DirectByteBufferImpl.java: Likewise.
6946 * java/nio/ByteBufferImpl.java: Remove one constructor.
6947 Inline super in remaining constructor.
6948 * java/nio/ByteBuffer.java: Remove unused constructor.
6950 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
6952 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
6953 * java/nio/DirectByteBufferImpl.java (owner): New field.
6954 (offset): Remove unused field.
6955 (<init>): Modify one and add another constructor. Change callers.
6956 (allocateDirect): Removed - not used.
6957 (getImpl, putImpl): Make static and pass address explicitly,
6958 to make them useful for MappedByteBufferImpl.
6959 (get, put): Check for underflow. Modify for new getImpl.
6960 (getImpl): New native method where target is array.
6961 (get(byte[],int,int)): Use the above.
6962 (adjustAddress): New static native method.
6963 (slice, duplicate, asReadOnly): New implementations.
6964 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
6965 adjustAddress): New or updated native methods.
6967 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
6969 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
6970 overflow of fieldmapping.
6972 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
6974 * javax/swing/undo/UndoManager.java: Re-written from scratch.
6976 2004-02-14 Per Bothner <per@bothner.com>
6978 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
6979 Set closed before calling implCloseChannel, as in the spec.
6981 2004-02-09 Graydon Hoare <graydon@redhat.com>
6983 * javax/swing/ToggleButtonModel.java: Remove dead class.
6984 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
6985 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
6986 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
6987 * Makefile.am: Update for new and removed files.
6988 * Makefile.in: Regenerate.
6990 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
6991 * javax/swing/AbstractButton.java
6992 (AbstractButton): Initialize fields correctly in ctor.
6993 * javax/swing/JCheckbox.java
6994 (JCheckBox): Override painting flags.
6995 * javax/swing/DefaultButtonModel.java: Conform to sun.
6996 * javax/swing/JComponent.java (paint): Fill with background color
6998 (processComponentKeyEvent)
7001 (processMouseMotionEvent): Remove event-consuming empty methods.
7002 (getUIClassID): Return "ComponentUI" not "JComponent"
7003 * javax/swing/JFrame.java: Remove some debugging chatter.
7004 (JFrame): Subscribe to window events.
7005 * javax/swing/JRadioButton.java
7006 (JRadioButton): Override painting flags.
7007 * javax/swing/JRootPane.java
7008 (JRootPane): Set background from UIDefaults.
7009 * javax/swing/JToggleButton.java
7010 (ToggleButtonModel): New inner class.
7011 (JToggleButton): Override layout alighment.
7012 * javax/swing/SwingUtilities.java:
7013 (getLocalBounds): Return width and height, not x and y.
7014 (calculateInnerArea): Use local bounds, not bounds.
7015 (layoutCompoundLabel): Provide overridden form.
7016 (layoutCompoundLabel): Correct bugs.
7017 * javax/swing/UIDefaults.java: Correct comment.
7018 * javax/swing/plaf/basic/BasicButtonUI.java:
7019 Move most logic into defaults, external listener.
7020 (paintIcon): Implement icon painting.
7021 (paint): Fix state painting to conform to changes in model.
7022 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
7023 Remove most dead/wrong methods.
7024 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
7025 * javax/swing/plaf/basic/BasicIconFactory.java:
7026 (DummyIcon): New class.
7027 (getMenuItemCheckIcon)
7028 (getMenuItemArrowIcon)
7030 (getCheckBoxMenuItemIcon)
7031 (getRadioButtonMenuItemIcon)
7032 (createEmptyFrameIcon): Return DummyIcons, not null.
7033 (getCheckBoxIcon): Implement an icon that looks like sun's.
7034 (getRadioButtonIcon): Implement an icon that looks like sun's.
7035 * javax/swing/plaf/basic/BasicLookAndFeel.java
7036 (initComponentDefaults): Fix impossible values, add some missing.
7037 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
7038 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
7039 Remove most dead/wrong methods.
7041 (getDefaultIcon): New method.
7042 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
7043 Remove most dead/wrong methods.
7044 * javax/swing/plaf/metal/MetalLookAndFeel.java
7045 (getDefaults): Return super.getDefaults(), not BasicDefaults.
7046 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
7047 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
7048 Implement "clearing" as drawing, when on pixmap drawables.
7050 * javax/swing/JButton.java (getUIClassID):
7051 * javax/swing/JCheckBox.java (getUIClassID):
7052 * javax/swing/JEditorPane.java (getUIClassID):
7053 * javax/swing/JLabel.java (getUIClassID):
7054 * javax/swing/JList.java (getUIClassID):
7055 * javax/swing/JOptionPane.java (getUIClassID):
7056 * javax/swing/JPanel.java (getUIClassID):
7057 * javax/swing/JPasswordField.java (uiClassID):
7058 * javax/swing/JRadioButton.java (getUIClassID):
7059 * javax/swing/JRootPane.java (getUIClassID):
7060 * javax/swing/JScrollPane.java (getUIClassID):
7061 * javax/swing/JTabbedPane.java (getUIClassID):
7062 * javax/swing/JToggleButton.java (getUIClassID):
7063 * javax/swing/JTree.java (getUIClassID):
7064 * javax/swing/JViewport.java (getUIClassID):
7065 * javax/swing/text/JTextComponent.java (getUIClassID):
7066 Return "fooUI" not "Jfoo"
7068 2004-02-11 Michael Koch <konqueror@gmx.de>
7070 * java/net/DatagramSocket.java
7071 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
7073 (setBroadcast): Likewise.
7074 * java/net/MulticastSocket.java
7075 (setLoopbackMode): Likewise.
7076 * java/net/ServerSocket.java
7077 (setReuseAddress): Likewise.
7078 * java/net/Socket.java
7079 (setTcpNoDelay): Likewise.
7080 (setSoLinger): Likewise.
7081 (setOOBInline): Likewise.
7082 (setKeepAlive): Likewise.
7083 (setReuseAddress): Likewise.
7084 * java/net/URLConnection.java
7085 (setContentHandler): Replace == with equals().
7086 * java/net/URLStreamHandler.java
7087 (hostSEquals): Fix checking host addresses.
7088 (toExternalForm): Dont check protocol for null. We know already its
7091 2004-02-10 David Jee <djee@redhat.com>
7093 * java/awt/BorderLayout.java
7094 (calcCompSize): Invisible components get zero dimensions.
7095 * java/awt/Button.java
7096 (setLabel): Set actionCommand.
7097 * java/awt/Component.java
7098 (show): Invalidate component and parent container.
7101 2004-02-10 David Jee <djee@redhat.com>
7103 * java/awt/GridBagLayout.java
7104 (GridBagLayout): New private field, internalcomptable.
7105 (lookupInternalConstraints): New method.
7106 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
7107 (GetLayoutInfo): Reimplement.
7108 (calcCellSizes): Ignore rows/columns with size 0.
7110 2004-02-10 Michael Koch <konqueror@gmx.de>
7112 * gnu/java/awt/EmbeddedWindow.java
7113 (setHandle): Use java.awt.Component.getPeer() instead of
7114 java.awt.Component.peer directly.
7116 2004-02-10 David Jee <djee@redhat.com>
7118 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
7119 (gtkSetLabel): New native method definition.
7120 (setLabel): Use gtkSetLabel.
7121 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
7122 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
7124 2004-02-10 Alan Modra <amodra@bigpond.net.au>
7126 * include/powerpc-signal.h: Revert 2004-01-21 change.
7127 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
7128 from syscall for ppc32 versions.
7130 2004-02-08 Per Bothner <per@bothner.com>
7132 * java/nio/ByteBuffer.java (shiftDown): New helper method.
7133 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
7134 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
7135 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
7136 Pass ByteOrder parameter to most methods, since the underlying
7137 ByteBuffer's order isn't always what we should use.
7138 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
7139 * java/nio/DirectByteBufferImpl.java: Likewise.
7140 Use ByteBufferHelper methods.
7141 * java/nio/MappedByteBufferImpl.java: Likewise.
7142 (compact): Use shiftDown.
7143 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
7144 (get, put): Use ByteBufferHelper.
7145 (compact): Use new shiftDown method.
7146 (duplicate(boolean)): New helper method.
7147 (duplicate, asReadOnlyBuffer): Use it.
7148 (order): Return endian field.
7149 * java/nio/DoubleViewBufferImpl.java: Likewise.
7150 * java/nio/FloatViewBufferImpl.java: Likewise.
7151 * java/nio/IntViewBufferImpl.java: Likewise.
7152 * java/nio/LongViewBufferImpl.java: Likewise.
7153 * java/nio/ShortViewBufferImpl.java: Likewise.
7154 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
7155 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
7156 (compact): Re-implement using shiftDown.
7158 2004-02-08 Andreas Jaeger <aj@suse.de>
7160 * include/x86_64-signal.h: Fix typo.
7162 2004-02-08 Diego Novillo <dnovillo@redhat.com>
7164 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
7166 (HANDLE_DIVIDE_OVERFLOW): Likewise.
7168 2004-02-06 Michael Koch <konqueror@gmx.de>
7170 * java/io/ObjectInputStream.java
7171 (currentClassLoader): Reverted to old version of this method.
7173 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
7175 * java/io/ObjectInputStream.java: Made all calls
7176 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
7177 use cached info from ObjectStreamClass. (readClassDescriptor):
7178 Cache more information in ObjectStreamClass. (processResolution,
7179 readFields): Use cached info from ObjectStreamClass.
7180 (newObject): Throw exception instead of returning null for failure.
7181 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
7182 setCharField, setDoubleField, setFloatField, setIntField,
7183 setLongField, setShortField, setObjectField, readObjectParams):
7184 Removed. (dumpElement, dumpElementln): Removed dump flag condition
7186 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
7187 (setClass): Added call to cacheMethods() (findMethod): New method.
7188 (cacheMethods): New method. (ObjectStreamClass): Added call to
7189 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
7190 AccessController.doPrivileged to invoke setAccessible.
7191 (readObjectMethod, readResolveMethod, realClassIsSerializable,
7192 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
7194 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
7195 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
7196 isPrimitive): Made safe for cases where type == null.
7197 (setBooleanField, setByteField, setCharField, setShortField,
7198 setIntField, setLongField, setFloatField, setDoubleField,
7199 setObjectField): New methods.
7201 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
7203 * java/awt/Component.java (getFont): Return a default font
7206 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
7207 (Scrollbar (int, int, int, int, int)): Make default page
7209 (setValues): Only call peer.setValues if one of the values has
7211 (generateName): New method.
7212 (getUniqueLong): New method.
7213 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
7214 (range_scrollbar): Remove structure.
7215 (post_adjustment_event): Remove function.
7216 (post_change_event): Accept jobject argument.
7217 (create): Cast jints to gdoubles. Round scrollbar values to the
7218 nearest integer. Clamp min, max and value settings.
7219 (connectJObject): Connect hook to widget->window.
7220 (connectSignals): Remove range_scrollbar structure variables.
7221 Remove "move-slider" connection. Pass global peer reference to
7222 "value-changed" callback.
7223 (setLineIncrement): Cast jint value to gdouble.
7224 (setPageIncrement): Likewise.
7225 (setValues): Likewise. Clamp min, max and value settings.
7227 2004-02-05 Michael Koch <konqueror@gmx.de>
7229 * javax/swing/AbstractCellEditor.java
7230 (getCellEditorValue): Removed.
7231 * javax/swing/Box.java: Reformated.
7232 (serialVersionUID): New field.
7233 * javax/swing/ButtonGroup.java:
7234 Removed some weird whitespace.
7235 * javax/swing/CellEditor.java: Reformated.
7236 * javax/swing/CellRendererPane.java
7237 (serialVersionUID): New field.
7238 (AccessibleCellRendererPaneserialVersionUID): New field.
7239 * javax/swing/DefaultListModel.java
7240 (serialVersionUID): New field.
7241 * javax/swing/JEditorPane.java
7242 (serialVersionUID): New field.
7243 (setPage): Throws IOException.
7244 (addHyperlinkListener): Implemented.
7245 (removeHyperlinkListener): Implemented.
7246 (getHyperlinkListener): New method.
7247 * javax/swing/JFileChooser.java
7248 (serialVersionUID): New field.
7249 (AccessibleJFileChooser.serialVersionUID): New field.
7250 (addActionListener): Implemented.
7251 (removeActionListener): Implemented.
7252 (getActionListeners): New method.
7253 * javax/swing/JFormattedTextField.java
7254 (serialVersionUID): New field.
7255 (AbstractFormatter.serialVersionUID): New field.
7256 (clone): Throws CloneNotSupportedException
7257 (setEditValid): Add missing argument.
7258 (stringToValue): Throws ParseExcpetion.
7259 (valueToString): Throws ParseException.
7260 (commitEdit): Throws ParseException.
7261 * javax/swing/JLabel.java
7262 (serialVersionUID): New field.
7263 * javax/swing/JList.java
7264 (serialVersionUID): New field.
7265 (addListSelectionListener): Reformated.
7266 (removeListSelectionListener): Reformated.
7267 (getListSelectionListeners): New method.
7268 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
7270 (serialVersionUID): New field.
7271 * javax/swing/table/AbstractTableModel.java
7272 (getValueAt): Removed.
7273 (getColumnCount): Removed.
7274 (getRowCount): Removed.
7276 2004-02-05 Michael Koch <konqueror@gmx.de>
7278 * java/awt/datatransfer/DataFlavor.java
7279 (imageFlavor): Javadoc added.
7280 (javaJVMLocalObjectType): Fixed.
7282 2004-02-05 Michael Koch <konqueror@gmx.de>
7284 * java/lang/Thread.java
7285 (Thread): Reordered.
7286 (setContextClassLoader): Fixed javadoc comment.
7287 (setPriority): Reordered.
7289 (initialize_native): Reordered.
7290 (gen_name): Reordered.
7292 2004-02-05 Michael Koch <konqueror@gmx.de>
7294 * java/lang/Thread.java: Reordered fields, reformated much code,
7295 no functional changes, some variables renamed, javadoc comments
7298 2004-02-05 Michael Koch <konqueror@gmx.de>
7300 * java/util/zip/Deflater.java,
7301 java/util/zip/DeflaterOutputStream.java,
7302 java/util/zip/GZIPInputStream.java:
7303 Reformated and javadoc comments merged from classpath.
7305 2004-02-05 Michael Koch <konqueror@gmx.de>
7307 * gnu/java/nio/NIOServerSocket.java
7308 (impl): Unused, removed.
7309 * gnu/java/nio/SocketChannelImpl.java
7310 (finnishConnect): Don't throw NoConnectionPendingException if not
7311 connected or no connection pending.
7313 2004-02-02 Graydon Hoare <graydon@redhat.com>
7315 * javax/swing/SwingUtilities.java: Many new functions.
7316 * java/awt/Container.java (LightweightDispatcher): Reimplement.
7317 * javax/swing/basic/BasicGraphicsUtils.java
7318 (getPreferredButtonSize): Start layout from top-left corner.
7320 2004-02-04 Olga Rodimina <rodimina@redhat.com>
7322 * java/awt/geom/AffineTransform.java:
7323 Corrected comments on the field definitions for
7325 (shear): Fixed few errors that caused shear
7326 transformation to be performed incorrectly.
7327 (createInverse): Fixed to return correct
7328 inverse of the given matrix.
7330 2004-02-03 Tom Tromey <tromey@redhat.com>
7332 * java/lang/natPosixProcess.cc (startProcess): Handle case where
7333 PATH or LD_LIBRARY_PATH is not set in parent environment.
7335 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
7337 * gnu/java/awt/peer/gtk/GtkListPeer.java,
7338 java/awt/BorderLayout.java, java/awt/CardLayout.java,
7339 java/awt/CheckboxGroup.java, java/awt/Choice.java,
7340 java/awt/Component.java, java/awt/Container.java,
7341 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
7342 java/awt/LayoutManager2.java, java/awt/List.java,
7343 java/awt/Menu.java, java/awt/MenuBar.java,
7344 java/awt/MenuItem.java, java/awt/Polygon.java,
7345 java/awt/Rectangle.java, java/awt/ScrollPane.java,
7346 java/awt/Scrollbar.java, java/awt/TextArea.java,
7347 java/awt/TextField.java,
7348 java/awt/image/renderable/RenderContext.java,
7349 javax/swing/JApplet.java: Fix handling of alias methods, where a
7350 method has been deprecated in favour of a new one with the same
7351 funtion but a different name. Put the method implementation in
7352 the deprecated method and have the new method call the
7353 deprecated one. Make all other code call the new method.
7355 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
7357 * gnu/java/nio/DatagramChannelImpl.java
7358 (inChannelOperation): New field.
7359 (isInChannelOperation): New accessor.
7360 (setInChannelOperation): New modifier.
7361 (receive): Use capacity() - position() of destination
7362 buffer instead of remaining(). Set and reset our "in
7363 channel operation indicator" before and after delegating
7364 the receive to our datagram socket. Removed testing code.
7365 Update destination buffer's current position if it is
7366 backed by a byte array (hasArray() is true).
7367 (send): Set and reset our "in channel operation indicator"
7368 before and after delegating the send to our datagram socket.
7369 Removed testing code. Update source buffer's current position
7370 if it is backed by a byte array (hasArray() is true).
7371 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
7372 Use capacity() - position() of destination buffer instead
7374 * java/net/DatagramSocket.java (receive): Don't throw an
7375 IllegalBlockingModeException if we have a non-blocking
7376 channel which initiated this operation.
7379 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
7381 * configure.in: Add pkgconfig check for glib and gthread.
7382 * configure: Regenerate.
7384 2004-02-01 Michael Koch <konqueror@gmx.de>
7386 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
7388 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
7389 * verify.cc (debug_print): Mark 'fmt' unused.
7391 2004-01-30 Michael Koch <konqueror@gmx.de>
7393 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
7394 * configure: Regenerated.
7395 * glib-2.0.m4: Removed.
7396 * gtk-2.0.m4: Removed.
7397 * libart.m4: Removed.
7400 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
7402 * gnu/java/net/PlainSocketImpl.java
7403 (inChannelOperation): New field.
7404 (isInChannelOperation): New accessor.
7405 (setInChannelOperation): New modifier.
7406 * gnu/java/nio/ServerSocketChannelImpl.java
7407 (accept): Set and reset our server socket's PlainSocketImpl's
7408 "in channel operation" indicator before and after delegating
7409 the accept to our server socket.
7410 * gnu/java/nio/SocketChannelImpl.java
7411 (connect): Set and reset our socket's PlainSocketImpl's "in channel
7412 operation" indicator before and after delegating the operation to
7416 * java/net/ServerSocket.java (implAccept): Don't throw an
7417 IllegalBlockingModeException if we have a non-blocking
7418 channel which initiated this accept operation.
7419 * java/net/Socket.java (connect): Don't throw an
7420 IllegalBlockingModeException if we have a non-blocking
7421 channel which initiated this connect operation.
7422 * java/nio/channels/spi/AbstractSelectableChannel.java
7423 (configureBlocking): Only call implConfigureBlocking() if
7424 the desired blocking mode is different from our current one.
7426 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
7428 * java/io/BufferedReader.java (sbuf): New field.
7429 (readLine): Use String.valueOf instead of new String() as per
7430 Per Bothner's suggestion. Use instance sbuf field instead of a
7431 local StringBuffer instance.
7432 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
7433 caller's buffer to refill().
7434 (read(void)): Pass our internal work buffer to refill if our
7435 input queue is empty.
7436 (refill): Changed return type to int. Use the specified buffer
7437 instead of our work buffer as per Bryce McKinlay's suggestion.
7438 Return the number of characters read or -1 for EOF.
7440 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7442 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
7444 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7446 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
7447 * Makefile.in: Re-generated.
7448 * gnu/awt/xlib/XFontPeer.java: New file.
7449 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
7450 (setClip): Commented out debug printout.
7451 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
7452 (getFontPeer): Return XFontPeer.
7453 (getLocalGraphicsEnvironment): New method.
7454 (getClasspathFontPeer): New method.
7455 (createFont): New method.
7457 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
7459 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
7462 2004-01-29 Kim Ho <kho@redhat.com>
7464 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7465 (gtkLayoutSetVisible): New method
7466 (setMenuBar): Hide layout before setting MenuBar
7467 and reshow it after.
7468 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7469 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
7471 2004-01-28 Michael Koch <konqueror@gmx.de>
7473 * gnu/java/lang/ClassHelper.java
7474 (getPackagePortion): Removed.
7476 2004-01-28 Michael Koch <konqueror@gmx.de>
7478 * javax/swing/JComponent.java
7479 (listenerList): Initalize globally.
7480 (ancestor_list): Removed.
7481 (veto_list): Removed.
7482 (change_list): Removed.
7483 (get_veto_list): Removed.
7484 (get_change_list): Removed.
7485 (get_ancestor_list): Removed.
7486 (removeAncestorListener): Reimplemented.
7487 (removePropertyChangeListener): Likewise.
7488 (removeVetoableChangeListener): Likewise.
7489 (addAncestorListener): Likewise.
7490 (addPropertyChangeListener): Likewise.
7491 (addVetoableChangeListener): Likewise.
7492 (getListeners): New method.
7493 (getAncestorListeners): Likewise.
7494 (getVetoableChangeListeners): Likewise.
7495 (fireVetoableChange): Throws PropertyVetoException.
7496 * javax/swing/JEditorPane.java
7497 (JEditorPane): Throws IOException.
7499 2004-01-28 David Jee <djee@redhat.com>
7501 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7502 (create): Set the default foreground color to
7503 java.awt.SystemColor.windowText.
7505 2004-01-27 Michael Koch <konqueror@gmx.de>
7507 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
7508 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7509 Reindented to merge with classpath.
7511 2004-01-27 David Jee <djee@redhat.com>
7513 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7514 (addExposeFilter): Handle GtkFramePeer separately.
7515 (removeExposeFilter): Likewise.
7517 2004-01-27 Michael Koch <konqueror@gmx.de>
7519 * gnu/java/net/protocol/http/Connection.java
7520 (getOutputStream): Fixed typo.
7522 2004-01-27 Michael Koch <konqueror@gmx.de>
7524 * java/lang/Class.java
7525 (getConstructor): Removed SecurityException from throws clause.
7526 (_getConstructors): Likewise.
7527 (getConstructors): Likewise.
7528 (getDeclaredConstructor): Likewise.
7529 (getDeclaredClasses): Likewise.
7530 (getDeclaredConstructors): Likewise.
7531 (getDeclaredField): Likewise.
7532 (getDeclaredMethod): Likewise.
7533 (getDeclaredMethods): Likewise.
7534 (getField): Likewise.
7535 (getMethod): Likewise.
7536 (getMethods): Likewise.
7538 2004-01-27 Kim Ho <kho@redhat.com>
7540 * gnu/java/awt/peer/gtk/GtkFramePeer.java
7541 (removeMenuBarPeer): Remove MenuBarPeer argument.
7542 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
7543 (dispose): Call native method.
7544 * java/awt/Frame.java (setMenuBar): Create and remove
7545 MenuBar peers only if the Frame has a peer.
7546 (addNotify): Create the MenuBar peer if one exists.
7547 (removeNotify): Remove MenuBar peer if one exists.
7548 * java/awt/Menu.java: Fix imports.
7549 (addNotify): Don't use full class name.
7550 (removeNotify): Call removeNotify on all children.
7551 * java/awt/MenuBar.java (removeNotify): Call
7552 removeNotify on all children.
7553 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7554 (removeMenuBarPeer): Remove MenuBarPeer argument.
7555 Iterate through children to find the Frame's MenuBar.
7556 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
7558 (dispose): Remove references to the MenuComponent.
7560 2004-01-27 Michael Koch <konqueror@gmx.de>
7562 * javax/swing/AbstractCellEditor.java: Reformated.
7563 * javax/swing/DefaultListSelectionModel.java
7564 (listenerList): Made protected.
7565 (addListSelectionListener): Javadoc added.
7566 (removeListSelectionListener): Likewise.
7567 (getListeners): Likewise.
7568 (getListSelectionListeners): Likewise.
7569 * javax/swing/JComboBox.java: Merged copyright year.
7570 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
7572 2004-01-26 Andrew Haley <aph@redhat.com>
7574 * javax/swing/table/JTableHeader.java: Extend JComponent
7576 2004-01-26 Kim Ho <kho@redhat.com>
7578 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
7581 2004-01-26 Kim Ho <kho@redhat.com>
7583 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
7585 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
7586 height and let the Layout Managers readjust anything that
7588 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7589 (moveLayout): New method. Shift everything in the Gtk
7590 layout in the Y direction by an offset.
7592 2004-01-26 David Jee <djee@redhat.com>
7594 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
7595 (handleEvent): Implemented. Handles PaintEvents.
7596 (paint): Implemented. Use GTK native methods to queue updates
7597 for this heavyweight peer.
7598 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
7599 (handleEvent): Removed.
7600 * java/awt/Component.java
7601 (paint): Implemented. Explictly paint the heavyweight peer.
7602 (update): Clear the background for heavyweight components.
7603 (paintAll): No need to call peer.paint() anymore.
7604 (processEvent): Don't process PaintEvents here. It's now done in
7605 the peer's handleEvent().
7606 (processPaintEvent): Removed.
7607 * java/awt/Container.java
7608 (paint): No need to call super.paint(). Visit heavyweight
7610 (update): Don't clear the background here. It's done in
7612 (visitChildren): Added check to not recurse into Containers.
7613 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7614 (filter_expose_event_handler): New method. Filter unwanted
7615 expose events while painting heavyweight peers.
7616 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
7617 New method. Connect filter and block pre_event_handler.
7618 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
7619 New method. Disconnect filter and unblock pre_event_handler.
7620 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
7621 New method. Invalidate and update given area.
7622 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
7623 (pre_event_handler): Add checks for unwanted expose events.
7625 2004-01-26 David Jee <djee@redhat.com>
7627 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7628 (find_bg_color_widget): For GtkButton, return its child.
7630 2004-01-26 Kim Ho <kho@redhat.com>
7632 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
7634 (setMenuBar): Grab MenuBar height and change insets.
7635 (setBounds): Account for MenuBar height.
7636 (postInsetsChangedEvent): Ditto.
7637 (postSizeAllocateEvent): Remove.
7638 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7639 (menubar_resize_cb): Remove
7640 (setMenuBarPeer): Remove callback.
7641 (getMenuBarHeight): Use size requisition instead of
7644 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7646 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
7647 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
7649 (setColumns): Remove FIXME -- peer will retrieve number of
7650 columns by calling getColumns.
7651 (setRows): Likewise for number of rows.
7652 (next_text_number): New field.
7653 (paramString): Fix param string.
7654 (generateName): New method.
7655 (getUniqueLong): New method.
7657 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
7659 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
7660 image observer of image loading status.
7661 (getImage (String)): Start image production.
7662 (getImage (URL)): Likewise.
7664 2004-01-25 Michael Koch <konqueror@gmx.de>
7666 * java/lang/Class.java: Imports reworked, reformated.
7667 (Class): Javadoc added.
7668 (forName): Likewise.
7669 (getClasses): Likewise.
7670 (getClassLoader): Likewise.
7671 (getComponentType): Likewise.
7672 (getConstructor): Likewise.
7673 (getConstructors): Likewise.
7674 (getDeclaredConstructor): Likewise.
7675 (getDeclaredClasses): Likewise.
7676 (getDeclaredConstructors): Likewise.
7677 (getDeclaredField): Likewise.
7678 (getDeclaredMethod): Likewise.
7679 (getDeclaredMethods): Likewise.
7680 (getDeclaringClass): Likewise.
7681 (getField): Likewise.
7682 (getInterfaces): Likewise.
7683 (getMethod): Likewise.
7684 (getMethods): Likewise.
7685 (getModifiers): Likewise.
7686 (getName): Likewise.
7687 (getResource): Likewise.
7688 (getResourceAsStream): Likewise.
7689 (getSigners): Likewise.
7690 (setSigners): Likewise.
7691 (getSuperclass): Likewise.
7692 (isArray): Likewise.
7693 (isAssignableFrom): Likewise.
7694 (isInstance): Likewise.
7695 (isInterface): Likewise.
7696 (isPrimitive): Likewise.
7697 (newInstance): Likewise.
7698 (getProtectionDomain): Likewise.
7699 (toString): Likewise.
7701 (initializeClass): Likewise.
7702 (finalize): Likewise.
7704 2004-01-24 Michael Koch <konqueror@gmx.de>
7706 * gnu/java/net/protocol/jar/Connection.java
7709 (gotHeaders): Removed.
7710 (getHeaderField): Removed.
7711 (getHeaderFields): Removed.
7712 (getHeaderFieldKey): Removed.
7714 (getField): Removed.
7715 (getHeaders): Removed.
7717 2004-01-24 Michael Koch <konqueror@gmx.de>
7719 * Makefile.am: Added library version to gtk peer lib.
7720 * Makefile.in: Regenerated.
7722 2004-01-24 Michael Koch <konqueror@gmx.de>
7724 * java/util/zip/InflaterInputStream.java: Merged class documentation
7727 2004-01-21 Jakub Jelinek <jakub@redhat.com>
7729 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
7730 header. For __powerpc64__ provide the default-signal.h definitions
7732 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
7733 instead of the dummy definitions.
7734 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
7735 (powerpc64*-*): Remove with_libffi_default.
7736 Only add -mminimal-toc for 64-bit compilations.
7737 * configure.in: Use powerpc-signal.h on powerpc64 as well.
7738 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
7739 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
7740 * configure: Rebuilt.
7742 2004-01-23 Michael Koch <konqueror@gmx.de>
7744 * gnu/java/nio/FileLockImpl.java: Compile fixes.
7746 2004-01-23 Michael Koch <konqueror@gmx.de>
7748 * java/lang/VMClassLoader.java: Reworked imports.
7750 2004-01-23 Michael Koch <konqueror@gmx.de>
7752 * javax/swing/AbstractAction.java: Reformated.
7754 2004-01-23 Michael Koch <konqueror@gmx.de>
7756 * java/text/CollationElementIterator.java:
7757 (setText): New method.
7759 2004-01-23 Michael Koch <konqueror@gmx.de>
7761 * gnu/java/nio/FileLockImpl.java:
7762 Fixed filename in copyright.
7763 (released): Removed.
7764 (finalize): New method.
7765 * gnu/java/nio/natFileLockImpl.cc
7766 (releaseImpl): Implemented.
7767 * java/nio/channels/FileChannelImpl.java:
7769 (lock): Implemented.
7770 (lockImpl): New method.
7771 (tryLock): Implemented.
7772 (tryLockImpl): New method.
7773 * java/nio/channels/natFileChannelImpl.cc
7774 (lockImpl): New method.
7775 (tryLockImpl): New method.
7777 2004-01-23 Michael Koch <konqueror@gmx.de>
7779 * java/io/FileDescriptor.java
7781 (tryLock): New method.
7782 (unlock): New method.
7783 * java/io/natFileDescriptorEcos.cc
7785 (tryLock): New method.
7786 (unlock): New method.
7787 * java/io/natFileDescriptorPosix.cc
7789 (tryLock): New method.
7790 (unlock): New method.
7791 * java/io/natFileDescriptorWin32.cc
7793 (tryLock): New method.
7794 (unlock): New method.
7796 2004-01-23 Michael Koch <konqueror@gmx.de>
7798 * java/io/FileDescriptor.java
7799 (sync): Moved around, added javadoc.
7804 (setLength): Likewise.
7806 (getLength): Likewise.
7807 (getFilePointer): Likewise.
7809 (available): Likewise.
7810 (finalize): Likewise.
7812 2004-01-23 Michael Koch <konqueror@gmx.de>
7814 * javax/swing/AbstractAction.java: Reformated.
7815 (getPropertyChangeListeners): New method.
7816 * javax/swing/AbstractCellEditor.java: Reformated.
7817 (getCellEditorListeners): New method.
7818 * javax/swing/DefaultListSelectionModel.java
7819 (listenerList): New field.
7820 (listeners): Removed.
7821 (get_listeners): Removed.
7822 (addListSelectionListener): Rewritten.
7823 (removeListSelectionListener): Rewritten.
7824 (getListSelectionListeners): New method.
7825 (getListeners): New method.
7826 * javax/swing/JComboBox.java: Imports reworked.
7827 (addActionListener): Implemented.
7828 (removeActionListener): Implemented.
7829 (addItemListener): Implemented.
7830 (removeItemListener): Implemented.
7831 (addPopupMenuListener): Implemented.
7832 (removePopupMenuListener): Implemented.
7833 (getActionListeners): New method.
7834 (getItemListeners): New method.
7835 (getPopupMenuListeners): New method.
7837 2004-01-23 Michael Koch <konqueror@gmx.de>
7839 * gnu/java/net/protocol/http/Connection.java
7840 (connect): Don't initialize bufferedOutputStream if not needed.
7841 (sendRequest): Set property for content length if content is present.
7842 Write content only if present.
7843 (getOutputStream): Check if already connected, dont connect,
7844 initalize bufferedOutputStream if needed.
7846 2004-01-23 Michael Koch <konqueror@gmx.de>
7848 * java/io/FileDescriptor.java
7849 (in, out, err): Added javadoc.
7850 (static): Merged loading code.
7851 (fd, position): Moved around.
7853 2004-01-23 Michael Koch <konqueror@gmx.de>
7855 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
7858 2004-01-23 Michael Koch <konqueror@gmx.de>
7860 * java/lang/Class.java,
7861 java/lang/Object.java,
7862 java/lang/Thread.java: Merged copyright with classpath.
7864 2004-01-23 Michael Koch <konqueror@gmx.de>
7866 * java/io/FileDescriptor.java: Merged copyright with classpath to
7867 start merging this class.
7869 2004-01-22 Tom Tromey <tromey@redhat.com>
7872 * testsuite/libjava.lang/pr13107_2.xfail: New file.
7873 * testsuite/libjava.lang/pr13107_3.xfail: New file.
7874 * testsuite/libjava.lang/pr13107_3.java: New file.
7875 * testsuite/libjava.lang/pr13107_3.out: New file.
7876 * testsuite/libjava.lang/pr13107_2.java: New file.
7877 * testsuite/libjava.lang/pr13107_2.out: New file.
7878 * testsuite/libjava.lang/pr13107.java: New file.
7879 * testsuite/libjava.lang/pr13107.out: New file.
7880 * verify.cc (jsr_ptrs): Removed.
7881 (entry_points): Likewise.
7882 (struct subr_info): Likewise.
7883 (struct subr_entry_info): Likewise.
7884 (type_val::unused_by_subroutine_type): Likewise.
7885 (type::merge): Don't handle unused_by_subroutine_type.
7886 (type::print): Likewise.
7887 (state::flags): Removed.
7888 (state::subroutine): Likewise.
7889 (state::seen_subrs): Likewise.
7890 (state::NO_STACK): Likewise.
7891 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
7892 (state): Updated all methods.
7893 (state::clean_subrs): Removed.
7894 (state::state): Removed `ret_semantics' flag.
7895 (state::copy): Likewise.
7896 (state::add_subr): Removed.
7897 (state::enter_subroutine): Likewise.
7898 (type::set_return_address): New method.
7899 (handle_jsr_insn): Set return address on the type. Always
7900 invalidate PC after call.
7901 (check_nonrecursive_call): Removed.
7902 (~_Jv_BytecodeVerifier): Updated.
7903 (branch_prepass): Removed special handling of jsr.
7904 (note_branch_target): Likewise.
7905 (get_subroutine): Removed.
7906 (state::merge): Don't merge subroutines and don't handle
7907 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
7908 (state::note_variable): Removed.
7909 (state::is_unmerged_ret_state): Likewise.
7910 (state::print): Updated.
7911 (set_variable): Likewise.
7912 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
7913 and jsr_semantics arguments. Updated for new reverification
7915 (pop_jump): Rewrote.
7916 (construct_primitive_array_type): Updated.
7917 (state::next): Removed.
7918 (INVALID_STATE): New define.
7919 (state::INVALID): Removed.
7920 (state::NO_NEXT): New value.
7921 (state::pc, state::next): New fields.
7922 (state::get_pc): New method.
7923 (next_verify_pc): Removed.
7924 (next_verify_state): New field.
7925 (verify_instructions_0): Always check for falling off end.
7927 (linked_utf8): Removed.
7928 (states): Changed type.
7929 (type::state_mergeable_p): New method.
7930 (state::state_mergeable_p): Likewise.
7931 (handle_ret_insn): Removed most code.
7932 (state::reverify): New method.
7933 (add_new_state): Likewise.
7934 (state::set_pc): Likewise.
7936 2004-01-22 Jeff Sturm <jsturm@one-point.com>
7939 * testsuite/libjava.compile/PR13733.java: New file.
7940 * testsuite/libjava.compile/PR13733.xfail: New file.
7942 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
7943 Michael Koch <konqueror@gmx.de>
7945 * javax/swing/table/DefaultTableCellRenderer.java
7946 (DefaultTableCellRenderer): Added javadoc for the class and for
7947 the constructor, Border instance, create an EmptyBorder.
7948 (UIResource): Removed the comment at the end of the class
7949 (setForeground): New method.
7950 (setBackground): New method.
7951 (updateUI): New method.
7952 (getTableCellRendererComponent): Rewritten with the help of
7953 dvholten and Stephane Meslin-Weber.
7954 (validate): New method.
7955 (repaint): New method.
7956 (firePropertyChange): New method.
7957 (setValue): New method.
7959 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
7961 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7962 (connectJObject): Replace printf calls with g_assert statements.
7963 Move property-notify-event signal connection to ...
7964 (connectSignals): Connect property-notify-event signal. Iterate
7965 through the vbox's children to find layout.
7967 2004-01-22 Graydon Hoare <graydon@redhat.com>
7969 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
7970 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7971 Predicate static initialization on GtkToolkit.useGraphics2D().
7972 * java/awt/Component.java (processPaintEvent): Consume event.
7973 * javax/swing/AbstractButton.java: Reimplement, document.
7974 * javax/swing/DefaultButtonModel.java: Reimplement, document.
7975 * javax/swing/JComponent.java (paint): Use double buffer.
7976 (listenerList): Enable member.
7977 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
7978 * javax/swing/JToggleButton.java
7979 (JToggleButton): Modify model constructor.
7980 * javax/swing/SwingUtilities.java
7981 (layoutCompoundLabel): Adjust arithmetic.
7982 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
7983 * javax/swing/plaf/basic/BasicGraphicsUtils.java
7984 (getPreferredButtonSize): Include margins in calculation.
7985 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7986 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
7987 Receive up events from subordinate layout component.
7989 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
7991 * java/awt/Component.java (show): Set visible to true before
7994 2004-01-21 Kim Ho <kho@redhat.com>
7996 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
7998 (removeMenuBarPeer): Make package private.
7999 (setMenuBarPeer): Make package private.
8000 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8001 (menubar_resize_cb): Mark attributes unused.
8002 (getMenuBarHeight): ditto.
8004 2004-01-21 David Jee <djee@redhat.com>
8006 * java/awt/Container.java
8007 (LightweightDispatcher.handleEvent): Add an extra check to avoid
8008 dispatching MOUSE_ENTERED event twice. Translate the point for
8009 the mouse event target before dispatching the event.
8011 2004-01-20 Jakub Jelinek <jakub@redhat.com>
8013 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
8014 lib_org_w3c_dom_la_LDFLAGS): New.
8015 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
8016 * Makefile.in: Rebuilt.
8018 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
8020 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
8021 Calculate proper offsets for heavyweight components packed in
8022 lightweight containers.
8024 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
8025 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
8026 (native create): Add width parameter.
8027 (create): Calculate text entry width based on current font's
8028 metrics and number of columns. Set TextField's font if not
8029 already set. Call native create.
8030 (gtkEntryGetBorderWidth): New native method.
8031 (gtkEntryGetSize): Remove method.
8032 (getMinimumSize): Call minimumSize.
8033 (getPreferredSize): Call preferredSize.
8034 (minimumSize): Calculate minimum size based on backing
8035 GtkEntry's borders, font metrics and number of columns.
8036 (preferredSize): Likewise for preferred size.
8037 (get_border_width): New static function.
8039 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
8040 Override GtkWindowPeer's setResizable method to account for menu
8041 bar height when setting the frame's size.
8043 2004-01-19 Matthias Klose <doko@debian.org>
8045 * libtool-version: Increased `current' to 6.
8047 2004-01-19 Kim Ho <kho@redhat.com>
8049 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8050 (connectJObject): Iterate through the vbox's children to find layout.
8052 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8054 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
8055 isDispatchThread method to replace wrong test condition.
8057 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8059 * java/awt/EventQueue.java (pop): Prevent racing condition to add
8060 events to the queue out of order by acquiring locks in the proper
8061 order and not by releasing one before acquiring the other.
8063 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8065 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
8066 visible so that dialog can be reused.
8068 2004-01-19 Fernando Nasser <fnasser@redhat.com>
8070 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
8071 events may be handled by any queue in the stack.
8073 2004-01-19 Kim Ho <kho@redhat.com>
8075 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
8076 MenuBarPeer parameter.
8077 (removeMenuBarPeer): New native method.
8078 (setMenuBar): Call remove if menu bar is null. Adjust insets
8080 (postSizeAllocateEvent): New method. Called when menu bar size is
8081 allocated. Adjust insets and redo layout.
8082 (GtkFramePeer): Set menu bar during frame creation.
8083 (postConfigureEvent): Adjust position and size to accomodate
8085 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
8086 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
8087 (addNotify): Create the peer if it doesn't exist and call addNotify
8088 for the menu's items.
8089 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
8090 * java/awt/MenuItem.java (addNotify): Create the peer if it
8092 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8093 (removeMenuBarPeer): New method. Remove menu bar on the current
8095 (setMenuBarPeer): Add the menu bar to the current frame and the
8096 callback for size-allocate events on the menu bar.
8097 (getMenuBarHeight): Add menu bar parameter.
8098 (menubar_resize_cb): New callback method for postSizeAllocate events.
8100 Also: Fix indentation on last ChangeLog entry.
8102 2004-01-16 Kim Ho <kho@redhat.com>
8104 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8105 (gtkWidgetGetDimensions): Remove.
8106 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8107 (gtkWidgetGetDimensions): Remove.
8109 2004-01-16 Tom Tromey <tromey@redhat.com>
8111 * java/awt/Container.java: Typo and indentation fixes.
8113 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
8114 * java/lang/natVMClassLoader.cc: ...here. New file.
8115 * Makefile.in: Rebuilt.
8116 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
8118 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8120 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
8121 Discard GDK_ENTER_NOTIFY related to ungrabs.
8123 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8125 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
8126 is called for an intermediate queue.
8128 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
8130 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8131 (window_property_changed_cb): Set id_set.
8133 2004-01-16 Kim Ho <kho@redhat.com>
8135 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
8136 it is a FileDialog and has dimensions of 0 by 0, then the initial
8137 size is set to size request plus insets.
8138 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8139 (gtkWidgetGetDimensions): Override method.
8140 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8141 (gtkWidgetGetDimensions): Override method. Returns size request plus
8144 2004-01-16 Andrew Haley <aph@redhat.com>
8146 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
8147 * sysdep/i386/locks.h: Likewise.
8149 2004-01-16 Fernando Nasser <fnasser@redhat.com>
8151 * java/awt/EventDispatchThread.java (run): Stop running when
8153 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
8154 Reset the queue after transferring its contents.
8155 (push): Start a new dispatch thread if none is running.
8157 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
8159 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8160 (doPolygon): set fill rule of polygon to
8161 WIND_EVEN_ODD by default.
8163 2004-01-15 Olga Rodimina <rodimina@redhat.com>
8165 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8166 Implemented rendering hints related methods.
8167 (getDefaultHints): New helper method. Returns
8168 default rendering hints.
8169 (walkPath): changed to normalize path if
8170 the KEY_STROKE_CONTROL key is in "normalize" mode.
8171 (draw3DRect): changed coordinates of rectangle by +0.5
8172 if in "normalize" mode.
8174 2004-01-15 Tom Tromey <tromey@redhat.com>
8176 * Makefile.in: Rebuilt.
8177 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
8178 (%.lo: %.java) Filter out StackTrace.lo.
8180 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
8182 * configure.in: Add in AC_PREREQ(2.13)
8183 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
8186 2004-01-14 Nathan Bryant <nbryant@optonline.net>
8187 Tom Tromey <tromey@redhat.com>
8190 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
8191 array to superclass.
8192 (init): Changed interface; add URLs here.
8193 (initialize): New static method.
8194 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
8195 (_Jv_RunMain): ... not here.
8197 2004-01-14 Michael Koch <konqueror@gmx.de>
8199 * java/text/MessageFormat.java:
8200 Added descriptions to exceptions.
8201 This fixes PR libgcj/2429.
8203 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8205 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
8206 (push): Make sure push is performed at the top of the thread stack.
8208 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8210 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
8211 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8212 (native create): Add width and height parameters. Set text
8213 view's size request according to new parameters.
8214 (create): Calculate text view size based on current font's
8215 metrics and number of rows and columns. Set TextArea's font if
8216 not already set. Call native create.
8217 (getMinimumSize): Call minimumSize.
8218 (getPreferredSize): Call preferredSize.
8219 (getHScrollbarHeight): New method.
8220 (getVScrollbarWidth): New method.
8221 (minimumSize): Calculate minimum size based on scrollbar
8222 visibility, scrollbar sizes, font metrics and number of rows and
8224 (preferredSize): Likewise for preferred size.
8225 (gtkTextGetSize): Remove method.
8227 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8229 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8230 (initializeInsets): Remove method.
8231 (GtkComponentPeer): Initialize insets field. Remove call to
8233 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
8235 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
8237 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
8238 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
8239 (latestInsets): Remove field.
8240 (native create): Add insets parameter. Call
8241 window_get_frame_extents. Set the window's default size and
8242 size request based on its frame extents.
8243 (create): Initialize insets.
8244 (postInsetsChangedEvent): New method.
8245 (postConfigureEvent): Remove parameters top, left, bottom,
8246 right. Remove insets-related logic.
8247 (connectJObject): Handle property-notify-event.
8248 (window_get_frame_extents, request_frame_extents,
8249 property_notify_predicate, window_property_changed_cb): New
8251 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8252 (pre_event_handler): Remove insets-related logic for configure
8254 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
8255 Update postConfigureEvent signature.
8257 2004-01-13 Fernando Nasser <fnasser@redhat.com>
8259 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
8260 to handle Window "Closing" events.
8262 2004-01-13 David Jee <djee@redhat.com>
8264 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8265 (setBackground): New method. Children with no explicitly-set
8266 background will be repainted with the parent container's new
8269 2004-01-13 David Jee <djee@redhat.com>
8271 * Makefile.am: Add BitwiseXORComposite.java.
8272 * Makefile.in: Regenerated.
8273 * gcj/Makefile.in: Regenerated.
8274 * include/Makefile.in: Regenerated.
8275 * testsuite/Makefile.in: Regenerated.
8277 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8279 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
8280 not show modal dialogs twice and so that it allows showing a modal
8281 dialog from another modal dialog.
8283 2004-01-12 Fernando Nasser <fnasser@redhat.com>
8285 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
8286 and run secondary dispatch thread to process event queue while this
8289 2004-01-12 Graydon Hoare <graydon@redhat.com>
8291 * gnu/java/awt/gtk/GdkGraphics2D.java
8292 (static): Check GtkToolkit before initializing static state.
8293 (Graphics2D): Don't construct transform with 0.5 unit offset.
8295 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
8297 * gnu/java/awt/BitwiseXORComposite.java: Add.
8298 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8299 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
8300 (BitwiseXORComposite): Remove inner class.
8302 2004-01-11 Michael Koch <konqueror@gmx.de>
8304 * gnu/java/lang/reflect/TypeSignature.java
8305 (getEncodingOfClass): Documentation fixed.
8306 (getClassForEncoding): Give class loader to Class.forName().
8307 Documentation fixed.
8309 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
8311 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
8313 2004-01-11 Michael Koch <konqueror@gmx.de>
8315 * javax/swing/undo/StateEditable.java
8316 (RCSID): Removed redundant modifiers.
8318 2004-01-10 Michael Koch <konqueror@gmx.de>
8320 * javax/print/attribute/EnumSyntax.java
8321 (getStringTable): Made protected.
8322 (getEnumValueTable): Likewise.
8323 * javax/print/attribute/standard/JobKOctetsProcessed.java
8324 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
8325 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
8326 (JobMediaSheetsCompleted): Made class final.
8327 * javax/print/attribute/standard/OutputDeviceAssigned.java
8328 (getName): Fixed typo.
8329 * javax/print/attribute/standard/RequestingUserName.java
8330 (serialVersionUID): Fixed value.
8332 2004-01-10 Michael Koch <konqueror@gmx.de>
8334 * javax/swing/plaf/basic/BasicButtonUI.java,
8335 javax/swing/plaf/basic/BasicCheckBoxUI.java,
8336 javax/swing/plaf/basic/BasicListUI.java,
8337 javax/swing/plaf/basic/BasicOptionPaneUI.java,
8338 javax/swing/plaf/basic/BasicPanelUI.java,
8339 javax/swing/plaf/basic/BasicRadioButtonUI.java,
8340 javax/swing/plaf/basic/BasicScrollPaneUI.java,
8341 javax/swing/plaf/basic/BasicToggleButtonUI.java,
8342 javax/swing/plaf/basic/BasicViewportUI.java:
8343 Fixed import statements.
8345 2004-01-10 Michael Koch <konqueror@gmx.de>
8347 * gnu/java/awt/image/ImageDecoder.java
8348 (produce): Made public.
8349 * gnu/java/awt/peer/GLightweightPeer.java,
8350 gnu/java/awt/peer/gtk/GtkToolkit.java:
8353 2004-01-10 Michael Koch <konqueror@gmx.de>
8355 * javax/swing/JRadioButtonMenuItem.java,
8356 javax/swing/JSeparator.java,
8357 javax/swing/JSplitPane.java,
8358 javax/swing/JTextPane.java,
8359 javax/swing/JToolBar.java,
8360 javax/swing/ListCellRenderer.java,
8361 javax/swing/ListModel.java,
8362 javax/swing/MenuElement.java,
8363 javax/swing/OverlayLayout.java,
8364 javax/swing/ProgressMonitor.java,
8365 javax/swing/ProgressMonitorInputStream.java,
8366 javax/swing/Renderer.java,
8367 javax/swing/RootPaneContainer.java,
8368 javax/swing/Scrollable.java,
8369 javax/swing/SingleSelectionModel.java,
8370 javax/swing/ToolTipManager.java,
8371 javax/swing/ViewportLayout.java,
8372 javax/swing/event/DocumentEvent.java,
8373 javax/swing/event/SwingPropertyChangeSupport.java,
8374 javax/swing/event/TreeSelectionEvent.java,
8375 javax/swing/event/UndoableEditEvent.java,
8376 javax/swing/text/AbstractDocument.java,
8377 javax/swing/text/AttributeSet.java,
8378 javax/swing/text/Caret.java,
8379 javax/swing/text/ComponentView.java,
8380 javax/swing/text/DefaultCaret.java,
8381 javax/swing/text/DefaultEditorKit.java,
8382 javax/swing/text/Document.java,
8383 javax/swing/text/EditorKit.java,
8384 javax/swing/text/GapContent.java,
8385 javax/swing/text/Keymap.java,
8386 javax/swing/text/MutableAttributeSet.java,
8387 javax/swing/text/PlainEditorKit.java,
8388 javax/swing/text/Segment.java,
8389 javax/swing/text/Style.java,
8390 javax/swing/text/StyledDocument.java,
8391 javax/swing/text/StyledEditorKit.java,
8392 javax/swing/text/TextAction.java,
8393 javax/swing/text/View.java: Fixed import statements.
8395 2004-01-08 Graydon Hoare <graydon@redhat.com>
8397 * javax/swing/JLayeredPane.java: Rewrite to accomodate
8398 djee@redhat.com's recent inverse ordering of Container elements.
8400 2004-01-09 Michael Koch <konqueror@gmx.de>
8402 * gnu/java/lang/ArrayHelper.java
8403 (equalsArray): Removed.
8405 2004-01-09 Andrew Haley <aph@redhat.com>
8407 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
8408 a Utf8Const field before looking at its class.
8410 2004-01-09 Michael Koch <konqueror@gmx.de>
8412 * javax/print/attribute/standard/DocumentName.java,
8413 javax/print/attribute/standard/JobHoldUntil.java,
8414 javax/print/attribute/standard/JobMessageFromOperator.java,
8415 javax/print/attribute/standard/JobName.java,
8416 javax/print/attribute/standard/JobOriginatingUserName.java,
8417 javax/print/attribute/standard/OutputDeviceAssigned.java,
8418 javax/print/attribute/standard/PrinterInfo.java,
8419 javax/print/attribute/standard/PrinterLocation.java,
8420 javax/print/attribute/standard/PrinterMakeAndModel.java,
8421 javax/print/attribute/standard/PrinterMessageFromOperator.java,
8422 javax/print/attribute/standard/PrinterName.java,
8423 javax/print/attribute/standard/RequestingUserName.java: New files.
8424 * Makefile.am (javax_source_files): Added new files.
8425 * Makefile.in: Regenerated.
8427 2004-01-09 Michael Koch <konqueror@gmx.de>
8429 * javax/swing/AbstractAction.java,
8430 javax/swing/AbstractSet.java,
8431 javax/swing/Action.java,
8432 javax/swing/ActionMap.java,
8433 javax/swing/BoundedRangeModel.java,
8434 javax/swing/ButtonModel.java,
8435 javax/swing/CellEditor.java,
8436 javax/swing/CellRendererPane.java,
8437 javax/swing/ComboBoxEditor.java,
8438 javax/swing/DebugGraphics.java,
8439 javax/swing/DefaultCellEditor.java,
8440 javax/swing/DefaultCellRenderer.java,
8441 javax/swing/DefaultComboBoxModel.java,
8442 javax/swing/DefaultDesktopManager.java,
8443 javax/swing/DefaultFocusManager.java,
8444 javax/swing/DefaultListCellRenderer.java,
8445 javax/swing/Icon.java,
8446 javax/swing/JButton.java,
8447 javax/swing/JCheckBoxMenuItem.java,
8448 javax/swing/JDesktopPane.java,
8449 javax/swing/JEditorPane.java,
8450 javax/swing/JMenu.java,
8451 javax/swing/JPanel.java,
8452 javax/swing/JPasswordField.java,
8453 javax/swing/JPopupMenu.java,
8454 javax/swing/JProgressBar.java: Reworked imports.
8456 2004-01-09 Michael Koch <konqueror@gmx.de>
8458 * java/awt/geom/PathIterator.java
8459 (WIND_EVEN_ODD): Removed redundant modifiers.
8460 (WIND_NON_ZERO): Likewise.
8461 (SEG_MOVETO): Likewise.
8462 (SEG_LINETO): Likewise.
8463 (SEG_QUADTO): Likewise.
8464 (SEG_CUBICTO): Likewise.
8465 (SEG_CLOSE): Likewise.
8466 * java/awt/image/SinglePixelPackedSampleModel.java:
8467 Removed redundant semicolon.
8468 * java/io/ObjectInputStream.java
8469 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
8470 * java/util/logging/Filter.java
8471 (isLoggable): Removed redundant modifier.
8472 * java/util/logging/LogManager.java:
8473 Removed redundant semicolon.
8474 * java/util/logging/XMLFormatter.java
8475 (format): Removed unused variable "key".
8477 2004-01-08 Fernando Nasser <fnasser@redhat.com>
8479 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
8480 New name for the former setFile native method.
8481 (setFile): New method.
8482 (setDirectory): Implemented.
8483 (connectSignals): New native method.
8484 (setFilenameFilter): Improve comment.
8485 (getGraphics): Comment.
8486 (gtkHideFileDialog): New method.
8487 (gtkDisposeFileDialog): New method.
8488 (gtkSetFilename): New method.
8489 * java/awt/Dialog.java (show): Block on modal dialogs, but only
8490 for FileDialog for now.
8492 (dispose): New method.
8493 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8494 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
8495 deprecated creation functions. Make dialog modal. Add it to the
8497 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
8499 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
8501 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
8503 (window_closed): New function.
8504 (ok_clicked): New function.
8505 (cancel_clicked): New function.
8507 2004-01-08 Michael Koch <konqueror@gmx.de>
8509 * javax/swing/JLayeredPane.java: Revert changes to standard
8510 boilerplate, reworked imports.
8512 2004-01-07 Tom Tromey <tromey@redhat.com>
8515 * verify.cc (state::merge): Copy changed locals out of subroutine
8517 (state::FLAG_CHANGED): New const.
8518 (state::FLAG_UNUSED): Likewise.
8519 (state::local_changed): Removed. Updated all users.
8520 (state::flags): New field.
8521 (state::merge): Added jsr_semantics argument, more logic.
8522 (push_jump_merge): Added jsr_semantics argument.
8523 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
8524 merging through the jsr instruction.
8526 2004-01-07 Tom Tromey <tromey@redhat.com>
8528 * scripts/MakeDefaultMimeTypes.java: Use \n, not
8531 2004-01-07 Graydon Hoare <graydon@redhat.com>
8533 * java/awt/Container.java (LightweightDispatcher): Implement.
8534 (visitChild): Reuse graphics object.
8535 (dispatchEventImpl): Optionally dispatch to lightweight.
8536 (addNotifyContainerChildren): Build LightweightDispatcher.
8538 2004-01-07 David Jee <djee@redhat.com>
8540 * java/awt/Container.java
8541 (update): Clear only the clipped region, instead of clearing the
8543 (visitChildren): Visit children in descending order.
8545 2004-01-07 Michael Koch <konqueror@gmx.de>
8547 * java/lang/reflect/Array.java: Merged documentation with classpath.
8549 2004-01-07 Michael Koch <konqueror@gmx.de>
8551 * java/text/CollationElementIterator.java
8552 (textIndex): Renamed from index.
8553 * java/text/CollationKey.java
8554 (collator): New member.
8555 (CollationKey): New argument for parent collator.
8556 (equals): Check for same collator, source string and key array.
8557 * java/text/RuleBasedCollator.java:
8559 (RuleBasedCollator): Don't re-initialize frenchAccents with default
8561 (getCollationElementIterator): Rewritten.
8562 (getCollationKey): Added new argument to CollationKey constructor.
8564 2004-01-07 Michael Koch <konqueror@gmx.de>
8566 * gnu/java/nio/DatagramChannelImpl.java
8567 (blocking): Removed.
8568 (DatagramChannelImpl): Call configureBlocking().
8569 (implConfigureBlocking): Dont initialize blocking.
8570 * gnu/java/nio/ServerSocketChannelImpl.java
8571 (blocking): Removed.
8572 (ServerSocketChannelImpl): Call configureBlocking().
8573 (implConfigureBlocking): Dont initialize blocking.
8574 * gnu/java/nio/SocketChannelImpl.java
8575 (blocking): Removed.
8576 (SocketChannelImpl): Call configureBlocking().
8577 (implConfigureBlocking): Dont initialize blocking.
8578 (connect): Use isBlocking().
8579 * java/nio/channels/spi/AbstractSelectableChannel.java
8580 (configureBlocking): Use blockingLock() instead of LOCK.
8581 Set blocking after successfully called implConfigureBlocking().
8582 (register): Use blockingLock() instead of LOCK.
8584 2004-01-07 Michael Koch <konqueror@gmx.de>
8586 * java/net/ServerSocket.java (isBound): Fixed documentation.
8588 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
8590 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
8591 (changeEvent): Create event object on demand.
8592 (DefaultBoundedRangeModel, toString, setValue, setExtent,
8593 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
8594 fireStateChanged): Re-written.
8595 * javax/swing/event/EventListenerList.java: Reformatted, document
8597 (toString): Implemented.
8598 (getListeners): Re-written.
8599 (remove): Re-written.
8601 (NO_LISTENERS): New singleton field.
8602 (listenerList): Declare as transient; document.
8603 (serialVersionUID): Document.
8604 (getListenerCount(Class)): More efficient implementation,
8605 also accepts null argument. Improve Javadoc.
8606 (getListenerCount()): Remove unnecessary cast; docfix.
8607 * javax/swing/undo/UndoableEditSupport.java:
8608 Re-format, document.
8609 (UndoableEditSupport): Set realSource field. Improve documentation.
8610 (_postEdit): Iterate over cloned listener vector.
8611 (toString): Don't emit realSource.
8612 (beginUpdate, endUpdate): Support nested updates.
8613 (postEdit): Use compound edit if present.
8615 2004-01-06 Graydon Hoare <graydon@redhat.com>
8617 * java/awt/Container.java (swapComponents): Add forgotten
8618 function, required for JLayeredPane change.
8620 2004-01-06 Michael Koch <konqueror@gmx.de>
8622 * java/text/CollationElementIterator.java: Reformated.
8623 (CollationElementIterator): Changed order of arguments.
8624 * java/text/RuleBasedCollator.java
8625 (RuleBasedCollator): Merged class documentation.
8626 (CollationElement): Added documentation.
8627 (compare): Reformated, renamed arguments.
8629 (getCollationElementIterator): Likewise.
8630 (getCollationKey): Likewise.
8632 2004-01-06 Graydon Hoare <graydon@redhat.com>
8634 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
8636 2004-01-06 Michael Koch <konqueror@gmx.de>
8638 * gnu/java/net/protocol/file/Connection.java:
8639 Reformated copyright.
8642 (gotHeaders): Removed.
8643 (getHeaderField): Removed.
8644 (getHeaderField): Removed.
8645 (getHeaderFieldKey): Removed.
8647 (getField): Removed.
8648 (getHeaders): Removed.
8650 2004-01-06 Michael Koch <konqueror@gmx.de>
8652 * javax/print/attribute/standard/DateTimeAtCompleted.java,
8653 javax/print/attribute/standard/DateTimeAtCreation.java,
8654 javax/print/attribute/standard/DateTimeAtProcessing.java,
8655 javax/print/attribute/standard/JobImpressionsCompleted.java,
8656 javax/print/attribute/standard/JobKOctets.java,
8657 javax/print/attribute/standard/JobKOctetsProcessed.java,
8658 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
8659 javax/print/attribute/standard/JobPrioritySupported.java: New files.
8660 * Makefile.am (javax_source_files): Added new files.
8661 * Makefile.in: Regenerated.
8663 2004-01-06 Michael Koch <konqueror@gmx.de>
8665 * java/net/URLConnection.java
8666 (contentHandler): Removed.
8668 (getHeaderFields): Return an empty map instead of null.
8669 (getContent): Connect if needed, renamed "cType" to "type" and
8670 "contentHandler" to "ch" and made it a local variable.
8671 (getPermission): Don't use package in class name.
8672 (setDefaultRequestProperty): Fixed typo in documentation.
8673 (initializeDateFormats): Made locale a local variable.
8675 2004-01-06 Michael Koch <konqueror@gmx.de>
8677 * java/lang/Package.java
8678 (getPackage): Get the current class loader directly.
8679 * java/lang/SecurityManager.java
8680 (currentLoadedClass): Dont iterate over class contexts.
8681 (classLoaderDepth): Don't check class loaders if everything is allowed.
8683 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8685 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8686 (pre_event_handler): Set all insets to 0 when a Configure event
8687 is received for a GtkPlug.
8688 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
8689 Make handle long, not int.
8690 (EmbeddedWindow()): New constructor.
8691 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
8693 (setHandle): New method.
8694 (getHandle): Return long, not int.
8695 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
8697 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
8698 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
8699 (create(long)): Take long parameter, not int. Cast gtk_plug_new
8700 argument to GdkNativeWindow.
8701 (construct): New method.
8702 (embed): New method.
8704 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
8705 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
8706 (create(int, int)): New method.
8707 (create): Call new create method.
8708 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
8710 (childResized): Remove native implementation. Implement in
8712 (getHScrollbarHeight, getVScrollbarWidth): Call
8713 gtk_widget_size_request to get scrollbar dimensions.
8714 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
8715 call getVScrollbarWidth and getHScrollbarHeight when vertical
8716 and horizontal scrollbars respectively are needed.
8717 (doLayout): Enlarge child if it is smaller than the viewport.
8719 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8721 * java/awt/Dialog.java (constructor): Accept null title as per spec.
8722 * java/awt/FileDialog.java (constructor): Throw exception on invalid
8723 argument as per spec.
8725 2004-01-05 Fernando Nasser <fnasser@redhat.com>
8727 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
8729 (remove): Ditto. Also, Check for valid argument.
8730 (removeAll): Use peer interface method.
8731 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
8732 native add function.
8733 (nativeRemove): New name for native remove function.
8734 (getHistory): New native function.
8735 (constructor): Generate ItemEvent.
8736 (add): Ditto, if selection is changed.
8737 (remove): Ditto, ditto.
8738 (removeAll): Add implementation.
8739 (handleEvent): Remove. Dead code.
8740 (choicePostItemEvent): Add comment.
8741 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8742 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
8743 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
8744 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
8745 comments and fix condition to change selection.
8746 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
8747 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
8748 remove all capability.
8749 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
8750 (item_activate): Add cast to remove compiler warning.
8752 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
8754 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
8755 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8756 (getPreferredSize): Call preferredSize.
8757 (preferredSize): Call gtkWidgetGetPreferredDimensions.
8758 (getMinimumSize): Call minimumSize.
8759 (minimumSize): Call gtkWidgetGetPreferredDimensions.
8760 (gtkWidgetGetDimensions): Return the peer widget's current size
8762 (gtkWidgetGetPreferredDimensions): Return the peer widget's
8763 natural size request.
8765 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
8767 Thanks to Brian Gough <bjg@network-theory.com>
8768 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
8769 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
8771 2004-01-04 Matthias Klose <doko@debian.org>
8773 * aclocal.m4: Rebuilt using "aclocal -I .".
8774 * configure: Rebuilt.
8776 2004-01-03 Per Bothner <per@bothner.com>
8778 * java/util/Date.java (parse): Fix a number of problems.
8779 (skipParens): Remove no-longer-needed method.