OSDN Git Service

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