OSDN Git Service

2004-04-20 Sascha Brawer <brawer@dandelis.ch>
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2004-04-20  Sascha Brawer  <brawer@dandelis.ch>
2
3         * java/awt/image/DataBufferShort.java,
4         java/awt/image/DataBufferFloat.java,
5         java/awt/image/DataBufferDouble.java,
6         java/awt/image/PixelInterleavedSampleModel.java: New files.
7         * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
8         getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
9
10 2004-04-20  Michael Koch  <konqueror@gmx.de>
11
12         * Makefile.am (java_source_files): Added
13         java/awt/image/DataBufferDouble.java,
14         java/awt/image/DataBufferFloat.java,
15         java/awt/image/DataBufferShort.java and
16         java/awt/image/PixelInterleavedSampleModel.java.
17         * Makefile.in: Regenerated.
18
19 2004-04-19  Bryce McKinlay  <mckinlay@redhat.com>
20  
21         * gcj/cni.h (JvAllocObject): Remove these obsolete, 
22         undocumented CNI calls.
23         * include/java-interp.h (_Jv_InterpClass): No longer
24         extends java.lang.Class.
25         * java/lang/Class.h (Class): Add new field `aux_info'.
26         * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
27         * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
28         Use Class->aux_info instead.
29         * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
30         * resolve.cc: Remove Class<->_Jv_InterpClass casts.
31         Use Class->aux_info instead.
32         * java/io/natObjectInputStream.cc (allocateObject): Use
33         _Jv_AllocObject.
34         * java/lang/natClass.cc (newInstance): Likewise.
35         * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
36         * java/lang/natObject.cc (clone): Likewise.
37         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
38         * java/lang/natVMClassLoader.cc (defineClass): Don't use
39         JvAllocObject. Allocate klass->aux_info here for interpreted
40         class.
41         
42 2004-04-17  Mark Wielaard  <mark@klomp.org>
43
44         * javax/swing/JToggleButton.java (ToggleButtonModel):
45         Make public static inner class.
46         * javax/swing/JTabbedPane.java (setComponentAt):
47         Call Page.setComponent().
48         (SCROLL_TAB_LAYOUT): Make public, value is 1.
49         (WRAP_TAB_LAYOUT): Make public, value is 0.
50         * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
51         Make private static inner class.
52
53 2004-04-16  Bryce McKinlay  <mckinlay@redhat.com>
54
55         * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
56         arguments to match new signature. Remove FIXME comments.
57
58 2004-04-09  Thomas Fitzsimmons  <fitzsim@redhat.com>
59
60         * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
61         Remove method.
62         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
63         unused code.
64
65 2004-04-02  Olga Rodimina  <rodimina@redhat.com>
66
67         * Makefile.am: Added new file.
68         * Makefile.in: Regenerate.
69         * javax/swing/ImageIcon.java: 
70         (ImageIcon(file)): set description of the icon 
71         to the file name
72         * javax/swing/JCheckBoxMenuItem.java:
73         Mostly Implemented. Work in progress.
74         * javax/swing/JRadioButtonMenuItem.java:
75         Reimplement constructors to use JToggleButtonModel.
76         * javax/swing/plaf/basic/BasicIconFactory.java:
77         (getCheckBoxMenuItemIcon): return check box
78         icon.
79         * javax/swing/plaf/basic/BasicMenuItemUI.java:
80         paint menu item selected only when it is armed and 
81         pressed. 
82  
83 2004-04-02  David Jee  <djee@redhat.com>
84
85         * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
86         (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
87         * java/awt/Component.java
88         (add): Set the parent of the popup as this component.
89         * java/awt/PopupMenu.java
90         (addNotify): Create popup menu when peer is null.
91         (show): Call addNotify() if peer is null.
92         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
93         (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
94         argument for gtk_menu_popup() as zero. This causes the popup menu to
95         respond to any mouse button.
96
97 2004-03-31  Olga Rodimina  <rodimina@redhat.com>
98
99         * Makefile.am: Added new file.
100         * Makefile.in: Regenerate.
101         * javax/swing/JRadioButtonMenuItem.java:
102         Implemented.
103         * javax/swing/plaf/basic/BasicIconFactory.java:
104         (getRadioButtonMenuItemIcon): Return
105         radio button icon.
106         * javax/swing/plaf/basic/BasicMenuItemUI.java:
107         (getPreferredSize): Add size of checkIcon if it
108         exists.
109         (installDefaults): Don't initialize checkIcon.
110         It's value will be set in subclasses. 
111         (uninstallDefaults): remove uninstallation of 
112         checkIcon.
113         (paint): Moved code to paintMenuItem().
114         (paintMenuItem): Implemented.
115         * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
116         UI delegate for JRadioButtonMenuItem.
117         
118 2004-03-29  Olga Rodimina  <rodimina@redhat.com>
119
120         * javax/swing/plaf/basic/BasicMenuItemUI.java:
121         Corrected position of the accelerator.
122
123 2004-03-29  Olga Rodimina  <rodimina@redhat.com>
124
125         * Makefile.am: Added new file. 
126         * Makefile.in: Regenerate.
127         * javax/swing/JMenuItem.java: Partly 
128         implemented. Work in progress
129         * javax/swing/plaf/basic/BasicLookAndFeel.java:
130         Changed default value of acceleratorDelimiter.
131         * javax/swing/plaf/basic/BasicMenuItemUI.java:
132         New class. Partly implemented.
133                 
134 2004-03-26  Mark Wielaard  <mark@klomp.org>
135
136         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
137         (item_activate): Declare label before use.
138         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
139         (gtkSetFont): Removed unused variable label.
140         (addExposeFilter): Declare variables before use.
141         (removeExposeFilter): Likewise.
142         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
143         (ok_clicked): Declare str_fileName before use.
144
145 2004-03-26  David Jee  <djee@redhat.com>
146
147         * gnu/java/awt/peer/gtk/GtkMenuPeer.java
148         (addSeparator): Remove.
149         * java/awt/Menu.java
150         (separator): Remove static final MenuItem field.
151         (separatorLabel): New static final String field.
152         (addSeparator): Do not use peer method; use add(MenuItem) instead.
153         Use separatorLabel to denote that it is a separator.
154         (insertSeparator): Create a new MenuItem with separatorLabel, instead
155         of reusing the static separator instance, because a MenuItem instance
156         can't be added more than once without being cloned.
157         * java/awt/peer/MenuPeer.java
158         (addSeparator): Remove from interface.
159
160 2004-03-26  David Jee  <djee@redhat.com>
161
162         * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
163         (connectSignals): New native method declaration.
164         (GtkMenuItemPeer): Connect signals if the parent is a Menu.
165         * java/awt/MenuItem.java
166         (getActionCommand): Return the label if the action command is not set.
167         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
168         (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
169         gtk_menu_shell_append().
170         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
171         (item_activate): Fix argument type.
172         (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
173         signal here.
174         (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
175         method.
176         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
177         (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
178         given. Add the menu widget's top-level GtkWindow to the global window
179         group, so it can grab the pointer.
180         (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
181         gtk_menu_shell_append().
182
183 2004-03-23  Graydon Hoare  <graydon@redhat.com>
184
185         * java/text/AttributedString.java 
186         (addAttribute): Fix off-by-one.
187         (getIterator): Likewise.        
188         * java/text/AttributedStringIterator.java 
189         (getRunLimit): Correct logic.
190         (getRunStart): Likewise.
191         (getAttribute): Fix inequality.
192         (getAttributes): Likewise.
193         * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
194
195 2004-03-23  Kim Ho  <kho@redhat.com>
196
197         * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
198         (calculateSizes): Return real width and height.
199
200 2004-03-23  Kim Ho  <kho@redhat.com>
201
202         * javax/swing/plaf/basic/BasicTabbedPaneUI.java
203         (calculateTabRects): Set the selectedRun before
204         trying to rotate tabs.
205
206 2004-03-23  Kim Ho  <kho@redhat.com>
207
208         * Makefile.am: New file
209         * Makefile.in: Regenerate
210         * java/awt/Graphics.java: (drawRect):
211         Draw to the correct point.
212         * javax/swing/DefaultSingleSelectionModel.java
213         (isSelected): Return true if the selected index
214         is not -1.
215         * javax/swing/JLabel.java: Do not change mnemonic
216         index if text is null.
217         * javax/swing/JProgressBar.java: Use JComponent's
218         EventListenerList.
219         * javax/swing/JScrollBar.java: Ditto.
220         * javax/swing/JSlider.java: Ditto.
221         * javax/swing/JTabbedPane.java: Reimplement.
222         * javax/swing/plaf/basic/BasicLookAndFeel.java:
223         Add defaults for TabbedPane.
224         * javax/swing/plaf/basic/BasicArrowButton.java:
225         Implement
226         * javax/swing/plaf/basic/BasicProgressBarUI.java:
227         (paintDeterminate): Don't paint String if it's
228         empty.
229         (paintIndeterminate): ditto.
230         * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
231         Reimplement.
232
233 2004-03-19  Michael Koch  <konqueror@gmx.de>
234
235         * java/awt/image/AffineTransformOp.java
236         (AffineTransformOp): Made public.
237         * javax/swing/JComponent.java
238         (listenerList): Made protected.
239         (accessibleContext): Likewise.
240         * javax/swing/JList.java
241         (valueChanged): Dont use internal fields of ListSelectionEvent.
242         * javax/swing/JViewport.java
243         (getView): Dont use internal fields of Component.
244         (addImpl): Likewise.
245         * javax/swing/Timer.java
246         (isRunning): Made public.
247         (start): Likewise.
248         (stop): Likewise.
249         * javax/swing/UIDefaults.java
250         (getInt): Made public.
251         * javax/swing/plaf/basic/BasicListUI.java
252         (mousePressed): Dont use internal fields of MouseEvent.
253         (propertyChanged): Dont use internal fields of PropertyChangeEvent.
254         * javax/swing/plaf/basic/BasicScrollBarUI.java
255         (arrowIcon): Made static.
256         * javax/swing/plaf/basic/BasicViewportUI.java
257         (stateChanged): Dont use internal field on ChangeEvent.
258         * javax/swing/text/JTextComponent.java
259         (getUI): Call UIManager.getUI().
260         (updateUI): Use getUI().
261
262 2004-03-19  Graydon Hoare  <graydon@redhat.com>
263
264         * javax/swing/JComponent.java: Turn off double buffer by default.
265         * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
266         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
267         (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable): 
268         Use cairo to copy areas.
269         (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
270         Initialize and set clip region.
271
272 2004-03-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
273
274         * java/applet/Applet.java (preferredSize): Override deprecated
275         variant of getPreferredSize.
276         (minimumSize): Override deprecated variant of getMinimumSize.
277
278 2004-03-15  Olga Rodimina  <rodimina@redhat.com>
279
280         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
281         (drawImage(img,xform,bgcolor,obs)): New Method.
282         Helper function that every drawImage method will
283         use.
284         (drawRaster): Added new parameter, bgcolor. All
285         transparent pixels are changed to bgcolor before 
286         image is drawn.
287         (drawRenderedImage): Fixed to use changed drawRaster().
288         (drawImage(image,xform,obs): Fixed to use new helper function 
289         (drawImage(image,op,x,y)): Ditto.
290         (drawImage (img,x,y,observer)): Ditto.
291         ((PainterThread) bgcolor): New Field.
292         ((PainterThread) (setPixels)): Changed all transparent pixels 
293         to bgcolor.     
294         (drawImage(img,x,y,width,height,bgcolor,observer)): 
295         Fixed FIXME - all the transparent pixels are 
296         changed to the specified bgcolor. 
297         (drawImage(img, x, y, width, height, observer): Changed to 
298         use function above.
299         (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)): 
300         Fixed FIXME- changed all transparent pixels to bgcolor.
301         (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
302         Changed to use function above. 
303
304 2004-03-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
305
306         * java/applet/Applet.java (dimensions): New field.
307         (getDimensions): New method.
308         (getPreferredSize): Call getDimensions.
309         (getMinimumSize): Likewise.
310
311 2004-03-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
312
313         * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
314         * jni/classpath/jnilink.c: Likewise.
315
316         * java/applet/Applet.java (getPreferredSize): New method.
317         (getMinimumSize): New method.
318
319 2004-04-15  Bryce McKinlay  <mckinlay@redhat.com>
320
321         * prims.cc (_Jv_AllocObject): Remove `size' argument.
322         (_Jv_AllocObjectNoFinalizer): Likewise.
323         (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
324         (_Jv_AllocPtrFreeObject): Likewise.
325         (_Jv_AllocString): Moved from natString.cc. Call collector interface
326         directly even in the JVMPI case.        
327         * gcj/cni.h (JvAllocObject): Remove `size' argument from 
328         _Jv_AllocObject calls.
329         * gcj/javaprims.h: Update prototypes.
330         * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
331         * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
332         * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
333
334 2004-04-14  Andrew Haley  <aph@redhat.com>
335             Bryce McKinlay  <mckinlay@redhat.com>
336
337         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
338         _Jv_LookupInterfaceMethodIdx for calls to interfaces.
339         * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
340
341         * testsuite/libjava.lang/InvokeInterface.java: New file.
342         * testsuite/libjava.lang/InvokeInterface.out: New file.
343
344 2004-04-09  Ranjit Mathew  <rmathew@hotmail.com>
345         
346         * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
347         modified lookup().
348         * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
349         StackTraceElement directly.
350         (newElement): New native helper method to create StackTraceElement
351         bypassing Java access control.
352         (createStackTraceElement): Use newElement() instead of directly
353         calling StackTraceElement's constructor.
354         * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
355
356 2004-04-01  Michael Koch  <konqueror@gmx.de>
357
358         * java/lang/SecurityManager.java
359         (checkAwtEventQueueAccess): Implemented.
360
361 2004-04-01  Gary Benson  <gbenson@redhat.com>
362
363         * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
364         (_Jv_SearchMethodInClass): Likewise.
365
366 2004-03-26  Peter Moon  <peterm@miraculum.com>
367
368         * java/text/NumberFormat.java: Fix spelling of setCurrency
369         method.
370
371 2004-03-21  Anthony Green  <green@redhat.com>
372
373         * java/lang/natClass.cc (getClassLoader): Circumvent infinite
374         recursion when searching for the system ClassLoader.
375
376 2004-03-21  Ito Kazumitsu <kaz@maczuka.gcd.org>
377
378         * java/net/ServerSocket.java
379         (accept): Close the socket when error occured.
380
381 2004-03-21  Jeroen Frijters  <jeroen@frijters.net>
382
383         * java/net/URI.java (parseURI): Added unquoting.
384         (unquote): New method.
385         (quoteAuthority): Implemented.
386         (quote(String,String)): New method.
387         (quotePath): Implemented.
388         (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
389         (getSchemeSpecificPart): Removed FIXME comment.
390         (getRawAuthority): Return new rawAuthority field.
391         (getAuthority): Removed FIXME comment.
392         (getRawUserInfo): Return new rawUserInfo field.
393         (getUserInfo): Removed FIXME comment.
394         (getRawPath): Return new rawPath field.
395         (getPath): Removed FIXME comment.
396         (getRawQuery): Return new rawQuery field.
397         (getQuery): Removed FIXME comment.
398         (getRawFragment): Return new rawFragment field.
399         (getFragment): Removed FIXME comment.
400
401 2004-03-20  Michael Koch  <konqueror@gmx.de>
402
403         * java/net/URLConnection.java: Merged copyright year with classpath.
404
405 2004-03-20  Norbert Frese  <postfach@nfrese.net>
406
407         * gnu/java/rmi/server/RMIIncomingThread.java: New file.
408         * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
409         Create a new RMIObjectOuputStream/RMIObjectInputStream for every
410         rmi-message.
411         (getObjectInputStream): Return object reference, throw IOException if null.
412         (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
413         (getObjectOutputStream): Return object reference, throw IOException if null.
414         (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
415         * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
416         (UnicastConnectionManager): Throw RemoteException if port is not available.
417         (getInstance): Throw RemoteException.
418         (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
419         * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
420         Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
421         Collect Exceptions which are returned by a rmi-call and fix void returns.
422         * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
423         Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
424         * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
425         (dispatch): Answer ping messages which are sent by other java implementions.
426         (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
427         for every rmi-message and fix void return problems.
428         * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
429         (UnicastServerRef): Throw RemoteException.
430         (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
431         In some situations it is necessary to export a subclass of the class which has the _Stub.
432         For instance when the class with has the _Stub is abstract.
433         (findStubSkelClass): New method which looks for the class which has the _Stub.
434         (getClientHost): Implementated.
435         * gcc/libjava/java/rmi/server/RemoteServer.java
436         (getClientHost): Implementated.
437         * gcc/libjava/Makefile.am (rmi_java_source_files):
438         Added gnu/java/rmi/server/RMIIncomingThread.java.
439         * Makefile.in: Regenerated.
440
441 2004-03-20  Michael Koch  <konqueror@gmx.de>
442
443         * java/net/InetAddress.java
444         (getLocalHostname): Added javadoc.
445
446 2004-03-19  Per Bothner  <per@bothner.com>
447
448         * configure.in: FILE variable  overrides FLATFORM when linking
449         natFileChannelXXX.cc.
450
451         * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write):  Restored.
452         (write):  Call diag_write, as in old natFileDescriptorEcos.cc.
453
454 2004-03-19  Per Bothner  <per@bothner.com>
455
456         * gnu/gcj/convert/Input_UnicodeBig.java:  New class..
457         * gnu/gcj/convert/Input_UnicodeLittle.java:  New class.
458         * Makefile.am:  Update accordingly.
459         * gnu/gcj/convert/IOConverter.java:  Define "utf-16le" and "utf16be"
460         as aliases for UnicodeLittle and UnicodeBig.
461
462 2004-03-20  Mark Wielaard  <mark@klomp.org>
463
464         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
465         (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
466         Don't access ws when it is null.
467         (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
468         Likewise.
469
470 2004-03-19  Jeroen Frijters  <jeroen@frijters.net>
471
472         * java/lang/ThreadGroup.java (list): Changed print to println.
473
474 2004-03-19  Mark Wielaard  <mark@klomp.org>
475
476         * java/io/BufferedReader.java: Use &lt;=, not &lt;&eq; to make gjdoc
477         happy.
478
479 2004-02-10  Randolph Chung  <tausq@debian.org>
480  
481         * configure.in: Build java for hppa target.
482         * configure: Regenerate.
483         * libjava/configure.host (hppa-*): Add target.
484         * libjava/sysdeps/pa/lock.h: New file.
485
486 2004-03-19  Mark Wielaard  <mark@klomp.org>
487
488         Reported by Stephen Crawley
489         * java/io/FilePermission.java (implies): Use String.length() -1 to
490         access last char of String.
491
492 2004-03-19  Michael Koch  <konqueror@gmx.de>
493
494         * java/awt/image/AffineTransformOp.java
495         (AffineTransformOp): Made public.
496         * javax/swing/JComponent.java
497         (listenerList): Made protected.
498         (accessibleContext): Likewise.
499         * javax/swing/JList.java
500         (valueChanged): Dont use internal fields of ListSelectionEvent.
501         * javax/swing/JViewport.java
502         (getView): Dont use internal fields of Component.
503         (addImpl): Likewise.
504         * javax/swing/Timer.java
505         (isRunning): Made public.
506         (start): Likewise.
507         (stop): Likewise.
508         * javax/swing/UIDefaults.java
509         (getInt): Made public.
510         * javax/swing/plaf/basic/BasicListUI.java
511         (mousePressed): Dont use internal fields of MouseEvent.
512         (propertyChanged): Dont use internal fields of PropertyChangeEvent.
513         * javax/swing/plaf/basic/BasicScrollBarUI.java
514         (arrowIcon): Made static.
515         * javax/swing/plaf/basic/BasicViewportUI.java
516         (stateChanged): Dont use internal field on ChangeEvent.
517         * javax/swing/text/JTextComponent.java
518         (getUI): Call UIManager.getUI().
519         (updateUI): Use getUI().
520
521 2004-03-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
522
523         * verify.cc: Undef PC.
524
525 2004-03-18  Michael Koch  <konqueror@gmx.de>
526
527         * java/nio/channels/spi/AbstractSelectableChannel.java
528         (keys): Initialize at declaration.
529         (locate): keys cant be null.
530         (add): Removed.
531         (addSelectionKey): New method.
532         (removeSelectionKey): New method.
533         * java/nio/channels/spi/AbstractSelectionKey.java
534         (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
535         * java/nio/channels/spi/AbstractSelector.java
536         (provider): Javadoc added.
537         (cancelledKeys): Javadoc added.
538         (cancelKey): Javadoc added, add key to cancelledKeys.
539         (deregister): Implemented.
540
541 2004-03-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
542
543         * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
544         MAP_FAILED to void *.
545
546 2004-03-12  Graydon Hoare  <graydon@redhat.com>
547
548         * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
549         * javax/swing/JComponent.java (paint): Use persistent double buffer. 
550         * javax/swing/JList.java (ListListener): Revalidate on changes.
551         * javax/swing/JScrollPane.java: Reimplement.
552         * javax/swing/JViewport.java: Reimplement.
553         * javax/swing/ScrollPaneLayout.java: Reimplement.
554         * javax/swing/ViewportLayout.java: Tidy up.
555         * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
556         * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
557         * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
558         * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
559         backing store only.
560
561 2004-03-11  Thomas Fitzsimmons  <fitzsim@redhat.com>
562
563         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
564         (window_wm_protocols_filter): New function.
565         (window_focus_in_cb): Remove function.
566         (window_focus_out_cb): Likewise.
567         (window_focus_or_active_state_change_cb): New function.
568         (create): Add filter that removes WM_TAKE_FOCUS client messages.
569         (connectSignals): Don't attach handlers to focus-in-event or
570         focus-out-event signals.  Handle notify signal.
571
572 2004-03-11  David Jee  <djee@redhat.com>
573
574         * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
575         (gtkSetLabel): New native method declaration.
576         (setLabel): Use gtkSetLabel.
577         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
578         (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
579
580 2004-03-10  Thomas Fitzsimmons  <fitzsim@redhat.com>
581
582         * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
583         black when color argument is null.
584
585 2004-03-10  Kim Ho  <kho@redhat.com>
586
587         * java/awt/Container.java: Remove check
588         for drag events.
589
590 2004-03-10  Kim Ho  <kho@redhat.com>
591
592         * java/awt/Container.java: (visitChild):
593         Remove candidate clip. Use the component
594         clip to intersect.
595         * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
596         (handleEvent): Use the PaintEvent's clip.
597
598 2004-03-10  Kim Ho  <kho@redhat.com>
599
600         * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
601         (handleEvent): Don't set the clip for the
602         Graphics object.
603
604 2004-03-09  Graydon Hoare  <graydon@redhat.com>
605
606         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c: 
607         Fix double <-> fixed macros, reset font transform.
608         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
609         Likewise.
610
611 2004-03-09  Kim Ho  <kho@redhat.com>
612
613         * java/awt/Container.java: (visitChild): Move
614         the x and y coordinate of the component rectangle
615         to correct position.
616         (handleEvent): Forward drag events to the pressed
617         component.
618         * javax/swing/plaf/basic/BasicScrollBarUI.java:
619         Fix comments.
620         (ArrowButtonListener::mousePressed): Stop the
621         existing timer.
622         (mouseDragged): Implement.
623         (TrackListener::mousePressed): Only react if
624         the press doesn't occur on the thumb, otherwise
625         just set the offset.
626         (TrackListener::mouseReleased): Unset the isAdjusting
627         value.
628         (createIncreaseIcon): Switch icon.
629         (createDecreaseIcon): Switch icon.
630         (calculatePreferredSize): Use width.
631         (getThumbBounds): Use the top as the lower value.
632         (layoutVScrollBar): Switch the button locations.
633         (paintIncreaseHighlight): Paint correct side of thumb.
634         (paintDecreaseHighlight): ditto.
635         (valueForYPosition): Use top as the lower value.
636         * javax/swing/plaf/basic/BasicSliderUI.java:
637         Fix comments.
638         (mouseDragged): Implement.
639         (mousePressed): Only react when the thumb isn't
640         pressed, otherwise just set offset.
641         (mouseReleased): Handle a release of the thumb.
642         (scrollDueToClickInTrack): Stop the timer first.
643         * javax/swing/JProgressBar.java:
644         (setString): Fix change condition.
645         * javax/swing/JSeparator.java:
646         Remove println's.
647
648 2004-03-08  David Jee  <djee@redhat.com>
649
650         * java/awt/image/AffineTransformOp.java:
651         (filter): Use Graphics2D interface instead of directly using the
652         GdkGraphics2D peer.
653
654 2004-03-05  David Jee  <djee@redhat.com>
655
656         * gnu/java/awt/peer/gtk/GtkButtonPeer.java
657         (handleEvent): Action events are generated upon MOUSE_RELEASED.
658         * java/awt/Container.java
659         (acquireComponentForMouseEvent): Fixed.
660         (handleEvent): Fixed.
661         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
662         (state_to_awt_mods_with_button_states): New method.
663         (pre_event_handler): Fixed mouse event generation.
664
665 2004-03-05  Olga Rodimina  <rodimina@redhat.com>
666
667         gnu/java/awt/peer/gtk/GdkGraphics2D.java
668         (GdkGraphics2D (BufferedImage)): Initialize
669         pixmap associated with specified BufferedImage.
670         (setPaint): Changed implementation of Texture
671         Paint to use AffineTransformOp.
672         * java/awt/image/AffineTransformOp.java
673         (createCompatibleDestRaster): Throw RasterFormatException 
674         if resulting width or height of raster is 0.
675
676 2004-03-04  Olga Rodimina  <rodimina@redhat.com>
677
678         * java/awt/image/AffineTransformOp.java:
679         Removed unnecessary field interpolationType.
680         Formatted some of the lines to be consistent with 
681         the GNU style.
682         (AffineTransformOp): Create new RenderingHints 
683         containing specified interpolation type.
684         (createCompatibleDestImage): Implemented.
685         (createCompatibleDestRaster): Implemented.
686         (filter): Implemented.
687         (getBounds2D(BufferedImage)): Implemented.
688         (getBounds2D(Raster)): Implemented.
689         (getInterpolationType): Get interpolation value from 
690         rendering hints.
691
692 2004-03-04  David Jee  <djee@redhat.com>
693
694         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
695         (setFont): Check if child peers are null.
696
697 2004-03-04  Graydon Hoare  <graydon@redhat.com>
698
699         * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
700         .libs in -L option.
701         (libjava_arguments): Add new libraries to argument list.
702
703 2004-03-02  Olga Rodimina  <rodimina@redhat.com>
704
705         * Makefile.am: Added java/awt/image/AffineTransformOp.java
706         * Makefile.in: Re-generated.
707         * java/awt/image/AffineTransformOp.java: New Class.
708
709 2004-03-01  Olga Rodimina  <rodimina@redhat.com>
710
711         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
712         (setPaint): Interpret correctly TexturePaint's
713         anchor rectangle.
714         (drawImage): Fixed scale factors of the affine
715         transform.
716
717 2004-02-27  David Jee  <djee@redhat.com>
718
719         * gnu/java/awt/peer/gtk/GdkGraphics.java
720         (GdkGraphics(Component)): Inherit font from component.
721         (drawString): Use font style.
722         * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
723         (gtkSetFont): New native method declaration.
724         (setFont): New method.
725         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
726         (gtkSetFont): New native method declaration.
727         (setFont): Call new native method gtkSetFont.
728         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
729         (setFont): For all child components who do not their fonts set,
730         set their peers' fonts with this container's font.
731         * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
732         Move all native method declarations to the top for readability.
733         (gtkSetFont): New native method declaration.
734         (setFont): New method.
735         * java/awt/Component.java
736         (setFont): Invalidate after setting the font.
737         * java/awt/Container.java
738         (invalidateTree): New method.
739         (setFont): Invalidate the container tree after setting the font.
740         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
741         (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
742         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
743         (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
744         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
745         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
746         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
747         (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
748
749 2004-02-27  Olga Rodimina <rodimina@redhat.com>
750
751         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
752         (updateBufferedImage): New helper function.
753         Updates BufferedImage in memory if it was changed.
754         (draw): changed to update BufferedImage in memory after
755         this drawing operation
756         (fill): Ditto.
757         (draw3DRect): Ditto.
758         (fill3DRect): Ditto.
759         (clearRect): Ditto.
760         (drawRaster): Ditto.
761         (drawImage) : Ditto. Update only in case of GtkOffScreenImage with 
762         no affine transformation.
763         (drawGlyphVector): Ditto.
764
765 2004-02-26  Olga Rodimina <rodimina@redhat.com>
766
767         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
768         (isBufferedImageGraphics): New Helper function. 
769         Returns true if this graphics2d can be used to draw 
770         into buffered image and false otherwise.
771         (updateImagePixels): New Helper function. 
772         Updates pixels in the BufferedImage.
773         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
774         (getImagePixels): New function. Returns pixels
775         of the buffered image associated with 
776         this Graphics2D.
777
778 2004-02-26  David Jee  <djee@redhat.com>
779
780         * java/awt/BorderLayout.java
781         (layoutContainer): Fix width and height calculations to ensure
782         that they're non-negative.
783         * java/awt/Component.java
784         (setBackground): If c is null, inherit from closest ancestor whose
785         background color is set.
786
787 2004-02-26  Kim Ho  <kho@redhat.com>
788
789         * Makefile.am: Add new files.
790         * Makefile.in: Re-generate.
791         * javax/swing/JProgressBar.java: 
792         (JProgressBar(int, int int)): Throw
793         IllegalArgumentException if orientation is
794         invalid.
795         (JProgressBar(BoundedRangeModel)): Create
796         ChangeListener and register it. UpdateUI.
797         (getChangeListeners): Implement.
798         (setModel): Reset ChangeListener.
799         * javax/swing/JScrollBar.java: Implement.
800         * javax/swing/JSeparator.java: Implement.
801         * javax/swing/JSlider.java:
802         (JSlider(int, int, int, int)): Throw 
803         IllegalArgumentException if orientation
804         is invalid.
805         (getChangeListeners): Fix method name.
806         * javax/swing/SwingUtilities.java:
807         (layoutCompoundLabel): If there is no text,
808         set the text rectangle dimensions to 0.
809         * javax/swing/plaf/basic/BasicButtonUI.java:
810         (paint): If there is no text, don't paint it.
811         * javax/swing/plaf/basic/BasicScrollBarUI.java:
812         Implement.
813         * javax/swing/plaf/basic/BasicSeparatorUI.java:
814         Implement.
815         * javax/swing/plaf/basic/BasicSliderUI.java: 
816         (propertyChange): If the model changes, change
817         the listeners accordingly.
818
819 2004-02-25  Graydon Hoare  <graydon@redhat.com>
820
821         * javax/swing/AbstractButton.java: Add "final" qualifiers.
822         * javax/swing/JList.java: Reimplement.
823         * javax/swing/DefaultListSelectionModel.java: Reimplement.
824         * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
825         * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
826         * javax/swing/ListModel.java: Javadoc.
827         * javax/swing/ListSelectionModel.java: Add missing methods.
828         * javax/swing/AbstractListModel.java: Javadoc and corrections.
829         * javax/swing/DefaultListModel.java: Javadoc and corrections.
830         * javax/swing/ListModel.java: Javadoc and corrections.
831         * javax/swing/DefaultListCellRenderer.java: Minor tidying.
832
833 2004-02-25  David Jee  <djee@redhat.com>
834
835         * gnu/java/awt/peer/gtk/GtkFontPeer.java
836         (GtkFontPeer): Change default size to 12.
837         * gnu/java/awt/peer/gtk/GtkToolkit.java
838         (getFontPeer): Change default size to 12.
839         (getClasspathFontPeer): Likewise. Set default name to "Default".
840         * java/awt/Font.java
841         (Font(Map)): Call Font(String,Map).
842         (Font(String,Map)): If attrs is null, initialize it as an empty
843         HashMap, which will ensure that the Font will get default attributes.
844
845 2004-02-25  David Jee  <djee@redhat.com>
846
847         * gnu/java/awt/peer/gtk/GtkFontPeer.java
848         (GtkFontPeer(String,int)): Call the new constructor with size 1.
849         (GtkFontPeer(String,int,int)): New constructor with size attribute.
850         * gnu/java/awt/peer/gtk/GtkToolkit.java
851         (getFontPeer(String,int)): Call the new overload method with size 1.
852         (getFontPeer(String,int,int)): New method. Overloaded with size
853         attribute.
854         (getClasspathFontPeer): Set the size of the font.
855
856 2004-02-24  Olga Rodimina  <rodimina@redhat.com>
857
858         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
859         (bimage): New field.
860         (GdkGraphics2D): New Constructor. Constructs Graphics
861         object that can be used to draw into the Buffered Image.
862         * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
863         (GdkGraphicsEnvironment): Fixed to include public 
864         keyword.
865         (createGraphics): Implemented.
866         * gnu/java/awt/peer/gtk/GtkToolkit.java
867         (getLocalGraphicsEnvironment): Implemented.
868         * java/awt/GraphicsEnvironment.java:
869         (getLocalGraphicsEnvironment): Implemented.
870         * java/awt/image/BufferedImage.java:
871         (createGraphics): Implemented.
872                 
873 2004-02-24  David Jee  <djee@redhat.com>
874
875         * java/awt/Component.java
876         (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
877         * java/awt/Container.java
878         (addNotifyContainerChildren): Fix event enabling.
879
880 2004-02-23  Olga Rodimina  <rodimina@redhat.com>
881
882         * Makefile.am: Added 
883         gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
884         * Makefile.in: Re-generated.
885         * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
886         New Class. 
887         
888 2004-02-19  Kim Ho  <kho@redhat.com>
889
890         * Makefile.am: Add BasicProgressBarUI
891         * Makefile.in: Regenerate.
892         * javax/swing/JProgressBar.java: 
893         Re-implement.
894         * javax/swing/plaf/basic/BasicLookAndFeel.java
895         Add constants for JProgressBar.
896         * javax/swing/plaf/basic/BasicProgressBarUI.java
897         Implement.
898         * javax/swing/plaf/basic/BasicSliderUI.java
899         Change comments.
900         (calculateGeometry): New method
901         (paint): Remove unnecessary size calculations.
902
903 2004-02-18  Olga Rodimina  <rodimina@redhat.com>
904
905         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
906         (drawRaster): Fixed small error that caused
907         imageToUser transformation to be set incorrectly.
908         (toString): Implemented.
909
910 2004-02-18  David Jee  <djee@redhat.com>
911
912         * java/awt/CardLayout.java
913         (addLayoutComponent): Show the first component added as the default.
914         (removeLayoutComponent): After removing, show the next component.
915         (gotoComponent): If there is only one component, show it and return.
916
917 2004-02-18  Kim Ho  <kho@redhat.com>
918
919         * javax/swing/JSlider.java: Re-order
920         modifiers.
921         * javax/swing/JLabel.java: Re-order
922         modifiers.
923         * javax/swing/JComponent.java: 
924         (addPropertyChangeListener):
925         Implement.
926         (removePropertyChangeListener):
927         ditto.
928         (firePropertyChangeEvent):
929         ditto.
930
931 2004-02-17  David Jee  <djee@redhat.com>
932
933         * java/awt/Component.java
934         (show): Dispatch ComponentEvent via system event queue.
935         (hide): Likewise.
936         (move): Likewise.
937         (resize): Likewise.
938         (reshape): Likewise.
939         * java/awt/Window.java
940         (setBoundsCallback): Likewise.
941
942 2004-02-17  David Jee  <djee@redhat.com>
943
944         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
945         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
946         Use gtk_widget_set_size_request() instead of the deprecated
947         gtk_widget_set_usize().
948
949 2004-02-17  Kim Ho  <kho@redhat.com>
950
951         * javax/swing/JSlider.java: Fix comments and
952         make property strings constants.
953         (createStandardLabels): Use the labels
954         preferred size as bounds.
955         * javax/swing/plaf/basic/BasicSliderUI.java
956         Fix comments.
957         (ScrollHandler::actionPerformed): Don't
958         calculate the timer stop value. Let the
959         MouseListeners find the stop location.
960         (getPreferredHorizontalSize): Re-implement.
961         (getPreferredVerticalSize): ditto.
962         (getMinimumHorizontalSize): ditto.
963         (getMinimumVerticalSize): ditto.
964         (getPreferredSize): ditto.
965         (getMinimumSize): ditto.
966         (getMaximumSize): ditto.
967         (paintTicks): Use doubles to find the
968         tick location.
969         (paintHorizontalLabel):  Use preferredSize
970         as initial width and height.
971         (paintVerticalLabel): ditto.
972
973 2004-02-17  Kim Ho  <kho@redhat.com>
974
975         * javax/swing/JLabel.java: Changed 
976         property strings to constants.
977         (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
978         New property.
979         (setText): Change mnemonic index if
980         text is too short.
981         (setDisplayedMnemonicIndex): Fire property
982         change event.
983         (getDisplayedMnemonicIndex): Remove check
984         against short text.
985
986 2004-02-17 Olga Rodimina <rodimina@redhat.com>
987
988         * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
989         (drawImage(img,xform,obs)): Invert xform before
990         passing the xform to cairo.
991         (drawImage(img,x,y,bgcolor,obs)): Implemented.
992         (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
993         implemented.
994         (drawImage (img,x,y,w,h,obs)): Implemented.
995         (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
996         bgcolor,obs)): Partly implemented.
997         (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
998         Implemented.
999         * java/awt/image/BufferedImage.java:
1000         (copyData): if dest is null, create raster with same
1001         dimensions as the current image.
1002
1003 2004-02-16  Graydon Hoare  <graydon@redhat.com>
1004
1005         * javax/swing/plaf/basic/BasicLabelUI.java 
1006         (getPreferredSize): Use layoutCL.
1007         * javax/swing/plaf/basic/BasicGraphicsUtils.java 
1008         (getPreferredButtonSize): Start with empty view rect, layout using
1009         component's preferred alignment.
1010         * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
1011         List defaults.
1012
1013 2004-02-16  David Jee  <djee@redhat.com>
1014
1015         * java/awt/Component.java
1016         (show): Dispatch COMPONENT_SHOWN ComponentEvent.
1017         (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
1018         (move): Erase old bounds and repaint new bounds. Dispatch
1019         COMPONENT_MOVED ComponentEvent.
1020         (resize): Erase old bounds and repaint new bounds. Dispatch
1021         COMPONENT_RESIZED ComponentEvent.
1022         (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
1023         ComponentEvents.
1024         * java/awt/Window.java
1025         (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
1026         ComponentEvents.
1027
1028 2004-02-16  Olga Rodimina  <rodimina@redhat.com>
1029
1030         * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
1031         (setRenderingHint): Added implementation of 
1032         Interpolation rendering hints.
1033         (setRenderingHints): Ditto.
1034         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
1035         (drawPixels): fixed to allow user to choose type 
1036         of filtering that should be used when displaying images.
1037         (cairoSurfaceSetFilter): New method. Sets filter type for 
1038         interpolation of pixel values.
1039
1040 2004-02-16  David Jee  <djee@redhat.com>
1041
1042         * java/awt/GridBagLayout.java
1043         (calcCellSizes): Rows or columns with zero sizes should still be
1044         considered for extra space distribution.
1045
1046 2004-02-16  Kim Ho  <kho@redhat.com>
1047
1048         * javax/swing/JLabel.java: Re-implement.
1049         * javax/swing/plaf/basic/BasicLabelUI.java
1050         Re-implement.
1051         * javax/swing/plaf/basic/BasicLookAndFeel.java:
1052         Added constant.
1053
1054 2004-02-16  Kim Ho  <kho@redhat.com>
1055
1056         * javax/swing/JSlider.java: Fix indentation and comments.
1057         (setModel): Remove null check to conform with Sun's.
1058         (setOrientation): Throw exception if not
1059         HORIZONTAL or VERTICAL.
1060         (getInverted): Use private variable instead of 
1061         ComponentOrientation.
1062         (setInverted): ditto.
1063         * javax/swing/plaf/basic/BasicSliderUI.java:
1064         Fix indentation and comments.
1065         (propertyChange): Remove check for inverted slider, handle
1066         in main paint.
1067         (getMinimumSize): Return preferred size.
1068         (getMaximumSize): ditto.
1069         (calculateFocusRect): Don't relocate rectangle.
1070         (drawInverted): Return XOR of the slider's inversion and 
1071         the component's orientation.
1072         (paint): Update leftToRightCache
1073
1074 2004-02-13  David Jee  <djee@redhat.com>
1075
1076         * java/awt/GridBagLayout.java
1077         (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
1078         code to helper methods.
1079         (sortBySpan): New helper method.
1080         (distributeSizeAndWeight): Likewise.
1081         (calcCellWeights): Likewise.
1082         (calcCellSizes): Add comments.
1083
1084 2004-02-13  David Jee  <djee@redhat.com>
1085
1086         * java/awt/Component.java
1087         (show): Only do something if component is invisible at the moment.
1088         (hide): Only do something if component is visible at the moment.
1089         (reshape): If lightweight, erase old bounds and repaint new bounds.
1090
1091 2004-02-13  Kim Ho  <kho@redhat.com>
1092
1093         * Makefile.am: Updated for new file.
1094         * Makefile.in: Regenerated.
1095         * javax/swing/JSlider.java: Reimplement.
1096         * javax/swing/SwingUtilities.java
1097         (layoutCompoundLabel): Use icon height
1098         instead of width.
1099         (paintComponent): Implement.
1100         * javax/swing/plaf/basic/BasicLookAndFeel.java:
1101         Add JSlider defaults.
1102         * javax/swing/plaf/basic/BasicSliderUI.java:
1103         Implement. New file.
1104
1105 2004-03-17  Michael Koch  <konqueror@gmx.de>
1106
1107         * gnu/java/net/PlainDatagramSocketImpl.java
1108         (RECEIVE_LOCK): New member field.
1109         (SEND_LOCK): New member field.
1110         (send0): New method.
1111         (send): Synchronize on SEND_LOCK.
1112         (receive0): New method.
1113         (receive): Synchronize on RECEIVE_LOCK.
1114         * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
1115         gnu/java/net/natPlainDatagramSocketImplPosix.cc,
1116         gnu/java/net/natPlainDatagramSocketImplWin32.cc
1117         (send0): Renamed from send.
1118         (receive0): Renamed from receive.
1119 2004-03-17  Michael Koch  <konqueror@gmx.de>
1120
1121         * gnu/java/net/natPlainSocketImplPosix.cc
1122         (write): Just call write(jbyteArray, offset, len).
1123         (read): Just call read(jbyteArray, offset, len).
1124
1125 2004-03-16  Michael Koch  <konqueror@gmx.de>
1126
1127         * javax/swing/JTabbedPane.java
1128         (serialVersionUID): New field.
1129
1130 2004-03-16  Norbert Frese  <postfach@nfrese.net>
1131
1132         * java/net/InetAddress.java
1133         (getByName): Handle hostname == "" case.
1134
1135 2004-03-16  Dalibor Topic  <robilad@kaffe.org>
1136
1137         Reported by: Adam Heath <doogie@debian.org>
1138         * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
1139         class loader.
1140
1141 2004-03-15  Michael Koch  <konqueror@gmx.de>
1142
1143         * java/util/Locale.java: Reverting my last patch
1144         and add a comment why the original version was okay.
1145
1146 2004-03-14  Andreas Tobler <a.tobler@schweiz.ch>
1147
1148         * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
1149         munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
1150         (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
1151         (MappedByteBufferImpl::forceImpl): Use msync_adptor.
1152
1153 2004-03-12  Michael Koch  <konqueror@gmx.de>
1154
1155         * java/text/DateFormatSymbols.java: Fixed file name in copyright.
1156
1157 2004-03-12  Ito Kazumitsu  <ito.kazumitsu@hitachi-cable.co.jp>
1158
1159         * java/net/URI.java (toURL): Implemented.
1160
1161 2004-03-12  Ito Kazumitsu  <ito.kazumitsu@hitachi-cable.co.jp>
1162
1163         * java/net/URI.java
1164         (URI_REGEXP) updated to contain scheme specific part.
1165         (SCHEME_SPEC_PART_GROUP) new constant.
1166         (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
1167         updated to make room for SCHEME_SPEC_PART_GROUP.
1168         (parseURI) parse scheme specific part.
1169         (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
1170         getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
1171         getQuery, getFragment) implemented.
1172
1173 2004-03-12  Dalibor Topic  <robilad@kaffe.org>
1174
1175         * libraries/javalib/java/net/URI.java
1176         partially implemented using java.util.regex.
1177         (URI_REGEXP) new constant. Used to parse URIs.
1178         (SCHEME_GROUP) new constant representing index of scheme group
1179         in parsed URI.
1180         (AUTHORITY_GROUP) new constant representing index of authority
1181         group in parsed URI.
1182         (PATH_GROUP) new constant representing index of path group in
1183         parsed URI.
1184         (QUERY_GROUP) new constant representing index of query group in
1185         parsed URI.
1186         (FRAGMENT_GROUP) new constant representing index of fragment
1187         group in parsed URI.
1188         (getURIGroup) new static utility method.
1189         (parseURI) implemented.
1190         (quote) stub for new static utility method.
1191         (quoteAuthority) stub for new static utility method.
1192         (quoteHost) stub for new static utility method.
1193         (quotePath) stub for new static utility method.
1194         (quoteUserInfo) stub for new static utility method.
1195         (URI) implemented.
1196         (create) don't throw URISyntaxException. Implemented.
1197         (toString) implemented.
1198
1199 2004-03-12  Michael Koch  <konqueror@gmx.de>
1200
1201         * java/net/HttpURLConnection.java
1202         (getResponseCode): Fix another typo in javadoc.
1203
1204 2004-03-11  Michael Koch  <konqueror@gmx.de>
1205
1206         * java/util/logging/Level.java
1207         (parse): Use String.equals() instead of ==.
1208
1209 2004-03-11  Michael Koch  <konqueror@gmx.de>
1210
1211         * gnu/java/net/protocol/jar/Connection.java
1212         (getContentLength): New method.
1213
1214 2004-03-11  Michael Koch  <konqueror@gmx.de>
1215
1216         * gnu/java/net/PlainSocketImpl.java:
1217         Reformated to merge better with classpath's version.
1218
1219 2004-03-11  Michael Koch  <konqueror@gmx.de>
1220
1221         * java/util/Locale.java
1222         (getISO3Language): Use String.equals() instead of ==.
1223         (getISO3Country): Likewise.
1224
1225 2004-03-11  Dalibor Topic  <robilad@kaffe.org>
1226
1227         * java/text/AttributedString.java
1228         (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
1229         Use HashMap instead of Hashtable since value can be null, and
1230         you can not store a null value in a Hashtable.
1231
1232 2004-03-11  Guilhem Lavaux <guilhem@kaffe.org>
1233
1234         * java/text/AttributedStringIterator.java
1235         (getAllAttributesKey): Return only keys concerned
1236         by the current iterator.
1237         (getAttributes): Use strict inequality for
1238         end_index. 
1239
1240 2004-03-11  Michael Koch  <konqueror@gmx.de>
1241
1242         * java/net/HttpURLConnection.java:
1243         Fixed typo in javadoc.
1244
1245 2004-03-11  Guilhem Lavaux  <guilhem@kaffe.org>
1246
1247         * java/io/BufferedInputStream.java (marktarget): New field for max
1248         mark limit.
1249         (CHUNKSIZE): New constant for incremental mark buffer allocation.
1250         (mark): Use new fields.
1251         (read): Likewise.
1252         (read(byte[],int,int)): Likewise.
1253         (skip): Likewise.
1254         (refill): Likewise.
1255
1256 2004-03-11  Mark Wielaard  <mark@klomp.org>
1257
1258         * java/beans/BeanDescriptor.java (BeanDescriptor):
1259         Set the FeatureDescriptor programmatic name.
1260
1261 2004-03-11  Michael Koch  <konqueror@gmx.de>
1262
1263         * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
1264         This file was was just copied form java/io/natFileDescriptorEcos.cc
1265         and never changed to compile correctly.
1266
1267 2004-03-11  Michael Koch  <konqueror@gmx.de>
1268
1269         * gnu/java/nio/PipeImpl.java
1270         (SourceChannelImpl): Made final.
1271         (read): Implemented.
1272         (SinkChannelImpl): Made final.
1273         (write): Implemented.
1274
1275 2004-03-11  Michael Koch  <konqueror@gmx.de>
1276
1277         * gnu/java/net/PlainDatagramSocketImpl.java:
1278         Reformated to match classpath's version more.
1279
1280 2004-03-11  Michael Koch  <konqueror@gmx.de>
1281
1282         * gnu/java/awt/peer/ClasspathFontPeer.java:
1283         Fixed javadoc to be correct xhtml.
1284         * gnu/java/awt/peer/gtk/GtkArgList.java
1285         (add): Use Boolean.valueOf() instead of new Boolean().
1286
1287 2004-03-09  Michael Koch  <konqueror@gmx.de>
1288
1289         * java/lang/Thread.java
1290         (runnable): Moved around.
1291         (daemon): Renamed from daemon_flag.
1292         (contextClassLoader): Renamed from context_class_loader.
1293         (Thread): Reordered constructors.
1294         (activeCount): Use group directly.
1295         (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
1296         (holdsLock): Reworked javadoc.
1297         (setDaemon): Reworked.
1298         * java/lang/natThread.cc
1299         (destroy): Removed.
1300
1301 2004-03-08  Anthony Green  <green@redhat.com>
1302
1303         * Makefile.am: Build property resource files into libgcj.
1304         * Makefile.in: Rebuilt.
1305         * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
1306         java/util/regex/PatternSyntaxException.java,
1307         gnu/regexp/CharIndexed.java,
1308         gnu/regexp/CharIndexedCharArray.java,
1309         gnu/regexp/CharIndexedInputStream.java,
1310         gnu/regexp/CharIndexedReader.java,
1311         gnu/regexp/CharIndexedString.java,
1312         gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
1313         gnu/regexp/REException.java,
1314         gnu/regexp/REFilterInputStream.java,
1315         gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
1316         gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
1317         gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
1318         gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
1319         gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
1320         gnu/regexp/RETokenLookAhead.java,
1321         gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
1322         gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
1323         gnu/regexp/RETokenStart.java,
1324         gnu/regexp/RETokenWordBoundary.java,
1325         gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
1326
1327 2004-03-03  Per Bothner  <per@bothner.com>
1328
1329         * java/nio/channels/Channels.java (newInputStream, newOutputStream):
1330         Optimize when argument is a FileChannelImpl.
1331         (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
1332         New native methods.
1333         * java/nio/channels/natChannels.cc:  New file for new native methods.
1334         * Makefile.am:  Update accordingly.
1335
1336 2004-03-02  Jan Hubicka  <jh@suse.cz>
1337
1338         * configure.host: Pass -fno-omit-frame-pointer for i386.
1339         * configure.in: Likewise.
1340         * configure: Regenerate.
1341
1342 2004-03-01  Per Bothner  <per@bothner.com>
1343
1344         * java/lang/natPosixProcess.cc (startProcess):  Fix thinko.
1345
1346 2004-02-29  Per Bothner  <per@bothner.com>
1347
1348         * java/nio/channels/FileChannelImpl.java:  Moved to package
1349         gnu/java/nio/channels, since we need to refer to it from java.io.
1350         * java/nio/channels/natFileChannelImpl.cc:  Removed file.
1351         * gnu/java/nio/channels/FileChannelImpl.java:  New class, renamed
1352         from java/nio/channels.  Don't depend on FileDescriptor.
1353         (in, out, err):  New static fields.
1354         (mode):  New field.
1355         (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC):  Moved constants
1356         from FileDescriptor.
1357         (by):  Removed MappedByteBuffer field.
1358         (map):  New working implementation.
1359         * gnu/java/nio/channels/natFileChannelPosix.cc:  New file, though
1360         some code "ported" from natFileDescriptoPosix.cc.
1361         * gnu/java/nio/channels/natFileChannelEcos.cc:  Likewise.
1362         * gnu/java/nio/channels/natFileChannelWin32.cc  Likewise.
1363         * java/io/FileDescriptor.java:  Implement on top of FileChannel.
1364         Remove native methods.
1365         * Makefile.am, configure.in:  Updated accordingly.
1366
1367         * gnu/java/nio/FileLockImpl.java (fd):  Remove field, replacing it by:
1368         (ch):  New FileChannelImpl field.  Update constructor to match.
1369         (releaseImpl):  Remove native method.  Instead ...
1370         (release):  Call unlock on channel.
1371         * gnu/java/nio/natFileLockImpl.cc:  Removed file.
1372
1373         * java/io/natFileDescriptorEcos.cc:  Remove file.
1374         * java/io/natFileDescriptorPosix.cc:  Remove file.
1375         * java/io/natFileDescriptorWin32.cc:  Remove file.
1376         * java/io/FileInputStream.java (ch):  Change type to FileChannelImpl.
1377         (<init>(File)):  Allocate a FileChannelImpl, not a FileDescriptor.
1378         (<init>(FileChannelImpl)):  New package-private constructor.
1379         (<init>(FileDescriptor)):  Extract FileChannelImpl from arg.
1380         (available, close, read, skip):  Implement using FileChannelImpl.
1381         (getFD):  Allocate FileDescriptor if needed.
1382         (getChannel):  Is now trivial.
1383         * java/io/FileOutputStream.java:  Corresponding changes.
1384         * java/io/RandomAccessFile.java:  Corresponding changes.
1385
1386         * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
1387         unmapImpl):  New dummy methods, to be overridden by subclass.
1388         (finalize, isLoaded, load, force):  New methods.
1389         * java/nio/MappedByteBufferImpl.java:  More-or-less rewrite.
1390         Now works, at least for read mapping.
1391
1392         * java/lang/natPosixProcess.cc (startProcess):  Implement standard
1393         streams using FileChannelImpl, not FileDescriptor.
1394         * java/lang/natWin32Process.cc (startProcess):  Likewise.
1395
1396 2004-02-28  Michael Koch  <konqueror@gmx.de>
1397
1398         * java/io/ObjectInputStream.java: Compile fix, damn I commited the
1399         wrong code.
1400
1401 2004-02-28  Guilhem Lavaux <guilhem@kaffe.org>
1402
1403         * java/io/ObjectInputStream.java
1404         (readClassDescriptor): Keep elements of the mapping non null.
1405         (checkTypeConsistency): New method.
1406         (readFields): Fixed main loop and base logic. Small reindentation.
1407         * java/io/ObjectStreamField.java
1408         (lookupField): New method to update the field reference.
1409         (checkFieldType): New method.
1410         * java/io/ObjectStreamClass.java
1411         (setClass, setFields): Call lookupField when building the field
1412         database. Check the real field type.
1413
1414 2004-02-28  Michael Koch  <konqueror@gmx.de>
1415
1416         * java/nio/ByteOrder.java
1417         (nativeOrder): Use equals() to compare strings.
1418
1419 2004-02-26  Michael Koch  <konqueror@gmx.de>
1420
1421         * gnu/java/nio/FileLockImpl.java
1422         (finalize): Made protected.
1423         * java/nio/channels/FileChannel.java
1424         (MapMode.READ_ONLY): Made final.
1425         (MapMode.READ_WRITE): Made final.
1426         (MapMode.PRIVATE): Made final.
1427         * java/nio/channels/SocketChannel.java
1428         (open): Simplified code.
1429         * java/nio/channels/spi/AbstractSelectableChannel.java
1430         (registered): Unused, removed.
1431         (keyFor): Check channel is open, only locate key
1432         and not add a new one.
1433         (register): Don't delete attachments.
1434
1435 2004-02-26  Michael Koch  <konqueror@gmx.de>
1436
1437         * gnu/java/awt/ComponentDataBlitOp.java
1438         (INSTANCE): Made final.
1439         * gnu/java/awt/image/ImageDecoder.java:
1440         Reworked imports.
1441         (cm): Unused, removed.
1442
1443 2004-02-26  Michael Koch  <konqueror@gmx.de>
1444
1445         * gnu/java/nio/DatagramChannelImpl.java
1446         (send): Check if target address is resolved.
1447
1448 2004-02-26  Michael Koch  <konqueror@gmx.de>
1449
1450         * Makefile.am: Generate and install headers for inner classes in
1451         java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
1452         * Makefile.in: Regenerated.
1453
1454 2004-02-24  Anthony Green  <green@redhat.com>
1455
1456         * java/lang/StringBuffer.java: No need to NULL out remainder of
1457         buffer since ensureCapacity_unsynchronized will have done this for
1458         us.
1459
1460 2004-02-20  Michael Koch  <konqueror@gmx.de>
1461
1462         * gnu/java/net/protocol/jar/Handler.java
1463         (): Removed unneeded check for file != null. java.net.URL.getFile()
1464         returns an empty string but never null.
1465
1466 2004-02-20  Michael Koch  <konqueror@gmx.de>
1467
1468         * gnu/gcj/convert/Convert.java
1469         (main): Use equals() to compare strings.
1470
1471 2004-02-20  Michael Koch  <konqueror@gmx.de>
1472
1473         * javax/swing/AbstractButton.java: Made several constants final.
1474         (getRolloverSelectedIcon): Made public.
1475         (getSelectedIcon): Made public.
1476
1477 2004-02-16  Per Bothner  <per@bothner.com>
1478
1479         * java/nio/CharBufferImpl.java:  Inline super constructor.
1480         * java/nio/DoubleBufferImpl.java:  Likewise.
1481         * java/nio/FloatBufferImpl.java:  Likewise.
1482         * java/nio/IntBufferImpl.java:  Likewise.
1483         * java/nio/LongBufferImpl.java:  Likewise.
1484         * java/nio/ShortBufferImpl.java:  Likewise.
1485         * java/nio/CharBuffer.java:  Remove unused constructor.
1486         * java/nio/DoubleBuffer.java:  Likewise.
1487         * java/nio/FloatBuffer.java:  Likewise.
1488         * java/nio/IntBuffer.java:  Likewise.
1489         * java/nio/LongBuffer.java:  Likewise.
1490         * java/nio/ShortBuffer.java:  Likewise.
1491         * java/nio/CharViewBufferImpl.java:  New convenience constructor.
1492         Fix buggy call to super constructor.
1493         * java/nio/DoubleViewBufferImpl.java:  Likewise.
1494         * java/nio/FloatViewBufferImpl.java:  Likewise.
1495         * java/nio/IntViewBufferImpl.java:  Likewise.
1496         * java/nio/LongViewBufferImpl.java:  Likewise.
1497         * java/nio/ShortViewBufferImpl.java:  Likewise.
1498         
1499         * java/nio/ByteBuffer.java (endian):  Make non-private so other
1500         java.nio classes can inherit it.
1501         (<init>):  Don't bother clearing array_offset.
1502         * java/nio/ByteBuffer.java (allocate):  Re-implement using wrap.
1503         * java/nio/ByteBuffer.java (get(byte[],int,int)):  Check underflow.
1504         Remove redundant test.
1505
1506         * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
1507         asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
1508         Use new XxxViewBufferImpl constructors.
1509         * java/nio/MappedByteBufferImpl.java:  Likewise.
1510         * java/nio/DirectByteBufferImpl.java:  Likewise.
1511
1512         * java/nio/ByteBufferImpl.java:  Remove one constructor.
1513         Inline super in remaining constructor.
1514         * java/nio/ByteBuffer.java:  Remove unused constructor.
1515
1516         * java/nio/ByteBufferImpl.java (shiftDown):  New optimized method.
1517
1518         * java/nio/ByteBufferImpl.java (get, put):  Add array_offset.
1519         * java/nio/DirectByteBufferImpl.java (owner):  New field.
1520         (offset):  Remove unused field.
1521         (<init>):  Modify one and add another constructor.  Change callers.
1522         (allocateDirect):  Removed - not used.
1523         (getImpl, putImpl):  Make static and pass address explicitly,
1524         to make them useful for MappedByteBufferImpl.
1525         (get, put):  Check for underflow.  Modify for new getImpl.
1526         (getImpl):  New native method where target is array.
1527         (get(byte[],int,int)):  Use the above.
1528         (adjustAddress):  New static native method.
1529         (slice, duplicate, asReadOnly):  New implementations.
1530         * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
1531         adjustAddress):  New or updated native methods.
1532
1533 2004-02-15  Ito Kazumitsu  <kaz@maczuka.gcd.org>
1534
1535         * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
1536         overflow of fieldmapping.
1537
1538 2004-02-14  Sascha Brawer  <brawer@dandelis.ch>
1539
1540         * javax/swing/undo/UndoManager.java: Re-written from scratch.
1541
1542 2004-02-14  Per Bothner  <per@bothner.com>
1543
1544         * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
1545         Set closed before calling implCloseChannel, as in the spec.
1546
1547 2004-02-09  Graydon Hoare  <graydon@redhat.com>
1548
1549         * javax/swing/ToggleButtonModel.java: Remove dead class.
1550         * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
1551         * javax/swing/plaf/basic/BasicButtonListener.java: New class.
1552         * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
1553         * Makefile.am: Update for new and removed files.
1554         * Makefile.in: Regenerate.
1555
1556         * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
1557         * javax/swing/AbstractButton.java 
1558         (AbstractButton): Initialize fields correctly in ctor.
1559         * javax/swing/JCheckbox.java 
1560         (JCheckBox): Override painting flags.
1561         * javax/swing/DefaultButtonModel.java: Conform to sun.
1562         * javax/swing/JComponent.java (paint): Fill with background color
1563         if available.
1564         (processComponentKeyEvent)
1565         (processFocusEvent)
1566         (processKeyEvent)
1567         (processMouseMotionEvent): Remove event-consuming empty methods.
1568         (getUIClassID): Return "ComponentUI" not "JComponent"
1569         * javax/swing/JFrame.java: Remove some debugging chatter.
1570         (JFrame): Subscribe to window events.
1571         * javax/swing/JRadioButton.java 
1572         (JRadioButton): Override painting flags.
1573         * javax/swing/JRootPane.java 
1574         (JRootPane): Set background from UIDefaults.
1575         * javax/swing/JToggleButton.java 
1576         (ToggleButtonModel): New inner class.
1577         (JToggleButton): Override layout alighment.
1578         * javax/swing/SwingUtilities.java:
1579         (getLocalBounds): Return width and height, not x and y.
1580         (calculateInnerArea): Use local bounds, not bounds.
1581         (layoutCompoundLabel): Provide overridden form.
1582         (layoutCompoundLabel): Correct bugs.
1583         * javax/swing/UIDefaults.java: Correct comment.
1584         * javax/swing/plaf/basic/BasicButtonUI.java: 
1585         Move most logic into defaults, external listener.
1586         (paintIcon): Implement icon painting.
1587         (paint): Fix state painting to conform to changes in model.
1588         * javax/swing/plaf/basic/BasicCheckBoxUI.java:
1589         Remove most dead/wrong methods.
1590         (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
1591         * javax/swing/plaf/basic/BasicIconFactory.java:
1592         (DummyIcon): New class.
1593         (getMenuItemCheckIcon)
1594         (getMenuItemArrowIcon) 
1595         (getMenuArrowIcon)
1596         (getCheckBoxMenuItemIcon)
1597         (getRadioButtonMenuItemIcon)
1598         (createEmptyFrameIcon): Return DummyIcons, not null.
1599         (getCheckBoxIcon): Implement an icon that looks like sun's.
1600         (getRadioButtonIcon): Implement an icon that looks like sun's.
1601         * javax/swing/plaf/basic/BasicLookAndFeel.java 
1602         (initComponentDefaults): Fix impossible values, add some missing.
1603         * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
1604         * javax/swing/plaf/basic/BasicRadioButtonUI.java:
1605         Remove most dead/wrong methods.
1606         (icon): New field.
1607         (getDefaultIcon): New method.
1608         * javax/swing/plaf/basic/BasicToggleButtonUI.java:
1609         Remove most dead/wrong methods.
1610         * javax/swing/plaf/metal/MetalLookAndFeel.java
1611         (getDefaults): Return super.getDefaults(), not BasicDefaults.
1612         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1613         (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
1614         Implement "clearing" as drawing, when on pixmap drawables.
1615
1616         * javax/swing/JButton.java (getUIClassID): 
1617         * javax/swing/JCheckBox.java (getUIClassID):
1618         * javax/swing/JEditorPane.java (getUIClassID):
1619         * javax/swing/JLabel.java (getUIClassID): 
1620         * javax/swing/JList.java (getUIClassID): 
1621         * javax/swing/JOptionPane.java (getUIClassID): 
1622         * javax/swing/JPanel.java (getUIClassID): 
1623         * javax/swing/JPasswordField.java (uiClassID): 
1624         * javax/swing/JRadioButton.java (getUIClassID): 
1625         * javax/swing/JRootPane.java (getUIClassID): 
1626         * javax/swing/JScrollPane.java (getUIClassID): 
1627         * javax/swing/JTabbedPane.java (getUIClassID): 
1628         * javax/swing/JToggleButton.java (getUIClassID): 
1629         * javax/swing/JTree.java (getUIClassID): 
1630         * javax/swing/JViewport.java (getUIClassID): 
1631         * javax/swing/text/JTextComponent.java (getUIClassID):
1632         Return "fooUI" not "Jfoo"
1633
1634 2004-02-11  Michael Koch  <konqueror@gmx.de>
1635
1636         * java/net/DatagramSocket.java
1637         (setReuseAddress): Use Boolean.valueOf() instead of creating a new
1638         Boolean object.
1639         (setBroadcast): Likewise.
1640         * java/net/MulticastSocket.java
1641         (setLoopbackMode): Likewise.
1642         * java/net/ServerSocket.java
1643         (setReuseAddress): Likewise.
1644         * java/net/Socket.java
1645         (setTcpNoDelay): Likewise.
1646         (setSoLinger): Likewise.
1647         (setOOBInline): Likewise.
1648         (setKeepAlive): Likewise.
1649         (setReuseAddress): Likewise.
1650         * java/net/URLConnection.java
1651         (setContentHandler): Replace == with equals().
1652         * java/net/URLStreamHandler.java
1653         (hostSEquals): Fix checking host addresses.
1654         (toExternalForm): Dont check protocol for null. We know already its
1655         not null.
1656
1657 2004-02-10  David Jee  <djee@redhat.com>
1658
1659         * java/awt/BorderLayout.java
1660         (calcCompSize): Invisible components get zero dimensions.
1661         * java/awt/Button.java
1662         (setLabel): Set actionCommand.
1663         * java/awt/Component.java
1664         (show): Invalidate component and parent container.
1665         (hide): Likewise.
1666
1667 2004-02-10  David Jee  <djee@redhat.com>
1668
1669         * java/awt/GridBagLayout.java
1670         (GridBagLayout): New private field, internalcomptable.
1671         (lookupInternalConstraints): New method.
1672         (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
1673         (GetLayoutInfo): Reimplement.
1674         (calcCellSizes): Ignore rows/columns with size 0.
1675
1676 2004-02-10  Michael Koch  <konqueror@gmx.de>
1677
1678         * gnu/java/awt/EmbeddedWindow.java
1679         (setHandle): Use java.awt.Component.getPeer() instead of
1680         java.awt.Component.peer directly.
1681
1682 2004-02-10  David Jee  <djee@redhat.com>
1683
1684         * gnu/java/awt/peer/gtk/GtkButtonPeer.java
1685         (gtkSetLabel): New native method definition.
1686         (setLabel): Use gtkSetLabel.
1687         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1688         (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
1689
1690 2004-02-10  Alan Modra  <amodra@bigpond.net.au>
1691
1692         * include/powerpc-signal.h: Revert 2004-01-21 change.
1693         (INIT_SEGV, INIT_FPE): Provide powerpc64 versions.  Check return
1694         from syscall for ppc32 versions.
1695
1696 2004-02-08  Per Bothner  <per@bothner.com>
1697
1698         * java/nio/ByteBuffer.java (shiftDown):  New helper method.
1699         * java/nio/natDirectByteBufferImpl.cc (shiftDown):  New implementation.
1700         * java/nio/ByteBufferImpl.java (compact):  Use new shiftDown method.
1701         * sava/nio/ByteBufferHelper.java:  Remove redundant 'final' specifiers.
1702         Pass ByteOrder parameter to most methods, since the underlying
1703         ByteBuffer's order isn't always what we should use.
1704         * java/nio/ByteBufferImpl.java:  Pass byte-order various places.
1705         * java/nio/DirectByteBufferImpl.java:  Likewise.
1706         Use ByteBufferHelper methods.
1707         * java/nio/MappedByteBufferImpl.java:  Likewise.
1708         (compact):  Use shiftDown.
1709         * java/nio/CharViewBufferImpl.java (<init>):  Pass byte-order.
1710         (get, put):  Use ByteBufferHelper.
1711         (compact):  Use new shiftDown method.
1712         (duplicate(boolean)):  New helper method.
1713         (duplicate, asReadOnlyBuffer):  Use it.
1714         (order):  Return endian field.
1715         * java/nio/DoubleViewBufferImpl.java:  Likewise.
1716         * java/nio/FloatViewBufferImpl.java:  Likewise.
1717         * java/nio/IntViewBufferImpl.java:  Likewise.
1718         * java/nio/LongViewBufferImpl.java:  Likewise.
1719         * java/nio/ShortViewBufferImpl.java:  Likewise.
1720         * java/nio/CharViewBufferImpl.java (subsequence):  Redundant test.
1721         * java/nio/DirectByteBufferImpl.java (shiftDown):  New native method.
1722         (compact):  Re-implement using shiftDown.
1723
1724 2004-02-08  Andreas Jaeger  <aj@suse.de>
1725
1726         * include/x86_64-signal.h: Fix typo.
1727
1728 2004-02-08  Diego Novillo  <dnovillo@redhat.com>
1729
1730         * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
1731         qualifier to _regs.
1732         (HANDLE_DIVIDE_OVERFLOW): Likewise.
1733
1734 2004-02-06  Michael Koch  <konqueror@gmx.de>
1735
1736         * java/io/ObjectInputStream.java
1737         (currentClassLoader): Reverted to old version of this method.
1738
1739 2004-02-06  Jeroen Frijters  <jeroen@frijters.net>
1740
1741         * java/io/ObjectInputStream.java: Made all calls
1742         to dumpElement[ln] conditional on dump flag. (readObject): Changed to
1743         use cached info from ObjectStreamClass. (readClassDescriptor):
1744         Cache more information in ObjectStreamClass. (processResolution,
1745         readFields): Use cached info from ObjectStreamClass.
1746         (newObject): Throw exception instead of returning null for failure.
1747         (getField, getMethod, callReadMethod, setBooleanField, setByteField,
1748         setCharField, setDoubleField, setFloatField, setIntField,
1749         setLongField, setShortField, setObjectField, readObjectParams):
1750         Removed. (dumpElement, dumpElementln): Removed dump flag condition
1751         check.
1752         * java/io/ObjectStreamField.java (hasReadMethod): Removed.
1753         (setClass): Added call to cacheMethods() (findMethod): New method.
1754         (cacheMethods): New method. (ObjectStreamClass): Added call to
1755         cacheMethods(). (setFields): Cache fields. (getClassUID): Use
1756         AccessController.doPrivileged to invoke setAccessible.
1757         (readObjectMethod, readResolveMethod, realClassIsSerializable,
1758         realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
1759         New fields.
1760         * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
1761         (ObjectStreamField): Removed FIXME workaround. (getTypeString,
1762         isPrimitive): Made safe for cases where type == null.
1763         (setBooleanField, setByteField, setCharField, setShortField,
1764         setIntField, setLongField, setFloatField, setDoubleField,
1765         setObjectField): New methods.
1766
1767 2004-02-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
1768
1769         * java/awt/Component.java (getFont): Return a default font
1770         instead of null.
1771
1772         * java/awt/Scrollbar.java (next_scrollbar_number): New field.
1773         (Scrollbar (int, int, int, int, int)): Make default page
1774         increment 10.
1775         (setValues): Only call peer.setValues if one of the values has
1776         changed.
1777         (generateName): New method.
1778         (getUniqueLong): New method.
1779         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
1780         (range_scrollbar): Remove structure.
1781         (post_adjustment_event): Remove function.
1782         (post_change_event): Accept jobject argument.
1783         (create): Cast jints to gdoubles.  Round scrollbar values to the
1784         nearest integer.  Clamp min, max and value settings.
1785         (connectJObject): Connect hook to widget->window.
1786         (connectSignals): Remove range_scrollbar structure variables.
1787         Remove "move-slider" connection.  Pass global peer reference to
1788         "value-changed" callback.
1789         (setLineIncrement): Cast jint value to gdouble.
1790         (setPageIncrement): Likewise.
1791         (setValues): Likewise.  Clamp min, max and value settings.
1792
1793 2004-02-05  Michael Koch  <konqueror@gmx.de>
1794
1795         * javax/swing/AbstractCellEditor.java
1796         (getCellEditorValue): Removed.
1797         * javax/swing/Box.java: Reformated.
1798         (serialVersionUID): New field.
1799         * javax/swing/ButtonGroup.java:
1800         Removed some weird whitespace.
1801         * javax/swing/CellEditor.java: Reformated.
1802         * javax/swing/CellRendererPane.java
1803         (serialVersionUID): New field.
1804         (AccessibleCellRendererPaneserialVersionUID): New field.
1805         * javax/swing/DefaultListModel.java
1806         (serialVersionUID): New field.
1807         * javax/swing/JEditorPane.java
1808         (serialVersionUID): New field.
1809         (setPage): Throws IOException.
1810         (addHyperlinkListener): Implemented.
1811         (removeHyperlinkListener): Implemented.
1812         (getHyperlinkListener): New method.
1813         * javax/swing/JFileChooser.java
1814         (serialVersionUID): New field.
1815         (AccessibleJFileChooser.serialVersionUID): New field.
1816         (addActionListener): Implemented.
1817         (removeActionListener): Implemented.
1818         (getActionListeners): New method.
1819         * javax/swing/JFormattedTextField.java
1820         (serialVersionUID): New field.
1821         (AbstractFormatter.serialVersionUID): New field.
1822         (clone): Throws CloneNotSupportedException
1823         (setEditValid): Add missing argument.
1824         (stringToValue): Throws ParseExcpetion.
1825         (valueToString): Throws ParseException.
1826         (commitEdit): Throws ParseException.
1827         * javax/swing/JLabel.java
1828         (serialVersionUID): New field.
1829         * javax/swing/JList.java
1830         (serialVersionUID): New field.
1831         (addListSelectionListener): Reformated.
1832         (removeListSelectionListener): Reformated.
1833         (getListSelectionListeners): New method.
1834         * javax/swing/colorchooser/AbstractColorChooserPanel.java:
1835         Reformated.
1836         (serialVersionUID): New field.
1837         * javax/swing/table/AbstractTableModel.java
1838         (getValueAt): Removed.
1839         (getColumnCount): Removed.
1840         (getRowCount): Removed.
1841
1842 2004-02-05  Michael Koch  <konqueror@gmx.de>
1843
1844         * java/awt/datatransfer/DataFlavor.java
1845         (imageFlavor): Javadoc added.
1846         (javaJVMLocalObjectType): Fixed.
1847
1848 2004-02-05  Michael Koch  <konqueror@gmx.de>
1849
1850         * java/lang/Thread.java
1851         (Thread): Reordered.
1852         (setContextClassLoader): Fixed javadoc comment.
1853         (setPriority): Reordered.
1854         (yield): Reordered.
1855         (initialize_native): Reordered.
1856         (gen_name): Reordered.
1857
1858 2004-02-05  Michael Koch  <konqueror@gmx.de>
1859
1860         * java/lang/Thread.java: Reordered fields, reformated much code,
1861         no functional changes, some variables renamed, javadoc comments
1862         merged.
1863
1864 2004-02-05  Michael Koch  <konqueror@gmx.de>
1865
1866         * java/util/zip/Deflater.java,
1867         java/util/zip/DeflaterOutputStream.java,
1868         java/util/zip/GZIPInputStream.java:
1869         Reformated and javadoc comments merged from classpath.
1870
1871 2004-02-05  Michael Koch  <konqueror@gmx.de>
1872
1873         * gnu/java/nio/NIOServerSocket.java
1874         (impl): Unused, removed.
1875         * gnu/java/nio/SocketChannelImpl.java
1876         (finnishConnect): Don't throw NoConnectionPendingException if not
1877         connected or no connection pending.
1878
1879 2004-02-02  Graydon Hoare  <graydon@redhat.com>
1880
1881         * javax/swing/SwingUtilities.java: Many new functions.
1882         * java/awt/Container.java (LightweightDispatcher): Reimplement.
1883         * javax/swing/basic/BasicGraphicsUtils.java 
1884         (getPreferredButtonSize): Start layout from top-left corner.
1885
1886 2004-02-04  Olga Rodimina  <rodimina@redhat.com>
1887
1888         * java/awt/geom/AffineTransform.java: 
1889         Corrected comments on the field definitions for
1890         m11 and m10.
1891         (shear): Fixed few errors that caused shear
1892         transformation to be performed incorrectly.
1893         (createInverse): Fixed to return correct
1894         inverse of the given matrix.
1895
1896 2004-02-03  Tom Tromey  <tromey@redhat.com>
1897
1898         * java/lang/natPosixProcess.cc (startProcess): Handle case where
1899         PATH or LD_LIBRARY_PATH is not set in parent environment.
1900
1901 2004-02-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
1902
1903         * gnu/java/awt/peer/gtk/GtkListPeer.java,
1904         java/awt/BorderLayout.java, java/awt/CardLayout.java,
1905         java/awt/CheckboxGroup.java, java/awt/Choice.java,
1906         java/awt/Component.java, java/awt/Container.java,
1907         java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
1908         java/awt/LayoutManager2.java, java/awt/List.java,
1909         java/awt/Menu.java, java/awt/MenuBar.java,
1910         java/awt/MenuItem.java, java/awt/Polygon.java,
1911         java/awt/Rectangle.java, java/awt/ScrollPane.java,
1912         java/awt/Scrollbar.java, java/awt/TextArea.java,
1913         java/awt/TextField.java,
1914         java/awt/image/renderable/RenderContext.java,
1915         javax/swing/JApplet.java: Fix handling of alias methods, where a
1916         method has been deprecated in favour of a new one with the same
1917         funtion but a different name.  Put the method implementation in
1918         the deprecated method and have the new method call the
1919         deprecated one.  Make all other code call the new method.
1920
1921 2004-02-03  Mohan Embar  <gnustuff@thisiscool.com>
1922
1923         * gnu/java/nio/DatagramChannelImpl.java
1924         (inChannelOperation): New field.
1925         (isInChannelOperation): New accessor.
1926         (setInChannelOperation): New modifier.
1927         (receive): Use capacity() - position() of destination
1928         buffer instead of remaining(). Set and reset our "in
1929         channel operation indicator" before and after delegating
1930         the receive to our datagram socket. Removed testing code.
1931         Update destination buffer's current position if it is
1932         backed by a byte array (hasArray() is true).
1933         (send): Set and reset our "in channel operation indicator"
1934         before and after delegating the send to our datagram socket.
1935         Removed testing code. Update source buffer's current position
1936         if it is backed by a byte array (hasArray() is true).
1937         * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
1938         Use capacity() - position() of destination buffer instead
1939         of remaining().
1940         * java/net/DatagramSocket.java (receive): Don't throw an
1941         IllegalBlockingModeException if we have a non-blocking
1942         channel which initiated this operation.
1943         (send): Likewise.
1944
1945 2004-02-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
1946
1947         * configure.in: Add pkgconfig check for glib and gthread.
1948         * configure: Regenerate.
1949
1950 2004-02-01  Michael Koch  <konqueror@gmx.de>
1951
1952         * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
1953         arguments.
1954         * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
1955         * verify.cc (debug_print): Mark 'fmt' unused.
1956
1957 2004-01-30  Michael Koch  <konqueror@gmx.de>
1958
1959         * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
1960         * configure: Regenerated.
1961         * glib-2.0.m4: Removed.
1962         * gtk-2.0.m4: Removed.
1963         * libart.m4: Removed.
1964         * pkg.m4: New file.
1965
1966 2004-01-30  Mohan Embar  <gnustuff@thisiscool.com>
1967
1968         * gnu/java/net/PlainSocketImpl.java 
1969         (inChannelOperation): New field.
1970         (isInChannelOperation): New accessor.
1971         (setInChannelOperation): New modifier.
1972         * gnu/java/nio/ServerSocketChannelImpl.java
1973         (accept): Set and reset our server socket's PlainSocketImpl's
1974         "in channel operation" indicator before and after delegating
1975         the accept to our server socket.
1976         * gnu/java/nio/SocketChannelImpl.java
1977         (connect): Set and reset our socket's PlainSocketImpl's "in channel
1978         operation" indicator before and after delegating the operation to
1979         our socket.
1980         (read): Likewise.
1981         (write): Likewise.
1982         * java/net/ServerSocket.java (implAccept): Don't throw an
1983         IllegalBlockingModeException if we have a non-blocking
1984         channel which initiated this accept operation.
1985         * java/net/Socket.java (connect): Don't throw an
1986         IllegalBlockingModeException if we have a non-blocking
1987         channel which initiated this connect operation.
1988         * java/nio/channels/spi/AbstractSelectableChannel.java
1989         (configureBlocking): Only call implConfigureBlocking() if
1990         the desired blocking mode is different from our current one.
1991
1992 2004-01-29  Mohan Embar  <gnustuff@thisiscool.com>
1993
1994         * java/io/BufferedReader.java (sbuf): New field.
1995         (readLine): Use String.valueOf instead of new String() as per
1996         Per Bothner's suggestion. Use instance sbuf field instead of a
1997         local StringBuffer instance.
1998         * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
1999         caller's buffer to refill().
2000         (read(void)): Pass our internal work buffer to refill if our
2001         input queue is empty.
2002         (refill): Changed return type to int. Use the specified buffer
2003         instead of our work buffer as per Bryce McKinlay's suggestion.
2004         Return the number of characters read or -1 for EOF.
2005
2006 2004-01-29  Scott Gilbertson  <scottg@mantatest.com>
2007
2008         * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
2009
2010 2004-01-29  Scott Gilbertson  <scottg@mantatest.com>
2011
2012         * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
2013         * Makefile.in: Re-generated.
2014         * gnu/awt/xlib/XFontPeer.java: New file.
2015         * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
2016         (setClip): Commented out debug printout.
2017         * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
2018         (getFontPeer): Return XFontPeer.
2019         (getLocalGraphicsEnvironment): New method.
2020         (getClasspathFontPeer): New method.
2021         (createFont): New method.
2022
2023 2004-01-29  Scott Gilbertson  <scottg@mantatest.com>
2024
2025         * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
2026         return null. 
2027
2028 2004-01-29  Kim Ho  <kho@redhat.com>
2029
2030         * gnu/java/awt/peer/gtk/GtkFramePeer.java
2031         (gtkLayoutSetVisible): New method
2032         (setMenuBar): Hide layout before setting MenuBar
2033         and reshow it after.
2034         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2035         (gtkLayoutSetVisible): Hide or show the Gtk Layout.
2036
2037 2004-01-28  Michael Koch  <konqueror@gmx.de>
2038
2039         * gnu/java/lang/ClassHelper.java
2040         (getPackagePortion): Removed.
2041
2042 2004-01-28  Michael Koch  <konqueror@gmx.de>
2043
2044         * javax/swing/JComponent.java
2045         (listenerList): Initalize globally.
2046         (ancestor_list): Removed.
2047         (veto_list): Removed.
2048         (change_list): Removed.
2049         (get_veto_list): Removed.
2050         (get_change_list): Removed.
2051         (get_ancestor_list): Removed.
2052         (removeAncestorListener): Reimplemented.
2053         (removePropertyChangeListener): Likewise.
2054         (removeVetoableChangeListener): Likewise.
2055         (addAncestorListener): Likewise.
2056         (addPropertyChangeListener): Likewise.
2057         (addVetoableChangeListener): Likewise.
2058         (getListeners): New method.
2059         (getAncestorListeners): Likewise.
2060         (getVetoableChangeListeners): Likewise.
2061         (fireVetoableChange): Throws PropertyVetoException.
2062         * javax/swing/JEditorPane.java
2063         (JEditorPane): Throws IOException.
2064
2065 2004-01-28  David Jee  <djee@redhat.com>
2066
2067         * gnu/java/awt/peer/gtk/GtkFramePeer.java
2068         (create): Set the default foreground color to
2069         java.awt.SystemColor.windowText.
2070
2071 2004-01-27  Michael Koch  <konqueror@gmx.de>
2072
2073         * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
2074         * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
2075         Reindented to merge with classpath.
2076
2077 2004-01-27  David Jee  <djee@redhat.com>
2078
2079         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2080         (addExposeFilter): Handle GtkFramePeer separately.
2081         (removeExposeFilter): Likewise.
2082
2083 2004-01-27  Michael Koch  <konqueror@gmx.de>
2084
2085         * gnu/java/net/protocol/http/Connection.java
2086         (getOutputStream): Fixed typo.
2087
2088 2004-01-27  Michael Koch  <konqueror@gmx.de>
2089
2090         * java/lang/Class.java
2091         (getConstructor): Removed SecurityException from throws clause.
2092         (_getConstructors): Likewise.
2093         (getConstructors): Likewise.
2094         (getDeclaredConstructor): Likewise.
2095         (getDeclaredClasses): Likewise.
2096         (getDeclaredConstructors): Likewise.
2097         (getDeclaredField): Likewise.
2098         (getDeclaredMethod): Likewise.
2099         (getDeclaredMethods): Likewise.
2100         (getField): Likewise.
2101         (getMethod): Likewise.
2102         (getMethods): Likewise.
2103
2104 2004-01-27  Kim Ho  <kho@redhat.com>
2105
2106         * gnu/java/awt/peer/gtk/GtkFramePeer.java
2107         (removeMenuBarPeer): Remove MenuBarPeer argument.
2108         * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
2109         (dispose): Call native method.
2110         * java/awt/Frame.java (setMenuBar): Create and remove
2111         MenuBar peers only if the Frame has a peer.
2112         (addNotify): Create the MenuBar peer if one exists.
2113         (removeNotify): Remove MenuBar peer if one exists.
2114         * java/awt/Menu.java: Fix imports.
2115         (addNotify): Don't use full class name.
2116         (removeNotify): Call removeNotify on all children.
2117         * java/awt/MenuBar.java (removeNotify): Call
2118         removeNotify on all children.
2119         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2120         (removeMenuBarPeer): Remove MenuBarPeer argument.
2121         Iterate through children to find the Frame's MenuBar.
2122         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
2123         New file.
2124         (dispose): Remove references to the MenuComponent.
2125
2126 2004-01-27  Michael Koch  <konqueror@gmx.de>
2127
2128         * javax/swing/AbstractCellEditor.java: Reformated.
2129         * javax/swing/DefaultListSelectionModel.java
2130         (listenerList): Made protected.
2131         (addListSelectionListener): Javadoc added.
2132         (removeListSelectionListener): Likewise.
2133         (getListeners): Likewise.
2134         (getListSelectionListeners): Likewise.
2135         * javax/swing/JComboBox.java: Merged copyright year.
2136         * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
2137
2138 2004-01-26  Andrew Haley  <aph@redhat.com>
2139
2140         * javax/swing/table/JTableHeader.java: Extend JComponent
2141
2142 2004-01-26  Kim Ho  <kho@redhat.com>
2143
2144         * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
2145         Fix spacing.
2146
2147 2004-01-26  Kim Ho  <kho@redhat.com>
2148
2149         * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
2150         method.
2151         (setMenuBar): Shift the Gtk layout up/down by the MenuBar
2152         height and let the Layout Managers readjust anything that
2153         needs to move.
2154         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2155         (moveLayout): New method. Shift everything in the Gtk
2156         layout in the Y direction by an offset.
2157
2158 2004-01-26  David Jee  <djee@redhat.com>
2159
2160         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
2161         (handleEvent): Implemented. Handles PaintEvents.
2162         (paint): Implemented. Use GTK native methods to queue updates
2163         for this heavyweight peer.
2164         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
2165         (handleEvent): Removed.
2166         * java/awt/Component.java
2167         (paint): Implemented. Explictly paint the heavyweight peer.
2168         (update): Clear the background for heavyweight components.
2169         (paintAll): No need to call peer.paint() anymore.
2170         (processEvent): Don't process PaintEvents here. It's now done in
2171         the peer's handleEvent().
2172         (processPaintEvent): Removed.
2173         * java/awt/Container.java
2174         (paint): No need to call super.paint(). Visit heavyweight
2175         children as well.
2176         (update): Don't clear the background here.  It's done in
2177         Component.update().
2178         (visitChildren): Added check to not recurse into Containers.
2179         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2180         (filter_expose_event_handler): New method.  Filter unwanted
2181         expose events while painting heavyweight peers.
2182         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
2183         New method. Connect filter and block pre_event_handler.
2184         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
2185         New method. Disconnect filter and unblock pre_event_handler.
2186         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
2187         New method. Invalidate and update given area.
2188         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
2189         (pre_event_handler): Add checks for unwanted expose events.
2190
2191 2004-01-26  David Jee  <djee@redhat.com>
2192
2193         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2194         (find_bg_color_widget): For GtkButton, return its child.
2195
2196 2004-01-26  Kim Ho  <kho@redhat.com>
2197
2198         * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
2199         private.
2200         (setMenuBar): Grab MenuBar height and change insets.
2201         (setBounds): Account for MenuBar height.
2202         (postInsetsChangedEvent): Ditto.
2203         (postSizeAllocateEvent): Remove.
2204         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2205         (menubar_resize_cb): Remove
2206         (setMenuBarPeer): Remove callback.
2207         (getMenuBarHeight): Use size requisition instead of
2208         allocation.
2209
2210 2004-01-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
2211
2212         * java/awt/TextArea.java: Fix indentation.  Flesh out javadocs.
2213         (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
2214         when peer is null.
2215         (setColumns): Remove FIXME -- peer will retrieve number of
2216         columns by calling getColumns.
2217         (setRows): Likewise for number of rows.
2218         (next_text_number): New field.
2219         (paramString): Fix param string.
2220         (generateName): New method.
2221         (getUniqueLong): New method.
2222
2223 2004-01-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
2224
2225         * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
2226         image observer of image loading status.
2227         (getImage (String)): Start image production.
2228         (getImage (URL)): Likewise.
2229
2230 2004-01-25  Michael Koch  <konqueror@gmx.de>
2231
2232         * java/lang/Class.java: Imports reworked, reformated.
2233         (Class): Javadoc added.
2234         (forName): Likewise.
2235         (getClasses): Likewise.
2236         (getClassLoader): Likewise.
2237         (getComponentType): Likewise.
2238         (getConstructor): Likewise.
2239         (getConstructors): Likewise.
2240         (getDeclaredConstructor): Likewise.
2241         (getDeclaredClasses): Likewise.
2242         (getDeclaredConstructors): Likewise.
2243         (getDeclaredField): Likewise.
2244         (getDeclaredMethod): Likewise.
2245         (getDeclaredMethods): Likewise.
2246         (getDeclaringClass): Likewise.
2247         (getField): Likewise.
2248         (getInterfaces): Likewise.
2249         (getMethod): Likewise.
2250         (getMethods): Likewise.
2251         (getModifiers): Likewise.
2252         (getName): Likewise.
2253         (getResource): Likewise.
2254         (getResourceAsStream): Likewise.
2255         (getSigners): Likewise.
2256         (setSigners): Likewise.
2257         (getSuperclass): Likewise.
2258         (isArray): Likewise.
2259         (isAssignableFrom): Likewise.
2260         (isInstance): Likewise.
2261         (isInterface): Likewise.
2262         (isPrimitive): Likewise.
2263         (newInstance): Likewise.
2264         (getProtectionDomain): Likewise.
2265         (toString): Likewise.
2266         (Class): Moved.
2267         (initializeClass): Likewise.
2268         (finalize): Likewise.
2269
2270 2004-01-24  Michael Koch  <konqueror@gmx.de>
2271
2272         * gnu/java/net/protocol/jar/Connection.java
2273         (hdrHash): Removed.
2274         (hdrVec): Removed.
2275         (gotHeaders): Removed.
2276         (getHeaderField): Removed.
2277         (getHeaderFields): Removed.
2278         (getHeaderFieldKey): Removed.
2279         (getKey): Removed.
2280         (getField): Removed.
2281         (getHeaders): Removed.
2282
2283 2004-01-24  Michael Koch  <konqueror@gmx.de>
2284
2285         * Makefile.am: Added library version to gtk peer lib.
2286         * Makefile.in: Regenerated.
2287
2288 2004-01-24  Michael Koch  <konqueror@gmx.de>
2289
2290         * java/util/zip/InflaterInputStream.java: Merged class documentation
2291         with classpath.
2292
2293 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
2294
2295         * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
2296         header.  For __powerpc64__ provide the default-signal.h definitions
2297         for now.
2298         * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
2299         instead of the dummy definitions.
2300         * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
2301         (powerpc64*-*): Remove with_libffi_default.
2302         Only add -mminimal-toc for 64-bit compilations.
2303         * configure.in: Use powerpc-signal.h on powerpc64 as well.
2304         (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
2305         Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
2306         * configure: Rebuilt.
2307
2308 2004-01-23  Michael Koch  <konqueror@gmx.de>
2309
2310         * gnu/java/nio/FileLockImpl.java: Compile fixes.
2311
2312 2004-01-23  Michael Koch  <konqueror@gmx.de>
2313
2314         * java/lang/VMClassLoader.java: Reworked imports.
2315         
2316 2004-01-23  Michael Koch  <konqueror@gmx.de>
2317
2318         * javax/swing/AbstractAction.java: Reformated.
2319
2320 2004-01-23  Michael Koch  <konqueror@gmx.de>
2321
2322         * java/text/CollationElementIterator.java:
2323         (setText): New method.
2324
2325 2004-01-23  Michael Koch  <konqueror@gmx.de>
2326
2327         * gnu/java/nio/FileLockImpl.java:
2328         Fixed filename in copyright.
2329         (released): Removed.
2330         (finalize): New method.
2331         * gnu/java/nio/natFileLockImpl.cc
2332         (releaseImpl): Implemented.
2333         * java/nio/channels/FileChannelImpl.java:
2334         Reworked imports.
2335         (lock): Implemented.
2336         (lockImpl): New method.
2337         (tryLock): Implemented.
2338         (tryLockImpl): New method.
2339         * java/nio/channels/natFileChannelImpl.cc
2340         (lockImpl): New method.
2341         (tryLockImpl): New method.
2342
2343 2004-01-23  Michael Koch  <konqueror@gmx.de>
2344
2345         * java/io/FileDescriptor.java
2346         (lock): New method.
2347         (tryLock): New method.
2348         (unlock): New method.
2349         * java/io/natFileDescriptorEcos.cc
2350         (lock): New method.
2351         (tryLock): New method.
2352         (unlock): New method.
2353         * java/io/natFileDescriptorPosix.cc
2354         (lock): New method.
2355         (tryLock): New method.
2356         (unlock): New method.
2357         * java/io/natFileDescriptorWin32.cc
2358         (lock): New method.
2359         (tryLock): New method.
2360         (unlock): New method.
2361
2362 2004-01-23  Michael Koch  <konqueror@gmx.de>
2363
2364         * java/io/FileDescriptor.java
2365         (sync): Moved around, added javadoc.
2366         (valid): Likewise.
2367         (open): Likewise.
2368         (write): Likewise.
2369         (close): Likewise.
2370         (setLength): Likewise.
2371         (seek): Likewise.
2372         (getLength): Likewise.
2373         (getFilePointer): Likewise.
2374         (read): Likewise.
2375         (available): Likewise.
2376         (finalize): Likewise.
2377
2378 2004-01-23  Michael Koch  <konqueror@gmx.de>
2379
2380         * javax/swing/AbstractAction.java: Reformated.
2381         (getPropertyChangeListeners): New method.
2382         * javax/swing/AbstractCellEditor.java: Reformated.
2383         (getCellEditorListeners): New method.
2384         * javax/swing/DefaultListSelectionModel.java
2385         (listenerList): New field.
2386         (listeners): Removed.
2387         (get_listeners): Removed.
2388         (addListSelectionListener): Rewritten.
2389         (removeListSelectionListener): Rewritten.
2390         (getListSelectionListeners): New method.
2391         (getListeners): New method.
2392         * javax/swing/JComboBox.java: Imports reworked.
2393         (addActionListener): Implemented.
2394         (removeActionListener): Implemented.
2395         (addItemListener): Implemented.
2396         (removeItemListener): Implemented.
2397         (addPopupMenuListener): Implemented.
2398         (removePopupMenuListener): Implemented.
2399         (getActionListeners): New method.
2400         (getItemListeners): New method.
2401         (getPopupMenuListeners): New method.
2402
2403 2004-01-23  Michael Koch  <konqueror@gmx.de>
2404
2405         * gnu/java/net/protocol/http/Connection.java
2406         (connect): Don't initialize bufferedOutputStream if not needed.
2407         (sendRequest): Set property for content length if content is present.
2408         Write content only if present.
2409         (getOutputStream): Check if already connected, dont connect,
2410         initalize bufferedOutputStream if needed.
2411
2412 2004-01-23  Michael Koch  <konqueror@gmx.de>
2413
2414         * java/io/FileDescriptor.java
2415         (in, out, err): Added javadoc.
2416         (static): Merged loading code.
2417         (fd, position): Moved around.
2418
2419 2004-01-23  Michael Koch  <konqueror@gmx.de>
2420
2421         * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
2422         New file.
2423
2424 2004-01-23  Michael Koch  <konqueror@gmx.de>
2425
2426         * java/lang/Class.java,
2427         java/lang/Object.java,
2428         java/lang/Thread.java: Merged copyright with classpath.
2429
2430 2004-01-23  Michael Koch  <konqueror@gmx.de>
2431
2432         * java/io/FileDescriptor.java: Merged copyright with classpath to
2433         start merging this class.
2434
2435 2004-01-22  Tom Tromey  <tromey@redhat.com>
2436
2437         PR libgcj/13107:
2438         * testsuite/libjava.lang/pr13107_2.xfail: New file.
2439         * testsuite/libjava.lang/pr13107_3.xfail: New file.
2440         * testsuite/libjava.lang/pr13107_3.java: New file.
2441         * testsuite/libjava.lang/pr13107_3.out: New file.
2442         * testsuite/libjava.lang/pr13107_2.java: New file.
2443         * testsuite/libjava.lang/pr13107_2.out: New file.
2444         * testsuite/libjava.lang/pr13107.java: New file.
2445         * testsuite/libjava.lang/pr13107.out: New file.
2446         * verify.cc (jsr_ptrs): Removed.
2447         (entry_points): Likewise.
2448         (struct subr_info): Likewise.
2449         (struct subr_entry_info): Likewise.
2450         (type_val::unused_by_subroutine_type): Likewise.
2451         (type::merge): Don't handle unused_by_subroutine_type.
2452         (type::print): Likewise.
2453         (state::flags): Removed.
2454         (state::subroutine): Likewise.
2455         (state::seen_subrs): Likewise.
2456         (state::NO_STACK): Likewise.
2457         (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
2458         (state): Updated all methods.
2459         (state::clean_subrs): Removed.
2460         (state::state): Removed `ret_semantics' flag.
2461         (state::copy): Likewise.
2462         (state::add_subr): Removed.
2463         (state::enter_subroutine): Likewise.
2464         (type::set_return_address): New method.
2465         (handle_jsr_insn): Set return address on the type.  Always
2466         invalidate PC after call.
2467         (check_nonrecursive_call): Removed.
2468         (~_Jv_BytecodeVerifier): Updated.
2469         (branch_prepass): Removed special handling of jsr.
2470         (note_branch_target): Likewise.
2471         (get_subroutine): Removed.
2472         (state::merge): Don't merge subroutines and don't handle
2473         NO_STACK.  Removed ret_semantics and jsr_semantics arguments.
2474         (state::note_variable): Removed.
2475         (state::is_unmerged_ret_state): Likewise.
2476         (state::print): Updated.
2477         (set_variable): Likewise.
2478         (merge_into): Renamed from push_jump_merge.  Removed ret_semantics
2479         and jsr_semantics arguments.  Updated for new reverification
2480         list.
2481         (pop_jump): Rewrote.
2482         (construct_primitive_array_type): Updated.
2483         (state::next): Removed.
2484         (INVALID_STATE): New define.
2485         (state::INVALID): Removed.
2486         (state::NO_NEXT): New value.
2487         (state::pc, state::next): New fields.
2488         (state::get_pc): New method.
2489         (next_verify_pc): Removed.
2490         (next_verify_state): New field.
2491         (verify_instructions_0): Always check for falling off end.
2492         (linked): New type.
2493         (linked_utf8): Removed.
2494         (states): Changed type.
2495         (type::state_mergeable_p): New method.
2496         (state::state_mergeable_p): Likewise.
2497         (handle_ret_insn): Removed most code.
2498         (state::reverify): New method.
2499         (add_new_state): Likewise.
2500         (state::set_pc): Likewise.
2501
2502 2004-01-22  Jeff Sturm  <jsturm@one-point.com>
2503
2504         PR java/13733
2505         * testsuite/libjava.compile/PR13733.java: New file.
2506         * testsuite/libjava.compile/PR13733.xfail: New file.
2507
2508 2004-01-22  Arnaud Vandyck  <arnaud.vandyck@ulg.ac.be>
2509             Michael Koch  <konqueror@gmx.de>
2510
2511         * javax/swing/table/DefaultTableCellRenderer.java
2512         (DefaultTableCellRenderer): Added javadoc for the class and for
2513         the constructor, Border instance, create an EmptyBorder.
2514         (UIResource): Removed the comment at the end of the class
2515         (setForeground): New method.
2516         (setBackground): New method.
2517         (updateUI): New method.
2518         (getTableCellRendererComponent): Rewritten with the help of
2519         dvholten and Stephane Meslin-Weber.
2520         (validate): New method.
2521         (repaint): New method.
2522         (firePropertyChange): New method.
2523         (setValue): New method.
2524
2525 2004-01-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
2526
2527         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2528         (connectJObject): Replace printf calls with g_assert statements.
2529         Move property-notify-event signal connection to ...
2530         (connectSignals): Connect property-notify-event signal.  Iterate
2531         through the vbox's children to find layout.
2532
2533 2004-01-22  Graydon Hoare  <graydon@redhat.com>
2534         
2535         * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java: 
2536         * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
2537         Predicate static initialization on GtkToolkit.useGraphics2D().
2538         * java/awt/Component.java (processPaintEvent): Consume event.
2539         * javax/swing/AbstractButton.java: Reimplement, document.
2540         * javax/swing/DefaultButtonModel.java: Reimplement, document.
2541         * javax/swing/JComponent.java (paint): Use double buffer.
2542         (listenerList): Enable member.
2543         * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
2544         * javax/swing/JToggleButton.java 
2545         (JToggleButton): Modify model constructor.
2546         * javax/swing/SwingUtilities.java 
2547         (layoutCompoundLabel): Adjust arithmetic.
2548         * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
2549         * javax/swing/plaf/basic/BasicGraphicsUtils.java 
2550         (getPreferredButtonSize): Include margins in calculation.
2551         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2552         (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
2553         Receive up events from subordinate layout component.
2554
2555 2004-01-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
2556
2557         * java/awt/Component.java (show): Set visible to true before
2558         showing the peer.
2559
2560 2004-01-21  Kim Ho  <kho@redhat.com>
2561
2562         * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
2563         Fix comments.
2564         (removeMenuBarPeer): Make package private.
2565         (setMenuBarPeer): Make package private.
2566         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2567         (menubar_resize_cb): Mark attributes unused.
2568         (getMenuBarHeight): ditto.
2569
2570 2004-01-21  David Jee  <djee@redhat.com>
2571
2572         * java/awt/Container.java
2573         (LightweightDispatcher.handleEvent): Add an extra check to avoid
2574         dispatching MOUSE_ENTERED event twice. Translate the point for
2575         the mouse event target before dispatching the event.
2576
2577 2004-01-20  Jakub Jelinek  <jakub@redhat.com>
2578
2579         * Makefile.am (lib_org_w3c_dom_la_LIBADD,
2580         lib_org_w3c_dom_la_LDFLAGS): New.
2581         (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
2582         * Makefile.in: Rebuilt.
2583
2584 2004-01-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
2585
2586         * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
2587         Calculate proper offsets for heavyweight components packed in
2588         lightweight containers.
2589
2590         * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
2591         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
2592         (native create): Add width parameter.
2593         (create): Calculate text entry width based on current font's
2594         metrics and number of columns.  Set TextField's font if not
2595         already set.  Call native create.
2596         (gtkEntryGetBorderWidth): New native method.
2597         (gtkEntryGetSize): Remove method.
2598         (getMinimumSize): Call minimumSize.
2599         (getPreferredSize): Call preferredSize.
2600         (minimumSize): Calculate minimum size based on backing
2601         GtkEntry's borders, font metrics and number of columns.
2602         (preferredSize): Likewise for preferred size.
2603         (get_border_width): New static function.
2604
2605         * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
2606         Override GtkWindowPeer's setResizable method to account for menu
2607         bar height when setting the frame's size.
2608
2609 2004-01-19  Matthias Klose  <doko@debian.org>
2610
2611         * libtool-version: Increased `current' to 6.
2612
2613 2004-01-19  Kim Ho  <kho@redhat.com>
2614
2615         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2616         (connectJObject): Iterate through the vbox's children to find layout.
2617
2618 2004-01-19  Fernando Nasser  <fnasser@redhat.com>
2619
2620         * java/awt/EventQueue.java (invokeAndWait): Use list-aware
2621         isDispatchThread method to replace wrong test condition.
2622
2623 2004-01-19  Fernando Nasser  <fnasser@redhat.com>
2624
2625         * java/awt/EventQueue.java (pop): Prevent racing condition to add
2626         events to the queue out of order by acquiring locks in the proper
2627         order and not by releasing one before acquiring the other.
2628
2629 2004-01-19  Fernando Nasser  <fnasser@redhat.com>
2630
2631         * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
2632         visible so that dialog can be reused.
2633
2634 2004-01-19  Fernando Nasser  <fnasser@redhat.com>
2635
2636         * java/awt/EventQueue.java (getCurrentEvent): Consider that system
2637         events may be handled by any queue in the stack.
2638
2639 2004-01-19  Kim Ho  <kho@redhat.com>
2640
2641         * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
2642         MenuBarPeer parameter.
2643         (removeMenuBarPeer): New native method.
2644         (setMenuBar): Call remove if menu bar is null. Adjust insets
2645         appropriately.
2646         (postSizeAllocateEvent): New method. Called when menu bar size is
2647         allocated. Adjust insets and redo layout.
2648         (GtkFramePeer): Set menu bar during frame creation.
2649         (postConfigureEvent): Adjust position and size to accomodate
2650         menu bar.
2651         * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
2652         * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
2653         (addNotify): Create the peer if it doesn't exist and call addNotify
2654         for the menu's items.
2655         * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
2656         * java/awt/MenuItem.java (addNotify): Create the peer if it
2657         doesn't exist.
2658         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2659         (removeMenuBarPeer): New method. Remove menu bar on the current
2660         frame.
2661         (setMenuBarPeer): Add the menu bar to the current frame and the
2662         callback for size-allocate events on the menu bar.
2663         (getMenuBarHeight): Add menu bar parameter.
2664         (menubar_resize_cb): New callback method for postSizeAllocate events.
2665
2666         Also: Fix indentation on last ChangeLog entry.
2667
2668 2004-01-16  Kim Ho  <kho@redhat.com>
2669
2670         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2671         (gtkWidgetGetDimensions): Remove.
2672         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2673         (gtkWidgetGetDimensions): Remove.
2674
2675 2004-01-16  Tom Tromey  <tromey@redhat.com>
2676
2677         * java/awt/Container.java: Typo and indentation fixes.
2678
2679         * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
2680         * java/lang/natVMClassLoader.cc: ...here.  New file.
2681         * Makefile.in: Rebuilt.
2682         * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
2683
2684 2004-01-16  Fernando Nasser  <fnasser@redhat.com>
2685
2686         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
2687         Discard GDK_ENTER_NOTIFY related to ungrabs.
2688
2689 2004-01-16  Fernando Nasser  <fnasser@redhat.com>
2690
2691         * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
2692         is called for an intermediate queue.
2693
2694 2004-01-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
2695
2696         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2697         (window_property_changed_cb): Set id_set.
2698
2699 2004-01-16  Kim Ho  <kho@redhat.com>
2700
2701         * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
2702         it is a FileDialog and has dimensions of 0 by 0, then the initial
2703         size is set to size request plus insets.
2704         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2705         (gtkWidgetGetDimensions): Override method.
2706         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2707         (gtkWidgetGetDimensions): Override method. Returns size request plus
2708         insets.
2709
2710 2004-01-16  Andrew Haley  <aph@redhat.com>
2711
2712         * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
2713         * sysdep/i386/locks.h: Likewise.
2714
2715 2004-01-16  Fernando Nasser  <fnasser@redhat.com>
2716
2717         * java/awt/EventDispatchThread.java (run): Stop running when
2718         interrupted.
2719         * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
2720         Reset the queue after transferring its contents.
2721         (push): Start a new dispatch thread if none is running.
2722
2723 2004-01-16  Olga Rodimina <rodimina@redhat.com>
2724
2725         * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
2726         (doPolygon): set fill rule of polygon to 
2727         WIND_EVEN_ODD by default.
2728
2729 2004-01-15  Olga Rodimina <rodimina@redhat.com>
2730
2731         * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
2732         Implemented rendering hints related methods.
2733         (getDefaultHints): New helper method. Returns
2734         default rendering hints.
2735         (walkPath): changed to normalize path if
2736         the KEY_STROKE_CONTROL key is in "normalize" mode.
2737         (draw3DRect): changed coordinates of rectangle by +0.5
2738         if in "normalize" mode.
2739
2740 2004-01-15  Tom Tromey  <tromey@redhat.com>
2741
2742         * Makefile.in: Rebuilt.
2743         * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
2744         (%.lo: %.java) Filter out StackTrace.lo.
2745
2746 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
2747
2748         * configure.in: Add in AC_PREREQ(2.13)
2749         * libltdl/configure.ac: Update to AC_PREREQ(2.57).  Delete 
2750         FIXME comment.
2751
2752 2004-01-14  Nathan Bryant  <nbryant@optonline.net>
2753             Tom Tromey  <tromey@redhat.com>
2754
2755         PR libgcj/12001:
2756         * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
2757         array to superclass.
2758         (init): Changed interface; add URLs here.
2759         (initialize): New static method.
2760         * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
2761         (_Jv_RunMain): ... not here.
2762
2763 2004-01-14  Michael Koch  <konqueror@gmx.de>
2764
2765         * java/text/MessageFormat.java:
2766         Added descriptions to exceptions.
2767         This fixes PR libgcj/2429.
2768
2769 2004-01-13  Fernando Nasser  <fnasser@redhat.com>
2770
2771         * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
2772         (push): Make sure push is performed at the top of the thread stack.
2773
2774 2004-01-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
2775
2776         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
2777         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
2778         (native create): Add width and height parameters.  Set text
2779         view's size request according to new parameters.
2780         (create): Calculate text view size based on current font's
2781         metrics and number of rows and columns.  Set TextArea's font if
2782         not already set.  Call native create.
2783         (getMinimumSize): Call minimumSize.
2784         (getPreferredSize): Call preferredSize.
2785         (getHScrollbarHeight): New method.
2786         (getVScrollbarWidth): New method.
2787         (minimumSize): Calculate minimum size based on scrollbar
2788         visibility, scrollbar sizes, font metrics and number of rows and
2789         columns.
2790         (preferredSize): Likewise for preferred size.
2791         (gtkTextGetSize): Remove method.
2792
2793 2004-01-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
2794
2795         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
2796         (initializeInsets): Remove method.
2797         (GtkComponentPeer): Initialize insets field.  Remove call to
2798         initializeInsets.
2799         * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
2800         Remove method.
2801         * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
2802         Remove method.
2803         * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
2804         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
2805         (latestInsets): Remove field.
2806         (native create): Add insets parameter.  Call
2807         window_get_frame_extents.  Set the window's default size and
2808         size request based on its frame extents.
2809         (create): Initialize insets.
2810         (postInsetsChangedEvent): New method.
2811         (postConfigureEvent): Remove parameters top, left, bottom,
2812         right.  Remove insets-related logic.
2813         (connectJObject): Handle property-notify-event.
2814         (window_get_frame_extents, request_frame_extents,
2815         property_notify_predicate, window_property_changed_cb): New
2816         static functions.
2817         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
2818         (pre_event_handler): Remove insets-related logic for configure
2819         events.
2820         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
2821         Update postConfigureEvent signature.
2822
2823 2004-01-13  Fernando Nasser  <fnasser@redhat.com>
2824  
2825         * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
2826         to handle Window "Closing" events.
2827  
2828 2004-01-13  David Jee  <djee@redhat.com>
2829
2830         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
2831         (setBackground): New method. Children with no explicitly-set
2832         background will be repainted with the parent container's new
2833         background color.
2834
2835 2004-01-13  David Jee  <djee@redhat.com>
2836
2837         * Makefile.am: Add BitwiseXORComposite.java.
2838         * Makefile.in: Regenerated.
2839         * gcj/Makefile.in: Regenerated.
2840         * include/Makefile.in: Regenerated.
2841         * testsuite/Makefile.in: Regenerated.
2842
2843 2004-01-12  Fernando Nasser  <fnasser@redhat.com>
2844
2845         * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
2846         not show modal dialogs twice and so that it allows showing a modal
2847         dialog from another modal dialog.
2848
2849 2004-01-12  Fernando Nasser  <fnasser@redhat.com>
2850
2851         * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
2852         and run secondary dispatch thread to process event queue while this
2853         thread is blocked.
2854
2855 2004-01-12  Graydon Hoare  <graydon@redhat.com>
2856
2857         * gnu/java/awt/gtk/GdkGraphics2D.java
2858         (static): Check GtkToolkit before initializing static state.
2859         (Graphics2D): Don't construct transform with 0.5 unit offset.
2860
2861 2003-11-06  Sascha Brawer  <brawer@dandelis.ch>
2862
2863         * gnu/java/awt/BitwiseXORComposite.java: Add.
2864         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
2865         (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
2866         (BitwiseXORComposite): Remove inner class.
2867
2868 2004-01-11  Michael Koch  <konqueror@gmx.de>
2869
2870         * gnu/java/lang/reflect/TypeSignature.java
2871         (getEncodingOfClass): Documentation fixed.
2872         (getClassForEncoding): Give class loader to Class.forName().
2873         Documentation fixed.
2874
2875 2004-01-11  Sascha Brawer  <brawer@dandelis.ch>
2876
2877         * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
2878
2879 2004-01-11  Michael Koch  <konqueror@gmx.de>
2880
2881         * javax/swing/undo/StateEditable.java
2882         (RCSID): Removed redundant modifiers.
2883
2884 2004-01-10  Michael Koch  <konqueror@gmx.de>
2885
2886         * javax/print/attribute/EnumSyntax.java
2887         (getStringTable): Made protected.
2888         (getEnumValueTable): Likewise.
2889         * javax/print/attribute/standard/JobKOctetsProcessed.java
2890         (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
2891         * javax/print/attribute/standard/JobMediaSheetsCompleted.java
2892         (JobMediaSheetsCompleted): Made class final.
2893         * javax/print/attribute/standard/OutputDeviceAssigned.java
2894         (getName): Fixed typo.
2895         * javax/print/attribute/standard/RequestingUserName.java
2896         (serialVersionUID): Fixed value.
2897
2898 2004-01-10  Michael Koch  <konqueror@gmx.de>
2899
2900         * javax/swing/plaf/basic/BasicButtonUI.java,
2901         javax/swing/plaf/basic/BasicCheckBoxUI.java,
2902         javax/swing/plaf/basic/BasicListUI.java,
2903         javax/swing/plaf/basic/BasicOptionPaneUI.java,
2904         javax/swing/plaf/basic/BasicPanelUI.java,
2905         javax/swing/plaf/basic/BasicRadioButtonUI.java,
2906         javax/swing/plaf/basic/BasicScrollPaneUI.java,
2907         javax/swing/plaf/basic/BasicToggleButtonUI.java,
2908         javax/swing/plaf/basic/BasicViewportUI.java:
2909         Fixed import statements.
2910
2911 2004-01-10  Michael Koch  <konqueror@gmx.de>
2912
2913         * gnu/java/awt/image/ImageDecoder.java
2914         (produce): Made public.
2915         * gnu/java/awt/peer/GLightweightPeer.java,
2916         gnu/java/awt/peer/gtk/GtkToolkit.java:
2917         Reformated.
2918
2919 2004-01-10  Michael Koch  <konqueror@gmx.de>
2920
2921         * javax/swing/JRadioButtonMenuItem.java,
2922         javax/swing/JSeparator.java,
2923         javax/swing/JSplitPane.java,
2924         javax/swing/JTextPane.java,
2925         javax/swing/JToolBar.java,
2926         javax/swing/ListCellRenderer.java,
2927         javax/swing/ListModel.java,
2928         javax/swing/MenuElement.java,
2929         javax/swing/OverlayLayout.java,
2930         javax/swing/ProgressMonitor.java,
2931         javax/swing/ProgressMonitorInputStream.java,
2932         javax/swing/Renderer.java,
2933         javax/swing/RootPaneContainer.java,
2934         javax/swing/Scrollable.java,
2935         javax/swing/SingleSelectionModel.java,
2936         javax/swing/ToolTipManager.java,
2937         javax/swing/ViewportLayout.java,
2938         javax/swing/event/DocumentEvent.java,
2939         javax/swing/event/SwingPropertyChangeSupport.java,
2940         javax/swing/event/TreeSelectionEvent.java,
2941         javax/swing/event/UndoableEditEvent.java,
2942         javax/swing/text/AbstractDocument.java,
2943         javax/swing/text/AttributeSet.java,
2944         javax/swing/text/Caret.java,
2945         javax/swing/text/ComponentView.java,
2946         javax/swing/text/DefaultCaret.java,
2947         javax/swing/text/DefaultEditorKit.java,
2948         javax/swing/text/Document.java,
2949         javax/swing/text/EditorKit.java,
2950         javax/swing/text/GapContent.java,
2951         javax/swing/text/Keymap.java,
2952         javax/swing/text/MutableAttributeSet.java,
2953         javax/swing/text/PlainEditorKit.java,
2954         javax/swing/text/Segment.java,
2955         javax/swing/text/Style.java,
2956         javax/swing/text/StyledDocument.java,
2957         javax/swing/text/StyledEditorKit.java,
2958         javax/swing/text/TextAction.java,
2959         javax/swing/text/View.java: Fixed import statements.
2960
2961 2004-01-08  Graydon Hoare  <graydon@redhat.com>
2962
2963         * javax/swing/JLayeredPane.java: Rewrite to accomodate
2964         djee@redhat.com's recent inverse ordering of Container elements.
2965
2966 2004-01-09  Michael Koch  <konqueror@gmx.de>
2967
2968         * gnu/java/lang/ArrayHelper.java
2969         (equalsArray): Removed.
2970
2971 2004-01-09  Andrew Haley  <aph@redhat.com>
2972
2973         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
2974         a Utf8Const field before looking at its class.
2975
2976 2004-01-09  Michael Koch  <konqueror@gmx.de>
2977
2978         * javax/print/attribute/standard/DocumentName.java,
2979         javax/print/attribute/standard/JobHoldUntil.java,
2980         javax/print/attribute/standard/JobMessageFromOperator.java,
2981         javax/print/attribute/standard/JobName.java,
2982         javax/print/attribute/standard/JobOriginatingUserName.java,
2983         javax/print/attribute/standard/OutputDeviceAssigned.java,
2984         javax/print/attribute/standard/PrinterInfo.java,
2985         javax/print/attribute/standard/PrinterLocation.java,
2986         javax/print/attribute/standard/PrinterMakeAndModel.java,
2987         javax/print/attribute/standard/PrinterMessageFromOperator.java,
2988         javax/print/attribute/standard/PrinterName.java,
2989         javax/print/attribute/standard/RequestingUserName.java: New files.
2990         * Makefile.am (javax_source_files): Added new files.
2991         * Makefile.in: Regenerated.
2992
2993 2004-01-09  Michael Koch  <konqueror@gmx.de>
2994
2995         * javax/swing/AbstractAction.java,
2996         javax/swing/AbstractSet.java,
2997         javax/swing/Action.java,
2998         javax/swing/ActionMap.java,
2999         javax/swing/BoundedRangeModel.java,
3000         javax/swing/ButtonModel.java,
3001         javax/swing/CellEditor.java,
3002         javax/swing/CellRendererPane.java,
3003         javax/swing/ComboBoxEditor.java,
3004         javax/swing/DebugGraphics.java,
3005         javax/swing/DefaultCellEditor.java,
3006         javax/swing/DefaultCellRenderer.java,
3007         javax/swing/DefaultComboBoxModel.java,
3008         javax/swing/DefaultDesktopManager.java,
3009         javax/swing/DefaultFocusManager.java,
3010         javax/swing/DefaultListCellRenderer.java,
3011         javax/swing/Icon.java,
3012         javax/swing/JButton.java,
3013         javax/swing/JCheckBoxMenuItem.java,
3014         javax/swing/JDesktopPane.java,
3015         javax/swing/JEditorPane.java,
3016         javax/swing/JMenu.java,
3017         javax/swing/JPanel.java,
3018         javax/swing/JPasswordField.java,
3019         javax/swing/JPopupMenu.java,
3020         javax/swing/JProgressBar.java: Reworked imports.
3021
3022 2004-01-09  Michael Koch  <konqueror@gmx.de>
3023
3024         * java/awt/geom/PathIterator.java
3025         (WIND_EVEN_ODD): Removed redundant modifiers.
3026         (WIND_NON_ZERO): Likewise.
3027         (SEG_MOVETO): Likewise.
3028         (SEG_LINETO): Likewise.
3029         (SEG_QUADTO): Likewise.
3030         (SEG_CUBICTO): Likewise.
3031         (SEG_CLOSE): Likewise.
3032         * java/awt/image/SinglePixelPackedSampleModel.java:
3033         Removed redundant semicolon.
3034         * java/io/ObjectInputStream.java
3035         (inputGetObjectStreamClasses): Removed unused variable "ret_val".
3036         * java/util/logging/Filter.java
3037         (isLoggable): Removed redundant modifier.
3038         * java/util/logging/LogManager.java:
3039         Removed redundant semicolon.
3040         * java/util/logging/XMLFormatter.java
3041         (format): Removed unused variable "key".
3042
3043 2004-01-08  Fernando Nasser  <fnasser@redhat.com>
3044
3045         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
3046         New name for the former setFile native method.
3047         (setFile): New method.
3048         (setDirectory): Implemented.
3049         (connectSignals): New native method.
3050         (setFilenameFilter): Improve comment.
3051         (getGraphics): Comment.
3052         (gtkHideFileDialog): New method.
3053         (gtkDisposeFileDialog): New method.
3054         (gtkSetFilename): New method.
3055         * java/awt/Dialog.java (show): Block on modal dialogs, but only
3056         for FileDialog for now.
3057         (hide): New method.
3058         (dispose): New method.
3059         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
3060         (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
3061         deprecated creation functions.  Make dialog modal.  Add it to the
3062         window group.
3063         (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
3064         function.
3065         (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
3066         Rename to...
3067         (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
3068         name.
3069         (window_closed): New function.
3070         (ok_clicked): New function.
3071         (cancel_clicked): New function.
3072
3073 2004-01-08  Michael Koch  <konqueror@gmx.de>
3074
3075         * javax/swing/JLayeredPane.java: Revert changes to standard
3076         boilerplate, reworked imports.
3077
3078 2004-01-07  Tom Tromey  <tromey@redhat.com>
3079
3080         PR libgcj/13439:
3081         * verify.cc (state::merge): Copy changed locals out of subroutine
3082         in NO_STACK case.
3083         (state::FLAG_CHANGED): New const.
3084         (state::FLAG_UNUSED): Likewise.
3085         (state::local_changed): Removed.  Updated all users.
3086         (state::flags): New field.
3087         (state::merge): Added jsr_semantics argument, more logic.
3088         (push_jump_merge): Added jsr_semantics argument.
3089         (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
3090         merging through the jsr instruction.
3091
3092 2004-01-07  Tom Tromey  <tromey@redhat.com>
3093
3094         * scripts/MakeDefaultMimeTypes.java: Use \n, not
3095         backslash-newline.
3096
3097 2004-01-07  Graydon Hoare  <graydon@redhat.com>
3098
3099         * java/awt/Container.java (LightweightDispatcher): Implement.
3100         (visitChild): Reuse graphics object.
3101         (dispatchEventImpl): Optionally dispatch to lightweight.
3102         (addNotifyContainerChildren): Build LightweightDispatcher.
3103
3104 2004-01-07  David Jee  <djee@redhat.com>
3105
3106         * java/awt/Container.java
3107         (update): Clear only the clipped region, instead of clearing the
3108         entire Container.
3109         (visitChildren): Visit children in descending order.
3110
3111 2004-01-07  Michael Koch  <konqueror@gmx.de>
3112
3113         * java/lang/reflect/Array.java: Merged documentation with classpath.
3114
3115 2004-01-07  Michael Koch  <konqueror@gmx.de>
3116
3117         * java/text/CollationElementIterator.java
3118         (textIndex): Renamed from index.
3119         * java/text/CollationKey.java
3120         (collator): New member.
3121         (CollationKey): New argument for parent collator.
3122         (equals): Check for same collator, source string and key array.
3123         * java/text/RuleBasedCollator.java:
3124         Reformated.
3125         (RuleBasedCollator): Don't re-initialize frenchAccents with default
3126         value.
3127         (getCollationElementIterator): Rewritten.
3128         (getCollationKey): Added new argument to CollationKey constructor.
3129
3130 2004-01-07  Michael Koch  <konqueror@gmx.de>
3131
3132         * gnu/java/nio/DatagramChannelImpl.java
3133         (blocking): Removed.
3134         (DatagramChannelImpl): Call configureBlocking().
3135         (implConfigureBlocking): Dont initialize blocking.
3136         * gnu/java/nio/ServerSocketChannelImpl.java
3137         (blocking): Removed.
3138         (ServerSocketChannelImpl): Call configureBlocking().
3139         (implConfigureBlocking): Dont initialize blocking.
3140         * gnu/java/nio/SocketChannelImpl.java
3141         (blocking): Removed.
3142         (SocketChannelImpl): Call configureBlocking().
3143         (implConfigureBlocking): Dont initialize blocking.
3144         (connect): Use isBlocking().
3145         * java/nio/channels/spi/AbstractSelectableChannel.java
3146         (configureBlocking): Use blockingLock() instead of LOCK.
3147         Set blocking after successfully called implConfigureBlocking().
3148         (register): Use blockingLock() instead of LOCK.
3149
3150 2004-01-07  Michael Koch  <konqueror@gmx.de>
3151
3152         * java/net/ServerSocket.java (isBound): Fixed documentation.
3153
3154 2004-01-07  Sascha Brawer  <brawer@dandelis.ch>
3155
3156         * javax/swing/DefaultBoundedRangeModel.java: Documented API.
3157         (changeEvent): Create event object on demand.
3158         (DefaultBoundedRangeModel, toString, setValue, setExtent,
3159         setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
3160         fireStateChanged): Re-written.
3161         * javax/swing/event/EventListenerList.java: Reformatted, document
3162         typical usage.
3163         (toString): Implemented.
3164         (getListeners): Re-written.
3165         (remove): Re-written.
3166         (add): Re-written.
3167         (NO_LISTENERS): New singleton field.
3168         (listenerList): Declare as transient; document.
3169         (serialVersionUID): Document.
3170         (getListenerCount(Class)): More efficient implementation,
3171         also accepts null argument.  Improve Javadoc.
3172         (getListenerCount()): Remove unnecessary cast; docfix.
3173         * javax/swing/undo/UndoableEditSupport.java:
3174         Re-format, document.
3175         (UndoableEditSupport): Set realSource field. Improve documentation.
3176         (_postEdit): Iterate over cloned listener vector.
3177         (toString): Don't emit realSource.
3178         (beginUpdate, endUpdate): Support nested updates.
3179         (postEdit): Use compound edit if present.
3180
3181 2004-01-06  Graydon Hoare  <graydon@redhat.com>
3182
3183         * java/awt/Container.java (swapComponents): Add forgotten
3184         function, required for JLayeredPane change.
3185
3186 2004-01-06  Michael Koch  <konqueror@gmx.de>
3187
3188         * java/text/CollationElementIterator.java: Reformated.
3189         (CollationElementIterator): Changed order of arguments.
3190         * java/text/RuleBasedCollator.java
3191         (RuleBasedCollator): Merged class documentation.
3192         (CollationElement): Added documentation.
3193         (compare): Reformated, renamed arguments.
3194         (equals): Likewise.
3195         (getCollationElementIterator): Likewise.
3196         (getCollationKey): Likewise.
3197
3198 2004-01-06  Graydon Hoare  <graydon@redhat.com>
3199
3200         * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
3201
3202 2004-01-06  Michael Koch  <konqueror@gmx.de>
3203
3204         * gnu/java/net/protocol/file/Connection.java:
3205         Reformated copyright.
3206         (hdrHash): Removed.
3207         (hdrVec): Removed.
3208         (gotHeaders): Removed.
3209         (getHeaderField): Removed.
3210         (getHeaderField): Removed.
3211         (getHeaderFieldKey): Removed.
3212         (getKey): Removed.
3213         (getField): Removed.
3214         (getHeaders): Removed.
3215
3216 2004-01-06  Michael Koch  <konqueror@gmx.de>
3217
3218         * javax/print/attribute/standard/DateTimeAtCompleted.java,
3219         javax/print/attribute/standard/DateTimeAtCreation.java,
3220         javax/print/attribute/standard/DateTimeAtProcessing.java,
3221         javax/print/attribute/standard/JobImpressionsCompleted.java,
3222         javax/print/attribute/standard/JobKOctets.java,
3223         javax/print/attribute/standard/JobKOctetsProcessed.java,
3224         javax/print/attribute/standard/JobMediaSheetsCompleted.java,
3225         javax/print/attribute/standard/JobPrioritySupported.java: New files.
3226         * Makefile.am (javax_source_files): Added new files.
3227         * Makefile.in: Regenerated.
3228
3229 2004-01-06  Michael Koch  <konqueror@gmx.de>
3230
3231         * java/net/URLConnection.java
3232         (contentHandler): Removed.
3233         (locale): Removed.
3234         (getHeaderFields): Return an empty map instead of null.
3235         (getContent): Connect if needed, renamed "cType" to "type" and
3236         "contentHandler" to "ch" and made it a local variable.
3237         (getPermission): Don't use package in class name.
3238         (setDefaultRequestProperty): Fixed typo in documentation.
3239         (initializeDateFormats): Made locale a local variable.
3240
3241 2004-01-06  Michael Koch  <konqueror@gmx.de>
3242
3243         * java/lang/Package.java
3244         (getPackage): Get the current class loader directly.
3245         * java/lang/SecurityManager.java
3246         (currentLoadedClass): Dont iterate over class contexts.
3247         (classLoaderDepth): Don't check class loaders if everything is allowed.
3248
3249 2004-01-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
3250
3251         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3252         (pre_event_handler): Set all insets to 0 when a Configure event
3253         is received for a GtkPlug.
3254         * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
3255         Make handle long, not int.
3256         (EmbeddedWindow()): New constructor.
3257         (EmbeddedWindow(int)): Rename window_id to handle.  Make handle
3258         long, not int.
3259         (setHandle): New method.
3260         (getHandle): Return long, not int.
3261         * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
3262         declaration.
3263         * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
3264         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
3265         (create(long)): Take long parameter, not int.  Cast gtk_plug_new
3266         argument to GdkNativeWindow.
3267         (construct): New method.
3268         (embed): New method.
3269
3270         * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
3271         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
3272         (create(int, int)): New method.
3273         (create): Call new create method.
3274         (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
3275         methods.
3276         (childResized): Remove native implementation.  Implement in
3277         Java.
3278         (getHScrollbarHeight, getVScrollbarWidth): Call
3279         gtk_widget_size_request to get scrollbar dimensions.
3280         * java/awt/ScrollPane.java (getViewportSize): Reimplement.  Only
3281         call getVScrollbarWidth and getHScrollbarHeight when vertical
3282         and horizontal scrollbars respectively are needed.
3283         (doLayout): Enlarge child if it is smaller than the viewport.
3284
3285 2004-01-05  Fernando Nasser  <fnasser@redhat.com>
3286
3287         * java/awt/Dialog.java (constructor): Accept null title as per spec.
3288         * java/awt/FileDialog.java (constructor): Throw exception on invalid
3289         argument as per spec.
3290
3291 2004-01-05  Fernando Nasser  <fnasser@redhat.com>
3292
3293         * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
3294         (insert): Ditto.
3295         (remove): Ditto.  Also, Check for valid argument.
3296         (removeAll): Use peer interface method.
3297         * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
3298         native add function.
3299         (nativeRemove): New name for native remove function.
3300         (getHistory): New native function.
3301         (constructor): Generate ItemEvent.
3302         (add): Ditto, if selection is changed.
3303         (remove): Ditto, ditto.
3304         (removeAll): Add implementation.
3305         (handleEvent): Remove.  Dead code.
3306         (choicePostItemEvent): Add comment.
3307         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
3308         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
3309         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
3310         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name.  Add
3311         comments and fix condition to change selection.
3312         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
3313         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name.  Add
3314         remove all capability.
3315         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
3316         (item_activate): Add cast to remove compiler warning.
3317
3318 2004-01-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
3319
3320         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3321         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3322         (getPreferredSize): Call preferredSize.
3323         (preferredSize): Call gtkWidgetGetPreferredDimensions.
3324         (getMinimumSize): Call minimumSize.
3325         (minimumSize): Call gtkWidgetGetPreferredDimensions.
3326         (gtkWidgetGetDimensions): Return the peer widget's current size
3327         request.
3328         (gtkWidgetGetPreferredDimensions): Return the peer widget's
3329         natural size request.
3330
3331 2004-01-05  Sascha Brawer  <brawer@dandelis.ch>
3332
3333         Thanks to Brian Gough <bjg@network-theory.com>
3334         * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
3335         * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
3336
3337 2004-01-04  Matthias Klose  <doko@debian.org>
3338
3339         * aclocal.m4: Rebuilt using "aclocal -I .".
3340         * configure: Rebuilt.
3341
3342 2004-01-03  Per Bothner  <per@bothner.com>
3343
3344         * java/util/Date.java (parse):  Fix a number of problems.
3345         (skipParens):  Remove no-longer-needed method.
3346