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