OSDN Git Service

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