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