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