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