OSDN Git Service

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