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