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