OSDN Git Service

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