OSDN Git Service

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