OSDN Git Service

2004-08-16 Michael Koch <konqueror@gmx.de>
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2004-08-16  Michael Koch  <konqueror@gmx.de>
2
3         * Makefile.am
4         (math_c_files): Renamed from c_files.
5         (math_c_source_files): Renamed from c_source_files.
6         * Makefile.in,
7         gcj/Makefile.in,
8         include/Makefile.in,
9         testsuite/Makefile.in: Regenerated.
10
11 2004-08-16  Bryce McKinlay  <mckinlay@redhat.com>
12
13         * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
14         to avoid autoconf warning.
15         * configure: Rebuilt.
16
17 2004-08-14  Andreas Tobler  <a.tobler@schweiz.ch>
18
19         * java/net/natInetAddressPosix.cc (lookup): Reflect rename of 
20         localhostAddress to loopbackAddress.
21         * java/net/natInetAddressWin32.cc (lookup): Likewise.
22
23 2004-08-13  Bryce McKinlay  <mckinlay@redhat.com>
24
25         * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I 
26         boehm-gc's include dirs.
27         * configure: Rebuilt.
28         * include/boehm-gc.h: Include gc_config.h.
29
30 2004-08-13  Bryce McKinlay  <mckinlay@redhat.com>
31
32         * java/net/InetAddress.java (loopbackAddress): Renamed from 
33         localhostAddress.
34         (getByName): Return loopback address for null hostname, without
35         security check. Use lookup(), not getAllByName.
36         (getAllByName): Return loopback address for null hostname, without
37         security check.
38         * java/net/natInetAddressPosix.cc (lookup): Don't perform security
39         check here.
40
41 2004-08-13  Bryce McKinlay  <mckinlay@redhat.com>
42
43         PR libgcj/17020
44         Reported by Robin Green.
45         * defineclass.cc (handleField): Don't throw exception on unrecognised
46         modifier. Add FIXME comments for spec compliance.
47         (handleMethod): Likewise.
48
49 2004-08-10  Hans Boehm <Hans.Boehm@hp.com>
50
51         PR libgcj/16662
52         * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
53         (Almost everywhere): add LOG calls, fix, add comments.
54         (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
55         Add explicit check for LOCKED bit in slow case (PR 16662).
56         (_Jv_MonitorExit): Add casts in debug-only code.
57         Always release LOCKED bit before throwing exception.
58         (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
59         isn't.  Handle easy cases without lock acquisition.
60         (Object::wait): Use NotifyAll for lock inflation.
61
62 2004-08-12  David Daney  <ddaney@avtrex.com>
63
64         * testsuite/libjava.lang/Process_1.java: New test.
65         * testsuite/libjava.lang/Process_2.java: New test.
66         * testsuite/libjava.lang/Process_3.java: New test.
67         * testsuite/libjava.lang/Process_4.java: New test.
68         * testsuite/libjava.lang/Process_5.java: New test.
69         * testsuite/libjava.lang/Process_6.java: New test.
70         * testsuite/libjava.lang/Process_1.out: Expected result.
71         * testsuite/libjava.lang/Process_2.out: Expected result.
72         * testsuite/libjava.lang/Process_3.out: Expected result.
73         * testsuite/libjava.lang/Process_4.out: Expected result.
74         * testsuite/libjava.lang/Process_5.out: Expected result.
75         * testsuite/libjava.lang/Process_6.out: Expected result.
76
77 2004-08-12  David Daney  <ddaney@avtrex.com>
78
79         PR libgcj/11801
80         * java/lang/PosixProcess.java: Rewrote.
81         * java/lang/natPosixProcess.cc: Rewrote.
82         * java/lang/Runtime.java (execInternal): Declare throws IOException.
83         * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
84         * posix-threads.cc (block_sigchld) New function.
85         (_Jv_ThreadRegister) Use it.
86         (_Jv_ThreadStart) Use it.
87         * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
88         * Makefile.am: ... to specify extra native headers.
89         * configure: Regenerated.
90         * include/config.h: Regenerated.
91         * Makefile.in: Regenerated.
92         * gcj/Makefile.in: Regenerated.
93         * include/Makefile.in: Regenerated.
94         * testsuite/Makefile.in: Regenerated.
95
96 2004-08-12  Diego Novillo  <dnovillo@redhat.com>
97
98         PR tree-optimization/16867
99         * testsuite/libjava.lang/PR16867.java: New test.
100
101 2004-08-09  Per Bothner  <per@bothner.com>
102
103         * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
104         with private fields and access methods.
105         (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
106         * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
107         * prims.cc (_Jv_Utf8COnst::init): New method implementation.
108         ( _Jv_makeUtf8Const): Rewrite using new constructors.
109         (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
110         * defineclass.cc: Use new _Utf8Const access/convenience methods.
111         * jni.cc: Likewise.
112         * resolve.cc: Likewise.
113         * gcj/field.h: Likewise.
114         * include/jvm.h: Likewise.
115         * java/lang/Class.h: Likewise.
116         * java/lang/natClass.cc: Likwise.
117         * java/lang/natClassLoader.cc: Likewise
118         * java/lang/reflect/natMethod.cc: Likewise
119         * verify.cc: Likewise.
120         (_Jv_BytecodeVerifier::make_utf8_const):  Optimize.
121         (~_Jv_BytecodeVerifier):  Don't need second _Jv_Free call.
122
123 2004-08-10  Andrew Haley  <aph@redhat.com>
124
125         * testsuite/libjava.lang/err14.java: New file.
126         * testsuite/libjava.lang/err14.out: New file.
127
128 2004-08-05  Andreas Tobler  <a.tobler@schweiz.ch>
129
130         * Makefile.am: Fix missing rename from x_nat_headers to 
131         xlib_nat_headers.
132         * Makefile.in: Regenerated.
133
134 2004-08-04  Andrew Haley  <aph@redhat.com>
135
136         * java/security/BasicPermission.java: Don't check wildcards.
137
138 2004-08-04  Thomas Fitzsimmons <fitzsim@redhat.com>
139             Michael Koch  <konqueror@gmx.de>
140
141         * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
142         * configure.in: Replaced all usages of AC_LINK_FILES by
143         AC_CONFIG_LINKS.
144         * aclocal.m4,
145         configure: Regenerated.
146
147 2004-08-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
148             Michael Koch  <konqueror@gmx.de>
149
150         * acconfig.h: Removed.
151         * Makefile.am: Rename variables for xlib peer to include xlib and
152         gtk_c_headers to gtk_jni_headers.
153         * Makefile.in: Regenerated.
154
155 2004-08-04  Andrew Haley  <aph@redhat.com>
156
157         * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
158         debugging.
159
160 2004-08-03  Nathanael Nerode  <neroden@gcc.gnu.org>
161
162         * configure.in: Eliminate uses of changequote (mostly by quoting []).
163         Replace most top level 'dnl' comments with '#' comments, conforming
164         to new autoconf style.  Use AS_HELP_STRING throughout; improve a few
165         help strings.
166         * configure: Rebuilt.
167
168 2004-07-17  Nathanael Nerode  <neroden@gcc.gnu.org>
169
170         * acinclude.m4: Include no-executables.m4.
171         * aclocal.m4: Rebuild.
172         * configure.in: Convert to the autoconf 2.59 version of
173         of the no-executables hack, and also of the nonstandard CXX
174         hack and the multilibbed CC and CXX hack.  Change prerequisite
175         to autoconf 2.59.
176         * configure: Rebuild with autoconf 2.59.  (Woo-hoo!)
177         * Makefile.in, gcj/Makefile.in, include/Makefile.in,
178         testsuite/Makefile.in: Regenerate.
179
180 2004-08-03  Tom Tromey  <tromey@redhat.com>
181
182         * jni.cc: Reindented.
183
184 2004-08-02  Bryce McKinlay  <mckinlay@redhat.com>
185
186         * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
187
188 2004-08-02  Bryce McKinlay  <mckinlay@redhat.com>
189
190         * testsuite/libjava.compile/PR16701.java: New test.
191
192 2004-08-01  Andrew John Hughes  <gnu_andrew@member.fsf.org>
193
194         * java/util/Collection.java, java/util/List.java,
195         java/util/Map.java, java/util/Set.java,
196         java/util/SortedMap.java, java/util/SortedSet.java:
197         Added additional exceptions to documentation.
198
199 2004-08-01  Danny Smith  <dannysmith@users.sourceforge.net>
200
201         PR libgcj/16814
202         * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
203         * configure. Regenerate.
204         * include/win32.h: Explicitly include winsock2.h
205         * win32.cc (_Jv_platform_initialize): Require version 2.2 of
206         Winsock api.
207
208 2004-07-30  Michael Koch  <konqueror@gmx.de>
209
210         * java/util/zip/GZIPInputStream.java
211         (GZIPInputStream): Increase buffer size to 4k.
212         * java/util/zip/GZIPOutputStream.java
213         (GZIPOutputStream): Likewise.
214         * java/util/zip/Inflater.java
215         (setInput): Merged formating with GNU classpath.
216         * java/util/zip/InflaterInputStream.java
217         (InflaterInputStream): Increase buffer size to 4k.
218         (fill): Throw exception if stream ends early.
219         (read): Merged endless-loop with GNU classpath.
220         (skip): Increase buffer size to 2k.
221
222 2004-07-30  Michael Koch  <konqueror@gmx.de>
223
224         * gnu/java/awt/EmbeddedWindow.java
225         (addNotify): Use AccessController to allow execution of privileged
226         code.
227
228 2004-07-29  Michael Koch  <konqueror@gmx.de>
229
230         * gnu/java/lang/MainThread.java:
231         Explicitely import used classes.
232         (args): Make it type String[].
233
234 2004-07-29 Dalibor Topic <robilad@kaffe.org>
235
236         * gnu/java/awt/ComponentDataBlitOp.java,
237         gnu/java/beans/ExplicitBeanInfo.java,
238         gnu/java/beans/IntrospectionIncubator.java,
239         gnu/java/beans/editors/ColorEditor.java,
240         gnu/java/beans/editors/FontEditor.java,
241         gnu/java/beans/editors/NativeBooleanEditor.java,
242         gnu/java/beans/editors/NativeByteEditor.java,
243         gnu/java/beans/editors/NativeDoubleEditor.java,
244         gnu/java/beans/editors/NativeFloatEditor.java,
245         gnu/java/beans/editors/NativeIntEditor.java,
246         gnu/java/beans/editors/NativeLongEditor.java,
247         gnu/java/beans/editors/NativeShortEditor.java,
248         gnu/java/beans/editors/StringEditor.java,
249         gnu/java/io/ClassLoaderObjectInputStream.java,
250         gnu/java/io/decode/Decoder.java,
251         gnu/java/io/encode/Encoder.java,
252         gnu/java/lang/ClassHelper.java,
253         gnu/java/locale/Calendar.java,
254         gnu/java/locale/Calendar_de.java,
255         gnu/java/locale/Calendar_en.java,
256         gnu/java/locale/Calendar_nl.java,
257         gnu/java/locale/LocaleInformation_de.java,
258         gnu/java/locale/LocaleInformation_en.java,
259         gnu/java/locale/LocaleInformation_nl.java:
260         Cleaned up imports.
261
262 2004-07-28  Bryce McKinlay  <mckinlay@redhat.com>
263
264         * README: Remove obsolete info. Update bug URL.
265         * THANKS: Updated.
266         * NEWS: Updated with news up to GCC 3.4 release.
267
268 2004-07-28  Bryce McKinlay  <mckinlay@redhat.com>
269
270         * gnu/java/security/action/GetPropertyAction.java (setParameters):
271         Renamed from 'setName'. New 2-argument form with default value.
272         (run): Pass default 'value' parameter to System.getProperty().
273         * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
274         typos.
275         * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
276         not 'setName'.
277
278 2004-07-28  Bryce McKinlay  <mckinlay@redhat.com>
279
280         * configure.in: Check for minimum GTK version 2.4 requirement.
281         * configure: Rebuilt.
282
283 2004-07-27  Bryce McKinlay  <mckinlay@redhat.com>
284
285         * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
286         * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
287         Reduce sleep time.
288         * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
289         compiler bug.
290         * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email 
291         address. Reduce sleep times. Synchronize with target threads before
292         attempting to interrupt them. Don't try to calibrate yeild count,
293         instead, always loop for a fixed time.
294         * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
295         * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
296         * testsuite/libjava.lang/Thread_Wait.java: Likewise.
297         * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
298         * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
299         * testsuite/libjava.lang/pr179.java: Likewise.
300         * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
301         time. Remove upper bounds check on sleep time. 
302
303 2004-07-27  Bryce McKinlay  <mckinlay@redhat.com>
304
305         * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
306         * testsuite/libjava.lang/Thread_HoldsLock.out: New.     
307
308 2004-07-27  Bryce McKinlay  <mckinlay@redhat.com>
309
310         * java/io/File.java (toURI): Throw RuntimeException, not 
311         InternalError.
312         * java/lang/Runtime.java (exit): Qualify static sleep() call with
313         class name, not instance.
314
315 2004-07-24  Bryce McKinlay  <mckinlay@redhat.com>
316
317         * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
318         and gnu/java/security/action/SetAccessibleAction.java.
319         * Makefile.in: Rebuilt.
320
321 2004-07-23  Bryce McKinlay  <mckinlay@redhat.com>
322
323         * prims.cc (_Jv_InitPrimClass): Don't create an array class.
324         (_Jv_CreateJavaVM): Don't pass array vtable parameter to
325         _Jv_InitPrimClass.
326         (DECLARE_PRIM_TYPE): Don't declare array vtables.
327         * include/jvm.h (struct _Jv_ArrayVTable): Removed.
328         * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
329
330 2004-07-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
331
332         * Makefile.am: Replace jar, rmic and rmiregistry references with
333         gjar, grmic and grmiregistry.
334         * configure.in: Likewise.
335         * Makefile.in: Regenerate.
336         * configure: Likewise.
337         * gcj/Makefile.in: Likewise.
338         * include/Makefile.in: Likewise.
339         * testsuite/Makefile.in: Likewise.
340
341 2004-07-23  Bryce McKinlay  <mckinlay@redhat.com>
342
343         * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
344         for privileged getProperty calls.
345         * java/io/ObjectOutputStream.java (getField): No longer static. Use
346         SetAccessibleAction instead of anonymous class for doPrivileged call.
347         (getMethod): Likewise.
348         (setAccessible): New field. PrivilegedAction object to use when
349         calling setAccessible.
350         * java/io/ObjectStreamClass.java (calculateOffsets): Use
351         SetAccessibleAction instead of anonymous class for diPrivileged call.
352         (setFields): Likewise.
353         (getClassUID): Likewise.
354         (findMethod): Likewise.
355         * gnu/java/security/action/GetPropertyAction.java: New class.
356         * gnu/java/security/action/SetAccessibleAction.java: New class. 
357
358 2004-07-23  Bryce McKinlay  <mckinlay@redhat.com>
359
360         * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
361         for final fields.
362         * testsuite/libjava.lang/Serialization.java: New test.
363         * testsuite/libjava.lang/Serialization.out: New.
364
365 2004-07-23  Bryce McKinlay  <mckinlay@redhat.com>
366
367         * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
368         missed in last commit.
369
370 2004-07-23  Mark Wielaard  <mark@klomp.org>
371
372         * java/lang/System.java (static): Set http.agent system property when
373         not yet set.
374         * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
375         from system property inside AccessController.doPrivileged() call.
376         (proxyPort): Made package private.
377         (proxyInUse): Likewise.
378         (proxyHost): Likewise.
379         (userAgent): Likewise.
380
381 2004-07-23  Mark Wielaard  <mark@klomp.org>
382
383         * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
384         implementation.
385
386 2004-07-22  Bryce McKinlay  <mckinlay@redhat.com>
387
388         * Makefile.am (ordinary_java_source_files): Add
389         DefaultContentHandlerFactory.java.
390         * Makefile.in: Rebuilt.
391         * java/net/URLConnection.java (defaultFactory): New field.
392         (getContent): 
393         (getContentHandler): Renamed from 'setContentHandler'. Try 
394         defaultFactory after user-set factory, if any. Search for content 
395         handler implementations in gnu.java.net.content, not gnu.gcj.content.
396         * gnu/java/net/protocol/file/Connection.java (getHeaderField):
397         Implemented.
398         (getLastModified): Implemented.
399         (getPermission): Create file permission here, instead of in
400         constructor.
401         * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
402         Implemented.
403         * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
404         Implemented.
405         (getLastModified): Implemented.
406         * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
407         Default implementation.
408         * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
409         Implement using GdkPixbufDecoder.
410         
411 2004-07-21  Michael Koch  <konqueror@gmx.de>
412
413         * javax/swing/JTextArea.java
414         (setLineWrap): Fire property change event after new value is set.
415         (setTabSize): Likewise.
416
417 2004-07-21  Michael Koch  <konqueror@gmx.de>
418
419         * javax/swing/JTable.java
420         (autoCreateColumnsFromModel): New field.
421         (autoResizeMode): Likewise.
422         (cellEditor): Likewise.
423         (cellSelectionEnabled): Likewise.
424         (columnModel): Likewise.
425         (dataModel): Likewise.
426         (defaultEditorsByColumnClass): Likewise.
427         (defaultRenderersByColumnClass): Likewise.
428         (editingColumn): Likewise.
429         (editingRow): Likewise.
430         (gridColor): Likewise.
431         (preferredViewportSize): Likewise.
432         (rowHeight): Likewise.
433         (rowMargin): Likewise.
434         (rowSelectionAllowed): Likewise.
435         (selectionBackground): Likewise.
436         (selectionForeground): Likewise.
437         (selectionModel): Likewise.
438         (showHorizontalLines): Likewise.
439         (showVerticalLines): Likewise.
440         (tableHeader): Likewise.
441         (JTable): Implemented.
442         (getColumnModel): Likewise.
443         (getSelectedRow): Likewise.
444         (getSelectionModel): Likewise.
445         (setModel): Likewise.
446         (setSelectionModel): Likewise.
447         (createScrollPaneForTable): New method.
448         (createDefaultDataModel): Likewise.
449         (createDefaultListSelectionModel): Likewise.
450         (getModel): Likewise.
451         (getTableHeader): Likewise.
452         (setTableHeader): Likewise.
453         (getColumnSelectionAllowed): Likewise.
454         (setColumnSelectionAllowed): Likewise.
455         (getRowSelectionAllowed): Likewise.
456         (setRowSelectionAllowed): Likewise.
457         (getAutoResizeMode): Likewise.
458         (setAutoResizeMode): Likewise.
459         (getColumnCount): Likewise.
460         (getRowCount): Likewise.
461         (getCellRenderer): Likewise.
462         * javax/swing/JTree.java
463         (cellRenderer): New field.
464         (editable): Likewise.
465         (rootVisible): Likewise.
466         (showsRootHandles): Likewise.
467         (getModel): New method.
468         (setModel): Likewise.
469         (isEditable): Likewise.
470         (setEditable): Likewise.
471         (isRootVisbile): Likewise.
472         (setRootVisible): Likewise.
473         (getShowsRootHandles): Likewise.
474         (setShowRootHandles): Likewise.
475         (getCellRenderer): Likewise.
476         (setCellRenderer): Likewise.
477
478 2004-07-21  Michael Koch  <konqueror@gmx.de>
479
480         * javax/swing/JFormattedTextField.java
481         (setDocument): Implemented.
482         * javax/swing/JRootPane.java:
483         Fixed javadocs.
484         * javax/swing/JTable.java
485         (getDefaultRenderer): New method.
486         * javax/swing/JTextField.java
487         (setFont): Likewise.
488         (getPreferredSize): Likewise.
489         * javax/swing/JToggleButton.java
490         (getAccessibleContext): Fix javadoc.
491         * javax/swing/JTree.java:
492         Add some javadocs.
493         * javax/swing/JViewport.java:
494         Likewise.
495
496 2004-07-21  David Jee  <djee@redhat.com>
497
498         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
499         Collect all native method declaration at the top.
500         (create): Set the filename filter if necessary.
501         (setDirectory): Call nativeSetDirectory().
502         (setFilenameFilter): Implement.
503         (filenameFilterCallback): New method.
504         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
505         (create): Configure dialog to show hidden files.
506         (filenameFilterCallback): New function. 
507         (nativeSetFilenameFilter): New function.
508         (nativeSetDirectory): New function.
509
510 2004-07-21  Kim Ho  <kho@redhat.com>
511
512         * javax/swing/plaf/basic/BasicSliderUI.java:
513         Ran Jalopy.
514         (paintTrack): Fill the track before painting
515         the borders.
516
517 2004-07-21  Graydon Hoare  <graydon@redhat.com>
518
519         patch from Roman Kennke <roman@ontographics.com>
520         * javax/swing/Spring.java: New file.
521         * javax/swing/SpringLayout.java: New file.
522         * Makefile.am: Add new files.
523         * Makefile.in: Regenerate.
524
525 2004-07-21  Graydon Hoare  <graydon@redhat.com>
526
527         * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
528         * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
529         * javax/swing/ScrollPaneLayout.java: Likewise.
530
531 2004-07-21  Kim Ho  <kho@redhat.com>
532
533         * javax/swing/DefaultDesktopManager.java:
534         (findMinimum): Removed.
535         (resizeFrame): Trust the UI to pass valid 
536         bounds.
537         * javax/swing/JOptionPane.java:
538         Implemented showInternalXXXDialog methods.
539         (startModal): New method.
540         * javax/swing/plaf/basic/BasicInternalFrameUI.java:
541         (BorderListener::mouseDragged): Verify that the new 
542         bounds are valid before passing them to the DesktopManager.
543         (preferredLayoutSize): Delegate
544         to getSize.
545         (minimumLayoutSize): Ditto.
546         (getSize): New method.
547         (GlassPaneDispatcher): Reimplemented by copying 
548         a stripped down LightweightDispatcher from Container.
549         (getMinimumSize): Call minimumLayoutSize.
550         * javax/swing/plaf/basic/BasicOptionPaneUI.java:
551         Ran Jalopy.
552         (mousePressed): Add ability to properly close 
553         JInternalFrames.
554         * javax/swing/plaf/basic/BasicToolBarUI.java:
555         (DragWindow): Set owner for DragWindow.
556
557 2004-07-21  Jerry Quinn  <jlquinn@optonline.net>
558
559         * java/awt/image/ShortLookupTable.java: New file.
560         * java/awt/image/ByteLookupTable.java: New file.
561         * Makefile.am: Added new files.
562         * Makefile.in: Regenerated.
563
564 2004-07-21  David Jee  <djee@redhat.com>
565
566         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
567         (create(GtkContainerPeer)): New native method.
568         (create()): Call native create(), passing in the parent frame
569         as the paramter. Natively set the current file and directory.
570         (setFile): Construct an absolute filename before passing it to
571         the native peer.
572         (nativeGetDirectory): New method.
573         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
574         (window_closed): Removed.
575         (ok_clicked): Likewise.
576         (cancel_clicked): Likewise.
577         (handle_response): New method.
578         (create): Use GtkFileChooserDialog.
579         (connectSignals): Connect to handle_response.
580         (nativeGetDirectory): New method.
581         (nativeSetFile): Use GtkFileChooserDialog.
582
583 2004-07-21  Jerry Quinn  <jlquinn@optonline.net>
584
585         * java/awt/image/LookupTable.java: New file.
586         * Makefile.am: Added new file.
587         * Makefile.in: Regenerated.
588
589 2004-07-21  Jerry Quinn  <jlquinn@optonline.net>
590
591         * java/awt/image/Kernel.java: New file.
592         * Makefile.am: Added new file.
593         * Makefile.in: Regenerated.
594
595 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
596
597         * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
598         * javax/swing/JMenu.java: Likewise.
599         * javax/swing/JMenuBar.java: Likewise.
600         (MARGIN_CHANGED_PROPERTY): New property.
601         (setMargin): Implemented.
602         * javax/swing/JMenuItem.java: Fixed javadocs.
603         * javax/swing/JPopupMenuUI.java: Fixed javadocs.
604         (LABEL_CHANGED_PROPERTY): New property.
605         (add): changed to use createActionComponent.
606         (createActionComponent): Implemented.   
607         (setLabel): Fire PropertyChangeEvent if label property
608         changes.
609         * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
610         * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
611         (ContainerHandler): Repaint if margin property has changed.
612         * javax/swing/plaf/basic/BasicMenuItemUI.java:
613         (installUI): Call installComponents().
614         (uninstallUI): Call uinstallComponents().
615         * javax/swing/plaf/basic/BasicMenuUI.java:
616         Fixed javadocs.
617         * javax/swing/plaf/basic/BasicPopupMenuUI.java:
618         Likewise.
619
620 2004-07-21  Kim Ho  <kho@redhat.com>
621
622         * javax/swing/plaf/basic/BasicToolBarUI.java:
623         (DragWindow): Use the right constructor.
624
625 2004-07-21  Kim Ho  <kho@redhat.com>
626
627         * javax/swing/JToolBar.java:
628         (layoutContainer): Use getComponents.
629         * javax/swing/plaf/basic/BasicToolBarUI.java:
630         (DragWindow): Don't use SwingUtilities' 
631         getOwnerFrame
632         (ToolBarDialog): ditto.
633
634 2004-07-21  Kim Ho  <kho@redhat.com>
635
636         * javax/swing/JRootPane.java:
637         Ran jalopy.
638         (layoutContainer): Set the glasspane's size to 
639         be the same as the content pane.
640         (createGlassPane): Set opaque property to false.
641
642 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
643
644         * java/awt/Component.java (requestFocus()): Don't handle Panels
645         specially.
646         (requestFocus(boolean)): Likewise.
647         (requestFocusInWindow(boolean)): Likewise.
648         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
649         Set GTK_CAN_FOCUS flag.
650
651 2004-07-21  Kim Ho  <kho@redhat.com>
652
653         * Makefile.am: Added new file.
654         * Makefile.in: Regenerated.
655         * gcj/Makefile.in: Regenerated.
656         * include/Makefile.in: Regenerated.
657         * javax/swing/AbstractButton.java:
658         Add rollOverEnabled property.
659         (setRolloverEnabled): Use new property.
660         (isRolloverEnabled): Use new property.
661         * javax/swing/JTabbedPane.java:
662         (setComponent): Remove useless JTabbedPane.this.
663         * javax/swing/JToolBar.java: Finish implementation.
664         * javax/swing/plaf/basic/BasicArrowButton.java:
665         (paint): Moved border painting to a border.
666         * javax/swing/plaf/basic/BasicLookAndFeel.java:
667         Change JToolBar look and feel defaults.
668         * javax/swing/plaf/basic/BasicOptionPaneUI.java
669         (actionPerformed): Return Integer index instead of name.
670         (addButtonComponents): Check to see if component is
671         JButton last.
672         (createMessageArea): Don't use components that are not
673         completed yet.
674         (getIconForType): Use temporary icons.
675         * javax/swing/plaf/basic/BasicSliderUI.java:
676         (mousePressed): Do not return if it's on thumb.
677         (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
678         (paintMinorTickForVertSlider): ditto.
679         (paintMajorTickForHorizSlider): ditto.
680         (paintMajorTickForVertSlider): ditto.
681         * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
682         Add a border around the SplitPaneDivider.
683         * javax/swing/plaf/basic/BasicSplitPaneUI.java:
684         Remove comments.
685         * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
686         New file. Implemented.
687         * javax/swing/plaf/basic/BasicToolBarUI.java:
688         Implemented.
689         * testsuite/Makefile.in: Regenerated.
690
691 2004-07-21  Graydon Hoare  <graydon@redhat.com>
692
693         * javax/swing/Timer.java (run): Queue events each time cycle.
694
695 2004-07-21  David Jee  <djee@redhat.com>
696
697         * gnu/java/awt/peer/gtk/GtkImagePainter.java
698         (imageComplete): Call image.imageComplete().
699         * java/awt/image/MemoryImageSource.java:
700         Reimplement consumers as a Vector instead of a Hashtable.  This is
701         because enumeration on a Hashtable is not thread-safe.
702         (addConsumer): Adapt to Vector consumers.
703         (isConsumer): Adapt to Vector consumers.
704         (removeConsumer): Adapt to Vector consumers.
705         (startProduction): Adapt to Vector consumers. Call imageComplete()
706         with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
707         (newPixels): Adapt to Vector consumers.
708         (sendPicture): Set the color model of the image consumer.
709         (newPixels(IIII)): Adapt to Vector consumers.
710         (newPixels(IIIIB)): Adapt to Vector consumers.
711
712 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
713
714         * java/awt/Component.java (deliverEvent): Implement.
715         (postEvent): Implement.
716         (handleEvent): Implement.
717         (translateEvent): New method.
718         (dispatchEventImpl): Document.  Add AWT 1.0 event handling.
719         * java/awt/Container.java (deliverEvent): Implement.
720         * java/awt/Event.java (paramString): Fix formatting.
721         * java/awt/Font.java (toString): Likewise.
722         * java/awt/Window.java (postEvent): Implement.
723
724 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
725
726         * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
727         Set window's focus owner upon receiving a FOCUS_LOST event.
728         * java/awt/Window.java (Window()): Refocus the previously
729         focused component within the window when the window regains the
730         top-level focus.
731         (setFocusOwner): New method.
732         * java/awt/Component.java (requestFocus): Add FIXME.
733
734         * libgcj.pc.in: Remove library flags.
735
736 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
737
738         * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
739         MOUSE_PRESSED event.
740         * java/awt/Component.java (requestFocus()): Handle Panel
741         specially.  Post FOCUS_LOST event on opposite component.
742         (requestFocus(boolean)): Likewise.
743         (requestFocusInWindow(boolean)): Likewise.
744         (paramString): Reorder dimension fields.
745         * java/awt/Container.java (paramString): Fix string format.
746         * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
747         Handle FOCUS_LOST events.  Don't handle Windows specially.  Only
748         process key events if the focus owner is non-null.
749         (dispatchKeyEvent): Likewise.
750         * java/awt/Frame.java (paramString): Fix formatting.
751         (generateName): New method.
752         (getUniqueLong): Likewise.
753         * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
754         the temporary focus owner is null.  If so, return the permanent
755         focus owner.
756         * java/awt/Panel.java (generateName): New method.
757         (getUniqueLong): Likewise.
758         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
759         signal handling to make callbacks more specific.
760
761 2004-07-21  Michael Koch  <konqueror@gmx.de>
762
763         * javax/swing/text/Position.java
764         (Bias): Implemented.
765
766 2004-07-21  Michael Koch  <konqueror@gmx.de>
767
768         * javax/swing/LookAndFeel.java
769         (provideErrorFeedback): New method.
770
771 2004-07-21  Michael Koch  <konqueror@gmx.de>
772
773         * javax/swing/JTextArea.java
774         (tabSize): New field.
775         (getTabSize): New method.
776         (setTabSize): Likewise.
777
778 2004-07-21  Michael Koch  <konqueror@gmx.de>
779
780         * javax/swing/ActionMap.java:
781         Fixed javadocs all over.
782         (serialVersionUID): Made private.
783         (parent): Don't explicitely initialize with default value.
784         (get): SImplified.
785         (keys): Reimplemented.
786         (allKeys): Likewise.
787         (convertSet): Removed.
788         * javax/swing/ComponentInputMap.java:
789         Fixed javadocs all over.
790         (ComponentInputMap): Implemented.
791         (put): Likewise.
792         (clear): Likewise.
793         (remove): Likewise.
794         (SetParent): Likewise.
795         (getComponent): Likewise.
796         * javax/swing/InputMap.java:
797         Fixed javadocs all over.
798         (serialVersionUID): Made private.
799         (parent): Don't explicitely initialize with default value.
800         (get): SImplified.
801         (keys): Reimplemented.
802         (allKeys): Likewise.
803         (convertSet): Removed.
804
805 2004-07-21  Michael Koch  <konqueror@gmx.de>
806
807         * javax/swing/ActionMap.java,
808         javax/swing/ComponentInputMap.java,
809         javax/swing/InputMap.java,
810         javax/swing/table/DefaultTableColumnModel.java,
811         javax/swing/table/TableColumn.java,
812         javax/swing/table/TableColumnModel.java,
813         javax/swing/table/TableModel.java,
814         javax/swing/text/AbstractDocument.java,
815         javax/swing/text/TextAction.java:
816         Reformated.
817
818 2004-07-21  Graydon Hoare  <graydon@redhat.com>
819
820         * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError): 
821         Make method non-static.
822         * javax/swing/AbstractButton.java:
823         Rename fields to match property names where possible.
824         (iconTextGap): New property.
825         * javax/swing/JCheckBox.java: Match AbstractButton changes.
826         (init) New method, call from after various constructors.
827         * javax/swing/JComponent.java (revalidate): 
828         Invalidate before queueing repair.
829         * javax/swing/JList.java (getPreferredScrollableViewportSize):
830         Reimplement in terms of visibleRowCount property.
831         * javax/swing/JMenuButton.java: Match AbstractButton changes.
832         * javax/swing/JScrollPane.java (createScrollListener): 
833         Remove tracing chatter.
834         * javax/swing/JToggleButton.java: Match AbstractButton changes.
835         * javax/swing/RepaintManager.java (addInvalidComponent): 
836         Don't invalidate.
837         * javax/swing/ScrollPaneLayout.java: Various corrections to layout
838         calculations.
839         * javax/swing/SwingUtilities.java (layoutCompoundLabel): 
840         Mimic sun behavior on top left/right positioning.
841         * javax/swing/ViewportLayout.java (preferredLayoutSize):
842         Remove mistaken use of preferredScrollableViewportSize here.
843         (layoutContainer): Use view's preferred size as basis.
844         * javax/swing/plaf/basic/BasicButtonUI.java:
845         Set, get, and use textIconGap property.
846         (paint) Paint text returned from layout (with ellipsis).
847         * javax/swing/plaf/basic/BasicListUI.java:
848         Remove tracing chatter, correct various minor calculations.
849         (getCellBounds): Update layout state before calculating.
850         * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
851         Use margin default similar to sun's.    
852         * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
853         (createIncreaseIcon): Center icon, minimize margins.
854         (createDecreaseIcon): Likewise.
855         * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
856         Implement.
857         (installUI): Call it.
858         (uninstallDefaults): Implement.
859         (uninstallUI): Call it.
860         * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
861         Call existing Window constructor.
862         * javax/swing/plaf/basic/BasicViewportUI.java (paint):
863         Set clip before painting.
864
865 2004-07-21  Olga Rodimina <rodimina@redhat.com>
866         
867         * javax/swing/JMenuItem.java:
868         (processMouseEvent): Reimplemented to deal with
869         mouse drag events.
870         (createMenuDragMouseEvent): New private helper method.
871         Creates MenuDragMouseEvent.
872         * javax/swing/MenuSelectionManager.java
873         (componentForPoint): Implemented.
874         (isComponentPartOfCurrentMenu): Made public.
875         (processMouseEvent): Reimplemented to deal with 
876         mouse drag events.
877         (setSelectedPath): Corrected small mistake that caused
878         path to be set incorrectly.
879         (getPath): If given component is JMenu then also add this
880         menu's popup menu to the selected path.
881         * javax/swing/plaf/basic/BasicMenuItemUI.java:
882         (getPath): Ditto.
883         (getPreferredSize): Call getPreferredMenuItemSize().
884         (getPreferredItemSize): Moved code from getPreferredSize to here.
885         (installListeners): Install MouseMotionListeners.
886         (MouseInputHandler): Pass mouse release event to MenuSelectionManager 
887         if mouse wasn't released in the bounds of this menu item.
888         (MenuDragMouseHandler): Implemented.
889         * javax/swing/plaf/basic/BasicMenuUI.java:
890         (installListeners): Install MouseMotionListener and 
891         MenuDrageMouseListener.
892         (MenuDragMouseHandler): Implemented.
893         * javax/swing/plaf/basic/BasicPopupMenuUI.java:
894         (uninstallListeners): Implemented.
895         
896 2004-07-21  Michael Koch  <konqueror@gmx.de>
897
898         * javax/swing/JCheckBox.java: Reformated.
899         (JCheckBox): Fixed all constructors.
900         (isBorderPaintedFlat): New method.
901         (setBorderPaintedFlat): New method.
902         * javax/swing/JEditorPane.java
903         (createEditorKitForContentType): Made public.
904         (scrollToReference): Likewise.
905         * javax/swing/JTextArea.java
906         (setLineWrap): Fire property change.
907         * javax/swing/JToggleButton.java
908         (JToggleButton): New constructor.
909         (JToggleButton): Simplified.
910         * javax/swing/text/AttributeSet.java
911         (FontAttribute): Renamed from FontCharacterAttribute.
912         * javax/swing/text/JTextComponent.java
913         (KeyBinBinding): Added javadoc.
914         (JTextComponent): Likewise.
915         (getAccessibleContext): Fixed javadoc.
916         * javax/swing/text/View.java
917         (View): Added javadoc.
918         * javax/swing/text/TabableView.java: New file.
919         * Makefile.am: Added javax/swing/text/TabableView.java.
920         * Makefile.in: Regenerated.
921
922 2004-07-21  Graydon Hoare  <graydon@redhat.com>
923
924         * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
925         * gnu/java/awt/peer/gtk/GtkToolkit.java 
926         (GtkErrorImage): New helper class.
927         (bufferedImageOrError): New helper method.
928         (createImage): Use it.
929
930 2004-07-21  David Jee  <djee@redhat.com>
931
932         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
933         (setCaretPosition): Scroll the text view so the new caret position
934         is visible on screen.
935
936 2004-07-21  David Jee  <djee@redhat.com>
937
938         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
939         (setBounds): Do not validate awtComponent here.
940         * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
941         (getPreferredSize): New method.
942         * java/awt/ScrollPane.java
943         (ScrollPane): Set default size to 100x100.
944         (addNotify): If child is not a Panel, wrap it with a new Panel.
945         (paramString): Implement.
946
947 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
948
949         * javax/swing/JMenu.java:
950         (setSelected): Display popup menu only if this menu 
951         is showing on the screen.
952         * javax/swing/JPopupMenu.java:
953         (processMouseEvent): Added comment.
954         (processKeyEvent): Likewise.
955         * javax/swing/MenuSelectionManager.java:
956         (clearSelectedPath): Only fireStateChanged() after
957         selected path was changed, not before.
958         (setSelectedPath): Likewise.
959         * javax/swing/plaf/basic/BasicMenuItemUI.java:
960         (paintMenuItem): Corrected position of menu item's
961         icon.
962         * javax/swing/plaf/basic/BasicPopupMenuUI.java:
963         (installUI): Correct setDefaultLightWeightPopupEnabled call.
964         (popupMenuCanceled): Reimplemented.
965         (popupMenuWillBecomeVisible): Select first menu item by default 
966         when displaying free floating popup menus.
967         (TopWindowListener): Reimplemented.
968
969 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
970
971         * java/awt/Panel.java (dispatchEventImpl): Override to prevent
972         Panel from being painted twice when it is first shown.
973
974 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
975
976         * java/awt/Window.java: Reverted changes from my 
977         previous patch for creating window without an owner.
978         * javax/swing/SwingUtilities.java: 
979         (SwingUtilities.OwnerFrame): made static.
980         (OwnerFrame.setVisible): New method. Overridden with
981         empty implementation.
982         (OwnerFrame.isShowing): New method. Ovverridden
983         to return always true.
984
985 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
986
987         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
988         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
989         (GtkComponentPeer): Remove temporary try/catch block.
990         (setVisible): Call show and hide.
991         (show): Make native.
992         (hide): Likewise.
993         (getArgs): Don't add "visible" argument.
994         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
995         (property_notify_predicate): Return Bool instead of int.
996         (find_layout): New function.
997         (connectJObject): Call find_layout.
998         (connectSignals): Likewise.
999         (moveLayout): Likewise.
1000         (gtkLayoutSetVisible): Likewise.
1001
1002 2004-07-21  Mark Wielaard  <mark@klomp.org>
1003
1004         * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1005         on notifier object before calling notifyAll().
1006
1007 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
1008
1009         * java/awt/Window.java: Changed constructors to use new
1010         method that is described below. Constructors call this
1011         methods only if newly created window should have an owner.
1012         (setWindowOwner): New method. Implementation for
1013         this method is moved from this(owner,configuration).
1014         * javax/swing/JWindow.java:
1015         (JWindow): Reimplement to use SwingUtilities.ownerFrame
1016         instead of owner.
1017         * javax/swing/SwingUtilities.java:
1018         (ownerFrame): Change type of this field to OwnerFrame.
1019         (getOwnerFrame): Changed to return object of type OwnerFrame.
1020         (SwingUtilities.OwnerFrame): New class. Represents owner
1021         of a Window that is not provided with one.
1022
1023 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
1024
1025         *  javax/swing/AbstractButton.java: 
1026         (configurePropertiesFromAction): Set action command
1027         to button's text by default if action command is not 
1028         explicitely specified.
1029         * javax/swing/JMenu.java: Remove unnecessary listener
1030         and methods relevant to it.
1031         (setSelected): Reimplemented.
1032         (menuSelectionChanged): Moved most part of implementation to
1033         setSelected() and call it instead.
1034         * javax/swing/JMenuItem.java: 
1035         (init): Comment out statement that sets paint_border to false.
1036         (configurePropertiesFromAction): Do not set accelerator
1037         for JMenu.
1038         (menuSelectionChanged): Change selected index in the selection
1039         model of menu item's parent.
1040         * javax/swing/JPopupMenu.java:
1041         (remove): Set constraints.fill field to GridBagConstraints.BOTH
1042         instead of GridBagConstraints.HORIZONTAL.
1043         (insert): Likewise.
1044         (createActionChangeListener): Implemented.
1045         (setVisible): Correct location of HeavyWeightMenu and 
1046         don't firePopupMenuCanceled().
1047         (menuSelectionChanged): Implemented.
1048         (ActionChangeListener): New Listener. Implemented.
1049         * javax/swing/plaf/basic/BasicMenuBarUI.java:
1050         (BasicMenuBarUI.ContainerHandler): Implemented.
1051         * javax/swing/plaf/basic/BasicMenuItemUI.java:
1052         (paintMenuItem): Uncommented out code that paints 
1053         icon, now that icons are working properly.
1054         (PropertyChangeListener): Implemented.
1055         * javax/swing/plaf/basic/BasicPopupMenuUI.java:
1056         Added javadocs.
1057         (topWindowListener): New field.
1058         (Constructor): initialize topWindowListener.
1059         (BasicPopupMenuUI.TopWindowListener): Implemented.      
1060         (BasicPopupMenuUI.PopupMenuHandler): Implemented.
1061         (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
1062         Implemented.
1063
1064 2004-07-21  Michael Koch  <konqueror@gmx.de>
1065
1066         * javax/swing/plaf/basic/BasicButtonUI.java
1067         (paintFocus): Fixed method signature.
1068         (paintButtonPressed): Likewise.
1069         (paintButtonNormal): Likewise.
1070         (paintText): New method.
1071         * javax/swing/plaf/basic/BasicLabelUI.java
1072         (paint): Re-indented.
1073         * javax/swing/plaf/basic/BasicTextUI.java
1074         (installUI): Set parent textComponent to opaque.
1075         * javax/swing/text/DefaultHighlighter.java
1076         (checkPositions): New helper method.
1077         (addHighlight): Throws BadLocationException, check positions.
1078         (changeHighlight): Likewise.
1079         * javax/swing/text/EditorKit.java
1080         (EditorKit): Implements Serializable.
1081         * javax/swing/text/JTextComponent.java
1082         (getUI): Added javadoc.
1083         (setUI): Likewise.
1084         (upadteUI): Added javadoc, don't revalidate and repaint.
1085
1086 2004-07-21  David Jee  <djee@redhat.com>
1087
1088         * java/awt/GridBagLayout.java
1089         (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
1090         * javax/swing/AbstractButton.java
1091         (setText): Reindent.
1092         * javax/swing/RepaintManager.java
1093         (addInvalidComponent): Find the first ancestor that isValidateRoot().
1094
1095 2004-07-21  Michael Koch  <konqueror@gmx.de>
1096
1097         * javax/swing/JFormattedTextField.java
1098         (value): New field.
1099         (JFormattedTextField): Implemented.
1100         (getValue): Likewise.
1101         (setValue): Likewise.
1102         * javax/swing/LookAndFeel.java
1103         (getSupportsWindowDecorations): New method.
1104         * javax/swing/UIDefaults.java:
1105         Use java.beans.PropertyChangeSupport instead of doing all ourself.
1106         (addPropertyChangeListener): Made public.
1107         (addResourceBundle): Likewise.
1108         (removeResourceBundle): Likewise.
1109         (setDefaultLocale): Likewise.
1110         * javax/swing/plaf/basic/BasicRootPaneUI.java
1111         (BasicRootPaneUI): Implements PropertyChangeListener.
1112         (propertyChange): New method.
1113         * javax/swing/plaf/basic/BasicTextUI.java
1114         (BasicHighlighter): New inner class.
1115         (createHighlighter): New method.
1116         * javax/swing/plaf/basic/BasicToolBarUI.java
1117         (DragWindow): Extends java.awt.Window.
1118         * javax/swing/text/JTextComponent.java
1119         (getDocument): Removed debug output.
1120         * javax/swing/plaf/basic/BasicTextFieldUI.java,
1121         javax/swing/text/DefaultHighlighter.java,
1122         javax/swing/text/FieldView.java,
1123         javax/swing/text/PlainView.java: New files.
1124         * Makefile.am: Added new files.
1125         * Makefile.in: Regenerated.
1126
1127 2004-07-21  Michael Koch  <konqueror@gmx.de>
1128
1129         * javax/swing/JEditorPane.java
1130         (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
1131         (createEditorKitForContentType): Likewise.
1132         * javax/swing/text/DefaultEditorKit.java
1133         (serialVersionUID): Added constant field.
1134         (EndOfLineStringPropery): Fixed typo.
1135         (DefaultEditorKit): New constructor.
1136         * javax/swing/text/Segment.java:
1137         Import java.text.CharacterIterator.
1138         * javax/swing/text/CharacterIterator.java,
1139         javax/swing/text/PlainEditorKit.java: Removed.
1140         * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
1141         javax/swing/text/PlainEditorKit.java.
1142         * Makefile.in: Regenerated.
1143
1144 2004-07-21  Michael Koch  <konqueror@gmx.de>
1145
1146         * javax/swing/JButton.java,
1147         javax/swing/text/DefaultEditorKit.java,
1148         javax/swing/text/EditorKit.java,
1149         javax/swing/text/Segment.java,
1150         javax/swing/text/StyledEditorKit.java:
1151         Reformatted.
1152
1153 2004-07-21  Michael Koch  <konqueror@gmx.de>
1154
1155         * javax/swing/ImageIcon.java
1156         (file): Removed.
1157         (description): Renamed from descr.
1158         (ImageIcon): Added missing constructors.
1159         (setParent): Removed.
1160         (setImageObserver): New method.
1161         (getImageObserver): New method.
1162         (paintIcon): Handle observer = null.
1163         * javax/swing/JButton.java
1164         (removeNotify): Fixed javadoc.
1165         (updateUI): Simplified.
1166         * javax/swing/JRootPane.java
1167         (serialVersionUID): New constant field.
1168         * javax/swing/UIManager.java:
1169         Fixed javadocs all over.
1170         (setLookAndFeel): Throws UnsupportedLookAndFeelException.
1171         * javax/swing/text/AbstractDocument.java
1172         (createPosition): Throws BadLocationException.
1173         (getText): Likewise.
1174         (remove): Likewise.
1175         * javax/swing/text/ComponentView.java
1176         (modelToView): Likewise.
1177         * javax/swing/text/DefaultEditorKit.java:
1178         Made all public methods public.
1179         (read): Throws BadLocationException and IOException.
1180         (write): Likewise.
1181         * javax/swing/text/EditorKit.java:
1182         Made all public methods public.
1183         (serialVersionUID): New constant field.
1184         (clone): New method.
1185         (read): Throws BadLocationException and IOException.
1186         (write): Likewise.
1187         * javax/swing/text/Segment.java
1188         (array): Made public.
1189         (count): Likewise.
1190         (offset): Likewise.
1191         (Segment): New constructors.
1192         (clone): Reimplemented.
1193         * javax/swing/text/StyledEditorKit.java
1194         (serialVersionUID): New constant field.
1195
1196 2004-07-21  Graydon Hoare  <graydon@redhat.com>
1197
1198         * java/awt/image/BufferedImage.java 
1199         (getSource): Implement.
1200         * javax/swing/ImageIcon.java 
1201         (ImageIcon): Implement ctor.
1202         * javax/swing/ScrollPaneLayout.java 
1203         (preferredLayoutSize): Be more careful about nulls.
1204
1205 2004-07-21  Michael Koch  <konqueror@gmx.de>
1206
1207         * javax/swing/text/AttributeSet.java
1208         (CharacterAttribute): New interface
1209         (ColorAttribute): Likewise.
1210         (FontCharacterAttribute): Likewise.
1211         (ParagraphAttribute): Likewise.
1212         * javax/swing/text/DefaultCaret.java
1213         (moveCaret): New method.
1214         (positionCaret): Likewise.
1215         (repaint): Made protected.
1216         * javax/swing/text/JTextComponent.java
1217         (KeyBinding): Made it static.
1218         * javax/swing/text/View.java
1219         (getContainer): Honor parent == null.
1220
1221 2004-07-21  Michael Koch  <konqueror@gmx.de>
1222
1223         * javax/swing/text/AbstractDocument.java:
1224         Reformatted.
1225
1226 2004-07-21  Michael Koch  <konqueror@gmx.de>
1227
1228         * javax/swing/plaf/basic/BasicRootPaneUI.java:
1229         Import javax.swing.UIManager explicitely.
1230         * javax/swing/plaf/basic/BasicTabbedPaneUI.java
1231         (ScrollingButton): Made it static.
1232
1233 2004-07-21  Michael Koch  <konqueror@gmx.de>
1234
1235         * javax/swing/UIDefaults.java
1236         (ActiveValue): Made public.
1237         (LazyValue): Likewise.
1238         * javax/swing/plaf/basic/BasicTextUI.java
1239         (RootView): Reintroduced.
1240         (view): Removed.
1241         (rootView): New field.
1242         (installUI): Create document if needed, initialize rootView.
1243         (uninstallUI): Hanle rootView.
1244         (paint): Likewise.
1245         (getRootView): Likewise.
1246         (setView): Likewise.
1247         * javax/swing/text/DefaultCaret.java:
1248         Renamed all "evt" variables to "event".
1249
1250 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
1251
1252         * libgcj.spec.in: Add -l-java-util-logging.
1253
1254 2004-07-21  Andreas Tobler  <a.tobler@schweiz.ch>
1255
1256         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1257         (init_dpi_conversion_factor): Check for int_dpi < 0 in case
1258         gtk-xft-dpi can no calculate the right value.
1259         (dpi_changed_cb): Mark *pspec as unsused.
1260
1261 2004-07-21  David Jee  <djee@redhat.com>
1262
1263         * java/awt/Component.java
1264         (move): Delegate to setBounds().
1265         (resize): Likewise.
1266         (reshape): Fix so it repaints parent and self only when necessary.
1267
1268 2004-07-21  David Jee  <djee@redhat.com>
1269
1270         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1271         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1272         (GtkComponentPeer): Revert previous patch from 2004-06-22.
1273         (setVisible): Likewise.
1274         (show): Likewise.
1275         (hide): Likewise.
1276         (getArgs): Likewise.
1277         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1278         (property_notify_predicate): Likewise.
1279         (find_layout): Likewise.
1280         (connectJObject): Likewise.
1281         (connectSignals): Likewise.
1282         (moveLayout): Likewise.
1283         (gtkLayoutSetVisible): Likewise.
1284
1285 2004-07-21  Graydon Hoare  <graydon@redhat.com>
1286
1287         * Makefile.am
1288         (jv_convert_LDADD):
1289         (gij_LDADD):
1290         (rmic_LDADD):
1291         (rmiregistry_LDADD): Add lib-java-util-logging.la
1292         * Makefile.in: Regenerate.
1293
1294 2004-07-21  Michael Koch  <konqueror@gmx.de>
1295
1296         * javax/swing/text/AbstractDocument.java
1297         (replace): Dont use protected method of java.util.Vector directly.
1298
1299 2004-07-21  Michael Koch  <konqueror@gmx.de>
1300
1301         * javax/swing/plaf/basic/BasicTextUI.java
1302         (installUI): Call specialized install methods.
1303         (installDefaults): New method.
1304         (installListeners): Likewise.
1305         (installKeyboardActions): Likewise.
1306         (uninstallUI): Likewise.
1307         (uninstallDefaults): New method.
1308         (uninstallListeners): Likewise.
1309         (uninstallKeyboardActions): Likewise.
1310         (getPropertyPrefix): New abstract method.
1311         (paint): Made final, just call paintSafely().
1312         (paintSavely): New method.
1313         (paintBackground): Likewise.
1314         (getVisibleEditorRect): Likewise.
1315         * javax/swing/text/LayeredHighlighter.java,
1316         javax/swing/text/TabExpander.java: New files.
1317         * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
1318         and javax/swing/text/TabExpander.java.
1319         * Makefile.in: Regenerated.
1320
1321 2004-07-21  Michael Koch  <konqueror@gmx.de>
1322
1323         * javax/swing/plaf/basic/BasicTextUI.java
1324         (BasicTextUI): Made abstract.
1325         (BasicCaret): New inner class.
1326         (view): Don't explicitely initialize with "null".
1327         (textComponent): New field.
1328         (textColor): Removed.
1329         (disabledTextColor): Removed.
1330         (normalBackgroundColor): Removed.
1331         (RootView): Removed commented out inner class.
1332         (createUI): Removed.
1333         (createCaret): New method.
1334         (getComponent): Likewise.
1335         (installUI): Initialize textComponent only.
1336         (getPreferredSize): Use installed JTextComponent.
1337         (setView): New method.
1338         (create): Likewise.
1339         * javax/swing/text/JTextComponent.java
1340         (highlighter): New field.
1341         (caretColor): Likewise.
1342         (disabledTextColor): Likewise.
1343         (seletedTextColor): Likewise.
1344         (selectionColor): Likewise.
1345         (setUI): New method.
1346         (getCaretColor): Likewise.
1347         (setCaretColor): Likewise.
1348         (getDisabledColor): Likewise.
1349         (setDisabledColor): Likewise.
1350         (getSelectedTextColor): Likewise.
1351         (setSelectedTextColor): Likewise.
1352         (getSelectionColor): Likewise.
1353         (setSelectionColor): Likewise.
1354         (getHighlighter): Likewise.
1355         (setHighlighter): Likewise.
1356         (replaceSelection): Likewise.
1357
1358 2004-07-21  Michael Koch  <konqueror@gmx.de>
1359
1360         * javax/swing/plaf/basic/BasicScrollPaneUI.java
1361         (BasicScrollPaneUI): Implements ScrollPaneConstants.
1362         * javax/swing/plaf/basic/BasicToolBarUI.java
1363         (BasicToolBarUI): Implements SwingConstants.
1364
1365 2004-07-21  Michael Koch  <konqueror@gmx.de>
1366
1367         * javax/swing/JPopupMenu.java: Removed CVS tags.
1368         * javax/swing/UIDefaults.java: Reformatted.
1369         * javax/swing/plaf/basic/BasicRootPaneUI.java:
1370         Explicitely import used classes.
1371
1372 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
1373
1374         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1375         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1376         (GtkComponentPeer): Remove temporary try/catch block.
1377         (setVisible): Call show and hide.
1378         (show): Make native.
1379         (hide): Likewise.
1380         (getArgs): Don't add "visible" argument.
1381         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1382         (property_notify_predicate): Return Bool instead of int.
1383         (find_layout): New function.
1384         (connectJObject): Call find_layout.
1385         (connectSignals): Likewise.
1386         (moveLayout): Likewise.
1387         (gtkLayoutSetVisible): Likewise.
1388
1389 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
1390
1391         * javax/swing/AbstractButton.java:
1392         (setDisplayedMnemonicIndex): Check if button
1393         text is not null before checking its length.
1394         * javax/swing/JMenuItem.java:
1395         (processMouseEvent): Disarm menu item if mouse has
1396         exited it.
1397         * javax/swing/plaf/basic/BasicMenuUI.java:
1398         (MouseInputHandler.mouseEntered): Do not raise
1399         popup menu if this menu is already selected.
1400         (MouseInputHandler.mousePressed): Do not fire 
1401         MenuEvents.
1402         (MenuHandler): Implemented.     
1403
1404 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
1405
1406         * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
1407         (getSelectedObjects): Implemented.
1408         * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
1409         * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: 
1410         Added javadoc for few methods.
1411         (processMouseEvent): Made public.
1412         * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
1413         (processMouseEvent): Likewise.
1414
1415 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
1416
1417         * javax/swing/AbstractButton.java:
1418         (init): Set display mnemonic index to -1.
1419         (setMnemonic(char)): Use setMnemonic(int).
1420         (setMnemonic(int)): Set display mnemonic index.
1421         (getDisplayedMnemonicIndex): Change method signature
1422         by removing 'index' parameter.
1423         * javax/swing/plaf/basic/BasicLookAndFeel.java:
1424         Added default for Menu.selectionBackground.     
1425         * javax/swing/plaf/basic/BasicMenuItemUI.java:
1426         (paintMenuItem): Change background color of the selected
1427         menu item.
1428         (paintText): Paint differently when menu item is disabled.
1429         Also paint mnemonic if it appears in the menu item's label.
1430         (paintAccelerator): Paint accelerator differently
1431         if menu item is disabled.
1432         * javax/swing/plaf/basic/BasicMenuUI.java:
1433         (installDefaults): Install defaults for 
1434         selectionForeground and selectionBackground.
1435         (uninstallDefaults): Uninstall defauls for 
1436         selectionForeground and selectionBackground.
1437
1438 2004-07-21  Michael Koch  <konqueror@gmx.de>
1439
1440         * javax/swing/text/AbstractDocument.java
1441         (BranchElement): Implemented.
1442         (LeafElement): Implemented.
1443         * javax/swing/text/DefaultCaret.java:
1444         Import used classes.
1445         (serialVersionUID): New constant.
1446         * javax/swing/text/JTextComponent.java
1447         (AccessibleJTextComponent): Removed dead declaration.
1448         (caretPos): Removed.
1449         (setCaret): New method.
1450         * javax/swing/text/PlainDocument.java
1451         (rootElement): New field.
1452         (PlainDocument): Initialize rootElement.
1453         (createDefaultRoot): New method.
1454         (getDefaultRootElement): Implemented.
1455         * javax/swing/text/View.java: Reformatted.
1456         * javax/swing/text/ViewFactory.java
1457         (create): Added javadoc.
1458
1459 2004-07-21  Michael Koch  <konqueror@gmx.de>
1460
1461         * javax/swing/ToolTipManager.java: Reformatted.
1462
1463 2004-07-21  Rodimina Olga  <rodimina@redhat.com>
1464
1465         * javax/swing/AbstractButton.java
1466         (changeEvent): New field.
1467         (fireItemStateChanged): Change source of the event
1468         to 'this' before firing it to button listeners.
1469         (fireActionPerformed): Likewise.
1470         (fireStateChanged): Likewise.
1471         (createActionListener): Do not set source 
1472         of the event to AbstractButton.                                  
1473         * javax/swing/plaf/basic/BasicMenuBarUI.java:
1474         (ContainerHandler.componentAdded): Removed 
1475         print out statement.
1476         (ContainerHandler.componentRemoved): Likewise.
1477
1478 2004-07-21  Michael Koch  <konqueror@gmx.de>
1479
1480         * javax/swing/text/Highlighter.java: New file.
1481         * Makefile.am: Added javax/swing/text/Highlighter.java.
1482         * Makefile.in: Regenerated.
1483
1484 2004-07-21  Michael Koch  <konqueror@gmx.de>
1485
1486         * javax/swing/ToolTipManager.java
1487         (stillInsideTimerAction): Fixed constructor arguments.
1488         (outsideTimerAction): Likewise.
1489         (insideTimerAction): Likewise.
1490
1491 2004-07-21  Michael Koch  <konqueror@gmx.de>
1492
1493         * javax/swing/JButton.java: Reformatted.
1494         * javax/swing/JFormattedTextField.java
1495         (getUIClassID): Implemented.
1496         * javax/swing/JRootPane.java
1497         (serialVersionUID): New constant.
1498         * javax/swing/JTextField.java
1499         (align): New field.
1500         (JTextField): Simplified.
1501         (getUIClassID): New method.
1502         (getActionListeners): Added @since tag.
1503         (setColumns): Invalidate layout and repaint.
1504         (getHorizontalAlignment): New method.
1505         (setHorizontalAlignment): New method.
1506         (selectAll): Removed.
1507         * javax/swing/SwingUtilities.java
1508         (getAncestorOfClass): Removed redundant @see tag.
1509         (isLeftMouseButton): Fixed implementation.
1510         (isMiddleMouseButton): Likewise.
1511         (isRightMouseButton): Likewise.
1512         * javax/swing/text/AbstractDocument.java
1513         (AttributeContext.addAttribute): New method.
1514         (AttributeContext.addAttributes): New method.
1515         (AttributeContext.getEmptySet): New method.
1516         (AttributeContext.reclaim): New method.
1517         (AttributeContext.removeAttribute): New method.
1518         (AttributeContext.removeAttributes): New method.
1519         * javax/swing/text/Document.java
1520         (createPosition): Throws BadLocationException.
1521         (getText): Likewise.
1522         (remove): Likewise.
1523         * javax/swing/text/JTextComponent.java
1524         (getText): Return null if no document is set. Catch
1525         BadLocationException.
1526         (getUI): Return ui.
1527         (updateUI): Simplified.
1528
1529 2004-07-21  Michael Koch  <konqueror@gmx.de>
1530
1531         * javax/swing/JButton.java
1532         (removeNotify): Fixed javadoc.
1533         (updateUI): Simplified.
1534
1535 2004-07-21  David Jee  <djee@redhat.com>
1536
1537         * gnu/java/awt/image/ImageDecoder.java
1538         (startProduction): Only add consumer if it's not added yet.
1539         * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
1540         (GdkPixbufDecoder): Don't call initState() here.
1541         (produce): Call initState() here, to ensure area_prepared and
1542         area_updated signals are properly connected.
1543         * gnu/java/awt/peer/gtk/GtkImage.java
1544         (setColorModel): Use equals() to compare ColorModel objects.
1545         (setPixels): Likewise.
1546         * java/awt/image/ColorModel.java
1547         (equals): Fix typo. Use Arrays.equals() to compare int arrays.
1548         * java/awt/image/RGBImageFilter.java
1549         (setColorModel): Set consumer's color model.
1550         (setPixels): Use equals() to compare ColorModel objects.
1551
1552 2004-07-21  Bryce McKinlay  <mckinlay@redhat.com>
1553
1554         * java/net/URLConnection.java (position): New field.
1555         (dateFormat1, dateFormat2, dateFormat3): Removed.
1556         (dateFormats): New field.
1557         (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
1558         each time instead of re-allocating.
1559         (initializeDateFormats): Initialize 'dateFormats'.
1560
1561 2004-07-20  Bryce McKinlay  <mckinlay@redhat.com>
1562
1563         PR libgcj/16591
1564         * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
1565         is defined.
1566
1567 2004-07-20  Bryce McKinlay  <mckinlay@redhat.com>
1568
1569         * java/net/Socket.java (getImpl): Now private. Remove comment.
1570
1571 2004-07-20  Bryce McKinlay  <mckinlay@redhat.com>
1572
1573         * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
1574         of chained Writer when calling super-constructor.
1575         * java/io/FilterWriter.java (FilterWriter): Likewise.
1576         * java/io/PrintWriter.java (PrintWriter): Likewise.
1577
1578 2004-07-19  Bryce McKinlay  <mckinlay@redhat.com>
1579
1580         * prims.cc (process_gcj_properties): Don't increment i within LHS
1581         of assignment.
1582
1583 2004-07-19  Per Bothner  <per@bothner.com>
1584
1585         Print -verbose:message on "loading", not initialization.
1586         * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED):  Swap order.
1587         * defineclass.cc (_Jv_ClassReader::parse):  Print message if
1588         gcj::verbose_class_flag.
1589         * java/lang/natClass.cc (initializeClass):  Don't print message here.
1590         * java/lang/natClassLoader.cc (_Jv_WaitForState):  If state was
1591         _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
1592         (_Jv_PrepareCompiledClass):  Likewise.
1593
1594 2004-07-18  Matthias Klose  <doko@debian.org>
1595
1596         * configure.in: Substitute target_noncanonical.
1597         * configure: Regenerate
1598
1599 2004-07-17  Michael Koch  <konqueror@gmx.de>
1600
1601         * java/lang/String.java: Fixed javadocs all over.
1602
1603 2004-07-17  Mark Wielaard  <mark@klomp.org>
1604
1605         * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
1606         when size is smaller.
1607         * java/io/RandomAccessFile.java (setLength): Use truncate for
1608         shrinking the file and seek plus write for expanding the file.
1609
1610 2004-07-17  Michael Koch  <konqueror@gmx.de>
1611
1612         * gnu/java/nio/channels/natFileChannelPosix.cc
1613         (implTruncate): Always save current position. Only reposition file
1614         pointer to where we started if not beyond new lenght. Reposition file
1615         pointer to file length if it points beyond the end of file.
1616
1617 2004-07-17  Mark Wielaard  <mark@klomp.org>
1618
1619         * javax/swing/Box.java: Put FIXME comment above class declaration.
1620         * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1621         * javax/swing/JCheckBox.java: Likewise.
1622         * javax/swing/JDialog.java: Likewise.
1623         * javax/swing/JRadioButton.java: Likewise.
1624         * javax/swing/JToggleButton.java: Likewise.
1625         * javax/swing/UIManager.java: Likewise.
1626         * javax/swing/border/TitledBorder.java: Likewise.
1627         * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1628         * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1629         * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1630         * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1631         * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1632         * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1633         * javax/swing/text/JTextComponent.java: Likewise.
1634
1635 2004-07-17  Jeroen Frijters  <jeroen@frijters.net>
1636
1637         * java/net/DatagramPacket.java (setAddress): Removed check for
1638         null address.
1639
1640 2004-07-17  Michael Koch  <konqueror@gmx.de>
1641
1642         * java/net/DatagramSocket.java
1643         (getLocalAddress): Check if socket is bound or not.
1644         * java/net/Socket.java
1645         (getLocalAddrss): Check if socket is bound or not.
1646         (getPort): Return -1 when not connected. Dont check getImpl() for
1647         null.
1648         (setReuseAddress): Check if socket is closed.
1649         (isConnected): Check if getImpl() returns null.
1650
1651 2004-07-17  Mark Wielaard  <mark@klomp.org>
1652
1653         * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1654         on notifier object before calling notifyAll().
1655
1656 2004-07-17  Michael Koch  <konqueror@gmx.de>
1657
1658         * gnu/java/nio/channels/FileChannelImpl.java
1659         (finalize): Added javadoc.
1660
1661 2004-07-17  Guilhem Lavaux <guilhem@kaffe.org>
1662
1663         * java/text/CollationElementIterator.java
1664         (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
1665         (setText): Use ArrayList instead of Vector.
1666
1667 2004-07-17  Michael Koch  <konqueror@gmx.de>
1668
1669         * java/nio/ByteOrder.java
1670         (static): Removed. Not needed.
1671         Thanks to Patrick Reali for noticing.
1672         * java/nio/charset/CharsetDecoder.java
1673         (decode): Fix for classpath bug #9177: Reset state before flipping.
1674
1675 2004-07-17  Michael Koch  <konqueror@gmx.de>
1676
1677         * java/security/Security.java: Fixed javadocs all over.
1678
1679 2004-07-17  Michael Koch  <konqueror@gmx.de>
1680
1681         * gnu/java/awt/EmbeddedWindow.java
1682         (static): Removed.
1683         (addNotify): Set peer via reflection.
1684         (setWindowPeer): Removed.
1685         * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1686         * Makefile.am (nat_source_files):
1687         Removed gnu/java/awt/natEmbeddedWindow.cc.
1688         * Makefile.in: Regenerated.
1689
1690 2004-07-17  Richard Earnshaw  <rearnsha@arm.com>
1691
1692         * configure.in(ZIP, GCJH): Remove white space around '=' in variable
1693         assignment.
1694         * configure: Regenerated.
1695
1696 2004-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
1697
1698         * configure.in: Use build_noncanonical rather than build_alias.
1699         * configure: Rebuild.
1700
1701         * configure.in: Eliminate CANADIAN and NULL_TARGET variables
1702         by logic refactoring.  Move default definition of NATIVE closer
1703         to first alternate definition.
1704         * configure: Regenerate.
1705
1706         * Makefile.am: Set ZIP and GCJH directly using autoconf.
1707         * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
1708         gcj/Makefile.in: Regenerate.
1709         * configure.in: Set ZIP and GCJH.  Remove redundant condition
1710         in AM_CONDITIONAL(NATIVE,...)
1711         * configure: Regenerate.
1712
1713 2004-07-15  Nathanael Nerode  <neroden@gcc.gnu.org>
1714
1715         * configure.in: Use target_noncanonical rather than
1716         target_alias for forward-compatibility with autoconf 2.59.
1717         * configure: Regenerate.
1718         * Makefile.am, gcj/Makefile.am, include/Makefile.am,
1719         testsuite/Makefile.am: Substitute target_noncanonical.
1720         * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1721         testsuite/Makefile.in: Regenerate.
1722
1723         * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
1724         Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
1725         * acinclude.m4: Include acx.m4.
1726         * aclocal.m4: Regenerate.
1727         * configure: Regenerate.
1728
1729 2004-07-15  Bryce McKinlay  <mckinlay@redhat.com>
1730
1731         PR libgcj/16574
1732         * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
1733         (decimalFormat): New static variable.
1734         (sbuf): Likewise.
1735         (getTime): New. Override Date.getTime().
1736         (toString): Synchronize. Use decimalFormat to format nanos value
1737         correctly. Truncate extra zeros.
1738         (before): Compare getNanos() only if getTime() is equal.
1739         (after): Likewise.
1740         
1741 2004-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
1742
1743         * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
1744         * configure.in: ...here.
1745         * aclocal.m4: Regenerate.
1746         * configure: Regenerate.
1747
1748         * aclocal.m4: Rebuilt with aclocal gcj-1.4.
1749         * configure: Rebuilt with autoconf 2.13.
1750         * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1751         testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
1752
1753 2004-07-14  Bryce McKinlay  <mckinlay@redhat.com>
1754
1755         PR libgcj/16204
1756         * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
1757         large file support.
1758         * Makefile.in: Rebuilt.
1759         * testsuite/libjava.lang/LargeFile.java: New test case.
1760         * testsuite/libjava.lang/LargeFile.out: New file.
1761
1762 2004-07-14  Jerry Quinn  <jlquinn@optonline.net>
1763
1764         * java/beans/EventHandler.java: Remove debugging statements.
1765
1766 2004-07-14  Jerry Quinn  <jlquinn@optonline.net>
1767
1768         * java/beans/EventHandler.java: New file.
1769         * Makefile.am (awt_java_source_files): Add EventHandler.java.
1770         * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1771         testsuite/Makefile.in: Regenerate.
1772
1773 2004-07-14  Andreas Tobler  <a.tobler@schweiz.ch>
1774
1775         * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
1776         flag to the gcj_setup.
1777         (gcj_jacks_run): Check tclsh version and launch jacks directly with
1778         the tclsh.
1779         * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
1780         deprecation flag change. 58 XFAILS removed.
1781
1782 2004-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
1783
1784         * configure.host (DIVIDESPEC) [s390*-*-*]: Set to 
1785         -fno-use-divide-subroutine.
1786         * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
1787         (HANDLE_FPE): Define.
1788         (SIGNAL_HANDLER): Change third argument to ucontext_t *.
1789         (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1790         (HANDLE_DIVIDE_OVERFLOW): Define.
1791
1792 2004-07-14  Michael Koch  <konqueror@gmx.de> 
1793             Matthias Klose  <doko@debian.org> 
1794
1795         * java/awt/im/InputContext.java: Initialize in, line.
1796
1797 2004-07-13  Ulrich Weigand  <uweigand@de.ibm.com>
1798
1799         * interpret.cc (run): Correctly access libffi return values of
1800         integral smaller-than-int type; these are implicitly promoted.
1801
1802 2004-07-13  Bryce McKinlay  <mckinlay@redhat.com>
1803
1804         PR libgcj/7587
1805         * interpret.cc (compile_mutex): New.
1806         (_Jv_InitInterpreter): New. Initialize compile_mutex.
1807         (run): Lock compile_mutex before calling compile() if compilation is
1808         required.
1809         * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
1810         * include/java-interp.h (_Jv_InitInterpreter): Declare. 
1811
1812 2004-07-12  Bryce McKinlay  <mckinlay@redhat.com>
1813
1814         PR libgcj/15713
1815         * include/jvm.h (_Jv_value): New union type.
1816         * gcj/field.h (_Jv_Field): Add new _addr union field variants 
1817         * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field 
1818         union members.
1819
1820 2004-07-12  Scott Gilbertson  <scottg@mantatest.com>
1821
1822         * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
1823         * gnu/awt/xlib/XOffScreenImage.java
1824           (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
1825           constructor argument. Add constructor using ImageProducer.
1826           (getSource): Implement.
1827           (imageComplete): New method.
1828           (setColorModel): New method.
1829           (setDimensions): New method.
1830           (setHints): New method.
1831           (setPixels): New method.
1832           (setProperties): New method.
1833         * gnu/gcj/xlib/GC.java (drawPoint): New native method. 
1834         * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
1835
1836 2004-07-11  Bryce McKinlay  <mckinlay@redhat.com>
1837
1838         PR libgcj/16478 
1839         * prims.cc (_Jv_CreateJavaVM): Fix comment.
1840         * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
1841         (finalizerReady): Now native.
1842         (run): Likewise.
1843         (runFinalizers): Removed.
1844         * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
1845         a primitive lock, and don't hold it while running the finalizers.
1846         (runFinalizers): Implement. Don't aquire any Java lock.
1847         (finalizerReady): Use lock primitives to signal finalizer thread.
1848
1849 2004-07-11  Mark Wielaard  <mark@klomp.org>
1850
1851         Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
1852         * java/net/URLStreamHandler.java (parseURL): When url file part
1853         doesn't contain a '/' just ignore context.
1854
1855 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
1856
1857         * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
1858         (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1859         (MAKE_THROW_FRAME): Do not modify PSW address.
1860         (INIT_SEGV): Install SIGINFO-style signal handler.
1861         (INIT_FPE): Likewise.
1862
1863 2004-07-10  Bryce McKinlay  <mckinlay@redhat.com>
1864
1865         * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
1866         status. 21 xfail's removed, 1 added.
1867
1868 2004-07-10  Bryce McKinlay  <mckinlay@redhat.com>
1869
1870         * gcj/javaprims.h: Regenerate CNI namespace definitions.
1871
1872 2004-07-10  Ito Kazumitsu  <kaz@maczuka.gcd.org>
1873
1874         * java/text/MessageFormat.java
1875         (formatInternal): Append "{n}" if argument n is unavailable.
1876         (format(Object, StringBuffer, FieldPosition)): This
1877         should be equivalent to format(Object[],
1878         StringBuffer, FieldPosition).
1879
1880 2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>
1881
1882         * java.util.Calendar.java (cache): New private static field. Cached
1883         mappings of locales->calendar classes.
1884         (ctorArgTypes): New private static field. Singleton argument for
1885         calendar class constructor lookup.
1886         (getInstance): Cache Locale->Calendar class mappings using HashMap.
1887         Optimize by bypassing reflection instantiation for the 
1888         GregorianCalendar case.
1889
1890 2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>
1891
1892         * java/util/Calendar.java: Use getSystemClassLoader as argument for
1893         ResourceBundle.getBundle() calls.
1894         * java/util/GregorianCalendar.java: Likewise.
1895         * java/util/Currency.java: Likewise.
1896         * java/text/BreakIterator.java: Likewise.
1897         * java/text/Collator.java: Likewise.
1898         * java/text/DateFormat.java: Likewise.
1899         * java/text/DateFormatSymbols.java: Likewise.
1900         * java/text/DecimalFormatSymbols.java: Likewise.
1901         * java/text/NumberFormat.java: Likewise.
1902         * java/awt/Window.java: Likewise.       
1903
1904 2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>
1905
1906         * java/util/ResourceBundle.java (bundleCache): Renamed from
1907         resourceBundleCache. Update comments.
1908         (getObject): Don't catch MissingResourceException.
1909         (getBundle(String)): Remove 'final'. Use system classloader if
1910         getCallingClassLoader returned null.
1911         (getBundle(String, Locale)): Likewise.
1912         (BundleKey): New private class. HashMap key for bundle cache lookup.
1913         (lookupKey): New. Singleton instance of BundleKey.
1914         (nullEntry): New. Cache entry to represent failed lookups.
1915         (getBundle(String, Locale, ClassLoader)): Re-written to use new 
1916         caching strategy, no-allocation lookup, and new tryBundle methods.
1917         (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle 
1918         name using given classloader.
1919         (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify 
1920         baseName for given Locale and attempt to load bundle.
1921
1922 2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>
1923
1924         * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove 
1925         illegal protected method calls.
1926
1927 2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>
1928
1929         Fix or remove some bogus test cases.
1930         * testsuite/libjava.compile/pr10459_2.java: Removed.
1931         * testsuite/libjava.compile/pr10459.java: Test using its own method,
1932         not Object.clone().
1933         * testsuite/libjava.compile/inner_data.java: Test against its own
1934         protected field.
1935
1936 2004-07-09  Michael Koch  <konqueror@gmx.de>
1937
1938         * scripts/unicode-muncher.pl: Updated to version 2.1
1939         from GNU classpath. Added some clarifications on where to find the
1940         needed files from www.unicode.org.
1941         * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
1942         gnu/gcj/convert/UnicodeData-3.0.0.txt:
1943         Removed, these can directly be downloaded from www.unicode.org if
1944         needed. 
1945         * gnu/java/lang/CharData.java: Regenerated.
1946         * include/java-chartables.h: Regenerated.
1947         * Makefile.am (ordinary_java_source_files):
1948         Removed gnu/java/lang/CharData.java.
1949         * Makefile.in: Regenerated.
1950
1951 2004-07-09  Michael Koch  <konqueror@gmx.de>
1952
1953         * java/security/AccessControlContext.java,
1954         java/security/SecureClassLoader.java:
1955         Fixed javadocs.
1956
1957 2004-07-09  Michael Koch  <konqueror@gmx.de>
1958
1959         * java/io/ObjectInputStream.java (readFields): Use long datatype
1960         when shifting byte values more then 24 bits left.
1961
1962 2004-07-09  Michael Koch  <konqueror@gmx.de>
1963
1964         * java/util/zip/DeflaterOutputStream.java,
1965         java/util/zip/GZIPInputStream.java,
1966         java/util/zip/GZIPOutputStream.java,
1967         java/util/zip/InflaterInputStream.java:
1968         Reformatted. Added javadocs. Reordered all stuff.
1969         Renamed variables to be more clear.
1970
1971 2004-07-09  Michael Koch  <konqueror@gmx.de>
1972
1973         * javax/imageio/IIOException.java,
1974         javax/imageio/event/IIOReadProgressListener.java,
1975         javax/imageio/event/IIOReadUpdateListener.java,
1976         javax/imageio/event/IIOReadWarningListener.java,
1977         javax/imageio/event/IIOWriteProgressListener.java,
1978         javax/imageio/event/IIOWriteWarningListener.java:
1979         New files.
1980         * Makefile.am: Added new files.
1981         * Makefile.in: Regenerated.
1982
1983 2004-07-09  Guilhem Lavaux <guilhem@kaffe.org>
1984
1985         * java/text/RuleBasedCollator.java
1986         (mergeRules): Use ArrayList instead of Vector.
1987         (subParseString): likewise.
1988         (parseString): likewise.
1989         (buildCollationVector): likewise.
1990         (getCollationKey): likewise.
1991
1992 2004-07-09  Dalibor Topic  <robilad@kaffe.org>
1993
1994         * java/text/DateFormat.java (parse):
1995         Improved javadoc. Improved exception message.
1996
1997 2004-07-09  Mark Wielaard  <mark@klomp.org>
1998
1999         * gnu/java/nio/SelectorImpl.java (select): Call static Thread
2000         interrupted() method to clear interupt flag of our Thread.
2001
2002 2004-07-09  Dalibor Topic  <robilad@kaffe.org>
2003
2004         * java/nio/Buffer.java,
2005         java/nio/ByteBuffer.java,
2006         java/nio/ByteBufferHelper.java,
2007         java/nio/ByteBufferImpl.java,
2008         java/nio/CharBuffer.java,
2009         java/nio/CharBufferImpl.java,
2010         java/nio/CharViewBufferImpl.java,
2011         java/nio/DirectByteBufferImpl.java,
2012         java/nio/DoubleBuffer.java,
2013         java/nio/DoubleBufferImpl.java,
2014         java/nio/DoubleViewBufferImpl.java,
2015         java/nio/FloatBuffer.java,
2016         java/nio/FloatBufferImpl.java,
2017         java/nio/FloatViewBufferImpl.java,
2018         java/nio/IntBuffer.java,
2019         java/nio/IntBufferImpl.java,
2020         java/nio/IntViewBufferImpl.java,
2021         java/nio/LongBuffer.java,
2022         java/nio/LongBufferImpl.java,
2023         java/nio/LongViewBufferImpl.java,
2024         java/nio/MappedByteBufferImpl.java,
2025         java/nio/ShortBuffer.java,
2026         java/nio/ShortBufferImpl.java,
2027         java/nio/ShortViewBufferImpl.java:
2028         Fixed javadocs all over. Improved input error
2029         checking.
2030
2031         * java/nio/Buffer.java
2032         (checkForUnderflow, checkForOverflow, checkIndex,
2033         checkIfReadOnly, checkArraySize): New helper methods
2034         for error checking.
2035
2036         * java/nio/ByteBufferHelper.java
2037         (checkRemainingForRead, checkRemainingForWrite,
2038         checkAvailableForRead, checkAvailableForWrite): Removed
2039         no longer needed methods.
2040
2041 2004-07-09  Michael Koch  <konqueror@gmx.de>
2042
2043         * gnu/regexp/CharIndexedInputStream.java:
2044         Reordered imports to match classpath.
2045
2046 2004-07-09  Michael Koch  <konqueror@gmx.de>
2047
2048         * gnu/java/awt/EmbeddedWindow.java:
2049         Load native library for setWindowPeer method.
2050
2051 2004-07-08  Randolph Chung  <tausq@debian.org>
2052
2053         * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
2054         * configure: Regenerate.
2055         * configure.host: Set can_unwind_signal for hppa*-linux.
2056         * include/pa-signal.h: New file.
2057
2058 2004-07-07  Per Bothner  <per@bothner.com>
2059
2060         * Makefile.am:  Add rules to build libgij from just gij.cc.
2061
2062         * include/jvm.h (namespace jcj):  Declare verbose_class_flag
2063         * java/lang/natClass.cc (gcj::verbose_class_flag):  New variable.
2064         (initializeClass):  If verbose_class_flag, print message.
2065         * gij.cc (main):  Handle -verbose:class flag.
2066
2067 2004-07-07  Andreas Tobler  <a.tobler@schweiz.ch>
2068
2069         * configure.host: Enable hash synchronization on Darwin.
2070         * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
2071         ';', since this is a comment on Darwin.
2072         (compare_and_swap_release): Likewise.
2073
2074 2004-07-06  Mohan Embar  <gnustuff@thisiscool.com>
2075
2076         * java/net/URLStreamHandler.java (parseURL): Canonicalize
2077         file portion of URL in addition to spec for file: protocol.
2078
2079 2004-07-05  Anthony Green  <green@redhat.com>
2080
2081         * java/io/File.java (toURI): Merge from Classpath.
2082
2083 2004-07-05  Bryce McKinlay  <mckinlay@redhat.com>
2084
2085         * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
2086         before passing to URL constructor. Rethrow any MalformedURLException
2087         as a RuntimeException. Catch MalformedURLException specifically, not
2088         all exceptions.
2089
2090 2004-07-05  Bryce McKinlay  <mckinlay@redhat.com>
2091
2092         * java/util/Locale.java (readObject): Intern strings read from object
2093         stream.
2094
2095 2004-07-04  Michael Koch  <konqueror@gmx.de>
2096
2097         * gnu/gcj/runtime/FirstThread.java,
2098         gnu/gcj/runtime/natFirstThread.cc: Removed.
2099         * gnu/java/lang/MainThread.java,
2100         gnu/java/lang/natMainThread.cc: New files.
2101         * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
2102         * Makefile.am: Added new files and removed deleted ones.
2103         * Makefile.in: Regenerated.
2104
2105 2004-07-03  Mark Wielaard  <mark@klomp.org>
2106             Anthony Green  <green@redhat.com>
2107
2108         * java/net/URL.java (getFile): Clarify return value doc.
2109         (getPath): Return null if file is empty - not empty String.
2110         (set): Convert protocol to lower case before doing anything.
2111         Only change the protocol handler if it's different.
2112
2113 2004-07-03  Anthony Green  <green@redhat.com>
2114
2115         * java/net/URL.java (URL): Convert protocol to lower case before
2116         doing anything, so we getURLStreamHandler() with the proper value.
2117
2118 2004-07-02  Bryce McKinlay  <mckinlay@redhat.com>
2119
2120         * java/util/Locale.java (hashcode): Made transient.
2121         (hashCode): No longer synchronized.
2122         (equals): Remove comment.
2123         (writeObject): No longer synchronized. Implement using writeObject 
2124         calls instead of tweaking hashCode field. Update doc.
2125         (readObject): Implement using readObject calls.
2126
2127 2004-06-26  Geoffrey Keating  <geoffk@apple.com>
2128             Andreas Tobler  <a.tobler@schweiz.ch>
2129
2130         * configure.host (powerpc-*-darwin*): New case, define
2131         can_unwind_signal.
2132         * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
2133         * configure: Regenerate.
2134         * include/darwin-signal.h: New.
2135
2136 2004-06-30  Jerry Quinn  <jlquinn@optonline.net>
2137
2138         * java/beans/Statement.java (doExecute): Fix formatting.
2139
2140 2004-06-29  Per Bothner  <per@bothner.com>
2141
2142         * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
2143         etc etc):  Remove needless parenthesis, which causes __stdcall__
2144         attribute on MinGW to get ignored.
2145
2146 2004-06-29  Bryce McKinlay  <mckinlay@redhat.com>
2147
2148         * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
2149
2150 2004-06-28  Bryce McKinlay  <mckinlay@redhat.com>
2151
2152         * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
2153
2154 2004-06-28  Jerry Quinn  <jlquinn@optonline.net>
2155
2156         * java/beans/Expression.java: New file.
2157         * java/beans/Statement.java: New file.
2158         * Makefile.am: Added new files.
2159         * Makefile.in: Re-generate.
2160
2161 2004-06-27 Mark Wielaard  <mark@klomp.org>
2162
2163         * java/io/FilePermission.java (usingPerms): Removed.
2164         (actionsString): Made final.
2165         (cachePerms): Renamed to checkPerms.
2166         (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
2167         on action String.
2168         (FilePermission): Check arguments, call checkPerms().
2169         (equals): Remove cachePerms() call.
2170         (implies): Likewise.
2171
2172 2004-06-27  Mark Wielaard  <mark@klomp.org>
2173
2174         * gnu/java/net/protocol/http/Connection.java (userAgent): New static
2175         final field.
2176         (sendRequest): Use new field in user-agent http agent.
2177
2178 2004-06-27  Mark Wielaard  <mark@klomp.org>
2179
2180         * java/awt/EventQueue.java (postEvent): Throw NullPointerException
2181         when argument is null.
2182
2183 2004-06-26  Mark Wielaard  <mark@klomp.org>
2184
2185         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2186         (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
2187         GetMethodID call.
2188         (cancel_clicked): Likewise.
2189
2190 2004-06-26  Andreas Tobler  <a.tobler@schweiz.ch>
2191
2192         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
2193         (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
2194         can not calculate the right value.
2195         (dpi_changed_cb): Likewise. Mark *pspec as unused.
2196
2197 2004-06-24  Bryce McKinlay  <mckinlay@redhat.com>
2198
2199         * testsuite/libjava.jacks/jacks.xfail: Remove
2200         15.9.1-qualified-concrete-20.
2201
2202 2004-06-22  Bryce McKinlay  <mckinlay@redhat.com>
2203
2204         * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
2205         encoding name to iconv.
2206         * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2207
2208 2004-06-22  Bryce McKinlay  <mckinlay@redhat.com>
2209
2210         PR libgcj/16134:
2211         * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize 
2212         encoding name before cache lookup. Thanks to Hannes Wallnoefer.
2213         * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2214
2215 2004-06-21  Andrew Haley  <aph@redhat.com>
2216
2217         * java/io/ObjectOutputStream.java: Add DEBUG statements
2218         everywhere.
2219         (dumpElementln): New method.
2220         (depth): New field.
2221         * java/io/ObjectInputStream.java
2222         (currentClassLoader): Make native.
2223         (callersClassLoader): New field.
2224         (depth): New field.
2225         (readObject): ENDBLOCKDATA is generated if the class has a write
2226         method, not if it has a read method.
2227         (readObject): Save and restore this.currentObject and
2228         this.currentObjectStreamClass around calls to callReadMethod().
2229         * java/io/natObjectInputStream.cc (getCallersClassLoader): New
2230         method.
2231
2232 2004-06-18  Andreas Tobler  <a.tobler@schweiz.ch>
2233
2234         * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
2235         darwin.
2236
2237 2004-06-18  Ranjit Mathew  <rmathew@hotmail.com>
2238
2239         * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
2240         if desired, before the default class loader is initialised.
2241         Call INIT_SEGV only if HANDLE_SEGV is defined.
2242
2243 2004-06-18  Ranjit Mathew  <rmathew@hotmail.com>
2244
2245         * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
2246         directory only if it actually exists.
2247
2248 2004-06-18  Graydon Hoare  <graydon@redhat.com>
2249
2250         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
2251         Fix up non-ansi comments.
2252
2253 2004-06-18  Ranjit Mathew  <rmathew@hotmail.com>
2254
2255         * javax/swing/text/AbstractDocument.java: Adding missing import
2256         for javax.swing.event.EventListenerList.
2257         * javax/swing/text/DefaultCaret.java: Likewise.
2258
2259 2004-06-17  Michael Koch  <konqueror@gmx.de>
2260
2261         * javax/swing/JToolBar.java
2262         (name): Removed.
2263         (JToolBar): Use Component.setName(String) instead of doing it all
2264         alone.
2265         * javax/swing/Timer.java
2266         (queueEvent): Added missing modifier.
2267
2268 2004-06-17  Olga Rodimina  <rodimina@redhat.coom>
2269
2270         * Makefile.am: Added new file.
2271         * Makefile.in: Re-generate.
2272         * javax/swing/JMenu.java:
2273         (insertSeparator): Implemented.
2274         * javax/swing/JPopupMenu.java:
2275         (JPopupMenu.Separator): Implemented.
2276         * javax/swing/MenuSelectionManager.java:
2277         (processMouseEvent): Use java.awt.Component 
2278         for event source instead of javax.swing.JComponent. 
2279         * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
2280         New File. Implemented.
2281         
2282 2004-06-16  David Jee  <djee@redhat.com>
2283
2284         * java/awt/GridBagLayout.java
2285         (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
2286         Make sure pos_x and pos_y are never negative.
2287
2288 2004-04-16  Andrew Overholt  <overholt@redhat.com>
2289
2290         * Makefile.am: Add new file.
2291         * Makefile.in: Re-generate.     
2292         * javax/swing/JToolBar.java
2293         Partially implemented.
2294         * javax/swing/plaf/basic/BasicToolBarUI.java
2295         New file. Partially implemented.
2296
2297 2004-06-16  Graydon Hoare  <graydon@redhat.com>
2298
2299         * gnu/java/awt/peer/gtk/GdkGraphics2D.java 
2300         (setComposite): Accept AlphaComposite arguments.
2301         * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
2302         (createBufferedImage): Add new overloads.
2303         * gnu/java/awt/peer/gtk/GtkToolkit.java
2304         (createImage): Use GdkPixbufDecoder.createBufferedImage
2305         when useGraphics2D() is true.
2306         (getImage): Delegate to createImage.
2307         * javax/swing/JList.java
2308         (isSelectionEmpty):
2309         (getFirstVisibleIndex):
2310         (getLastVisibleIndex):
2311         (setSelectedValue):
2312         (ensureIndexIsVisible): New methods.
2313         * javax/swing/Timer.java: Reimplement.
2314
2315 2004-06-16  Michael Koch  <konqueror@gmx.de>
2316
2317         * javax/swing/text/AbstractDocument.java
2318         (AbstracElement): Made public, implements java.io.Serializable.
2319         (AttributeContext): Made public.
2320         (BranchElement): Likewise.
2321         (Content): Likewise.
2322         (DefaultDocumentEvent): Made public, extends
2323         javax.swing.undo.CompoundEdit.
2324         (ElementEdit): Made public, extends
2325         javax.swing.undo.AbstractUndoableEdit.
2326         (LeafElement): Made public.
2327         (LeafElement.LeafElement): Made public.
2328
2329 2004-06-16  Michael Koch  <konqueror@gmx.de>
2330
2331         * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
2332         methods (that were obviously never be intended to get included hi this
2333         class. Added some methods too.
2334
2335 2004-06-16  Michael Koch  <konqueror@gmx.de>
2336
2337         * javax/swing/text/PlainDocument.java
2338         (serialVersionUID): New constant.
2339         (lineLimitAttribute): Likewise.
2340         (tabSizeAttribute): Likewise.
2341         (tabSize): New field.
2342         (PlainDocument): Made public.
2343         (PlainDocument): New constructor.
2344
2345 2004-06-16  Michael Koch  <konqueror@gmx.de>
2346
2347         * javax/swing/text/AbstractDocument.java
2348         (insertString): Throws BadLocationException.
2349         * javax/swing/text/Document.java
2350         (insertString): Likewise.
2351         * javax/swing/text/JTextComponent.java:
2352         Javadocs and comments cleaned up.
2353
2354 2004-06-16  Michael Koch  <konqueror@gmx.de>
2355
2356         * javax/swing/event/UndoableEditListener.java: Reformatted.
2357         * javax/swing/text/AbstractDocument.java
2358         (AbstractDocument): Implements java.io.Serializable.
2359         (doc_list): Removed.
2360         (undo_list): Removed.
2361         (AbstractElement.serialVerionUID): New field.
2362         (BranchElement.serialVerionUID): Likewise.
2363         (DefaultDocumentEvent.serialVerionUID): Likewise.
2364         (ElementEdit.serialVerionUID): Likewise.
2365         (LeafElement.serialVerionUID): Likewise.
2366         (serialVerionUID): Likewise.
2367         (BAD_LOCATION): New constant.
2368         (BidiElementName): Likewise.
2369         (ContentElementName): Likewise.
2370         (ParagraphElementName): Likewise.
2371         (SectionElementName): Likewise.
2372         (ElementNameAttribute): Likewise.
2373         (AbstractDocument): Made protected.
2374         (AbstractDocument): New construtor.
2375         (listenerList): New field.
2376         (fireChangedUpdate): Implemented.
2377         (fireInsertUpdate): Likewise.
2378         (fireRemoveUpdate): Likewise.
2379         (fireUndoableEditUpdate): Likewise.
2380         (getListeners): Likewise.
2381         (addDocumentListener): Likewise.
2382         (removeDocumentListener): Likewise.
2383         (addUndoableEditListener): Likewise.
2384         (removeUndoableEditListener): Likewise.
2385         (getDocumentListeners): New method.
2386         (getUndoableEditListeners): Likewise.
2387         (getAsynchronousLoadPriority): Made public.
2388         (getBidiRootElement): Likewise.
2389         (setAsynchronousLoadPriority): Likewise.
2390         (setDocumentProperties): Likewise.
2391         * javax/swing/text/BadLocationException.java
2392         (serialVerionUID): New field.
2393         * javax/swing/text/DefaultCaret.java
2394         (changeEvent): New field.
2395         (listenerList): Likewise.
2396         (changes): Removed.
2397         (addChangeListener): Reimplemented.
2398         (removeChangeListener): Likewise.
2399         (getListeners): New method.
2400         (getChangeListeners): Likwise.
2401         (getComponent): Likewise.
2402         * javax/swing/text/GapContent.java
2403         (GapContent): Implements java.io.Serializable.
2404         (serialVerionUID): New field.
2405
2406 2004-06-16  Michael Koch  <konqueror@gmx.de>
2407
2408         * javax/swing/JTree.java
2409         (treeModel): New field.
2410         (JTree): New constructors, one existing one made public.
2411         (createTreeModel): New method.
2412         (addTreeExpansionListener): Likewise.
2413         (removeTreeExpansionListener): Likewise.
2414         (getTreeExpansionListeners): Likewise.
2415         (fireTreeCollapsed): Likewise.
2416         (fireTreeExpanded): Likewise.
2417         (addTreeSelectionListener): Likewise.
2418         (removeTreeSelectionListener): Likewise.
2419         (getTreeSelectionListeners): Likewise.
2420         (fireValueChanged): Likewise.
2421         (addTreeWillExpandListener): Likewise.
2422         (removeTreeWillExpandListener): Likewise.
2423         (getTreeWillExpandListeners): Likewise.
2424         (fireTreeWillCollapse): Likewise.
2425         (fireTreeWillExpand): Likewise.
2426
2427 2004-06-16  Michael Koch  <konqueror@gmx.de>
2428
2429         * javax/swing/JTree.java: Reformatted.
2430
2431 2004-06-16  Michael Koch  <konqueror@gmx.de>
2432
2433         * javax/swing/JTextArea.java: New file.
2434         * javax/swing/JTextField.java
2435         (actions): Removed.
2436         (notifyAction): New constant.
2437         (columns): New field.
2438         (JTextField): New constructors.
2439         (createDefaultModel): New method.
2440         (addActionListener): Reimplmemented.
2441         (removeActionListener): Reimplemented.
2442         (getActionListeners): New method.
2443         (fireActionPerformed): New method.
2444         (getColumns): New method.
2445         (setColumne): New method.
2446         * javax/swing/text/JTextComponent.java
2447         (AccessibleJTextComponent.serialVersionUID): New field.
2448         (serialVersionUID): Likewise.
2449         (DEFAULT_KEYMAP): Likewise.
2450         (FOCUS_ACCELERATOR_KEY): Likewise.
2451         (doc): Made private.
2452         (icon_gap): Likewise.
2453         (icon): Likewise.
2454         (align): Likewise.
2455         (JTextComponent): Some constructors removed.
2456         (getScrollableTracksViewportHeight): New method.
2457         (getScrollableTracksViewportWidth): Likewise.
2458         * Makefile.am: Added javax/swing/JTextArea.java.
2459         * Makefile.in: Regenerated.
2460
2461 2004-06-15  Graydon Hoare  <graydon@redhat.com>
2462
2463         * javax/swing/ImageIcon.java (ImageIcon): New constructor.
2464         * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
2465         * javax/swing/JViewport.java 
2466         (getExtentSize): Return size rather than preferred size.
2467         (toViewCoordinates): New methods.
2468         (getViewSize): Return size rather than preferred size.
2469         (setViewSize): Note view size as set.
2470         * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
2471         * javax/swing/plaf/basic/BasicScrollBarUI.java 
2472         (getPreferredSize): Don't redo layout.
2473         * javax/swing/plaf/basic/BasicViewportUI.java 
2474         (paint): Translate image properly and eat exceptions.
2475
2476 2004-06-15  Kim Ho  <kho@redhat.com>
2477
2478         * javax/swing/JTabbedPane.java
2479         (setComponent): Remove old component and
2480         add new component.
2481         (setSelectedIndex): Don't operate on the 
2482         components if they're null. Don't set index
2483         on the model if the index is the same.
2484         (insertTab): Don't add or hide the component
2485         if it's null. Repaint the container.
2486         * javax/swing/plaf/basic/BasicLookAndFeel.java
2487         Change colors for TabbedPane.
2488         * javax/swing/plaf/basic/BasicTabbedPaneUI.java
2489         (mousePressed): Re-layout and paint the component.
2490         (layoutContainer): Don't set location on the view.
2491         (ScrollingViewport::paint): Remove.
2492
2493 2004-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
2494
2495         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2496         (gtkWidgetDispatchKeyEvent): Change warning message to comment.
2497
2498         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
2499         Wrap baseline y value in PANGO_PIXELS macro, rather than simply
2500         dividing by PANGO_SCALE.  Call gdk_flush before leaving GDK
2501         critical region.
2502         (drawLine): Call gdk_flush before leaving GDK critical region.
2503         (fillRect): Likewise.
2504         (drawRect): Likewise.
2505         (copyArea): Likewise.
2506         (copyPixmap): Likewise.
2507         (clearRect): Likewise.
2508         (drawArc): Likewise.
2509         (drawPolyline): Likewise.
2510         (drawPolygon): Likewise.
2511         (fillPolygon): Likewise.
2512         (fillArc): Likewise.
2513         (drawOval): Likewise.
2514         (fillOval): Likewise.
2515
2516         * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
2517         style parameter.
2518         (GdkFontMetrics): Add style argument to initState call.
2519         (stringWidth(String,int,int,String)): Add style parameter.
2520         (stringWidth(String)): Add style argument to stringWidth call.
2521         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
2522         (initState): Set pango font style and weight based on AWT style
2523         parameter.  Pass default GTK language to
2524         pango_context_get_metrics.  Use PANGO_PIXELS macro rather than
2525         simply dividing by PANGO_SCALE.
2526         (stringWidth): Set pango font style and weight based on AWT style
2527         parameter.
2528
2529         * java/awt/Button.java (next_button_number): New field.
2530         (paramString): Change output.
2531         (generateName): New method.
2532         (getUniqueLong): New method.
2533
2534 2004-06-14  Kim Ho  <kho@redhat.com>
2535
2536         * javax/swing/JTabbedPane.java:
2537         (setComponentAt): Set the component, not
2538         the enabled status.
2539         * javax/swing/plaf/basic/BasicDesktopIconUI.java
2540         (actionPerformed): Let deiconize catch exception.
2541
2542 2004-06-14  Olga Rodimina  <rodimina@redhat.com>
2543
2544         * javax/swing/JPopupMenu.java:
2545         (setVisible): Corrected location of a 
2546         heavyweight popup menu.
2547
2548 2004-06-14  Olga Rodimina  <rodimina@redhat.com>
2549
2550         * javax/swing/MenuSelectionManager.java: 
2551         Ran through jalopy to fix formatting style.
2552
2553 2004-06-14  Olga Rodimina  <rodimina@redhat.com>
2554         
2555         * javax/swing/JLayeredPane.java: 
2556         (remove): Revalidate and repaint layered pane after
2557         the component was removed.
2558         javax/swing/JMenu.java:
2559         (setVisible): Display popup menu at the user location,
2560         if one was set by the user.
2561         (setMenuLocation): Reimplemented. Fixed javadoc.
2562         * javax/swing/JMenuBar.java: Added javadoc.
2563         (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
2564         (MODEL_CHANGED_PROPERTY): New Property.
2565         (isSelected): Implemented.
2566         (setBorderPainted): Fire PropertyChangeEvent
2567         if paintBorder property changes.
2568         (setSelected): Implemented.
2569         (setSelectionModel): Implemented.
2570         * javax/swing/JPopupMenu.java: Added Javadoc
2571         (pack): Implemented.
2572         (setVisible): Reimplemented.
2573         (show): Fixed location.
2574         (JPopupMenu.LigthWeightPopup): Reimplemented to use
2575         Container instead of JPanel.
2576         * javax/swing/MenuSelectionManager.java: Added Javadocs.
2577         (clearSelectedPath): Reimplemented to clear selectedPath
2578         in reverse order.
2579         (processMouseEvent): Reimplemented.
2580         (setSelectedPath): Fire stateChange event indicating that
2581         selected menu path has changed.
2582         (getPath): Change to use ArrayList instead of Vector.
2583         * javax/swing/plaf/basic/BasicMenuBarUI.java:
2584         (installUI): call installKeyboardActions().
2585         (uninstallUI): call uninstallKeyboardActions().
2586
2587 2004-06-13  Michael Koch  <konqueror@gmx.de>
2588
2589         * javax/swing/text/DefaultCaret.java,
2590         javax/swing/text/BadLocationException.java:
2591         Reformatted.
2592
2593 2004-06-12  Thomas Fitzsimmons  <fitzsim@redhat.com>
2594
2595         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
2596         DEFAULT_COLS): New variables.
2597         (create): Don't allow 0 rows or 0 columns.  Instead, set the
2598         values to DEFAULT_ROWS or DEFAULT_COLS.
2599         (getMinimumSize): Likewise.
2600         (getPreferredSize): Likewise.
2601         (minimumSize): Likewise.
2602         (preferredSize): Likewise.
2603         (create): Set peer's editable state.
2604         * java/awt/TextArea.java (TextArea()): Set rows and columns to
2605         zero.  Update javadocs.
2606         (TextArea(String)): Likewise.
2607         (TextArea(int,int)): Fix javadocs.
2608         (TextArea(String,int,int,int)): Only throw exception if one of
2609         rows or columns is zero.  Fix javadocs.
2610
2611 2004-06-11  Thomas Fitzsimmons  <fitzsim@redhat.com>
2612
2613         * java/awt/AWTEvent.java (toString): Handle MenuComponents in
2614         addition to Components.
2615
2616         * java/awt/MenuItem.java (dispatchEventImpl): If the event
2617         wasn't consumed by normal processing, send it to the parent
2618         menu.
2619
2620         * gnu/java/awt/peer/gtk/GtkImagePainter.java
2621         (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
2622         translation.
2623
2624 2004-06-11  David Jee  <djee@redhat.com>
2625
2626         * java/awt/MediaTracker.java
2627         (addImage(Image,int)): Call imageUpdate() to udpate image status.
2628         (addImage(Image,int,int,int)): Likewise.
2629
2630 2004-06-11  Michael Koch  <konqueror@gmx.de>
2631
2632         * javax/swing/text/AbstractDocument.java,
2633         javax/swing/text/Document.java,
2634         javax/swing/text/GapContent.java,
2635         javax/swing/text/JTextComponent.java,
2636         javax/swing/text/PlainDocument.java:
2637         Reformatted.
2638
2639 2004-06-11  Michael Koch  <konqueror@gmx.de>
2640
2641         * javax/swing/JRootPane.java
2642         (AccessibleJRootPane.serialVersionUID): New field.
2643         (AccessibleJRootPane.AccessibleJRootPane): New constructor.
2644         (AccessibleJRootPane.getAccessibleRole): New method.
2645         (RootLayout): Implements Serializable.
2646         (RootLayout.serialVersionUID): New field.
2647         (RootLayout.RootLayout): New constructor.
2648         (setJMenuBar): Made public.
2649         (getJMenuBar): Likewise.
2650         (JRootPane): Likewise.
2651         (createContentPane): Likewise.
2652         (createGlassPane): Likewise.
2653         (createLayeredPane): Likewise.
2654
2655 2004-06-11  Michael Koch  <konqueror@gmx.de>
2656
2657         * javax/swing/SwingUtilities.java
2658         (isLeftMouseButton): Fixed javadoc.
2659         (isMiddleMouseButton): Likewise.
2660         (isRightMouseButton): Likewise.
2661
2662 2004-06-11  Michael Koch  <konqueror@gmx.de>
2663
2664         * javax/swing/JScrollPane.java
2665         (serialVersionUID): New field.
2666         (columnHeader): Made protected.
2667         (rowHeader): Likewise.
2668         (lowerLeft): Likewise.
2669         (lowerRight): Likewise.
2670         (upperLeft): Likewise.
2671         (upperRight): Likewise.
2672         (horizontalScrollBar): Likewise.
2673         (horizontalScrollBarPolicy): Likewise.
2674         (verticalScrollBar): Likewise.
2675         (verticalScrollBarPolicy): Likewise.
2676         (viewport): Likewise.
2677
2678 2004-06-11  Michael Koch  <konqueror@gmx.de>
2679
2680         * javax/swing/LookAndFeel.java: Fixed javadocs.
2681
2682 2004-06-11  Michael Koch  <konqueror@gmx.de>
2683
2684         * javax/swing/JEditorPane.java: Fixed javadocs.
2685         (JEditorPane): Removed redundant call to to this().
2686         (fireHyperlinkUpdate): Implemented.
2687
2688 2004-06-10  Olga Rodimina  <rodimina@redhat.com>
2689
2690         * javax/swing/JMenu.java: Fixed file name 
2691         in the file comment.
2692
2693 2004-06-10  Olga Rodimina  <rodimina@redhat.com>
2694
2695         * javax/swing/JMenu.java: Added javadoc.
2696         (JMenu): Added MenuChangeListener to listen to 
2697         ChangeEvents occuring in menu's model. 
2698         (insert): Throw IllegalArgumentException if 
2699         index is less than 0
2700         (setSelected): Reimplement.
2701         (setPopupMenuVisible): Call menu's model isEnabled()
2702         (setDelay): Throw IllegalArgumentException if 
2703         given amount of delay is less than 0.
2704         (createActionComponent): Implemented.
2705         (createActionChangeListener): Implemented.
2706         (addSeparator): Implemented.
2707         (getItem): Throw IllegalArgumentException if index is 
2708         less than 0.
2709         (getItemCount): Implemented.
2710         (fireMenuSelected): Changed to use menuEvent.
2711         (fireMenuDeselected): Likewise.
2712         (fireMenuCanceled): Likewise.
2713         (setAccelerator): Changed to throw an error if this 
2714         method is used. 
2715         (doClick): Implemented.
2716         (JMenu.ActionChangedListener): New inner class to handle
2717         PropertyChangeEvents occuring in the actions associated with menu.
2718         * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
2719         (BasicMenuUI): Added PropertyChangeListener to the menu.
2720         (createChangeListener): Implemented.
2721         (createMenuDragMouseListener): Likewise.
2722         (createMenuKeyListener): Likewise.
2723         (createPropertyChangeListener): Likewise.
2724         (uninstallListeners): Likewise.
2725         (BasicMenuUI.MouseInputHandler): Reimplemented.
2726         (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
2727         (BasicMenuUI.ChangeHandler): Likewise.
2728         (BasicMenuUI.MenuDragMouseHandler): Likewise.
2729         (BasicMenuUI.MenuKeyHandler): Likewise.
2730
2731 2004-06-10  David Jee  <djee@redhat.com>
2732
2733         * java/awt/MediaTracker.java
2734         (imageUpdate): Only do notifyAll() if the image is complete.
2735
2736 2004-06-10  Olga Rodimina  <rodimina@redhat.com>
2737
2738         * javax/swing/JApplet.java:
2739         (getJMenuBar): Made public.
2740         (setJMenuBar): Likewise.
2741         * javax/swing/JFrame.java:
2742         (getJMenuBar): Made public.
2743         (setJMenuBar): Likewise.
2744         * javax/swing/JWindow.java:
2745         (getJMenuBar): Removed.
2746         (setJMenuBar): Removed.
2747
2748 2004-06-10  Michael Koch  <konqueror@gmx.de>
2749
2750         * javax/swing/JEditorPane.java
2751         (createEditorKitForContentType): Fixed visibility.
2752         (fireHyperlinkUpdate): Likewise.
2753         (getContentType): Likewise.
2754         (getEditorKit): Likewise.
2755         (getEditorKitForContentType): Likewise.
2756         (getPage): Likewise.
2757         (read): Likewise.
2758         (registerEditorKitForContentTyoe): Likewise.
2759         (replaceSelection): Likewise.
2760         (setContentType): Likewise.
2761         (setEditorKit): Likewise.
2762         (setPage): Likewise.
2763
2764 2004-06-10  Michael Koch  <konqueror@gmx.de>
2765
2766         * javax/swing/Timer.java
2767         (Timer): New constructor.
2768         * javax/swing/plaf/basic/BasicProgressBarUI.java
2769         (animationTimer): Don't initialize at construction.
2770         (startAnimationTimer): Added since tag.
2771         (stopAnimationTimer): Likewise.
2772         (installUI): Use new Timer constructor.
2773         * javax/swing/plaf/basic/BasicScrollBarUI.java
2774         (installUI): Likewise.
2775         * javax/swing/plaf/basic/BasicSliderUI.java
2776         (installUI): Likewise.
2777
2778 2004-06-10  Michael Koch  <konqueror@gmx.de>
2779
2780         * javax/swing/ButtonGroup.java
2781         (serialVersionUID): Made private.
2782         (buttons): Renamed from v, added javadoc.
2783         (sel): Added javadoc.
2784         (ButtonGroup): Likewise.
2785         (add): Likewise.
2786         (remove): Likewise.
2787         (getElements): Likewise.
2788         (getSelection): Likewise.
2789         (setSelected): Likewise.
2790         (isSelected): Likewise.
2791         (getButtonCount): Likewise.
2792
2793 2004-06-10  Michael Koch  <konqueror@gmx.de>
2794
2795         * javax/swing/ButtonGroup.java,
2796         javax/swing/ImageIcon.java,
2797         javax/swing/JEditorPane.java,
2798         javax/swing/JRootPane.java,
2799         javax/swing/JTextField.java,
2800         javax/swing/LookAndFeel.java,
2801         javax/swing/plaf/basic/BasicTextUI.java:
2802         Reindented.
2803
2804 2004-06-10  Michael Koch  <konqueror@gmx.de>
2805
2806         * javax/swing/text/Style.java: Added javadocs.
2807
2808 2004-06-10  Michael Koch  <konqueror@gmx.de>
2809
2810         * javax/swing/JComponent.java
2811         (fireVetoableChange): Removed redundant cast.
2812         * javax/swing/JLabel.java
2813         (getDisabledIcon): Save icon for next call.
2814
2815 2004-06-10  Michael Koch  <konqueror@gmx.de>
2816
2817         * javax/swing/KeyStroke.java
2818         (getKeyStroke(char,boolean)): Marked deprecated.
2819
2820 2004-06-10  Michael Koch  <konqueror@gmx.de>
2821
2822         * javax/swing/DefaultCellEditor.java,
2823         javax/swing/GrayFilter.java,
2824         javax/swing/event/DocumentEvent.java,
2825         javax/swing/text/JTextComponent.java,
2826         javax/swing/text/MutableAttributeSet.java:
2827         Reindented.
2828
2829 2004-06-10  Michael Koch  <konqueror@gmx.de>
2830
2831         * javax/swing/plaf/BorderUIResource.java:
2832         Added serialVersionUID all over.
2833
2834 2004-06-10  Sascha Brawer  <brawer@dandelis.ch>
2835
2836         * javax/swing/undo/UndoManager.java: Re-written from scratch.
2837
2838 2004-06-10  Michael Koch  <konqueror@gmx.de>
2839
2840         * javax/swing/table/DefaultTableCellRenderer.java
2841         (noFocusBorder): Initialize directly.
2842
2843 2004-06-10  Michael Koch  <konqueror@gmx.de>
2844
2845         * javax/swing/plaf/basic/BasicArrowButton.java
2846         (setDirection): Use method argument.
2847
2848 2004-06-10  Michael Koch  <konqueror@gmx.de>
2849
2850         * javax/swing/plaf/BorderUIResource.java,
2851         javax/swing/plaf/ComponentUI.java,
2852         javax/swing/undo/CompoundEdit.java,
2853         javax/swing/undo/StateEdit.java:
2854         Fixed javadocs all over.
2855
2856 2004-06-10  Michael Koch  <konqueror@gmx.de>
2857
2858         * javax/swing/DefaultButtonModel.java
2859         (ARMED): Made public final, fixed value.
2860         (ENABLED): Likewise.
2861         (PRESSED): Likewise.
2862         (ROLLOVER): Likewise.
2863         (SELECTED): Likewise.
2864         (stateMask): Initialize directly.
2865         (listenerList): Likewise.
2866         (mnemonic): Likewise.
2867         (fireStateChanged): Removed argument, use changeEvent as event.
2868         All places where this method is called are fixed too.
2869         (getActionCommant): Fixed javadoc.
2870         (setGroup): Fixed javadoc.
2871         (getGroup): New method.
2872
2873 2004-06-09  Olga Rodimina <rodimina@redhat.com>
2874
2875         * javax/swing/AbstractButton.java
2876         (AbstractButton): Use init() to initialize the button.
2877         (init): New Method. Initializes AbstractButton.
2878         * javax/swing/JMenuItem.java: Documented.
2879         (JMenuItem): Reimplemented.
2880         (init): Implemented.
2881         (setEnabled): Changed to call super.setEnabled()
2882         (processMouseEvent): Reimplemented.
2883         (fireMenuKeyPressed): Implemented.
2884         (fireMenuKeyReleased): Implemented.
2885         (fireMenuKeyTyped): Implemented.
2886         (menuSelectionChanged): disarm the model if the menu item was
2887         deselected.
2888         * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
2889         (getPath): Change to use ArrayList instead of Vector.
2890         (getPreferredSize): Renamed variable.
2891         (paintMenuItem): Paint margin area of menu item.
2892         (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
2893         (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
2894         menu item's bounds before clearing the selection.       
2895
2896 2004-06-09  David Jee  <djee@redhat.com>
2897
2898         * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
2899         (GtkTextComponentPeer): Set caret position to 0.
2900         * java/awt/TextComponent.java
2901         (setText): Set caret position to 0.
2902         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2903         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
2904         Handle GtkScrolledWindow separately. Fix signal handler blocking.
2905         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
2906         Likewise.
2907         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
2908         (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
2909         visible.
2910
2911 2004-06-09  Kim Ho  <kho@redhat.com>
2912
2913         * Makefile.am: New files
2914         * Makefile.in: Regenerated
2915         * java/awt/Container.java
2916         (getComponentAt): Removed.
2917         * javax/swing/AbstractAction.java
2918         (ENABLED_PROPERTY): New property.
2919         (putValue): Fire PropertyChangeEvents.
2920         (setEnabled): ditto.
2921         (firePropertyChange): Javadoc and implement
2922         convenience method.
2923         * javax/swing/AbstractButton.java
2924         (setAction): Don't create PropertyChangeListener
2925         if new Action is null.
2926         (setIcon): Don't set icon till after comparing
2927         it.
2928         (configurePropertiesFromAction): Check mnemonic
2929         key before calling intValue().
2930         (createActionPropertyChangeListener): Check
2931         properties rather than bulk change.
2932         * javax/swing/DefaultDesktopManager.java:
2933         Implement.
2934         * javax/swing/DesktopManager.java:
2935         Jalopy and javadoc.
2936         * javax/swing/JComponent.java
2937         (fireVetoableChange): Implement.
2938         (paintImmediately): Use root component.
2939         * javax/swing/JDesktopPane.java: Implement
2940         * javax/swing/JInternalFrame.java: Implement
2941         * javax/swing/JLabel.java
2942         (getDisabledIcon): Return grayscaled icon if
2943         no disabled icon specified.
2944         * javax/swing/JMenuBar.java
2945         (getComponentAtIndex): Use getComponent
2946         * javax/swing/JOptionPane.java
2947         (getDesktopPaneForComponent): Use SwingUtilities'
2948         getAncestorOfClass
2949         (getFrameForComponent): ditto.
2950         * javax/swing/JSplitPane.java
2951         (remove): Use getComponent.
2952         * javax/swing/SwingUtilities.java
2953         (convertPoint): Implement.
2954         * javax/swing/plaf/basic/BasicButtonUI.java
2955         (paintButtonNormal): Check opaqueness before
2956         filling background.
2957         * javax/swing/plaf/basic/BasicDesktopIconUI.java:
2958         Implement
2959         * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
2960         Implement.
2961         * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
2962         Implement.
2963         * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2964         Implement.
2965         * javax/swing/plaf/basic/BasicLookAndFeel.java:
2966         Change InternalFrame and Desktop colors.
2967
2968 2004-06-09  David Jee  <djee@redhat.com>
2969
2970         * java/awt/Container.java
2971         (remove): Do not set component to invisible.
2972
2973 2004-06-09  Michael Koch  <konqueror@gmx.de>
2974
2975         * javax/swing/tree/DefaultMutableTreeNode.java
2976         (getLeafCount): Renamed enum to e.
2977
2978 2004-06-09  Michael Koch  <konqueror@gmx.de>
2979
2980         * javax/swing/plaf/basic/BasicSplitPaneDivider.java
2981         (positionForMouseEvent): Removed redundant semicolon.
2982         (continueDrag): Use method arguments.
2983
2984 2004-06-09  Michael Koch  <konqueror@gmx.de>
2985
2986         * javax/swing/border/TitledBorder.java,
2987         javax/swing/filechooser/FileSystemView.java,
2988         javax/swing/plaf/basic/BasicButtonListener.java,
2989         javax/swing/plaf/basic/BasicGraphicsUtils.java,
2990         javax/swing/plaf/basic/BasicLabelUI.java,
2991         javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
2992         javax/swing/plaf/basic/BasicScrollBarUI.java,
2993         javax/swing/plaf/basic/BasicScrollPaneUI.java,
2994         javax/swing/plaf/basic/BasicSliderUI.java,
2995         javax/swing/plaf/basic/BasicTabbedPaneUI.java,
2996         javax/swing/plaf/basic/BasicToggleButtonUI.java,
2997         javax/swing/table/JTableHeader.java,
2998         javax/swing/text/AbstractDocument.java,
2999         javax/swing/text/DefaultCaret.java,
3000         javax/swing/text/StyledEditorKit.java,
3001         javax/swing/tree/DefaultTreeCellEditor.java:
3002         Reworked import statements.
3003
3004 2004-06-08  Graydon Hoare  <graydon@redhat.com>
3005
3006         * javax/swing/Box.java: Temporarily comment out code
3007         broken due to visibility bug.
3008
3009 2004-06-09  Michael Koch  <konqueror@gmx.de>
3010
3011         * javax/swing/ImageIcon.java
3012         (ImageIcon): Added missing constructor.
3013
3014 2004-06-08  Michael Koch  <konqueror@gmx.de>
3015
3016         * javax/swing/JToggleButton.java
3017         (JToggleButton): New constructor.
3018         (getAccessibleContext): Moved documentation into javadoc.
3019         (getUIClassID): Likewise.
3020
3021 2004-06-08  Michael Koch  <konqueror@gmx.de>
3022
3023         * javax/swing/AbstractButton.java
3024         (getDisabledIcon): Create disabled icon if none exists yet.
3025
3026 2004-06-08  Michael Koch  <konqueror@gmx.de>
3027
3028         * javax/swing/plaf/basic/BasicLookAndFeel.java
3029         (initClassDefaults): Added FormattedTextFieldUI.
3030         (loadResourceBundle): Renamed enum to e.
3031
3032 2004-06-08  Michael Koch  <konqueror@gmx.de>
3033
3034         * javax/swing/plaf/basic/BasicButtonUI.java
3035         (paintIcon): Simplified.
3036         (paintText): Paint disabled button correctly.
3037
3038 2004-06-08  Michael Koch  <konqueror@gmx.de>
3039
3040         * javax/swing/JComponent.java
3041         (createToolTip): Use official JToolTip API.
3042
3043 2004-06-08  Michael Koch  <konqueror@gmx.de>
3044
3045         * javax/swing/JToolTip.java
3046         (JToolTip): No arguments in API.
3047         (setTipText): New method.
3048
3049 2004-06-08  Michael Koch  <konqueror@gmx.de>
3050
3051         * javax/swing/SwingUtilities.java
3052         (isLeftMouseButton): New method.
3053         (isMiddleMouseButton): New method.
3054         (isRightMouseButton): New method.
3055
3056 2004-06-08  Michael Koch  <konqueror@gmx.de>
3057
3058         * javax/swing/AbstractButton.java,
3059         javax/swing/CellRendererPane.java,
3060         javax/swing/JCheckBoxMenuItem.java,
3061         javax/swing/JColorChooser.java,
3062         javax/swing/JComboBox.java,
3063         javax/swing/JComponent.java,
3064         javax/swing/JDesktopPane.java,
3065         javax/swing/JFileChooser.java,
3066         javax/swing/JMenu.java,
3067         javax/swing/JMenuItem.java,
3068         javax/swing/JOptionPane.java,
3069         javax/swing/JPasswordField.java,
3070         javax/swing/JPopupMenu.java,
3071         javax/swing/JProgressBar.java,
3072         javax/swing/JRadioButtonMenuItem.java,
3073         javax/swing/JScrollBar.java,
3074         javax/swing/JSeparator.java,
3075         javax/swing/JSlider.java,
3076         javax/swing/JSplitPane.java,
3077         javax/swing/JTabbedPane.java,
3078         javax/swing/JTextField.java,
3079         javax/swing/JToolBar.java,
3080         javax/swing/text/JTextComponent.java:
3081         Fixed all constructors of accessibility classes.
3082
3083 2004-06-08  Michael Koch  <konqueror@gmx.de>
3084
3085         * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
3086         over.
3087
3088 2004-06-08  Michael Koch  <konqueror@gmx.de>
3089
3090         * javax/swing/Box.java
3091         (AccessibleBoxFiller): Extends AccessibleAWTComponent.
3092         (AccessibleBoxFiller.serialVersionUID): New member variable.
3093         * javax/swing/DefaultButtonModel.java
3094         (stateMask): Made protected.
3095         (listenerList): Likewise.
3096         (changeEvent): Likewise.
3097         (group): Likewise.
3098         (mnemonic): Likewise.
3099         (actionCommand): Likewise.
3100         (getListeners): New method.
3101         (getActionListeners): New method.
3102         (getItemListeners): New method.
3103         (getChangeListeners): New method.
3104         (fireItemStateChanged): Simplified.
3105         (fireActionPerformed): Simplified.
3106         (fireStateChanged): Simplified.
3107         * javax/swing/JFrame.java
3108         (JFrame): Implements WindowContants.
3109         (HIDE_ON_CLOSE): Removed.
3110         (EXIT_ON_CLOSE): Removed.
3111         (DISPOSE_ON_CLOSE): Removed.
3112         (DO_NOTHING_ON_CLOSE): Removed.
3113         (processWindowEvent): Exit with code 0.
3114         (setDefaultCloseOperation): Do security check before setting value.
3115         * javax/swing/JOptionPane.java
3116         (message): Initialize only in constructor.
3117         * javax/swing/JToolTip.java: Removed unused imports.
3118         * javax/swing/JViewport.java
3119         (serialVersionUID): New member variable.
3120         (SIMPLE_SCROLL_MODE): Made final, fixed value.
3121         (BLIT_SCROLL_MODE): Likewise.
3122         (BACKINGSTORE_SCROLL_MODE): Likewise.
3123         (scrollUnderway): Made protected.
3124         (isViewSizeSet): Likewise.
3125         * javax/swing/ListModel.java: Fixed javadoc.
3126         * javax/swing/Popup.java: Likewise.
3127         * javax/swing/RepaintManager.java
3128         (paintDirtyRegions): Don't use internal classes of
3129         java.util.AbstractMap.
3130         * javax/swing/ScrollPaneConstants.java: Reindented.
3131         * javax/swing/ScrollPaneLayout.java
3132         (viewport): Made protected.
3133         (verticalScrollBar): Made protected, renamed to vsb.
3134         (horizontalScrollBar): Made protected, renamed to hsb.
3135         (rowHeader): Made protected, renamed to rowHead.
3136         (columnHeader): Made protected, renamed to colHead.
3137         (lowerLeft): Made protected.
3138         (lowerRight): Made protected.
3139         (upperLeft): Made protected.
3140         (upperRight): Made protected.
3141         (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
3142         (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
3143
3144 2004-06-07  Bernd Schmidt  <bernds@btinternet.com>
3145
3146         * java/awt/MediaTracker.java (imageUpdate): Only set status to
3147         LOADING if flags has SOMEBITS set.
3148
3149 2004-06-07  Michael Koch  <konqueror@gmx.de>
3150
3151         * javax/swing/AbstractButton.java: Reorganized imports.
3152         * javax/swing/ActionMap.java: Likewise.
3153         * javax/swing/DefaultButtonModel.java: Likewise.
3154         * javax/swing/DefaultListModel.java: Likewise.
3155         * javax/swing/ImageIcon.java: Likewise.
3156         (serialVersionUID): New member variable.
3157         * javax/swing/JComboBox.java: Reorganized imports.
3158         * javax/swing/JComponent.java: Likewise.
3159         (ui): Made protected.
3160         (listenerList): Made protected.
3161         (TOOL_TIP_TEXT_KEY): New constant.
3162         (scrollRectToVisible): Removed redundant null check.
3163         * javax/swing/JFrame.java: Reorganized imports.
3164         * javax/swing/JInternalFrame.java: Reorganized imports.
3165         * javax/swing/JProgressBar.java: Likewise.
3166         * javax/swing/JRootPane.java: Likewise.
3167         * javax/swing/JScrollBar.java: Likewise.
3168         * javax/swing/JSeparator.java: Likewise.
3169         * javax/swing/JSlider.java: Likewise.
3170         * javax/swing/JTabbedPane.java: Likewise.
3171         * javax/swing/JTextField.java: Likewise.
3172         * javax/swing/JToolBar.java: Likewise.
3173         * javax/swing/JTree.java: Likewise.
3174         * javax/swing/JViewport.java: Likewise.
3175         * javax/swing/JWindow.java: Likewise.
3176         * javax/swing/KeyStroke.java: Likewise.
3177         * javax/swing/LookAndFeel.java: Likewise.
3178         * javax/swing/MenuSelectionManager.java: Likewise.
3179         * javax/swing/SwingUtilities.java: Likewise.
3180         * javax/swing/Timer.java: Likewise.
3181         * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
3182         * javax/swing/JList.java
3183         (HORIZONTAL_WRAP): Made final, fixed value.
3184         (VERTICAL): Likewise.
3185         (VERTICAL_WRAP): Likewise.
3186
3187 2004-06-07  Michael Koch  <konqueror@gmx.de>
3188
3189         * javax/swing/AbstractButton.java
3190         (serialVersionUID): New member variable.
3191         (AccessibleAbstractButton.serialVersionUID): Likewise.
3192         (AbstractButton): Made public.
3193         * javax/swing/Box.java
3194         (AccessibleBox.serialVersionUID): New member variable.
3195         (Filler.serialVersionUID): Likewise.
3196         * javax/swing/DefaultListSelectionModel.java
3197         (serialVersionUID): Likewise.
3198         * javax/swing/JApplet.java
3199         (serialVersionUID): Likewise.
3200         * javax/swing/JCheckBox.java
3201         (serialVersionUID): Likewise.
3202         * javax/swing/JCheckBoxMenuItem.java
3203         (serialVersionUID): Likewise.
3204         (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
3205         * javax/swing/JColorChooser.java
3206         (serialVersionUID): Likewise.
3207         (AccessibleJColorChooser.serialVersionUID): Likewise.
3208         * javax/swing/JComponent.java
3209         (serialVersionUID): Made private.
3210         (AccessibleJComponent.serialVersionUID): New member variable.
3211         * javax/swing/JDesktopPane.java
3212         (serialVersionUID): Likewise.
3213         * javax/swing/JDialog.java
3214         (serialVersionUID): Likewise.
3215         * javax/swing/JFormattedTextField.java
3216         (serialVersionUID): Fixed value.
3217         * javax/swing/JFrame.java
3218         (serialVersionUID): New member variable.
3219         (getDefaultCloseOpertation): Made public.
3220         * javax/swing/JLayeredPane.java
3221         (serialVersionUID): Likewise.
3222         (LAYER_PROPERTY): Made final, fixed value.
3223         (JLayeredPane): Made public.
3224         * javax/swing/JMenu.java
3225         (AccessibleJMenu.serialVersionUID): New member variable.
3226         (WinListener.serialVersionUID): Likewise.
3227         * javax/swing/JMenuBar.java
3228         (serialVersionUID): Likewise.
3229         (getComponentAtIndex): Added @deprecated tag.
3230         * javax/swing/JMenuItem.java
3231         (serialVersionUID): New member variable.
3232         (AccessibleJMenuItem.serialVersionUID): Likewise.
3233         * javax/swing/JOptionPane.java
3234         (serialVersionUID): Likewise.
3235         (AccessibleJOptionPane.serialVersionUID): Likewise.
3236         * javax/swing/JPopupMenu.java
3237         (serialVersionUID): Likewise.
3238         (AccessibleJPopupMenu.serialVersionUID): Likewise.
3239         (getPopupMenuListeners): New method.
3240         (getComponentAtIndex): Added @deprecated tag.
3241         * javax/swing/JProgressBar.java
3242         (serialVersionUID): New member variable.
3243         (AccessibleJProgressBar.serialVersionUID): Likewise.
3244         * javax/swing/JRadioButton.java
3245         (serialVersionUID): Likewise.
3246         * javax/swing/JRadioButtonMenuItem.java
3247         (serialVersionUID): Likewise.
3248         (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
3249         * javax/swing/JScrollBar.java
3250         (serialVersionUID): Likewise.
3251         (AccessibleJScrollBar.serialVersionUID): Likewise.
3252         * javax/swing/JSeparator.java
3253         (serialVersionUID): Likewise.
3254         (AccessibleJSeparator.serialVersionUID): Likewise.
3255         * javax/swing/JSlider.java: Fixed javadocs.
3256         (AccessibleJSlider.serialVersionUID): New member variable.
3257         * javax/swing/JSplitPane.java: Added copyright statement.
3258         (serialVersionUID): New member variable.
3259         (AccessibleJSplitPane.serialVersionUID): Likewise.
3260         * javax/swing/JTabbedPane.java
3261         (serialVersionUID): Likewise.
3262         (AccessibleJTabbedPane.serialVersionUID): Likewise.
3263         (ModelListener.serialVersionUID): Likewise.
3264         (ModelListener.ModelListener): New constructor.
3265         (SCROLL_TAB_LAYOUT): Made public final, fixed value.
3266         (WRAP_TAB_LAYOUT): Likewise.
3267         * javax/swing/JTable.java
3268         (serialVersionUID): New member variable.
3269         * javax/swing/JToggleButton.java
3270         (serialVersionUID): Likewise.
3271         (ToggleButtonModel): Made static.
3272         (ToggleButtonModel.serialVersionUID): New member variable.
3273         * javax/swing/JToolTip.java
3274         (serialVersionUID): Likewise.
3275         * javax/swing/JTree.java
3276         (serialVersionUID): Likewise.
3277         * javax/swing/JWindow.java
3278         (serialVersionUID): Likewise.
3279         * javax/swing/Timer.java
3280         (serialVersionUID): Likewise.
3281
3282 2004-06-06  Michael Koch  <konqueror@gmx.de>
3283
3284         * javax/swing/SwingConstants.java
3285         (NEXT): New constant.
3286         (PREVIOUS): Likewise.
3287         * javax/swing/UIManager.java
3288         (LookAndFeel): Made public.
3289         (LookAndFeel.getClassName): Likewise.
3290         (LookAndFeel.getName): Likewise.
3291
3292 2004-06-02  Olga Rodimina  <rodimina@redhat.com>
3293
3294         * javax/swing/JCheckBoxMenuItem.java:
3295         Removed CVS tags.
3296         * javax/swing/JMenu.java: Likewise.
3297         * javax/swing/JMenuBar.java: Likewise.
3298         * javax/swing/JMenuItem.java: Likewise.
3299         * javax/swing/JPopupMenu.java: Likewise.
3300         * javax/swing/JRadioButtonMenuItem.java: Likewise.
3301         * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3302         * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3303         * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3304         * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3305         * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3306         * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3307
3308 2004-05-31  Olga Rodimina  <rodimina@redhat.com>
3309         
3310         * javax/swing/plaf/basic/BasicMenuUI.java:
3311         (MouseEntered): Do not call getPath() from MenuSelectionManager.
3312         Call getPath() from super class instead.
3313
3314 2004-05-31  David Jee  <djee@redhat.com>
3315
3316         * java/awt/Container.java
3317         (remove): Set component visibility to false after removing it.
3318
3319 2004-05-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
3320
3321         * java/awt/Component.java (getForeground): Return SystemColor if
3322         parent is null.
3323         (getBackground): Likewise.
3324
3325         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3326         (item_highlighted): New function.
3327         (connectSignals): Set item_highlighted as list's select
3328         function.
3329
3330         * java/applet/Applet.java: Revert changes from 2004-04-29,
3331         2004-03-15 and 2004-03-14.
3332
3333         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3334         Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
3335         factor.
3336
3337         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
3338         "Dialog" as the default font.
3339         * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
3340         Likewise.
3341         * java/awt/Component.java (getFont): Return "Dialog" font by
3342         default.
3343         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
3344         Multiply size argument to pango_font_description_set_size by the
3345         DPI conversion factor rather than by PANGO_SCALE.
3346         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
3347         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
3348         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
3349         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
3350         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3351         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
3352         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
3353         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
3354         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
3355         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3356         Divide baseline y coordinate by DPI conversion factor rather
3357         than by PANGO_SCALE.
3358         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
3359         (area_prepared): Fix typo.
3360         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
3361         (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
3362         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3363         (dpi_conversion_factor): New global variable.
3364         (init_dpi_conversion_factor): New function to calculate and
3365         track DPI conversion factor.
3366         (dpi_changed_cb): New callback.
3367         * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
3368
3369 2004-05-27  David Jee  <djee@redhat.com>
3370
3371         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3372         (getGraphics): Return a new GdkGraphics instance.
3373         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3374         (getGraphics): Call super.getGraphics().
3375
3376 2004-05-26  Thomas Fitzsimmons  <fitzsim@redhat.com>
3377
3378         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3379         (setNativeBounds): Clamp width and height values to >= 0.
3380
3381         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3382         (find_fg_color_widget): Handle GtkOptionMenu specially.
3383
3384         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3385         (pre_event_handler): Only post configure events to visible
3386         top-level windows.
3387
3388 2004-05-26  David Jee  <djee@redhat.com>
3389
3390         * java/awt/BorderLayout.java
3391         (layoutContainer): Fix size calculations.
3392
3393 2004-05-26  Thomas Fitzsimmons  <fitzsim@redhat.com>
3394
3395         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3396         (window_wm_protocols_filter): Remove function.
3397         (create): Remove filter that removes WM_TAKE_FOCUS client
3398         messages.
3399
3400 2004-06-17  Anthony Green  <green@redhat.com>
3401
3402         * java/util/zip/ZipFile.java (getInputStream): Return null if
3403         entry not found.
3404
3405         * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
3406         directory contents to the class path.
3407
3408 2004-06-15  Andrew Haley  <aph@redhat.com>
3409
3410         * java/lang/natSystem.cc (getenv0): Don't assume environment
3411         variable is Latin 1 coded.
3412
3413 2004-06-14  Andreas Jaeger  <aj@suse.de>
3414
3415         * configure.in: Support --enable-version-specific-runtime-libs.
3416         * configure: Regenerated.
3417
3418 2004-06-14  Bryce McKinlay  <mckinlay@redhat.com>
3419
3420         * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
3421         to pass ClassLoader argument.
3422         * java/util/GregorianCalendar.java: Likewise.
3423         * java/util/Currency.java: Likewise.
3424         * java/text/BreakIterator.java: Likewise.
3425         * java/text/Collator.java: Likewise.
3426         * java/text/DateFormat.java: Likewise.
3427         * java/text/DateFormatSymbols.java: Likewise.
3428         * java/text/DecimalFormatSymbols.java: Likewise.
3429         * java/text/NumberFormat.java: Likewise.
3430         * java/awt/Window.java: Likewise.
3431
3432 2004-06-14  Andrew Haley  <aph@redhat.com>
3433
3434         * java/lang/System.java: (getenv0): New method.
3435         (getenv): Add security check.  Do the right thing.
3436         * java/lang/natSystem.cc (getenv0): New method.
3437
3438 2004-06-12  Mark Wielaard  <mark@klomp.org>
3439
3440         * javax/swing/RepaintManager.java
3441         (paintDirtyRegions): Use entrySet(), not values().
3442
3443 2004-06-10  Mark Wielaard  <mark@klomp.org>
3444
3445         * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
3446         NoSuchMethodError.
3447
3448 2004-06-11  Jerry Quinn  <jlquinn@optonline.net>
3449
3450         * java/util/GregorianCalendar.java (computeTime):  Skip buggy formulae
3451         when we already know the answer.
3452         * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3453         (setStartRule,setEndRule): Don't take abs of day number.
3454         (getOffset): Clarify docs.  Add argument checks.
3455         (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3456         (equals,hasSameRules,toString,readObject): Use startTimeMode and
3457         endTimeMode.
3458
3459 2004-06-10  Tom Tromey  <tromey@redhat.com>
3460
3461         * interpret.cc (run): Handle wide fload.
3462
3463 2004-06-06  Jerry Quinn  <jlquinn@optonline.net>
3464
3465         * java/util/zip/ZipEntry.java (setTime): Remove scaling.
3466
3467 2004-06-05  Michael Koch  <konqueror@gmx.de>
3468
3469         * javax/swing/SwingConstants.java
3470         (NEXT): New constant.
3471         (PREVIOUS): Likewise.
3472
3473 2004-06-05  Michael Koch  <konqueror@gmx.de>
3474
3475         * javax/swing/UIManager.java
3476         (LookAndFeel): Made public.
3477         (LookAndFeel.getName): Likewise.
3478         (LookAndFeel.getClassName): Likewise.
3479
3480 2004-06-03  Michael Koch  <konqueror@gmx.de>
3481
3482         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3483         (requestFocus): Revert last changes.
3484         (gtkRequestFocus): Removed.
3485         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3486         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3487         Renamed to ...
3488         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
3489         Reverted last patch.
3490         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3491         (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
3492         Reverted comment change.
3493
3494 2004-06-02  Olga Rodimina  <rodimina@redhat.com>
3495
3496         * javax/swing/JCheckBoxMenuItem.java:
3497         Removed CVS tags.
3498         * javax/swing/JMenu.java: Likewise.
3499         * javax/swing/JMenuBar.java: Likewise.
3500         * javax/swing/JMenuItem.java: Likewise.
3501         * javax/swing/JPopupMenu.java: Likewise.
3502         * javax/swing/JRadioButtonMenuItem.java: Likewise.
3503         * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3504         * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3505         * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3506         * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3507         * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3508         * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3509
3510 2004-06-01  Tom Tromey  <tromey@redhat.com>
3511
3512         * java/io/ObjectStreamField.java: Cleaned up imports.
3513
3514 2004-06-01  Michael Koch  <konqueror@gmx.de>
3515
3516         * java/io/ObjectStreamField.java: Style and javadoc cleanup.
3517       
3518 2004-06-01  Mark Wielaard  <mark@klomp.org>
3519
3520         * java/io/Writer.java (Writer(Object)): Fixed API doc.
3521
3522 2004-06-01  Michael Koch  <konqueror@gmx.de>
3523
3524         * java/security/Security.java
3525         (insertProviderAt): Use equals() instead of ==.
3526         (removeProvicer): Likewise.
3527         (getProvider): Likewise.
3528         * java/security/Signature.java
3529         (sign): Don't set state to UNINITIALIZED.
3530         (verify): Likewise.
3531
3532 2004-06-01  Mark Wielaard  <mark@klomp.org>
3533
3534         * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
3535         Implement by calling gtkRequestFocus.
3536         (gtkRequestFocus): New native method.
3537         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3538         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
3539         Renamed to ...
3540         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3541         New function name.
3542         (filter_expose_event_handler):
3543         Mark static.
3544         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3545         (menu_pos): Mark static.
3546
3547 2004-06-01  Michael Koch  <konqueror@gmx.de>
3548
3549         * java/text/CollationElementIterator.java,
3550         java/text/CollationKey.java,
3551         java/text/RuleBasedCollator.java: New versions from GNU classpath.
3552         * testsuite/libjava.mauve/xfails: Removed all
3553         java.text.CollationElementIterator tests.
3554
3555 2004-06-01  Michael Koch  <konqueror@gmx.de>
3556
3557         * java/util/zip/InflaterInputStream.java: Merged more with Classpath
3558         version.
3559         * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
3560         Java 1.5 keyword usage.
3561
3562 2004-05-31  Olga Rodimina  <rodimina@redhat.com>
3563
3564         * javax/swing/plaf/basic/BasicMenuUI.java:
3565         (MouseEntered): Do not call getPath() from MenuSelectionManager.
3566         Call getPath() from super class instead.
3567
3568 2004-05-31  Michael Koch  <konqueror@gmx.de>
3569
3570         * java/io/SequenceInputStream.java:
3571         Rename enum to e because enum is a keyword in Java 1.5.
3572
3573 2004-05-31  Michael Koch  <konqueror@gmx.de>
3574
3575         * gnu/java/rmi/rmic/CompilerProcess.java:
3576         Fixed javadoc to by XHTML compliant.
3577
3578 2004-05-30  Mark Wielaard  <mark@klomp.org>
3579
3580         * java/awt/Toolkit.java (loadSystemColors): Implement.
3581
3582 2004-05-30  Michael Koch  <konqueror@gmx.de>
3583
3584         * java/lang/System.java: Reordered imports.
3585
3586 2004-05-30  Guilhem Lavaux <guilhem@kaffe.org>
3587
3588         * java/text/DecimalFormat.java
3589         (parse): Fixed parsing of decimal strings. Number of maximum
3590         digits to be read should now work.
3591         * java/text/SimpleDateFormat.java
3592         (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
3593         formatter. This fixes DateFormatTest.
3594
3595 2004-05-30  Michael Koch  <konqueror@gmx.de>
3596
3597         * java/nio/Buffer.java
3598         (limit): Fixed off by one error.
3599         * java/nio/CharBuffer.java
3600         (wrap): Fixed arguments, added javadocs.
3601
3602 2004-05-30  Michael Koch  <konqueror@gmx.de>
3603
3604         * gnu/java/beans/BeanInfoEmbryo.java,
3605         java/awt/im/InputContext.java,
3606         javax/swing/tree/DefaultMutableTreeNode.java:
3607         Rename enum to e because enum is a keyword in Java 1.5.
3608
3609 2004-05-30  Michael Koch  <konqueror@gmx.de>
3610
3611         * gnu/java/math/MPN.java,
3612         java/awt/geom/Arc2D.java:
3613         Fixed javadocs all over.
3614
3615 2004-05-30  Michael Koch  <konqueror@gmx.de>
3616
3617         * java/awt/DefaultKeyboardFocusManager.java
3618         (dispatchEvent): Call method to get key event dispatchers.
3619         (dispatchKeyEvent): Call method to get key event post processors.
3620         * javax/swing/JComponent.java
3621         (listenerList): Made protected.
3622         * javax/swing/JOptionPane.java
3623         (message): Don't initialize.
3624         (JOptionPane): Set message text.
3625         * javax/swing/JPopupMenu.java
3626         (show): Fixed typo in argument name.
3627         * javax/swing/RepaintManager.java
3628         (paintDirtyRegions): Use public API of java.util.Map.
3629         * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3630         (positionForMouseEvent): Removed redundant ';'.
3631         (continueDrag): Use method arguments.
3632
3633 2004-05-29  Ranjit Mathew  <rmathew@hotmail.com>
3634
3635         * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
3636         results.
3637
3638 2004-05-28  Bryce McKinlay  <mckinlay@redhat.com>
3639
3640         * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
3641         _Jv_AllocBytes.
3642         * gnu/gcj/RawDataManaged.java: New file.
3643         * java/lang/Thread.java (data): Declare as RawDataManaged.
3644         * java/lang/natThread.cc (init_native): Cast natThread data to
3645         RawDataManaged, not jobject.
3646         * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
3647         * Makefile.in: Rebuilt.
3648
3649 2004-05-27  Jerry Quinn  <jlquinn@optonline.net>
3650
3651         * java/util/SimpleTimeZone.java: Reverting my last change until I
3652         can fix it properly.
3653
3654 2004-05-27  Michael Koch  <konqueror@gmx.de>
3655
3656         * javax/swing/JPopupMenu.java
3657         (isVisible): Do not use visible directly.
3658         (setVisible): Likewise.
3659         * javax/swing/JWindow.java
3660         (JWindow): call accessible constructor.
3661         * javax/swing/RepaintManager.java
3662         (paintDirtyRegions): Use public methods to obtain iterator.
3663
3664 2004-05-25  David Jee  <djee@redhat.com>
3665
3666         * java/awt/Container.java
3667         (remove): Set component's parent to null only after we removed the
3668         component from its parent's layout manager.
3669
3670 2004-05-25  David Jee  <djee@redhat.com>
3671
3672         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3673         (GtkComponentPeer): Set bounds regardless of whether awtComponent
3674         is valid.
3675         * gnu/java/awt/peer/gtk/GtkListPeer.java
3676         (getSize): Change native method declaration.
3677         (minimumSize): Pass visible row count into getSize().
3678         (preferredSize): Likewise.
3679         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3680         (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
3681         natural size. Use visible row count to determine the final height
3682         value to return.
3683
3684 2004-05-21  Graydon Hoare  <graydon@redhat.com>
3685
3686         * gnu/java/awt/peer/gtk/GdkGraphics2D.java 
3687         (setClip): Minor correction to order of operations.
3688
3689         * javax/swing/JScrollPane.java: Extend sketchy implementation.
3690         * javax/swing/ScrollPaneLayout.java: Likewise.
3691         * javax/swing/JViewPort.java: Likewise.
3692         * javax/swing/ViewportLayout.java: Likewise.
3693
3694         * javax/swing/JComponent.java: Rewrite.
3695         * javax/swing/RepaintManager.java: Likewise.
3696
3697         * javax/swing/JLayeredPane.java: Change validate() to revalidate().
3698         * javax/swing/JList.java 
3699         (setSelectedIndices):
3700         (getSelectedIndices):
3701         (getSelectedValues): New functions.
3702         (getPreferredScrollableViewportSize): Return preferred size.
3703         (getScrollableUnitIncrement):
3704         (getScrollableBlockIncrement): Initial implementations.
3705         * javax/swing/JRootPane.java: Clean up slightly.
3706         (getUI):
3707         (setUI):
3708         (updateUI):
3709         (getUIClassID):
3710         (isValidateRoot): Add overrides from JComponent.
3711         * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
3712         * javax/swing/UIManager.java (getDimension): Return the dimension.
3713
3714         * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
3715         * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3716         * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3717         * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3718         * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3719         * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
3720         * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
3721         * javax/swing/plaf/basic/BasicRootPaneUI.java: 
3722         Likewise, and set background.
3723         * javax/swing/plaf/basic/BasicListUI.java: 
3724         Likewise, and improve a bit.
3725         * javax/swing/plaf/basic/BasicScrollBarUI.java: 
3726         Likewise, and adjust calculations.
3727         * javax/swing/plaf/basic/BasicViewportUI.java:
3728         Likewise, and improve a bit.
3729         * javax/swing/plaf/basic/BasicLookAndFeel.java 
3730         (Button.margin): Shrink.
3731
3732         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
3733         Hack to set horizontal always, workaround pango.
3734
3735         * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
3736         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
3737         Synchronize more often, check cairo status after ops,
3738         handle changes to cairo pattern API, check for disposal.
3739
3740 2004-05-21  Olga Rodimina  <rodimina@redhat.com>
3741
3742         * javax/swing/plaf/basic/BasicMenuItemUI.java:
3743         (BasicMenuItemUI): Create propertyChangeListener.
3744         (getPath):Implemented.
3745         (installListeners): Add propertyChangeListener to menuItem.
3746         (uninstallListeners): Remove propertyChangeListener from menuItem.
3747         (update): Implemented.
3748         * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3749         (mouseEntered): Take insets of popup menu into account when
3750         calculating position of popup menu.     
3751         
3752 2004-05-18  Olga Rodimina  <rodimina@redhat.com>
3753
3754         * Makefile.am: Added new file. 
3755         * Makefile.in: Regenerate.
3756         * javax/swing/JMenuBar.java:
3757         Started implementation.
3758         * javax/swing/JPopupMenu.java:
3759         (setVisible): Fixed location of lightweight/mediumweight
3760         popup menu.
3761         (show): Fixed location of PopupMenu.
3762         * javax/swing/plaf/basic/BasicMenuBarUI.java:
3763         New file. UI Delegate for JMenuBar.
3764         * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3765         (mouseEntered): Corrected position of the submenu.
3766
3767 2004-05-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
3768
3769         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
3770         to _gtk_accel_group_attach.
3771         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
3772         Likewise.
3773
3774         * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
3775         package access.  Don't override setFont.
3776         * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
3777         * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
3778         gtkWidgetRequestFocus package access.
3779         * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
3780         setFont.
3781         * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
3782         Give gtkWidgetRequestFocus package access.
3783         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
3784         gtkWidgetRequestFocus package access.  Don't override setFont.
3785         * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
3786         setFont.
3787         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3788         (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
3789         region.
3790         (gtkSetFont): Likewise.
3791         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
3792         Implement.
3793         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3794         (gtkSetFont): Whitespace fix.
3795
3796         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3797         (gtkWidgetSetUsize): Remove method.
3798
3799 2004-05-18  David Jee  <djee@redhat.com>
3800
3801         * java/awt/image/MemoryImageSource.java
3802         (newPixels(int,int,int,int,boolean)): Set only the specified
3803         rectangle of pixels.
3804         (newPixels(byte[],ColorModel,int,int)): Implement.
3805         (newPixels(int[],ColorModel,int,int)): Implement.
3806
3807 2004-05-18  Olga Rodimina  <rodimina@redhat.com>
3808
3809         * Makefile.am: Added new file.
3810         * Makefile.in: Regenerate.
3811         * javax/swing/JMenu.java: Started 
3812         implementation.
3813         * javax/swing/JPopupMenu.java:
3814         (insert): If specified index is -1, then
3815         add component at the end.
3816         (isPopupTrigger): Reimplemented.
3817         (JPopupMenu.LightWeightPopup): setBounds
3818         of the lightWeightPopup before adding it 
3819         to the layeredPane.
3820         (javax/swing/plaf/basic/BasicIconFactory.java):
3821         (getMenuArrowIcon): Implemented.
3822         * javax/swing/plaf/basic/BasicMenuItemUI.java:
3823         (getPreferredSize): Add size of the arrow icon 
3824         if this menu item is instance of JMenu.
3825         (paintMenuItem): Paint arrow icon if this 
3826         menu item is a submenu.
3827         * javax/swing/plaf/basic/BasicMenuUI.java:
3828         New File. UI Delegate for JMenu.
3829
3830 2004-05-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
3831
3832         * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
3833         Post KEY_TYPED events.
3834         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3835         (generates_key_typed_event): Remove function.
3836
3837 2004-05-17  Olga Rodimina  <rodimina@redhat.com>
3838
3839         * javax/swing/JRootPane.java
3840         (JRootPane.RootLayout): Reimplemented to 
3841         set bounds of contentPane and menuBar.
3842         (setJMenuBar): Add menu bar to the layered pane.
3843         (createLayeredPane): Set layout of layeredPane
3844         to null.
3845         * javax/swing/JLayeredPane.java:
3846         (addImpl): Calculate index of the component in the
3847         layeredPane according to the specified position within 
3848         the layer.      
3849
3850 2004-05-17  David Jee  <djee@redhat.com>
3851
3852         * gnu/java/awt/peer/gtk/GtkImagePainter.java
3853         (setPixels): Change color model to the default model after
3854         converting pixels.
3855         * java/awt/image/MemoryImageSource.java
3856         (newPixels): Set only the specified rectangle of pixels.
3857
3858 2004-05-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
3859
3860         * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
3861         -l-java-beans -l-javax-accessibility -l-javax-swing.
3862
3863         * java/awt/AWTEvent.java (toString): Print source's name rather
3864         than the source itself.
3865
3866 2004-05-12  Thomas Fitzsimmons  <fitzsim@redhat.com>
3867
3868         * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
3869         native.
3870         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
3871         (gdk_color_to_java_color): New function.
3872         * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
3873
3874 2004-05-12  David Jee  <djee@redhat.com>
3875
3876         * java/awt/image/RGBImageFilter.java:
3877         Initialize origmodel as null.
3878         (makeColor): Fix pixel component order.
3879         (filterRGBPixels): Fix pixel iteration.
3880         (setPixels): Add extra checks for index color model. Convert pixels
3881         to default color model if necessary.
3882         (convertColorModelToDefault): New override method for byte pixels.
3883         (convertColorModelToDefault): For int pixels, fix pixel iteration.
3884         (makeColorbyDefaultCM): New override method for byte pixels.
3885         (makeColorbyDefaultCM): For int pixel, add color model as argument.
3886         (makeColor): Fix pixel component order.
3887
3888 2004-05-11  Kim Ho  <kho@redhat.com>
3889
3890         * javax/swing/Box.java:
3891         Comment out more parts of Box.Filler.
3892
3893 2004-05-11  Kim Ho  <kho@redhat.com>
3894
3895         * javax/swing/Box.java:
3896         Remove reference to AccessibleAWTComponent so
3897         it compiles again.
3898
3899 2004-05-10  Thomas Fitzsimmons  <fitzsim@redhat.com>
3900
3901         * gnu/java/awt/peer/gtk/GtkListPeer.java,
3902         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
3903         implementation of list peer to use GtkTreeView instead of
3904         deprecated GtkCList.
3905
3906 2004-05-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
3907
3908         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3909         (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
3910         (handleEvent): Remove keyChar argument to
3911         gtkWidgetDispatchKeyEvent calls.
3912         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
3913         compiler warnings.
3914         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3915         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
3916         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
3917         Likewise.
3918
3919 2004-05-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
3920
3921         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3922         (gtkWidgetRequestFocus): Mark protected.
3923         (GtkComponentPeer): Only set the peer's bounds if its component
3924         is valid.
3925         * java/awt/Component.java (static): Set the default keyboard
3926         focus manager.
3927         (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
3928         requestFocusInWindow(temporary)): Don't request focus if the
3929         component is not showing.  Get tree lock before traversing
3930         component hierarchy.
3931         * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3932         Only set the global focus owner if it is not a Window.
3933         (processKeyEvent): Consume keystrokes associated with the focus
3934         traversal keystroke.
3935         (focusPreviousComponent, focusNextComponent, upFocusCycle,
3936         downFocusCycle): Call requestFocusInWindow instead of
3937         requestFocus.
3938         * java/awt/EventDispatchThread.java (run): Move setting of
3939         default keyboard focus manager to Component.java.
3940         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3941         (awt_keycode_to_keysym): New function.
3942         (gtkWidgetDispatchKeyEvent): Finish implementation.
3943         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3944         (pre_event_handler): Add FIXME comment.
3945
3946         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
3947         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3948         (gtkWidgetRequestFocus): New method.
3949         * java/awt/TextArea.java (TextArea): Set focus traversal keys to
3950         disable Tab and Shift-Tab keystrokes.
3951         (addNotify, appendText, insertText, replaceText): Simplify peer
3952         retrieval code.
3953         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3954         (connectSignals): Remove connections to "commit" signals.
3955         Remove C++-style comments.
3956
3957         * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
3958         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3959         (handleEvent): Activate GTK button when the space bar key is
3960         pressed.
3961         (gtkActivate): New method.
3962
3963 2004-05-06  David Jee  <djee@redhat.com>
3964
3965         * java/awt/image/CropImageFilter.java
3966         (setPixels): Implement for byte array pixels.
3967         * java/awt/image/ReplicateScaleFilter.java
3968         (setPixels): Implement for byte array pixels.
3969         (replicatePixels): Overload for byte array pixels.
3970
3971 2004-05-06  Kim Ho  <kho@redhat.com>
3972
3973         * javax/swing/Box.java:
3974         (getAccessibleContext): Return an instance of the 
3975         correct class.
3976
3977 2004-05-05  David Jee  <djee@redhat.com>
3978
3979         * gnu/java/awt/peer/gtk/GdkGraphics.java
3980         (drawImage): When component is null, use SystemColor.window as
3981         the default bgcolor.
3982         * gnu/java/awt/peer/gtk/GtkImage.java
3983         (setPixels): We can avoid iterating through the pixel rows only
3984         when height is 1.
3985         * java/awt/Image.java
3986         (getScaledInstance): Partially implement.
3987         * java/awt/image/CropImageFilter.java
3988         (setProperties): Fix "filter" property.
3989         (setPixels): Implement.
3990         * java/awt/image/ReplicateScaleFilter.java
3991         (setDimensions): Use scaled dimensions.
3992         (setPixels): Implement.
3993         (replicatePixels): New method.
3994
3995 2004-05-05  David Jee  <djee@redhat.com>
3996
3997         * gnu/java/awt/peer/gtk/GtkImagePainter.java
3998         (convertPixels): If either pixels or model is null, return null.
3999         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
4000         (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
4001         is null, do nothing and return.
4002
4003 2004-05-03  Kim Ho  <kho@redhat.com>
4004
4005         * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
4006         (getGraphics): Like GtkFramePeer, the Graphics
4007         object needs to be translate to account for
4008         window decorations.
4009         (postMouseEvent): New method. Account for
4010         translation.
4011         (postExposeEvent): ditto.
4012         * javax/swing/Box.java: Stubbed.
4013         * javax/swing/JDialog.java: Ran through jalopy
4014         to fix indentation.
4015         (JDialog): Call SwingUtilities' getOwnerFrame
4016         for null owners.
4017         (setLayout): Check isRootPaneCheckingEnabled
4018         * javax/swing/JOptionPane.java: Re-implemented.
4019         * javax/swing/SwingUtilities.java:
4020         (getOwnerFrame): Static method to grab a default
4021         owner frame for Dialogs that don't specify owners.
4022         * javax/swing/event/SwingPropertyChangeSupport.java:
4023         (firePropertyChange): Fix early exit condition.
4024         * javax/swing/plaf/basic/BasicLabelUI.java:
4025         (paint): Avoid painting text if it is null 
4026         or empty.
4027         * javax/swing/plaf/basic/BasicOptionPaneUI.java:
4028         Implement.
4029
4030 2004-05-03  Olga Rodimina  <rodimina@redhat.com>
4031
4032         * Makefile.am: Added new file.
4033         * Makefile.in: Regenerate.
4034         * javax/swing/JPopupMenu.java:
4035         Started implementation.
4036         * javax/swing/JWindow.java
4037         (JWindow): call super() if parent for window
4038         is not specified.
4039         * javax/swing/plaf/basic/BasicPopupMenuUI.java:
4040         New File. UI Delegate for JPopupMenu.
4041
4042 2004-04-30  Olga Rodimina  <rodimina@redhat.com>
4043
4044         * javax/swing/JApplet.java: Indicated that JApplet
4045         implements RootPaneContainer and made method of this
4046         interface public. 
4047         * javax/swing/JFrame.java: Ditto.
4048         * javax/swing/JWindow.java: Ditto.
4049         
4050 2004-04-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
4051
4052         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4053         (nativeSetBounds): Call gdk_window_move in addition to
4054         gtk_window_move.
4055
4056         * java/applet/Applet.java (preferredSize): Call parent's
4057         preferredSize if the applet stub is null.
4058         (minimumSize): Likewise for parent's minimumSize.
4059
4060 2004-04-27  Olga Rodimina  <rodimina@redhat.com>
4061
4062         * javax/swing/JMenuItem.java
4063         (createActionPropertyChangeListener): Implemented.
4064         (processMouseEvent): Ditto.
4065         (fireMenuDragMouseEntered): Ditto.
4066         (fireMenuDragMouseExited): Ditto.
4067         (fireMenuDragMouseDragged): Ditto.
4068         (fireMenuDragMouseReleased): Ditto.
4069         (menuSelectionChanged): Ditto.
4070         (getSubElements): Ditto.
4071         (getComponent): Ditto.
4072         (addMenuDragMouseListener): Ditto.
4073         (removeMenuDragMouseListener):Ditto.
4074         (addMenuKeyListener): Ditto.
4075         (removeMenuKeyListener): Ditto.
4076         * javax/swing/plaf/basic/BasicMenuItemUI.java
4077         (doClick): Imlemented.
4078         * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
4079         Don't handle mouse events here. Pass them to 
4080         MenuSelectionManager.
4081         
4082 2004-04-26  Olga Rodimina  <rodimina@redhat.com>
4083         Used correct version of jalopy configuration
4084         file to fix style in the files below.
4085
4086 2004-04-26  Olga Rodimina  <rodimina@redhat.com>
4087
4088         * javax/swing/JCheckBoxMenuItem.java: 
4089         Fixed style and removed unnecessary comments.
4090         * javax/swing/JMenuItem.java: Ditto.
4091         * javax/swing/JRadioButtonMenuItem.java: Ditto.
4092         * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
4093         * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
4094         * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
4095
4096 2004-04-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
4097
4098         * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
4099         C-style.
4100
4101         * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
4102
4103         * java/awt/ContainerOrderFocusTraversalPolicy.java
4104         (getComponentAfter): Start from current component and work up
4105         the component hierarchy until an acceptable component is found.
4106         Synchronize on tree lock.
4107         (getComponentBefore): Likewise.
4108
4109 2004-04-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
4110
4111         * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
4112         focus-related debugging messages.
4113         * java/awt/DefaultKeyboardFocusManager.java: Likewise.
4114         * java/awt/EventDispatchThread.java: Likewise.
4115         * java/awt/KeyboardFocusManager.java: Likewise.
4116         * java/awt/Window.java: Likewise.
4117         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
4118         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
4119
4120         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
4121         new C++-style comments to C-style comments.
4122         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
4123
4124         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
4125         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4126         (handleEvent): Dispatch key press and key release events to
4127         backing widget.
4128         (requestFocus): Post a FOCUS_GAINED event to the event queue.
4129         (gtkWidgetRequestFocus): New method.
4130         (gtkWidgetDispatchKeyEvent): Likewise.
4131         * java/awt/Component.java (requestFocus, requestFocus(boolean),
4132         requestFocusInWindow, requestFocusInWindow(boolean),
4133         getFocusCycleRootAncestor, nextFocus, transferFocus,
4134         transferFocusBackward, transferFocusUpCycle, hasFocus,
4135         isFocusOwner): Implement and document focus-handling methods.
4136         (setFocusTraversalKeys): Inherit focus traversal keys when
4137         keystrokes argument is null.  Fix focus-handling documentation
4138         throughout class.
4139         * java/awt/Container.java (setFocusTraversalKeys,
4140         getFocusTraversalKeys, areFocusTraversalKeysSet,
4141         isFocusCycleRoot, setFocusTraversalPolicy,
4142         getFocusTraversalPolicy, isFocusTraversalPolicySet,
4143         setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
4144         Implement and document focus-handling methods.
4145         (transferFocusBackward): Remove method.
4146         (readObject, writeObject): Implement and document serialization
4147         methods.
4148         * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
4149         and document.
4150         * java/awt/DefaultFocusTraversalPolicy.java: Implement and
4151         document.
4152         * java/awt/DefaultKeyboardFocusManager.java: Implement and
4153         partially document.
4154         * java/awt/EventDispatchThread.java (run): Set default keyboard
4155         focus manager.  Attempt to dispatch each event to the keyboard
4156         focus manager before normal dispatch.
4157         * java/awt/KeyboardFocusManager.java: Implement and partially
4158         document.
4159         * java/awt/Window.java (Window): Set focusCycleRoot to true.
4160         (show): Focus initial component when window is shown for the
4161         first time.
4162         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
4163         (pre_event_handler): Replace complex key press and key release
4164         logic with simple callbacks into GtkComponentPeer.
4165         * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
4166
4167 2004-04-21  Olga Rodimina  <rodimina@redhat.com>
4168
4169         * javax/swing/MenuSelectionManager.java
4170         (componentForPoint): Added new method. 
4171         (defaultManager): New Method. Implemented.
4172         (getSelectedPath): Ditto.
4173         (isComponentPartOfCurrentMenu): Ditto.
4174         (processKeyEvent): Added new method.
4175         (processMouseEvent): New Method. Implemented.
4176         (setSelectedPath): Ditto.
4177         (getPath): Ditto.
4178
4179 2004-04-19  Kim Ho  <kho@redhat.com>
4180
4181         * java/awt/Container.java: 
4182         (remove): Set the component's parent to null.
4183         (getComponentAt): Implement.
4184         * javax/swing/JComponent.java:
4185         (JComponent): Initialize defaultLocale
4186         (getDefaultLocale): Implement.
4187         (setDefaultLocale): ditto.
4188         * javax/swing/JSlider.java:
4189         (JSlider): Fix calculation of value.
4190         * javax/swing/JSplitPane.java: Implement.
4191         * javax/swing/plaf/basic/BasicLookAndFeel.java:
4192         Change SplitPane's default divider size.
4193         * javax/swing/plaf/basic/BasicScrollBarUI.java:
4194         (paint): Remove unused code.
4195         * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
4196         Added comments and ran through jalopy.
4197         (setBasicSplitPaneUI): Get reference to hidden divider
4198         and set up one touch buttons if necessary.
4199         (setBorder): Fire propertyChangeEvent only if 
4200         borders are different.
4201         (getPreferredSize): Defer to layout manager.
4202         (propertyChange): Implement.
4203         (oneTouchExpandableChanged): ditto.
4204         (createLeftOneTouchButton): Use BasicArrowButton.
4205         (createRightOneTouchButton): ditto.
4206         (moveDividerTo): New method. Moves the divider
4207         to a set location based on the last divider location.
4208         (BasicSplitPaneDivider::MouseHandler): Implement.
4209         (BasicSplitPaneDivider::OneTouchButton): Removed.
4210         (BasicSplitPaneDivider::DragController): Implement.
4211         (BasicSplitPaneDivider::VerticalDragController):
4212         ditto.
4213         (BasicSplitPaneDivider::DividerLayout): ditto.
4214         * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
4215         * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
4216         (calculateLayoutInfo): Don't show component if it's
4217         null.
4218         (paintTab): Fix title paint logic.
4219
4220 2004-05-26  Jerry Quinn  <jlquinn@optonline.net>
4221
4222         PR libgcj/8321
4223         * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
4224         (setStartRule,setEndRule): Don't take abs of day number.
4225         (getOffset): Clarify docs.  Add argument checks.
4226         (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
4227         (equals,hasSameRules,toString,readObject): Use startTimeMode and
4228         endTimeMode.
4229         * testsuite/libjava.mauve/xfails
4230         (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
4231
4232 2004-05-21  Bryce McKinlay  <mckinlay@redhat.com>
4233
4234         Layout interfaces during preparation, not initialization. 
4235         * java/lang/natClass.cc (initializeClass): Move 
4236         _Jv_LayoutInterfaceMethods call...
4237         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
4238
4239 2004-05-19  Anthony Green  <green@localhost.localdomain>
4240
4241         * Makefile.am (awt_java_source_files): Remove javax.rmi and
4242         gnu.javax.rmi code.
4243         * Makefile.in: Rebuilt.
4244         * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
4245         javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
4246         javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
4247         javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
4248         javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
4249         gnu/javax/rmi/CORBA/DelegateFactory.java,
4250         gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
4251         gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
4252         gnu/javax/rmi/CORBA/StubDelegateImpl.java,
4253         gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
4254         gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
4255         gnu/javax/rmi/PortableServer.java: Remove files.
4256
4257 2004-05-19  Anthony Green  <green@redhat.com>
4258
4259         * Makefile.am: Define JAVA_EXT_DIRS.
4260         * Makefile.in: Rebuilt.
4261         * java/lang/natRuntime.cc (insertSystemProperties): Set
4262         java.ext.dirs property.
4263
4264 2004-05-16  Mark Wielaard  <mark@klomp.org>
4265
4266         * java/io/Writer.java (Writer(Object)): Check for null lock object.
4267
4268 2004-05-15  Mark Wielaard  <mark@klomp.org>
4269
4270         * doc/cni.sgml: Removed, merged into gcj.texi.
4271
4272 2004-05-15  Mark Wielaard  <mark@klomp.org>
4273
4274         * Makefile.am (ordinary_java_source_files): Add new javax.print
4275         classes.
4276         * Makefile.in: Regenerated.
4277
4278 2004-05-15  Michael Koch  <konqueror@gmx.de>
4279
4280         * javax/print/attribute/standard/DateTimeAtCompleted.java,
4281         javax/print/attribute/standard/DateTimeAtCreation.java,
4282         javax/print/attribute/standard/DateTimeAtProcessing.java,
4283         javax/print/attribute/standard/DocumentName.java,
4284         javax/print/attribute/standard/JobHoldUntil.java,
4285         javax/print/attribute/standard/JobImpressionsCompleted.java,
4286         javax/print/attribute/standard/JobMessageFromOperator.java,
4287         javax/print/attribute/standard/JobName.java,
4288         javax/print/attribute/standard/JobOriginatingUserName.java,
4289         javax/print/attribute/standard/JobPriority.java,
4290         javax/print/attribute/standard/JobPrioritySupported.java,
4291         javax/print/attribute/standard/NumberOfInterveningJobs.java,
4292         javax/print/attribute/standard/OutputDeviceAssigned.java,
4293         javax/print/attribute/standard/PrinterInfo.java,
4294         javax/print/attribute/standard/PrinterLocation.java,
4295         javax/print/attribute/standard/PrinterMakeAndModel.java,
4296         javax/print/attribute/standard/PrinterMessageFromOperator.java,
4297         javax/print/attribute/standard/PrinterName.java,
4298         javax/print/attribute/standard/QueuedJobCount.java,
4299         javax/print/attribute/standard/RequestingUserName.java:
4300         Fixed javadocs all over.
4301
4302 2004-05-15  Michael Koch  <konqueror@gmx.de>
4303
4304         * javax/print/DocFlavor.java,
4305         javax/print/attribute/standard/ColorSupported.java,
4306         javax/print/attribute/standard/Compression.java,
4307         javax/print/attribute/standard/CopiesSupported.java,
4308         javax/print/attribute/standard/Fidelity.java,
4309         javax/print/attribute/standard/Finishings.java,
4310         javax/print/attribute/standard/JobImpressionsSupported.java,
4311         javax/print/attribute/standard/JobKOctetsSupported.java,
4312         javax/print/attribute/standard/JobMediaSheetsSupported.java,
4313         javax/print/attribute/standard/JobSheets.java,
4314         javax/print/attribute/standard/JobState.java,
4315         javax/print/attribute/standard/JobStateReason.java,
4316         javax/print/attribute/standard/JobStateReasons.java,
4317         javax/print/attribute/standard/Media.java,
4318         javax/print/attribute/standard/MediaSizeName.java,
4319         javax/print/attribute/standard/MultipleDocumentHandling.java,
4320         javax/print/attribute/standard/NumberUpSupported.java,
4321         javax/print/attribute/standard/OrientationRequested.java,
4322         javax/print/attribute/standard/PDLOverrideSupported.java,
4323         javax/print/attribute/standard/PageRanges.java,
4324         javax/print/attribute/standard/PresentationDirection.java,
4325         javax/print/attribute/standard/PrintQuality.java,
4326         javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4327         javax/print/attribute/standard/PrinterMoreInfo.java,
4328         javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4329         javax/print/attribute/standard/PrinterResolution.java,
4330         javax/print/attribute/standard/PrinterState.java,
4331         javax/print/attribute/standard/PrinterStateReason.java,
4332         javax/print/attribute/standard/PrinterStateReasons.java,
4333         javax/print/attribute/standard/PrinterURI.java,
4334         javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4335         javax/print/attribute/standard/Severity.java,
4336         javax/print/attribute/standard/SheetCollate.java,
4337         javax/print/attribute/standard/Sides.java:
4338         Added serialVersionUID and removed final keyword where it doenst
4339         belong.
4340
4341 2004-05-15  Michael Koch  <konqueror@gmx.de>
4342
4343         * javax/print/PrintServiceLookup.java: New file.
4344
4345 2004-05-15  Michael Koch  <konqueror@gmx.de>
4346
4347         * javax/print/DocFlavor.java:
4348         Implemented all flavor classes.
4349
4350 2004-05-15  Michael Koch  <konqueror@gmx.de>
4351
4352         * javax/print/attribute/standard/ColorSupported.java,
4353         javax/print/attribute/standard/Compression.java,
4354         javax/print/attribute/standard/CopiesSupported.java,
4355         javax/print/attribute/standard/Fidelity.java,
4356         javax/print/attribute/standard/Finishings.java,
4357         javax/print/attribute/standard/JobImpressionsSupported.java,
4358         javax/print/attribute/standard/JobKOctetsSupported.java,
4359         javax/print/attribute/standard/JobMediaSheetsSupported.java,
4360         javax/print/attribute/standard/JobSheets.java,
4361         javax/print/attribute/standard/JobState.java,
4362         javax/print/attribute/standard/JobStateReason.java,
4363         javax/print/attribute/standard/JobStateReasons.java,
4364         javax/print/attribute/standard/Media.java,
4365         javax/print/attribute/standard/MediaSizeName.java,
4366         javax/print/attribute/standard/MultipleDocumentHandling.java,
4367         javax/print/attribute/standard/NumberUpSupported.java,
4368         javax/print/attribute/standard/OrientationRequested.java,
4369         javax/print/attribute/standard/PDLOverrideSupported.java,
4370         javax/print/attribute/standard/PageRanges.java,
4371         javax/print/attribute/standard/PresentationDirection.java,
4372         javax/print/attribute/standard/PrintQuality.java,
4373         javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4374         javax/print/attribute/standard/PrinterMoreInfo.java,
4375         javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4376         javax/print/attribute/standard/PrinterResolution.java,
4377         javax/print/attribute/standard/PrinterState.java,
4378         javax/print/attribute/standard/PrinterStateReason.java,
4379         javax/print/attribute/standard/PrinterStateReasons.java,
4380         javax/print/attribute/standard/PrinterURI.java,
4381         javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4382         javax/print/attribute/standard/Severity.java,
4383         javax/print/attribute/standard/SheetCollate.java,
4384         javax/print/attribute/standard/Sides.java: New files.
4385
4386 2004-05-15  Michael Koch  <konqueror@gmx.de>
4387
4388         * javax/print/Doc.java
4389         (getPrintData): Throws IOException.
4390         (getReaderForText): Likewise.
4391         (getStreamForBytes): Likewise.
4392         * javax/print/DocFlavor.java:
4393         Fixed filename in copyright.
4394         (serialVersionUID): New field.
4395         * javax/print/ServiceUIFactory.java:
4396         Made all constants final.
4397         * javax/print/AttributeException.java
4398         javax/print/MultiDoc.java
4399         javax/print/MultiDocPrintJob.java
4400         javax/print/MultiDocPrintService.java
4401         javax/print/StreamPrintService.java
4402         javax/print/URIException.java: New files.
4403         * javax/print/Makefile.am
4404         (EXTRA_DIST): Added all new files.
4405
4406 2004-05-15  Michael Koch  <konqueror@gmx.de>
4407
4408         * javax/print/attribute/standard/Copies.java,
4409         javax/print/attribute/standard/DateTimeAtCompleted.java,
4410         javax/print/attribute/standard/DateTimeAtCreation.java,
4411         javax/print/attribute/standard/DateTimeAtProcessing.java,
4412         javax/print/attribute/standard/DocumentName.java,
4413         javax/print/attribute/standard/JobHoldUntil.java,
4414         javax/print/attribute/standard/JobImpressions.java,
4415         javax/print/attribute/standard/JobImpressionsCompleted.java,
4416         javax/print/attribute/standard/JobKOctets.java,
4417         javax/print/attribute/standard/JobKOctetsProcessed.java,
4418         javax/print/attribute/standard/JobMediaSheets.java,
4419         javax/print/attribute/standard/JobMediaSheetsCompleted.java,
4420         javax/print/attribute/standard/JobMessageFromOperator.java,
4421         javax/print/attribute/standard/JobName.java,
4422         javax/print/attribute/standard/JobOriginatingUserName.java,
4423         javax/print/attribute/standard/JobPriority.java,
4424         javax/print/attribute/standard/JobPrioritySupported.java,
4425         javax/print/attribute/standard/NumberOfDocuments.java,
4426         javax/print/attribute/standard/NumberOfInterveningJobs.java,
4427         javax/print/attribute/standard/NumberUp.java,
4428         javax/print/attribute/standard/OutputDeviceAssigned.java,
4429         javax/print/attribute/standard/PagesPerMinute.java,
4430         javax/print/attribute/standard/PagesPerMinuteColor.java:
4431         Fixed @return tag all over.
4432
4433 2004-05-15  Michael Koch  <konqueror@gmx.de>
4434
4435         * javax/print/attribute/AttributeSetUtilities.java
4436         (verifyCategoryForValue): Fixed typo in javadoc.
4437         * javax/print/attribute/HashAttributeSet.java
4438         (containsKey): Fixed @return tag.
4439         (comtainsValue): Likewise.
4440         (equals): Likewise.
4441         * javax/print/attribute/IntegerSyntax.java
4442         (equals): Likewise.
4443         * javax/print/attribute/ResolutionSyntax.java
4444         (equals): Likewise.
4445         (getCrossFeedResolution): Removed unused code.
4446         (getFeedResolution): Likewise.
4447         * javax/print/attribute/SetOfIntegerSyntax.java
4448         (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
4449         (equals): Fixed @return tag.
4450         * javax/print/attribute/TextSyntax.java
4451         (TextSyntax): Take locale into account.
4452         (hashCode): Better implementation.
4453
4454 2004-05-15  Michael Koch  <konqueror@gmx.de>
4455
4456         * javax/print/CancelablePrintJob.java,
4457         javax/print/Doc.java,
4458         javax/print/DocFlavor.java,
4459         javax/print/DocPrintJob.java,
4460         javax/print/FlavorException.java,
4461         javax/print/PrintException.java,
4462         javax/print/PrintService.java,
4463         javax/print/ServiceUIFactory.java: New files.
4464
4465 2004-05-15  Mark Wielaard  <mark@klomp.org>
4466
4467         * gnu/regexp/CharIndexedReader.java: Removed.
4468         * gnu/regexp/REFilterReader.java: Likewise.
4469         * gnu/regexp/RETokenLookAhead.java: Likewise.
4470         * Makefile.am (ordinary_java_source_files): Remove above classes.
4471         * Makefile.in: Regenerated.
4472
4473 2004-05-14  Tom Tromey  <tromey@redhat.com>
4474
4475         * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
4476         not `XGraphicsConfiguration.XOffScreenImage'.
4477
4478 2004-05-14  Scott Gilbertson  <scottg@mantatest.com>
4479
4480         * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
4481
4482 2004-05-14  Steven Augart  <augart@watson.ibm.com>
4483
4484         * include/jni.h (_Jv_func): Removed.
4485         (struct JNINativeInterface): Use `void *' for reserved slots.
4486         (struct JNIInvokeInterface): Likewise.
4487
4488 2004-05-11  Michael Koch  <konqueror@gmx.de>
4489
4490         * gnu/java/net/natPlainSocketImplPosix.cc
4491         (read): Fixed typo in expression.
4492
4493 2004-05-10  Andreas Tobler  <a.tobler@schweiz.ch>
4494
4495         * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
4496         ld_library_additions. Adjust all calls to libjava_invoke to match
4497         the new argument.
4498
4499         * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
4500         path to cxxflagslist.
4501         Pass path of libstdc++ to libjava_invoke.
4502
4503         * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
4504         libjava_invoke arguments.
4505
4506 2004-05-10  Ranjit Mathew  <rmathew@hotmail.com>
4507
4508         * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
4509         reality.
4510
4511 2004-05-07  Ranjit Mathew  <rmathew@gmail.com>
4512
4513         * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
4514         main binary against the JNI shared library.
4515
4516 2004-05-07  Jerry Quinn  <jlquinn@optonline.net>
4517
4518         * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
4519         WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
4520         (SimpleTimeZone): Tweak docs.  Add new variation.
4521         (setStartRule,setEndRule): Add new variations.  Use
4522         startTimeMode and endTimeMode.
4523
4524 2004-05-07  Jerry Quinn  <jlquinn@optonline.net>
4525
4526         * java/util/Calendar.java (getActualMinimum,
4527         getActualMaximum):  Remove abstract.  Implement.
4528
4529 2004-05-06  Bryce McKinlay  <mckinlay@redhat.com>
4530
4531         Run the jni tests using the interpreter.
4532         * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
4533         options_cxx to shared lib compile command.
4534         (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
4535         they are used to link the shared lib, not the main binary.
4536         Use libjava_invoke to run gij.
4537
4538 2004-05-06  Michael Koch  <konqueror@gmx.de>
4539
4540         * java/util/logging/Level.java
4541         (parse): Use == instead of String.equals().
4542
4543 2004-05-06  Bryce McKinlay  <mckinlay@redhat.com>
4544
4545         * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use 
4546         verify_field_signature and verify_method_signature, not 
4547         _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
4548         (_Jv_ClassReader::handleField): Likewise.
4549         (_Jv_ClassReader::handleMethod): Likewise.
4550
4551 2004-05-06  Michael Koch  <konqueror@gmx.de>
4552
4553         * javax/swing/table/TableColumn.java:
4554         Reformated.
4555
4556 2004-05-06  Michael Koch  <konqueror@gmx.de>
4557
4558         * javax/imageio/spi/ImageReaderWriterSpi.java
4559         (ImageReaderWriterSpi): Made it public.
4560         * javax/imageio/stream/ImageInputStream.java:
4561         Clean up imports.
4562
4563 2004-05-06  Michael Koch  <konqueror@gmx.de>
4564
4565         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4566         Removed empty line.
4567
4568 2004-05-06  Michael Koch  <konqueror@gmx.de>
4569
4570         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
4571         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
4572         New files.
4573         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
4574         Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
4575         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4576         Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
4577         their own source file.
4578         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4579         Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
4580         their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
4581         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
4582         (create): Define variable on top of function.
4583         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
4584         (menu_pos): Prototyped.
4585         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4586         (setTitle): Removed.
4587         * jni/gtk-peer/gthread-jni.c
4588         (gdk_threads_wake): Removed.
4589         * Makefile.am (gtk_c_source_files): Added new files
4590         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
4591         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
4592         * Makefile.in: Regenerated.
4593
4594 2004-05-05  Bryce McKinlay  <mckinlay@redhat.com>
4595
4596         * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
4597         call.
4598
4599 2004-05-05  Mark Wielaard  <mark@klomp.org>
4600
4601         * javax/swing/AbstractButton.java: Replace special HTML entities with
4602         ASCII equivalent.
4603         * javax/swing/DefaultBoundedRangeModel.java: Likewise.
4604         * javax/swing/DefaultButtonModel.java: Likewise.
4605         * javax/swing/DefaultListModel.java: Likewise.
4606         * javax/swing/JList.java: Likewise.
4607         * javax/swing/JSlider.java: Likewise.
4608         * javax/swing/ListModel.java: Likewise.
4609         * javax/swing/Popup.java: Likewise.
4610         * javax/swing/SwingUtilities.java: Likewise.
4611
4612 2004-05-05  Michael Koch  <konqueror@gmx.de>
4613
4614         * javax/swing/AbstractButton.java,
4615         javax/swing/ActionMap.java,
4616         javax/swing/DefaultButtonModel.java,
4617         javax/swing/DefaultListModel.java,
4618         javax/swing/ImageIcon.java,
4619         javax/swing/JComboBox.java,
4620         javax/swing/JComponent.java,
4621         javax/swing/JFrame.java,
4622         javax/swing/JInternalFrame.java,
4623         javax/swing/JMenuBar.java,
4624         javax/swing/JMenuItem.java,
4625         javax/swing/JOptionPane.java,
4626         javax/swing/JProgressBar.java,
4627         javax/swing/JRootPane.java,
4628         javax/swing/JScrollBar.java,
4629         javax/swing/JScrollPane.java,
4630         javax/swing/JSeparator.java,
4631         javax/swing/JSlider.java,
4632         javax/swing/JTabbedPane.java,
4633         javax/swing/JTable.java,
4634         javax/swing/JTextField.java,
4635         javax/swing/JToolBar.java,
4636         javax/swing/JToolTip.java,
4637         javax/swing/JTree.java,
4638         javax/swing/JViewport.java,
4639         javax/swing/JWindow.java,
4640         javax/swing/KeyStroke.java,
4641         javax/swing/LookAndFeel.java,
4642         javax/swing/SwingUtilities.java,
4643         javax/swing/Timer.java,
4644         javax/swing/ToolTipManager.java,
4645         javax/swing/UIDefaults.java,
4646         javax/swing/border/TitledBorder.java,
4647         javax/swing/filechooser/FileSystemView.java,
4648         javax/swing/plaf/basic/BasicButtonListener.java,
4649         javax/swing/plaf/basic/BasicButtonUI.java,
4650         javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
4651         javax/swing/plaf/basic/BasicGraphicsUtils.java,
4652         javax/swing/plaf/basic/BasicLabelUI.java,
4653         javax/swing/plaf/basic/BasicMenuItemUI.java,
4654         javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
4655         javax/swing/plaf/basic/BasicRootPaneUI.java,
4656         javax/swing/plaf/basic/BasicScrollBarUI.java,
4657         javax/swing/plaf/basic/BasicScrollPaneUI.java,
4658         javax/swing/plaf/basic/BasicSliderUI.java,
4659         javax/swing/plaf/basic/BasicTabbedPaneUI.java,
4660         javax/swing/plaf/basic/BasicToggleButtonUI.java,
4661         javax/swing/table/JTableHeader.java,
4662         javax/swing/text/AbstractDocument.java,
4663         javax/swing/text/DefaultCaret.java,
4664         javax/swing/text/StyledEditorKit.java,
4665         javax/swing/tree/DefaultTreeCellEditor.java:
4666         Cleaned up imports.
4667
4668 2004-05-05  Michael Koch  <konqueror@gmx.de>
4669
4670         * java/util/prefs/AbstractPreferences.java
4671         (AbstractPreferences): Added parenthesis for clarity.
4672         Closes classpath bug #7940.
4673
4674 2004-05-05  Tom Tromey  <tromey@redhat.com>
4675
4676         * javax/naming/CompoundName.java (endsWith): Look at correct
4677         element of source name.
4678
4679 2004-05-05  Mark Wielaard  <mark@klomp.org>
4680
4681         Reported by f.haeglsperger@gmx.de [classpath patch #2485]
4682         * java/util/HashMap.java (rehash): Add entry at start of bucket.
4683
4684 2004-05-05  Tom Tromey  <tromey@redhat.com>
4685
4686         * java/io/BufferedReader.java (skip): Removed unused
4687         variable.
4688
4689 2004-05-05  Michael Koch  <konqueror@gmx.de>
4690
4691         * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
4692
4693 2004-05-05  Dalibor Topic  <robilad@kaffe.org>
4694
4695         * java/text/AttributedString.java,
4696         java/text/AttributedStringIterator.java,
4697         java/text/Collator.java,
4698         java/text/DecimalFormatSymbols.java,
4699         java/text/NumberFormat.java,
4700         java/text/RuleBasedCollator.java:
4701         Cleaned up imports.
4702
4703 2004-05-05  Tom Tromey  <tromey@redhat.com>
4704
4705         * java/text/Format.java: Cleaned up imports.
4706         * java/text/DecimalFormat.java: Cleaned up imports.
4707         * java/security/SecureRandom.java: Cleaned up imports.
4708         (SecureRandom): Removed unused variable.
4709         * java/security/UnresolvedPermission.java: Cleaned up imports.
4710         * java/util/Date.java (parse): Removed unused variable.
4711         * java/util/ResourceBundle.java: Cleaned up imports.
4712         (getBundle): Removed unused variable.
4713         (tryBundle): Likewise.
4714         * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
4715
4716 2004-05-05  Guilhem Lavaux <guilhem@kaffe.org>
4717
4718         * java/text/SimpleDateFormat.java:
4719         (formatWithAttribute): New method. It implements
4720         the formatting process with attributes.
4721         (format): Use formatWithAttribute.
4722         (formatToCharacterIterator): New method. Use
4723         formatWithAttribute.
4724
4725 2004-05-05  Guilhem Lavaux <guilhem@kaffe.org>
4726
4727         * java/text/MessageFormat.java:
4728         (class Field): New class.
4729         (formatToCharacterIterator): New method.
4730         (format): Use formatInternal now.
4731         (formatInternal): New method. String formatter should
4732         be done here (with attributes). Attributes merging supported.
4733         (parse): More documentation.
4734         (getFormatsByArgumentIndex): New method.
4735         (setFormatByArgumentIndex): New method.
4736         (setFormatsByArgumentIndex): New method.
4737
4738 2004-05-05  Guilhem Lavaux <guilhem@kaffe.org>
4739
4740         * java/text/DecimalFormat.java
4741         (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
4742         (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
4743         (parse): Fixed handling of exponentiation notation and grouping.
4744
4745 2004-05-05  Guilhem Lavaux <guilhem@kaffe.org>
4746
4747         * java/text/DecimalFormat.java
4748         (scanFix): Build attribute array. Fixed error reporting.
4749         (applyPatternWithSymbols): Store attributes for the prefix and
4750         suffix.
4751         (formatInternal): New method. Changed the way the string is
4752         computed. Implemented attributes. Cleant up rounding in
4753         exponential notation.
4754         (format): Use formatInternal.
4755         (formatToCharacterIterator): New method.
4756         (exponentRound, negativePrefixRanges, positivePrefixRanges,
4757         negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
4758         positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
4759         New fields.
4760
4761 2004-05-04  Dalibor Topic  <robilad@kaffe.org>
4762
4763         * java/security/interfaces/DSAKeyPairGenerator.java,
4764         java/security/interfaces/DSAPrivateKey.java,
4765         java/security/interfaces/DSAPublicKey.java,
4766         java/security/interfaces/RSAPrivateKey.java,
4767         java/security/interfaces/RSAPublicKey.java:
4768         Cleaned up imports.
4769
4770 2004-05-04  Michael Koch  <konqueror@gmx.de>
4771
4772         * java/nio/ByteBuffer.java,
4773         java/nio/CharBuffer.java,
4774         java/nio/DoubleBuffer.java,
4775         java/nio/FloatBuffer.java,
4776         java/nio/IntBuffer.java,
4777         java/nio/LongBuffer.java,
4778         java/nio/ShortBuffer.java:
4779         (compareTo): Fixed bogus implementation in all buffer classes.
4780
4781 2004-05-04  Ingo Proetel  <proetel@aicas.com>
4782
4783         * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
4784         32 bit pixels not 8 bit pixels.
4785         (isCompatibleRaster): Added javadoc comment.
4786
4787 2004-05-04  Ingo Proetel  <proetel@aicas.com>
4788
4789         * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
4790         scanline stride.
4791
4792 2004-05-04  Ingo Proetel  <proetel@aicas.com>
4793
4794         * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
4795         (getColorModel): Return the actual color model.
4796         (getRaster): Implemented.
4797         (ColorRaster): New inner class.
4798         * java/awt/SystemColor.java (createContext): Use ColorModel when creating
4799         a PaintContext.
4800         * java/awt/Color.java (<init>): Make exception more verbose.
4801         (createContext): Use ColorModel when creating a PaintContext.
4802
4803 2004-05-04  Michael Koch  <konqueror@gmx.de>
4804
4805         * gnu/java/text/CharacterBreakIterator.java
4806         (previous): Removed unused variable.
4807
4808 2004-05-04  Guilhem Lavaux <guilhem@kaffe.org>
4809
4810         * gnu/java/text/FormatBuffer.java,
4811         gnu/java/text/AttributedFormatBuffer.java,
4812         gnu/java/text/StringFormatBuffer.java: New classes to implement
4813         attributed iterators in java.text.
4814         * gnu/java/text/FormatCharacterIterator.java: Moved 
4815         from java/text as it is an internal class.
4816         * java/text/FormatCharacterIterator.java: Removed.
4817         * java/text/Format.java:
4818         Import gnu.java.text.FormatCharacterIterator.
4819         * Makefile.am (java_source_files): Added new files.
4820         * Makefile.in: Regenerated.
4821         
4822
4823 2004-05-04  Mark Wielaard  <mark@klomp.org>
4824
4825         * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
4826
4827 2004-05-03  Andreas Tobler  <a.tobler@schweiz.ch>
4828
4829         * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
4830         * Makefile.in: Rebuilt.
4831
4832 2004-05-03  Mark Wielaard  <mark@klomp.org>
4833
4834         * gnu/java/security/der/DERReader.java: Call static methods staticly.
4835         * java/awt/TextComponent.java (select): Use selectionEnd parameter.
4836         * java/net/URL.java
4837         (set(String, String, int, String, String, String, String, String)):
4838         Assign this.file to path or path + "?" + query.
4839         * java/util/Arrays.java: Call static methods staticly.
4840         * java/util/zip/ZipEntry.java: Likewise.
4841         * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
4842         dir to this.direction.
4843         * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
4844         Assign static field only once.
4845         (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
4846
4847 2004-05-03  Mark Wielaard  <mark@klomp.org>
4848
4849         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
4850         unused variables hScrollbarHeight and vScrollbarWidth.
4851         (preferredSize): Likewise.
4852         * gnu/java/security/provider/DSAParameters.java (engineToString):
4853         Removed unused call to System.getProperty("line.seperator");
4854         * java/security/Security.java (loadProviders): Return result.
4855
4856 2004-05-03  Tom Tromey  <tromey@redhat.com>
4857
4858         * java/net/URLStreamHandler.java (toExternalForm): Removed
4859         unused variables.
4860         unused constructor.
4861         * java/math/BigDecimal.java (divide): Removed unused variable.
4862         * java/lang/Throwable.java: Cleaned up imports.
4863         * java/lang/ClassLoader.java: Cleaned up imports.
4864         * java/io/FilePermission.java (implies): Removed unused
4865         variable.
4866         * java/awt/TextComponent.java: Removed unused import.
4867         * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
4868         * gnu/java/util/DoubleEnumeration.java: Removed unused import.
4869         * gnu/java/text/WordBreakIterator.java: Removed unused import.
4870         * gnu/java/text/SentenceBreakIterator.java: Removed unused
4871         import.
4872         * gnu/java/text/LineBreakIterator.java: Removed unused import.
4873         * gnu/java/text/CharacterBreakIterator.java: Removed
4874         unused import.
4875         * gnu/java/security/provider/DSAKeyPairGenerator.java:
4876         Cleaned up imports.
4877         * gnu/java/security/der/DERWriter.java: Cleaned up imports.
4878         * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
4879         unused method.
4880         * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
4881         * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
4882         * gnu/java/io/Base64InputStream.java: Cleaned up imports.
4883         * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
4884         * gnu/classpath/ServiceFactory.java: Cleaned up imports.
4885         (lookupProviders): Removed unused variable.
4886         (loadNextServiceProvider): Likewise.
4887         * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
4888
4889 2004-05-03  Michael Koch  <konqueror@gmx.de>
4890
4891         Fixes PR libgcj/14695:
4892         * java/net/NetworkInterface.java
4893         (getByName): Return null when no interface was found.
4894
4895 2004-04-30  Ranjit Mathew  <rmathew@hotmail.com>
4896             Tom Tromey  <tromey@redhat.com>
4897
4898         * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
4899         additional option "-Wmissing-prototypes" for compiling C sources.
4900         Print actual filename for pass/fail rather than $name.c.
4901         * testsuite/libjava.jni/PR15133.java: New testcase file.
4902         * testsuite/libjava.jni/PR15133.c: Likewise.
4903         * testsuite/libjava.jni/PR15133.out: Likewise.
4904
4905 2004-04-30  Roger Sayle  <roger@eyesopen.com>
4906
4907         * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
4908         ceil and floor.
4909
4910 2004-04-25  Ranjit Mathew  <rmathew@hotmail.com>
4911         
4912         * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
4913         limit the maximum heap size to avoid unnecessary thrashing.
4914
4915 2004-04-24  Jerry Quinn  <jlquinn@optonline.net>
4916
4917         * java/text/CollationElementIterator.java (reset): Reset
4918         lookahead variables.
4919
4920 2004-04-23  Mark Wielaard  <mark@klomp.org>
4921
4922         * jni/classpath/jcl.c: Changed C++ comments into C comments.
4923
4924 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4925
4926         * java/sql/DriverManager.java:
4927         Cleaned up imports.
4928
4929 2004-04-23  Michael Koch  <konqueror@gmx.de>
4930
4931         * java/net/URL.java
4932         (hashcode): Don't initialize with default value explicitely.
4933         (getContent): Removed redundant "final" keyword.
4934         (openStream): Likewise.
4935         (getURLStreamHandler): Fixed coding style.
4936         * java/net/URLConnection.java
4937         (defaultAllowUserInteraction): Don't initialize with default value
4938         explicitely.
4939         (connected): Likewise.
4940         (doOutput): Likewise.
4941         (ifModifiedSince): Likewise.
4942         (dateformats_initialized): Likewise.
4943         (setURLStreamHander): Use StreamTokenizer where it belongs to.
4944
4945 2004-04-23  Michael Koch  <konqueror@gmx.de>
4946
4947         * gnu/java/nio/channels/FileChannelImpl.java
4948         (SET, CUR): Unused, removed.
4949         (read): Implement here directly.
4950         (implRead): Removed.
4951         (write): Implement here directly.
4952         (implWrite): Removed.
4953
4954 2004-04-23  Dalibor Topic  <robilad@kaffe.org>
4955
4956         * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
4957         javax/rmi/CORBA/Stub.java,
4958         javax/rmi/CORBA/Util.java,
4959         javax/rmi/CORBA/ValueHandler.java,
4960         javax/rmi/CORBA/ValueHandler.java,
4961         javax/rmi/PortableRemoteObject.java:
4962         Cleaned up imports.
4963
4964 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4965
4966         * java/util/jar/JarFile.java,
4967         java/util/jar/JarInputStream.java,
4968         java/util/jar/JarOutputStream.java,
4969         java/util/jar/Manifest.java:
4970         Cleaned up imports.
4971
4972 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4973
4974         * java/util/ArrayList.java,
4975         java/util/Calendar.java,
4976         java/util/Currency.java,
4977         java/util/HashMap.java,
4978         java/util/HashSet.java,
4979         java/util/Hashtable.java,
4980         java/util/LinkedList.java,
4981         java/util/Properties.java,
4982         java/util/PropertyPermission.java,
4983         java/util/TimeZone.java,
4984         java/util/TreeMap.java,
4985         java/util/TreeSet.java,
4986         java/util/Vector.java,
4987         java/util/WeakHashMap.java:
4988         Cleaned up imports.
4989
4990 2004-04-23  Dalibor Topic  <robilad@kaffe.org>
4991
4992         * java/util/logging/FileHandler.java,
4993         java/util/logging/Formatter.java,
4994         java/util/logging/Handler.java,
4995         java/util/logging/Logger.java,
4996         java/util/logging/SimpleFormatter.java,
4997         java/util/logging/XMLFormatter.java:
4998         Cleaned up imports.
4999
5000 2004-04-22  Mark Wielaard  <mark@klomp.org>
5001
5002         * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
5003         -Wno-long-long flags variable.
5004         (gtk_c_files): Use PEDANTIC_CFLAGS.
5005         * Makefile.in: Regenerated.
5006
5007 2004-04-22  Mark Wielaard  <mark@klomp.org>
5008
5009         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5010         Changed C++ comments into C comments.
5011         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
5012         Likewise.
5013
5014 2004-04-22  Michael Koch  <konqueror@gmx.de>
5015
5016         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
5017         Merged copyright year with GNU classpath.
5018
5019 2004-04-22  Dalibor Topic  <robilad@kaffe.org>
5020
5021         * javax/security/auth/x500/X500Principal.java:
5022         Cleaned up imports.
5023
5024 2004-04-22  Dalibor Topic  <robilad@kaffe.org>
5025
5026         * javax/swing/JSlider.java:
5027         Fixed HTML tags in comments.
5028
5029 2004-04-22  Dalibor Topic  <robilad@kaffe.org>
5030
5031         * javax/accessibility/AccessibleText.java:
5032         Cleaned up imports.
5033
5034 2004-04-22  Jeroen Frijters <jeroen@sumatra.nl>
5035
5036         * java/net/URLStreamHandler.java
5037         (parseURL): Convert the file path to using '/' instead of native
5038         file separator.
5039
5040 2004-04-22  Guilhem Lavaux <guilhem@kaffe.org>
5041
5042         * java/net/URL.java
5043         (userInfo): New field.
5044         (URL): Set authority to the right value.
5045         (setURL): Fixed authority and file initialization.
5046         * java/net/URLStreamHandler.java
5047         (parseURL): Take care of the query tag. Build authority.
5048         (toExternalForm): Fixed URL building using authority.
5049
5050 2004-04-22  Michael Koch  <konqueror@gmx.de>
5051
5052         * java/net/Socket.java
5053         (impl): Made package-private.
5054         * java/net/ServerSocket.java
5055         (implAccept): Access Socket.impl field directly.
5056
5057 2004-04-22  Dalibor Topic  <robilad@kaffe.org>
5058
5059         * java/util/prefs/Preferences.java,
5060         java/util/prefs/InvalidPreferencesFormatException.java,
5061         java/util/prefs/BackingStoreException.java,
5062         java/util/prefs/AbstractPreferences.java:
5063         Cleaned up imports.
5064
5065 2004-04-22  Dalibor Topic  <robilad@kaffe.org>
5066
5067         * java/util/regex/Matcher.java,
5068         java/util/regex/Pattern.java:
5069         Cleaned up imports.
5070
5071 2004-04-22  Michael Koch  <konqueror@gmx.de>
5072
5073         * java/nio/charset/IllegalCharsetNameException.java
5074         (charsetName): Made private.
5075         (IllegalCharsetNameException): Added @param tag to javadoc.
5076         (getCharsetName): Added @return tag to javadoc.
5077         * java/nio/charset/MalformedInputException.java
5078         (MalformedInputException): Added @param tag to javadoc.
5079         (getInputLength): Revised method description, added @return tag.
5080         (getMessage): Added @return tag.
5081
5082 2004-04-22  Jerry Quinn  <jlquinn@optonline.net>
5083
5084         * java/awt/Font.java (deriveFont): Implement missing variants.
5085         * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
5086         missing variants.
5087
5088 2004-04-21  Bryce McKinlay  <mckinlay@redhat.com>
5089
5090         * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
5091         Set method->index values for interface methods to their itable index.
5092         (initializeClass): Call _Jv_LayoutInterfaceMethods.
5093
5094 2004-04-21  Michael Koch  <konqueror@gmx.de>
5095
5096         * java/nio/DirectByteBufferImpl.java
5097         (shiftDown): Made static, give address as argument and
5098         provide a convenience method that overwrites shiftDown in
5099         ByteBufferImpl and calls the native shiftDown.
5100         * java/nio/MappedByteBufferImpl.java
5101         (): Use optimized method in DirectByteBufferImpl.
5102         * java/nio/natDirectByteBufferImpl.cc
5103         (shiftDown): Changed method signature. Removed usage of array_offset.
5104
5105 2004-04-21  Michael Koch  <konqueror@gmx.de>
5106
5107         * gnu/java/net/natPlainSocketImplPosix.cc
5108         (SocketInputStream::read): Make sure returned data is a byte value.
5109
5110 2004-04-21  Michael Koch  <konqueror@gmx.de>
5111
5112         * gnu/classpath/ServiceFactory.java,
5113         gnu/classpath/ServiceProviderLoadingAction.java,
5114         javax/imageio/ImageReader.java,
5115         javax/imageio/ImageTranscoder.java,
5116         javax/imageio/ImageWriter.java,
5117         javax/imageio/package.html,
5118         javax/imageio/spi/IIOServiceProvider.java,
5119         javax/imageio/spi/ImageInputStreamSpi.java,
5120         javax/imageio/spi/ImageOutputStreamSpi.java,
5121         javax/imageio/spi/ImageReaderWriterSpi.java,
5122         javax/imageio/spi/ImageTranscoderSpi.java,
5123         javax/imageio/spi/RegisterableService.java,
5124         javax/imageio/spi/ServiceRegistry.java,
5125         javax/imageio/spi/package.html,
5126         javax/imageio/stream/IIOByteBuffer.java,
5127         javax/imageio/stream/ImageInputStream.java,
5128         javax/imageio/stream/ImageOutputStream.java,
5129         javax/imageio/stream/package.html:
5130         New files.
5131         * Makefile.am
5132         (ordinary_java_source_files): Added
5133         gnu/classpath/ServiceFactory.java and
5134         gnu/classpath/ServiceProviderLoadingAction.java.
5135         (javax_source_files): Added
5136         javax/imageio/ImageReader.java,
5137         javax/imageio/ImageTranscoder.java,
5138         javax/imageio/ImageWriter.java,
5139         javax/imageio/spi/IIOServiceProvider.java,
5140         javax/imageio/spi/ImageInputStreamSpi.java,
5141         javax/imageio/spi/ImageOutputStreamSpi.java,
5142         javax/imageio/spi/ImageReaderWriterSpi.java,
5143         javax/imageio/spi/ImageTranscoderSpi.java,
5144         javax/imageio/spi/RegisterableService.java,
5145         javax/imageio/spi/ServiceRegistry.java,
5146         javax/imageio/stream/IIOByteBuffer.java,
5147         javax/imageio/stream/ImageInputStream.java and
5148         javax/imageio/stream/ImageOutputStream.java.
5149         * Makefile.in: Regenerated.
5150
5151 2004-04-21  Michael Koch  <konqueror@gmx.de>
5152
5153         * java/util/Properties.java
5154         (load): Fix wrongly merged fix.
5155
5156 2004-04-21  Mark Wielaard  <mark@klomp.org>
5157
5158         * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
5159         malloc and free buf.
5160
5161 2004-04-21  Dalibor Topic  <robilad@kaffe.org>
5162
5163         * javax/naming/AuthenticationException.java,
5164         javax/naming/AuthenticationNotSupportedException.java,
5165         javax/naming/CannotProceedException.java,
5166         javax/naming/CommunicationException.java,
5167         javax/naming/CompoundName.java,
5168         javax/naming/ConfigurationException.java,
5169         javax/naming/ContextNotEmptyException.java,
5170         javax/naming/InitialContext.java,
5171         javax/naming/InsufficientResourcesException.java,
5172         javax/naming/InterruptedNamingException.java,
5173         javax/naming/LimitExceededException.java,
5174         javax/naming/LinkException.java,
5175         javax/naming/LinkLoopException.java,
5176         javax/naming/LinkRef.java,
5177         javax/naming/MalformedLinkException.java,
5178         javax/naming/Name.java,
5179         javax/naming/NameAlreadyBoundException.java,
5180         javax/naming/NameNotFoundException.java,
5181         javax/naming/NamingSecurityException.java,
5182         javax/naming/NoInitialContextException.java,
5183         javax/naming/NoPermissionException.java,
5184         javax/naming/NotContextException.java,
5185         javax/naming/PartialResultException.java,
5186         javax/naming/ReferralException.java,
5187         javax/naming/ServiceUnavailableException.java,
5188         javax/naming/SizeLimitExceededException.java,
5189         javax/naming/TimeLimitExceededException.java,
5190         javax/naming/directory/Attribute.java,
5191         javax/naming/directory/Attributes.java,
5192         javax/naming/directory/SearchResult.java,
5193         javax/naming/event/NamingExceptionEvent.java,
5194         javax/naming/spi/ResolveResult.java:
5195         Cleaned up imports.
5196
5197 2004-04-21  Mark Wielaard  <mark@klomp.org>
5198
5199         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
5200         Changed C++ comments into C comments. Removed commented out code.
5201         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5202         Likewise.
5203         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
5204         Likewise.
5205         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
5206         Likewise.
5207         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
5208         Likewise.
5209         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
5210         Likewise.
5211         * native/jni/gtk-peer/gthread-jni.c:
5212         Likewise.
5213
5214 2004-04-21  Mark Wielaard  <mark@klomp.org>
5215
5216         * javax/awt/JFrame.java: Implement WindowConstants. Remove final
5217         static fields defined in interface.
5218         * javax/awt/JDialog.java: Likewise.
5219         (JDialog): Make constructors public.
5220         (getDefaultCloseOperation): Make public.
5221         (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
5222         (setDefaultCloseOperation): Make public. Check argument. Add API doc.
5223         * javax/swing/JViewport.java (JViewport): Make constructor public.
5224
5225 2004-04-21  Michael Koch  <konqueror@gmx.de>
5226
5227         * java/util/Map.java
5228         (Entry): Removed redundant "static" modifier.
5229         * java/text/AttributedCharacterIterator.java:
5230         Updated copyright year.
5231
5232 2004-04-20  Michael Koch  <konqueror@gmx.de>
5233
5234         * javax/naming/directory/SearchControls.java:
5235         Don't explicitely extend java.lang.Object.
5236         * javax/naming/spi/DirStateFactory.java:
5237         Merged copyright year with GNU classpath.
5238
5239 2004-04-20  Michael Koch  <konqueror@gmx.de>
5240
5241         * java/nio/channels/Channels.java:
5242         Merged coding style with GNU classpath.
5243
5244 2004-04-20  Michael Koch  <konqueror@gmx.de>
5245
5246         * java/net/ServerSocket.java
5247         Merged coding style from GNU classpath.
5248
5249 2004-04-20  Michael Koch  <konqueror@gmx.de>
5250
5251         * java/io/BufferedWriter.java:
5252         Reordered variables to be at top of the class.
5253         (localFlush): Removed redundant final keyword.
5254
5255 2004-04-20  Ingo Proetel  <proetel@aicas.com>
5256
5257         * java/awt/event/MouseEvent.java (<init>): fixed field assignment 
5258
5259 2004-04-20  Jeroen Frijters  <jeroen@frijters.net>
5260
5261         * java/text/DecimalFormat.java (scanFix): Removed suffix check
5262         for percent and permill check.
5263
5264 2004-04-20  Guilhem Lavaux <guilhem@kaffe.org>
5265
5266         * java/text/FieldPosition.java
5267         (FieldPosition) Constructor now behaves as it should according
5268         to the java documentation.
5269
5270 2004-04-20  Mark Wielaard  <mark@klomp.org>
5271
5272         * java/util/Properties.java: Use the word umlaut, not &auml; in api
5273         documentation.
5274
5275 2004-04-20  Michael Koch  <konqueror@gmx.de>
5276
5277         * java/nio/Buffer.java,
5278         java/nio/channels/AlreadyConnectedException.java,
5279         java/nio/channels/AsynchronousCloseException.java,
5280         java/nio/channels/ByteChannel.java,
5281         java/nio/channels/CancelledKeyException.java,
5282         java/nio/channels/Channel.java,
5283         java/nio/channels/Channels.java,
5284         java/nio/channels/ClosedByInterruptException.java,
5285         java/nio/channels/ClosedChannelException.java,
5286         java/nio/channels/ClosedSelectorException.java,
5287         java/nio/channels/ConnectionPendingException.java,
5288         java/nio/channels/DatagramChannel.java,
5289         java/nio/channels/FileChannel.java,
5290         java/nio/channels/FileLock.java,
5291         java/nio/channels/FileLockInterruptionException.java,
5292         java/nio/channels/GatheringByteChannel.java,
5293         java/nio/channels/IllegalBlockingModeException.java,
5294         java/nio/channels/IllegalSelectorException.java,
5295         java/nio/channels/InterruptibleChannel.java,
5296         java/nio/channels/NoConnectionPendingException.java,
5297         java/nio/channels/NonReadableChannelException.java,
5298         java/nio/channels/NonWritableChannelException.java,
5299         java/nio/channels/NotYetBoundException.java,
5300         java/nio/channels/NotYetConnectedException.java,
5301         java/nio/channels/OverlappingFileLockException.java,
5302         java/nio/channels/Pipe.java,
5303         java/nio/channels/ReadableByteChannel.java,
5304         java/nio/channels/ScatteringByteChannel.java,
5305         java/nio/channels/SelectableChannel.java,
5306         java/nio/channels/SelectionKey.java,
5307         java/nio/channels/Selector.java,
5308         java/nio/channels/ServerSocketChannel.java,
5309         java/nio/channels/SocketChannel.java,
5310         java/nio/channels/UnresolvedAddressException.java,
5311         java/nio/channels/UnsupportedAddressTypeException.java,
5312         java/nio/channels/WritableByteChannel.java,
5313         java/nio/channels/spi/AbstractInterruptibleChannel.java,
5314         java/nio/channels/spi/AbstractSelectableChannel.java,
5315         java/nio/channels/spi/AbstractSelectionKey.java,
5316         java/nio/channels/spi/AbstractSelector.java,
5317         java/nio/channels/spi/SelectorProvider.java,
5318         java/nio/charset/spi/CharsetProvider.java:
5319         Fixed javadocs and jalopied all over java.nio.
5320
5321 2004-04-20  Michael Koch  <konqueror@gmx.de>
5322
5323         * java/nio/ByteBufferImpl.java,
5324         java/nio/CharBufferImpl.java,
5325         java/nio/DirectByteBufferImpl.java,
5326         java/nio/DoubleBufferImpl.java,
5327         java/nio/DoubleViewBufferImpl.java,
5328         java/nio/FloatBufferImpl.java,
5329         java/nio/FloatViewBufferImpl.java,
5330         java/nio/IntBufferImpl.java,
5331         java/nio/IntViewBufferImpl.java,
5332         java/nio/LongBufferImpl.java,
5333         java/nio/LongViewBufferImpl.java,
5334         java/nio/MappedByteBufferImpl.java,
5335         java/nio/ShortBufferImpl.java,
5336         java/nio/ShortViewBufferImpl.java:
5337         Made sure all classes are final and removed final keyword from all
5338         methods.
5339
5340 2004-04-20  Michael Koch  <konqueror@gmx.de>
5341
5342         * java/rmi/MarshalledObject.java,
5343         java/rmi/Naming.java,
5344         java/rmi/RemoteException.java,
5345         java/rmi/activation/ActivationException.java,
5346         java/rmi/server/ServerCloneException.java,
5347         java/security/AccessController.java,
5348         java/security/AlgorithmParameterGenerator.java,
5349         java/security/AlgorithmParameters.java,
5350         java/security/CodeSource.java,
5351         java/security/Identity.java,
5352         java/security/IdentityScope.java,
5353         java/security/KeyPairGenerator.java,
5354         java/security/KeyStore.java,
5355         java/security/Security.java,
5356         java/security/Signature.java,
5357         java/security/SignatureSpi.java,
5358         java/security/SignedObject.java,
5359         java/security/spec/DSAParameterSpec.java,
5360         java/security/spec/DSAPrivateKeySpec.java,
5361         java/security/spec/DSAPublicKeySpec.java,
5362         java/sql/Array.java,
5363         java/sql/DatabaseMetaData.java,
5364         java/sql/ResultSet.java,
5365         java/text/ChoiceFormat.java,
5366         java/text/CollationElementIterator.java,
5367         java/text/CollationKey.java,
5368         java/text/Collator.java,
5369         java/text/DateFormat.java,
5370         java/text/DateFormatSymbols.java,
5371         java/text/DecimalFormatSymbols.java,
5372         java/text/Format.java,
5373         java/text/ParsePosition.java,
5374         java/text/RuleBasedCollator.java,
5375         java/text/SimpleDateFormat.java,
5376         java/text/StringCharacterIterator.java,
5377         java/util/Collections.java,
5378         java/util/PropertyResourceBundle.java,
5379         java/util/ResourceBundle.java,
5380         java/util/StringTokenizer.java,
5381         java/util/jar/Attributes.java,
5382         java/util/logging/ConsoleHandler.java,
5383         java/util/logging/LogManager.java,
5384         java/util/logging/MemoryHandler.java,
5385         java/util/logging/SocketHandler.java,
5386         javax/naming/NamingException.java:
5387         Fixed javadoc, coding style and argument names all over.
5388
5389 2004-04-20  Jeroen Frijters  <jeroen@frijters.net>
5390
5391         * java/io/FileDescriptor.java: (FileDescriptor) Added public
5392         constructor. (valid) Added null check.
5393
5394 2004-04-20  Guilhem Lavaux <guilhem@kaffe.org>
5395
5396         Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
5397         * java/io/FileOutputStream.java
5398         (FileOutputStream) Reorganized constructors. Constructors now
5399         check whether the given path is directory.
5400
5401 2004-04-20  Michael Koch  <konqueror@gmx.de>
5402
5403         * java/net/Authenticator.java,
5404         java/net/BindException.java,
5405         java/net/ConnectException.java,
5406         java/net/ContentHandler.java,
5407         java/net/ContentHandlerFactory.java,
5408         java/net/DatagramPacket.java,
5409         java/net/DatagramSocket.java,
5410         java/net/DatagramSocketImpl.java,
5411         java/net/DatagramSocketImplFactory.java,
5412         java/net/FileNameMap.java,
5413         java/net/HttpURLConnection.java,
5414         java/net/Inet4Address.java,
5415         java/net/Inet6Address.java,
5416         java/net/InetAddress.java,
5417         java/net/InetSocketAddress.java,
5418         java/net/JarURLConnection.java,
5419         java/net/MalformedURLException.java,
5420         java/net/MulticastSocket.java,
5421         java/net/NetPermission.java,
5422         java/net/NetworkInterface.java,
5423         java/net/NoRouteToHostException.java,
5424         java/net/PasswordAuthentication.java,
5425         java/net/PortUnreachableException.java,
5426         java/net/ProtocolException.java,
5427         java/net/ServerSocket.java,
5428         java/net/Socket.java,
5429         java/net/SocketAddress.java,
5430         java/net/SocketException.java,
5431         java/net/SocketImpl.java,
5432         java/net/SocketImplFactory.java,
5433         java/net/SocketOptions.java,
5434         java/net/SocketPermission.java,
5435         java/net/SocketTimeoutException.java,
5436         java/net/URI.java,
5437         java/net/URISyntaxException.java,
5438         java/net/URL.java,
5439         java/net/URLClassLoader.java,
5440         java/net/URLConnection.java,
5441         java/net/URLDecoder.java,
5442         java/net/URLEncoder.java,
5443         java/net/URLStreamHandler.java,
5444         java/net/URLStreamHandlerFactory.java,
5445         java/net/UnknownHostException.java,
5446         java/net/UnknownServiceException.java:
5447         Fixed javadocs, coding style and argument names all over.
5448
5449 2004-04-20  Michael Koch  <konqueror@gmx.de>
5450
5451         * java/lang/Byte.java,
5452         java/lang/CharSequence.java,
5453         java/lang/ClassLoader.java,
5454         java/lang/Compiler.java,
5455         java/lang/Double.java,
5456         java/lang/Float.java,
5457         java/lang/Integer.java,
5458         java/lang/Long.java,
5459         java/lang/Math.java,
5460         java/lang/Number.java,
5461         java/lang/Package.java,
5462         java/lang/Runtime.java,
5463         java/lang/RuntimePermission.java,
5464         java/lang/SecurityManager.java,
5465         java/lang/Short.java,
5466         java/lang/StringBuffer.java,
5467         java/lang/System.java,
5468         java/lang/ThreadGroup.java,
5469         java/lang/Throwable.java,
5470         java/lang/reflect/InvocationHandler.java,
5471         java/lang/reflect/Proxy.java:
5472         Fixed javadocs, coding style and argument names all over.
5473
5474 2004-04-20  Michael Koch  <konqueror@gmx.de>
5475
5476         * java/io/BufferedWriter.java,
5477         java/io/ByteArrayInputStream.java,
5478         java/io/CharArrayWriter.java,
5479         java/io/DataInput.java,
5480         java/io/DataInputStream.java,
5481         java/io/File.java,
5482         java/io/FilterInputStream.java,
5483         java/io/InputStream.java,
5484         java/io/InputStreamReader.java,
5485         java/io/ObjectInputStream.java,
5486         java/io/ObjectStreamClass.java,
5487         java/io/PipedInputStream.java,
5488         java/io/PipedReader.java,
5489         java/io/PushbackInputStream.java,
5490         java/io/PushbackReader.java,
5491         java/io/RandomAccessFile.java,
5492         java/io/SerializablePermission.java,
5493         java/io/StreamTokenizer.java,
5494         java/io/StringWriter.java,
5495         java/io/WriteAbortedException.java,
5496         java/io/Writer.java:
5497         Fixed javadocs all over, rename arguments to match javadocs,
5498         fixed coding style.
5499
5500 2004-04-20  Ingo Proetel  <proetel@aicas.com>
5501
5502         * java/awt/FontMetrics.java:
5503         (charsWidth): fixed accumulation of total_width
5504         (getWidth): simple default implementation
5505         * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
5506         in Rectangle constructor.
5507         * java/awt/image/Raster.java (toString): Added method. 
5508         * java/awt/image/SampleModel.java (<init>): Added error cause
5509         information to thrown exception.
5510         * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
5511         New method.
5512         (setDataElements): New method.
5513         (setPixels): New method.
5514         (toString): New method.
5515
5516 2004-04-20  Sascha Brawer  <brawer@dandelis.ch>
5517
5518         * java/awt/image/ComponentColorModel.java
5519         (createCompatibleSampleModel): Return PixelInterleavedSampleModel
5520         for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
5521         Mauve tests on this method. Improved documentation.
5522
5523 2004-04-20  Michael Koch  <konqueror@gmx.de>
5524
5525         * javax/swing/JLayeredPane.java,
5526         javax/swing/plaf/BorderUIResource.java,
5527         javax/swing/plaf/ComponentUI.java,
5528         javax/swing/undo/CompoundEdit.java,
5529         javax/swing/undo/StateEdit.java:
5530         Fixed HTML tags in javadocs all over.
5531
5532 2004-04-20  Michael Koch  <konqueror@gmx.de>
5533
5534         * javax/print/attribute/EnumSyntax.java
5535         (getOffset): Made protected.
5536         * javax/print/attribute/HashAttributeSet.java
5537         (HashAttributeSet): Likewise.
5538         * javax/print/attribute/ResolutionSyntax.java
5539         (getFeedResolution): Fixed typo in exception name.
5540         (getCrossFeedResolution): Likewise.
5541         * javax/print/attribute/SetOfIntegerSyntax.java
5542         (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
5543         * javax/print/attribute/TextSyntax.java
5544         (TextSyntax): Handle locale correctly.
5545         (hashCode): Calc better hashcode value.
5546         (equals): Fixed @return tag.
5547         (toString): New method.
5548
5549 2004-04-20  Michael Koch  <konqueror@gmx.de>
5550
5551         * gnu/java/nio/FileLockImpl.java
5552         (static): Removed, not needed anymore.
5553         * gnu/java/nio/channels/FileChannelImpl.java
5554         (FileChannelImpl): Made final.
5555         (mode): Made private.
5556         (READ, WRITE, APPEND): Made public.
5557         (EXCL, SYNC, DSYNC): Likewise.
5558         (static): Load native JNI library, when needed.
5559         (length): Unused, removed.
5560         (available): Made public.
5561         (implPosition): Throws IOException.
5562         (seek): Likewise.
5563         (implTruncate): Likewise.
5564         (unlock): Likewise.
5565         (lock): Likewise.
5566
5567 2004-04-20  Michael Koch  <konqueror@gmx.de>
5568
5569         * java/awt/AWTPermission.java,
5570         java/awt/Component.java,
5571         java/awt/ComponentOrientation.java,,
5572         java/awt/Dialog.java,
5573         java/awt/FontMetrics.java,
5574         java/awt/Graphics.java,
5575         java/awt/datatransfer/DataFlavor.java,
5576         java/beans/Introspector.java,
5577         java/beans/PropertyEditor.java,
5578         java/beans/PropertyEditorManager.java,
5579         java/beans/beancontext/BeanContextServiceProvider.java:
5580         Fixed HTML tags in javadocs all over.
5581
5582 2004-04-20  Mark Wielaard  <mark@klomp.org>
5583
5584         * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
5585         MissingResourceException is thrown.
5586         * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
5587         null when a MissingResourceException is thrown. Should never happen.
5588
5589 2004-04-20  Sascha Brawer  <brawer@dandelis.ch>
5590
5591         * java/awt/image/DataBufferShort.java,
5592         java/awt/image/DataBufferFloat.java,
5593         java/awt/image/DataBufferDouble.java,
5594         java/awt/image/PixelInterleavedSampleModel.java: New files.
5595         * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
5596         getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
5597
5598 2004-04-20  Michael Koch  <konqueror@gmx.de>
5599
5600         * Makefile.am (java_source_files): Added
5601         java/awt/image/DataBufferDouble.java,
5602         java/awt/image/DataBufferFloat.java,
5603         java/awt/image/DataBufferShort.java and
5604         java/awt/image/PixelInterleavedSampleModel.java.
5605         * Makefile.in: Regenerated.
5606
5607 2004-04-19  Bryce McKinlay  <mckinlay@redhat.com>
5608  
5609         * gcj/cni.h (JvAllocObject): Remove these obsolete, 
5610         undocumented CNI calls.
5611         * include/java-interp.h (_Jv_InterpClass): No longer
5612         extends java.lang.Class.
5613         * java/lang/Class.h (Class): Add new field `aux_info'.
5614         * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
5615         * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
5616         Use Class->aux_info instead.
5617         * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
5618         * resolve.cc: Remove Class<->_Jv_InterpClass casts.
5619         Use Class->aux_info instead.
5620         * java/io/natObjectInputStream.cc (allocateObject): Use
5621         _Jv_AllocObject.
5622         * java/lang/natClass.cc (newInstance): Likewise.
5623         * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
5624         * java/lang/natObject.cc (clone): Likewise.
5625         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
5626         * java/lang/natVMClassLoader.cc (defineClass): Don't use
5627         JvAllocObject. Allocate klass->aux_info here for interpreted
5628         class.
5629         
5630 2004-04-17  Mark Wielaard  <mark@klomp.org>
5631
5632         * javax/swing/JToggleButton.java (ToggleButtonModel):
5633         Make public static inner class.
5634         * javax/swing/JTabbedPane.java (setComponentAt):
5635         Call Page.setComponent().
5636         (SCROLL_TAB_LAYOUT): Make public, value is 1.
5637         (WRAP_TAB_LAYOUT): Make public, value is 0.
5638         * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
5639         Make private static inner class.
5640
5641 2004-04-16  Bryce McKinlay  <mckinlay@redhat.com>
5642
5643         * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
5644         arguments to match new signature. Remove FIXME comments.
5645
5646 2004-04-09  Thomas Fitzsimmons  <fitzsim@redhat.com>
5647
5648         * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
5649         Remove method.
5650         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
5651         unused code.
5652
5653 2004-04-02  Olga Rodimina  <rodimina@redhat.com>
5654
5655         * Makefile.am: Added new file.
5656         * Makefile.in: Regenerate.
5657         * javax/swing/ImageIcon.java: 
5658         (ImageIcon(file)): set description of the icon 
5659         to the file name
5660         * javax/swing/JCheckBoxMenuItem.java:
5661         Mostly Implemented. Work in progress.
5662         * javax/swing/JRadioButtonMenuItem.java:
5663         Reimplement constructors to use JToggleButtonModel.
5664         * javax/swing/plaf/basic/BasicIconFactory.java:
5665         (getCheckBoxMenuItemIcon): return check box
5666         icon.
5667         * javax/swing/plaf/basic/BasicMenuItemUI.java:
5668         paint menu item selected only when it is armed and 
5669         pressed. 
5670  
5671 2004-04-02  David Jee  <djee@redhat.com>
5672
5673         * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5674         (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
5675         * java/awt/Component.java
5676         (add): Set the parent of the popup as this component.
5677         * java/awt/PopupMenu.java
5678         (addNotify): Create popup menu when peer is null.
5679         (show): Call addNotify() if peer is null.
5680         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5681         (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
5682         argument for gtk_menu_popup() as zero. This causes the popup menu to
5683         respond to any mouse button.
5684
5685 2004-03-31  Olga Rodimina  <rodimina@redhat.com>
5686
5687         * Makefile.am: Added new file.
5688         * Makefile.in: Regenerate.
5689         * javax/swing/JRadioButtonMenuItem.java:
5690         Implemented.
5691         * javax/swing/plaf/basic/BasicIconFactory.java:
5692         (getRadioButtonMenuItemIcon): Return
5693         radio button icon.
5694         * javax/swing/plaf/basic/BasicMenuItemUI.java:
5695         (getPreferredSize): Add size of checkIcon if it
5696         exists.
5697         (installDefaults): Don't initialize checkIcon.
5698         It's value will be set in subclasses. 
5699         (uninstallDefaults): remove uninstallation of 
5700         checkIcon.
5701         (paint): Moved code to paintMenuItem().
5702         (paintMenuItem): Implemented.
5703         * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
5704         UI delegate for JRadioButtonMenuItem.
5705         
5706 2004-03-29  Olga Rodimina  <rodimina@redhat.com>
5707
5708         * javax/swing/plaf/basic/BasicMenuItemUI.java:
5709         Corrected position of the accelerator.
5710
5711 2004-03-29  Olga Rodimina  <rodimina@redhat.com>
5712
5713         * Makefile.am: Added new file. 
5714         * Makefile.in: Regenerate.
5715         * javax/swing/JMenuItem.java: Partly 
5716         implemented. Work in progress
5717         * javax/swing/plaf/basic/BasicLookAndFeel.java:
5718         Changed default value of acceleratorDelimiter.
5719         * javax/swing/plaf/basic/BasicMenuItemUI.java:
5720         New class. Partly implemented.
5721                 
5722 2004-03-26  Mark Wielaard  <mark@klomp.org>
5723
5724         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
5725         (item_activate): Declare label before use.
5726         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5727         (gtkSetFont): Removed unused variable label.
5728         (addExposeFilter): Declare variables before use.
5729         (removeExposeFilter): Likewise.
5730         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
5731         (ok_clicked): Declare str_fileName before use.
5732
5733 2004-03-26  David Jee  <djee@redhat.com>
5734
5735         * gnu/java/awt/peer/gtk/GtkMenuPeer.java
5736         (addSeparator): Remove.
5737         * java/awt/Menu.java
5738         (separator): Remove static final MenuItem field.
5739         (separatorLabel): New static final String field.
5740         (addSeparator): Do not use peer method; use add(MenuItem) instead.
5741         Use separatorLabel to denote that it is a separator.
5742         (insertSeparator): Create a new MenuItem with separatorLabel, instead
5743         of reusing the static separator instance, because a MenuItem instance
5744         can't be added more than once without being cloned.
5745         * java/awt/peer/MenuPeer.java
5746         (addSeparator): Remove from interface.
5747
5748 2004-03-26  David Jee  <djee@redhat.com>
5749
5750         * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5751         (connectSignals): New native method declaration.
5752         (GtkMenuItemPeer): Connect signals if the parent is a Menu.
5753         * java/awt/MenuItem.java
5754         (getActionCommand): Return the label if the action command is not set.
5755         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
5756         (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
5757         gtk_menu_shell_append().
5758         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
5759         (item_activate): Fix argument type.
5760         (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
5761         signal here.
5762         (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
5763         method.
5764         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
5765         (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
5766         given. Add the menu widget's top-level GtkWindow to the global window
5767         group, so it can grab the pointer.
5768         (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
5769         gtk_menu_shell_append().
5770
5771 2004-03-23  Graydon Hoare  <graydon@redhat.com>
5772
5773         * java/text/AttributedString.java 
5774         (addAttribute): Fix off-by-one.
5775         (getIterator): Likewise.        
5776         * java/text/AttributedStringIterator.java 
5777         (getRunLimit): Correct logic.
5778         (getRunStart): Likewise.
5779         (getAttribute): Fix inequality.
5780         (getAttributes): Likewise.
5781         * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
5782
5783 2004-03-23  Kim Ho  <kho@redhat.com>
5784
5785         * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5786         (calculateSizes): Return real width and height.
5787
5788 2004-03-23  Kim Ho  <kho@redhat.com>
5789
5790         * javax/swing/plaf/basic/BasicTabbedPaneUI.java
5791         (calculateTabRects): Set the selectedRun before
5792         trying to rotate tabs.
5793
5794 2004-03-23  Kim Ho  <kho@redhat.com>
5795
5796         * Makefile.am: New file
5797         * Makefile.in: Regenerate
5798         * java/awt/Graphics.java: (drawRect):
5799         Draw to the correct point.
5800         * javax/swing/DefaultSingleSelectionModel.java
5801         (isSelected): Return true if the selected index
5802         is not -1.
5803         * javax/swing/JLabel.java: Do not change mnemonic
5804         index if text is null.
5805         * javax/swing/JProgressBar.java: Use JComponent's
5806         EventListenerList.
5807         * javax/swing/JScrollBar.java: Ditto.
5808         * javax/swing/JSlider.java: Ditto.
5809         * javax/swing/JTabbedPane.java: Reimplement.
5810         * javax/swing/plaf/basic/BasicLookAndFeel.java:
5811         Add defaults for TabbedPane.
5812         * javax/swing/plaf/basic/BasicArrowButton.java:
5813         Implement
5814         * javax/swing/plaf/basic/BasicProgressBarUI.java:
5815         (paintDeterminate): Don't paint String if it's
5816         empty.
5817         (paintIndeterminate): ditto.
5818         * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5819         Reimplement.
5820
5821 2004-03-19  Michael Koch  <konqueror@gmx.de>
5822
5823         * java/awt/image/AffineTransformOp.java
5824         (AffineTransformOp): Made public.
5825         * javax/swing/JComponent.java
5826         (listenerList): Made protected.
5827         (accessibleContext): Likewise.
5828         * javax/swing/JList.java
5829         (valueChanged): Dont use internal fields of ListSelectionEvent.
5830         * javax/swing/JViewport.java
5831         (getView): Dont use internal fields of Component.
5832         (addImpl): Likewise.
5833         * javax/swing/Timer.java
5834         (isRunning): Made public.
5835         (start): Likewise.
5836         (stop): Likewise.
5837         * javax/swing/UIDefaults.java
5838         (getInt): Made public.
5839         * javax/swing/plaf/basic/BasicListUI.java
5840         (mousePressed): Dont use internal fields of MouseEvent.
5841         (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5842         * javax/swing/plaf/basic/BasicScrollBarUI.java
5843         (arrowIcon): Made static.
5844         * javax/swing/plaf/basic/BasicViewportUI.java
5845         (stateChanged): Dont use internal field on ChangeEvent.
5846         * javax/swing/text/JTextComponent.java
5847         (getUI): Call UIManager.getUI().
5848         (updateUI): Use getUI().
5849
5850 2004-03-19  Graydon Hoare  <graydon@redhat.com>
5851
5852         * javax/swing/JComponent.java: Turn off double buffer by default.
5853         * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
5854         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
5855         (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable): 
5856         Use cairo to copy areas.
5857         (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
5858         Initialize and set clip region.
5859
5860 2004-03-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
5861
5862         * java/applet/Applet.java (preferredSize): Override deprecated
5863         variant of getPreferredSize.
5864         (minimumSize): Override deprecated variant of getMinimumSize.
5865
5866 2004-03-15  Olga Rodimina  <rodimina@redhat.com>
5867
5868         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5869         (drawImage(img,xform,bgcolor,obs)): New Method.
5870         Helper function that every drawImage method will
5871         use.
5872         (drawRaster): Added new parameter, bgcolor. All
5873         transparent pixels are changed to bgcolor before 
5874         image is drawn.
5875         (drawRenderedImage): Fixed to use changed drawRaster().
5876         (drawImage(image,xform,obs): Fixed to use new helper function 
5877         (drawImage(image,op,x,y)): Ditto.
5878         (drawImage (img,x,y,observer)): Ditto.
5879         ((PainterThread) bgcolor): New Field.
5880         ((PainterThread) (setPixels)): Changed all transparent pixels 
5881         to bgcolor.     
5882         (drawImage(img,x,y,width,height,bgcolor,observer)): 
5883         Fixed FIXME - all the transparent pixels are 
5884         changed to the specified bgcolor. 
5885         (drawImage(img, x, y, width, height, observer): Changed to 
5886         use function above.
5887         (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)): 
5888         Fixed FIXME- changed all transparent pixels to bgcolor.
5889         (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
5890         Changed to use function above. 
5891
5892 2004-03-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
5893
5894         * java/applet/Applet.java (dimensions): New field.
5895         (getDimensions): New method.
5896         (getPreferredSize): Call getDimensions.
5897         (getMinimumSize): Likewise.
5898
5899 2004-03-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
5900
5901         * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
5902         * jni/classpath/jnilink.c: Likewise.
5903
5904         * java/applet/Applet.java (getPreferredSize): New method.
5905         (getMinimumSize): New method.
5906
5907 2004-04-15  Bryce McKinlay  <mckinlay@redhat.com>
5908
5909         * prims.cc (_Jv_AllocObject): Remove `size' argument.
5910         (_Jv_AllocObjectNoFinalizer): Likewise.
5911         (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
5912         (_Jv_AllocPtrFreeObject): Likewise.
5913         (_Jv_AllocString): Moved from natString.cc. Call collector interface
5914         directly even in the JVMPI case.        
5915         * gcj/cni.h (JvAllocObject): Remove `size' argument from 
5916         _Jv_AllocObject calls.
5917         * gcj/javaprims.h: Update prototypes.
5918         * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
5919         * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
5920         * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
5921
5922 2004-04-14  Andrew Haley  <aph@redhat.com>
5923             Bryce McKinlay  <mckinlay@redhat.com>
5924
5925         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
5926         _Jv_LookupInterfaceMethodIdx for calls to interfaces.
5927         * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
5928
5929         * testsuite/libjava.lang/InvokeInterface.java: New file.
5930         * testsuite/libjava.lang/InvokeInterface.out: New file.
5931
5932 2004-04-09  Ranjit Mathew  <rmathew@hotmail.com>
5933         
5934         * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
5935         modified lookup().
5936         * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
5937         StackTraceElement directly.
5938         (newElement): New native helper method to create StackTraceElement
5939         bypassing Java access control.
5940         (createStackTraceElement): Use newElement() instead of directly
5941         calling StackTraceElement's constructor.
5942         * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
5943
5944 2004-04-01  Michael Koch  <konqueror@gmx.de>
5945
5946         * java/lang/SecurityManager.java
5947         (checkAwtEventQueueAccess): Implemented.
5948
5949 2004-04-01  Gary Benson  <gbenson@redhat.com>
5950
5951         * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
5952         (_Jv_SearchMethodInClass): Likewise.
5953
5954 2004-03-26  Peter Moon  <peterm@miraculum.com>
5955
5956         * java/text/NumberFormat.java: Fix spelling of setCurrency
5957         method.
5958
5959 2004-03-21  Anthony Green  <green@redhat.com>
5960
5961         * java/lang/natClass.cc (getClassLoader): Circumvent infinite
5962         recursion when searching for the system ClassLoader.
5963
5964 2004-03-21  Ito Kazumitsu <kaz@maczuka.gcd.org>
5965
5966         * java/net/ServerSocket.java
5967         (accept): Close the socket when error occured.
5968
5969 2004-03-21  Jeroen Frijters  <jeroen@frijters.net>
5970
5971         * java/net/URI.java (parseURI): Added unquoting.
5972         (unquote): New method.
5973         (quoteAuthority): Implemented.
5974         (quote(String,String)): New method.
5975         (quotePath): Implemented.
5976         (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
5977         (getSchemeSpecificPart): Removed FIXME comment.
5978         (getRawAuthority): Return new rawAuthority field.
5979         (getAuthority): Removed FIXME comment.
5980         (getRawUserInfo): Return new rawUserInfo field.
5981         (getUserInfo): Removed FIXME comment.
5982         (getRawPath): Return new rawPath field.
5983         (getPath): Removed FIXME comment.
5984         (getRawQuery): Return new rawQuery field.
5985         (getQuery): Removed FIXME comment.
5986         (getRawFragment): Return new rawFragment field.
5987         (getFragment): Removed FIXME comment.
5988
5989 2004-03-20  Michael Koch  <konqueror@gmx.de>
5990
5991         * java/net/URLConnection.java: Merged copyright year with classpath.
5992
5993 2004-03-20  Norbert Frese  <postfach@nfrese.net>
5994
5995         * gnu/java/rmi/server/RMIIncomingThread.java: New file.
5996         * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
5997         Create a new RMIObjectOuputStream/RMIObjectInputStream for every
5998         rmi-message.
5999         (getObjectInputStream): Return object reference, throw IOException if null.
6000         (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
6001         (getObjectOutputStream): Return object reference, throw IOException if null.
6002         (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
6003         * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
6004         (UnicastConnectionManager): Throw RemoteException if port is not available.
6005         (getInstance): Throw RemoteException.
6006         (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
6007         * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
6008         Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
6009         Collect Exceptions which are returned by a rmi-call and fix void returns.
6010         * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
6011         Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
6012         * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
6013         (dispatch): Answer ping messages which are sent by other java implementions.
6014         (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
6015         for every rmi-message and fix void return problems.
6016         * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
6017         (UnicastServerRef): Throw RemoteException.
6018         (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
6019         In some situations it is necessary to export a subclass of the class which has the _Stub.
6020         For instance when the class with has the _Stub is abstract.
6021         (findStubSkelClass): New method which looks for the class which has the _Stub.
6022         (getClientHost): Implementated.
6023         * gcc/libjava/java/rmi/server/RemoteServer.java
6024         (getClientHost): Implementated.
6025         * gcc/libjava/Makefile.am (rmi_java_source_files):
6026         Added gnu/java/rmi/server/RMIIncomingThread.java.
6027         * Makefile.in: Regenerated.
6028
6029 2004-03-20  Michael Koch  <konqueror@gmx.de>
6030
6031         * java/net/InetAddress.java
6032         (getLocalHostname): Added javadoc.
6033
6034 2004-03-19  Per Bothner  <per@bothner.com>
6035
6036         * configure.in: FILE variable  overrides FLATFORM when linking
6037         natFileChannelXXX.cc.
6038
6039         * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write):  Restored.
6040         (write):  Call diag_write, as in old natFileDescriptorEcos.cc.
6041
6042 2004-03-19  Per Bothner  <per@bothner.com>
6043
6044         * gnu/gcj/convert/Input_UnicodeBig.java:  New class..
6045         * gnu/gcj/convert/Input_UnicodeLittle.java:  New class.
6046         * Makefile.am:  Update accordingly.
6047         * gnu/gcj/convert/IOConverter.java:  Define "utf-16le" and "utf16be"
6048         as aliases for UnicodeLittle and UnicodeBig.
6049
6050 2004-03-20  Mark Wielaard  <mark@klomp.org>
6051
6052         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6053         (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
6054         Don't access ws when it is null.
6055         (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
6056         Likewise.
6057
6058 2004-03-19  Jeroen Frijters  <jeroen@frijters.net>
6059
6060         * java/lang/ThreadGroup.java (list): Changed print to println.
6061
6062 2004-03-19  Mark Wielaard  <mark@klomp.org>
6063
6064         * java/io/BufferedReader.java: Use &lt;=, not &lt;&eq; to make gjdoc
6065         happy.
6066
6067 2004-02-10  Randolph Chung  <tausq@debian.org>
6068  
6069         * configure.in: Build java for hppa target.
6070         * configure: Regenerate.
6071         * libjava/configure.host (hppa-*): Add target.
6072         * libjava/sysdeps/pa/lock.h: New file.
6073
6074 2004-03-19  Mark Wielaard  <mark@klomp.org>
6075
6076         Reported by Stephen Crawley
6077         * java/io/FilePermission.java (implies): Use String.length() -1 to
6078         access last char of String.
6079
6080 2004-03-19  Michael Koch  <konqueror@gmx.de>
6081
6082         * java/awt/image/AffineTransformOp.java
6083         (AffineTransformOp): Made public.
6084         * javax/swing/JComponent.java
6085         (listenerList): Made protected.
6086         (accessibleContext): Likewise.
6087         * javax/swing/JList.java
6088         (valueChanged): Dont use internal fields of ListSelectionEvent.
6089         * javax/swing/JViewport.java
6090         (getView): Dont use internal fields of Component.
6091         (addImpl): Likewise.
6092         * javax/swing/Timer.java
6093         (isRunning): Made public.
6094         (start): Likewise.
6095         (stop): Likewise.
6096         * javax/swing/UIDefaults.java
6097         (getInt): Made public.
6098         * javax/swing/plaf/basic/BasicListUI.java
6099         (mousePressed): Dont use internal fields of MouseEvent.
6100         (propertyChanged): Dont use internal fields of PropertyChangeEvent.
6101         * javax/swing/plaf/basic/BasicScrollBarUI.java
6102         (arrowIcon): Made static.
6103         * javax/swing/plaf/basic/BasicViewportUI.java
6104         (stateChanged): Dont use internal field on ChangeEvent.
6105         * javax/swing/text/JTextComponent.java
6106         (getUI): Call UIManager.getUI().
6107         (updateUI): Use getUI().
6108
6109 2004-03-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6110
6111         * verify.cc: Undef PC.
6112
6113 2004-03-18  Michael Koch  <konqueror@gmx.de>
6114
6115         * java/nio/channels/spi/AbstractSelectableChannel.java
6116         (keys): Initialize at declaration.
6117         (locate): keys cant be null.
6118         (add): Removed.
6119         (addSelectionKey): New method.
6120         (removeSelectionKey): New method.
6121         * java/nio/channels/spi/AbstractSelectionKey.java
6122         (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
6123         * java/nio/channels/spi/AbstractSelector.java
6124         (provider): Javadoc added.
6125         (cancelledKeys): Javadoc added.
6126         (cancelKey): Javadoc added, add key to cancelledKeys.
6127         (deregister): Implemented.
6128
6129 2004-03-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6130
6131         * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
6132         MAP_FAILED to void *.
6133
6134 2004-03-12  Graydon Hoare  <graydon@redhat.com>
6135
6136         * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
6137         * javax/swing/JComponent.java (paint): Use persistent double buffer. 
6138         * javax/swing/JList.java (ListListener): Revalidate on changes.
6139         * javax/swing/JScrollPane.java: Reimplement.
6140         * javax/swing/JViewport.java: Reimplement.
6141         * javax/swing/ScrollPaneLayout.java: Reimplement.
6142         * javax/swing/ViewportLayout.java: Tidy up.
6143         * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
6144         * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
6145         * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
6146         * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
6147         backing store only.
6148
6149 2004-03-11  Thomas Fitzsimmons  <fitzsim@redhat.com>
6150
6151         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6152         (window_wm_protocols_filter): New function.
6153         (window_focus_in_cb): Remove function.
6154         (window_focus_out_cb): Likewise.
6155         (window_focus_or_active_state_change_cb): New function.
6156         (create): Add filter that removes WM_TAKE_FOCUS client messages.
6157         (connectSignals): Don't attach handlers to focus-in-event or
6158         focus-out-event signals.  Handle notify signal.
6159
6160 2004-03-11  David Jee  <djee@redhat.com>
6161
6162         * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6163         (gtkSetLabel): New native method declaration.
6164         (setLabel): Use gtkSetLabel.
6165         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6166         (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
6167
6168 2004-03-10  Thomas Fitzsimmons  <fitzsim@redhat.com>
6169
6170         * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
6171         black when color argument is null.
6172
6173 2004-03-10  Kim Ho  <kho@redhat.com>
6174
6175         * java/awt/Container.java: Remove check
6176         for drag events.
6177
6178 2004-03-10  Kim Ho  <kho@redhat.com>
6179
6180         * java/awt/Container.java: (visitChild):
6181         Remove candidate clip. Use the component
6182         clip to intersect.
6183         * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6184         (handleEvent): Use the PaintEvent's clip.
6185
6186 2004-03-10  Kim Ho  <kho@redhat.com>
6187
6188         * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6189         (handleEvent): Don't set the clip for the
6190         Graphics object.
6191
6192 2004-03-09  Graydon Hoare  <graydon@redhat.com>
6193
6194         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c: 
6195         Fix double <-> fixed macros, reset font transform.
6196         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
6197         Likewise.
6198
6199 2004-03-09  Kim Ho  <kho@redhat.com>
6200
6201         * java/awt/Container.java: (visitChild): Move
6202         the x and y coordinate of the component rectangle
6203         to correct position.
6204         (handleEvent): Forward drag events to the pressed
6205         component.
6206         * javax/swing/plaf/basic/BasicScrollBarUI.java:
6207         Fix comments.
6208         (ArrowButtonListener::mousePressed): Stop the
6209         existing timer.
6210         (mouseDragged): Implement.
6211         (TrackListener::mousePressed): Only react if
6212         the press doesn't occur on the thumb, otherwise
6213         just set the offset.
6214         (TrackListener::mouseReleased): Unset the isAdjusting
6215         value.
6216         (createIncreaseIcon): Switch icon.
6217         (createDecreaseIcon): Switch icon.
6218         (calculatePreferredSize): Use width.
6219         (getThumbBounds): Use the top as the lower value.
6220         (layoutVScrollBar): Switch the button locations.
6221         (paintIncreaseHighlight): Paint correct side of thumb.
6222         (paintDecreaseHighlight): ditto.
6223         (valueForYPosition): Use top as the lower value.
6224         * javax/swing/plaf/basic/BasicSliderUI.java:
6225         Fix comments.
6226         (mouseDragged): Implement.
6227         (mousePressed): Only react when the thumb isn't
6228         pressed, otherwise just set offset.
6229         (mouseReleased): Handle a release of the thumb.
6230         (scrollDueToClickInTrack): Stop the timer first.
6231         * javax/swing/JProgressBar.java:
6232         (setString): Fix change condition.
6233         * javax/swing/JSeparator.java:
6234         Remove println's.
6235
6236 2004-03-08  David Jee  <djee@redhat.com>
6237
6238         * java/awt/image/AffineTransformOp.java:
6239         (filter): Use Graphics2D interface instead of directly using the
6240         GdkGraphics2D peer.
6241
6242 2004-03-05  David Jee  <djee@redhat.com>
6243
6244         * gnu/java/awt/peer/gtk/GtkButtonPeer.java
6245         (handleEvent): Action events are generated upon MOUSE_RELEASED.
6246         * java/awt/Container.java
6247         (acquireComponentForMouseEvent): Fixed.
6248         (handleEvent): Fixed.
6249         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6250         (state_to_awt_mods_with_button_states): New method.
6251         (pre_event_handler): Fixed mouse event generation.
6252
6253 2004-03-05  Olga Rodimina  <rodimina@redhat.com>
6254
6255         gnu/java/awt/peer/gtk/GdkGraphics2D.java
6256         (GdkGraphics2D (BufferedImage)): Initialize
6257         pixmap associated with specified BufferedImage.
6258         (setPaint): Changed implementation of Texture
6259         Paint to use AffineTransformOp.
6260         * java/awt/image/AffineTransformOp.java
6261         (createCompatibleDestRaster): Throw RasterFormatException 
6262         if resulting width or height of raster is 0.
6263
6264 2004-03-04  Olga Rodimina  <rodimina@redhat.com>
6265
6266         * java/awt/image/AffineTransformOp.java:
6267         Removed unnecessary field interpolationType.
6268         Formatted some of the lines to be consistent with 
6269         the GNU style.
6270         (AffineTransformOp): Create new RenderingHints 
6271         containing specified interpolation type.
6272         (createCompatibleDestImage): Implemented.
6273         (createCompatibleDestRaster): Implemented.
6274         (filter): Implemented.
6275         (getBounds2D(BufferedImage)): Implemented.
6276         (getBounds2D(Raster)): Implemented.
6277         (getInterpolationType): Get interpolation value from 
6278         rendering hints.
6279
6280 2004-03-04  David Jee  <djee@redhat.com>
6281
6282         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6283         (setFont): Check if child peers are null.
6284
6285 2004-03-04  Graydon Hoare  <graydon@redhat.com>
6286
6287         * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
6288         .libs in -L option.
6289         (libjava_arguments): Add new libraries to argument list.
6290
6291 2004-03-02  Olga Rodimina  <rodimina@redhat.com>
6292
6293         * Makefile.am: Added java/awt/image/AffineTransformOp.java
6294         * Makefile.in: Re-generated.
6295         * java/awt/image/AffineTransformOp.java: New Class.
6296
6297 2004-03-01  Olga Rodimina  <rodimina@redhat.com>
6298
6299         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6300         (setPaint): Interpret correctly TexturePaint's
6301         anchor rectangle.
6302         (drawImage): Fixed scale factors of the affine
6303         transform.
6304
6305 2004-02-27  David Jee  <djee@redhat.com>
6306
6307         * gnu/java/awt/peer/gtk/GdkGraphics.java
6308         (GdkGraphics(Component)): Inherit font from component.
6309         (drawString): Use font style.
6310         * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6311         (gtkSetFont): New native method declaration.
6312         (setFont): New method.
6313         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6314         (gtkSetFont): New native method declaration.
6315         (setFont): Call new native method gtkSetFont.
6316         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6317         (setFont): For all child components who do not their fonts set,
6318         set their peers' fonts with this container's font.
6319         * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
6320         Move all native method declarations to the top for readability.
6321         (gtkSetFont): New native method declaration.
6322         (setFont): New method.
6323         * java/awt/Component.java
6324         (setFont): Invalidate after setting the font.
6325         * java/awt/Container.java
6326         (invalidateTree): New method.
6327         (setFont): Invalidate the container tree after setting the font.
6328         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
6329         (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
6330         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6331         (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
6332         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6333         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
6334         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
6335         (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
6336
6337 2004-02-27  Olga Rodimina <rodimina@redhat.com>
6338
6339         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6340         (updateBufferedImage): New helper function.
6341         Updates BufferedImage in memory if it was changed.
6342         (draw): changed to update BufferedImage in memory after
6343         this drawing operation
6344         (fill): Ditto.
6345         (draw3DRect): Ditto.
6346         (fill3DRect): Ditto.
6347         (clearRect): Ditto.
6348         (drawRaster): Ditto.
6349         (drawImage) : Ditto. Update only in case of GtkOffScreenImage with 
6350         no affine transformation.
6351         (drawGlyphVector): Ditto.
6352
6353 2004-02-26  Olga Rodimina <rodimina@redhat.com>
6354
6355         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6356         (isBufferedImageGraphics): New Helper function. 
6357         Returns true if this graphics2d can be used to draw 
6358         into buffered image and false otherwise.
6359         (updateImagePixels): New Helper function. 
6360         Updates pixels in the BufferedImage.
6361         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
6362         (getImagePixels): New function. Returns pixels
6363         of the buffered image associated with 
6364         this Graphics2D.
6365
6366 2004-02-26  David Jee  <djee@redhat.com>
6367
6368         * java/awt/BorderLayout.java
6369         (layoutContainer): Fix width and height calculations to ensure
6370         that they're non-negative.
6371         * java/awt/Component.java
6372         (setBackground): If c is null, inherit from closest ancestor whose
6373         background color is set.
6374
6375 2004-02-26  Kim Ho  <kho@redhat.com>
6376
6377         * Makefile.am: Add new files.
6378         * Makefile.in: Re-generate.
6379         * javax/swing/JProgressBar.java: 
6380         (JProgressBar(int, int int)): Throw
6381         IllegalArgumentException if orientation is
6382         invalid.
6383         (JProgressBar(BoundedRangeModel)): Create
6384         ChangeListener and register it. UpdateUI.
6385         (getChangeListeners): Implement.
6386         (setModel): Reset ChangeListener.
6387         * javax/swing/JScrollBar.java: Implement.
6388         * javax/swing/JSeparator.java: Implement.
6389         * javax/swing/JSlider.java:
6390         (JSlider(int, int, int, int)): Throw 
6391         IllegalArgumentException if orientation
6392         is invalid.
6393         (getChangeListeners): Fix method name.
6394         * javax/swing/SwingUtilities.java:
6395         (layoutCompoundLabel): If there is no text,
6396         set the text rectangle dimensions to 0.
6397         * javax/swing/plaf/basic/BasicButtonUI.java:
6398         (paint): If there is no text, don't paint it.
6399         * javax/swing/plaf/basic/BasicScrollBarUI.java:
6400         Implement.
6401         * javax/swing/plaf/basic/BasicSeparatorUI.java:
6402         Implement.
6403         * javax/swing/plaf/basic/BasicSliderUI.java: 
6404         (propertyChange): If the model changes, change
6405         the listeners accordingly.
6406
6407 2004-02-25  Graydon Hoare  <graydon@redhat.com>
6408
6409         * javax/swing/AbstractButton.java: Add "final" qualifiers.
6410         * javax/swing/JList.java: Reimplement.
6411         * javax/swing/DefaultListSelectionModel.java: Reimplement.
6412         * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
6413         * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
6414         * javax/swing/ListModel.java: Javadoc.
6415         * javax/swing/ListSelectionModel.java: Add missing methods.
6416         * javax/swing/AbstractListModel.java: Javadoc and corrections.
6417         * javax/swing/DefaultListModel.java: Javadoc and corrections.
6418         * javax/swing/ListModel.java: Javadoc and corrections.
6419         * javax/swing/DefaultListCellRenderer.java: Minor tidying.
6420
6421 2004-02-25  David Jee  <djee@redhat.com>
6422
6423         * gnu/java/awt/peer/gtk/GtkFontPeer.java
6424         (GtkFontPeer): Change default size to 12.
6425         * gnu/java/awt/peer/gtk/GtkToolkit.java
6426         (getFontPeer): Change default size to 12.
6427         (getClasspathFontPeer): Likewise. Set default name to "Default".
6428         * java/awt/Font.java
6429         (Font(Map)): Call Font(String,Map).
6430         (Font(String,Map)): If attrs is null, initialize it as an empty
6431         HashMap, which will ensure that the Font will get default attributes.
6432
6433 2004-02-25  David Jee  <djee@redhat.com>
6434
6435         * gnu/java/awt/peer/gtk/GtkFontPeer.java
6436         (GtkFontPeer(String,int)): Call the new constructor with size 1.
6437         (GtkFontPeer(String,int,int)): New constructor with size attribute.
6438         * gnu/java/awt/peer/gtk/GtkToolkit.java
6439         (getFontPeer(String,int)): Call the new overload method with size 1.
6440         (getFontPeer(String,int,int)): New method. Overloaded with size
6441         attribute.
6442         (getClasspathFontPeer): Set the size of the font.
6443
6444 2004-02-24  Olga Rodimina  <rodimina@redhat.com>
6445
6446         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6447         (bimage): New field.
6448         (GdkGraphics2D): New Constructor. Constructs Graphics
6449         object that can be used to draw into the Buffered Image.
6450         * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6451         (GdkGraphicsEnvironment): Fixed to include public 
6452         keyword.
6453         (createGraphics): Implemented.
6454         * gnu/java/awt/peer/gtk/GtkToolkit.java
6455         (getLocalGraphicsEnvironment): Implemented.
6456         * java/awt/GraphicsEnvironment.java:
6457         (getLocalGraphicsEnvironment): Implemented.
6458         * java/awt/image/BufferedImage.java:
6459         (createGraphics): Implemented.
6460                 
6461 2004-02-24  David Jee  <djee@redhat.com>
6462
6463         * java/awt/Component.java
6464         (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
6465         * java/awt/Container.java
6466         (addNotifyContainerChildren): Fix event enabling.
6467
6468 2004-02-23  Olga Rodimina  <rodimina@redhat.com>
6469
6470         * Makefile.am: Added 
6471         gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
6472         * Makefile.in: Re-generated.
6473         * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6474         New Class. 
6475         
6476 2004-02-19  Kim Ho  <kho@redhat.com>
6477
6478         * Makefile.am: Add BasicProgressBarUI
6479         * Makefile.in: Regenerate.
6480         * javax/swing/JProgressBar.java: 
6481         Re-implement.
6482         * javax/swing/plaf/basic/BasicLookAndFeel.java
6483         Add constants for JProgressBar.
6484         * javax/swing/plaf/basic/BasicProgressBarUI.java
6485         Implement.
6486         * javax/swing/plaf/basic/BasicSliderUI.java
6487         Change comments.
6488         (calculateGeometry): New method
6489         (paint): Remove unnecessary size calculations.
6490
6491 2004-02-18  Olga Rodimina  <rodimina@redhat.com>
6492
6493         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6494         (drawRaster): Fixed small error that caused
6495         imageToUser transformation to be set incorrectly.
6496         (toString): Implemented.
6497
6498 2004-02-18  David Jee  <djee@redhat.com>
6499
6500         * java/awt/CardLayout.java
6501         (addLayoutComponent): Show the first component added as the default.
6502         (removeLayoutComponent): After removing, show the next component.
6503         (gotoComponent): If there is only one component, show it and return.
6504
6505 2004-02-18  Kim Ho  <kho@redhat.com>
6506
6507         * javax/swing/JSlider.java: Re-order
6508         modifiers.
6509         * javax/swing/JLabel.java: Re-order
6510         modifiers.
6511         * javax/swing/JComponent.java: 
6512         (addPropertyChangeListener):
6513         Implement.
6514         (removePropertyChangeListener):
6515         ditto.
6516         (firePropertyChangeEvent):
6517         ditto.
6518
6519 2004-02-17  David Jee  <djee@redhat.com>
6520
6521         * java/awt/Component.java
6522         (show): Dispatch ComponentEvent via system event queue.
6523         (hide): Likewise.
6524         (move): Likewise.
6525         (resize): Likewise.
6526         (reshape): Likewise.
6527         * java/awt/Window.java
6528         (setBoundsCallback): Likewise.
6529
6530 2004-02-17  David Jee  <djee@redhat.com>
6531
6532         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6533         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
6534         Use gtk_widget_set_size_request() instead of the deprecated
6535         gtk_widget_set_usize().
6536
6537 2004-02-17  Kim Ho  <kho@redhat.com>
6538
6539         * javax/swing/JSlider.java: Fix comments and
6540         make property strings constants.
6541         (createStandardLabels): Use the labels
6542         preferred size as bounds.
6543         * javax/swing/plaf/basic/BasicSliderUI.java
6544         Fix comments.
6545         (ScrollHandler::actionPerformed): Don't
6546         calculate the timer stop value. Let the
6547         MouseListeners find the stop location.
6548         (getPreferredHorizontalSize): Re-implement.
6549         (getPreferredVerticalSize): ditto.
6550         (getMinimumHorizontalSize): ditto.
6551         (getMinimumVerticalSize): ditto.
6552         (getPreferredSize): ditto.
6553         (getMinimumSize): ditto.
6554         (getMaximumSize): ditto.
6555         (paintTicks): Use doubles to find the
6556         tick location.
6557         (paintHorizontalLabel):  Use preferredSize
6558         as initial width and height.
6559         (paintVerticalLabel): ditto.
6560
6561 2004-02-17  Kim Ho  <kho@redhat.com>
6562
6563         * javax/swing/JLabel.java: Changed 
6564         property strings to constants.
6565         (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
6566         New property.
6567         (setText): Change mnemonic index if
6568         text is too short.
6569         (setDisplayedMnemonicIndex): Fire property
6570         change event.
6571         (getDisplayedMnemonicIndex): Remove check
6572         against short text.
6573
6574 2004-02-17 Olga Rodimina <rodimina@redhat.com>
6575
6576         * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6577         (drawImage(img,xform,obs)): Invert xform before
6578         passing the xform to cairo.
6579         (drawImage(img,x,y,bgcolor,obs)): Implemented.
6580         (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
6581         implemented.
6582         (drawImage (img,x,y,w,h,obs)): Implemented.
6583         (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
6584         bgcolor,obs)): Partly implemented.
6585         (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
6586         Implemented.
6587         * java/awt/image/BufferedImage.java:
6588         (copyData): if dest is null, create raster with same
6589         dimensions as the current image.
6590
6591 2004-02-16  Graydon Hoare  <graydon@redhat.com>
6592
6593         * javax/swing/plaf/basic/BasicLabelUI.java 
6594         (getPreferredSize): Use layoutCL.
6595         * javax/swing/plaf/basic/BasicGraphicsUtils.java 
6596         (getPreferredButtonSize): Start with empty view rect, layout using
6597         component's preferred alignment.
6598         * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
6599         List defaults.
6600
6601 2004-02-16  David Jee  <djee@redhat.com>
6602
6603         * java/awt/Component.java
6604         (show): Dispatch COMPONENT_SHOWN ComponentEvent.
6605         (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
6606         (move): Erase old bounds and repaint new bounds. Dispatch
6607         COMPONENT_MOVED ComponentEvent.
6608         (resize): Erase old bounds and repaint new bounds. Dispatch
6609         COMPONENT_RESIZED ComponentEvent.
6610         (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6611         ComponentEvents.
6612         * java/awt/Window.java
6613         (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6614         ComponentEvents.
6615
6616 2004-02-16  Olga Rodimina  <rodimina@redhat.com>
6617
6618         * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6619         (setRenderingHint): Added implementation of 
6620         Interpolation rendering hints.
6621         (setRenderingHints): Ditto.
6622         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6623         (drawPixels): fixed to allow user to choose type 
6624         of filtering that should be used when displaying images.
6625         (cairoSurfaceSetFilter): New method. Sets filter type for 
6626         interpolation of pixel values.
6627
6628 2004-02-16  David Jee  <djee@redhat.com>
6629
6630         * java/awt/GridBagLayout.java
6631         (calcCellSizes): Rows or columns with zero sizes should still be
6632         considered for extra space distribution.
6633
6634 2004-02-16  Kim Ho  <kho@redhat.com>
6635
6636         * javax/swing/JLabel.java: Re-implement.
6637         * javax/swing/plaf/basic/BasicLabelUI.java
6638         Re-implement.
6639         * javax/swing/plaf/basic/BasicLookAndFeel.java:
6640         Added constant.
6641
6642 2004-02-16  Kim Ho  <kho@redhat.com>
6643
6644         * javax/swing/JSlider.java: Fix indentation and comments.
6645         (setModel): Remove null check to conform with Sun's.
6646         (setOrientation): Throw exception if not
6647         HORIZONTAL or VERTICAL.
6648         (getInverted): Use private variable instead of 
6649         ComponentOrientation.
6650         (setInverted): ditto.
6651         * javax/swing/plaf/basic/BasicSliderUI.java:
6652         Fix indentation and comments.
6653         (propertyChange): Remove check for inverted slider, handle
6654         in main paint.
6655         (getMinimumSize): Return preferred size.
6656         (getMaximumSize): ditto.
6657         (calculateFocusRect): Don't relocate rectangle.
6658         (drawInverted): Return XOR of the slider's inversion and 
6659         the component's orientation.
6660         (paint): Update leftToRightCache
6661
6662 2004-02-13  David Jee  <djee@redhat.com>
6663
6664         * java/awt/GridBagLayout.java
6665         (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
6666         code to helper methods.
6667         (sortBySpan): New helper method.
6668         (distributeSizeAndWeight): Likewise.
6669         (calcCellWeights): Likewise.
6670         (calcCellSizes): Add comments.
6671
6672 2004-02-13  David Jee  <djee@redhat.com>
6673
6674         * java/awt/Component.java
6675         (show): Only do something if component is invisible at the moment.
6676         (hide): Only do something if component is visible at the moment.
6677         (reshape): If lightweight, erase old bounds and repaint new bounds.
6678
6679 2004-02-13  Kim Ho  <kho@redhat.com>
6680
6681         * Makefile.am: Updated for new file.
6682         * Makefile.in: Regenerated.
6683         * javax/swing/JSlider.java: Reimplement.
6684         * javax/swing/SwingUtilities.java
6685         (layoutCompoundLabel): Use icon height
6686         instead of width.
6687         (paintComponent): Implement.
6688         * javax/swing/plaf/basic/BasicLookAndFeel.java:
6689         Add JSlider defaults.
6690         * javax/swing/plaf/basic/BasicSliderUI.java:
6691         Implement. New file.
6692
6693 2004-03-17  Michael Koch  <konqueror@gmx.de>
6694
6695         * gnu/java/net/PlainDatagramSocketImpl.java
6696         (RECEIVE_LOCK): New member field.
6697         (SEND_LOCK): New member field.
6698         (send0): New method.
6699         (send): Synchronize on SEND_LOCK.
6700         (receive0): New method.
6701         (receive): Synchronize on RECEIVE_LOCK.
6702         * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
6703         gnu/java/net/natPlainDatagramSocketImplPosix.cc,
6704         gnu/java/net/natPlainDatagramSocketImplWin32.cc
6705         (send0): Renamed from send.
6706         (receive0): Renamed from receive.
6707 2004-03-17  Michael Koch  <konqueror@gmx.de>
6708
6709         * gnu/java/net/natPlainSocketImplPosix.cc
6710         (write): Just call write(jbyteArray, offset, len).
6711         (read): Just call read(jbyteArray, offset, len).
6712
6713 2004-03-16  Michael Koch  <konqueror@gmx.de>
6714
6715         * javax/swing/JTabbedPane.java
6716         (serialVersionUID): New field.
6717
6718 2004-03-16  Norbert Frese  <postfach@nfrese.net>
6719
6720         * java/net/InetAddress.java
6721         (getByName): Handle hostname == "" case.
6722
6723 2004-03-16  Dalibor Topic  <robilad@kaffe.org>
6724
6725         Reported by: Adam Heath <doogie@debian.org>
6726         * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
6727         class loader.
6728
6729 2004-03-15  Michael Koch  <konqueror@gmx.de>
6730
6731         * java/util/Locale.java: Reverting my last patch
6732         and add a comment why the original version was okay.
6733
6734 2004-03-14  Andreas Tobler <a.tobler@schweiz.ch>
6735
6736         * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
6737         munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
6738         (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
6739         (MappedByteBufferImpl::forceImpl): Use msync_adptor.
6740
6741 2004-03-12  Michael Koch  <konqueror@gmx.de>
6742
6743         * java/text/DateFormatSymbols.java: Fixed file name in copyright.
6744
6745 2004-03-12  Ito Kazumitsu  <ito.kazumitsu@hitachi-cable.co.jp>
6746
6747         * java/net/URI.java (toURL): Implemented.
6748
6749 2004-03-12  Ito Kazumitsu  <ito.kazumitsu@hitachi-cable.co.jp>
6750
6751         * java/net/URI.java
6752         (URI_REGEXP) updated to contain scheme specific part.
6753         (SCHEME_SPEC_PART_GROUP) new constant.
6754         (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
6755         updated to make room for SCHEME_SPEC_PART_GROUP.
6756         (parseURI) parse scheme specific part.
6757         (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
6758         getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
6759         getQuery, getFragment) implemented.
6760
6761 2004-03-12  Dalibor Topic  <robilad@kaffe.org>
6762
6763         * libraries/javalib/java/net/URI.java
6764         partially implemented using java.util.regex.
6765         (URI_REGEXP) new constant. Used to parse URIs.
6766         (SCHEME_GROUP) new constant representing index of scheme group
6767         in parsed URI.
6768         (AUTHORITY_GROUP) new constant representing index of authority
6769         group in parsed URI.
6770         (PATH_GROUP) new constant representing index of path group in
6771         parsed URI.
6772         (QUERY_GROUP) new constant representing index of query group in
6773         parsed URI.
6774         (FRAGMENT_GROUP) new constant representing index of fragment
6775         group in parsed URI.
6776         (getURIGroup) new static utility method.
6777         (parseURI) implemented.
6778         (quote) stub for new static utility method.
6779         (quoteAuthority) stub for new static utility method.
6780         (quoteHost) stub for new static utility method.
6781         (quotePath) stub for new static utility method.
6782         (quoteUserInfo) stub for new static utility method.
6783         (URI) implemented.
6784         (create) don't throw URISyntaxException. Implemented.
6785         (toString) implemented.
6786
6787 2004-03-12  Michael Koch  <konqueror@gmx.de>
6788
6789         * java/net/HttpURLConnection.java
6790         (getResponseCode): Fix another typo in javadoc.
6791
6792 2004-03-11  Michael Koch  <konqueror@gmx.de>
6793
6794         * java/util/logging/Level.java
6795         (parse): Use String.equals() instead of ==.
6796
6797 2004-03-11  Michael Koch  <konqueror@gmx.de>
6798
6799         * gnu/java/net/protocol/jar/Connection.java
6800         (getContentLength): New method.
6801
6802 2004-03-11  Michael Koch  <konqueror@gmx.de>
6803
6804         * gnu/java/net/PlainSocketImpl.java:
6805         Reformated to merge better with classpath's version.
6806
6807 2004-03-11  Michael Koch  <konqueror@gmx.de>
6808
6809         * java/util/Locale.java
6810         (getISO3Language): Use String.equals() instead of ==.
6811         (getISO3Country): Likewise.
6812
6813 2004-03-11  Dalibor Topic  <robilad@kaffe.org>
6814
6815         * java/text/AttributedString.java
6816         (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
6817         Use HashMap instead of Hashtable since value can be null, and
6818         you can not store a null value in a Hashtable.
6819
6820 2004-03-11  Guilhem Lavaux <guilhem@kaffe.org>
6821
6822         * java/text/AttributedStringIterator.java
6823         (getAllAttributesKey): Return only keys concerned
6824         by the current iterator.
6825         (getAttributes): Use strict inequality for
6826         end_index. 
6827
6828 2004-03-11  Michael Koch  <konqueror@gmx.de>
6829
6830         * java/net/HttpURLConnection.java:
6831         Fixed typo in javadoc.
6832
6833 2004-03-11  Guilhem Lavaux  <guilhem@kaffe.org>
6834
6835         * java/io/BufferedInputStream.java (marktarget): New field for max
6836         mark limit.
6837         (CHUNKSIZE): New constant for incremental mark buffer allocation.
6838         (mark): Use new fields.
6839         (read): Likewise.
6840         (read(byte[],int,int)): Likewise.
6841         (skip): Likewise.
6842         (refill): Likewise.
6843
6844 2004-03-11  Mark Wielaard  <mark@klomp.org>
6845
6846         * java/beans/BeanDescriptor.java (BeanDescriptor):
6847         Set the FeatureDescriptor programmatic name.
6848
6849 2004-03-11  Michael Koch  <konqueror@gmx.de>
6850
6851         * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
6852         This file was was just copied form java/io/natFileDescriptorEcos.cc
6853         and never changed to compile correctly.
6854
6855 2004-03-11  Michael Koch  <konqueror@gmx.de>
6856
6857         * gnu/java/nio/PipeImpl.java
6858         (SourceChannelImpl): Made final.
6859         (read): Implemented.
6860         (SinkChannelImpl): Made final.
6861         (write): Implemented.
6862
6863 2004-03-11  Michael Koch  <konqueror@gmx.de>
6864
6865         * gnu/java/net/PlainDatagramSocketImpl.java:
6866         Reformated to match classpath's version more.
6867
6868 2004-03-11  Michael Koch  <konqueror@gmx.de>
6869
6870         * gnu/java/awt/peer/ClasspathFontPeer.java:
6871         Fixed javadoc to be correct xhtml.
6872         * gnu/java/awt/peer/gtk/GtkArgList.java
6873         (add): Use Boolean.valueOf() instead of new Boolean().
6874
6875 2004-03-09  Michael Koch  <konqueror@gmx.de>
6876
6877         * java/lang/Thread.java
6878         (runnable): Moved around.
6879         (daemon): Renamed from daemon_flag.
6880         (contextClassLoader): Renamed from context_class_loader.
6881         (Thread): Reordered constructors.
6882         (activeCount): Use group directly.
6883         (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
6884         (holdsLock): Reworked javadoc.
6885         (setDaemon): Reworked.
6886         * java/lang/natThread.cc
6887         (destroy): Removed.
6888
6889 2004-03-08  Anthony Green  <green@redhat.com>
6890
6891         * Makefile.am: Build property resource files into libgcj.
6892         * Makefile.in: Rebuilt.
6893         * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
6894         java/util/regex/PatternSyntaxException.java,
6895         gnu/regexp/CharIndexed.java,
6896         gnu/regexp/CharIndexedCharArray.java,
6897         gnu/regexp/CharIndexedInputStream.java,
6898         gnu/regexp/CharIndexedReader.java,
6899         gnu/regexp/CharIndexedString.java,
6900         gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
6901         gnu/regexp/REException.java,
6902         gnu/regexp/REFilterInputStream.java,
6903         gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
6904         gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
6905         gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
6906         gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
6907         gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
6908         gnu/regexp/RETokenLookAhead.java,
6909         gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
6910         gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
6911         gnu/regexp/RETokenStart.java,
6912         gnu/regexp/RETokenWordBoundary.java,
6913         gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
6914
6915 2004-03-03  Per Bothner  <per@bothner.com>
6916
6917         * java/nio/channels/Channels.java (newInputStream, newOutputStream):
6918         Optimize when argument is a FileChannelImpl.
6919         (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
6920         New native methods.
6921         * java/nio/channels/natChannels.cc:  New file for new native methods.
6922         * Makefile.am:  Update accordingly.
6923
6924 2004-03-02  Jan Hubicka  <jh@suse.cz>
6925
6926         * configure.host: Pass -fno-omit-frame-pointer for i386.
6927         * configure.in: Likewise.
6928         * configure: Regenerate.
6929
6930 2004-03-01  Per Bothner  <per@bothner.com>
6931
6932         * java/lang/natPosixProcess.cc (startProcess):  Fix thinko.
6933
6934 2004-02-29  Per Bothner  <per@bothner.com>
6935
6936         * java/nio/channels/FileChannelImpl.java:  Moved to package
6937         gnu/java/nio/channels, since we need to refer to it from java.io.
6938         * java/nio/channels/natFileChannelImpl.cc:  Removed file.
6939         * gnu/java/nio/channels/FileChannelImpl.java:  New class, renamed
6940         from java/nio/channels.  Don't depend on FileDescriptor.
6941         (in, out, err):  New static fields.
6942         (mode):  New field.
6943         (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC):  Moved constants
6944         from FileDescriptor.
6945         (by):  Removed MappedByteBuffer field.
6946         (map):  New working implementation.
6947         * gnu/java/nio/channels/natFileChannelPosix.cc:  New file, though
6948         some code "ported" from natFileDescriptoPosix.cc.
6949         * gnu/java/nio/channels/natFileChannelEcos.cc:  Likewise.
6950         * gnu/java/nio/channels/natFileChannelWin32.cc  Likewise.
6951         * java/io/FileDescriptor.java:  Implement on top of FileChannel.
6952         Remove native methods.
6953         * Makefile.am, configure.in:  Updated accordingly.
6954
6955         * gnu/java/nio/FileLockImpl.java (fd):  Remove field, replacing it by:
6956         (ch):  New FileChannelImpl field.  Update constructor to match.
6957         (releaseImpl):  Remove native method.  Instead ...
6958         (release):  Call unlock on channel.
6959         * gnu/java/nio/natFileLockImpl.cc:  Removed file.
6960
6961         * java/io/natFileDescriptorEcos.cc:  Remove file.
6962         * java/io/natFileDescriptorPosix.cc:  Remove file.
6963         * java/io/natFileDescriptorWin32.cc:  Remove file.
6964         * java/io/FileInputStream.java (ch):  Change type to FileChannelImpl.
6965         (<init>(File)):  Allocate a FileChannelImpl, not a FileDescriptor.
6966         (<init>(FileChannelImpl)):  New package-private constructor.
6967         (<init>(FileDescriptor)):  Extract FileChannelImpl from arg.
6968         (available, close, read, skip):  Implement using FileChannelImpl.
6969         (getFD):  Allocate FileDescriptor if needed.
6970         (getChannel):  Is now trivial.
6971         * java/io/FileOutputStream.java:  Corresponding changes.
6972         * java/io/RandomAccessFile.java:  Corresponding changes.
6973
6974         * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
6975         unmapImpl):  New dummy methods, to be overridden by subclass.
6976         (finalize, isLoaded, load, force):  New methods.
6977         * java/nio/MappedByteBufferImpl.java:  More-or-less rewrite.
6978         Now works, at least for read mapping.
6979
6980         * java/lang/natPosixProcess.cc (startProcess):  Implement standard
6981         streams using FileChannelImpl, not FileDescriptor.
6982         * java/lang/natWin32Process.cc (startProcess):  Likewise.
6983
6984 2004-02-28  Michael Koch  <konqueror@gmx.de>
6985
6986         * java/io/ObjectInputStream.java: Compile fix, damn I commited the
6987         wrong code.
6988
6989 2004-02-28  Guilhem Lavaux <guilhem@kaffe.org>
6990
6991         * java/io/ObjectInputStream.java
6992         (readClassDescriptor): Keep elements of the mapping non null.
6993         (checkTypeConsistency): New method.
6994         (readFields): Fixed main loop and base logic. Small reindentation.
6995         * java/io/ObjectStreamField.java
6996         (lookupField): New method to update the field reference.
6997         (checkFieldType): New method.
6998         * java/io/ObjectStreamClass.java
6999         (setClass, setFields): Call lookupField when building the field
7000         database. Check the real field type.
7001
7002 2004-02-28  Michael Koch  <konqueror@gmx.de>
7003
7004         * java/nio/ByteOrder.java
7005         (nativeOrder): Use equals() to compare strings.
7006
7007 2004-02-26  Michael Koch  <konqueror@gmx.de>
7008
7009         * gnu/java/nio/FileLockImpl.java
7010         (finalize): Made protected.
7011         * java/nio/channels/FileChannel.java
7012         (MapMode.READ_ONLY): Made final.
7013         (MapMode.READ_WRITE): Made final.
7014         (MapMode.PRIVATE): Made final.
7015         * java/nio/channels/SocketChannel.java
7016         (open): Simplified code.
7017         * java/nio/channels/spi/AbstractSelectableChannel.java
7018         (registered): Unused, removed.
7019         (keyFor): Check channel is open, only locate key
7020         and not add a new one.
7021         (register): Don't delete attachments.
7022
7023 2004-02-26  Michael Koch  <konqueror@gmx.de>
7024
7025         * gnu/java/awt/ComponentDataBlitOp.java
7026         (INSTANCE): Made final.
7027         * gnu/java/awt/image/ImageDecoder.java:
7028         Reworked imports.
7029         (cm): Unused, removed.
7030
7031 2004-02-26  Michael Koch  <konqueror@gmx.de>
7032
7033         * gnu/java/nio/DatagramChannelImpl.java
7034         (send): Check if target address is resolved.
7035
7036 2004-02-26  Michael Koch  <konqueror@gmx.de>
7037
7038         * Makefile.am: Generate and install headers for inner classes in
7039         java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
7040         * Makefile.in: Regenerated.
7041
7042 2004-02-24  Anthony Green  <green@redhat.com>
7043
7044         * java/lang/StringBuffer.java: No need to NULL out remainder of
7045         buffer since ensureCapacity_unsynchronized will have done this for
7046         us.
7047
7048 2004-02-20  Michael Koch  <konqueror@gmx.de>
7049
7050         * gnu/java/net/protocol/jar/Handler.java
7051         (): Removed unneeded check for file != null. java.net.URL.getFile()
7052         returns an empty string but never null.
7053
7054 2004-02-20  Michael Koch  <konqueror@gmx.de>
7055
7056         * gnu/gcj/convert/Convert.java
7057         (main): Use equals() to compare strings.
7058
7059 2004-02-20  Michael Koch  <konqueror@gmx.de>
7060
7061         * javax/swing/AbstractButton.java: Made several constants final.
7062         (getRolloverSelectedIcon): Made public.
7063         (getSelectedIcon): Made public.
7064
7065 2004-02-16  Per Bothner  <per@bothner.com>
7066
7067         * java/nio/CharBufferImpl.java:  Inline super constructor.
7068         * java/nio/DoubleBufferImpl.java:  Likewise.
7069         * java/nio/FloatBufferImpl.java:  Likewise.
7070         * java/nio/IntBufferImpl.java:  Likewise.
7071         * java/nio/LongBufferImpl.java:  Likewise.
7072         * java/nio/ShortBufferImpl.java:  Likewise.
7073         * java/nio/CharBuffer.java:  Remove unused constructor.
7074         * java/nio/DoubleBuffer.java:  Likewise.
7075         * java/nio/FloatBuffer.java:  Likewise.
7076         * java/nio/IntBuffer.java:  Likewise.
7077         * java/nio/LongBuffer.java:  Likewise.
7078         * java/nio/ShortBuffer.java:  Likewise.
7079         * java/nio/CharViewBufferImpl.java:  New convenience constructor.
7080         Fix buggy call to super constructor.
7081         * java/nio/DoubleViewBufferImpl.java:  Likewise.
7082         * java/nio/FloatViewBufferImpl.java:  Likewise.
7083         * java/nio/IntViewBufferImpl.java:  Likewise.
7084         * java/nio/LongViewBufferImpl.java:  Likewise.
7085         * java/nio/ShortViewBufferImpl.java:  Likewise.
7086         
7087         * java/nio/ByteBuffer.java (endian):  Make non-private so other
7088         java.nio classes can inherit it.
7089         (<init>):  Don't bother clearing array_offset.
7090         * java/nio/ByteBuffer.java (allocate):  Re-implement using wrap.
7091         * java/nio/ByteBuffer.java (get(byte[],int,int)):  Check underflow.
7092         Remove redundant test.
7093
7094         * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
7095         asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
7096         Use new XxxViewBufferImpl constructors.
7097         * java/nio/MappedByteBufferImpl.java:  Likewise.
7098         * java/nio/DirectByteBufferImpl.java:  Likewise.
7099
7100         * java/nio/ByteBufferImpl.java:  Remove one constructor.
7101         Inline super in remaining constructor.
7102         * java/nio/ByteBuffer.java:  Remove unused constructor.
7103
7104         * java/nio/ByteBufferImpl.java (shiftDown):  New optimized method.
7105
7106         * java/nio/ByteBufferImpl.java (get, put):  Add array_offset.
7107         * java/nio/DirectByteBufferImpl.java (owner):  New field.
7108         (offset):  Remove unused field.
7109         (<init>):  Modify one and add another constructor.  Change callers.
7110         (allocateDirect):  Removed - not used.
7111         (getImpl, putImpl):  Make static and pass address explicitly,
7112         to make them useful for MappedByteBufferImpl.
7113         (get, put):  Check for underflow.  Modify for new getImpl.
7114         (getImpl):  New native method where target is array.
7115         (get(byte[],int,int)):  Use the above.
7116         (adjustAddress):  New static native method.
7117         (slice, duplicate, asReadOnly):  New implementations.
7118         * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
7119         adjustAddress):  New or updated native methods.
7120
7121 2004-02-15  Ito Kazumitsu  <kaz@maczuka.gcd.org>
7122
7123         * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
7124         overflow of fieldmapping.
7125
7126 2004-02-14  Sascha Brawer  <brawer@dandelis.ch>
7127
7128         * javax/swing/undo/UndoManager.java: Re-written from scratch.
7129
7130 2004-02-14  Per Bothner  <per@bothner.com>
7131
7132         * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
7133         Set closed before calling implCloseChannel, as in the spec.
7134
7135 2004-02-09  Graydon Hoare  <graydon@redhat.com>
7136
7137         * javax/swing/ToggleButtonModel.java: Remove dead class.
7138         * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
7139         * javax/swing/plaf/basic/BasicButtonListener.java: New class.
7140         * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
7141         * Makefile.am: Update for new and removed files.
7142         * Makefile.in: Regenerate.
7143
7144         * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
7145         * javax/swing/AbstractButton.java 
7146         (AbstractButton): Initialize fields correctly in ctor.
7147         * javax/swing/JCheckbox.java 
7148         (JCheckBox): Override painting flags.
7149         * javax/swing/DefaultButtonModel.java: Conform to sun.
7150         * javax/swing/JComponent.java (paint): Fill with background color
7151         if available.
7152         (processComponentKeyEvent)
7153         (processFocusEvent)
7154         (processKeyEvent)
7155         (processMouseMotionEvent): Remove event-consuming empty methods.
7156         (getUIClassID): Return "ComponentUI" not "JComponent"
7157         * javax/swing/JFrame.java: Remove some debugging chatter.
7158         (JFrame): Subscribe to window events.
7159         * javax/swing/JRadioButton.java 
7160         (JRadioButton): Override painting flags.
7161         * javax/swing/JRootPane.java 
7162         (JRootPane): Set background from UIDefaults.
7163         * javax/swing/JToggleButton.java 
7164         (ToggleButtonModel): New inner class.
7165         (JToggleButton): Override layout alighment.
7166         * javax/swing/SwingUtilities.java:
7167         (getLocalBounds): Return width and height, not x and y.
7168         (calculateInnerArea): Use local bounds, not bounds.
7169         (layoutCompoundLabel): Provide overridden form.
7170         (layoutCompoundLabel): Correct bugs.
7171         * javax/swing/UIDefaults.java: Correct comment.
7172         * javax/swing/plaf/basic/BasicButtonUI.java: 
7173         Move most logic into defaults, external listener.
7174         (paintIcon): Implement icon painting.
7175         (paint): Fix state painting to conform to changes in model.
7176         * javax/swing/plaf/basic/BasicCheckBoxUI.java:
7177         Remove most dead/wrong methods.
7178         (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
7179         * javax/swing/plaf/basic/BasicIconFactory.java:
7180         (DummyIcon): New class.
7181         (getMenuItemCheckIcon)
7182         (getMenuItemArrowIcon) 
7183         (getMenuArrowIcon)
7184         (getCheckBoxMenuItemIcon)
7185         (getRadioButtonMenuItemIcon)
7186         (createEmptyFrameIcon): Return DummyIcons, not null.
7187         (getCheckBoxIcon): Implement an icon that looks like sun's.
7188         (getRadioButtonIcon): Implement an icon that looks like sun's.
7189         * javax/swing/plaf/basic/BasicLookAndFeel.java 
7190         (initComponentDefaults): Fix impossible values, add some missing.
7191         * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
7192         * javax/swing/plaf/basic/BasicRadioButtonUI.java:
7193         Remove most dead/wrong methods.
7194         (icon): New field.
7195         (getDefaultIcon): New method.
7196         * javax/swing/plaf/basic/BasicToggleButtonUI.java:
7197         Remove most dead/wrong methods.
7198         * javax/swing/plaf/metal/MetalLookAndFeel.java
7199         (getDefaults): Return super.getDefaults(), not BasicDefaults.
7200         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
7201         (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
7202         Implement "clearing" as drawing, when on pixmap drawables.
7203
7204         * javax/swing/JButton.java (getUIClassID): 
7205         * javax/swing/JCheckBox.java (getUIClassID):
7206         * javax/swing/JEditorPane.java (getUIClassID):
7207         * javax/swing/JLabel.java (getUIClassID): 
7208         * javax/swing/JList.java (getUIClassID): 
7209         * javax/swing/JOptionPane.java (getUIClassID): 
7210         * javax/swing/JPanel.java (getUIClassID): 
7211         * javax/swing/JPasswordField.java (uiClassID): 
7212         * javax/swing/JRadioButton.java (getUIClassID): 
7213         * javax/swing/JRootPane.java (getUIClassID): 
7214         * javax/swing/JScrollPane.java (getUIClassID): 
7215         * javax/swing/JTabbedPane.java (getUIClassID): 
7216         * javax/swing/JToggleButton.java (getUIClassID): 
7217         * javax/swing/JTree.java (getUIClassID): 
7218         * javax/swing/JViewport.java (getUIClassID): 
7219         * javax/swing/text/JTextComponent.java (getUIClassID):
7220         Return "fooUI" not "Jfoo"
7221
7222 2004-02-11  Michael Koch  <konqueror@gmx.de>
7223
7224         * java/net/DatagramSocket.java
7225         (setReuseAddress): Use Boolean.valueOf() instead of creating a new
7226         Boolean object.
7227         (setBroadcast): Likewise.
7228         * java/net/MulticastSocket.java
7229         (setLoopbackMode): Likewise.
7230         * java/net/ServerSocket.java
7231         (setReuseAddress): Likewise.
7232         * java/net/Socket.java
7233         (setTcpNoDelay): Likewise.
7234         (setSoLinger): Likewise.
7235         (setOOBInline): Likewise.
7236         (setKeepAlive): Likewise.
7237         (setReuseAddress): Likewise.
7238         * java/net/URLConnection.java
7239         (setContentHandler): Replace == with equals().
7240         * java/net/URLStreamHandler.java
7241         (hostSEquals): Fix checking host addresses.
7242         (toExternalForm): Dont check protocol for null. We know already its
7243         not null.
7244
7245 2004-02-10  David Jee  <djee@redhat.com>
7246
7247         * java/awt/BorderLayout.java
7248         (calcCompSize): Invisible components get zero dimensions.
7249         * java/awt/Button.java
7250         (setLabel): Set actionCommand.
7251         * java/awt/Component.java
7252         (show): Invalidate component and parent container.
7253         (hide): Likewise.
7254
7255 2004-02-10  David Jee  <djee@redhat.com>
7256
7257         * java/awt/GridBagLayout.java
7258         (GridBagLayout): New private field, internalcomptable.
7259         (lookupInternalConstraints): New method.
7260         (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
7261         (GetLayoutInfo): Reimplement.
7262         (calcCellSizes): Ignore rows/columns with size 0.
7263
7264 2004-02-10  Michael Koch  <konqueror@gmx.de>
7265
7266         * gnu/java/awt/EmbeddedWindow.java
7267         (setHandle): Use java.awt.Component.getPeer() instead of
7268         java.awt.Component.peer directly.
7269
7270 2004-02-10  David Jee  <djee@redhat.com>
7271
7272         * gnu/java/awt/peer/gtk/GtkButtonPeer.java
7273         (gtkSetLabel): New native method definition.
7274         (setLabel): Use gtkSetLabel.
7275         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
7276         (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
7277
7278 2004-02-10  Alan Modra  <amodra@bigpond.net.au>
7279
7280         * include/powerpc-signal.h: Revert 2004-01-21 change.
7281         (INIT_SEGV, INIT_FPE): Provide powerpc64 versions.  Check return
7282         from syscall for ppc32 versions.
7283
7284 2004-02-08  Per Bothner  <per@bothner.com>
7285
7286         * java/nio/ByteBuffer.java (shiftDown):  New helper method.
7287         * java/nio/natDirectByteBufferImpl.cc (shiftDown):  New implementation.
7288         * java/nio/ByteBufferImpl.java (compact):  Use new shiftDown method.
7289         * sava/nio/ByteBufferHelper.java:  Remove redundant 'final' specifiers.
7290         Pass ByteOrder parameter to most methods, since the underlying
7291         ByteBuffer's order isn't always what we should use.
7292         * java/nio/ByteBufferImpl.java:  Pass byte-order various places.
7293         * java/nio/DirectByteBufferImpl.java:  Likewise.
7294         Use ByteBufferHelper methods.
7295         * java/nio/MappedByteBufferImpl.java:  Likewise.
7296         (compact):  Use shiftDown.
7297         * java/nio/CharViewBufferImpl.java (<init>):  Pass byte-order.
7298         (get, put):  Use ByteBufferHelper.
7299         (compact):  Use new shiftDown method.
7300         (duplicate(boolean)):  New helper method.
7301         (duplicate, asReadOnlyBuffer):  Use it.
7302         (order):  Return endian field.
7303         * java/nio/DoubleViewBufferImpl.java:  Likewise.
7304         * java/nio/FloatViewBufferImpl.java:  Likewise.
7305         * java/nio/IntViewBufferImpl.java:  Likewise.
7306         * java/nio/LongViewBufferImpl.java:  Likewise.
7307         * java/nio/ShortViewBufferImpl.java:  Likewise.
7308         * java/nio/CharViewBufferImpl.java (subsequence):  Redundant test.
7309         * java/nio/DirectByteBufferImpl.java (shiftDown):  New native method.
7310         (compact):  Re-implement using shiftDown.
7311
7312 2004-02-08  Andreas Jaeger  <aj@suse.de>
7313
7314         * include/x86_64-signal.h: Fix typo.
7315
7316 2004-02-08  Diego Novillo  <dnovillo@redhat.com>
7317
7318         * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
7319         qualifier to _regs.
7320         (HANDLE_DIVIDE_OVERFLOW): Likewise.
7321
7322 2004-02-06  Michael Koch  <konqueror@gmx.de>
7323
7324         * java/io/ObjectInputStream.java
7325         (currentClassLoader): Reverted to old version of this method.
7326
7327 2004-02-06  Jeroen Frijters  <jeroen@frijters.net>
7328
7329         * java/io/ObjectInputStream.java: Made all calls
7330         to dumpElement[ln] conditional on dump flag. (readObject): Changed to
7331         use cached info from ObjectStreamClass. (readClassDescriptor):
7332         Cache more information in ObjectStreamClass. (processResolution,
7333         readFields): Use cached info from ObjectStreamClass.
7334         (newObject): Throw exception instead of returning null for failure.
7335         (getField, getMethod, callReadMethod, setBooleanField, setByteField,
7336         setCharField, setDoubleField, setFloatField, setIntField,
7337         setLongField, setShortField, setObjectField, readObjectParams):
7338         Removed. (dumpElement, dumpElementln): Removed dump flag condition
7339         check.
7340         * java/io/ObjectStreamField.java (hasReadMethod): Removed.
7341         (setClass): Added call to cacheMethods() (findMethod): New method.
7342         (cacheMethods): New method. (ObjectStreamClass): Added call to
7343         cacheMethods(). (setFields): Cache fields. (getClassUID): Use
7344         AccessController.doPrivileged to invoke setAccessible.
7345         (readObjectMethod, readResolveMethod, realClassIsSerializable,
7346         realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
7347         New fields.
7348         * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
7349         (ObjectStreamField): Removed FIXME workaround. (getTypeString,
7350         isPrimitive): Made safe for cases where type == null.
7351         (setBooleanField, setByteField, setCharField, setShortField,
7352         setIntField, setLongField, setFloatField, setDoubleField,
7353         setObjectField): New methods.
7354
7355 2004-02-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
7356
7357         * java/awt/Component.java (getFont): Return a default font
7358         instead of null.
7359
7360         * java/awt/Scrollbar.java (next_scrollbar_number): New field.
7361         (Scrollbar (int, int, int, int, int)): Make default page
7362         increment 10.
7363         (setValues): Only call peer.setValues if one of the values has
7364         changed.
7365         (generateName): New method.
7366         (getUniqueLong): New method.
7367         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
7368         (range_scrollbar): Remove structure.
7369         (post_adjustment_event): Remove function.
7370         (post_change_event): Accept jobject argument.
7371         (create): Cast jints to gdoubles.  Round scrollbar values to the
7372         nearest integer.  Clamp min, max and value settings.
7373         (connectJObject): Connect hook to widget->window.
7374         (connectSignals): Remove range_scrollbar structure variables.
7375         Remove "move-slider" connection.  Pass global peer reference to
7376         "value-changed" callback.
7377         (setLineIncrement): Cast jint value to gdouble.
7378         (setPageIncrement): Likewise.
7379         (setValues): Likewise.  Clamp min, max and value settings.
7380
7381 2004-02-05  Michael Koch  <konqueror@gmx.de>
7382
7383         * javax/swing/AbstractCellEditor.java
7384         (getCellEditorValue): Removed.
7385         * javax/swing/Box.java: Reformated.
7386         (serialVersionUID): New field.
7387         * javax/swing/ButtonGroup.java:
7388         Removed some weird whitespace.
7389         * javax/swing/CellEditor.java: Reformated.
7390         * javax/swing/CellRendererPane.java
7391         (serialVersionUID): New field.
7392         (AccessibleCellRendererPaneserialVersionUID): New field.
7393         * javax/swing/DefaultListModel.java
7394         (serialVersionUID): New field.
7395         * javax/swing/JEditorPane.java
7396         (serialVersionUID): New field.
7397         (setPage): Throws IOException.
7398         (addHyperlinkListener): Implemented.
7399         (removeHyperlinkListener): Implemented.
7400         (getHyperlinkListener): New method.
7401         * javax/swing/JFileChooser.java
7402         (serialVersionUID): New field.
7403         (AccessibleJFileChooser.serialVersionUID): New field.
7404         (addActionListener): Implemented.
7405         (removeActionListener): Implemented.
7406         (getActionListeners): New method.
7407         * javax/swing/JFormattedTextField.java
7408         (serialVersionUID): New field.
7409         (AbstractFormatter.serialVersionUID): New field.
7410         (clone): Throws CloneNotSupportedException
7411         (setEditValid): Add missing argument.
7412         (stringToValue): Throws ParseExcpetion.
7413         (valueToString): Throws ParseException.
7414         (commitEdit): Throws ParseException.
7415         * javax/swing/JLabel.java
7416         (serialVersionUID): New field.
7417         * javax/swing/JList.java
7418         (serialVersionUID): New field.
7419         (addListSelectionListener): Reformated.
7420         (removeListSelectionListener): Reformated.
7421         (getListSelectionListeners): New method.
7422         * javax/swing/colorchooser/AbstractColorChooserPanel.java:
7423         Reformated.
7424         (serialVersionUID): New field.
7425         * javax/swing/table/AbstractTableModel.java
7426         (getValueAt): Removed.
7427         (getColumnCount): Removed.
7428         (getRowCount): Removed.
7429
7430 2004-02-05  Michael Koch  <konqueror@gmx.de>
7431
7432         * java/awt/datatransfer/DataFlavor.java
7433         (imageFlavor): Javadoc added.
7434         (javaJVMLocalObjectType): Fixed.
7435
7436 2004-02-05  Michael Koch  <konqueror@gmx.de>
7437
7438         * java/lang/Thread.java
7439         (Thread): Reordered.
7440         (setContextClassLoader): Fixed javadoc comment.
7441         (setPriority): Reordered.
7442         (yield): Reordered.
7443         (initialize_native): Reordered.
7444         (gen_name): Reordered.
7445
7446 2004-02-05  Michael Koch  <konqueror@gmx.de>
7447
7448         * java/lang/Thread.java: Reordered fields, reformated much code,
7449         no functional changes, some variables renamed, javadoc comments
7450         merged.
7451
7452 2004-02-05  Michael Koch  <konqueror@gmx.de>
7453
7454         * java/util/zip/Deflater.java,
7455         java/util/zip/DeflaterOutputStream.java,
7456         java/util/zip/GZIPInputStream.java:
7457         Reformated and javadoc comments merged from classpath.
7458
7459 2004-02-05  Michael Koch  <konqueror@gmx.de>
7460
7461         * gnu/java/nio/NIOServerSocket.java
7462         (impl): Unused, removed.
7463         * gnu/java/nio/SocketChannelImpl.java
7464         (finnishConnect): Don't throw NoConnectionPendingException if not
7465         connected or no connection pending.
7466
7467 2004-02-02  Graydon Hoare  <graydon@redhat.com>
7468
7469         * javax/swing/SwingUtilities.java: Many new functions.
7470         * java/awt/Container.java (LightweightDispatcher): Reimplement.
7471         * javax/swing/basic/BasicGraphicsUtils.java 
7472         (getPreferredButtonSize): Start layout from top-left corner.
7473
7474 2004-02-04  Olga Rodimina  <rodimina@redhat.com>
7475
7476         * java/awt/geom/AffineTransform.java: 
7477         Corrected comments on the field definitions for
7478         m11 and m10.
7479         (shear): Fixed few errors that caused shear
7480         transformation to be performed incorrectly.
7481         (createInverse): Fixed to return correct
7482         inverse of the given matrix.
7483
7484 2004-02-03  Tom Tromey  <tromey@redhat.com>
7485
7486         * java/lang/natPosixProcess.cc (startProcess): Handle case where
7487         PATH or LD_LIBRARY_PATH is not set in parent environment.
7488
7489 2004-02-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
7490
7491         * gnu/java/awt/peer/gtk/GtkListPeer.java,
7492         java/awt/BorderLayout.java, java/awt/CardLayout.java,
7493         java/awt/CheckboxGroup.java, java/awt/Choice.java,
7494         java/awt/Component.java, java/awt/Container.java,
7495         java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
7496         java/awt/LayoutManager2.java, java/awt/List.java,
7497         java/awt/Menu.java, java/awt/MenuBar.java,
7498         java/awt/MenuItem.java, java/awt/Polygon.java,
7499         java/awt/Rectangle.java, java/awt/ScrollPane.java,
7500         java/awt/Scrollbar.java, java/awt/TextArea.java,
7501         java/awt/TextField.java,
7502         java/awt/image/renderable/RenderContext.java,
7503         javax/swing/JApplet.java: Fix handling of alias methods, where a
7504         method has been deprecated in favour of a new one with the same
7505         funtion but a different name.  Put the method implementation in
7506         the deprecated method and have the new method call the
7507         deprecated one.  Make all other code call the new method.
7508
7509 2004-02-03  Mohan Embar  <gnustuff@thisiscool.com>
7510
7511         * gnu/java/nio/DatagramChannelImpl.java
7512         (inChannelOperation): New field.
7513         (isInChannelOperation): New accessor.
7514         (setInChannelOperation): New modifier.
7515         (receive): Use capacity() - position() of destination
7516         buffer instead of remaining(). Set and reset our "in
7517         channel operation indicator" before and after delegating
7518         the receive to our datagram socket. Removed testing code.
7519         Update destination buffer's current position if it is
7520         backed by a byte array (hasArray() is true).
7521         (send): Set and reset our "in channel operation indicator"
7522         before and after delegating the send to our datagram socket.
7523         Removed testing code. Update source buffer's current position
7524         if it is backed by a byte array (hasArray() is true).
7525         * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
7526         Use capacity() - position() of destination buffer instead
7527         of remaining().
7528         * java/net/DatagramSocket.java (receive): Don't throw an
7529         IllegalBlockingModeException if we have a non-blocking
7530         channel which initiated this operation.
7531         (send): Likewise.
7532
7533 2004-02-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
7534
7535         * configure.in: Add pkgconfig check for glib and gthread.
7536         * configure: Regenerate.
7537
7538 2004-02-01  Michael Koch  <konqueror@gmx.de>
7539
7540         * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
7541         arguments.
7542         * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
7543         * verify.cc (debug_print): Mark 'fmt' unused.
7544
7545 2004-01-30  Michael Koch  <konqueror@gmx.de>
7546
7547         * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
7548         * configure: Regenerated.
7549         * glib-2.0.m4: Removed.
7550         * gtk-2.0.m4: Removed.
7551         * libart.m4: Removed.
7552         * pkg.m4: New file.
7553
7554 2004-01-30  Mohan Embar  <gnustuff@thisiscool.com>
7555
7556         * gnu/java/net/PlainSocketImpl.java 
7557         (inChannelOperation): New field.
7558         (isInChannelOperation): New accessor.
7559         (setInChannelOperation): New modifier.
7560         * gnu/java/nio/ServerSocketChannelImpl.java
7561         (accept): Set and reset our server socket's PlainSocketImpl's
7562         "in channel operation" indicator before and after delegating
7563         the accept to our server socket.
7564         * gnu/java/nio/SocketChannelImpl.java
7565         (connect): Set and reset our socket's PlainSocketImpl's "in channel
7566         operation" indicator before and after delegating the operation to
7567         our socket.
7568         (read): Likewise.
7569         (write): Likewise.
7570         * java/net/ServerSocket.java (implAccept): Don't throw an
7571         IllegalBlockingModeException if we have a non-blocking
7572         channel which initiated this accept operation.
7573         * java/net/Socket.java (connect): Don't throw an
7574         IllegalBlockingModeException if we have a non-blocking
7575         channel which initiated this connect operation.
7576         * java/nio/channels/spi/AbstractSelectableChannel.java
7577         (configureBlocking): Only call implConfigureBlocking() if
7578         the desired blocking mode is different from our current one.
7579
7580 2004-01-29  Mohan Embar  <gnustuff@thisiscool.com>
7581
7582         * java/io/BufferedReader.java (sbuf): New field.
7583         (readLine): Use String.valueOf instead of new String() as per
7584         Per Bothner's suggestion. Use instance sbuf field instead of a
7585         local StringBuffer instance.
7586         * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
7587         caller's buffer to refill().
7588         (read(void)): Pass our internal work buffer to refill if our
7589         input queue is empty.
7590         (refill): Changed return type to int. Use the specified buffer
7591         instead of our work buffer as per Bryce McKinlay's suggestion.
7592         Return the number of characters read or -1 for EOF.
7593
7594 2004-01-29  Scott Gilbertson  <scottg@mantatest.com>
7595
7596         * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
7597
7598 2004-01-29  Scott Gilbertson  <scottg@mantatest.com>
7599
7600         * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
7601         * Makefile.in: Re-generated.
7602         * gnu/awt/xlib/XFontPeer.java: New file.
7603         * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
7604         (setClip): Commented out debug printout.
7605         * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
7606         (getFontPeer): Return XFontPeer.
7607         (getLocalGraphicsEnvironment): New method.
7608         (getClasspathFontPeer): New method.
7609         (createFont): New method.
7610
7611 2004-01-29  Scott Gilbertson  <scottg@mantatest.com>
7612
7613         * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
7614         return null. 
7615
7616 2004-01-29  Kim Ho  <kho@redhat.com>
7617
7618         * gnu/java/awt/peer/gtk/GtkFramePeer.java
7619         (gtkLayoutSetVisible): New method
7620         (setMenuBar): Hide layout before setting MenuBar
7621         and reshow it after.
7622         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7623         (gtkLayoutSetVisible): Hide or show the Gtk Layout.
7624
7625 2004-01-28  Michael Koch  <konqueror@gmx.de>
7626
7627         * gnu/java/lang/ClassHelper.java
7628         (getPackagePortion): Removed.
7629
7630 2004-01-28  Michael Koch  <konqueror@gmx.de>
7631
7632         * javax/swing/JComponent.java
7633         (listenerList): Initalize globally.
7634         (ancestor_list): Removed.
7635         (veto_list): Removed.
7636         (change_list): Removed.
7637         (get_veto_list): Removed.
7638         (get_change_list): Removed.
7639         (get_ancestor_list): Removed.
7640         (removeAncestorListener): Reimplemented.
7641         (removePropertyChangeListener): Likewise.
7642         (removeVetoableChangeListener): Likewise.
7643         (addAncestorListener): Likewise.
7644         (addPropertyChangeListener): Likewise.
7645         (addVetoableChangeListener): Likewise.
7646         (getListeners): New method.
7647         (getAncestorListeners): Likewise.
7648         (getVetoableChangeListeners): Likewise.
7649         (fireVetoableChange): Throws PropertyVetoException.
7650         * javax/swing/JEditorPane.java
7651         (JEditorPane): Throws IOException.
7652
7653 2004-01-28  David Jee  <djee@redhat.com>
7654
7655         * gnu/java/awt/peer/gtk/GtkFramePeer.java
7656         (create): Set the default foreground color to
7657         java.awt.SystemColor.windowText.
7658
7659 2004-01-27  Michael Koch  <konqueror@gmx.de>
7660
7661         * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
7662         * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7663         Reindented to merge with classpath.
7664
7665 2004-01-27  David Jee  <djee@redhat.com>
7666
7667         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7668         (addExposeFilter): Handle GtkFramePeer separately.
7669         (removeExposeFilter): Likewise.
7670
7671 2004-01-27  Michael Koch  <konqueror@gmx.de>
7672
7673         * gnu/java/net/protocol/http/Connection.java
7674         (getOutputStream): Fixed typo.
7675
7676 2004-01-27  Michael Koch  <konqueror@gmx.de>
7677
7678         * java/lang/Class.java
7679         (getConstructor): Removed SecurityException from throws clause.
7680         (_getConstructors): Likewise.
7681         (getConstructors): Likewise.
7682         (getDeclaredConstructor): Likewise.
7683         (getDeclaredClasses): Likewise.
7684         (getDeclaredConstructors): Likewise.
7685         (getDeclaredField): Likewise.
7686         (getDeclaredMethod): Likewise.
7687         (getDeclaredMethods): Likewise.
7688         (getField): Likewise.
7689         (getMethod): Likewise.
7690         (getMethods): Likewise.
7691
7692 2004-01-27  Kim Ho  <kho@redhat.com>
7693
7694         * gnu/java/awt/peer/gtk/GtkFramePeer.java
7695         (removeMenuBarPeer): Remove MenuBarPeer argument.
7696         * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
7697         (dispose): Call native method.
7698         * java/awt/Frame.java (setMenuBar): Create and remove
7699         MenuBar peers only if the Frame has a peer.
7700         (addNotify): Create the MenuBar peer if one exists.
7701         (removeNotify): Remove MenuBar peer if one exists.
7702         * java/awt/Menu.java: Fix imports.
7703         (addNotify): Don't use full class name.
7704         (removeNotify): Call removeNotify on all children.
7705         * java/awt/MenuBar.java (removeNotify): Call
7706         removeNotify on all children.
7707         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7708         (removeMenuBarPeer): Remove MenuBarPeer argument.
7709         Iterate through children to find the Frame's MenuBar.
7710         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
7711         New file.
7712         (dispose): Remove references to the MenuComponent.
7713
7714 2004-01-27  Michael Koch  <konqueror@gmx.de>
7715
7716         * javax/swing/AbstractCellEditor.java: Reformated.
7717         * javax/swing/DefaultListSelectionModel.java
7718         (listenerList): Made protected.
7719         (addListSelectionListener): Javadoc added.
7720         (removeListSelectionListener): Likewise.
7721         (getListeners): Likewise.
7722         (getListSelectionListeners): Likewise.
7723         * javax/swing/JComboBox.java: Merged copyright year.
7724         * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
7725
7726 2004-01-26  Andrew Haley  <aph@redhat.com>
7727
7728         * javax/swing/table/JTableHeader.java: Extend JComponent
7729
7730 2004-01-26  Kim Ho  <kho@redhat.com>
7731
7732         * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
7733         Fix spacing.
7734
7735 2004-01-26  Kim Ho  <kho@redhat.com>
7736
7737         * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
7738         method.
7739         (setMenuBar): Shift the Gtk layout up/down by the MenuBar
7740         height and let the Layout Managers readjust anything that
7741         needs to move.
7742         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7743         (moveLayout): New method. Shift everything in the Gtk
7744         layout in the Y direction by an offset.
7745
7746 2004-01-26  David Jee  <djee@redhat.com>
7747
7748         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
7749         (handleEvent): Implemented. Handles PaintEvents.
7750         (paint): Implemented. Use GTK native methods to queue updates
7751         for this heavyweight peer.
7752         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
7753         (handleEvent): Removed.
7754         * java/awt/Component.java
7755         (paint): Implemented. Explictly paint the heavyweight peer.
7756         (update): Clear the background for heavyweight components.
7757         (paintAll): No need to call peer.paint() anymore.
7758         (processEvent): Don't process PaintEvents here. It's now done in
7759         the peer's handleEvent().
7760         (processPaintEvent): Removed.
7761         * java/awt/Container.java
7762         (paint): No need to call super.paint(). Visit heavyweight
7763         children as well.
7764         (update): Don't clear the background here.  It's done in
7765         Component.update().
7766         (visitChildren): Added check to not recurse into Containers.
7767         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7768         (filter_expose_event_handler): New method.  Filter unwanted
7769         expose events while painting heavyweight peers.
7770         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
7771         New method. Connect filter and block pre_event_handler.
7772         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
7773         New method. Disconnect filter and unblock pre_event_handler.
7774         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
7775         New method. Invalidate and update given area.
7776         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
7777         (pre_event_handler): Add checks for unwanted expose events.
7778
7779 2004-01-26  David Jee  <djee@redhat.com>
7780
7781         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7782         (find_bg_color_widget): For GtkButton, return its child.
7783
7784 2004-01-26  Kim Ho  <kho@redhat.com>
7785
7786         * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
7787         private.
7788         (setMenuBar): Grab MenuBar height and change insets.
7789         (setBounds): Account for MenuBar height.
7790         (postInsetsChangedEvent): Ditto.
7791         (postSizeAllocateEvent): Remove.
7792         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7793         (menubar_resize_cb): Remove
7794         (setMenuBarPeer): Remove callback.
7795         (getMenuBarHeight): Use size requisition instead of
7796         allocation.
7797
7798 2004-01-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
7799
7800         * java/awt/TextArea.java: Fix indentation.  Flesh out javadocs.
7801         (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
7802         when peer is null.
7803         (setColumns): Remove FIXME -- peer will retrieve number of
7804         columns by calling getColumns.
7805         (setRows): Likewise for number of rows.
7806         (next_text_number): New field.
7807         (paramString): Fix param string.
7808         (generateName): New method.
7809         (getUniqueLong): New method.
7810
7811 2004-01-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
7812
7813         * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
7814         image observer of image loading status.
7815         (getImage (String)): Start image production.
7816         (getImage (URL)): Likewise.
7817
7818 2004-01-25  Michael Koch  <konqueror@gmx.de>
7819
7820         * java/lang/Class.java: Imports reworked, reformated.
7821         (Class): Javadoc added.
7822         (forName): Likewise.
7823         (getClasses): Likewise.
7824         (getClassLoader): Likewise.
7825         (getComponentType): Likewise.
7826         (getConstructor): Likewise.
7827         (getConstructors): Likewise.
7828         (getDeclaredConstructor): Likewise.
7829         (getDeclaredClasses): Likewise.
7830         (getDeclaredConstructors): Likewise.
7831         (getDeclaredField): Likewise.
7832         (getDeclaredMethod): Likewise.
7833         (getDeclaredMethods): Likewise.
7834         (getDeclaringClass): Likewise.
7835         (getField): Likewise.
7836         (getInterfaces): Likewise.
7837         (getMethod): Likewise.
7838         (getMethods): Likewise.
7839         (getModifiers): Likewise.
7840         (getName): Likewise.
7841         (getResource): Likewise.
7842         (getResourceAsStream): Likewise.
7843         (getSigners): Likewise.
7844         (setSigners): Likewise.
7845         (getSuperclass): Likewise.
7846         (isArray): Likewise.
7847         (isAssignableFrom): Likewise.
7848         (isInstance): Likewise.
7849         (isInterface): Likewise.
7850         (isPrimitive): Likewise.
7851         (newInstance): Likewise.
7852         (getProtectionDomain): Likewise.
7853         (toString): Likewise.
7854         (Class): Moved.
7855         (initializeClass): Likewise.
7856         (finalize): Likewise.
7857
7858 2004-01-24  Michael Koch  <konqueror@gmx.de>
7859
7860         * gnu/java/net/protocol/jar/Connection.java
7861         (hdrHash): Removed.
7862         (hdrVec): Removed.
7863         (gotHeaders): Removed.
7864         (getHeaderField): Removed.
7865         (getHeaderFields): Removed.
7866         (getHeaderFieldKey): Removed.
7867         (getKey): Removed.
7868         (getField): Removed.
7869         (getHeaders): Removed.
7870
7871 2004-01-24  Michael Koch  <konqueror@gmx.de>
7872
7873         * Makefile.am: Added library version to gtk peer lib.
7874         * Makefile.in: Regenerated.
7875
7876 2004-01-24  Michael Koch  <konqueror@gmx.de>
7877
7878         * java/util/zip/InflaterInputStream.java: Merged class documentation
7879         with classpath.
7880
7881 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
7882
7883         * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
7884         header.  For __powerpc64__ provide the default-signal.h definitions
7885         for now.
7886         * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
7887         instead of the dummy definitions.
7888         * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
7889         (powerpc64*-*): Remove with_libffi_default.
7890         Only add -mminimal-toc for 64-bit compilations.
7891         * configure.in: Use powerpc-signal.h on powerpc64 as well.
7892         (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
7893         Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
7894         * configure: Rebuilt.
7895
7896 2004-01-23  Michael Koch  <konqueror@gmx.de>
7897
7898         * gnu/java/nio/FileLockImpl.java: Compile fixes.
7899
7900 2004-01-23  Michael Koch  <konqueror@gmx.de>
7901
7902         * java/lang/VMClassLoader.java: Reworked imports.
7903         
7904 2004-01-23  Michael Koch  <konqueror@gmx.de>
7905
7906         * javax/swing/AbstractAction.java: Reformated.
7907
7908 2004-01-23  Michael Koch  <konqueror@gmx.de>
7909
7910         * java/text/CollationElementIterator.java:
7911         (setText): New method.
7912
7913 2004-01-23  Michael Koch  <konqueror@gmx.de>
7914
7915         * gnu/java/nio/FileLockImpl.java:
7916         Fixed filename in copyright.
7917         (released): Removed.
7918         (finalize): New method.
7919         * gnu/java/nio/natFileLockImpl.cc
7920         (releaseImpl): Implemented.
7921         * java/nio/channels/FileChannelImpl.java:
7922         Reworked imports.
7923         (lock): Implemented.
7924         (lockImpl): New method.
7925         (tryLock): Implemented.
7926         (tryLockImpl): New method.
7927         * java/nio/channels/natFileChannelImpl.cc
7928         (lockImpl): New method.
7929         (tryLockImpl): New method.
7930
7931 2004-01-23  Michael Koch  <konqueror@gmx.de>
7932
7933         * java/io/FileDescriptor.java
7934         (lock): New method.
7935         (tryLock): New method.
7936         (unlock): New method.
7937         * java/io/natFileDescriptorEcos.cc
7938         (lock): New method.
7939         (tryLock): New method.
7940         (unlock): New method.
7941         * java/io/natFileDescriptorPosix.cc
7942         (lock): New method.
7943         (tryLock): New method.
7944         (unlock): New method.
7945         * java/io/natFileDescriptorWin32.cc
7946         (lock): New method.
7947         (tryLock): New method.
7948         (unlock): New method.
7949
7950 2004-01-23  Michael Koch  <konqueror@gmx.de>
7951
7952         * java/io/FileDescriptor.java
7953         (sync): Moved around, added javadoc.
7954         (valid): Likewise.
7955         (open): Likewise.
7956         (write): Likewise.
7957         (close): Likewise.
7958         (setLength): Likewise.
7959         (seek): Likewise.
7960         (getLength): Likewise.
7961         (getFilePointer): Likewise.
7962         (read): Likewise.
7963         (available): Likewise.
7964         (finalize): Likewise.
7965
7966 2004-01-23  Michael Koch  <konqueror@gmx.de>
7967
7968         * javax/swing/AbstractAction.java: Reformated.
7969         (getPropertyChangeListeners): New method.
7970         * javax/swing/AbstractCellEditor.java: Reformated.
7971         (getCellEditorListeners): New method.
7972         * javax/swing/DefaultListSelectionModel.java
7973         (listenerList): New field.
7974         (listeners): Removed.
7975         (get_listeners): Removed.
7976         (addListSelectionListener): Rewritten.
7977         (removeListSelectionListener): Rewritten.
7978         (getListSelectionListeners): New method.
7979         (getListeners): New method.
7980         * javax/swing/JComboBox.java: Imports reworked.
7981         (addActionListener): Implemented.
7982         (removeActionListener): Implemented.
7983         (addItemListener): Implemented.
7984         (removeItemListener): Implemented.
7985         (addPopupMenuListener): Implemented.
7986         (removePopupMenuListener): Implemented.
7987         (getActionListeners): New method.
7988         (getItemListeners): New method.
7989         (getPopupMenuListeners): New method.
7990
7991 2004-01-23  Michael Koch  <konqueror@gmx.de>
7992
7993         * gnu/java/net/protocol/http/Connection.java
7994         (connect): Don't initialize bufferedOutputStream if not needed.
7995         (sendRequest): Set property for content length if content is present.
7996         Write content only if present.
7997         (getOutputStream): Check if already connected, dont connect,
7998         initalize bufferedOutputStream if needed.
7999
8000 2004-01-23  Michael Koch  <konqueror@gmx.de>
8001
8002         * java/io/FileDescriptor.java
8003         (in, out, err): Added javadoc.
8004         (static): Merged loading code.
8005         (fd, position): Moved around.
8006
8007 2004-01-23  Michael Koch  <konqueror@gmx.de>
8008
8009         * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
8010         New file.
8011
8012 2004-01-23  Michael Koch  <konqueror@gmx.de>
8013
8014         * java/lang/Class.java,
8015         java/lang/Object.java,
8016         java/lang/Thread.java: Merged copyright with classpath.
8017
8018 2004-01-23  Michael Koch  <konqueror@gmx.de>
8019
8020         * java/io/FileDescriptor.java: Merged copyright with classpath to
8021         start merging this class.
8022
8023 2004-01-22  Tom Tromey  <tromey@redhat.com>
8024
8025         PR libgcj/13107:
8026         * testsuite/libjava.lang/pr13107_2.xfail: New file.
8027         * testsuite/libjava.lang/pr13107_3.xfail: New file.
8028         * testsuite/libjava.lang/pr13107_3.java: New file.
8029         * testsuite/libjava.lang/pr13107_3.out: New file.
8030         * testsuite/libjava.lang/pr13107_2.java: New file.
8031         * testsuite/libjava.lang/pr13107_2.out: New file.
8032         * testsuite/libjava.lang/pr13107.java: New file.
8033         * testsuite/libjava.lang/pr13107.out: New file.
8034         * verify.cc (jsr_ptrs): Removed.
8035         (entry_points): Likewise.
8036         (struct subr_info): Likewise.
8037         (struct subr_entry_info): Likewise.
8038         (type_val::unused_by_subroutine_type): Likewise.
8039         (type::merge): Don't handle unused_by_subroutine_type.
8040         (type::print): Likewise.
8041         (state::flags): Removed.
8042         (state::subroutine): Likewise.
8043         (state::seen_subrs): Likewise.
8044         (state::NO_STACK): Likewise.
8045         (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
8046         (state): Updated all methods.
8047         (state::clean_subrs): Removed.
8048         (state::state): Removed `ret_semantics' flag.
8049         (state::copy): Likewise.
8050         (state::add_subr): Removed.
8051         (state::enter_subroutine): Likewise.
8052         (type::set_return_address): New method.
8053         (handle_jsr_insn): Set return address on the type.  Always
8054         invalidate PC after call.
8055         (check_nonrecursive_call): Removed.
8056         (~_Jv_BytecodeVerifier): Updated.
8057         (branch_prepass): Removed special handling of jsr.
8058         (note_branch_target): Likewise.
8059         (get_subroutine): Removed.
8060         (state::merge): Don't merge subroutines and don't handle
8061         NO_STACK.  Removed ret_semantics and jsr_semantics arguments.
8062         (state::note_variable): Removed.
8063         (state::is_unmerged_ret_state): Likewise.
8064         (state::print): Updated.
8065         (set_variable): Likewise.
8066         (merge_into): Renamed from push_jump_merge.  Removed ret_semantics
8067         and jsr_semantics arguments.  Updated for new reverification
8068         list.
8069         (pop_jump): Rewrote.
8070         (construct_primitive_array_type): Updated.
8071         (state::next): Removed.
8072         (INVALID_STATE): New define.
8073         (state::INVALID): Removed.
8074         (state::NO_NEXT): New value.
8075         (state::pc, state::next): New fields.
8076         (state::get_pc): New method.
8077         (next_verify_pc): Removed.
8078         (next_verify_state): New field.
8079         (verify_instructions_0): Always check for falling off end.
8080         (linked): New type.
8081         (linked_utf8): Removed.
8082         (states): Changed type.
8083         (type::state_mergeable_p): New method.
8084         (state::state_mergeable_p): Likewise.
8085         (handle_ret_insn): Removed most code.
8086         (state::reverify): New method.
8087         (add_new_state): Likewise.
8088         (state::set_pc): Likewise.
8089
8090 2004-01-22  Jeff Sturm  <jsturm@one-point.com>
8091
8092         PR java/13733
8093         * testsuite/libjava.compile/PR13733.java: New file.
8094         * testsuite/libjava.compile/PR13733.xfail: New file.
8095
8096 2004-01-22  Arnaud Vandyck  <arnaud.vandyck@ulg.ac.be>
8097             Michael Koch  <konqueror@gmx.de>
8098
8099         * javax/swing/table/DefaultTableCellRenderer.java
8100         (DefaultTableCellRenderer): Added javadoc for the class and for
8101         the constructor, Border instance, create an EmptyBorder.
8102         (UIResource): Removed the comment at the end of the class
8103         (setForeground): New method.
8104         (setBackground): New method.
8105         (updateUI): New method.
8106         (getTableCellRendererComponent): Rewritten with the help of
8107         dvholten and Stephane Meslin-Weber.
8108         (validate): New method.
8109         (repaint): New method.
8110         (firePropertyChange): New method.
8111         (setValue): New method.
8112
8113 2004-01-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
8114
8115         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8116         (connectJObject): Replace printf calls with g_assert statements.
8117         Move property-notify-event signal connection to ...
8118         (connectSignals): Connect property-notify-event signal.  Iterate
8119         through the vbox's children to find layout.
8120
8121 2004-01-22  Graydon Hoare  <graydon@redhat.com>
8122         
8123         * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java: 
8124         * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
8125         Predicate static initialization on GtkToolkit.useGraphics2D().
8126         * java/awt/Component.java (processPaintEvent): Consume event.
8127         * javax/swing/AbstractButton.java: Reimplement, document.
8128         * javax/swing/DefaultButtonModel.java: Reimplement, document.
8129         * javax/swing/JComponent.java (paint): Use double buffer.
8130         (listenerList): Enable member.
8131         * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
8132         * javax/swing/JToggleButton.java 
8133         (JToggleButton): Modify model constructor.
8134         * javax/swing/SwingUtilities.java 
8135         (layoutCompoundLabel): Adjust arithmetic.
8136         * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
8137         * javax/swing/plaf/basic/BasicGraphicsUtils.java 
8138         (getPreferredButtonSize): Include margins in calculation.
8139         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8140         (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
8141         Receive up events from subordinate layout component.
8142
8143 2004-01-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
8144
8145         * java/awt/Component.java (show): Set visible to true before
8146         showing the peer.
8147
8148 2004-01-21  Kim Ho  <kho@redhat.com>
8149
8150         * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
8151         Fix comments.
8152         (removeMenuBarPeer): Make package private.
8153         (setMenuBarPeer): Make package private.
8154         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8155         (menubar_resize_cb): Mark attributes unused.
8156         (getMenuBarHeight): ditto.
8157
8158 2004-01-21  David Jee  <djee@redhat.com>
8159
8160         * java/awt/Container.java
8161         (LightweightDispatcher.handleEvent): Add an extra check to avoid
8162         dispatching MOUSE_ENTERED event twice. Translate the point for
8163         the mouse event target before dispatching the event.
8164
8165 2004-01-20  Jakub Jelinek  <jakub@redhat.com>
8166
8167         * Makefile.am (lib_org_w3c_dom_la_LIBADD,
8168         lib_org_w3c_dom_la_LDFLAGS): New.
8169         (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
8170         * Makefile.in: Rebuilt.
8171
8172 2004-01-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
8173
8174         * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
8175         Calculate proper offsets for heavyweight components packed in
8176         lightweight containers.
8177
8178         * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
8179         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
8180         (native create): Add width parameter.
8181         (create): Calculate text entry width based on current font's
8182         metrics and number of columns.  Set TextField's font if not
8183         already set.  Call native create.
8184         (gtkEntryGetBorderWidth): New native method.
8185         (gtkEntryGetSize): Remove method.
8186         (getMinimumSize): Call minimumSize.
8187         (getPreferredSize): Call preferredSize.
8188         (minimumSize): Calculate minimum size based on backing
8189         GtkEntry's borders, font metrics and number of columns.
8190         (preferredSize): Likewise for preferred size.
8191         (get_border_width): New static function.
8192
8193         * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
8194         Override GtkWindowPeer's setResizable method to account for menu
8195         bar height when setting the frame's size.
8196
8197 2004-01-19  Matthias Klose  <doko@debian.org>
8198
8199         * libtool-version: Increased `current' to 6.
8200
8201 2004-01-19  Kim Ho  <kho@redhat.com>
8202
8203         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8204         (connectJObject): Iterate through the vbox's children to find layout.
8205
8206 2004-01-19  Fernando Nasser  <fnasser@redhat.com>
8207
8208         * java/awt/EventQueue.java (invokeAndWait): Use list-aware
8209         isDispatchThread method to replace wrong test condition.
8210
8211 2004-01-19  Fernando Nasser  <fnasser@redhat.com>
8212
8213         * java/awt/EventQueue.java (pop): Prevent racing condition to add
8214         events to the queue out of order by acquiring locks in the proper
8215         order and not by releasing one before acquiring the other.
8216
8217 2004-01-19  Fernando Nasser  <fnasser@redhat.com>
8218
8219         * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
8220         visible so that dialog can be reused.
8221
8222 2004-01-19  Fernando Nasser  <fnasser@redhat.com>
8223
8224         * java/awt/EventQueue.java (getCurrentEvent): Consider that system
8225         events may be handled by any queue in the stack.
8226
8227 2004-01-19  Kim Ho  <kho@redhat.com>
8228
8229         * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
8230         MenuBarPeer parameter.
8231         (removeMenuBarPeer): New native method.
8232         (setMenuBar): Call remove if menu bar is null. Adjust insets
8233         appropriately.
8234         (postSizeAllocateEvent): New method. Called when menu bar size is
8235         allocated. Adjust insets and redo layout.
8236         (GtkFramePeer): Set menu bar during frame creation.
8237         (postConfigureEvent): Adjust position and size to accomodate
8238         menu bar.
8239         * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
8240         * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
8241         (addNotify): Create the peer if it doesn't exist and call addNotify
8242         for the menu's items.
8243         * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
8244         * java/awt/MenuItem.java (addNotify): Create the peer if it
8245         doesn't exist.
8246         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8247         (removeMenuBarPeer): New method. Remove menu bar on the current
8248         frame.
8249         (setMenuBarPeer): Add the menu bar to the current frame and the
8250         callback for size-allocate events on the menu bar.
8251         (getMenuBarHeight): Add menu bar parameter.
8252         (menubar_resize_cb): New callback method for postSizeAllocate events.
8253
8254         Also: Fix indentation on last ChangeLog entry.
8255
8256 2004-01-16  Kim Ho  <kho@redhat.com>
8257
8258         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8259         (gtkWidgetGetDimensions): Remove.
8260         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8261         (gtkWidgetGetDimensions): Remove.
8262
8263 2004-01-16  Tom Tromey  <tromey@redhat.com>
8264
8265         * java/awt/Container.java: Typo and indentation fixes.
8266
8267         * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
8268         * java/lang/natVMClassLoader.cc: ...here.  New file.
8269         * Makefile.in: Rebuilt.
8270         * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
8271
8272 2004-01-16  Fernando Nasser  <fnasser@redhat.com>
8273
8274         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
8275         Discard GDK_ENTER_NOTIFY related to ungrabs.
8276
8277 2004-01-16  Fernando Nasser  <fnasser@redhat.com>
8278
8279         * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
8280         is called for an intermediate queue.
8281
8282 2004-01-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
8283
8284         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8285         (window_property_changed_cb): Set id_set.
8286
8287 2004-01-16  Kim Ho  <kho@redhat.com>
8288
8289         * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
8290         it is a FileDialog and has dimensions of 0 by 0, then the initial
8291         size is set to size request plus insets.
8292         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
8293         (gtkWidgetGetDimensions): Override method.
8294         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8295         (gtkWidgetGetDimensions): Override method. Returns size request plus
8296         insets.
8297
8298 2004-01-16  Andrew Haley  <aph@redhat.com>
8299
8300         * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
8301         * sysdep/i386/locks.h: Likewise.
8302
8303 2004-01-16  Fernando Nasser  <fnasser@redhat.com>
8304
8305         * java/awt/EventDispatchThread.java (run): Stop running when
8306         interrupted.
8307         * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
8308         Reset the queue after transferring its contents.
8309         (push): Start a new dispatch thread if none is running.
8310
8311 2004-01-16  Olga Rodimina <rodimina@redhat.com>
8312
8313         * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8314         (doPolygon): set fill rule of polygon to 
8315         WIND_EVEN_ODD by default.
8316
8317 2004-01-15  Olga Rodimina <rodimina@redhat.com>
8318
8319         * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8320         Implemented rendering hints related methods.
8321         (getDefaultHints): New helper method. Returns
8322         default rendering hints.
8323         (walkPath): changed to normalize path if
8324         the KEY_STROKE_CONTROL key is in "normalize" mode.
8325         (draw3DRect): changed coordinates of rectangle by +0.5
8326         if in "normalize" mode.
8327
8328 2004-01-15  Tom Tromey  <tromey@redhat.com>
8329
8330         * Makefile.in: Rebuilt.
8331         * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
8332         (%.lo: %.java) Filter out StackTrace.lo.
8333
8334 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
8335
8336         * configure.in: Add in AC_PREREQ(2.13)
8337         * libltdl/configure.ac: Update to AC_PREREQ(2.57).  Delete 
8338         FIXME comment.
8339
8340 2004-01-14  Nathan Bryant  <nbryant@optonline.net>
8341             Tom Tromey  <tromey@redhat.com>
8342
8343         PR libgcj/12001:
8344         * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
8345         array to superclass.
8346         (init): Changed interface; add URLs here.
8347         (initialize): New static method.
8348         * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
8349         (_Jv_RunMain): ... not here.
8350
8351 2004-01-14  Michael Koch  <konqueror@gmx.de>
8352
8353         * java/text/MessageFormat.java:
8354         Added descriptions to exceptions.
8355         This fixes PR libgcj/2429.
8356
8357 2004-01-13  Fernando Nasser  <fnasser@redhat.com>
8358
8359         * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
8360         (push): Make sure push is performed at the top of the thread stack.
8361
8362 2004-01-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
8363
8364         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
8365         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8366         (native create): Add width and height parameters.  Set text
8367         view's size request according to new parameters.
8368         (create): Calculate text view size based on current font's
8369         metrics and number of rows and columns.  Set TextArea's font if
8370         not already set.  Call native create.
8371         (getMinimumSize): Call minimumSize.
8372         (getPreferredSize): Call preferredSize.
8373         (getHScrollbarHeight): New method.
8374         (getVScrollbarWidth): New method.
8375         (minimumSize): Calculate minimum size based on scrollbar
8376         visibility, scrollbar sizes, font metrics and number of rows and
8377         columns.
8378         (preferredSize): Likewise for preferred size.
8379         (gtkTextGetSize): Remove method.
8380
8381 2004-01-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
8382
8383         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8384         (initializeInsets): Remove method.
8385         (GtkComponentPeer): Initialize insets field.  Remove call to
8386         initializeInsets.
8387         * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
8388         Remove method.
8389         * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
8390         Remove method.
8391         * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
8392         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
8393         (latestInsets): Remove field.
8394         (native create): Add insets parameter.  Call
8395         window_get_frame_extents.  Set the window's default size and
8396         size request based on its frame extents.
8397         (create): Initialize insets.
8398         (postInsetsChangedEvent): New method.
8399         (postConfigureEvent): Remove parameters top, left, bottom,
8400         right.  Remove insets-related logic.
8401         (connectJObject): Handle property-notify-event.
8402         (window_get_frame_extents, request_frame_extents,
8403         property_notify_predicate, window_property_changed_cb): New
8404         static functions.
8405         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8406         (pre_event_handler): Remove insets-related logic for configure
8407         events.
8408         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
8409         Update postConfigureEvent signature.
8410
8411 2004-01-13  Fernando Nasser  <fnasser@redhat.com>
8412  
8413         * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
8414         to handle Window "Closing" events.
8415  
8416 2004-01-13  David Jee  <djee@redhat.com>
8417
8418         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8419         (setBackground): New method. Children with no explicitly-set
8420         background will be repainted with the parent container's new
8421         background color.
8422
8423 2004-01-13  David Jee  <djee@redhat.com>
8424
8425         * Makefile.am: Add BitwiseXORComposite.java.
8426         * Makefile.in: Regenerated.
8427         * gcj/Makefile.in: Regenerated.
8428         * include/Makefile.in: Regenerated.
8429         * testsuite/Makefile.in: Regenerated.
8430
8431 2004-01-12  Fernando Nasser  <fnasser@redhat.com>
8432
8433         * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
8434         not show modal dialogs twice and so that it allows showing a modal
8435         dialog from another modal dialog.
8436
8437 2004-01-12  Fernando Nasser  <fnasser@redhat.com>
8438
8439         * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
8440         and run secondary dispatch thread to process event queue while this
8441         thread is blocked.
8442
8443 2004-01-12  Graydon Hoare  <graydon@redhat.com>
8444
8445         * gnu/java/awt/gtk/GdkGraphics2D.java
8446         (static): Check GtkToolkit before initializing static state.
8447         (Graphics2D): Don't construct transform with 0.5 unit offset.
8448
8449 2003-11-06  Sascha Brawer  <brawer@dandelis.ch>
8450
8451         * gnu/java/awt/BitwiseXORComposite.java: Add.
8452         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8453         (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
8454         (BitwiseXORComposite): Remove inner class.
8455
8456 2004-01-11  Michael Koch  <konqueror@gmx.de>
8457
8458         * gnu/java/lang/reflect/TypeSignature.java
8459         (getEncodingOfClass): Documentation fixed.
8460         (getClassForEncoding): Give class loader to Class.forName().
8461         Documentation fixed.
8462
8463 2004-01-11  Sascha Brawer  <brawer@dandelis.ch>
8464
8465         * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
8466
8467 2004-01-11  Michael Koch  <konqueror@gmx.de>
8468
8469         * javax/swing/undo/StateEditable.java
8470         (RCSID): Removed redundant modifiers.
8471
8472 2004-01-10  Michael Koch  <konqueror@gmx.de>
8473
8474         * javax/print/attribute/EnumSyntax.java
8475         (getStringTable): Made protected.
8476         (getEnumValueTable): Likewise.
8477         * javax/print/attribute/standard/JobKOctetsProcessed.java
8478         (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
8479         * javax/print/attribute/standard/JobMediaSheetsCompleted.java
8480         (JobMediaSheetsCompleted): Made class final.
8481         * javax/print/attribute/standard/OutputDeviceAssigned.java
8482         (getName): Fixed typo.
8483         * javax/print/attribute/standard/RequestingUserName.java
8484         (serialVersionUID): Fixed value.
8485
8486 2004-01-10  Michael Koch  <konqueror@gmx.de>
8487
8488         * javax/swing/plaf/basic/BasicButtonUI.java,
8489         javax/swing/plaf/basic/BasicCheckBoxUI.java,
8490         javax/swing/plaf/basic/BasicListUI.java,
8491         javax/swing/plaf/basic/BasicOptionPaneUI.java,
8492         javax/swing/plaf/basic/BasicPanelUI.java,
8493         javax/swing/plaf/basic/BasicRadioButtonUI.java,
8494         javax/swing/plaf/basic/BasicScrollPaneUI.java,
8495         javax/swing/plaf/basic/BasicToggleButtonUI.java,
8496         javax/swing/plaf/basic/BasicViewportUI.java:
8497         Fixed import statements.
8498
8499 2004-01-10  Michael Koch  <konqueror@gmx.de>
8500
8501         * gnu/java/awt/image/ImageDecoder.java
8502         (produce): Made public.
8503         * gnu/java/awt/peer/GLightweightPeer.java,
8504         gnu/java/awt/peer/gtk/GtkToolkit.java:
8505         Reformated.
8506
8507 2004-01-10  Michael Koch  <konqueror@gmx.de>
8508
8509         * javax/swing/JRadioButtonMenuItem.java,
8510         javax/swing/JSeparator.java,
8511         javax/swing/JSplitPane.java,
8512         javax/swing/JTextPane.java,
8513         javax/swing/JToolBar.java,
8514         javax/swing/ListCellRenderer.java,
8515         javax/swing/ListModel.java,
8516         javax/swing/MenuElement.java,
8517         javax/swing/OverlayLayout.java,
8518         javax/swing/ProgressMonitor.java,
8519         javax/swing/ProgressMonitorInputStream.java,
8520         javax/swing/Renderer.java,
8521         javax/swing/RootPaneContainer.java,
8522         javax/swing/Scrollable.java,
8523         javax/swing/SingleSelectionModel.java,
8524         javax/swing/ToolTipManager.java,
8525         javax/swing/ViewportLayout.java,
8526         javax/swing/event/DocumentEvent.java,
8527         javax/swing/event/SwingPropertyChangeSupport.java,
8528         javax/swing/event/TreeSelectionEvent.java,
8529         javax/swing/event/UndoableEditEvent.java,
8530         javax/swing/text/AbstractDocument.java,
8531         javax/swing/text/AttributeSet.java,
8532         javax/swing/text/Caret.java,
8533         javax/swing/text/ComponentView.java,
8534         javax/swing/text/DefaultCaret.java,
8535         javax/swing/text/DefaultEditorKit.java,
8536         javax/swing/text/Document.java,
8537         javax/swing/text/EditorKit.java,
8538         javax/swing/text/GapContent.java,
8539         javax/swing/text/Keymap.java,
8540         javax/swing/text/MutableAttributeSet.java,
8541         javax/swing/text/PlainEditorKit.java,
8542         javax/swing/text/Segment.java,
8543         javax/swing/text/Style.java,
8544         javax/swing/text/StyledDocument.java,
8545         javax/swing/text/StyledEditorKit.java,
8546         javax/swing/text/TextAction.java,
8547         javax/swing/text/View.java: Fixed import statements.
8548
8549 2004-01-08  Graydon Hoare  <graydon@redhat.com>
8550
8551         * javax/swing/JLayeredPane.java: Rewrite to accomodate
8552         djee@redhat.com's recent inverse ordering of Container elements.
8553
8554 2004-01-09  Michael Koch  <konqueror@gmx.de>
8555
8556         * gnu/java/lang/ArrayHelper.java
8557         (equalsArray): Removed.
8558
8559 2004-01-09  Andrew Haley  <aph@redhat.com>
8560
8561         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
8562         a Utf8Const field before looking at its class.
8563
8564 2004-01-09  Michael Koch  <konqueror@gmx.de>
8565
8566         * javax/print/attribute/standard/DocumentName.java,
8567         javax/print/attribute/standard/JobHoldUntil.java,
8568         javax/print/attribute/standard/JobMessageFromOperator.java,
8569         javax/print/attribute/standard/JobName.java,
8570         javax/print/attribute/standard/JobOriginatingUserName.java,
8571         javax/print/attribute/standard/OutputDeviceAssigned.java,
8572         javax/print/attribute/standard/PrinterInfo.java,
8573         javax/print/attribute/standard/PrinterLocation.java,
8574         javax/print/attribute/standard/PrinterMakeAndModel.java,
8575         javax/print/attribute/standard/PrinterMessageFromOperator.java,
8576         javax/print/attribute/standard/PrinterName.java,
8577         javax/print/attribute/standard/RequestingUserName.java: New files.
8578         * Makefile.am (javax_source_files): Added new files.
8579         * Makefile.in: Regenerated.
8580
8581 2004-01-09  Michael Koch  <konqueror@gmx.de>
8582
8583         * javax/swing/AbstractAction.java,
8584         javax/swing/AbstractSet.java,
8585         javax/swing/Action.java,
8586         javax/swing/ActionMap.java,
8587         javax/swing/BoundedRangeModel.java,
8588         javax/swing/ButtonModel.java,
8589         javax/swing/CellEditor.java,
8590         javax/swing/CellRendererPane.java,
8591         javax/swing/ComboBoxEditor.java,
8592         javax/swing/DebugGraphics.java,
8593         javax/swing/DefaultCellEditor.java,
8594         javax/swing/DefaultCellRenderer.java,
8595         javax/swing/DefaultComboBoxModel.java,
8596         javax/swing/DefaultDesktopManager.java,
8597         javax/swing/DefaultFocusManager.java,
8598         javax/swing/DefaultListCellRenderer.java,
8599         javax/swing/Icon.java,
8600         javax/swing/JButton.java,
8601         javax/swing/JCheckBoxMenuItem.java,
8602         javax/swing/JDesktopPane.java,
8603         javax/swing/JEditorPane.java,
8604         javax/swing/JMenu.java,
8605         javax/swing/JPanel.java,
8606         javax/swing/JPasswordField.java,
8607         javax/swing/JPopupMenu.java,
8608         javax/swing/JProgressBar.java: Reworked imports.
8609
8610 2004-01-09  Michael Koch  <konqueror@gmx.de>
8611
8612         * java/awt/geom/PathIterator.java
8613         (WIND_EVEN_ODD): Removed redundant modifiers.
8614         (WIND_NON_ZERO): Likewise.
8615         (SEG_MOVETO): Likewise.
8616         (SEG_LINETO): Likewise.
8617         (SEG_QUADTO): Likewise.
8618         (SEG_CUBICTO): Likewise.
8619         (SEG_CLOSE): Likewise.
8620         * java/awt/image/SinglePixelPackedSampleModel.java:
8621         Removed redundant semicolon.
8622         * java/io/ObjectInputStream.java
8623         (inputGetObjectStreamClasses): Removed unused variable "ret_val".
8624         * java/util/logging/Filter.java
8625         (isLoggable): Removed redundant modifier.
8626         * java/util/logging/LogManager.java:
8627         Removed redundant semicolon.
8628         * java/util/logging/XMLFormatter.java
8629         (format): Removed unused variable "key".
8630
8631 2004-01-08  Fernando Nasser  <fnasser@redhat.com>
8632
8633         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
8634         New name for the former setFile native method.
8635         (setFile): New method.
8636         (setDirectory): Implemented.
8637         (connectSignals): New native method.
8638         (setFilenameFilter): Improve comment.
8639         (getGraphics): Comment.
8640         (gtkHideFileDialog): New method.
8641         (gtkDisposeFileDialog): New method.
8642         (gtkSetFilename): New method.
8643         * java/awt/Dialog.java (show): Block on modal dialogs, but only
8644         for FileDialog for now.
8645         (hide): New method.
8646         (dispose): New method.
8647         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8648         (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
8649         deprecated creation functions.  Make dialog modal.  Add it to the
8650         window group.
8651         (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
8652         function.
8653         (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
8654         Rename to...
8655         (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
8656         name.
8657         (window_closed): New function.
8658         (ok_clicked): New function.
8659         (cancel_clicked): New function.
8660
8661 2004-01-08  Michael Koch  <konqueror@gmx.de>
8662
8663         * javax/swing/JLayeredPane.java: Revert changes to standard
8664         boilerplate, reworked imports.
8665
8666 2004-01-07  Tom Tromey  <tromey@redhat.com>
8667
8668         PR libgcj/13439:
8669         * verify.cc (state::merge): Copy changed locals out of subroutine
8670         in NO_STACK case.
8671         (state::FLAG_CHANGED): New const.
8672         (state::FLAG_UNUSED): Likewise.
8673         (state::local_changed): Removed.  Updated all users.
8674         (state::flags): New field.
8675         (state::merge): Added jsr_semantics argument, more logic.
8676         (push_jump_merge): Added jsr_semantics argument.
8677         (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
8678         merging through the jsr instruction.
8679
8680 2004-01-07  Tom Tromey  <tromey@redhat.com>
8681
8682         * scripts/MakeDefaultMimeTypes.java: Use \n, not
8683         backslash-newline.
8684
8685 2004-01-07  Graydon Hoare  <graydon@redhat.com>
8686
8687         * java/awt/Container.java (LightweightDispatcher): Implement.
8688         (visitChild): Reuse graphics object.
8689         (dispatchEventImpl): Optionally dispatch to lightweight.
8690         (addNotifyContainerChildren): Build LightweightDispatcher.
8691
8692 2004-01-07  David Jee  <djee@redhat.com>
8693
8694         * java/awt/Container.java
8695         (update): Clear only the clipped region, instead of clearing the
8696         entire Container.
8697         (visitChildren): Visit children in descending order.
8698
8699 2004-01-07  Michael Koch  <konqueror@gmx.de>
8700
8701         * java/lang/reflect/Array.java: Merged documentation with classpath.
8702
8703 2004-01-07  Michael Koch  <konqueror@gmx.de>
8704
8705         * java/text/CollationElementIterator.java
8706         (textIndex): Renamed from index.
8707         * java/text/CollationKey.java
8708         (collator): New member.
8709         (CollationKey): New argument for parent collator.
8710         (equals): Check for same collator, source string and key array.
8711         * java/text/RuleBasedCollator.java:
8712         Reformated.
8713         (RuleBasedCollator): Don't re-initialize frenchAccents with default
8714         value.
8715         (getCollationElementIterator): Rewritten.
8716         (getCollationKey): Added new argument to CollationKey constructor.
8717
8718 2004-01-07  Michael Koch  <konqueror@gmx.de>
8719
8720         * gnu/java/nio/DatagramChannelImpl.java
8721         (blocking): Removed.
8722         (DatagramChannelImpl): Call configureBlocking().
8723         (implConfigureBlocking): Dont initialize blocking.
8724         * gnu/java/nio/ServerSocketChannelImpl.java
8725         (blocking): Removed.
8726         (ServerSocketChannelImpl): Call configureBlocking().
8727         (implConfigureBlocking): Dont initialize blocking.
8728         * gnu/java/nio/SocketChannelImpl.java
8729         (blocking): Removed.
8730         (SocketChannelImpl): Call configureBlocking().
8731         (implConfigureBlocking): Dont initialize blocking.
8732         (connect): Use isBlocking().
8733         * java/nio/channels/spi/AbstractSelectableChannel.java
8734         (configureBlocking): Use blockingLock() instead of LOCK.
8735         Set blocking after successfully called implConfigureBlocking().
8736         (register): Use blockingLock() instead of LOCK.
8737
8738 2004-01-07  Michael Koch  <konqueror@gmx.de>
8739
8740         * java/net/ServerSocket.java (isBound): Fixed documentation.
8741
8742 2004-01-07  Sascha Brawer  <brawer@dandelis.ch>
8743
8744         * javax/swing/DefaultBoundedRangeModel.java: Documented API.
8745         (changeEvent): Create event object on demand.
8746         (DefaultBoundedRangeModel, toString, setValue, setExtent,
8747         setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
8748         fireStateChanged): Re-written.
8749         * javax/swing/event/EventListenerList.java: Reformatted, document
8750         typical usage.
8751         (toString): Implemented.
8752         (getListeners): Re-written.
8753         (remove): Re-written.
8754         (add): Re-written.
8755         (NO_LISTENERS): New singleton field.
8756         (listenerList): Declare as transient; document.
8757         (serialVersionUID): Document.
8758         (getListenerCount(Class)): More efficient implementation,
8759         also accepts null argument.  Improve Javadoc.
8760         (getListenerCount()): Remove unnecessary cast; docfix.
8761         * javax/swing/undo/UndoableEditSupport.java:
8762         Re-format, document.
8763         (UndoableEditSupport): Set realSource field. Improve documentation.
8764         (_postEdit): Iterate over cloned listener vector.
8765         (toString): Don't emit realSource.
8766         (beginUpdate, endUpdate): Support nested updates.
8767         (postEdit): Use compound edit if present.
8768
8769 2004-01-06  Graydon Hoare  <graydon@redhat.com>
8770
8771         * java/awt/Container.java (swapComponents): Add forgotten
8772         function, required for JLayeredPane change.
8773
8774 2004-01-06  Michael Koch  <konqueror@gmx.de>
8775
8776         * java/text/CollationElementIterator.java: Reformated.
8777         (CollationElementIterator): Changed order of arguments.
8778         * java/text/RuleBasedCollator.java
8779         (RuleBasedCollator): Merged class documentation.
8780         (CollationElement): Added documentation.
8781         (compare): Reformated, renamed arguments.
8782         (equals): Likewise.
8783         (getCollationElementIterator): Likewise.
8784         (getCollationKey): Likewise.
8785
8786 2004-01-06  Graydon Hoare  <graydon@redhat.com>
8787
8788         * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
8789
8790 2004-01-06  Michael Koch  <konqueror@gmx.de>
8791
8792         * gnu/java/net/protocol/file/Connection.java:
8793         Reformated copyright.
8794         (hdrHash): Removed.
8795         (hdrVec): Removed.
8796         (gotHeaders): Removed.
8797         (getHeaderField): Removed.
8798         (getHeaderField): Removed.
8799         (getHeaderFieldKey): Removed.
8800         (getKey): Removed.
8801         (getField): Removed.
8802         (getHeaders): Removed.
8803
8804 2004-01-06  Michael Koch  <konqueror@gmx.de>
8805
8806         * javax/print/attribute/standard/DateTimeAtCompleted.java,
8807         javax/print/attribute/standard/DateTimeAtCreation.java,
8808         javax/print/attribute/standard/DateTimeAtProcessing.java,
8809         javax/print/attribute/standard/JobImpressionsCompleted.java,
8810         javax/print/attribute/standard/JobKOctets.java,
8811         javax/print/attribute/standard/JobKOctetsProcessed.java,
8812         javax/print/attribute/standard/JobMediaSheetsCompleted.java,
8813         javax/print/attribute/standard/JobPrioritySupported.java: New files.
8814         * Makefile.am (javax_source_files): Added new files.
8815         * Makefile.in: Regenerated.
8816
8817 2004-01-06  Michael Koch  <konqueror@gmx.de>
8818
8819         * java/net/URLConnection.java
8820         (contentHandler): Removed.
8821         (locale): Removed.
8822         (getHeaderFields): Return an empty map instead of null.
8823         (getContent): Connect if needed, renamed "cType" to "type" and
8824         "contentHandler" to "ch" and made it a local variable.
8825         (getPermission): Don't use package in class name.
8826         (setDefaultRequestProperty): Fixed typo in documentation.
8827         (initializeDateFormats): Made locale a local variable.
8828
8829 2004-01-06  Michael Koch  <konqueror@gmx.de>
8830
8831         * java/lang/Package.java
8832         (getPackage): Get the current class loader directly.
8833         * java/lang/SecurityManager.java
8834         (currentLoadedClass): Dont iterate over class contexts.
8835         (classLoaderDepth): Don't check class loaders if everything is allowed.
8836
8837 2004-01-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
8838
8839         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8840         (pre_event_handler): Set all insets to 0 when a Configure event
8841         is received for a GtkPlug.
8842         * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
8843         Make handle long, not int.
8844         (EmbeddedWindow()): New constructor.
8845         (EmbeddedWindow(int)): Rename window_id to handle.  Make handle
8846         long, not int.
8847         (setHandle): New method.
8848         (getHandle): Return long, not int.
8849         * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
8850         declaration.
8851         * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
8852         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
8853         (create(long)): Take long parameter, not int.  Cast gtk_plug_new
8854         argument to GdkNativeWindow.
8855         (construct): New method.
8856         (embed): New method.
8857
8858         * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
8859         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
8860         (create(int, int)): New method.
8861         (create): Call new create method.
8862         (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
8863         methods.
8864         (childResized): Remove native implementation.  Implement in
8865         Java.
8866         (getHScrollbarHeight, getVScrollbarWidth): Call
8867         gtk_widget_size_request to get scrollbar dimensions.
8868         * java/awt/ScrollPane.java (getViewportSize): Reimplement.  Only
8869         call getVScrollbarWidth and getHScrollbarHeight when vertical
8870         and horizontal scrollbars respectively are needed.
8871         (doLayout): Enlarge child if it is smaller than the viewport.
8872
8873 2004-01-05  Fernando Nasser  <fnasser@redhat.com>
8874
8875         * java/awt/Dialog.java (constructor): Accept null title as per spec.
8876         * java/awt/FileDialog.java (constructor): Throw exception on invalid
8877         argument as per spec.
8878
8879 2004-01-05  Fernando Nasser  <fnasser@redhat.com>
8880
8881         * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
8882         (insert): Ditto.
8883         (remove): Ditto.  Also, Check for valid argument.
8884         (removeAll): Use peer interface method.
8885         * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
8886         native add function.
8887         (nativeRemove): New name for native remove function.
8888         (getHistory): New native function.
8889         (constructor): Generate ItemEvent.
8890         (add): Ditto, if selection is changed.
8891         (remove): Ditto, ditto.
8892         (removeAll): Add implementation.
8893         (handleEvent): Remove.  Dead code.
8894         (choicePostItemEvent): Add comment.
8895         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8896         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
8897         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
8898         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name.  Add
8899         comments and fix condition to change selection.
8900         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
8901         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name.  Add
8902         remove all capability.
8903         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
8904         (item_activate): Add cast to remove compiler warning.
8905
8906 2004-01-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
8907
8908         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
8909         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8910         (getPreferredSize): Call preferredSize.
8911         (preferredSize): Call gtkWidgetGetPreferredDimensions.
8912         (getMinimumSize): Call minimumSize.
8913         (minimumSize): Call gtkWidgetGetPreferredDimensions.
8914         (gtkWidgetGetDimensions): Return the peer widget's current size
8915         request.
8916         (gtkWidgetGetPreferredDimensions): Return the peer widget's
8917         natural size request.
8918
8919 2004-01-05  Sascha Brawer  <brawer@dandelis.ch>
8920
8921         Thanks to Brian Gough <bjg@network-theory.com>
8922         * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
8923         * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
8924
8925 2004-01-04  Matthias Klose  <doko@debian.org>
8926
8927         * aclocal.m4: Rebuilt using "aclocal -I .".
8928         * configure: Rebuilt.
8929
8930 2004-01-03  Per Bothner  <per@bothner.com>
8931
8932         * java/util/Date.java (parse):  Fix a number of problems.
8933         (skipParens):  Remove no-longer-needed method.
8934