OSDN Git Service

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