1 2004-10-16 Michael Koch <konqueror@gmx.de>
3 * libjava/gnu/java/nio/charset/UTF_16.java,
4 libjava/gnu/java/nio/charset/UTF_16BE.java,
5 libjava/gnu/java/nio/charset/UTF_16LE.java,
6 libjava/java/nio/ByteOrder.java,
7 libjava/java/nio/MappedByteBuffer.java,
8 libjava/java/nio/channels/Channels.java,
9 libjava/java/nio/channels/spi/SelectorProvider.java,
10 libjava/java/nio/charset/Charset.java:
13 2004-10-16 Michael Koch <konqueror@gmx.de>
15 * gnu/java/nio/charset/UTF_16Encoder.java
16 (UTF_16Encoder): Fixed maxBytesPerChar handling.
18 2004-10-16 Michael Koch <konqueror@gmx.de>
20 * java/math/BigDecimal.java, java/math/BigInteger.java:
21 Reorganized import statements, removed redundant and
22 reorganized modifiers.
24 2004-10-16 Michael Koch <konqueror@gmx.de>
26 * gnu/java/beans/ExplicitBeanInfo.java:
27 Explicitely import java.awt.Image.
28 (getIcon): Fixed off-by-one error.
30 2004-10-15 Andrew Haley <aph@redhat.com>
32 * Makefile.am (nat_files, xlib_nat_files): New.
33 * Makefile.in: Regenerate.
35 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
37 * jni.cc (_Jv_JNIMethod::call): Use ffi_java_raw_call instead of
38 ffi_raw_call if FFI_NATIVE_RAW_API is not defined.
40 2004-10-13 Andrew Haley <aph@redhat.com>
42 * interpret.cc (_Jv_InterpMethod::run): Initialize
43 _Jv_StartOfInterpreter.
44 (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): Functions removed.
45 (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): New variables.
46 * gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Use
47 _Unwind_FindEnclosingFunction to discover whether PC is within the
50 2004-10-12 Rutger Ovidius <ovidr@users.sourceforge.net>
53 * testsuite/libjava.lang/md5test.java: New file.
54 * testsuite/libjava.lang/md5test.out: Likewise.
55 * testsuite/libjava.lang/shatest.java: Likewise.
56 * testsuite/libjava.lang/shatest.out: Likewise.
58 2004-10-11 Richard Henderson <rth@redhat.com>
60 * include/posix-threads.h <__alpha__> (_Jv_ThreadId_t): Use void*.
61 (_Jv_ThreadSelf): Use __builtin_thread_pointer.
63 2004-10-08 Bryce McKinlay <mckinlay@redhat.com>
65 * java/util/Calendar.java (set): Invalidate DST_OFFSET
66 field as a DST boundary may have been crossed.
67 * java/util/GregorianCalendar.java (add): Throw
68 IllegalArgumentException on attempt to add to DST_OFFSET or
69 ZONE_OFFSET fields. Update javadoc.
71 2004-10-09 Michael Koch <konqueror@gmx.de>
73 * java/io/CharArrayWriter.java
74 (resize): Removed redundant 'final' modifier.
75 * java/io/DataInputStream.java
76 (readFully): Throw IndexOutOfBoundsException of len < 0.
77 * java/io/FileDescriptor.java,
78 java/io/FileInputStream.java,
79 java/io/FileOutputStream.java,
80 java/io/ObjectOutputStream.java,
81 java/io/ObjectStreamClass.java,
82 java/io/PipedInputStream.java,
83 java/io/RandomAccessFile.java:
84 Reorganized import statements.
86 2004-10-09 Michael Koch <konqueror@gmx.de>
88 * gnu/java/rmi/rmic/RMIC.java,
89 gnu/java/rmi/server/RMIHashes.java,
90 gnu/java/rmi/server/RMIObjectInputStream.java,
91 gnu/java/rmi/server/UnicastConnection.java,
92 gnu/java/rmi/server/UnicastConnectionManager.java,
93 gnu/java/rmi/server/UnicastRemoteCall.java,
94 gnu/java/rmi/server/UnicastServerRef.java:
95 Reworked import statements and fixed file headers.
97 2004-10-04 Loren J. Rittle <ljrittle@acm.org>
99 * configure.ac (*-*-freebsd[[1234]]*): Refine error message
101 * configure: Rebuilt.
103 2004-09-30 Tom Tromey <tromey@redhat.com>
105 * java/text/MessageFormat.java (Field): Constructor now
108 2004-09-30 Tom Tromey <tromey@redhat.com>
110 * javax/crypto/MacSpi.java: Fixed typo.
112 2004-09-30 Michael Koch <konqueror@gmx.de>
114 * java/net/InetAddress.java: Reformatted.
115 (loopback): Initialize with Inet4Address object.
116 (static): Initialize ANY_IF with Inet4Address object.
117 (InetAddress): Removed unused package-private constructor.
119 2004-09-30 Michael Koch <konqueror@gmx.de>
121 * java/beans/Beans.java,
122 java/beans/EventHandler.java,
123 java/beans/EventSetDescriptor.java,
124 java/beans/Introspector.java,
125 java/beans/PropertyEditorManager.java,
126 java/beans/beancontext/BeanContext.java,
127 java/beans/beancontext/BeanContextChild.java,
128 java/beans/beancontext/BeanContextChildSupport.java,
129 java/beans/beancontext/BeanContextMembershipEvent.java:
130 Reordered import statements and removed redundant modifiers.
132 2004-09-29 Tom Tromey <tromey@redhat.com>
135 * Makefile.in: Rebuilt.
136 * Makefile.am (libgcj-@gcc_version@.jar): Include properties
138 (all_property_files): New macro.
140 * Makefile.in: Rebuilt.
141 * Makefile.am (ordinary_java_source_files): Re-sorted.
142 (libgcj.la): Moved to old location near lib-gnu-awt-xlib.la.
144 2004-09-28 Tom Tromey <tromey@redhat.com>
146 * jni.cc (_Jv_JNI_RegisterNatives): Formatting fixlets.
149 * Makefile.am (libgcj.la): Restored.
150 * Makefile.in: Rebuilt.
152 2004-09-28 Michael Koch <konqueror@gmx.de>
154 * java/net/URLConnection.java: Reformatted.
155 * java/net/URLClassLoader.java: Reformatted.
156 (getContent): Reordered return of content.
157 (getContentHandler): Don't check for null explicitely.
159 2004-09-27 Michael Koch <konqueror@gmx.de>
161 * java/io/BufferedInputStream.java
162 (BufferedInputStream): Added Jeroen Frijters to authors.
163 (count): Don't explicitely initialize with default value.
165 (marklimit): Likewise.
166 (read): Changed boolean expression to match GNU classpath' version.
167 (reset): Add proper message to exception.
168 (skip): Check for closed stream.
171 2004-09-26 Per Bothner <per@bothner.com>
173 * prims.cc (unblock_signal): Annotate signum with __unused__ to
174 avoid warnings in the non-POSIX_VERSION case.
175 Also, we only need this function if either HANDLE_SEGV or HANDLE_FPE,
176 so place it inside an #if block.
177 * include/default-signal.h (SIGNAL_HANDLER): Parameters are __unused__.
178 * include/i386-signal.h (SIGNAL_HANDLER): Likewise
179 * include/mips-signal.h (SIGNAL_HANDLER): Likewise
180 * include/sparc-signal.h (SIGNAL_HANDLER): Likewise
182 2004-09-26 Per Bothner <per@bothner.com>
184 * prims.cc (process_gcj_properties): Optimization.
186 2004-09-26 Per Bothner <per@bothner.com>
188 * java/util/Collections.java (sort): Copy from array in forwards
189 order, rather than reverse order which may be much less efficient.
191 2004-09-26 Mark Wielaard <mark@klomp.org>
193 * java/lang/System.java (properties): Make package private.
194 * java/lang/Throwable.java (StaticData.nl): Initialize through
195 directly accessing System.properties.getProperty().
197 * java/lang/Throwable.java (nl): Remove static field.
198 (StaticData): New private static inner class.
199 (stackTraceStringBuffer): Use StaticData.nl.
201 2004-09-26 Casey Marshall <csm@gnu.org>
203 * java/security/ProtectionDomain.java
204 (<init>(CodeSource,PermissionCollection)): set `staticBinding' to
207 * java/security/SecureClassLoader.java
208 (defineClass): make protection domain dynamically bound.
209 (getPermissions): call `getCurrentPolicy' to avoid permission
212 2004-09-25 Mark Wielaard <mark@klomp.org>
214 * Makefile.am (core_java_source_files): Add VMTimeZone.java.
215 (nat_source_files): Rename natTimeZone.cc to natVMTimeZone.cc.
216 * Makefile.in: Regenerated.
218 * gcj/javaprims.h: Regenerated.
220 * java/util/TimeZone.java (defaultZone): Use VMTimeZone.
221 (getDefaultTimeZone): Make package private. Check that GMToffset
222 contains at least one digit.
223 (getDefaultTimeZoneId, readTimeZoneFile, readtzFile): (Re)Moved to
225 * util/VMTimeZone.java: New file with above methods.
227 * java/util/natTimeZone.cc: Removed (renamed).
228 * java/util/natVMTimeZone.cc: Added (renamed).
230 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
232 * java/util/TimeZone.java
233 (getDefaultTimeZone): Fixed test to distinguish between hours and
234 minutes in specified timezone.
236 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
238 * java/lang/reflect/Proxy.java (getPackage, ClassFactory): Fixed
239 handling of default package. (generate): Removed confused comments
240 and code about making Method and Field accessible.
242 2004-09-25 Tom Tromey <tromey@redhat.com>
245 * testsuite/libjava.compile/pr17500.java: New file.
247 2004-09-25 Shashank Bapat <shashankbapat@yahoo.com>
248 Mark Wielaard <mark@klomp.org>
250 * gnu/regexp/RE.java (initialize): Add RETokenLookAhead support.
251 * gnu/regexp/RETokenLookAhead.java: New file.
253 * Makefile.am (ordinary_java_source_files): Add RETokenLookAhead.java.
254 * Makefile.in: Regenerated.
256 2004-09-25 Michael Koch <konqueror@gmx.de>
258 * java/io/ObjectStreamField.java:
259 Removed unused import statement.
261 2004-09-24 Tom Tromey <tromey@redhat.com>
264 * testsuite/libjava.compile/pr15656.xfail: New file.
265 * testsuite/libjava.compile/pr15656.java: new file.
268 * testsuite/libjava.lang/pr16789.out: New file.
269 * testsuite/libjava.lang/pr16789.java: New file.
271 2004-09-24 Andrew Haley <aph@redhat.com>
274 * testsuite/libjava.compile/AssertBug.java: New file.
276 2004-09-24 Casey Marshall <csm@gnu.org>
278 * java/util/PropertyPermissionCollection.java
279 (implies): avoid infinite loop.
281 2004-09-24 Andrew John Hughes <gnu_andrew@member.fsf.org>
283 * javax/security/auth/PrivateCredentialPermission.java
284 (PrivateCredentialPermission): added serialization UID
287 2004-09-24 Ilya Perminov <iperminov@logicalsoft.com>
289 * gnu/java/rmi/server/UnicastServer.java
290 (incomingMessageCall): Added code to handle Errors.
291 * gnu/java/rmi/server/UnicastServerRef.java
292 (incomingMessageCall): Added code to handle Errors.
295 2004-09-24 Tom Tromey <tromey@redhat.com>
297 * java/lang/ClassLoader.java (loadedClasses): Declare as HashMap.
298 (definedPackages): Likewise.
300 2004-09-24 Michael Koch <konqueror@gmx.de>
302 * java/io/ObjectInputStream.java:
305 2004-09-24 Casey Marshall <csm@gnu.org>
307 * java/io/ObjectInputStream.java (callReadMethod): re-throw
308 `ClassNotFoundException'.
310 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
312 * java/io/ObjectInputStream.java (readObject): Delegate instantation
313 of Externalizable classes to ObjectStreamClass.
314 * java/io/ObjectStreamClass.java (newInstance): New method to
315 instantiate Externalizable (while ignoring the accessibility of
316 the constructor). (constructor): New field to cache the constructor.
318 2004-09-24 Mark Wielaard <mark@klomp.org>
320 * java/net/URL.java (systemClassLoader): New static field.
321 (getURLStreamHandler): Always use system/application classloader
322 for finding URLStreamhandler. Remove unecessary instanceof checks.
324 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
327 (set): This method now matches the behaviour of the JDK.
328 (DEFAULT_SEARCH_PATH): Added "gnu.inet".
330 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
332 * java/net/URL.java (URL): Delete whitespaces in the protocol string.
334 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
336 * java/net/URL.java (URL(String,String,int,String,URLStreamHandler):
337 Don't set authority if host isn't specified.
339 2004-09-24 Michael Koch <konqueror@gmx.de>
341 * gnu/java/nio/PipeImpl.java: Use VMPipe for native stuff.
342 * gnu/java/nio/SelectorImpl.java: Use VMSelector for native stuff.
343 * gnu/java/nio/VMPipe.java,
344 gnu/java/nio/VMSelector.java:
346 * gnu/java/nio/natPipeImplEcos.cc,
347 gnu/java/nio/natPipeImplPosix.cc,
348 gnu/java/nio/natPipeImplWin32.cc:
350 * gnu/java/nio/natSelectorImplEcos.cc,
351 gnu/java/nio/natSelectorImplPosix.cc,
352 gnu/java/nio/natSelectorImplWin32.cc:
353 Ported to VMSelector.
354 * Makefile.am: Added new files gnu/java/nio/VMPipe.java and
355 gnu/java/nio/VMSelector.java.
356 * Makefile.in: Regenerated.
358 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
360 * java/lang/StackTraceElement.java
361 (className): Renamed field to declaringClass to be compatible
362 with Sun serialization format.
364 2004-09-23 Michael Koch <konqueror@gmx.de>
366 * java/applet/AppletContext.java,
367 java/applet/Applet.java,
368 java/applet/AppletStub.java,
369 java/applet/AudioClip.java:
370 Jalopied and checkstyle clean.
372 2004-09-23 Mark Wielaard <mark@klomp.org>
374 * java/util/Collections.java
375 (binarySearch(List, Object, Comparator)): Explicitly
376 reverse direction in list iterator.
377 (rotate): Just return when list is empty.
379 2004-09-23 Tom Tromey <tromey@redhat.com>
382 * testsuite/libjava.compile/pr17329.java: New file.
385 * testsuite/libjava.jacks/jacks.xfail: Added 9.2-implicit-6 and
388 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
390 * Makefile.am: Run aclocal with -I ../config
391 * acinclude.m4: Delete macros picked up from ../config and tidy.
392 (AM_ICONV,AM_LC_MESSAGES, PKG_CHECK_MODULES): Delete.
393 * aclocal.m4, configure, Makefile.in, gcj/Makefile.in: Regenerate.
394 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
396 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
398 * aclocal.m4: Regenerate with aclocal 1.9.2.
399 * configure: Regenerate.
400 * Makefile.in, gcj/Makefile.in: Regenerate with automake 1.9.2.
401 * include/Makefile.in, testsuite/Makefile.in: Likewise.
403 2004-09-22 David Daney <ddaney@avtrex.com>
406 * java/net/URL.java (URL): Copy userInfo from context.
407 (getUserInfo): Return cached userInfo if present.
409 2004-09-22 Tom Tromey <tromey@redhat.com>
412 * mauve-libgcj: Enable java.lang.Character tests.
414 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
416 * Makefile.am (lib_org_ietf_jgss_la_DEPENDENCIES): Add missing
418 (lib_org_ietf_jgss_la_LIBADD): Likewise.
419 * Makefile.in: Regenerated.
421 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
423 * configure.ac: Introduce AC_C_BIGENDIAN_CROSS for WORDS_BIGENDIAN.
424 * configure: Regenerate.
425 * include/config.h.in: Likewise.
426 * jni/gtk-peer/gtkpeer.h (SWAPU32): Introduce macro to swap pixels.
427 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c: Moved SWAPU32
429 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
430 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_getImagePixels): Convert
431 pixels from 0xBBGGRRAA to 0xAARRGGBB only on Little Endian
433 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c (area_updated):
436 2004-09-22 Tom Tromey <tromey@redhat.com>
439 * java/util/zip/GZIPInputStream.java (read): Avoid sign extension
441 * java/util/zip/InflaterInputStream.java (onebytebuffer): New
443 (read()): New overload.
445 2004-09-21 Tom Tromey <tromey@redhat.com>
447 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
450 2004-09-21 Michael Koch <konqueror@gmx.de>
452 * java/net/Socket.java
453 (getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
455 2004-09-21 Casey Marshall <csm@gnu.org>
457 * javax/crypto/MacSpi.java (clone): Provide meaningful
460 2004-09-21 Tom Tromey <tromey@redhat.com>
463 * Makefile.in: Rebuilt.
464 * Makefile.am (MOSTLYCLEANFILES): Removed.
465 (mostlyclean-local): Remove header files.
467 2004-09-21 Casey Marshall <csm@gnu.org>
469 * java/security/cert/X509CRLSelector.java:
470 (match): remove unreachable try-catch clauses.
471 Reported by: Dalibor Topic <robilad@kaffe.org>
473 2004-09-21 Mark Wielaard <mark@klomp.org>
475 * java/util/TreeMap.java (root): Don't initialize.
476 (TreeMap(Comparator)): Call fabricateTree(0).
477 (fabricateTree): Initialize root and size when count is 0.
479 2004-09-21 Sven de Marothy <sven@physto.se>
481 * java/nio/ByteBuffer.java (hashCode): Implemented.
482 * java/nio/CharBuffer.java: Likewise.
483 * java/nio/DoubleBuffer.java: Likewise.
484 * java/nio/FloatBuffer.java: Likewise.
485 * java/nio/LongBuffer.java: Likewise.
486 * java/nio/IntBuffer.java: Likewise.
487 * java/nio/ShortBuffer.java: Likewise.
489 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
491 * javax/security/auth/x500/X500Principal.java: Fix some merge glitches.
493 2004-09-21 Michael Koch <konqueror@gmx.de>
495 * javax/net/ssl/SSLServerSocket.java:
496 Removed comment about "Do not edit this file, it's generated.".
498 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
500 Import the big Crypto/Jessie/Security merge from Classpath.
502 * Makefile.am: Add imported files.
503 * Makefile.in: Regenerate.
505 2004-08-14 Casey Marshall <csm@gnu.org>
507 The Big Crypto Merge of 2004.
509 * javax/security/auth/x500/X500Principal.java: Replaced with GNU
512 Files imported from GNU Crypto.
513 * javax/crypto/BadPaddingException.java
514 * javax/crypto/Cipher.java
515 * javax/crypto/CipherInputStream.java
516 * javax/crypto/CipherOutputStream.java
517 * javax/crypto/CipherSpi.java
518 * javax/crypto/EncryptedPrivateKeyInfo.java
519 * javax/crypto/ExemptionMechanism.java
520 * javax/crypto/ExemptionMechanismException.java
521 * javax/crypto/ExemptionMechanismSpi.java
522 * javax/crypto/IllegalBlockSizeException.java
523 * javax/crypto/KeyAgreement.java
524 * javax/crypto/KeyAgreementSpi.java
525 * javax/crypto/KeyGenerator.java
526 * javax/crypto/KeyGeneratorSpi.java
527 * javax/crypto/Mac.java
528 * javax/crypto/MacSpi.java
529 * javax/crypto/Makefile.am
530 * javax/crypto/NoSuchPaddingException.java
531 * javax/crypto/NullCipher.java
532 * javax/crypto/NullCipherImpl.java
533 * javax/crypto/SealedObject.java
534 * javax/crypto/SecretKey.java
535 * javax/crypto/SecretKeyFactory.java
536 * javax/crypto/SecretKeyFactorySpi.java
537 * javax/crypto/ShortBufferException.java
538 * javax/crypto/interfaces/DHKey.java
539 * javax/crypto/interfaces/DHPrivateKey.java
540 * javax/crypto/interfaces/DHPublicKey.java
541 * javax/crypto/interfaces/PBEKey.java
542 * javax/crypto/spec/DESKeySpec.java
543 * javax/crypto/spec/DESedeKeySpec.java
544 * javax/crypto/spec/DHGenParameterSpec.java
545 * javax/crypto/spec/DHParameterSpec.java
546 * javax/crypto/spec/DHPrivateKeySpec.java
547 * javax/crypto/spec/DHPublicKeySpec.java
548 * javax/crypto/spec/IvParameterSpec.java
549 * javax/crypto/spec/PBEKeySpec.java
550 * javax/crypto/spec/PBEParameterSpec.java
551 * javax/crypto/spec/RC2ParameterSpec.java
552 * javax/crypto/spec/RC5ParameterSpec.java
553 * javax/crypto/spec/SecretKeySpec.java
554 * javax/security/auth/AuthPermission.java
555 * javax/security/auth/DestroyFailedException.java
556 * javax/security/auth/Destroyable.java
557 * javax/security/auth/Policy.java
558 * javax/security/auth/PrivateCredentialPermission.java
559 * javax/security/auth/RefreshFailedException.java
560 * javax/security/auth/Refreshable.java
561 * javax/security/auth/Subject.java
562 * javax/security/auth/SubjectDomainCombiner.java
563 * javax/security/auth/callback/Callback.java
564 * javax/security/auth/callback/CallbackHandler.java
565 * javax/security/auth/callback/ChoiceCallback.java
566 * javax/security/auth/callback/ConfirmationCallback.java
567 * javax/security/auth/callback/LanguageCallback.java
568 * javax/security/auth/callback/NameCallback.java
569 * javax/security/auth/callback/PasswordCallback.java
570 * javax/security/auth/callback/TextInputCallback.java
571 * javax/security/auth/callback/TextOutputCallback.java
572 * javax/security/auth/callback/UnsupportedCallbackException.java
573 * javax/security/auth/login/AccountExpiredException.java
574 * javax/security/auth/login/AppConfigurationEntry.java
575 * javax/security/auth/login/Configuration.java
576 * javax/security/auth/login/CredentialExpiredException.java
577 * javax/security/auth/login/FailedLoginException.java
578 * javax/security/auth/login/LoginContext.java
579 * javax/security/auth/login/LoginException.java
580 * javax/security/auth/login/NullConfiguration.java
581 * javax/security/auth/x500/X500PrivateCredential.java
582 * javax/security/sasl/AuthenticationException.java
583 * javax/security/sasl/AuthorizeCallback.java
584 * javax/security/sasl/RealmCallback.java
585 * javax/security/sasl/RealmChoiceCallback.java
586 * javax/security/sasl/Sasl.java
587 * javax/security/sasl/SaslClient.java
588 * javax/security/sasl/SaslClientFactory.java
589 * javax/security/sasl/SaslException.java
590 * javax/security/sasl/SaslServer.java
591 * javax/security/sasl/SaslServerFactory.java
592 * org/ietf/jgss/ChannelBinding.java
593 * org/ietf/jgss/GSSContext.java
594 * org/ietf/jgss/GSSCredential.java
595 * org/ietf/jgss/GSSException.java
596 * org/ietf/jgss/GSSManager.java
597 * org/ietf/jgss/GSSName.java
598 * org/ietf/jgss/MessageProp.java
599 * org/ietf/jgss/Oid.java
600 * org/ietf/jgss/MessagesBundle.properties
602 Files imported from Jessie <http://www.nongnu.org/jessie/>
603 * javax/net/ServerSocketFactory.java
604 * javax/net/SocketFactory.java
605 * javax/net/VanillaServerSocketFactory.java
606 * javax/net/VanillaSocketFactory.java
607 * javax/net/ssl/HandshakeCompletedEvent.java
608 * javax/net/ssl/HandshakeCompletedListener.java
609 * javax/net/ssl/HostnameVerifier.java
610 * javax/net/ssl/HttpsURLConnection.java
611 * javax/net/ssl/KeyManager.java
612 * javax/net/ssl/KeyManagerFactory.java
613 * javax/net/ssl/KeyManagerFactorySpi.java
614 * javax/net/ssl/ManagerFactoryParameters.java
615 * javax/net/ssl/SSLContext.java
616 * javax/net/ssl/SSLContextSpi.java
617 * javax/net/ssl/SSLException.java
618 * javax/net/ssl/SSLHandshakeException.java
619 * javax/net/ssl/SSLKeyException.java
620 * javax/net/ssl/SSLPeerUnverifiedException.java
621 * javax/net/ssl/SSLPermission.java
622 * javax/net/ssl/SSLProtocolException.java
623 * javax/net/ssl/SSLServerSocket.java
624 * javax/net/ssl/SSLServerSocketFactory.java
625 * javax/net/ssl/SSLSession.java
626 * javax/net/ssl/SSLSessionBindingEvent.java
627 * javax/net/ssl/SSLSessionBindingListener.java
628 * javax/net/ssl/SSLSessionContext.java
629 * javax/net/ssl/SSLSocket.java
630 * javax/net/ssl/SSLSocketFactory.java
631 * javax/net/ssl/TrivialHostnameVerifier.java
632 * javax/net/ssl/TrustManager.java
633 * javax/net/ssl/TrustManagerFactory.java
634 * javax/net/ssl/TrustManagerFactorySpi.java
635 * javax/net/ssl/X509KeyManager.java
636 * javax/net/ssl/X509TrustManager.java
637 * javax/security/cert/Certificate.java
638 * javax/security/cert/CertificateEncodingException.java
639 * javax/security/cert/CertificateException.java
640 * javax/security/cert/CertificateExpiredException.java
641 * javax/security/cert/CertificateNotYetValidException.java
642 * javax/security/cert/CertificateParsingException.java
643 * javax/security/cert/X509CertBridge.java
644 * javax/security/cert/X509Certificate.java
646 2004-08-20 Casey Marshall <csm@gnu.org>
648 * java/security/cert/X509CRLSelector.java: New file.
649 * java/security/cert/X509CertSelector.java: New file.
651 2004-09-15 Michael Koch <konqueror@gmx.de>
653 * gnu/java/net/protocol/file/Handler.java
654 (openConnection): Don't throw exception if host part for file: URI is
655 present. setURL() keeps file: protocol if ftp: protocol is not
658 2004-09-14 Richard Henderson <rth@redhat.com>
660 * java/lang/natPosixProcess.cc (waitForSignal): Ignore return
663 2004-09-12 Tom Tromey <tromey@redhat.com>
665 * javax/naming/CompoundName.java (CompoundName): Don't check for
666 separator in "flat" case.
668 2004-09-12 Michael Koch <konqueror@gmx.de>
670 * libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces
671 AM_CONFIG_HEADER by AC_CONFIG_FILES.
672 * libltdl/Makefile.in, libltdl/aclocal.m4, libltdl/configure:
675 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
678 * win32-threads.cc (_Jv_ThreadInitData): Zero out thread
679 handle in newly-allocated _Jv_Thread_t.
680 (_Jv_ThreadDestroyData): Close thread handle.
681 (_Jv_ThreadStart): Remove obsolete comment.
682 Store handle of newly-created thread in _Jv_Thread_t.
683 * include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
684 before including <windows.h>
685 #define _Jv_HaveCondDestroy
687 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
689 * java/lang/natThread.cc (finalize_native): Destroy
690 join conditional variable and mutex if these destroy
691 operations are supported.
693 2004-09-10 Dalibor Topic <robilad@kaffe.org>
695 * gnu/java/net/protocol/file/Connection.java (permission): New field.
696 (DEFAULT_PERMISSION): New constant.
697 (Connection): Create a FilePermission with permission to read file.
699 2004-09-10 Michael Koch <konqueror@gmx.de>
701 * gnu/java/net/protocol/file/Connection.java
702 (getLastModified): Moved around.
703 (getPermission): Return stored permission.
705 2004-09-10 Michael Koch <konqueror@gmx.de>
707 * Makefile.in: Regenerate.
709 2004-09-10 Michael Koch <konqueror@gmx.de>
711 * Makefile.am: Reverted accidently commited stuff.
712 * configure: Regenerated.
714 2004-09-10 Michael Koch <konqueror@gmx.de>
716 * gnu/java/net/protocol/file/Connection.java
717 (lineSeparator): Made non-final.
719 (connect): Initialize lineSeparator lazily. Use ByteArrayInputStream
720 instead of StringBufferInputStream.
722 2004-09-10 Michael Koch <konqueror@gmx.de>
724 * gnu/java/net/protocol/file/Connection.java
725 (connect): Handle file is a directory case.
727 2004-09-10 Michael Koch <konqueror@gmx.de>
730 (xlib_includes): Removed.
731 (AM_CPPFLAGS): Renamed from INCLUDES.
732 (lib_gnu_awt_xlib_la_CPPFLAGS): New automake variable.
733 * Makefile.in: Regenerate.
735 2004-09-09 Michael Koch <konqueror@gmx.de>
737 * java/security/ProtectionDomain.java,
738 * java/util/PropertyPermissionCollection.java:
739 Fixed javadocs all over.
741 2004-09-09 Sven de Marothy <sven@physto.se>
743 Patch from David Gilbert <david.gilbert@object-refinery.com>
744 * java/lang/Comparable.java: Fixed documentation errors.
745 * java/util/Arrays.java: Likewise.
747 2004-09-09 Andrew John Hughes <gnu_andrew@member.fsf.org>
749 * java/net/Inet4Address.java
750 (Inet4Address): Added comment to serialization UID.
751 * java/text/Format.java
752 (Format): Added comment to serialization UID.
754 2004-09-09 Michael Koch <konqueror@gmx.de>
756 * java/lang/System.java
757 (err): Fixed javadoci to point to setErr() and not setOut().
759 2004-09-09 Jeroen Frijters <jeroen@frijters.net>
761 (normalizePath): Added special case for windows systems.
763 2004-09-09 Michael Koch <konqueror@gmx.de>
766 (dupSeparator): Made private.
767 (File(URI)): New constructor.
768 (getParentFile): Fixed javadoc.
769 (createTempFile): Reformated.
770 (setReadOnly): Added comment.
771 (deleteOnExit): Merged javadoc with classpath version.
773 2004-09-09 Michael Koch <konqueror@gmx.de>
775 * Makefile.am: Don't try to include deps.mk.
776 * Makefile.in: Regenerated.
778 2004-09-08 Bryce McKinlay <mckinlay@redhat.com>
780 * configure.ac (AC_CONFIG_COMMANDS): Don't create subdirectories and
782 * configure: Rebuilt.
784 2004-09-04 Mohan Embar <gnustuff@thisiscool.com>
786 * java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces):
787 Changed pfn from static local to local.
789 2004-09-03 Bryce McKinlay <mckinlay@redhat.com>
790 H.J. Lu <hongjiu.lu@intel.com>
793 * Makefile.am (GCJCOMPILE): Remove definition.
794 (AM_CFLAGS): Add -fclasspath and -fbootclasspath flags.
795 Use LTGCJCOMPILE, not GCJCOMPILE, to build .lo targets.
796 * Makefile.in: Rebuilt.
798 2004-09-03 Kelley Cook <kcook@gcc.gnu.org>
800 * configure.ac (enable-gc-debug): Update help for new syntax.
801 * configure: Regenerate.
803 2004-09-03 David Daney <ddaney@avtrex.com>
805 * include/mips-signal.h: Update copyright.
807 2004-09-03 David Daney <ddaney@avtrex.com>
809 * configure.host: Use -fno-use-divide-subroutine for mips*-*-linux*.
810 * include/mips-signal.h: Added HANDLE_FPE support.
812 2004-08-31 Michael Koch <konqueror@gmx.de>
814 * javax/swing/plaf/basic/BasicTextAreaUI.java
815 (create): New method.
816 * javax/swing/text/DefaultHighlighter.java
817 (DefaultHighlightPainter.debugRect): Removed.
818 * javax/swing/text/StyleContext.java
819 (DEFAULT_STYLE): New field.
821 2004-08-31 Michael Koch <konqueror@gmx.de>
823 * javax/swing/plaf/basic/BasicLookAndFeel.java
824 (initComponentDefaults): Add keybindings for selection.backward and
825 selection-forward for text components.
826 * javax/swing/plaf/basic/BasicTextUI.java
827 (paintSafely): Paint highlight only when something is actually
829 * javax/swing/text/DefaultCaret.java
830 (handleHighlight): New method.
831 (setSelectionVisible): Don't do anything when nothing changes.
833 (moveDot): Reimplemented. Handle highlight.
834 (setDot): Set mark too. Handle highlight.
835 (getSelectionPainter): New method.
836 * javax/swing/text/DefaultEditorKit.java
837 (defaultActions): Added new actions for text selection.
838 * javax/swing/text/DefaultHighlighter.java
839 (DefaultHighlightPainter): New inner class.
840 (DefaultPainter): New field.
841 (paint): Implemented.
842 * javax/swing/text/PlainView.java
843 (paint): Don't draw background here again.
844 * javax/swing/text/Utilities.java
845 (getTabbedTextWidth): Use width of ' ' instead of 'm' for tabsize.
846 (drawTabbedText): Likewise.
848 2004-08-31 Graydon Hoare <graydon@redhat.com>
850 * javax/swing/JComponent.java
851 (resetKeyboardActions): Add null checks.
853 2004-08-31 Graydon Hoare <graydon@redhat.com>
855 * javax/swing/DefaultButtonModel.java:
856 Skip group notification when no group is set.
858 2004-08-31 Graydon Hoare <graydon@redhat.com>
860 * javax/swing/JColorChooser.java:
861 Make a couple inner classes static, for jikes.
863 2004-08-31 Michael Koch <konqueror@gmx.de>
865 * javax/swing/plaf/basic/BasicTextUI.java
866 (RottView.modelToView): New method.
867 (UpdateHandler): Renamed from EventHandler.
868 (updateHandler): Renamed from eventHandler.
869 (modelToView): Implemented.
870 * javax/swing/text/AbstractDocument.java
871 (BranchElement.getElement): Return null for non-existing indeces.
872 (BranchElement.getElementIndex): Return 0 in some corner cases.
873 * javax/swing/text/FieldView.java
874 (modelToView): New method.
875 * javax/swing/text/PlainView.java
876 (modelToView): Made public.
878 2004-08-31 Kim Ho <kho@redhat.com>
880 * Makefile.am: New files.
881 * Makefile.in: Regenerate.
882 * gcj/Makefile.in: Regenerate.
883 * include/Makefile.in: Regenerate.
884 * java/awt/Color.java: Fix documentation.
885 (RGBtoHSB): Use floats for conversions.
886 * javax/swing/ButtonGroup.java: Run Jalopy.
887 (setSelected): Reimplement.
888 * javax/swing/DefaultButtonModel.java: Run Jalopy.
889 (changeState): Let ButtonGroup know that the button
891 * javax/swing/JColorChooser.java: Implement.
892 * javax/swing/JLabel.java: Run Jalopy.
893 * javax/swing/JSpinner.java: Run Jalopy.
894 (setValue): New method.
895 * javax/swing/JTabbedPane.java: Run Jalopy.
896 (removeTabAt): Call correct remove method.
897 * javax/swing/SpinnerNumberModel.java: Run Jalopy.
898 (getPreviousValue): Compare minimum value.
899 * javax/swing/Timer.java: Run Jalopy.
900 (run): Comment out println.
901 * javax/swing/ToolTipManager.java:
902 (mouseMoved): Get new tooltip text for location.
903 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
905 * javax/swing/colorchooser/ColorChooserComponentFactory.java:
907 * javax/swing/colorchooser/DefaultColorSelectionModel.java:
909 (setSelectedColor): Fire ChangeEvent.
910 * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
912 * javax/swing/colorchooser/DefaultPreviewPanel.java:
914 * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
916 * javax/swing/colorchooser/DefaultSwatchChooserPanel.java:
918 * javax/swing/plaf/basic/BasicArrowButton.java:
919 (getArrow): Fix size of upward pointing button.
920 * javax/swing/plaf/basic/BasicColorChooserUI.java:
922 * javax/swing/plaf/basic/BasicSliderUI.java:
923 (getWidthOfWidestLabel): Use preferred dimensions.
924 (getHeightOfTallestLabel): Ditto.
925 * javax/swing/plaf/basic/BasicSpinnerUI.java:
927 (mousePressed): Disable changes to spinner if it is not enabled.
928 * testsuite/Makefile.in: Regenerate.
931 2004-08-31 Michael Koch <konqueror@gmx.de>
933 * javax/swing/plaf/basic/BasicTableHeaderUI.java,
934 javax/swing/plaf/basic/BasicTableUI.java:
935 Added copyright notice.
937 2004-08-31 Olga Rodimina <rodimina@redhat.com>
939 * Makefile.am: Added new files.
940 * Makefile.in: Regenerate.
941 * javax/swing/ComboBoxEditor.java: Added javadocs.
942 * javax/swing/ComboBoxModel.java: Likewise.
943 * javax/swing/DefaultComboBoxModel.java: Implemented.
944 * javax/swing/DefaultListCellRenderer.java: Added javadocs
945 and ran through jalopy to fix formatting style.
946 (getListCellRendererComponent): Use appropriate border
947 if renderer has focus and use noFocusBorder when it doesn't.
948 * javax/swing/JComboBox.java: Implemented.
949 * javax/swing/JList.java:
950 (locationToIndex): New Method. Implemented.
951 (indexToLocation): New Method.
952 * javax/swing/JPopupMenu.java:
953 (visible): New field.
954 (isVisible): Changed to use new field above.
955 (setVisible): Likewise.
956 * javax/swing/MutableComboBoxModel.java: Added javadocs.
957 * javax/swing/plaf/basic/BasicArrowButton.java:
958 (shadow): Changed default color to Color.gray.
959 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
960 UI delegate for JComboBox.
961 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
962 Popup menu containing list of JComboBox's items.
963 * javax/swing/plaf/basic/BasicComboBoxEditor.java: New File.
964 * javax/swing/plaf/basic/BasicComboBoxRenderer.java: New File.
965 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
966 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
967 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
968 (popupMenuWillBecomeVisible): Set selected path to the first
969 element only if it is of type MenuElement. Also fix formatting
971 * javax/swing/plaf/basic/ComboPopup.java: Added javadocs and missing
974 2004-08-31 Michael Koch <konqueror@gmx.de>
976 * javax/swing/text/AbstractDocument.java
977 (createBranchElement): Use new constructor of BranchElement.
978 (createLeafElement): Renamed arguments.
979 (getRootElements): Implemented.
980 (BranchElement.start): Removed.
981 (BranchElement.end): Likewise.
982 (BranchElement.BranchElement): Fixed arguments.
983 (BranchElement.getEndOffset): Reimplemented.
984 (BranchElement.getStartOffset): Likewis.
985 * javax/swing/text/DefaultCaret.java
986 (paint): Draw simple vertical line as caret instead of a rectangle.
987 * javax/swing/text/JTextComponent.java
988 (setText): Use doc directly.
989 * javax/swing/text/PlainView.java
990 (nextTabStop): Implemented.
991 * javax/swing/text/Utilities.java
992 (drawTabbedText): nextTabStop() returns an absolute x position.
993 (getTabbedTextWidth): Likewise.
995 2004-08-31 Graydon Hoare <graydon@redhat.com>
997 * java/awt/Component.java
998 (isFocusTraversable): Predicate on isLightweight()
999 (setFocusable): Set isFocusTraversableOverridden.
1000 (requestFocus): Predicate peer dispatch on !isLightweight()
1001 (requestFocusInWindow): Likewise.
1002 (dispatchEventImpl): Coordinate with KeyboardFocusManager.
1003 * java/awt/Container.java
1004 (dispatchEventImpl): Predicate on event mask.
1005 (LightweightDispatcher): Remove focus machinery.
1006 * java/awt/DefaultFocusTraversalPolicy.java
1007 (accept): Expand predicate to include isFocusable().
1008 * java/awt/DefaultKeyboardFocusManager.java:
1009 Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
1010 * java/awt/KeyboardFocusManager.java
1011 (redispatchEvent): Synchronize on event to prevent feedback.
1012 * javax/swing/AbstractButton.java
1013 (ButtonFocusListener): Remove class.
1014 (init): Set focusPainted, focusable.
1015 * javax/swing/ActionMap.java (get): Check parent for null.
1016 * javax/swing/InputMap.java (get): Likewise.
1017 * javax/swing/JComponent.java
1018 (inputMap_whenFocused): New InputMap.
1019 (inputMap_whenAncestorOfFocused): Likewise.
1020 (inputMap_whenInFocusedWindow): Likewise.
1021 (getActionForKeyStroke): Rewrite.
1022 (getConditionForKeystroke): Likewise.
1023 (ActionListenerProxy): New private class.
1024 (setInputMap): Implement.
1025 (getInputMap): Likewise.
1026 (setActionMap): Likewise.
1027 (getActionMap): Likewise.
1028 (processComponentKeyEvent): New empty method.
1029 (processKeyEvent): Implement.
1030 (processKeyBinding): Likewise.
1031 (resetKeyboardActions): Rewrite.
1032 * javax/swing/KeyStroke.java: Rewrite.
1033 * javax/swing/SwingUtilities.java
1034 (notifyAction): Implement.
1035 (replaceUIActionMap): Likewise.
1036 (replaceUIInputMap): Likewise.
1037 * javax/swing/plaf/basic/BasicButtonListener.java
1038 (focusGained): Implement.
1039 (focusLost): Repaint if focusPainted().
1040 (installKeyboardActions): Install pressed / released actions.
1041 (uninstallKeyboardActions): Implement.
1042 * javax/swing/plaf/basic/BasicButtonUI.java
1043 (focusColor): New field.
1044 (installDefaults): Load focus color, install input map.
1045 (installKeyboardActions): Implement.
1046 (uninstallKeyboardActions): Likewise.
1047 (paintFocus): Rewrite.
1048 * javax/swing/plaf/basic/BasicLookAndFeel.java
1049 (Button.focus): New default, midPurple.
1050 * javax/swing/plaf/basic/BasicTextUI.java
1052 (installUI): Get doc from kit, load defaults.
1053 (getKeymapName): Implement.
1054 (createKeymap): Likewise.
1055 (installKeyboardActions): Likewise.
1056 (getInputMap): Likewise.
1057 (getActionMap): Likewise.
1058 (createActionMap): Likewise.
1059 * javax/swing/text/AbstractDocument.java
1060 (getStartPosition): Implement.
1061 (getEndPosition): Likewise.
1062 * javax/swing/text/DefaultEditorKit.java
1063 (CopyAction): New class.
1064 (CutAction): Likewise.
1065 (DefaultKeyTypedAction): Likewise.
1066 (InsertBreakAction): Likewise.
1067 (InsertContentAction): Likewise.
1068 (InsertTabAction): Likewise.
1069 (PasteAction): Likewise.
1070 (defaultActions): New static table.
1071 (createCaret): Implement.
1072 (getActions): Likewise.
1073 * javax/swing/text/JTextComponent.java
1074 (KeymapWrapper): New private class.
1075 (KeymapActionMap): Likewise.
1076 (DefaultKeymap): New class.
1077 (keymaps): New static table.
1078 (keymap): New field.
1079 (getKeymap): Implement.
1080 (removeKeymap): Likewise.
1081 (addKeymap): Likewise.
1082 (setKeymap): Likewise.
1083 (loadKeymap): Likewise.
1084 (getActions): Likewise.
1085 (margin): New field.
1086 (JTextComponent): Build and install default keymap.
1087 * javax/swing/text/TextAction.java
1088 (textAction): Call super properly.
1089 (getTextComponent): Implement.
1090 * javax/swing/text/Utilities.java
1091 (drawTabbedText): Adjust position by ascent.
1093 2004-08-31 David Jee <djee@redhat.com>
1097 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
1098 (setEnabled): Make it a native method.
1099 * java/awt/DefaultKeyboardFocusManager.java
1100 (postProcessKeyEvent): Only post event if the menu item
1102 * java/awt/MenuItem.java:
1103 Private field 'enabled' should be true by default.
1104 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
1105 (setEnabled): New function.
1107 2004-08-31 David Jee <djee@redhat.com>
1111 * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
1112 (nativeSetHelpMenu): New native method declaration.
1113 (addHelpMenu): Call nativeSetHelpMenu().
1115 * java/awt/MenuBar.java
1116 (setHelpMenu): Call addNotify() on the new help menu.
1117 (add): Call addNotify() on the new menu.
1118 (addNotify): Set the help menu if one exists.
1119 * java/awt/peer/MenuBarPeer.java
1121 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
1122 (nativeSetHelpMenu): New method.
1124 2004-08-31 Graydon Hoare <graydon@redhat.com>
1126 * Makefile.am: Add new files.
1127 * Makefile.in: Regenerate.
1128 * javax/swing/Box.java: Fix setting of layout in ctor.
1129 * javax/swing/JScrollPane.java: Scroll headers as well.
1130 * javax/swing/JTable.java: Reimplement.
1131 * javax/swing/JViewPort.java: Only add non-null children.
1132 * javax/swing/ScrollPaneLayout.java: Correct header calculations.
1133 * javax/swing/Timer.java: Fix stopping null waker.
1134 * javax/swing/plaf/basic/BasicTableHeaderUI.java: New file.
1135 * javax/swing/plaf/basic/BasicTableUI.java: New file.
1136 * javax/swing/table/DefaultTableCellRenderer.java: Configure.
1137 * javax/swing/table/DefaultTableColumnModel.java: Flesh out.
1138 * javax/swing/table/DefaultTableModel.java: Clean up.
1139 * javax/swing/table/JTableHeader.java: Implement.
1141 2004-08-31 Mark Wielaard <mark@klomp.org>
1143 * javax/swing/JSpinner.java (getChangeListeners): Remove double
1146 2004-08-31 Mark Wielaard <mark@klomp.org>
1148 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
1149 Declare variables at top of functions/block.
1150 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Likewise.
1152 2004-08-31 Mark Wielaard <mark@klomp.org>
1154 * java/lang/Rectangle.java (intersects): Check r.width and r.height
1157 2004-08-31 Michael Koch <konqueror@gmx.de>
1159 * javax/swing/text/PlainView.java
1160 (selectedColor): New field.
1161 (unselectedColor): Likewise.
1163 (updateMetrics): New method.
1164 (lineToRect): Likewise.
1165 (modelToView): Likewise.
1166 (drawSelectedText): Use color from JTextComponent ad draw with
1168 (drawUnselectedText): Likewise.
1169 (paint): Initialize helper fields.
1170 * javax/swing/text/View.java
1171 (getChildAllocation): New method.
1172 (getViewIndex): Likewise.
1173 (getToolTipText): Likewise.
1175 2004-08-31 Michael Koch <konqueror@gmx.de>
1177 * javax/swing/text/Utilities.java
1178 (drawTabbedText): Reimplemented.
1179 (getTabbedTextWidth): Likewise.
1181 2004-08-31 Michael Koch <konqueror@gmx.de>
1183 * javax/swing/plaf/basic/BasicTextUI.java
1184 (installDefaults): Install caret and highlighter.
1185 (modelToView): Use Bias.Forward when calling sibling.
1186 * javax/swing/text/AbstractDocument.java
1187 (ElementEdit): Implements DocumentEvent.ElementChange.
1188 (ElementEdit.ElementEdit): New method.
1189 (ElementEdit.getChildrenAdded): Likewise.
1190 (ElementEdit.getChildrenRemoved): Likewise.
1191 (ElementEdit.getElement): Likewise.
1192 (ElementEdit.getIndex): Likewise.
1193 * javax/swing/text/DefaultCaret.java
1195 (textComponent): Renamed from parent, made private.
1196 (selectionVisible): Renamed from vis_sel, made private.
1197 (blinkRate): Renamed from blink, made private.
1198 (magicCaretPosition): Renamed from magic, made private.
1199 (visible): Renamed from vis, made private.
1200 (dot): Made private.
1202 (deinstall): Remove as MouseMotionListener.
1203 (install): Initialize textComponent first. Add as MouseMotionListener.
1204 (paint): Reimplemented.
1205 * javax/swing/text/JTextComponent.java
1206 (setCaret): Deinstall old caret, install new one and fire property
1207 change after setting property.
1208 (setHighlighter): Deinstall old highlighter, install new one and fire
1209 property change after setting property.
1210 (setCaretColor): Fire property change after setting property.
1211 (setDisabledTextColor): Likewise.
1212 (setSelectedTextColor): Likewise.
1213 (setSelectionColor): Likewise.
1214 (modelToView): New method.
1216 2004-08-31 Michael Koch <konqueror@gmx.de>
1218 * javax/swing/text/AbstractDocument.java
1219 (getText): Simplified.
1220 * javax/swing/text/Segment.java
1221 (current): New field.
1222 (current): Reimplemented.
1224 (getIndex): Likewise.
1227 (previous): Likewise.
1228 (setIndex): Likewise.
1230 2004-08-31 Michael Koch <konqueror@gmx.de>
1232 * javax/swing/plaf/basic/BasicButtonUI.java
1233 (defaultTextIconGap): Made protected.
1234 (defaultTextShiftOffset): Likewise.
1235 (textShiftOffset): New field.
1236 (clearTextShiftOffset): New method.
1237 (getTextShiftOffset): Likewise.
1238 (setTextShiftOffset): Likewise.
1240 2004-08-31 Michael Koch <konqueror@gmx.de>
1242 * javax/swing/plaf/basic/BasicTextUI.java
1243 (installUI): Add eventHandler as property listener.
1244 (uninstallUI): remove eventHandler as propert listener.
1245 (installDefaults): Added comment.
1246 (installListeners): Likewise.
1247 (installKeyboardActions): Likewise.
1248 (uninstallDefaults): Likewise.
1249 (uninstallListeners): Likewise.
1250 (uninstallKeyboardActions): Likewise.
1252 2004-08-31 Michael Koch <konqueror@gmx.de>
1254 * javax/swing/text/AbstractDocument.java:
1255 Fixed some typos in comments.
1256 (insertString): Reimplemented.
1258 (replace): New method.
1259 (children): Dont use fully qualified class name.
1260 (DefaultDocumentEvent.offset): Renamed from off.
1261 (DefaultDocumentEvent.length): Renamed from len.
1262 (DefaultDocumentEvent.type): New field.
1263 (DefaultDocumentEvent.DefaultDocumentEvent): New constructor.
1264 (DefaultDocumentEvent.getType): Implemented.
1266 2004-08-31 Michael Koch <konqueror@gmx.de>
1268 * javax/swing/plaf/basic/BasicTextUI.java
1269 (RootView.textComponent): Removed.
1270 (RootView.RootView): Don't initialize textComponent.
1271 (RootView.getViewFactory): New method.
1272 (EventHandler): New inner class.
1273 (rootView): Initialize at instance creation.
1274 (eventHandler): New field.
1275 (installUI): Don't create view hierarchy directly,
1276 call modelChanged() instead.
1277 (modelChanged): New method.
1278 * javax/swing/text/JTextComponent.java
1279 (setDocument): Fire property change event.
1281 2004-08-31 Michael Koch <konqueror@gmx.de>
1283 * javax/swing/plaf/basic/BasicTextUI.java
1284 (RootView.paint): Removed debug output.
1285 (paintSafely): Draw highlighter before text.
1286 (paintBackground): Use background color of text component.
1287 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
1290 2004-08-31 Michael Koch <konqueror@gmx.de>
1292 * javax/swing/plaf/basic/BasicToolBarUI.java
1293 (BasicToolBarUI): Fixed arguments for constructor.
1294 (createUI): Fixed creation of object.
1296 2004-08-31 Michael Koch <konqueror@gmx.de>
1298 * javax/swing/DefaultListSelectionModel.java
1299 (fireValueChanged): Renamed from fireSelectionValueChanged,
1302 2004-08-31 Michael Koch <konqueror@gmx.de>
1304 * javax/swing/text/TabSet.java
1305 (TabSet): Implements java.io.Serializable.
1306 * javax/swing/text/TabStop.java
1307 (TabStop): Implements java.io.Serializable.
1308 (TabStop): Made public.
1310 2004-08-31 Michael Koch <konqueror@gmx.de>
1312 * javax/swing/JComponent.java
1313 (setUI): Fire PropertyChange.
1314 * javax/swing/JLabel.java
1315 (text): Renamed from labelText.
1316 (horizontalAlignment): New default vlaue.
1317 (icon): Renamed from activeIcon.
1318 (displayedMnemonic): Renamed from mnemonicKey, added default value.
1319 (displayedMnemonicIndex): Renamed from underlineChar.
1320 (setDisplayedMnemonic): Reimplemented.
1321 * javax/swing/JRadioButton.java
1322 (JRadioButton): New constructors.
1323 * javax/swing/JTextField.java
1324 (JTextField): Throw exception if colums < 0, initialitialz
1325 this.columns directly and initialize document with text conditionally.
1327 2004-08-31 Michael Koch <konqueror@gmx.de>
1329 * javax/swing/plaf/basic/BasicFormattedTextFieldUI.java,
1330 javax/swing/plaf/basic/BasicPasswordFieldUI.java,
1331 javax/swing/plaf/basic/BasicTextAreaUI.java: New files.
1332 * javax/swing/text/FieldView.java
1333 (paint): Just call super method for now.
1334 * Makefile.am: Added new files.
1335 * Makefile.in: Regenerated.
1337 2004-08-31 Ka-Hing Cheung <kahing@javabsp.org>
1339 * javax/swing/AbstractSpinnerModel.java,
1340 javax/swing/JSpinner.java,
1341 javax/swing/SpinnerNumberModel.java,
1342 javax/swing/plaf/basic/BasicSpinnerUI.java:
1344 * javax/swing/plaf/basic/BasicLookAndFeel.java
1345 (initClassDefaults): Added defaults for BasicSpinnerUI.
1347 2004-08-31 Michael Koch <konqueror@gmx.de>
1349 * Makefile.am: Added new files.
1350 * Makefile.in: Regenerated.
1352 2004-08-31 Michael Koch <konqueror@gmx.de>
1354 * javax/swing/TransferHandler.java,
1355 javax/swing/plaf/basic/ComboPopup.java: New files
1356 * Makefile.am: Added javax/swing/TransferHandler.java and
1357 javax/swing/plaf/basic/ComboPopup.java
1358 * Makefile.in: Regenerated.
1360 2004-08-31 Roman Kennke <roman@ontographics.com>
1362 * javax/swing/text/Utilities.java: New file.
1364 2004-08-31 Michael Koch <konqueror@gmx.de>
1366 * Makefile.am: Added javax/swing/text/Utilities.java.
1367 * Makefile.in: Regenerated.
1369 2004-08-31 Graydon Hoare <graydon@redhat.com>
1371 * javax/swing/text/SimpleAttributeSet.java: New file.
1372 * javax/swing/text/StyleConstants.java: New file.
1373 * javax/swing/text/StyleContext.java: New file.
1374 * javax/swing/text/TabSet.java: New file.
1375 * javax/swing/text/TabStop.java: New file.
1376 * javax/swing/text/AbstactDocument.java:
1377 (AbstractElement): Implement attribute support.
1378 * javax/swing/text/AttributeSet.java
1379 (NameAttribute): New static field.
1380 (ResolveAttribute): New static field.
1381 * Makefile.am: Update for new files.
1382 * Makefile.in: Regenerate.
1384 2004-08-31 Craig Black <craig.black@aonix.com>
1386 * gnu/java/awt/peer/gtk/GdkGraphics.java
1387 (drawImage): Add support for scaling pixmaps.
1388 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1389 (copyAndScalePixmap): New native method.
1391 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1394 * jni/gtk-peer/gthread-jni.c: Include stdio.h. Eliminate
1395 type-punning compiler warnings using unions.
1396 (throw): Replace bzero with memset.
1398 2004-08-31 Andreas Tobler <a.tobler@schweiz.ch>
1399 Thomas Fitzsimmons <fitzsim@redhat.com>
1401 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: Move
1402 NSA_PB macros to gtkpeer.h. Include gtkpeer.h.
1403 * jni/gtk-peer/gtkpeer.h: Move NSA_PB macros here.
1404 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1405 (nativeSetIconImageFromDecoder): Use NSA_GET_PB_PTR macro.
1407 2004-08-31 Mark Wielaard <mark@klomp.org>
1409 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
1410 #include gdk.h, not gtk.h. #include jni.h, native_state.h, string.h
1411 and stdlib.h, not gtkpeer.h.
1412 (*vm): New static variable.
1413 (areaPreparedID): Make static.
1414 (areaUpdatedID): Likewise.
1415 (area_prepared): Get and use JNIEnv through stored JavaVM *vm.
1416 (area_prepared): Likewise.
1417 (area_updated): Likewise.
1419 (initStaticState): Initialize *vm javaVM.
1420 (pumpBytes): Use given env, not global gdk_env.
1422 2004-08-31 Mark Wielaard <mark@klomp.org>
1424 * java/awt/geom/CubicCurve2D.java (solveCubic): Removed duplicate
1427 2004-08-31 Sven de Marothy <sven@physto.se>
1429 * java/awt/geom/CubicCurve2D.java: Reindent.
1430 (contains): Implemented.
1431 (intersects): Implemented.
1432 * java/awt/geom/QuadCurve2D.java: Likewise.
1433 * java/awt/geom/GeneralPath.java: Reindent and document.
1434 Fully (re)implemented using separate xpoints and ypoints
1436 * java/awt/geom/RoundRectangle2D.java: Several bugfixes (Bug #6007).
1438 2004-08-31 Michael Koch <konqueror@gmx.de>
1440 * javax/swing/JMenuItem.java
1441 (getMenuDragMouseListeners): New method.
1442 (getMenuKeyListeners): Likewise.
1444 2004-08-31 Michael Koch <konqueror@gmx.de>
1446 * javax/swing/AbstractButton.java
1447 (model): Made protected.
1448 (actionListener): Likewise.
1449 (changeListener): Likewise.
1450 (itemListener): Likewise.
1451 (multiClickThreshhold): New field.
1452 (getActionListeners): New method.
1453 (getChangeListeners): Likewise.
1454 (getItemListeners): Likewise.
1455 (fireItemStateChanged): Simplified implementation.
1456 (fireActionPerformed): Likewise.
1457 (fireStateChanged): Likewise.
1458 (getMultiClickThreshhold): New method.
1459 (setMultiClickThreshhold): Likewise.
1461 2004-08-31 Tom Tromey <tromey@redhat.com>
1463 * java/awt/image/Kernel.java (clone): Use super.clone().
1465 2004-08-31 David Jee <djee@redhat.com>
1468 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1469 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1470 (nativeSetIconImageFromData): New native method declaration.
1471 (setIconImage): Handle images not produced from GdkPixbufDecoder.
1472 * gnu/java/awt/peer/gtk/GtkImage.java
1473 (getPixelCache): New method.
1474 (getColorModel): New method.
1475 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1476 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1477 (free_pixbuf_data): New helper function.
1478 (nativeSetIconImageFromData): New function.
1480 2004-08-31 Graydon Hoare <graydon@redhat.com>
1483 * javax/swing/JLayeredPane.java
1484 (setLayer): Permit changing layer after addition.
1485 (setPosition): Permit over-length positions.
1486 (layerToRange): Compare intValue()s.
1487 * javax/swing/Box.java (createHorizontalBox): Implement.
1488 (createRigidArea): Likewise.
1489 (createVerticalBox): Likewise.
1491 2004-08-31 Kim Ho <kho@redhat.com>
1493 * java/awt/Component.java:
1494 (processMouseEvent): Consume event after
1495 listeners process it.
1496 (processMouseMotionEvent): ditto.
1497 (processMouseWheelEvent): ditto.
1498 * java/awt/Container.java:
1499 (acquireComponentForMouseEvent):
1500 Do not dispatch to events that have been
1501 removed from the Container.
1502 (handleEvent): Consume the MouseEvents.
1503 * javax/swing/RepaintManager.java:
1504 (paintDirtyRegions): Do not add to list of
1505 damaged areas if the component has no root.
1507 2004-08-31 Michael Koch <konqueror@gmx.de>
1509 * javax/swing/plaf/basic/BasicMenuItemUI.java: Clean ip imports.
1511 2004-08-31 Mark Wielaard <mark@klomp.org>
1513 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
1514 null when a MissingResourceException is thrown. Should never happen.
1516 2004-08-31 Mark Wielaard <mark@klomp.org>
1518 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1519 when argument is null.
1521 2004-08-31 Mark Wielaard <mark@klomp.org>
1523 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1524 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
1525 Define hid at start of function.
1526 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
1529 2004-08-31 Mark Wielaard <mark@klomp.org>
1531 * gnu/java/awt/EmbeddedWindow.java: Reindent.
1532 * javax/swing/JButton.java: Reindent.
1533 * javax/swing/JCheckBox.java: Reindent.
1535 2004-08-31 Mark Wielaard <mark@klomp.org>
1537 * Makefile.am (gtk_c_source_files): Added
1538 jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c.
1539 (gtk_awt_peer_sources): Added
1540 gnu/java/awt/peer/gtk/GThreadMutex.java and
1541 gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java.
1542 * Makefile.in: Regenerated.
1544 2004-08-31 Archie Cobbs <archie@dellroad.org>
1546 * jni/gtk-peer/gthread-jni.c: don't #include nonexistent files
1548 2004-08-31 Steven Augart <augart@watson.ibm.com>
1550 * jni/gtk-peer/gthread-jni.c (c-font-lock-extra-types):
1551 Added jfieldID, jmethodID.
1553 2004-08-31 Mark Wielaard <mark@klomp.org>
1555 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1556 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): Initialize
1557 gdk_env before calling any gdk or gtk function.
1559 * gnu/java/awt/peer/gtk/GtkMainThread.java (gtkInitCalled): New field.
1560 (GtkMainThread): Call wait() in while loop waiting for gtkInitCalled.
1561 (run): Set gtkInitCalled.
1563 2004-08-31 Steven Augart <augart@watson.ibm.com>
1565 * gnu/java/awt/peer/gtk/GtkMainThread.java (run): Pass the value of
1566 the gnu.classpath.awt.gtk.portable.native.sync system property to C.
1568 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1569 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): New argument,
1570 portableNativeSync. Delegate PORTABLE_NATIVE_SYNC work to
1572 (init_glib_threads): New function.
1574 2004-08-31 Mark Wielaard <mark@klomp.org>
1576 * jni/gtk-peer/gthread-jni.c: Define MIN_, MAX_ and NORM_
1577 PRIORITY when not already defined in header file.
1579 2004-08-31 Mark Wielaard <mark@klomp.org>
1581 * jni/gtk-peer/gthread-jni.c (setup_cache): Call
1582 ExceptionOccurred, not ExceptionCheck, when we don't have JNI 1.2.
1584 2004-08-31 Steven Augart <augart@watson.ibm.com>
1586 * gnu/native/jni/gtk-peer/gthread-jni.c: Indentation fixes.
1587 Implemented missing functions for GTK2.
1588 Added error handling.
1589 Renamed static functions out of the g_ namespace.
1590 Added TRACE_API_CALLS, EXPLAIN_TROUBLE, EXPLAIN_BROKEN,
1591 EXPLAIN_BADLY_BROKEN, and DELETE_LOCAL_REFS options.
1592 Rewrote global-reference code.
1593 Eliminated cascading errors.
1594 (mutex_trylock_jni_impl) Fully implemented.
1595 (cond_timed_wait_jni_impl) Went from millisecond to microsecond
1597 (setup_cache) New function.
1598 (mutex_cond_wait_jni_impl, mutex_cond_timed_wait_jni_impl) Fixed
1599 bug where they were not unlocking the GMutex associated with the
1600 condition variable during the wait on that condition variable.
1602 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
1603 native/jni/gtk-peer/gthread-jni.c,
1604 native/jni/gtk-peer/gthread-jni.h
1605 (g_thread_jni_functions): Renamed to ...
1606 (portable_native_sync_jni_functions): this name.
1607 (gdk_vm): Renamed to...
1608 (the_vm): this name.
1610 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1611 (gdk_vm): Removed duplicate definition.
1612 (gtkInit): Removed stray message to stdout.
1613 (gtkInit): Use g_malloc and g_free instead of malloc and free.
1614 (gtkInit): Fix a const assignment bug.
1615 (gtkInit): Simplified code.
1617 * gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
1618 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
1619 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h,
1620 gnu/java/awt/peer/gtk/GThreadMutex.java:
1623 2004-08-31 Mark Wielaard <mark@klomp.org>
1625 * javax/swing/Box.java: Put FIXME comment above class declaration.
1626 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1627 * javax/swing/JCheckBox.java: Likewise.
1628 * javax/swing/JDialog.java: Likewise.
1629 * javax/swing/JRadioButton.java: Likewise.
1630 * javax/swing/JToggleButton.java: Likewise.
1631 * javax/swing/UIManager.java: Likewise.
1632 * javax/swing/border/TitledBorder.java: Likewise.
1633 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1634 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1635 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1636 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1637 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1638 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1639 * javax/swing/text/JTextComponent.java: Likewise.
1641 2004-08-31 David Jee <djee@redhat.com>
1644 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1645 (setIconImage): Add a FIXME for unhandled cases.
1647 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1650 * gnu/awt/LightweightRedirector.java: Call getModifiersEx, not
1651 getModifiers. Replace old button masks with new ones.
1652 * gnu/awt/xlib/XEventLoop.java: Likewise.
1653 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Likewise.
1654 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1655 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
1656 * gnu/java/awt/peer/gtk/GtkListPeer.java: Likewise.
1657 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
1658 * java/awt/AWTKeyStroke.java: Remove old modifier masks.
1659 * java/awt/Component.java: Replace old modifier masks with new
1661 * java/awt/Container.java: Call getModifiersEx, not
1663 * java/awt/DefaultKeyboardFocusManager.java: Likewise. Remove
1665 * javax/swing/JMenuItem.java: Replace old button masks with new
1667 * javax/swing/KeyStroke.java: Call getModifiersEx, not
1669 * javax/swing/SwingUtilities.java: Likewise.
1670 * javax/swing/plaf/basic/BasicButtonListener.java: Likewise.
1671 * javax/swing/plaf/basic/BasicInternalFrameUI.java: Likewise.
1672 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Replace old
1673 mask macros with new ones.
1674 * jni/gtk-peer/gtkpeer.h: Replace old button and modifier mask
1675 macros with new ones representing new masks.
1677 2004-08-31 Craig Black <craig.black@aonix.com>
1679 * gnu/java/awt/peer/gtk/GdkGraphics.java
1680 (drawRoundRect): Implemented.
1681 (fillRoundRect): Implemented.
1682 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1683 (drawRoundRect): Reimplemented to match GdkGraphics.
1684 (fillRoundRect): Reimplemented to match GdkGraphics.
1686 2004-08-31 Mark Wielaard <mark@klomp.org>
1688 * Makefile.in: Regenerated.
1690 2004-08-31 Michael Koch <konqueror@gmx.de>
1692 * gnu/java/awt/EmbeddedWindow.java
1693 (addNotify): Use AccessController to allow execution of privileged
1696 2004-08-31 Michael Koch <konqueror@gmx.de>
1698 * gnu/java/awt/EmbeddedWindow.java
1700 (addNotify): Set peer via reflection.
1701 (setWindowPeer): Removed.
1702 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1703 * Makefile.am (nat_source_files):
1704 Removed gnu/java/awt/natEmbeddedWindow.cc.
1706 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1708 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
1709 and gnu/java/security/action/SetAccessibleAction.java.
1711 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1713 * gnu/java/security/action/GetPropertyAction.java (setParameters):
1714 Renamed from 'setName'. New 2-argument form with default value.
1715 (run): Pass default 'value' parameter to System.getProperty().
1716 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
1719 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1721 * gnu/java/security/action/GetPropertyAction.java: New class.
1722 * gnu/java/security/action/SetAccessibleAction.java: New class.
1724 2004-08-31 David Jee <djee@redhat.com>
1726 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1727 (setIconImage): Check if image is null.
1729 2004-08-31 David Jee <djee@redhat.com>
1731 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1732 (create): Set the icon image.
1733 (nativeSetIconImage): New native method declaration.
1734 (setIconImage): Implement.
1735 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1736 (nativeSetIconImage): New function.
1738 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1740 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1741 (filenameFilterCallback): Declare local variable accepted before use.
1743 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1745 * gnu/java/awt/ComponentDataBlitOp.java:
1748 2004-08-31 Tom Tromey <tromey@redhat.com>
1750 * gnu/java/awt/peer/GLightweightPeer.java,
1751 gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1752 gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1753 javax/swing/JScrollPane.java: Removed
1756 2004-08-31 David Jee <djee@redhat.com>
1758 * java/awt/DefaultKeyboardFocusManager.java
1759 (postProcessKeyEvent): Only activate MenuShortcuts on KEY_PRESSED
1760 event. Fix shift modifier checking.
1761 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1762 (accel_attach): Remove.
1763 (setupAccelGroup): Remove calls to accel_attach.
1765 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1767 * gnu/java/awt/peer/gtk/GtkArg.java: Remove file.
1768 * gnu/java/awt/peer/gtk/GtkArgList.java: Remove file.
1770 * Makefile.am (gtk_awt_peer_sources): Remove GtkArg.java and
1772 (gtk_c_files): Use CAIRO_CFLAGS and PANGOFT2_CFLAGS, not _LIBS.
1773 * Makefile.in: Regenerate.
1774 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1775 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1776 (create(String)): New method.
1777 (create): Call new create method.
1778 (getArgs): Remove method.
1779 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
1780 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
1781 (nativeCreate): Rename to create.
1782 (gtkSetLabel): Rename to gtkButtonSetLabel.
1783 (gtkToggleButtonSetActive): New method.
1784 (create): Call gtkToggleButtonSetActive and gtkButtonSetLabel.
1785 (setState): Replace set call with gtkToggleButtonSetActive.
1786 (setLabel): Replace gtkSetLabel call with gtkButtonSetLabel.
1787 (getArgs): Remove method.
1788 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1789 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1790 (gtkWidgetSetSensitive): New method.
1791 (gtkWidgetSetParent): Likewise.
1792 (GtkComponentPeer): Call setParent, setComponentBounds and
1793 setVisibleAndEnabled.
1794 (setParent): New method.
1795 (setComponentBounds): New method.
1796 (setVisibleAndEnabled): New method.
1797 (setEnabled): Call gtkWidgetSetSensitive.
1798 (getArgs): Remove method.
1799 Remove all set methods.
1800 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Call
1801 gtkWindowSetModal, setTitle and setResizable.
1802 (getArgs): Remove method.
1803 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1804 (setComponentBounds): New method.
1805 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
1806 Replace set call with gtkWindowSetResizable.
1807 (getArgs): Remove method.
1808 (create): Call setTitle and setResizable.
1809 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
1810 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1811 (gtkWindowSetTitle): New method.
1812 (gtkWindowSetResizable): New method.
1813 (gtkWindowSetModal): New method.
1814 (setParent): New method.
1815 (setVisibleAndEnabled): New method.
1816 (getArgs): Remove method.
1817 (setTitle): Call gtkWindowSetTitle.
1818 (setResizable): Call gtkWindowSetResizable.
1819 * jni/gtk-peer/gtkpeer.h [DEBUG_LOCKING]: New define to turn on
1820 and off locking instrumentation.
1822 2004-08-31 Kim Ho <kho@redhat.com>
1824 * Makefile.am: Add new file.
1825 * Makefile.in: Regenerate.
1826 * gcj/Makefile.in: Regenerate
1827 * include/Makefile.in:
1828 * java/awt/Container.java:
1829 (acquireComponentForMouseEvent): Respect
1830 the event mask when looking for candidate.
1831 * javax/swing/JComponent.java:
1832 Remove toolTip field.
1833 (createToolTip): Create a tooltip on demand.
1834 (setToolTipText): Register with the ToolTipManager.
1835 (getToolTipText(MouseEvent)): Return getToolTipText().
1836 * javax/swing/JToolTip.java: Implement.
1837 * javax/swing/Timer.java: Jalopy.
1838 (restart): Call stop, then start.
1839 (stop): Interrupt the timer rather than wait for
1840 the timer to come to a stop naturally.
1841 * javax/swing/ToolTipManager.java: Implement.
1842 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1843 Change ToolTip.background color.
1844 * javax/swing/plaf/basic/BasicToolTipUI.java:
1846 * testsuite/Makefile.in: Regenerate
1848 2004-08-31 Jerry Quinn <jlquinn@optonline.net>
1850 * java/awt/image/DirectColorModel.java (DirectColorModel): Fix
1851 constructor param comments.
1853 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1855 * java/awt/Component.java: Document AWT 1.0 event handler
1858 2004-08-31 Roman Kennke <roman@ontographics.com>
1860 * javax/swing/Box.java:
1861 (createGlue): Implemented
1862 (createHorizontalGlue): Implemented
1863 (createHorizontalStrut): Implemented
1864 (createVerticalGlue): Implemented
1865 (createVerticalStrut): Implemented
1867 2004-08-31 David Jee <djee@redhat.com>
1869 * gnu/java/awt/peer/gtk/GtkChoicePeer.java
1870 (GtkChoicePeer): Do not automatically select first item.
1871 (getHistory): Remove.
1872 (nativeGetSelected): New method.
1873 (nativeRemoveAll): New method.
1874 (add): Use nativeGetSelected() instead of getHistory().
1876 (removeAll): Call nativeRemoveAll().
1877 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
1878 (create): Migrate to GtkComboBox.
1880 (nativeAdd): Likewise.
1881 (nativeRemove): Likewise.
1883 (nativeRemoveAll): New method.
1884 (nativeGetSelected): New method.
1885 (selection_changed): New method.
1886 (getHistory): Remove.
1887 (item_activate): Remove.
1888 (item_removed): Remove.
1889 (connect_choice_item_selectable_hook): Remove.
1891 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1893 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create): Use tf
1894 variable in setEditable call.
1896 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
1897 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
1898 (gtkWidgetSetBackground): New method.
1899 (gtkWidgetSetForeground): Likewise.
1900 (create): Set peer's editable state based on awtComponent's.
1902 * java/awt/Button.java (Button()): Use empty string rather than
1903 null in no-label constructor.
1905 2004-08-31 Roman Kennke <roman@ontographics.com>
1907 * javax/swing/BoxLayout.java: Reimplement.
1909 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1911 * gnu/java/awt/peer/gtk/GdkGraphics.java,
1912 gnu_java_awt_peer_gtk_GdkGraphics.c
1913 (initState(GtkComponentPeer)): Don't return array of colour
1915 (GdkGraphics(int,int)): Set default font to size 12.
1916 (GdkGraphics(GtkComponentPeer)): Set graphics colour to
1917 component's foreground colour.
1918 * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1919 gnu_java_awt_peer_gtk_GdkGraphics2D.c
1920 (initState(GtkComponentPeer)): Don't return array of colour
1922 (GdkGraphics2D(GtkComponentPeer)): Set foreground and background
1923 colours to component's colours.
1924 (current_colors_of_widget): Remove function.
1925 * gnu/java/awt/peer/gtk/GtkOffScreenImage.java (getGraphics):
1926 Return a new graphics object.
1927 * java/awt/Font.java (toString): Fix format.
1928 * java/awt/Graphics.java (toString): Likewise.
1930 2004-08-31 Craig Black <craig.black@aonix.com>
1932 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1933 (addTearOff): New function.
1934 * gnu/java/awt/peer/gtk/GtkMenuPeer.java (addTearOff):
1936 (init): Call addTearOff() when menu.isTearOff().
1938 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1940 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
1941 Default implementation.
1942 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
1943 Implement using GdkPixbufDecoder.
1945 2004-08-31 David Jee <djee@redhat.com>
1947 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
1948 (GtkComponentPeer): Use gtkWidgetGetPreferredDimensions() for
1949 setting the size of GtkFileDialogPeers.
1950 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1951 (gtkWidgetGetPreferredDimensions): For widgets extending GtkWindow,
1952 use their default sizes rather than their natural requisitions.
1954 2004-08-31 Michael Koch <konqueror@gmx.de>
1956 * javax/swing/JFormattedTextField.java
1957 (JFormattedTextField): Implemented.
1958 * javax/swing/text/DefaultEditorKit.java
1959 (BeepAction): New inner class.
1960 * javax/swing/text/Segment.java
1961 (partialReturn): New field.
1962 (setPartialReturn): New method.
1963 (isPartialReturn): Likewise.
1964 * javax/swing/text/View.java
1965 (createFragment): Fixed typo.
1966 (getStartOffset): New method.
1967 (getEndOffset): Likewise.
1969 2004-08-31 Michael Koch <konqueror@gmx.de>
1971 * javax/swing/table/DefaultTableColumnModel.java
1972 (serialVersionUID): Made private.
1973 (listenerList): Initialize.
1974 (changeEvent): Initialize.
1975 * javax/swing/table/JTableHeader.java
1976 (JTableHeader): New constructors.
1977 (createDefaultColumnModel): New method.
1978 * javax/swing/table/TableColumn.java
1979 (setHeaderRenderer): Simplified code.
1980 (setCellRenderer): Likewise.
1981 (setWidth): Likewise.
1983 2004-08-31 Tom Tromey <tromey@redhat.com>
1985 * java/text/AttributedString.java (AttributedString): Use
1986 ArrayList to build array of attribute ranges. Don't use
1987 `attribs' before it is set.
1989 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
1991 * HACKING: Remove reference to special automake. No longer needed.
1993 2004-08-30 Tom Tromey <tromey@redhat.com>
1995 * gnu/java/security/util/Prime.java (generateRandomPrime): Use
1996 return result from `add'.
1998 2004-08-30 Tom Tromey <tromey@redhat.com>
2000 * java/rmi/server/UID.java (UID): Read `nextCount', not count.
2002 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
2004 * gnu/java/security/der/DEREncodingException.java: Remove whitespaces.
2006 2004-08-30 Jeroen Frijters <jeroen@frijters.net>
2008 * java/io/File.java File(String,String): Fixed handling of empty
2011 2004-08-30 Casey Marshall <csm@gnu.org>
2013 Author e-mail updated for all files.
2014 * gnu/java/security/OID.java (equals): Test if the aurgment is an
2016 (compareTo): Use `equals'.
2017 * gnu/java/security/der/BitString.java (equals): Test if the
2018 argument is an instance of BitString.
2019 * gnu/java/security/der/DERReader.java: Removed NIO imports. Made
2020 class final. Made fields private.
2021 (<init>): New constructor.
2023 (makeString): Made static; don't use NIO.
2024 (fromIso88591, fromUtf16Be, fromUtf8): New methods.
2025 * gnu/java/security/der/DERWriter.java: Fixed imports.
2026 (writeString): Don't use NIO.
2027 (toIso88591, toUtf16Be, toUtf8): New methods.
2028 * gnu/java/security/der/DERValue.java: Formatting changes only.
2029 * gnu/java/security/der/DER.java: Likewise.
2031 2004-08-30 Tom Tromey <tromey@redhat.com>
2033 * java/nio/CharBuffer.java (put): Fix typo.
2034 * java/nio/DoubleBuffer.java (put): Fix typo.
2035 * java/nio/FloatBuffer.java (put): Fix typo.
2036 * java/nio/IntBuffer.java (put): Fix typo.
2037 * java/nio/LongBuffer.java (put): Fix typo.
2038 * java/nio/ShortBuffer.java (put): Fix typo.
2040 2004-08-30 Florian Weimer <fw@deneb.enyo.de>
2042 * java/nio/ByteBuffer.java (put): Fix typo.
2044 2004-08-30 Casey Marshall <csm@gnu.org>
2046 * java/security/DummyKeyPairGenerator.java (clone): Removed
2047 useless instanceof check.
2048 * java/security/DummyMessageDigest.java (clone): Likewise.
2049 * java/security/DummySignature.java (clone): Likewise.
2050 * java/security/MessageDigest.java (clone): Remove useless
2052 * java/security/MessageDigestSpi.java (clone): Likewise.
2053 * java/security/Signature.java (clone): Provide meaningful
2055 * java/security/SignatureSpi.java (clone): Likewise.
2057 2004-08-29 Mark Wielaard <mark@klomp.org>
2059 * java/util/Arrays.java
2060 (sort(byte[], int, int)): Check fromIndex < 0.
2061 (sort(char[], int, int)): Likewise.
2062 (sort(short[], int, int)): Likewise.
2063 (sort(int[], int, int)): Likewise.
2064 (sort(long[], int, int)): Likewise.
2065 (sort(float[], int, int)): Likewise.
2066 (sort(double[], int, int)): Likewise.
2067 (sort(Object[], int, int, Comparator)): Likewise.
2068 (qsort(byte[], int, int)): Honor lower bound from in insertion sort.
2069 (qsort(char[], int, int)): Likewise.
2070 (qsort(short[], int, int)): Likewise.
2071 (qsort(int[], int, int)): Likewise.
2072 (qsort(long[], int, int)): Likewise.
2073 (qsort(float[], int, int)): Likewise.
2074 (qsort(double[], int, int)): Likewise.
2076 2004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
2078 * java/util/AbstractCollection.java, java/util/AbstractList.java,
2079 java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
2080 java/util/ArrayList.java, java/util/Arrays.java,
2081 java/util/BitSet.java, java/util/Calendar.java,
2082 java/util/Collection.java, java/util/ListIterator.java,
2083 java/util/Map.java, java/util/SortedSet.java:
2084 Added additional exceptions to documentation, along
2085 with some additions and corrections.
2087 2004-08-27 Hans Boehm <Hans.Boehm@hp.com>
2089 * configure.ac: Handle --enable-gc-debug.
2090 * configure: Regenerate.
2091 * include/config.h.in (LIBGCJ_GC_DEBUG): Add.
2092 * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files.
2093 Rearrange include file order.
2094 (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set.
2095 (GC_finalize_all, GC_debug_generic_malloc): Don't declare.
2096 (disable_gc_mutex): Delete along with all references.
2097 (_Jv_MarkObj, _Jv_MarkArray): Use public types,
2098 adjust for debug header size.
2099 (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for
2101 (_Jv_AllocArray): Declare min_heap_addr only if needed.
2102 (gcj_describe_type_fn): New.
2103 (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind.
2104 Register gcj_describe_type_fn.
2105 * include/boehm-gc.h:
2106 (_Jv_AllocObj, _Jv_allocPtrFreeObj):
2107 Don't define, but declare, for debug case.
2108 * java/lang/natObject.cc:
2109 (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set.
2111 2004-08-26 Mark Wielaard <mark@klomp.org>
2113 Fixes PR libgcj/17002:
2114 * java/util/TimeZone.java (defaultZone): Try a couple of ways to get
2115 a TimeZoneId string and then try to convert that to a TimeZone with
2116 getDefaultSystemTimeZone(String).
2117 (timezones0): Changed type from Hashtable to HashMap.
2118 (timezones): Create HashMap, not Hashtable.
2119 (getDefaultTimeZone): New method, rewritten from CNI version.
2120 (readTimeZoneFile): New method.
2121 (readtzFile): Likewise.
2122 (skipFully): Likewise.
2123 * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
2124 getDefaultTimeZoneId and rewritten.
2125 (getDefaultTimeZoneId): Rewritten in java.
2127 2004-08-25 David Daney <daney@avtrex.com>
2129 * Makefile.am (AM_GCJFLAGS): Add LIBGCJ_JAVAFLAGS.
2130 * Makefile.in: Regenerated.
2132 2004-08-23 Bryce McKinlay <mckinlay@redhat.com>
2134 * prims.cc (JVMPI_NOTIFY_ALLOC): New macro. Call jvmpi_notify_alloc
2135 only if jvmpi is enabled.
2136 (jvmpi_notify_alloc): Don't check if jvmpi is enabled here.
2137 (_Jv_AllocObjectNoFinalizer): Use JVMPI_NOTIFY_ALLOC.
2138 (_Jv_AllocString): Likewise.
2139 (_Jv_AllocPtrFreeObject): Likewise.
2141 2004-08-23 Hans Boehm <Hans.Boehm@hp.com>
2143 * defineclass.cc: Include <stdio.h>.
2144 * java/lang/natClassLoader.cc: Include <stdio.h>.
2146 2004-08-21 Andreas Tobler <a.tobler@schweiz.ch>
2147 Michael Koch <konqueror@gmx.de>
2149 * Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.
2150 * Makefile.in: Regenerated.
2152 2004-08-20 Michael Koch <konqueror@gmx.de>
2154 * configure.ac: Replaced all AC_TRY_COMPILE macros with
2155 AC_COMPILE_IFELSE macros.
2157 2004-08-20 Michael Koch <konqueror@gmx.de>
2159 * configure.in: Renamed to configure.ac.
2160 * configure.ac: New file.
2161 * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
2162 include/config.h.in, testsuite/Makefile.in: Regenerated.
2164 2004-08-20 Michael Koch <konqueror@gmx.de>
2166 * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
2167 * aclocal.m4, configure: Regenerated.
2169 2004-08-19 Thomas Fitzsimmons <fitzsim@redhat.com>
2170 Michael Koch <konqueror@gmx.de>
2172 * configure.in, Makefile.am: Ported to automake 1.9.
2173 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
2174 include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
2177 2004-08-19 Tom Tromey <tromey@redhat.com>
2179 * java/net/DatagramSocket.java: Fixed typo.
2181 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2184 * java/net/URI.java (string): New field. Make all other fields
2186 (readObject): Implemented.
2187 (writeObject): Implemented.
2188 (URI): Set 'string'.
2190 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2193 * java/util/logging/Handler.java (isLoggable): Accept record if its
2194 log level equals the threshold level. From Robin Green.
2196 2004-08-18 David Daney <ddaney@avtrex.com>
2198 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
2201 2004-08-17 Michael Koch <konqueror@gmx.de>
2203 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
2204 * Makefile.in: Regenerated.
2206 2004-08-16 Tom Tromey <tromey@redhat.com>
2209 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
2211 2004-08-16 Michael Koch <konqueror@gmx.de>
2214 (math_c_files): Renamed from c_files.
2215 (math_c_source_files): Renamed from c_source_files.
2218 include/Makefile.in,
2219 testsuite/Makefile.in: Regenerated.
2221 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
2223 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
2224 to avoid autoconf warning.
2225 * configure: Rebuilt.
2227 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
2229 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
2230 localhostAddress to loopbackAddress.
2231 * java/net/natInetAddressWin32.cc (lookup): Likewise.
2233 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2235 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
2236 boehm-gc's include dirs.
2237 * configure: Rebuilt.
2238 * include/boehm-gc.h: Include gc_config.h.
2240 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2242 * java/net/InetAddress.java (loopbackAddress): Renamed from
2244 (getByName): Return loopback address for null hostname, without
2245 security check. Use lookup(), not getAllByName.
2246 (getAllByName): Return loopback address for null hostname, without
2248 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
2251 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2254 Reported by Robin Green.
2255 * defineclass.cc (handleField): Don't throw exception on unrecognised
2256 modifier. Add FIXME comments for spec compliance.
2257 (handleMethod): Likewise.
2259 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
2262 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
2263 (Almost everywhere): add LOG calls, fix, add comments.
2264 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
2265 Add explicit check for LOCKED bit in slow case (PR 16662).
2266 (_Jv_MonitorExit): Add casts in debug-only code.
2267 Always release LOCKED bit before throwing exception.
2268 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
2269 isn't. Handle easy cases without lock acquisition.
2270 (Object::wait): Use NotifyAll for lock inflation.
2272 2004-08-12 David Daney <ddaney@avtrex.com>
2274 * testsuite/libjava.lang/Process_1.java: New test.
2275 * testsuite/libjava.lang/Process_2.java: New test.
2276 * testsuite/libjava.lang/Process_3.java: New test.
2277 * testsuite/libjava.lang/Process_4.java: New test.
2278 * testsuite/libjava.lang/Process_5.java: New test.
2279 * testsuite/libjava.lang/Process_6.java: New test.
2280 * testsuite/libjava.lang/Process_1.out: Expected result.
2281 * testsuite/libjava.lang/Process_2.out: Expected result.
2282 * testsuite/libjava.lang/Process_3.out: Expected result.
2283 * testsuite/libjava.lang/Process_4.out: Expected result.
2284 * testsuite/libjava.lang/Process_5.out: Expected result.
2285 * testsuite/libjava.lang/Process_6.out: Expected result.
2287 2004-08-12 David Daney <ddaney@avtrex.com>
2290 * java/lang/PosixProcess.java: Rewrote.
2291 * java/lang/natPosixProcess.cc: Rewrote.
2292 * java/lang/Runtime.java (execInternal): Declare throws IOException.
2293 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
2294 * posix-threads.cc (block_sigchld) New function.
2295 (_Jv_ThreadRegister) Use it.
2296 (_Jv_ThreadStart) Use it.
2297 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
2298 * Makefile.am: ... to specify extra native headers.
2299 * configure: Regenerated.
2300 * include/config.h: Regenerated.
2301 * Makefile.in: Regenerated.
2302 * gcj/Makefile.in: Regenerated.
2303 * include/Makefile.in: Regenerated.
2304 * testsuite/Makefile.in: Regenerated.
2306 2004-08-12 Diego Novillo <dnovillo@redhat.com>
2308 PR tree-optimization/16867
2309 * testsuite/libjava.lang/PR16867.java: New test.
2311 2004-08-09 Per Bothner <per@bothner.com>
2313 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
2314 with private fields and access methods.
2315 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
2316 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
2317 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
2318 ( _Jv_makeUtf8Const): Rewrite using new constructors.
2319 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
2320 * defineclass.cc: Use new _Utf8Const access/convenience methods.
2322 * resolve.cc: Likewise.
2323 * gcj/field.h: Likewise.
2324 * include/jvm.h: Likewise.
2325 * java/lang/Class.h: Likewise.
2326 * java/lang/natClass.cc: Likwise.
2327 * java/lang/natClassLoader.cc: Likewise
2328 * java/lang/reflect/natMethod.cc: Likewise
2329 * verify.cc: Likewise.
2330 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
2331 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
2333 2004-08-10 Andrew Haley <aph@redhat.com>
2335 * testsuite/libjava.lang/err14.java: New file.
2336 * testsuite/libjava.lang/err14.out: New file.
2338 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
2340 * Makefile.am: Fix missing rename from x_nat_headers to
2342 * Makefile.in: Regenerated.
2344 2004-08-04 Andrew Haley <aph@redhat.com>
2346 * java/security/BasicPermission.java: Don't check wildcards.
2348 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2349 Michael Koch <konqueror@gmx.de>
2351 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
2352 * configure.in: Replaced all usages of AC_LINK_FILES by
2355 configure: Regenerated.
2357 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2358 Michael Koch <konqueror@gmx.de>
2360 * acconfig.h: Removed.
2361 * Makefile.am: Rename variables for xlib peer to include xlib and
2362 gtk_c_headers to gtk_jni_headers.
2363 * Makefile.in: Regenerated.
2365 2004-08-04 Andrew Haley <aph@redhat.com>
2367 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
2370 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
2372 * configure.in: Eliminate uses of changequote (mostly by quoting []).
2373 Replace most top level 'dnl' comments with '#' comments, conforming
2374 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
2376 * configure: Rebuilt.
2378 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
2380 * acinclude.m4: Include no-executables.m4.
2381 * aclocal.m4: Rebuild.
2382 * configure.in: Convert to the autoconf 2.59 version of
2383 of the no-executables hack, and also of the nonstandard CXX
2384 hack and the multilibbed CC and CXX hack. Change prerequisite
2386 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
2387 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
2388 testsuite/Makefile.in: Regenerate.
2390 2004-08-03 Tom Tromey <tromey@redhat.com>
2392 * jni.cc: Reindented.
2394 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2396 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
2398 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2400 * testsuite/libjava.compile/PR16701.java: New test.
2402 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
2404 * java/util/Collection.java, java/util/List.java,
2405 java/util/Map.java, java/util/Set.java,
2406 java/util/SortedMap.java, java/util/SortedSet.java:
2407 Added additional exceptions to documentation.
2409 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
2412 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
2413 * configure. Regenerate.
2414 * include/win32.h: Explicitly include winsock2.h
2415 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
2418 2004-07-30 Michael Koch <konqueror@gmx.de>
2420 * java/util/zip/GZIPInputStream.java
2421 (GZIPInputStream): Increase buffer size to 4k.
2422 * java/util/zip/GZIPOutputStream.java
2423 (GZIPOutputStream): Likewise.
2424 * java/util/zip/Inflater.java
2425 (setInput): Merged formating with GNU classpath.
2426 * java/util/zip/InflaterInputStream.java
2427 (InflaterInputStream): Increase buffer size to 4k.
2428 (fill): Throw exception if stream ends early.
2429 (read): Merged endless-loop with GNU classpath.
2430 (skip): Increase buffer size to 2k.
2432 2004-07-30 Michael Koch <konqueror@gmx.de>
2434 * gnu/java/awt/EmbeddedWindow.java
2435 (addNotify): Use AccessController to allow execution of privileged
2438 2004-07-29 Michael Koch <konqueror@gmx.de>
2440 * gnu/java/lang/MainThread.java:
2441 Explicitely import used classes.
2442 (args): Make it type String[].
2444 2004-07-29 Dalibor Topic <robilad@kaffe.org>
2446 * gnu/java/awt/ComponentDataBlitOp.java,
2447 gnu/java/beans/ExplicitBeanInfo.java,
2448 gnu/java/beans/IntrospectionIncubator.java,
2449 gnu/java/beans/editors/ColorEditor.java,
2450 gnu/java/beans/editors/FontEditor.java,
2451 gnu/java/beans/editors/NativeBooleanEditor.java,
2452 gnu/java/beans/editors/NativeByteEditor.java,
2453 gnu/java/beans/editors/NativeDoubleEditor.java,
2454 gnu/java/beans/editors/NativeFloatEditor.java,
2455 gnu/java/beans/editors/NativeIntEditor.java,
2456 gnu/java/beans/editors/NativeLongEditor.java,
2457 gnu/java/beans/editors/NativeShortEditor.java,
2458 gnu/java/beans/editors/StringEditor.java,
2459 gnu/java/io/ClassLoaderObjectInputStream.java,
2460 gnu/java/io/decode/Decoder.java,
2461 gnu/java/io/encode/Encoder.java,
2462 gnu/java/lang/ClassHelper.java,
2463 gnu/java/locale/Calendar.java,
2464 gnu/java/locale/Calendar_de.java,
2465 gnu/java/locale/Calendar_en.java,
2466 gnu/java/locale/Calendar_nl.java,
2467 gnu/java/locale/LocaleInformation_de.java,
2468 gnu/java/locale/LocaleInformation_en.java,
2469 gnu/java/locale/LocaleInformation_nl.java:
2472 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2474 * README: Remove obsolete info. Update bug URL.
2476 * NEWS: Updated with news up to GCC 3.4 release.
2478 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2480 * gnu/java/security/action/GetPropertyAction.java (setParameters):
2481 Renamed from 'setName'. New 2-argument form with default value.
2482 (run): Pass default 'value' parameter to System.getProperty().
2483 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
2485 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
2488 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2490 * configure.in: Check for minimum GTK version 2.4 requirement.
2491 * configure: Rebuilt.
2493 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2495 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
2496 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
2498 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
2500 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
2501 address. Reduce sleep times. Synchronize with target threads before
2502 attempting to interrupt them. Don't try to calibrate yeild count,
2503 instead, always loop for a fixed time.
2504 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
2505 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
2506 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
2507 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
2508 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
2509 * testsuite/libjava.lang/pr179.java: Likewise.
2510 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
2511 time. Remove upper bounds check on sleep time.
2513 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2515 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
2516 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
2518 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2520 * java/io/File.java (toURI): Throw RuntimeException, not
2522 * java/lang/Runtime.java (exit): Qualify static sleep() call with
2523 class name, not instance.
2525 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
2527 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
2528 and gnu/java/security/action/SetAccessibleAction.java.
2529 * Makefile.in: Rebuilt.
2531 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2533 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
2534 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
2536 (DECLARE_PRIM_TYPE): Don't declare array vtables.
2537 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
2538 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
2540 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
2542 * Makefile.am: Replace jar, rmic and rmiregistry references with
2543 gjar, grmic and grmiregistry.
2544 * configure.in: Likewise.
2545 * Makefile.in: Regenerate.
2546 * configure: Likewise.
2547 * gcj/Makefile.in: Likewise.
2548 * include/Makefile.in: Likewise.
2549 * testsuite/Makefile.in: Likewise.
2551 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2553 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
2554 for privileged getProperty calls.
2555 * java/io/ObjectOutputStream.java (getField): No longer static. Use
2556 SetAccessibleAction instead of anonymous class for doPrivileged call.
2557 (getMethod): Likewise.
2558 (setAccessible): New field. PrivilegedAction object to use when
2559 calling setAccessible.
2560 * java/io/ObjectStreamClass.java (calculateOffsets): Use
2561 SetAccessibleAction instead of anonymous class for diPrivileged call.
2562 (setFields): Likewise.
2563 (getClassUID): Likewise.
2564 (findMethod): Likewise.
2565 * gnu/java/security/action/GetPropertyAction.java: New class.
2566 * gnu/java/security/action/SetAccessibleAction.java: New class.
2568 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2570 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
2572 * testsuite/libjava.lang/Serialization.java: New test.
2573 * testsuite/libjava.lang/Serialization.out: New.
2575 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2577 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
2578 missed in last commit.
2580 2004-07-23 Mark Wielaard <mark@klomp.org>
2582 * java/lang/System.java (static): Set http.agent system property when
2584 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
2585 from system property inside AccessController.doPrivileged() call.
2586 (proxyPort): Made package private.
2587 (proxyInUse): Likewise.
2588 (proxyHost): Likewise.
2589 (userAgent): Likewise.
2591 2004-07-23 Mark Wielaard <mark@klomp.org>
2593 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
2596 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
2598 * Makefile.am (ordinary_java_source_files): Add
2599 DefaultContentHandlerFactory.java.
2600 * Makefile.in: Rebuilt.
2601 * java/net/URLConnection.java (defaultFactory): New field.
2603 (getContentHandler): Renamed from 'setContentHandler'. Try
2604 defaultFactory after user-set factory, if any. Search for content
2605 handler implementations in gnu.java.net.content, not gnu.gcj.content.
2606 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
2608 (getLastModified): Implemented.
2609 (getPermission): Create file permission here, instead of in
2611 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
2613 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
2615 (getLastModified): Implemented.
2616 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2617 Default implementation.
2618 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2619 Implement using GdkPixbufDecoder.
2621 2004-07-21 Michael Koch <konqueror@gmx.de>
2623 * javax/swing/JTextArea.java
2624 (setLineWrap): Fire property change event after new value is set.
2625 (setTabSize): Likewise.
2627 2004-07-21 Michael Koch <konqueror@gmx.de>
2629 * javax/swing/JTable.java
2630 (autoCreateColumnsFromModel): New field.
2631 (autoResizeMode): Likewise.
2632 (cellEditor): Likewise.
2633 (cellSelectionEnabled): Likewise.
2634 (columnModel): Likewise.
2635 (dataModel): Likewise.
2636 (defaultEditorsByColumnClass): Likewise.
2637 (defaultRenderersByColumnClass): Likewise.
2638 (editingColumn): Likewise.
2639 (editingRow): Likewise.
2640 (gridColor): Likewise.
2641 (preferredViewportSize): Likewise.
2642 (rowHeight): Likewise.
2643 (rowMargin): Likewise.
2644 (rowSelectionAllowed): Likewise.
2645 (selectionBackground): Likewise.
2646 (selectionForeground): Likewise.
2647 (selectionModel): Likewise.
2648 (showHorizontalLines): Likewise.
2649 (showVerticalLines): Likewise.
2650 (tableHeader): Likewise.
2651 (JTable): Implemented.
2652 (getColumnModel): Likewise.
2653 (getSelectedRow): Likewise.
2654 (getSelectionModel): Likewise.
2655 (setModel): Likewise.
2656 (setSelectionModel): Likewise.
2657 (createScrollPaneForTable): New method.
2658 (createDefaultDataModel): Likewise.
2659 (createDefaultListSelectionModel): Likewise.
2660 (getModel): Likewise.
2661 (getTableHeader): Likewise.
2662 (setTableHeader): Likewise.
2663 (getColumnSelectionAllowed): Likewise.
2664 (setColumnSelectionAllowed): Likewise.
2665 (getRowSelectionAllowed): Likewise.
2666 (setRowSelectionAllowed): Likewise.
2667 (getAutoResizeMode): Likewise.
2668 (setAutoResizeMode): Likewise.
2669 (getColumnCount): Likewise.
2670 (getRowCount): Likewise.
2671 (getCellRenderer): Likewise.
2672 * javax/swing/JTree.java
2673 (cellRenderer): New field.
2674 (editable): Likewise.
2675 (rootVisible): Likewise.
2676 (showsRootHandles): Likewise.
2677 (getModel): New method.
2678 (setModel): Likewise.
2679 (isEditable): Likewise.
2680 (setEditable): Likewise.
2681 (isRootVisbile): Likewise.
2682 (setRootVisible): Likewise.
2683 (getShowsRootHandles): Likewise.
2684 (setShowRootHandles): Likewise.
2685 (getCellRenderer): Likewise.
2686 (setCellRenderer): Likewise.
2688 2004-07-21 Michael Koch <konqueror@gmx.de>
2690 * javax/swing/JFormattedTextField.java
2691 (setDocument): Implemented.
2692 * javax/swing/JRootPane.java:
2694 * javax/swing/JTable.java
2695 (getDefaultRenderer): New method.
2696 * javax/swing/JTextField.java
2697 (setFont): Likewise.
2698 (getPreferredSize): Likewise.
2699 * javax/swing/JToggleButton.java
2700 (getAccessibleContext): Fix javadoc.
2701 * javax/swing/JTree.java:
2703 * javax/swing/JViewport.java:
2706 2004-07-21 David Jee <djee@redhat.com>
2708 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
2709 Collect all native method declaration at the top.
2710 (create): Set the filename filter if necessary.
2711 (setDirectory): Call nativeSetDirectory().
2712 (setFilenameFilter): Implement.
2713 (filenameFilterCallback): New method.
2714 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2715 (create): Configure dialog to show hidden files.
2716 (filenameFilterCallback): New function.
2717 (nativeSetFilenameFilter): New function.
2718 (nativeSetDirectory): New function.
2720 2004-07-21 Kim Ho <kho@redhat.com>
2722 * javax/swing/plaf/basic/BasicSliderUI.java:
2724 (paintTrack): Fill the track before painting
2727 2004-07-21 Graydon Hoare <graydon@redhat.com>
2729 patch from Roman Kennke <roman@ontographics.com>
2730 * javax/swing/Spring.java: New file.
2731 * javax/swing/SpringLayout.java: New file.
2732 * Makefile.am: Add new files.
2733 * Makefile.in: Regenerate.
2735 2004-07-21 Graydon Hoare <graydon@redhat.com>
2737 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
2738 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
2739 * javax/swing/ScrollPaneLayout.java: Likewise.
2741 2004-07-21 Kim Ho <kho@redhat.com>
2743 * javax/swing/DefaultDesktopManager.java:
2744 (findMinimum): Removed.
2745 (resizeFrame): Trust the UI to pass valid
2747 * javax/swing/JOptionPane.java:
2748 Implemented showInternalXXXDialog methods.
2749 (startModal): New method.
2750 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2751 (BorderListener::mouseDragged): Verify that the new
2752 bounds are valid before passing them to the DesktopManager.
2753 (preferredLayoutSize): Delegate
2755 (minimumLayoutSize): Ditto.
2756 (getSize): New method.
2757 (GlassPaneDispatcher): Reimplemented by copying
2758 a stripped down LightweightDispatcher from Container.
2759 (getMinimumSize): Call minimumLayoutSize.
2760 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
2762 (mousePressed): Add ability to properly close
2764 * javax/swing/plaf/basic/BasicToolBarUI.java:
2765 (DragWindow): Set owner for DragWindow.
2767 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2769 * java/awt/image/ShortLookupTable.java: New file.
2770 * java/awt/image/ByteLookupTable.java: New file.
2771 * Makefile.am: Added new files.
2772 * Makefile.in: Regenerated.
2774 2004-07-21 David Jee <djee@redhat.com>
2776 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2777 (create(GtkContainerPeer)): New native method.
2778 (create()): Call native create(), passing in the parent frame
2779 as the paramter. Natively set the current file and directory.
2780 (setFile): Construct an absolute filename before passing it to
2782 (nativeGetDirectory): New method.
2783 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2784 (window_closed): Removed.
2785 (ok_clicked): Likewise.
2786 (cancel_clicked): Likewise.
2787 (handle_response): New method.
2788 (create): Use GtkFileChooserDialog.
2789 (connectSignals): Connect to handle_response.
2790 (nativeGetDirectory): New method.
2791 (nativeSetFile): Use GtkFileChooserDialog.
2793 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2795 * java/awt/image/LookupTable.java: New file.
2796 * Makefile.am: Added new file.
2797 * Makefile.in: Regenerated.
2799 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2801 * java/awt/image/Kernel.java: New file.
2802 * Makefile.am: Added new file.
2803 * Makefile.in: Regenerated.
2805 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2807 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
2808 * javax/swing/JMenu.java: Likewise.
2809 * javax/swing/JMenuBar.java: Likewise.
2810 (MARGIN_CHANGED_PROPERTY): New property.
2811 (setMargin): Implemented.
2812 * javax/swing/JMenuItem.java: Fixed javadocs.
2813 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
2814 (LABEL_CHANGED_PROPERTY): New property.
2815 (add): changed to use createActionComponent.
2816 (createActionComponent): Implemented.
2817 (setLabel): Fire PropertyChangeEvent if label property
2819 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
2820 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
2821 (ContainerHandler): Repaint if margin property has changed.
2822 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2823 (installUI): Call installComponents().
2824 (uninstallUI): Call uinstallComponents().
2825 * javax/swing/plaf/basic/BasicMenuUI.java:
2827 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2830 2004-07-21 Kim Ho <kho@redhat.com>
2832 * javax/swing/plaf/basic/BasicToolBarUI.java:
2833 (DragWindow): Use the right constructor.
2835 2004-07-21 Kim Ho <kho@redhat.com>
2837 * javax/swing/JToolBar.java:
2838 (layoutContainer): Use getComponents.
2839 * javax/swing/plaf/basic/BasicToolBarUI.java:
2840 (DragWindow): Don't use SwingUtilities'
2842 (ToolBarDialog): ditto.
2844 2004-07-21 Kim Ho <kho@redhat.com>
2846 * javax/swing/JRootPane.java:
2848 (layoutContainer): Set the glasspane's size to
2849 be the same as the content pane.
2850 (createGlassPane): Set opaque property to false.
2852 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2854 * java/awt/Component.java (requestFocus()): Don't handle Panels
2856 (requestFocus(boolean)): Likewise.
2857 (requestFocusInWindow(boolean)): Likewise.
2858 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
2859 Set GTK_CAN_FOCUS flag.
2861 2004-07-21 Kim Ho <kho@redhat.com>
2863 * Makefile.am: Added new file.
2864 * Makefile.in: Regenerated.
2865 * gcj/Makefile.in: Regenerated.
2866 * include/Makefile.in: Regenerated.
2867 * javax/swing/AbstractButton.java:
2868 Add rollOverEnabled property.
2869 (setRolloverEnabled): Use new property.
2870 (isRolloverEnabled): Use new property.
2871 * javax/swing/JTabbedPane.java:
2872 (setComponent): Remove useless JTabbedPane.this.
2873 * javax/swing/JToolBar.java: Finish implementation.
2874 * javax/swing/plaf/basic/BasicArrowButton.java:
2875 (paint): Moved border painting to a border.
2876 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2877 Change JToolBar look and feel defaults.
2878 * javax/swing/plaf/basic/BasicOptionPaneUI.java
2879 (actionPerformed): Return Integer index instead of name.
2880 (addButtonComponents): Check to see if component is
2882 (createMessageArea): Don't use components that are not
2884 (getIconForType): Use temporary icons.
2885 * javax/swing/plaf/basic/BasicSliderUI.java:
2886 (mousePressed): Do not return if it's on thumb.
2887 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
2888 (paintMinorTickForVertSlider): ditto.
2889 (paintMajorTickForHorizSlider): ditto.
2890 (paintMajorTickForVertSlider): ditto.
2891 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
2892 Add a border around the SplitPaneDivider.
2893 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
2895 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
2896 New file. Implemented.
2897 * javax/swing/plaf/basic/BasicToolBarUI.java:
2899 * testsuite/Makefile.in: Regenerated.
2901 2004-07-21 Graydon Hoare <graydon@redhat.com>
2903 * javax/swing/Timer.java (run): Queue events each time cycle.
2905 2004-07-21 David Jee <djee@redhat.com>
2907 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2908 (imageComplete): Call image.imageComplete().
2909 * java/awt/image/MemoryImageSource.java:
2910 Reimplement consumers as a Vector instead of a Hashtable. This is
2911 because enumeration on a Hashtable is not thread-safe.
2912 (addConsumer): Adapt to Vector consumers.
2913 (isConsumer): Adapt to Vector consumers.
2914 (removeConsumer): Adapt to Vector consumers.
2915 (startProduction): Adapt to Vector consumers. Call imageComplete()
2916 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
2917 (newPixels): Adapt to Vector consumers.
2918 (sendPicture): Set the color model of the image consumer.
2919 (newPixels(IIII)): Adapt to Vector consumers.
2920 (newPixels(IIIIB)): Adapt to Vector consumers.
2922 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2924 * java/awt/Component.java (deliverEvent): Implement.
2925 (postEvent): Implement.
2926 (handleEvent): Implement.
2927 (translateEvent): New method.
2928 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
2929 * java/awt/Container.java (deliverEvent): Implement.
2930 * java/awt/Event.java (paramString): Fix formatting.
2931 * java/awt/Font.java (toString): Likewise.
2932 * java/awt/Window.java (postEvent): Implement.
2934 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2936 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
2937 Set window's focus owner upon receiving a FOCUS_LOST event.
2938 * java/awt/Window.java (Window()): Refocus the previously
2939 focused component within the window when the window regains the
2941 (setFocusOwner): New method.
2942 * java/awt/Component.java (requestFocus): Add FIXME.
2944 * libgcj.pc.in: Remove library flags.
2946 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2948 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
2949 MOUSE_PRESSED event.
2950 * java/awt/Component.java (requestFocus()): Handle Panel
2951 specially. Post FOCUS_LOST event on opposite component.
2952 (requestFocus(boolean)): Likewise.
2953 (requestFocusInWindow(boolean)): Likewise.
2954 (paramString): Reorder dimension fields.
2955 * java/awt/Container.java (paramString): Fix string format.
2956 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
2957 Handle FOCUS_LOST events. Don't handle Windows specially. Only
2958 process key events if the focus owner is non-null.
2959 (dispatchKeyEvent): Likewise.
2960 * java/awt/Frame.java (paramString): Fix formatting.
2961 (generateName): New method.
2962 (getUniqueLong): Likewise.
2963 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
2964 the temporary focus owner is null. If so, return the permanent
2966 * java/awt/Panel.java (generateName): New method.
2967 (getUniqueLong): Likewise.
2968 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
2969 signal handling to make callbacks more specific.
2971 2004-07-21 Michael Koch <konqueror@gmx.de>
2973 * javax/swing/text/Position.java
2974 (Bias): Implemented.
2976 2004-07-21 Michael Koch <konqueror@gmx.de>
2978 * javax/swing/LookAndFeel.java
2979 (provideErrorFeedback): New method.
2981 2004-07-21 Michael Koch <konqueror@gmx.de>
2983 * javax/swing/JTextArea.java
2984 (tabSize): New field.
2985 (getTabSize): New method.
2986 (setTabSize): Likewise.
2988 2004-07-21 Michael Koch <konqueror@gmx.de>
2990 * javax/swing/ActionMap.java:
2991 Fixed javadocs all over.
2992 (serialVersionUID): Made private.
2993 (parent): Don't explicitely initialize with default value.
2995 (keys): Reimplemented.
2996 (allKeys): Likewise.
2997 (convertSet): Removed.
2998 * javax/swing/ComponentInputMap.java:
2999 Fixed javadocs all over.
3000 (ComponentInputMap): Implemented.
3004 (SetParent): Likewise.
3005 (getComponent): Likewise.
3006 * javax/swing/InputMap.java:
3007 Fixed javadocs all over.
3008 (serialVersionUID): Made private.
3009 (parent): Don't explicitely initialize with default value.
3011 (keys): Reimplemented.
3012 (allKeys): Likewise.
3013 (convertSet): Removed.
3015 2004-07-21 Michael Koch <konqueror@gmx.de>
3017 * javax/swing/ActionMap.java,
3018 javax/swing/ComponentInputMap.java,
3019 javax/swing/InputMap.java,
3020 javax/swing/table/DefaultTableColumnModel.java,
3021 javax/swing/table/TableColumn.java,
3022 javax/swing/table/TableColumnModel.java,
3023 javax/swing/table/TableModel.java,
3024 javax/swing/text/AbstractDocument.java,
3025 javax/swing/text/TextAction.java:
3028 2004-07-21 Graydon Hoare <graydon@redhat.com>
3030 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
3031 Make method non-static.
3032 * javax/swing/AbstractButton.java:
3033 Rename fields to match property names where possible.
3034 (iconTextGap): New property.
3035 * javax/swing/JCheckBox.java: Match AbstractButton changes.
3036 (init) New method, call from after various constructors.
3037 * javax/swing/JComponent.java (revalidate):
3038 Invalidate before queueing repair.
3039 * javax/swing/JList.java (getPreferredScrollableViewportSize):
3040 Reimplement in terms of visibleRowCount property.
3041 * javax/swing/JMenuButton.java: Match AbstractButton changes.
3042 * javax/swing/JScrollPane.java (createScrollListener):
3043 Remove tracing chatter.
3044 * javax/swing/JToggleButton.java: Match AbstractButton changes.
3045 * javax/swing/RepaintManager.java (addInvalidComponent):
3047 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
3049 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
3050 Mimic sun behavior on top left/right positioning.
3051 * javax/swing/ViewportLayout.java (preferredLayoutSize):
3052 Remove mistaken use of preferredScrollableViewportSize here.
3053 (layoutContainer): Use view's preferred size as basis.
3054 * javax/swing/plaf/basic/BasicButtonUI.java:
3055 Set, get, and use textIconGap property.
3056 (paint) Paint text returned from layout (with ellipsis).
3057 * javax/swing/plaf/basic/BasicListUI.java:
3058 Remove tracing chatter, correct various minor calculations.
3059 (getCellBounds): Update layout state before calculating.
3060 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
3061 Use margin default similar to sun's.
3062 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
3063 (createIncreaseIcon): Center icon, minimize margins.
3064 (createDecreaseIcon): Likewise.
3065 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
3067 (installUI): Call it.
3068 (uninstallDefaults): Implement.
3069 (uninstallUI): Call it.
3070 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
3071 Call existing Window constructor.
3072 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
3073 Set clip before painting.
3075 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3077 * javax/swing/JMenuItem.java:
3078 (processMouseEvent): Reimplemented to deal with
3080 (createMenuDragMouseEvent): New private helper method.
3081 Creates MenuDragMouseEvent.
3082 * javax/swing/MenuSelectionManager.java
3083 (componentForPoint): Implemented.
3084 (isComponentPartOfCurrentMenu): Made public.
3085 (processMouseEvent): Reimplemented to deal with
3087 (setSelectedPath): Corrected small mistake that caused
3088 path to be set incorrectly.
3089 (getPath): If given component is JMenu then also add this
3090 menu's popup menu to the selected path.
3091 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3093 (getPreferredSize): Call getPreferredMenuItemSize().
3094 (getPreferredItemSize): Moved code from getPreferredSize to here.
3095 (installListeners): Install MouseMotionListeners.
3096 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
3097 if mouse wasn't released in the bounds of this menu item.
3098 (MenuDragMouseHandler): Implemented.
3099 * javax/swing/plaf/basic/BasicMenuUI.java:
3100 (installListeners): Install MouseMotionListener and
3101 MenuDrageMouseListener.
3102 (MenuDragMouseHandler): Implemented.
3103 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3104 (uninstallListeners): Implemented.
3106 2004-07-21 Michael Koch <konqueror@gmx.de>
3108 * javax/swing/JCheckBox.java: Reformated.
3109 (JCheckBox): Fixed all constructors.
3110 (isBorderPaintedFlat): New method.
3111 (setBorderPaintedFlat): New method.
3112 * javax/swing/JEditorPane.java
3113 (createEditorKitForContentType): Made public.
3114 (scrollToReference): Likewise.
3115 * javax/swing/JTextArea.java
3116 (setLineWrap): Fire property change.
3117 * javax/swing/JToggleButton.java
3118 (JToggleButton): New constructor.
3119 (JToggleButton): Simplified.
3120 * javax/swing/text/AttributeSet.java
3121 (FontAttribute): Renamed from FontCharacterAttribute.
3122 * javax/swing/text/JTextComponent.java
3123 (KeyBinBinding): Added javadoc.
3124 (JTextComponent): Likewise.
3125 (getAccessibleContext): Fixed javadoc.
3126 * javax/swing/text/View.java
3127 (View): Added javadoc.
3128 * javax/swing/text/TabableView.java: New file.
3129 * Makefile.am: Added javax/swing/text/TabableView.java.
3130 * Makefile.in: Regenerated.
3132 2004-07-21 Graydon Hoare <graydon@redhat.com>
3134 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
3135 * gnu/java/awt/peer/gtk/GtkToolkit.java
3136 (GtkErrorImage): New helper class.
3137 (bufferedImageOrError): New helper method.
3138 (createImage): Use it.
3140 2004-07-21 David Jee <djee@redhat.com>
3142 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3143 (setCaretPosition): Scroll the text view so the new caret position
3144 is visible on screen.
3146 2004-07-21 David Jee <djee@redhat.com>
3148 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3149 (setBounds): Do not validate awtComponent here.
3150 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
3151 (getPreferredSize): New method.
3152 * java/awt/ScrollPane.java
3153 (ScrollPane): Set default size to 100x100.
3154 (addNotify): If child is not a Panel, wrap it with a new Panel.
3155 (paramString): Implement.
3157 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3159 * javax/swing/JMenu.java:
3160 (setSelected): Display popup menu only if this menu
3161 is showing on the screen.
3162 * javax/swing/JPopupMenu.java:
3163 (processMouseEvent): Added comment.
3164 (processKeyEvent): Likewise.
3165 * javax/swing/MenuSelectionManager.java:
3166 (clearSelectedPath): Only fireStateChanged() after
3167 selected path was changed, not before.
3168 (setSelectedPath): Likewise.
3169 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3170 (paintMenuItem): Corrected position of menu item's
3172 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3173 (installUI): Correct setDefaultLightWeightPopupEnabled call.
3174 (popupMenuCanceled): Reimplemented.
3175 (popupMenuWillBecomeVisible): Select first menu item by default
3176 when displaying free floating popup menus.
3177 (TopWindowListener): Reimplemented.
3179 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3181 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
3182 Panel from being painted twice when it is first shown.
3184 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3186 * java/awt/Window.java: Reverted changes from my
3187 previous patch for creating window without an owner.
3188 * javax/swing/SwingUtilities.java:
3189 (SwingUtilities.OwnerFrame): made static.
3190 (OwnerFrame.setVisible): New method. Overridden with
3191 empty implementation.
3192 (OwnerFrame.isShowing): New method. Ovverridden
3193 to return always true.
3195 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3197 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3198 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3199 (GtkComponentPeer): Remove temporary try/catch block.
3200 (setVisible): Call show and hide.
3201 (show): Make native.
3203 (getArgs): Don't add "visible" argument.
3204 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3205 (property_notify_predicate): Return Bool instead of int.
3206 (find_layout): New function.
3207 (connectJObject): Call find_layout.
3208 (connectSignals): Likewise.
3209 (moveLayout): Likewise.
3210 (gtkLayoutSetVisible): Likewise.
3212 2004-07-21 Mark Wielaard <mark@klomp.org>
3214 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3215 on notifier object before calling notifyAll().
3217 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3219 * java/awt/Window.java: Changed constructors to use new
3220 method that is described below. Constructors call this
3221 methods only if newly created window should have an owner.
3222 (setWindowOwner): New method. Implementation for
3223 this method is moved from this(owner,configuration).
3224 * javax/swing/JWindow.java:
3225 (JWindow): Reimplement to use SwingUtilities.ownerFrame
3227 * javax/swing/SwingUtilities.java:
3228 (ownerFrame): Change type of this field to OwnerFrame.
3229 (getOwnerFrame): Changed to return object of type OwnerFrame.
3230 (SwingUtilities.OwnerFrame): New class. Represents owner
3231 of a Window that is not provided with one.
3233 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3235 * javax/swing/AbstractButton.java:
3236 (configurePropertiesFromAction): Set action command
3237 to button's text by default if action command is not
3238 explicitely specified.
3239 * javax/swing/JMenu.java: Remove unnecessary listener
3240 and methods relevant to it.
3241 (setSelected): Reimplemented.
3242 (menuSelectionChanged): Moved most part of implementation to
3243 setSelected() and call it instead.
3244 * javax/swing/JMenuItem.java:
3245 (init): Comment out statement that sets paint_border to false.
3246 (configurePropertiesFromAction): Do not set accelerator
3248 (menuSelectionChanged): Change selected index in the selection
3249 model of menu item's parent.
3250 * javax/swing/JPopupMenu.java:
3251 (remove): Set constraints.fill field to GridBagConstraints.BOTH
3252 instead of GridBagConstraints.HORIZONTAL.
3254 (createActionChangeListener): Implemented.
3255 (setVisible): Correct location of HeavyWeightMenu and
3256 don't firePopupMenuCanceled().
3257 (menuSelectionChanged): Implemented.
3258 (ActionChangeListener): New Listener. Implemented.
3259 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3260 (BasicMenuBarUI.ContainerHandler): Implemented.
3261 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3262 (paintMenuItem): Uncommented out code that paints
3263 icon, now that icons are working properly.
3264 (PropertyChangeListener): Implemented.
3265 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3267 (topWindowListener): New field.
3268 (Constructor): initialize topWindowListener.
3269 (BasicPopupMenuUI.TopWindowListener): Implemented.
3270 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
3271 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
3274 2004-07-21 Michael Koch <konqueror@gmx.de>
3276 * javax/swing/plaf/basic/BasicButtonUI.java
3277 (paintFocus): Fixed method signature.
3278 (paintButtonPressed): Likewise.
3279 (paintButtonNormal): Likewise.
3280 (paintText): New method.
3281 * javax/swing/plaf/basic/BasicLabelUI.java
3282 (paint): Re-indented.
3283 * javax/swing/plaf/basic/BasicTextUI.java
3284 (installUI): Set parent textComponent to opaque.
3285 * javax/swing/text/DefaultHighlighter.java
3286 (checkPositions): New helper method.
3287 (addHighlight): Throws BadLocationException, check positions.
3288 (changeHighlight): Likewise.
3289 * javax/swing/text/EditorKit.java
3290 (EditorKit): Implements Serializable.
3291 * javax/swing/text/JTextComponent.java
3292 (getUI): Added javadoc.
3294 (upadteUI): Added javadoc, don't revalidate and repaint.
3296 2004-07-21 David Jee <djee@redhat.com>
3298 * java/awt/GridBagLayout.java
3299 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
3300 * javax/swing/AbstractButton.java
3301 (setText): Reindent.
3302 * javax/swing/RepaintManager.java
3303 (addInvalidComponent): Find the first ancestor that isValidateRoot().
3305 2004-07-21 Michael Koch <konqueror@gmx.de>
3307 * javax/swing/JFormattedTextField.java
3309 (JFormattedTextField): Implemented.
3310 (getValue): Likewise.
3311 (setValue): Likewise.
3312 * javax/swing/LookAndFeel.java
3313 (getSupportsWindowDecorations): New method.
3314 * javax/swing/UIDefaults.java:
3315 Use java.beans.PropertyChangeSupport instead of doing all ourself.
3316 (addPropertyChangeListener): Made public.
3317 (addResourceBundle): Likewise.
3318 (removeResourceBundle): Likewise.
3319 (setDefaultLocale): Likewise.
3320 * javax/swing/plaf/basic/BasicRootPaneUI.java
3321 (BasicRootPaneUI): Implements PropertyChangeListener.
3322 (propertyChange): New method.
3323 * javax/swing/plaf/basic/BasicTextUI.java
3324 (BasicHighlighter): New inner class.
3325 (createHighlighter): New method.
3326 * javax/swing/plaf/basic/BasicToolBarUI.java
3327 (DragWindow): Extends java.awt.Window.
3328 * javax/swing/text/JTextComponent.java
3329 (getDocument): Removed debug output.
3330 * javax/swing/plaf/basic/BasicTextFieldUI.java,
3331 javax/swing/text/DefaultHighlighter.java,
3332 javax/swing/text/FieldView.java,
3333 javax/swing/text/PlainView.java: New files.
3334 * Makefile.am: Added new files.
3335 * Makefile.in: Regenerated.
3337 2004-07-21 Michael Koch <konqueror@gmx.de>
3339 * javax/swing/JEditorPane.java
3340 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
3341 (createEditorKitForContentType): Likewise.
3342 * javax/swing/text/DefaultEditorKit.java
3343 (serialVersionUID): Added constant field.
3344 (EndOfLineStringPropery): Fixed typo.
3345 (DefaultEditorKit): New constructor.
3346 * javax/swing/text/Segment.java:
3347 Import java.text.CharacterIterator.
3348 * javax/swing/text/CharacterIterator.java,
3349 javax/swing/text/PlainEditorKit.java: Removed.
3350 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
3351 javax/swing/text/PlainEditorKit.java.
3352 * Makefile.in: Regenerated.
3354 2004-07-21 Michael Koch <konqueror@gmx.de>
3356 * javax/swing/JButton.java,
3357 javax/swing/text/DefaultEditorKit.java,
3358 javax/swing/text/EditorKit.java,
3359 javax/swing/text/Segment.java,
3360 javax/swing/text/StyledEditorKit.java:
3363 2004-07-21 Michael Koch <konqueror@gmx.de>
3365 * javax/swing/ImageIcon.java
3367 (description): Renamed from descr.
3368 (ImageIcon): Added missing constructors.
3369 (setParent): Removed.
3370 (setImageObserver): New method.
3371 (getImageObserver): New method.
3372 (paintIcon): Handle observer = null.
3373 * javax/swing/JButton.java
3374 (removeNotify): Fixed javadoc.
3375 (updateUI): Simplified.
3376 * javax/swing/JRootPane.java
3377 (serialVersionUID): New constant field.
3378 * javax/swing/UIManager.java:
3379 Fixed javadocs all over.
3380 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
3381 * javax/swing/text/AbstractDocument.java
3382 (createPosition): Throws BadLocationException.
3383 (getText): Likewise.
3385 * javax/swing/text/ComponentView.java
3386 (modelToView): Likewise.
3387 * javax/swing/text/DefaultEditorKit.java:
3388 Made all public methods public.
3389 (read): Throws BadLocationException and IOException.
3391 * javax/swing/text/EditorKit.java:
3392 Made all public methods public.
3393 (serialVersionUID): New constant field.
3394 (clone): New method.
3395 (read): Throws BadLocationException and IOException.
3397 * javax/swing/text/Segment.java
3398 (array): Made public.
3401 (Segment): New constructors.
3402 (clone): Reimplemented.
3403 * javax/swing/text/StyledEditorKit.java
3404 (serialVersionUID): New constant field.
3406 2004-07-21 Graydon Hoare <graydon@redhat.com>
3408 * java/awt/image/BufferedImage.java
3409 (getSource): Implement.
3410 * javax/swing/ImageIcon.java
3411 (ImageIcon): Implement ctor.
3412 * javax/swing/ScrollPaneLayout.java
3413 (preferredLayoutSize): Be more careful about nulls.
3415 2004-07-21 Michael Koch <konqueror@gmx.de>
3417 * javax/swing/text/AttributeSet.java
3418 (CharacterAttribute): New interface
3419 (ColorAttribute): Likewise.
3420 (FontCharacterAttribute): Likewise.
3421 (ParagraphAttribute): Likewise.
3422 * javax/swing/text/DefaultCaret.java
3423 (moveCaret): New method.
3424 (positionCaret): Likewise.
3425 (repaint): Made protected.
3426 * javax/swing/text/JTextComponent.java
3427 (KeyBinding): Made it static.
3428 * javax/swing/text/View.java
3429 (getContainer): Honor parent == null.
3431 2004-07-21 Michael Koch <konqueror@gmx.de>
3433 * javax/swing/text/AbstractDocument.java:
3436 2004-07-21 Michael Koch <konqueror@gmx.de>
3438 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3439 Import javax.swing.UIManager explicitely.
3440 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
3441 (ScrollingButton): Made it static.
3443 2004-07-21 Michael Koch <konqueror@gmx.de>
3445 * javax/swing/UIDefaults.java
3446 (ActiveValue): Made public.
3447 (LazyValue): Likewise.
3448 * javax/swing/plaf/basic/BasicTextUI.java
3449 (RootView): Reintroduced.
3451 (rootView): New field.
3452 (installUI): Create document if needed, initialize rootView.
3453 (uninstallUI): Hanle rootView.
3455 (getRootView): Likewise.
3456 (setView): Likewise.
3457 * javax/swing/text/DefaultCaret.java:
3458 Renamed all "evt" variables to "event".
3460 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3462 * libgcj.spec.in: Add -l-java-util-logging.
3464 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
3466 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3467 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
3468 gtk-xft-dpi can no calculate the right value.
3469 (dpi_changed_cb): Mark *pspec as unsused.
3471 2004-07-21 David Jee <djee@redhat.com>
3473 * java/awt/Component.java
3474 (move): Delegate to setBounds().
3476 (reshape): Fix so it repaints parent and self only when necessary.
3478 2004-07-21 David Jee <djee@redhat.com>
3480 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3481 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3482 (GtkComponentPeer): Revert previous patch from 2004-06-22.
3483 (setVisible): Likewise.
3486 (getArgs): Likewise.
3487 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3488 (property_notify_predicate): Likewise.
3489 (find_layout): Likewise.
3490 (connectJObject): Likewise.
3491 (connectSignals): Likewise.
3492 (moveLayout): Likewise.
3493 (gtkLayoutSetVisible): Likewise.
3495 2004-07-21 Graydon Hoare <graydon@redhat.com>
3501 (rmiregistry_LDADD): Add lib-java-util-logging.la
3502 * Makefile.in: Regenerate.
3504 2004-07-21 Michael Koch <konqueror@gmx.de>
3506 * javax/swing/text/AbstractDocument.java
3507 (replace): Dont use protected method of java.util.Vector directly.
3509 2004-07-21 Michael Koch <konqueror@gmx.de>
3511 * javax/swing/plaf/basic/BasicTextUI.java
3512 (installUI): Call specialized install methods.
3513 (installDefaults): New method.
3514 (installListeners): Likewise.
3515 (installKeyboardActions): Likewise.
3516 (uninstallUI): Likewise.
3517 (uninstallDefaults): New method.
3518 (uninstallListeners): Likewise.
3519 (uninstallKeyboardActions): Likewise.
3520 (getPropertyPrefix): New abstract method.
3521 (paint): Made final, just call paintSafely().
3522 (paintSavely): New method.
3523 (paintBackground): Likewise.
3524 (getVisibleEditorRect): Likewise.
3525 * javax/swing/text/LayeredHighlighter.java,
3526 javax/swing/text/TabExpander.java: New files.
3527 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
3528 and javax/swing/text/TabExpander.java.
3529 * Makefile.in: Regenerated.
3531 2004-07-21 Michael Koch <konqueror@gmx.de>
3533 * javax/swing/plaf/basic/BasicTextUI.java
3534 (BasicTextUI): Made abstract.
3535 (BasicCaret): New inner class.
3536 (view): Don't explicitely initialize with "null".
3537 (textComponent): New field.
3538 (textColor): Removed.
3539 (disabledTextColor): Removed.
3540 (normalBackgroundColor): Removed.
3541 (RootView): Removed commented out inner class.
3542 (createUI): Removed.
3543 (createCaret): New method.
3544 (getComponent): Likewise.
3545 (installUI): Initialize textComponent only.
3546 (getPreferredSize): Use installed JTextComponent.
3547 (setView): New method.
3549 * javax/swing/text/JTextComponent.java
3550 (highlighter): New field.
3551 (caretColor): Likewise.
3552 (disabledTextColor): Likewise.
3553 (seletedTextColor): Likewise.
3554 (selectionColor): Likewise.
3555 (setUI): New method.
3556 (getCaretColor): Likewise.
3557 (setCaretColor): Likewise.
3558 (getDisabledColor): Likewise.
3559 (setDisabledColor): Likewise.
3560 (getSelectedTextColor): Likewise.
3561 (setSelectedTextColor): Likewise.
3562 (getSelectionColor): Likewise.
3563 (setSelectionColor): Likewise.
3564 (getHighlighter): Likewise.
3565 (setHighlighter): Likewise.
3566 (replaceSelection): Likewise.
3568 2004-07-21 Michael Koch <konqueror@gmx.de>
3570 * javax/swing/plaf/basic/BasicScrollPaneUI.java
3571 (BasicScrollPaneUI): Implements ScrollPaneConstants.
3572 * javax/swing/plaf/basic/BasicToolBarUI.java
3573 (BasicToolBarUI): Implements SwingConstants.
3575 2004-07-21 Michael Koch <konqueror@gmx.de>
3577 * javax/swing/JPopupMenu.java: Removed CVS tags.
3578 * javax/swing/UIDefaults.java: Reformatted.
3579 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3580 Explicitely import used classes.
3582 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3584 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3585 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3586 (GtkComponentPeer): Remove temporary try/catch block.
3587 (setVisible): Call show and hide.
3588 (show): Make native.
3590 (getArgs): Don't add "visible" argument.
3591 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3592 (property_notify_predicate): Return Bool instead of int.
3593 (find_layout): New function.
3594 (connectJObject): Call find_layout.
3595 (connectSignals): Likewise.
3596 (moveLayout): Likewise.
3597 (gtkLayoutSetVisible): Likewise.
3599 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3601 * javax/swing/AbstractButton.java:
3602 (setDisplayedMnemonicIndex): Check if button
3603 text is not null before checking its length.
3604 * javax/swing/JMenuItem.java:
3605 (processMouseEvent): Disarm menu item if mouse has
3607 * javax/swing/plaf/basic/BasicMenuUI.java:
3608 (MouseInputHandler.mouseEntered): Do not raise
3609 popup menu if this menu is already selected.
3610 (MouseInputHandler.mousePressed): Do not fire
3612 (MenuHandler): Implemented.
3614 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3616 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
3617 (getSelectedObjects): Implemented.
3618 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
3619 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
3620 Added javadoc for few methods.
3621 (processMouseEvent): Made public.
3622 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
3623 (processMouseEvent): Likewise.
3625 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3627 * javax/swing/AbstractButton.java:
3628 (init): Set display mnemonic index to -1.
3629 (setMnemonic(char)): Use setMnemonic(int).
3630 (setMnemonic(int)): Set display mnemonic index.
3631 (getDisplayedMnemonicIndex): Change method signature
3632 by removing 'index' parameter.
3633 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3634 Added default for Menu.selectionBackground.
3635 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3636 (paintMenuItem): Change background color of the selected
3638 (paintText): Paint differently when menu item is disabled.
3639 Also paint mnemonic if it appears in the menu item's label.
3640 (paintAccelerator): Paint accelerator differently
3641 if menu item is disabled.
3642 * javax/swing/plaf/basic/BasicMenuUI.java:
3643 (installDefaults): Install defaults for
3644 selectionForeground and selectionBackground.
3645 (uninstallDefaults): Uninstall defauls for
3646 selectionForeground and selectionBackground.
3648 2004-07-21 Michael Koch <konqueror@gmx.de>
3650 * javax/swing/text/AbstractDocument.java
3651 (BranchElement): Implemented.
3652 (LeafElement): Implemented.
3653 * javax/swing/text/DefaultCaret.java:
3654 Import used classes.
3655 (serialVersionUID): New constant.
3656 * javax/swing/text/JTextComponent.java
3657 (AccessibleJTextComponent): Removed dead declaration.
3658 (caretPos): Removed.
3659 (setCaret): New method.
3660 * javax/swing/text/PlainDocument.java
3661 (rootElement): New field.
3662 (PlainDocument): Initialize rootElement.
3663 (createDefaultRoot): New method.
3664 (getDefaultRootElement): Implemented.
3665 * javax/swing/text/View.java: Reformatted.
3666 * javax/swing/text/ViewFactory.java
3667 (create): Added javadoc.
3669 2004-07-21 Michael Koch <konqueror@gmx.de>
3671 * javax/swing/ToolTipManager.java: Reformatted.
3673 2004-07-21 Rodimina Olga <rodimina@redhat.com>
3675 * javax/swing/AbstractButton.java
3676 (changeEvent): New field.
3677 (fireItemStateChanged): Change source of the event
3678 to 'this' before firing it to button listeners.
3679 (fireActionPerformed): Likewise.
3680 (fireStateChanged): Likewise.
3681 (createActionListener): Do not set source
3682 of the event to AbstractButton.
3683 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3684 (ContainerHandler.componentAdded): Removed
3685 print out statement.
3686 (ContainerHandler.componentRemoved): Likewise.
3688 2004-07-21 Michael Koch <konqueror@gmx.de>
3690 * javax/swing/text/Highlighter.java: New file.
3691 * Makefile.am: Added javax/swing/text/Highlighter.java.
3692 * Makefile.in: Regenerated.
3694 2004-07-21 Michael Koch <konqueror@gmx.de>
3696 * javax/swing/ToolTipManager.java
3697 (stillInsideTimerAction): Fixed constructor arguments.
3698 (outsideTimerAction): Likewise.
3699 (insideTimerAction): Likewise.
3701 2004-07-21 Michael Koch <konqueror@gmx.de>
3703 * javax/swing/JButton.java: Reformatted.
3704 * javax/swing/JFormattedTextField.java
3705 (getUIClassID): Implemented.
3706 * javax/swing/JRootPane.java
3707 (serialVersionUID): New constant.
3708 * javax/swing/JTextField.java
3710 (JTextField): Simplified.
3711 (getUIClassID): New method.
3712 (getActionListeners): Added @since tag.
3713 (setColumns): Invalidate layout and repaint.
3714 (getHorizontalAlignment): New method.
3715 (setHorizontalAlignment): New method.
3716 (selectAll): Removed.
3717 * javax/swing/SwingUtilities.java
3718 (getAncestorOfClass): Removed redundant @see tag.
3719 (isLeftMouseButton): Fixed implementation.
3720 (isMiddleMouseButton): Likewise.
3721 (isRightMouseButton): Likewise.
3722 * javax/swing/text/AbstractDocument.java
3723 (AttributeContext.addAttribute): New method.
3724 (AttributeContext.addAttributes): New method.
3725 (AttributeContext.getEmptySet): New method.
3726 (AttributeContext.reclaim): New method.
3727 (AttributeContext.removeAttribute): New method.
3728 (AttributeContext.removeAttributes): New method.
3729 * javax/swing/text/Document.java
3730 (createPosition): Throws BadLocationException.
3731 (getText): Likewise.
3733 * javax/swing/text/JTextComponent.java
3734 (getText): Return null if no document is set. Catch
3735 BadLocationException.
3737 (updateUI): Simplified.
3739 2004-07-21 Michael Koch <konqueror@gmx.de>
3741 * javax/swing/JButton.java
3742 (removeNotify): Fixed javadoc.
3743 (updateUI): Simplified.
3745 2004-07-21 David Jee <djee@redhat.com>
3747 * gnu/java/awt/image/ImageDecoder.java
3748 (startProduction): Only add consumer if it's not added yet.
3749 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
3750 (GdkPixbufDecoder): Don't call initState() here.
3751 (produce): Call initState() here, to ensure area_prepared and
3752 area_updated signals are properly connected.
3753 * gnu/java/awt/peer/gtk/GtkImage.java
3754 (setColorModel): Use equals() to compare ColorModel objects.
3755 (setPixels): Likewise.
3756 * java/awt/image/ColorModel.java
3757 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
3758 * java/awt/image/RGBImageFilter.java
3759 (setColorModel): Set consumer's color model.
3760 (setPixels): Use equals() to compare ColorModel objects.
3762 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
3764 * java/net/URLConnection.java (position): New field.
3765 (dateFormat1, dateFormat2, dateFormat3): Removed.
3766 (dateFormats): New field.
3767 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
3768 each time instead of re-allocating.
3769 (initializeDateFormats): Initialize 'dateFormats'.
3771 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3774 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
3777 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3779 * java/net/Socket.java (getImpl): Now private. Remove comment.
3781 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3783 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
3784 of chained Writer when calling super-constructor.
3785 * java/io/FilterWriter.java (FilterWriter): Likewise.
3786 * java/io/PrintWriter.java (PrintWriter): Likewise.
3788 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
3790 * prims.cc (process_gcj_properties): Don't increment i within LHS
3793 2004-07-19 Per Bothner <per@bothner.com>
3795 Print -verbose:message on "loading", not initialization.
3796 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
3797 * defineclass.cc (_Jv_ClassReader::parse): Print message if
3798 gcj::verbose_class_flag.
3799 * java/lang/natClass.cc (initializeClass): Don't print message here.
3800 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
3801 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
3802 (_Jv_PrepareCompiledClass): Likewise.
3804 2004-07-18 Matthias Klose <doko@debian.org>
3806 * configure.in: Substitute target_noncanonical.
3807 * configure: Regenerate
3809 2004-07-17 Michael Koch <konqueror@gmx.de>
3811 * java/lang/String.java: Fixed javadocs all over.
3813 2004-07-17 Mark Wielaard <mark@klomp.org>
3815 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
3816 when size is smaller.
3817 * java/io/RandomAccessFile.java (setLength): Use truncate for
3818 shrinking the file and seek plus write for expanding the file.
3820 2004-07-17 Michael Koch <konqueror@gmx.de>
3822 * gnu/java/nio/channels/natFileChannelPosix.cc
3823 (implTruncate): Always save current position. Only reposition file
3824 pointer to where we started if not beyond new lenght. Reposition file
3825 pointer to file length if it points beyond the end of file.
3827 2004-07-17 Mark Wielaard <mark@klomp.org>
3829 * javax/swing/Box.java: Put FIXME comment above class declaration.
3830 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
3831 * javax/swing/JCheckBox.java: Likewise.
3832 * javax/swing/JDialog.java: Likewise.
3833 * javax/swing/JRadioButton.java: Likewise.
3834 * javax/swing/JToggleButton.java: Likewise.
3835 * javax/swing/UIManager.java: Likewise.
3836 * javax/swing/border/TitledBorder.java: Likewise.
3837 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3838 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
3839 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
3840 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3841 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
3842 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3843 * javax/swing/text/JTextComponent.java: Likewise.
3845 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
3847 * java/net/DatagramPacket.java (setAddress): Removed check for
3850 2004-07-17 Michael Koch <konqueror@gmx.de>
3852 * java/net/DatagramSocket.java
3853 (getLocalAddress): Check if socket is bound or not.
3854 * java/net/Socket.java
3855 (getLocalAddrss): Check if socket is bound or not.
3856 (getPort): Return -1 when not connected. Dont check getImpl() for
3858 (setReuseAddress): Check if socket is closed.
3859 (isConnected): Check if getImpl() returns null.
3861 2004-07-17 Mark Wielaard <mark@klomp.org>
3863 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3864 on notifier object before calling notifyAll().
3866 2004-07-17 Michael Koch <konqueror@gmx.de>
3868 * gnu/java/nio/channels/FileChannelImpl.java
3869 (finalize): Added javadoc.
3871 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
3873 * java/text/CollationElementIterator.java
3874 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
3875 (setText): Use ArrayList instead of Vector.
3877 2004-07-17 Michael Koch <konqueror@gmx.de>
3879 * java/nio/ByteOrder.java
3880 (static): Removed. Not needed.
3881 Thanks to Patrick Reali for noticing.
3882 * java/nio/charset/CharsetDecoder.java
3883 (decode): Fix for classpath bug #9177: Reset state before flipping.
3885 2004-07-17 Michael Koch <konqueror@gmx.de>
3887 * java/security/Security.java: Fixed javadocs all over.
3889 2004-07-17 Michael Koch <konqueror@gmx.de>
3891 * gnu/java/awt/EmbeddedWindow.java
3893 (addNotify): Set peer via reflection.
3894 (setWindowPeer): Removed.
3895 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
3896 * Makefile.am (nat_source_files):
3897 Removed gnu/java/awt/natEmbeddedWindow.cc.
3898 * Makefile.in: Regenerated.
3900 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
3902 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
3904 * configure: Regenerated.
3906 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
3908 * configure.in: Use build_noncanonical rather than build_alias.
3909 * configure: Rebuild.
3911 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
3912 by logic refactoring. Move default definition of NATIVE closer
3913 to first alternate definition.
3914 * configure: Regenerate.
3916 * Makefile.am: Set ZIP and GCJH directly using autoconf.
3917 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
3918 gcj/Makefile.in: Regenerate.
3919 * configure.in: Set ZIP and GCJH. Remove redundant condition
3920 in AM_CONDITIONAL(NATIVE,...)
3921 * configure: Regenerate.
3923 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
3925 * configure.in: Use target_noncanonical rather than
3926 target_alias for forward-compatibility with autoconf 2.59.
3927 * configure: Regenerate.
3928 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
3929 testsuite/Makefile.am: Substitute target_noncanonical.
3930 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3931 testsuite/Makefile.in: Regenerate.
3933 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
3934 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
3935 * acinclude.m4: Include acx.m4.
3936 * aclocal.m4: Regenerate.
3937 * configure: Regenerate.
3939 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
3942 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
3943 (decimalFormat): New static variable.
3945 (getTime): New. Override Date.getTime().
3946 (toString): Synchronize. Use decimalFormat to format nanos value
3947 correctly. Truncate extra zeros.
3948 (before): Compare getNanos() only if getTime() is equal.
3951 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3953 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
3954 * configure.in: ...here.
3955 * aclocal.m4: Regenerate.
3956 * configure: Regenerate.
3958 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
3959 * configure: Rebuilt with autoconf 2.13.
3960 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3961 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
3963 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
3966 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
3968 * Makefile.in: Rebuilt.
3969 * testsuite/libjava.lang/LargeFile.java: New test case.
3970 * testsuite/libjava.lang/LargeFile.out: New file.
3972 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
3974 * java/beans/EventHandler.java: Remove debugging statements.
3976 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
3978 * java/beans/EventHandler.java: New file.
3979 * Makefile.am (awt_java_source_files): Add EventHandler.java.
3980 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3981 testsuite/Makefile.in: Regenerate.
3983 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
3985 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
3986 flag to the gcj_setup.
3987 (gcj_jacks_run): Check tclsh version and launch jacks directly with
3989 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
3990 deprecation flag change. 58 XFAILS removed.
3992 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
3994 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
3995 -fno-use-divide-subroutine.
3996 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
3997 (HANDLE_FPE): Define.
3998 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
3999 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
4000 (HANDLE_DIVIDE_OVERFLOW): Define.
4002 2004-07-14 Michael Koch <konqueror@gmx.de>
4003 Matthias Klose <doko@debian.org>
4005 * java/awt/im/InputContext.java: Initialize in, line.
4007 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
4009 * interpret.cc (run): Correctly access libffi return values of
4010 integral smaller-than-int type; these are implicitly promoted.
4012 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
4015 * interpret.cc (compile_mutex): New.
4016 (_Jv_InitInterpreter): New. Initialize compile_mutex.
4017 (run): Lock compile_mutex before calling compile() if compilation is
4019 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
4020 * include/java-interp.h (_Jv_InitInterpreter): Declare.
4022 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
4025 * include/jvm.h (_Jv_value): New union type.
4026 * gcj/field.h (_Jv_Field): Add new _addr union field variants
4027 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
4030 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
4032 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
4033 * gnu/awt/xlib/XOffScreenImage.java
4034 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
4035 constructor argument. Add constructor using ImageProducer.
4036 (getSource): Implement.
4037 (imageComplete): New method.
4038 (setColorModel): New method.
4039 (setDimensions): New method.
4040 (setHints): New method.
4041 (setPixels): New method.
4042 (setProperties): New method.
4043 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
4044 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
4046 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
4049 * prims.cc (_Jv_CreateJavaVM): Fix comment.
4050 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
4051 (finalizerReady): Now native.
4053 (runFinalizers): Removed.
4054 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
4055 a primitive lock, and don't hold it while running the finalizers.
4056 (runFinalizers): Implement. Don't aquire any Java lock.
4057 (finalizerReady): Use lock primitives to signal finalizer thread.
4059 2004-07-11 Mark Wielaard <mark@klomp.org>
4061 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
4062 * java/net/URLStreamHandler.java (parseURL): When url file part
4063 doesn't contain a '/' just ignore context.
4065 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
4067 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
4068 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
4069 (MAKE_THROW_FRAME): Do not modify PSW address.
4070 (INIT_SEGV): Install SIGINFO-style signal handler.
4071 (INIT_FPE): Likewise.
4073 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
4075 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
4076 status. 21 xfail's removed, 1 added.
4078 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
4080 * gcj/javaprims.h: Regenerate CNI namespace definitions.
4082 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
4084 * java/text/MessageFormat.java
4085 (formatInternal): Append "{n}" if argument n is unavailable.
4086 (format(Object, StringBuffer, FieldPosition)): This
4087 should be equivalent to format(Object[],
4088 StringBuffer, FieldPosition).
4090 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4092 * java.util.Calendar.java (cache): New private static field. Cached
4093 mappings of locales->calendar classes.
4094 (ctorArgTypes): New private static field. Singleton argument for
4095 calendar class constructor lookup.
4096 (getInstance): Cache Locale->Calendar class mappings using HashMap.
4097 Optimize by bypassing reflection instantiation for the
4098 GregorianCalendar case.
4100 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4102 * java/util/Calendar.java: Use getSystemClassLoader as argument for
4103 ResourceBundle.getBundle() calls.
4104 * java/util/GregorianCalendar.java: Likewise.
4105 * java/util/Currency.java: Likewise.
4106 * java/text/BreakIterator.java: Likewise.
4107 * java/text/Collator.java: Likewise.
4108 * java/text/DateFormat.java: Likewise.
4109 * java/text/DateFormatSymbols.java: Likewise.
4110 * java/text/DecimalFormatSymbols.java: Likewise.
4111 * java/text/NumberFormat.java: Likewise.
4112 * java/awt/Window.java: Likewise.
4114 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4116 * java/util/ResourceBundle.java (bundleCache): Renamed from
4117 resourceBundleCache. Update comments.
4118 (getObject): Don't catch MissingResourceException.
4119 (getBundle(String)): Remove 'final'. Use system classloader if
4120 getCallingClassLoader returned null.
4121 (getBundle(String, Locale)): Likewise.
4122 (BundleKey): New private class. HashMap key for bundle cache lookup.
4123 (lookupKey): New. Singleton instance of BundleKey.
4124 (nullEntry): New. Cache entry to represent failed lookups.
4125 (getBundle(String, Locale, ClassLoader)): Re-written to use new
4126 caching strategy, no-allocation lookup, and new tryBundle methods.
4127 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
4128 name using given classloader.
4129 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
4130 baseName for given Locale and attempt to load bundle.
4132 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4134 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
4135 illegal protected method calls.
4137 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4139 Fix or remove some bogus test cases.
4140 * testsuite/libjava.compile/pr10459_2.java: Removed.
4141 * testsuite/libjava.compile/pr10459.java: Test using its own method,
4143 * testsuite/libjava.compile/inner_data.java: Test against its own
4146 2004-07-09 Michael Koch <konqueror@gmx.de>
4148 * scripts/unicode-muncher.pl: Updated to version 2.1
4149 from GNU classpath. Added some clarifications on where to find the
4150 needed files from www.unicode.org.
4151 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
4152 gnu/gcj/convert/UnicodeData-3.0.0.txt:
4153 Removed, these can directly be downloaded from www.unicode.org if
4155 * gnu/java/lang/CharData.java: Regenerated.
4156 * include/java-chartables.h: Regenerated.
4157 * Makefile.am (ordinary_java_source_files):
4158 Removed gnu/java/lang/CharData.java.
4159 * Makefile.in: Regenerated.
4161 2004-07-09 Michael Koch <konqueror@gmx.de>
4163 * java/security/AccessControlContext.java,
4164 java/security/SecureClassLoader.java:
4167 2004-07-09 Michael Koch <konqueror@gmx.de>
4169 * java/io/ObjectInputStream.java (readFields): Use long datatype
4170 when shifting byte values more then 24 bits left.
4172 2004-07-09 Michael Koch <konqueror@gmx.de>
4174 * java/util/zip/DeflaterOutputStream.java,
4175 java/util/zip/GZIPInputStream.java,
4176 java/util/zip/GZIPOutputStream.java,
4177 java/util/zip/InflaterInputStream.java:
4178 Reformatted. Added javadocs. Reordered all stuff.
4179 Renamed variables to be more clear.
4181 2004-07-09 Michael Koch <konqueror@gmx.de>
4183 * javax/imageio/IIOException.java,
4184 javax/imageio/event/IIOReadProgressListener.java,
4185 javax/imageio/event/IIOReadUpdateListener.java,
4186 javax/imageio/event/IIOReadWarningListener.java,
4187 javax/imageio/event/IIOWriteProgressListener.java,
4188 javax/imageio/event/IIOWriteWarningListener.java:
4190 * Makefile.am: Added new files.
4191 * Makefile.in: Regenerated.
4193 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
4195 * java/text/RuleBasedCollator.java
4196 (mergeRules): Use ArrayList instead of Vector.
4197 (subParseString): likewise.
4198 (parseString): likewise.
4199 (buildCollationVector): likewise.
4200 (getCollationKey): likewise.
4202 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4204 * java/text/DateFormat.java (parse):
4205 Improved javadoc. Improved exception message.
4207 2004-07-09 Mark Wielaard <mark@klomp.org>
4209 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
4210 interrupted() method to clear interupt flag of our Thread.
4212 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4214 * java/nio/Buffer.java,
4215 java/nio/ByteBuffer.java,
4216 java/nio/ByteBufferHelper.java,
4217 java/nio/ByteBufferImpl.java,
4218 java/nio/CharBuffer.java,
4219 java/nio/CharBufferImpl.java,
4220 java/nio/CharViewBufferImpl.java,
4221 java/nio/DirectByteBufferImpl.java,
4222 java/nio/DoubleBuffer.java,
4223 java/nio/DoubleBufferImpl.java,
4224 java/nio/DoubleViewBufferImpl.java,
4225 java/nio/FloatBuffer.java,
4226 java/nio/FloatBufferImpl.java,
4227 java/nio/FloatViewBufferImpl.java,
4228 java/nio/IntBuffer.java,
4229 java/nio/IntBufferImpl.java,
4230 java/nio/IntViewBufferImpl.java,
4231 java/nio/LongBuffer.java,
4232 java/nio/LongBufferImpl.java,
4233 java/nio/LongViewBufferImpl.java,
4234 java/nio/MappedByteBufferImpl.java,
4235 java/nio/ShortBuffer.java,
4236 java/nio/ShortBufferImpl.java,
4237 java/nio/ShortViewBufferImpl.java:
4238 Fixed javadocs all over. Improved input error
4241 * java/nio/Buffer.java
4242 (checkForUnderflow, checkForOverflow, checkIndex,
4243 checkIfReadOnly, checkArraySize): New helper methods
4246 * java/nio/ByteBufferHelper.java
4247 (checkRemainingForRead, checkRemainingForWrite,
4248 checkAvailableForRead, checkAvailableForWrite): Removed
4249 no longer needed methods.
4251 2004-07-09 Michael Koch <konqueror@gmx.de>
4253 * gnu/regexp/CharIndexedInputStream.java:
4254 Reordered imports to match classpath.
4256 2004-07-09 Michael Koch <konqueror@gmx.de>
4258 * gnu/java/awt/EmbeddedWindow.java:
4259 Load native library for setWindowPeer method.
4261 2004-07-08 Randolph Chung <tausq@debian.org>
4263 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
4264 * configure: Regenerate.
4265 * configure.host: Set can_unwind_signal for hppa*-linux.
4266 * include/pa-signal.h: New file.
4268 2004-07-07 Per Bothner <per@bothner.com>
4270 * Makefile.am: Add rules to build libgij from just gij.cc.
4272 * include/jvm.h (namespace jcj): Declare verbose_class_flag
4273 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
4274 (initializeClass): If verbose_class_flag, print message.
4275 * gij.cc (main): Handle -verbose:class flag.
4277 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
4279 * configure.host: Enable hash synchronization on Darwin.
4280 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
4281 ';', since this is a comment on Darwin.
4282 (compare_and_swap_release): Likewise.
4284 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
4286 * java/net/URLStreamHandler.java (parseURL): Canonicalize
4287 file portion of URL in addition to spec for file: protocol.
4289 2004-07-05 Anthony Green <green@redhat.com>
4291 * java/io/File.java (toURI): Merge from Classpath.
4293 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4295 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
4296 before passing to URL constructor. Rethrow any MalformedURLException
4297 as a RuntimeException. Catch MalformedURLException specifically, not
4300 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4302 * java/util/Locale.java (readObject): Intern strings read from object
4305 2004-07-04 Michael Koch <konqueror@gmx.de>
4307 * gnu/gcj/runtime/FirstThread.java,
4308 gnu/gcj/runtime/natFirstThread.cc: Removed.
4309 * gnu/java/lang/MainThread.java,
4310 gnu/java/lang/natMainThread.cc: New files.
4311 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
4312 * Makefile.am: Added new files and removed deleted ones.
4313 * Makefile.in: Regenerated.
4315 2004-07-03 Mark Wielaard <mark@klomp.org>
4316 Anthony Green <green@redhat.com>
4318 * java/net/URL.java (getFile): Clarify return value doc.
4319 (getPath): Return null if file is empty - not empty String.
4320 (set): Convert protocol to lower case before doing anything.
4321 Only change the protocol handler if it's different.
4323 2004-07-03 Anthony Green <green@redhat.com>
4325 * java/net/URL.java (URL): Convert protocol to lower case before
4326 doing anything, so we getURLStreamHandler() with the proper value.
4328 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
4330 * java/util/Locale.java (hashcode): Made transient.
4331 (hashCode): No longer synchronized.
4332 (equals): Remove comment.
4333 (writeObject): No longer synchronized. Implement using writeObject
4334 calls instead of tweaking hashCode field. Update doc.
4335 (readObject): Implement using readObject calls.
4337 2004-06-26 Geoffrey Keating <geoffk@apple.com>
4338 Andreas Tobler <a.tobler@schweiz.ch>
4340 * configure.host (powerpc-*-darwin*): New case, define
4342 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
4343 * configure: Regenerate.
4344 * include/darwin-signal.h: New.
4346 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
4348 * java/beans/Statement.java (doExecute): Fix formatting.
4350 2004-06-29 Per Bothner <per@bothner.com>
4352 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
4353 etc etc): Remove needless parenthesis, which causes __stdcall__
4354 attribute on MinGW to get ignored.
4356 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
4358 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
4360 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
4362 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
4364 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
4366 * java/beans/Expression.java: New file.
4367 * java/beans/Statement.java: New file.
4368 * Makefile.am: Added new files.
4369 * Makefile.in: Re-generate.
4371 2004-06-27 Mark Wielaard <mark@klomp.org>
4373 * java/io/FilePermission.java (usingPerms): Removed.
4374 (actionsString): Made final.
4375 (cachePerms): Renamed to checkPerms.
4376 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
4378 (FilePermission): Check arguments, call checkPerms().
4379 (equals): Remove cachePerms() call.
4380 (implies): Likewise.
4382 2004-06-27 Mark Wielaard <mark@klomp.org>
4384 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
4386 (sendRequest): Use new field in user-agent http agent.
4388 2004-06-27 Mark Wielaard <mark@klomp.org>
4390 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
4391 when argument is null.
4393 2004-06-26 Mark Wielaard <mark@klomp.org>
4395 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
4396 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
4398 (cancel_clicked): Likewise.
4400 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
4402 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
4403 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
4404 can not calculate the right value.
4405 (dpi_changed_cb): Likewise. Mark *pspec as unused.
4407 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
4409 * testsuite/libjava.jacks/jacks.xfail: Remove
4410 15.9.1-qualified-concrete-20.
4412 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4414 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
4415 encoding name to iconv.
4416 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4418 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4421 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
4422 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
4423 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4425 2004-06-21 Andrew Haley <aph@redhat.com>
4427 * java/io/ObjectOutputStream.java: Add DEBUG statements
4429 (dumpElementln): New method.
4431 * java/io/ObjectInputStream.java
4432 (currentClassLoader): Make native.
4433 (callersClassLoader): New field.
4435 (readObject): ENDBLOCKDATA is generated if the class has a write
4436 method, not if it has a read method.
4437 (readObject): Save and restore this.currentObject and
4438 this.currentObjectStreamClass around calls to callReadMethod().
4439 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
4442 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
4444 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
4447 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4449 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
4450 if desired, before the default class loader is initialised.
4451 Call INIT_SEGV only if HANDLE_SEGV is defined.
4453 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4455 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
4456 directory only if it actually exists.
4458 2004-06-18 Graydon Hoare <graydon@redhat.com>
4460 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4461 Fix up non-ansi comments.
4463 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4465 * javax/swing/text/AbstractDocument.java: Adding missing import
4466 for javax.swing.event.EventListenerList.
4467 * javax/swing/text/DefaultCaret.java: Likewise.
4469 2004-06-17 Michael Koch <konqueror@gmx.de>
4471 * javax/swing/JToolBar.java
4473 (JToolBar): Use Component.setName(String) instead of doing it all
4475 * javax/swing/Timer.java
4476 (queueEvent): Added missing modifier.
4478 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
4480 * Makefile.am: Added new file.
4481 * Makefile.in: Re-generate.
4482 * javax/swing/JMenu.java:
4483 (insertSeparator): Implemented.
4484 * javax/swing/JPopupMenu.java:
4485 (JPopupMenu.Separator): Implemented.
4486 * javax/swing/MenuSelectionManager.java:
4487 (processMouseEvent): Use java.awt.Component
4488 for event source instead of javax.swing.JComponent.
4489 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
4490 New File. Implemented.
4492 2004-06-16 David Jee <djee@redhat.com>
4494 * java/awt/GridBagLayout.java
4495 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
4496 Make sure pos_x and pos_y are never negative.
4498 2004-04-16 Andrew Overholt <overholt@redhat.com>
4500 * Makefile.am: Add new file.
4501 * Makefile.in: Re-generate.
4502 * javax/swing/JToolBar.java
4503 Partially implemented.
4504 * javax/swing/plaf/basic/BasicToolBarUI.java
4505 New file. Partially implemented.
4507 2004-06-16 Graydon Hoare <graydon@redhat.com>
4509 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
4510 (setComposite): Accept AlphaComposite arguments.
4511 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
4512 (createBufferedImage): Add new overloads.
4513 * gnu/java/awt/peer/gtk/GtkToolkit.java
4514 (createImage): Use GdkPixbufDecoder.createBufferedImage
4515 when useGraphics2D() is true.
4516 (getImage): Delegate to createImage.
4517 * javax/swing/JList.java
4519 (getFirstVisibleIndex):
4520 (getLastVisibleIndex):
4522 (ensureIndexIsVisible): New methods.
4523 * javax/swing/Timer.java: Reimplement.
4525 2004-06-16 Michael Koch <konqueror@gmx.de>
4527 * javax/swing/text/AbstractDocument.java
4528 (AbstracElement): Made public, implements java.io.Serializable.
4529 (AttributeContext): Made public.
4530 (BranchElement): Likewise.
4531 (Content): Likewise.
4532 (DefaultDocumentEvent): Made public, extends
4533 javax.swing.undo.CompoundEdit.
4534 (ElementEdit): Made public, extends
4535 javax.swing.undo.AbstractUndoableEdit.
4536 (LeafElement): Made public.
4537 (LeafElement.LeafElement): Made public.
4539 2004-06-16 Michael Koch <konqueror@gmx.de>
4541 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
4542 methods (that were obviously never be intended to get included hi this
4543 class. Added some methods too.
4545 2004-06-16 Michael Koch <konqueror@gmx.de>
4547 * javax/swing/text/PlainDocument.java
4548 (serialVersionUID): New constant.
4549 (lineLimitAttribute): Likewise.
4550 (tabSizeAttribute): Likewise.
4551 (tabSize): New field.
4552 (PlainDocument): Made public.
4553 (PlainDocument): New constructor.
4555 2004-06-16 Michael Koch <konqueror@gmx.de>
4557 * javax/swing/text/AbstractDocument.java
4558 (insertString): Throws BadLocationException.
4559 * javax/swing/text/Document.java
4560 (insertString): Likewise.
4561 * javax/swing/text/JTextComponent.java:
4562 Javadocs and comments cleaned up.
4564 2004-06-16 Michael Koch <konqueror@gmx.de>
4566 * javax/swing/event/UndoableEditListener.java: Reformatted.
4567 * javax/swing/text/AbstractDocument.java
4568 (AbstractDocument): Implements java.io.Serializable.
4569 (doc_list): Removed.
4570 (undo_list): Removed.
4571 (AbstractElement.serialVerionUID): New field.
4572 (BranchElement.serialVerionUID): Likewise.
4573 (DefaultDocumentEvent.serialVerionUID): Likewise.
4574 (ElementEdit.serialVerionUID): Likewise.
4575 (LeafElement.serialVerionUID): Likewise.
4576 (serialVerionUID): Likewise.
4577 (BAD_LOCATION): New constant.
4578 (BidiElementName): Likewise.
4579 (ContentElementName): Likewise.
4580 (ParagraphElementName): Likewise.
4581 (SectionElementName): Likewise.
4582 (ElementNameAttribute): Likewise.
4583 (AbstractDocument): Made protected.
4584 (AbstractDocument): New construtor.
4585 (listenerList): New field.
4586 (fireChangedUpdate): Implemented.
4587 (fireInsertUpdate): Likewise.
4588 (fireRemoveUpdate): Likewise.
4589 (fireUndoableEditUpdate): Likewise.
4590 (getListeners): Likewise.
4591 (addDocumentListener): Likewise.
4592 (removeDocumentListener): Likewise.
4593 (addUndoableEditListener): Likewise.
4594 (removeUndoableEditListener): Likewise.
4595 (getDocumentListeners): New method.
4596 (getUndoableEditListeners): Likewise.
4597 (getAsynchronousLoadPriority): Made public.
4598 (getBidiRootElement): Likewise.
4599 (setAsynchronousLoadPriority): Likewise.
4600 (setDocumentProperties): Likewise.
4601 * javax/swing/text/BadLocationException.java
4602 (serialVerionUID): New field.
4603 * javax/swing/text/DefaultCaret.java
4604 (changeEvent): New field.
4605 (listenerList): Likewise.
4607 (addChangeListener): Reimplemented.
4608 (removeChangeListener): Likewise.
4609 (getListeners): New method.
4610 (getChangeListeners): Likwise.
4611 (getComponent): Likewise.
4612 * javax/swing/text/GapContent.java
4613 (GapContent): Implements java.io.Serializable.
4614 (serialVerionUID): New field.
4616 2004-06-16 Michael Koch <konqueror@gmx.de>
4618 * javax/swing/JTree.java
4619 (treeModel): New field.
4620 (JTree): New constructors, one existing one made public.
4621 (createTreeModel): New method.
4622 (addTreeExpansionListener): Likewise.
4623 (removeTreeExpansionListener): Likewise.
4624 (getTreeExpansionListeners): Likewise.
4625 (fireTreeCollapsed): Likewise.
4626 (fireTreeExpanded): Likewise.
4627 (addTreeSelectionListener): Likewise.
4628 (removeTreeSelectionListener): Likewise.
4629 (getTreeSelectionListeners): Likewise.
4630 (fireValueChanged): Likewise.
4631 (addTreeWillExpandListener): Likewise.
4632 (removeTreeWillExpandListener): Likewise.
4633 (getTreeWillExpandListeners): Likewise.
4634 (fireTreeWillCollapse): Likewise.
4635 (fireTreeWillExpand): Likewise.
4637 2004-06-16 Michael Koch <konqueror@gmx.de>
4639 * javax/swing/JTree.java: Reformatted.
4641 2004-06-16 Michael Koch <konqueror@gmx.de>
4643 * javax/swing/JTextArea.java: New file.
4644 * javax/swing/JTextField.java
4646 (notifyAction): New constant.
4647 (columns): New field.
4648 (JTextField): New constructors.
4649 (createDefaultModel): New method.
4650 (addActionListener): Reimplmemented.
4651 (removeActionListener): Reimplemented.
4652 (getActionListeners): New method.
4653 (fireActionPerformed): New method.
4654 (getColumns): New method.
4655 (setColumne): New method.
4656 * javax/swing/text/JTextComponent.java
4657 (AccessibleJTextComponent.serialVersionUID): New field.
4658 (serialVersionUID): Likewise.
4659 (DEFAULT_KEYMAP): Likewise.
4660 (FOCUS_ACCELERATOR_KEY): Likewise.
4661 (doc): Made private.
4662 (icon_gap): Likewise.
4665 (JTextComponent): Some constructors removed.
4666 (getScrollableTracksViewportHeight): New method.
4667 (getScrollableTracksViewportWidth): Likewise.
4668 * Makefile.am: Added javax/swing/JTextArea.java.
4669 * Makefile.in: Regenerated.
4671 2004-06-15 Graydon Hoare <graydon@redhat.com>
4673 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
4674 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
4675 * javax/swing/JViewport.java
4676 (getExtentSize): Return size rather than preferred size.
4677 (toViewCoordinates): New methods.
4678 (getViewSize): Return size rather than preferred size.
4679 (setViewSize): Note view size as set.
4680 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
4681 * javax/swing/plaf/basic/BasicScrollBarUI.java
4682 (getPreferredSize): Don't redo layout.
4683 * javax/swing/plaf/basic/BasicViewportUI.java
4684 (paint): Translate image properly and eat exceptions.
4686 2004-06-15 Kim Ho <kho@redhat.com>
4688 * javax/swing/JTabbedPane.java
4689 (setComponent): Remove old component and
4691 (setSelectedIndex): Don't operate on the
4692 components if they're null. Don't set index
4693 on the model if the index is the same.
4694 (insertTab): Don't add or hide the component
4695 if it's null. Repaint the container.
4696 * javax/swing/plaf/basic/BasicLookAndFeel.java
4697 Change colors for TabbedPane.
4698 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
4699 (mousePressed): Re-layout and paint the component.
4700 (layoutContainer): Don't set location on the view.
4701 (ScrollingViewport::paint): Remove.
4703 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
4705 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4706 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
4708 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
4709 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
4710 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
4712 (drawLine): Call gdk_flush before leaving GDK critical region.
4713 (fillRect): Likewise.
4714 (drawRect): Likewise.
4715 (copyArea): Likewise.
4716 (copyPixmap): Likewise.
4717 (clearRect): Likewise.
4718 (drawArc): Likewise.
4719 (drawPolyline): Likewise.
4720 (drawPolygon): Likewise.
4721 (fillPolygon): Likewise.
4722 (fillArc): Likewise.
4723 (drawOval): Likewise.
4724 (fillOval): Likewise.
4726 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
4728 (GdkFontMetrics): Add style argument to initState call.
4729 (stringWidth(String,int,int,String)): Add style parameter.
4730 (stringWidth(String)): Add style argument to stringWidth call.
4731 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
4732 (initState): Set pango font style and weight based on AWT style
4733 parameter. Pass default GTK language to
4734 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
4735 simply dividing by PANGO_SCALE.
4736 (stringWidth): Set pango font style and weight based on AWT style
4739 * java/awt/Button.java (next_button_number): New field.
4740 (paramString): Change output.
4741 (generateName): New method.
4742 (getUniqueLong): New method.
4744 2004-06-14 Kim Ho <kho@redhat.com>
4746 * javax/swing/JTabbedPane.java:
4747 (setComponentAt): Set the component, not
4749 * javax/swing/plaf/basic/BasicDesktopIconUI.java
4750 (actionPerformed): Let deiconize catch exception.
4752 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4754 * javax/swing/JPopupMenu.java:
4755 (setVisible): Corrected location of a
4756 heavyweight popup menu.
4758 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4760 * javax/swing/MenuSelectionManager.java:
4761 Ran through jalopy to fix formatting style.
4763 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4765 * javax/swing/JLayeredPane.java:
4766 (remove): Revalidate and repaint layered pane after
4767 the component was removed.
4768 javax/swing/JMenu.java:
4769 (setVisible): Display popup menu at the user location,
4770 if one was set by the user.
4771 (setMenuLocation): Reimplemented. Fixed javadoc.
4772 * javax/swing/JMenuBar.java: Added javadoc.
4773 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
4774 (MODEL_CHANGED_PROPERTY): New Property.
4775 (isSelected): Implemented.
4776 (setBorderPainted): Fire PropertyChangeEvent
4777 if paintBorder property changes.
4778 (setSelected): Implemented.
4779 (setSelectionModel): Implemented.
4780 * javax/swing/JPopupMenu.java: Added Javadoc
4781 (pack): Implemented.
4782 (setVisible): Reimplemented.
4783 (show): Fixed location.
4784 (JPopupMenu.LigthWeightPopup): Reimplemented to use
4785 Container instead of JPanel.
4786 * javax/swing/MenuSelectionManager.java: Added Javadocs.
4787 (clearSelectedPath): Reimplemented to clear selectedPath
4789 (processMouseEvent): Reimplemented.
4790 (setSelectedPath): Fire stateChange event indicating that
4791 selected menu path has changed.
4792 (getPath): Change to use ArrayList instead of Vector.
4793 * javax/swing/plaf/basic/BasicMenuBarUI.java:
4794 (installUI): call installKeyboardActions().
4795 (uninstallUI): call uninstallKeyboardActions().
4797 2004-06-13 Michael Koch <konqueror@gmx.de>
4799 * javax/swing/text/DefaultCaret.java,
4800 javax/swing/text/BadLocationException.java:
4803 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
4805 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
4806 DEFAULT_COLS): New variables.
4807 (create): Don't allow 0 rows or 0 columns. Instead, set the
4808 values to DEFAULT_ROWS or DEFAULT_COLS.
4809 (getMinimumSize): Likewise.
4810 (getPreferredSize): Likewise.
4811 (minimumSize): Likewise.
4812 (preferredSize): Likewise.
4813 (create): Set peer's editable state.
4814 * java/awt/TextArea.java (TextArea()): Set rows and columns to
4815 zero. Update javadocs.
4816 (TextArea(String)): Likewise.
4817 (TextArea(int,int)): Fix javadocs.
4818 (TextArea(String,int,int,int)): Only throw exception if one of
4819 rows or columns is zero. Fix javadocs.
4821 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
4823 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
4824 addition to Components.
4826 * java/awt/MenuItem.java (dispatchEventImpl): If the event
4827 wasn't consumed by normal processing, send it to the parent
4830 * gnu/java/awt/peer/gtk/GtkImagePainter.java
4831 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
4834 2004-06-11 David Jee <djee@redhat.com>
4836 * java/awt/MediaTracker.java
4837 (addImage(Image,int)): Call imageUpdate() to udpate image status.
4838 (addImage(Image,int,int,int)): Likewise.
4840 2004-06-11 Michael Koch <konqueror@gmx.de>
4842 * javax/swing/text/AbstractDocument.java,
4843 javax/swing/text/Document.java,
4844 javax/swing/text/GapContent.java,
4845 javax/swing/text/JTextComponent.java,
4846 javax/swing/text/PlainDocument.java:
4849 2004-06-11 Michael Koch <konqueror@gmx.de>
4851 * javax/swing/JRootPane.java
4852 (AccessibleJRootPane.serialVersionUID): New field.
4853 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
4854 (AccessibleJRootPane.getAccessibleRole): New method.
4855 (RootLayout): Implements Serializable.
4856 (RootLayout.serialVersionUID): New field.
4857 (RootLayout.RootLayout): New constructor.
4858 (setJMenuBar): Made public.
4859 (getJMenuBar): Likewise.
4860 (JRootPane): Likewise.
4861 (createContentPane): Likewise.
4862 (createGlassPane): Likewise.
4863 (createLayeredPane): Likewise.
4865 2004-06-11 Michael Koch <konqueror@gmx.de>
4867 * javax/swing/SwingUtilities.java
4868 (isLeftMouseButton): Fixed javadoc.
4869 (isMiddleMouseButton): Likewise.
4870 (isRightMouseButton): Likewise.
4872 2004-06-11 Michael Koch <konqueror@gmx.de>
4874 * javax/swing/JScrollPane.java
4875 (serialVersionUID): New field.
4876 (columnHeader): Made protected.
4877 (rowHeader): Likewise.
4878 (lowerLeft): Likewise.
4879 (lowerRight): Likewise.
4880 (upperLeft): Likewise.
4881 (upperRight): Likewise.
4882 (horizontalScrollBar): Likewise.
4883 (horizontalScrollBarPolicy): Likewise.
4884 (verticalScrollBar): Likewise.
4885 (verticalScrollBarPolicy): Likewise.
4886 (viewport): Likewise.
4888 2004-06-11 Michael Koch <konqueror@gmx.de>
4890 * javax/swing/LookAndFeel.java: Fixed javadocs.
4892 2004-06-11 Michael Koch <konqueror@gmx.de>
4894 * javax/swing/JEditorPane.java: Fixed javadocs.
4895 (JEditorPane): Removed redundant call to to this().
4896 (fireHyperlinkUpdate): Implemented.
4898 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4900 * javax/swing/JMenu.java: Fixed file name
4901 in the file comment.
4903 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4905 * javax/swing/JMenu.java: Added javadoc.
4906 (JMenu): Added MenuChangeListener to listen to
4907 ChangeEvents occuring in menu's model.
4908 (insert): Throw IllegalArgumentException if
4909 index is less than 0
4910 (setSelected): Reimplement.
4911 (setPopupMenuVisible): Call menu's model isEnabled()
4912 (setDelay): Throw IllegalArgumentException if
4913 given amount of delay is less than 0.
4914 (createActionComponent): Implemented.
4915 (createActionChangeListener): Implemented.
4916 (addSeparator): Implemented.
4917 (getItem): Throw IllegalArgumentException if index is
4919 (getItemCount): Implemented.
4920 (fireMenuSelected): Changed to use menuEvent.
4921 (fireMenuDeselected): Likewise.
4922 (fireMenuCanceled): Likewise.
4923 (setAccelerator): Changed to throw an error if this
4925 (doClick): Implemented.
4926 (JMenu.ActionChangedListener): New inner class to handle
4927 PropertyChangeEvents occuring in the actions associated with menu.
4928 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
4929 (BasicMenuUI): Added PropertyChangeListener to the menu.
4930 (createChangeListener): Implemented.
4931 (createMenuDragMouseListener): Likewise.
4932 (createMenuKeyListener): Likewise.
4933 (createPropertyChangeListener): Likewise.
4934 (uninstallListeners): Likewise.
4935 (BasicMenuUI.MouseInputHandler): Reimplemented.
4936 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
4937 (BasicMenuUI.ChangeHandler): Likewise.
4938 (BasicMenuUI.MenuDragMouseHandler): Likewise.
4939 (BasicMenuUI.MenuKeyHandler): Likewise.
4941 2004-06-10 David Jee <djee@redhat.com>
4943 * java/awt/MediaTracker.java
4944 (imageUpdate): Only do notifyAll() if the image is complete.
4946 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4948 * javax/swing/JApplet.java:
4949 (getJMenuBar): Made public.
4950 (setJMenuBar): Likewise.
4951 * javax/swing/JFrame.java:
4952 (getJMenuBar): Made public.
4953 (setJMenuBar): Likewise.
4954 * javax/swing/JWindow.java:
4955 (getJMenuBar): Removed.
4956 (setJMenuBar): Removed.
4958 2004-06-10 Michael Koch <konqueror@gmx.de>
4960 * javax/swing/JEditorPane.java
4961 (createEditorKitForContentType): Fixed visibility.
4962 (fireHyperlinkUpdate): Likewise.
4963 (getContentType): Likewise.
4964 (getEditorKit): Likewise.
4965 (getEditorKitForContentType): Likewise.
4966 (getPage): Likewise.
4968 (registerEditorKitForContentTyoe): Likewise.
4969 (replaceSelection): Likewise.
4970 (setContentType): Likewise.
4971 (setEditorKit): Likewise.
4972 (setPage): Likewise.
4974 2004-06-10 Michael Koch <konqueror@gmx.de>
4976 * javax/swing/Timer.java
4977 (Timer): New constructor.
4978 * javax/swing/plaf/basic/BasicProgressBarUI.java
4979 (animationTimer): Don't initialize at construction.
4980 (startAnimationTimer): Added since tag.
4981 (stopAnimationTimer): Likewise.
4982 (installUI): Use new Timer constructor.
4983 * javax/swing/plaf/basic/BasicScrollBarUI.java
4984 (installUI): Likewise.
4985 * javax/swing/plaf/basic/BasicSliderUI.java
4986 (installUI): Likewise.
4988 2004-06-10 Michael Koch <konqueror@gmx.de>
4990 * javax/swing/ButtonGroup.java
4991 (serialVersionUID): Made private.
4992 (buttons): Renamed from v, added javadoc.
4993 (sel): Added javadoc.
4994 (ButtonGroup): Likewise.
4997 (getElements): Likewise.
4998 (getSelection): Likewise.
4999 (setSelected): Likewise.
5000 (isSelected): Likewise.
5001 (getButtonCount): Likewise.
5003 2004-06-10 Michael Koch <konqueror@gmx.de>
5005 * javax/swing/ButtonGroup.java,
5006 javax/swing/ImageIcon.java,
5007 javax/swing/JEditorPane.java,
5008 javax/swing/JRootPane.java,
5009 javax/swing/JTextField.java,
5010 javax/swing/LookAndFeel.java,
5011 javax/swing/plaf/basic/BasicTextUI.java:
5014 2004-06-10 Michael Koch <konqueror@gmx.de>
5016 * javax/swing/text/Style.java: Added javadocs.
5018 2004-06-10 Michael Koch <konqueror@gmx.de>
5020 * javax/swing/JComponent.java
5021 (fireVetoableChange): Removed redundant cast.
5022 * javax/swing/JLabel.java
5023 (getDisabledIcon): Save icon for next call.
5025 2004-06-10 Michael Koch <konqueror@gmx.de>
5027 * javax/swing/KeyStroke.java
5028 (getKeyStroke(char,boolean)): Marked deprecated.
5030 2004-06-10 Michael Koch <konqueror@gmx.de>
5032 * javax/swing/DefaultCellEditor.java,
5033 javax/swing/GrayFilter.java,
5034 javax/swing/event/DocumentEvent.java,
5035 javax/swing/text/JTextComponent.java,
5036 javax/swing/text/MutableAttributeSet.java:
5039 2004-06-10 Michael Koch <konqueror@gmx.de>
5041 * javax/swing/plaf/BorderUIResource.java:
5042 Added serialVersionUID all over.
5044 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
5046 * javax/swing/undo/UndoManager.java: Re-written from scratch.
5048 2004-06-10 Michael Koch <konqueror@gmx.de>
5050 * javax/swing/table/DefaultTableCellRenderer.java
5051 (noFocusBorder): Initialize directly.
5053 2004-06-10 Michael Koch <konqueror@gmx.de>
5055 * javax/swing/plaf/basic/BasicArrowButton.java
5056 (setDirection): Use method argument.
5058 2004-06-10 Michael Koch <konqueror@gmx.de>
5060 * javax/swing/plaf/BorderUIResource.java,
5061 javax/swing/plaf/ComponentUI.java,
5062 javax/swing/undo/CompoundEdit.java,
5063 javax/swing/undo/StateEdit.java:
5064 Fixed javadocs all over.
5066 2004-06-10 Michael Koch <konqueror@gmx.de>
5068 * javax/swing/DefaultButtonModel.java
5069 (ARMED): Made public final, fixed value.
5070 (ENABLED): Likewise.
5071 (PRESSED): Likewise.
5072 (ROLLOVER): Likewise.
5073 (SELECTED): Likewise.
5074 (stateMask): Initialize directly.
5075 (listenerList): Likewise.
5076 (mnemonic): Likewise.
5077 (fireStateChanged): Removed argument, use changeEvent as event.
5078 All places where this method is called are fixed too.
5079 (getActionCommant): Fixed javadoc.
5080 (setGroup): Fixed javadoc.
5081 (getGroup): New method.
5083 2004-06-09 Olga Rodimina <rodimina@redhat.com>
5085 * javax/swing/AbstractButton.java
5086 (AbstractButton): Use init() to initialize the button.
5087 (init): New Method. Initializes AbstractButton.
5088 * javax/swing/JMenuItem.java: Documented.
5089 (JMenuItem): Reimplemented.
5090 (init): Implemented.
5091 (setEnabled): Changed to call super.setEnabled()
5092 (processMouseEvent): Reimplemented.
5093 (fireMenuKeyPressed): Implemented.
5094 (fireMenuKeyReleased): Implemented.
5095 (fireMenuKeyTyped): Implemented.
5096 (menuSelectionChanged): disarm the model if the menu item was
5098 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
5099 (getPath): Change to use ArrayList instead of Vector.
5100 (getPreferredSize): Renamed variable.
5101 (paintMenuItem): Paint margin area of menu item.
5102 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
5103 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
5104 menu item's bounds before clearing the selection.
5106 2004-06-09 David Jee <djee@redhat.com>
5108 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
5109 (GtkTextComponentPeer): Set caret position to 0.
5110 * java/awt/TextComponent.java
5111 (setText): Set caret position to 0.
5112 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5113 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
5114 Handle GtkScrolledWindow separately. Fix signal handler blocking.
5115 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
5117 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5118 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
5121 2004-06-09 Kim Ho <kho@redhat.com>
5123 * Makefile.am: New files
5124 * Makefile.in: Regenerated
5125 * java/awt/Container.java
5126 (getComponentAt): Removed.
5127 * javax/swing/AbstractAction.java
5128 (ENABLED_PROPERTY): New property.
5129 (putValue): Fire PropertyChangeEvents.
5130 (setEnabled): ditto.
5131 (firePropertyChange): Javadoc and implement
5133 * javax/swing/AbstractButton.java
5134 (setAction): Don't create PropertyChangeListener
5135 if new Action is null.
5136 (setIcon): Don't set icon till after comparing
5138 (configurePropertiesFromAction): Check mnemonic
5139 key before calling intValue().
5140 (createActionPropertyChangeListener): Check
5141 properties rather than bulk change.
5142 * javax/swing/DefaultDesktopManager.java:
5144 * javax/swing/DesktopManager.java:
5146 * javax/swing/JComponent.java
5147 (fireVetoableChange): Implement.
5148 (paintImmediately): Use root component.
5149 * javax/swing/JDesktopPane.java: Implement
5150 * javax/swing/JInternalFrame.java: Implement
5151 * javax/swing/JLabel.java
5152 (getDisabledIcon): Return grayscaled icon if
5153 no disabled icon specified.
5154 * javax/swing/JMenuBar.java
5155 (getComponentAtIndex): Use getComponent
5156 * javax/swing/JOptionPane.java
5157 (getDesktopPaneForComponent): Use SwingUtilities'
5159 (getFrameForComponent): ditto.
5160 * javax/swing/JSplitPane.java
5161 (remove): Use getComponent.
5162 * javax/swing/SwingUtilities.java
5163 (convertPoint): Implement.
5164 * javax/swing/plaf/basic/BasicButtonUI.java
5165 (paintButtonNormal): Check opaqueness before
5167 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
5169 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
5171 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
5173 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
5175 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5176 Change InternalFrame and Desktop colors.
5178 2004-06-09 David Jee <djee@redhat.com>
5180 * java/awt/Container.java
5181 (remove): Do not set component to invisible.
5183 2004-06-09 Michael Koch <konqueror@gmx.de>
5185 * javax/swing/tree/DefaultMutableTreeNode.java
5186 (getLeafCount): Renamed enum to e.
5188 2004-06-09 Michael Koch <konqueror@gmx.de>
5190 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5191 (positionForMouseEvent): Removed redundant semicolon.
5192 (continueDrag): Use method arguments.
5194 2004-06-09 Michael Koch <konqueror@gmx.de>
5196 * javax/swing/border/TitledBorder.java,
5197 javax/swing/filechooser/FileSystemView.java,
5198 javax/swing/plaf/basic/BasicButtonListener.java,
5199 javax/swing/plaf/basic/BasicGraphicsUtils.java,
5200 javax/swing/plaf/basic/BasicLabelUI.java,
5201 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
5202 javax/swing/plaf/basic/BasicScrollBarUI.java,
5203 javax/swing/plaf/basic/BasicScrollPaneUI.java,
5204 javax/swing/plaf/basic/BasicSliderUI.java,
5205 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
5206 javax/swing/plaf/basic/BasicToggleButtonUI.java,
5207 javax/swing/table/JTableHeader.java,
5208 javax/swing/text/AbstractDocument.java,
5209 javax/swing/text/DefaultCaret.java,
5210 javax/swing/text/StyledEditorKit.java,
5211 javax/swing/tree/DefaultTreeCellEditor.java:
5212 Reworked import statements.
5214 2004-06-08 Graydon Hoare <graydon@redhat.com>
5216 * javax/swing/Box.java: Temporarily comment out code
5217 broken due to visibility bug.
5219 2004-06-09 Michael Koch <konqueror@gmx.de>
5221 * javax/swing/ImageIcon.java
5222 (ImageIcon): Added missing constructor.
5224 2004-06-08 Michael Koch <konqueror@gmx.de>
5226 * javax/swing/JToggleButton.java
5227 (JToggleButton): New constructor.
5228 (getAccessibleContext): Moved documentation into javadoc.
5229 (getUIClassID): Likewise.
5231 2004-06-08 Michael Koch <konqueror@gmx.de>
5233 * javax/swing/AbstractButton.java
5234 (getDisabledIcon): Create disabled icon if none exists yet.
5236 2004-06-08 Michael Koch <konqueror@gmx.de>
5238 * javax/swing/plaf/basic/BasicLookAndFeel.java
5239 (initClassDefaults): Added FormattedTextFieldUI.
5240 (loadResourceBundle): Renamed enum to e.
5242 2004-06-08 Michael Koch <konqueror@gmx.de>
5244 * javax/swing/plaf/basic/BasicButtonUI.java
5245 (paintIcon): Simplified.
5246 (paintText): Paint disabled button correctly.
5248 2004-06-08 Michael Koch <konqueror@gmx.de>
5250 * javax/swing/JComponent.java
5251 (createToolTip): Use official JToolTip API.
5253 2004-06-08 Michael Koch <konqueror@gmx.de>
5255 * javax/swing/JToolTip.java
5256 (JToolTip): No arguments in API.
5257 (setTipText): New method.
5259 2004-06-08 Michael Koch <konqueror@gmx.de>
5261 * javax/swing/SwingUtilities.java
5262 (isLeftMouseButton): New method.
5263 (isMiddleMouseButton): New method.
5264 (isRightMouseButton): New method.
5266 2004-06-08 Michael Koch <konqueror@gmx.de>
5268 * javax/swing/AbstractButton.java,
5269 javax/swing/CellRendererPane.java,
5270 javax/swing/JCheckBoxMenuItem.java,
5271 javax/swing/JColorChooser.java,
5272 javax/swing/JComboBox.java,
5273 javax/swing/JComponent.java,
5274 javax/swing/JDesktopPane.java,
5275 javax/swing/JFileChooser.java,
5276 javax/swing/JMenu.java,
5277 javax/swing/JMenuItem.java,
5278 javax/swing/JOptionPane.java,
5279 javax/swing/JPasswordField.java,
5280 javax/swing/JPopupMenu.java,
5281 javax/swing/JProgressBar.java,
5282 javax/swing/JRadioButtonMenuItem.java,
5283 javax/swing/JScrollBar.java,
5284 javax/swing/JSeparator.java,
5285 javax/swing/JSlider.java,
5286 javax/swing/JSplitPane.java,
5287 javax/swing/JTabbedPane.java,
5288 javax/swing/JTextField.java,
5289 javax/swing/JToolBar.java,
5290 javax/swing/text/JTextComponent.java:
5291 Fixed all constructors of accessibility classes.
5293 2004-06-08 Michael Koch <konqueror@gmx.de>
5295 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
5298 2004-06-08 Michael Koch <konqueror@gmx.de>
5300 * javax/swing/Box.java
5301 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
5302 (AccessibleBoxFiller.serialVersionUID): New member variable.
5303 * javax/swing/DefaultButtonModel.java
5304 (stateMask): Made protected.
5305 (listenerList): Likewise.
5306 (changeEvent): Likewise.
5308 (mnemonic): Likewise.
5309 (actionCommand): Likewise.
5310 (getListeners): New method.
5311 (getActionListeners): New method.
5312 (getItemListeners): New method.
5313 (getChangeListeners): New method.
5314 (fireItemStateChanged): Simplified.
5315 (fireActionPerformed): Simplified.
5316 (fireStateChanged): Simplified.
5317 * javax/swing/JFrame.java
5318 (JFrame): Implements WindowContants.
5319 (HIDE_ON_CLOSE): Removed.
5320 (EXIT_ON_CLOSE): Removed.
5321 (DISPOSE_ON_CLOSE): Removed.
5322 (DO_NOTHING_ON_CLOSE): Removed.
5323 (processWindowEvent): Exit with code 0.
5324 (setDefaultCloseOperation): Do security check before setting value.
5325 * javax/swing/JOptionPane.java
5326 (message): Initialize only in constructor.
5327 * javax/swing/JToolTip.java: Removed unused imports.
5328 * javax/swing/JViewport.java
5329 (serialVersionUID): New member variable.
5330 (SIMPLE_SCROLL_MODE): Made final, fixed value.
5331 (BLIT_SCROLL_MODE): Likewise.
5332 (BACKINGSTORE_SCROLL_MODE): Likewise.
5333 (scrollUnderway): Made protected.
5334 (isViewSizeSet): Likewise.
5335 * javax/swing/ListModel.java: Fixed javadoc.
5336 * javax/swing/Popup.java: Likewise.
5337 * javax/swing/RepaintManager.java
5338 (paintDirtyRegions): Don't use internal classes of
5339 java.util.AbstractMap.
5340 * javax/swing/ScrollPaneConstants.java: Reindented.
5341 * javax/swing/ScrollPaneLayout.java
5342 (viewport): Made protected.
5343 (verticalScrollBar): Made protected, renamed to vsb.
5344 (horizontalScrollBar): Made protected, renamed to hsb.
5345 (rowHeader): Made protected, renamed to rowHead.
5346 (columnHeader): Made protected, renamed to colHead.
5347 (lowerLeft): Made protected.
5348 (lowerRight): Made protected.
5349 (upperLeft): Made protected.
5350 (upperRight): Made protected.
5351 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
5352 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
5354 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
5356 * java/awt/MediaTracker.java (imageUpdate): Only set status to
5357 LOADING if flags has SOMEBITS set.
5359 2004-06-07 Michael Koch <konqueror@gmx.de>
5361 * javax/swing/AbstractButton.java: Reorganized imports.
5362 * javax/swing/ActionMap.java: Likewise.
5363 * javax/swing/DefaultButtonModel.java: Likewise.
5364 * javax/swing/DefaultListModel.java: Likewise.
5365 * javax/swing/ImageIcon.java: Likewise.
5366 (serialVersionUID): New member variable.
5367 * javax/swing/JComboBox.java: Reorganized imports.
5368 * javax/swing/JComponent.java: Likewise.
5369 (ui): Made protected.
5370 (listenerList): Made protected.
5371 (TOOL_TIP_TEXT_KEY): New constant.
5372 (scrollRectToVisible): Removed redundant null check.
5373 * javax/swing/JFrame.java: Reorganized imports.
5374 * javax/swing/JInternalFrame.java: Reorganized imports.
5375 * javax/swing/JProgressBar.java: Likewise.
5376 * javax/swing/JRootPane.java: Likewise.
5377 * javax/swing/JScrollBar.java: Likewise.
5378 * javax/swing/JSeparator.java: Likewise.
5379 * javax/swing/JSlider.java: Likewise.
5380 * javax/swing/JTabbedPane.java: Likewise.
5381 * javax/swing/JTextField.java: Likewise.
5382 * javax/swing/JToolBar.java: Likewise.
5383 * javax/swing/JTree.java: Likewise.
5384 * javax/swing/JViewport.java: Likewise.
5385 * javax/swing/JWindow.java: Likewise.
5386 * javax/swing/KeyStroke.java: Likewise.
5387 * javax/swing/LookAndFeel.java: Likewise.
5388 * javax/swing/MenuSelectionManager.java: Likewise.
5389 * javax/swing/SwingUtilities.java: Likewise.
5390 * javax/swing/Timer.java: Likewise.
5391 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
5392 * javax/swing/JList.java
5393 (HORIZONTAL_WRAP): Made final, fixed value.
5394 (VERTICAL): Likewise.
5395 (VERTICAL_WRAP): Likewise.
5397 2004-06-07 Michael Koch <konqueror@gmx.de>
5399 * javax/swing/AbstractButton.java
5400 (serialVersionUID): New member variable.
5401 (AccessibleAbstractButton.serialVersionUID): Likewise.
5402 (AbstractButton): Made public.
5403 * javax/swing/Box.java
5404 (AccessibleBox.serialVersionUID): New member variable.
5405 (Filler.serialVersionUID): Likewise.
5406 * javax/swing/DefaultListSelectionModel.java
5407 (serialVersionUID): Likewise.
5408 * javax/swing/JApplet.java
5409 (serialVersionUID): Likewise.
5410 * javax/swing/JCheckBox.java
5411 (serialVersionUID): Likewise.
5412 * javax/swing/JCheckBoxMenuItem.java
5413 (serialVersionUID): Likewise.
5414 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
5415 * javax/swing/JColorChooser.java
5416 (serialVersionUID): Likewise.
5417 (AccessibleJColorChooser.serialVersionUID): Likewise.
5418 * javax/swing/JComponent.java
5419 (serialVersionUID): Made private.
5420 (AccessibleJComponent.serialVersionUID): New member variable.
5421 * javax/swing/JDesktopPane.java
5422 (serialVersionUID): Likewise.
5423 * javax/swing/JDialog.java
5424 (serialVersionUID): Likewise.
5425 * javax/swing/JFormattedTextField.java
5426 (serialVersionUID): Fixed value.
5427 * javax/swing/JFrame.java
5428 (serialVersionUID): New member variable.
5429 (getDefaultCloseOpertation): Made public.
5430 * javax/swing/JLayeredPane.java
5431 (serialVersionUID): Likewise.
5432 (LAYER_PROPERTY): Made final, fixed value.
5433 (JLayeredPane): Made public.
5434 * javax/swing/JMenu.java
5435 (AccessibleJMenu.serialVersionUID): New member variable.
5436 (WinListener.serialVersionUID): Likewise.
5437 * javax/swing/JMenuBar.java
5438 (serialVersionUID): Likewise.
5439 (getComponentAtIndex): Added @deprecated tag.
5440 * javax/swing/JMenuItem.java
5441 (serialVersionUID): New member variable.
5442 (AccessibleJMenuItem.serialVersionUID): Likewise.
5443 * javax/swing/JOptionPane.java
5444 (serialVersionUID): Likewise.
5445 (AccessibleJOptionPane.serialVersionUID): Likewise.
5446 * javax/swing/JPopupMenu.java
5447 (serialVersionUID): Likewise.
5448 (AccessibleJPopupMenu.serialVersionUID): Likewise.
5449 (getPopupMenuListeners): New method.
5450 (getComponentAtIndex): Added @deprecated tag.
5451 * javax/swing/JProgressBar.java
5452 (serialVersionUID): New member variable.
5453 (AccessibleJProgressBar.serialVersionUID): Likewise.
5454 * javax/swing/JRadioButton.java
5455 (serialVersionUID): Likewise.
5456 * javax/swing/JRadioButtonMenuItem.java
5457 (serialVersionUID): Likewise.
5458 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
5459 * javax/swing/JScrollBar.java
5460 (serialVersionUID): Likewise.
5461 (AccessibleJScrollBar.serialVersionUID): Likewise.
5462 * javax/swing/JSeparator.java
5463 (serialVersionUID): Likewise.
5464 (AccessibleJSeparator.serialVersionUID): Likewise.
5465 * javax/swing/JSlider.java: Fixed javadocs.
5466 (AccessibleJSlider.serialVersionUID): New member variable.
5467 * javax/swing/JSplitPane.java: Added copyright statement.
5468 (serialVersionUID): New member variable.
5469 (AccessibleJSplitPane.serialVersionUID): Likewise.
5470 * javax/swing/JTabbedPane.java
5471 (serialVersionUID): Likewise.
5472 (AccessibleJTabbedPane.serialVersionUID): Likewise.
5473 (ModelListener.serialVersionUID): Likewise.
5474 (ModelListener.ModelListener): New constructor.
5475 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
5476 (WRAP_TAB_LAYOUT): Likewise.
5477 * javax/swing/JTable.java
5478 (serialVersionUID): New member variable.
5479 * javax/swing/JToggleButton.java
5480 (serialVersionUID): Likewise.
5481 (ToggleButtonModel): Made static.
5482 (ToggleButtonModel.serialVersionUID): New member variable.
5483 * javax/swing/JToolTip.java
5484 (serialVersionUID): Likewise.
5485 * javax/swing/JTree.java
5486 (serialVersionUID): Likewise.
5487 * javax/swing/JWindow.java
5488 (serialVersionUID): Likewise.
5489 * javax/swing/Timer.java
5490 (serialVersionUID): Likewise.
5492 2004-06-06 Michael Koch <konqueror@gmx.de>
5494 * javax/swing/SwingConstants.java
5495 (NEXT): New constant.
5496 (PREVIOUS): Likewise.
5497 * javax/swing/UIManager.java
5498 (LookAndFeel): Made public.
5499 (LookAndFeel.getClassName): Likewise.
5500 (LookAndFeel.getName): Likewise.
5502 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5504 * javax/swing/JCheckBoxMenuItem.java:
5506 * javax/swing/JMenu.java: Likewise.
5507 * javax/swing/JMenuBar.java: Likewise.
5508 * javax/swing/JMenuItem.java: Likewise.
5509 * javax/swing/JPopupMenu.java: Likewise.
5510 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5511 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5512 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5513 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5514 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5515 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5516 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5518 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5520 * javax/swing/plaf/basic/BasicMenuUI.java:
5521 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5522 Call getPath() from super class instead.
5524 2004-05-31 David Jee <djee@redhat.com>
5526 * java/awt/Container.java
5527 (remove): Set component visibility to false after removing it.
5529 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
5531 * java/awt/Component.java (getForeground): Return SystemColor if
5533 (getBackground): Likewise.
5535 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5536 (item_highlighted): New function.
5537 (connectSignals): Set item_highlighted as list's select
5540 * java/applet/Applet.java: Revert changes from 2004-04-29,
5541 2004-03-15 and 2004-03-14.
5543 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5544 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
5547 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
5548 "Dialog" as the default font.
5549 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
5551 * java/awt/Component.java (getFont): Return "Dialog" font by
5553 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
5554 Multiply size argument to pango_font_description_set_size by the
5555 DPI conversion factor rather than by PANGO_SCALE.
5556 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
5557 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
5558 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
5559 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
5560 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
5561 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
5562 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
5563 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
5564 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
5565 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5566 Divide baseline y coordinate by DPI conversion factor rather
5567 than by PANGO_SCALE.
5568 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
5569 (area_prepared): Fix typo.
5570 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
5571 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
5572 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
5573 (dpi_conversion_factor): New global variable.
5574 (init_dpi_conversion_factor): New function to calculate and
5575 track DPI conversion factor.
5576 (dpi_changed_cb): New callback.
5577 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
5579 2004-05-27 David Jee <djee@redhat.com>
5581 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5582 (getGraphics): Return a new GdkGraphics instance.
5583 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5584 (getGraphics): Call super.getGraphics().
5586 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5588 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5589 (setNativeBounds): Clamp width and height values to >= 0.
5591 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5592 (find_fg_color_widget): Handle GtkOptionMenu specially.
5594 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5595 (pre_event_handler): Only post configure events to visible
5598 2004-05-26 David Jee <djee@redhat.com>
5600 * java/awt/BorderLayout.java
5601 (layoutContainer): Fix size calculations.
5603 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5605 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5606 (window_wm_protocols_filter): Remove function.
5607 (create): Remove filter that removes WM_TAKE_FOCUS client
5610 2004-06-17 Anthony Green <green@redhat.com>
5612 * java/util/zip/ZipFile.java (getInputStream): Return null if
5615 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
5616 directory contents to the class path.
5618 2004-06-15 Andrew Haley <aph@redhat.com>
5620 * java/lang/natSystem.cc (getenv0): Don't assume environment
5621 variable is Latin 1 coded.
5623 2004-06-14 Andreas Jaeger <aj@suse.de>
5625 * configure.in: Support --enable-version-specific-runtime-libs.
5626 * configure: Regenerated.
5628 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
5630 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
5631 to pass ClassLoader argument.
5632 * java/util/GregorianCalendar.java: Likewise.
5633 * java/util/Currency.java: Likewise.
5634 * java/text/BreakIterator.java: Likewise.
5635 * java/text/Collator.java: Likewise.
5636 * java/text/DateFormat.java: Likewise.
5637 * java/text/DateFormatSymbols.java: Likewise.
5638 * java/text/DecimalFormatSymbols.java: Likewise.
5639 * java/text/NumberFormat.java: Likewise.
5640 * java/awt/Window.java: Likewise.
5642 2004-06-14 Andrew Haley <aph@redhat.com>
5644 * java/lang/System.java: (getenv0): New method.
5645 (getenv): Add security check. Do the right thing.
5646 * java/lang/natSystem.cc (getenv0): New method.
5648 2004-06-12 Mark Wielaard <mark@klomp.org>
5650 * javax/swing/RepaintManager.java
5651 (paintDirtyRegions): Use entrySet(), not values().
5653 2004-06-10 Mark Wielaard <mark@klomp.org>
5655 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
5658 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
5660 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
5661 when we already know the answer.
5662 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
5663 (setStartRule,setEndRule): Don't take abs of day number.
5664 (getOffset): Clarify docs. Add argument checks.
5665 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
5666 (equals,hasSameRules,toString,readObject): Use startTimeMode and
5669 2004-06-10 Tom Tromey <tromey@redhat.com>
5671 * interpret.cc (run): Handle wide fload.
5673 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
5675 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
5677 2004-06-05 Michael Koch <konqueror@gmx.de>
5679 * javax/swing/SwingConstants.java
5680 (NEXT): New constant.
5681 (PREVIOUS): Likewise.
5683 2004-06-05 Michael Koch <konqueror@gmx.de>
5685 * javax/swing/UIManager.java
5686 (LookAndFeel): Made public.
5687 (LookAndFeel.getName): Likewise.
5688 (LookAndFeel.getClassName): Likewise.
5690 2004-06-03 Michael Koch <konqueror@gmx.de>
5692 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5693 (requestFocus): Revert last changes.
5694 (gtkRequestFocus): Removed.
5695 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5696 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5698 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
5699 Reverted last patch.
5700 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5701 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
5702 Reverted comment change.
5704 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5706 * javax/swing/JCheckBoxMenuItem.java:
5708 * javax/swing/JMenu.java: Likewise.
5709 * javax/swing/JMenuBar.java: Likewise.
5710 * javax/swing/JMenuItem.java: Likewise.
5711 * javax/swing/JPopupMenu.java: Likewise.
5712 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5713 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5714 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5715 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5716 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5717 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5718 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5720 2004-06-01 Tom Tromey <tromey@redhat.com>
5722 * java/io/ObjectStreamField.java: Cleaned up imports.
5724 2004-06-01 Michael Koch <konqueror@gmx.de>
5726 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
5728 2004-06-01 Mark Wielaard <mark@klomp.org>
5730 * java/io/Writer.java (Writer(Object)): Fixed API doc.
5732 2004-06-01 Michael Koch <konqueror@gmx.de>
5734 * java/security/Security.java
5735 (insertProviderAt): Use equals() instead of ==.
5736 (removeProvicer): Likewise.
5737 (getProvider): Likewise.
5738 * java/security/Signature.java
5739 (sign): Don't set state to UNINITIALIZED.
5742 2004-06-01 Mark Wielaard <mark@klomp.org>
5744 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
5745 Implement by calling gtkRequestFocus.
5746 (gtkRequestFocus): New native method.
5747 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5748 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
5750 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5752 (filter_expose_event_handler):
5754 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5755 (menu_pos): Mark static.
5757 2004-06-01 Michael Koch <konqueror@gmx.de>
5759 * java/text/CollationElementIterator.java,
5760 java/text/CollationKey.java,
5761 java/text/RuleBasedCollator.java: New versions from GNU classpath.
5762 * testsuite/libjava.mauve/xfails: Removed all
5763 java.text.CollationElementIterator tests.
5765 2004-06-01 Michael Koch <konqueror@gmx.de>
5767 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
5769 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
5770 Java 1.5 keyword usage.
5772 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5774 * javax/swing/plaf/basic/BasicMenuUI.java:
5775 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5776 Call getPath() from super class instead.
5778 2004-05-31 Michael Koch <konqueror@gmx.de>
5780 * java/io/SequenceInputStream.java:
5781 Rename enum to e because enum is a keyword in Java 1.5.
5783 2004-05-31 Michael Koch <konqueror@gmx.de>
5785 * gnu/java/rmi/rmic/CompilerProcess.java:
5786 Fixed javadoc to by XHTML compliant.
5788 2004-05-30 Mark Wielaard <mark@klomp.org>
5790 * java/awt/Toolkit.java (loadSystemColors): Implement.
5792 2004-05-30 Michael Koch <konqueror@gmx.de>
5794 * java/lang/System.java: Reordered imports.
5796 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
5798 * java/text/DecimalFormat.java
5799 (parse): Fixed parsing of decimal strings. Number of maximum
5800 digits to be read should now work.
5801 * java/text/SimpleDateFormat.java
5802 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
5803 formatter. This fixes DateFormatTest.
5805 2004-05-30 Michael Koch <konqueror@gmx.de>
5807 * java/nio/Buffer.java
5808 (limit): Fixed off by one error.
5809 * java/nio/CharBuffer.java
5810 (wrap): Fixed arguments, added javadocs.
5812 2004-05-30 Michael Koch <konqueror@gmx.de>
5814 * gnu/java/beans/BeanInfoEmbryo.java,
5815 java/awt/im/InputContext.java,
5816 javax/swing/tree/DefaultMutableTreeNode.java:
5817 Rename enum to e because enum is a keyword in Java 1.5.
5819 2004-05-30 Michael Koch <konqueror@gmx.de>
5821 * gnu/java/math/MPN.java,
5822 java/awt/geom/Arc2D.java:
5823 Fixed javadocs all over.
5825 2004-05-30 Michael Koch <konqueror@gmx.de>
5827 * java/awt/DefaultKeyboardFocusManager.java
5828 (dispatchEvent): Call method to get key event dispatchers.
5829 (dispatchKeyEvent): Call method to get key event post processors.
5830 * javax/swing/JComponent.java
5831 (listenerList): Made protected.
5832 * javax/swing/JOptionPane.java
5833 (message): Don't initialize.
5834 (JOptionPane): Set message text.
5835 * javax/swing/JPopupMenu.java
5836 (show): Fixed typo in argument name.
5837 * javax/swing/RepaintManager.java
5838 (paintDirtyRegions): Use public API of java.util.Map.
5839 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5840 (positionForMouseEvent): Removed redundant ';'.
5841 (continueDrag): Use method arguments.
5843 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
5845 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
5848 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
5850 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
5852 * gnu/gcj/RawDataManaged.java: New file.
5853 * java/lang/Thread.java (data): Declare as RawDataManaged.
5854 * java/lang/natThread.cc (init_native): Cast natThread data to
5855 RawDataManaged, not jobject.
5856 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
5857 * Makefile.in: Rebuilt.
5859 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
5861 * java/util/SimpleTimeZone.java: Reverting my last change until I
5862 can fix it properly.
5864 2004-05-27 Michael Koch <konqueror@gmx.de>
5866 * javax/swing/JPopupMenu.java
5867 (isVisible): Do not use visible directly.
5868 (setVisible): Likewise.
5869 * javax/swing/JWindow.java
5870 (JWindow): call accessible constructor.
5871 * javax/swing/RepaintManager.java
5872 (paintDirtyRegions): Use public methods to obtain iterator.
5874 2004-05-25 David Jee <djee@redhat.com>
5876 * java/awt/Container.java
5877 (remove): Set component's parent to null only after we removed the
5878 component from its parent's layout manager.
5880 2004-05-25 David Jee <djee@redhat.com>
5882 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5883 (GtkComponentPeer): Set bounds regardless of whether awtComponent
5885 * gnu/java/awt/peer/gtk/GtkListPeer.java
5886 (getSize): Change native method declaration.
5887 (minimumSize): Pass visible row count into getSize().
5888 (preferredSize): Likewise.
5889 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5890 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
5891 natural size. Use visible row count to determine the final height
5894 2004-05-21 Graydon Hoare <graydon@redhat.com>
5896 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5897 (setClip): Minor correction to order of operations.
5899 * javax/swing/JScrollPane.java: Extend sketchy implementation.
5900 * javax/swing/ScrollPaneLayout.java: Likewise.
5901 * javax/swing/JViewPort.java: Likewise.
5902 * javax/swing/ViewportLayout.java: Likewise.
5904 * javax/swing/JComponent.java: Rewrite.
5905 * javax/swing/RepaintManager.java: Likewise.
5907 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
5908 * javax/swing/JList.java
5909 (setSelectedIndices):
5910 (getSelectedIndices):
5911 (getSelectedValues): New functions.
5912 (getPreferredScrollableViewportSize): Return preferred size.
5913 (getScrollableUnitIncrement):
5914 (getScrollableBlockIncrement): Initial implementations.
5915 * javax/swing/JRootPane.java: Clean up slightly.
5920 (isValidateRoot): Add overrides from JComponent.
5921 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
5922 * javax/swing/UIManager.java (getDimension): Return the dimension.
5924 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
5925 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
5926 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5927 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
5928 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
5929 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
5930 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
5931 * javax/swing/plaf/basic/BasicRootPaneUI.java:
5932 Likewise, and set background.
5933 * javax/swing/plaf/basic/BasicListUI.java:
5934 Likewise, and improve a bit.
5935 * javax/swing/plaf/basic/BasicScrollBarUI.java:
5936 Likewise, and adjust calculations.
5937 * javax/swing/plaf/basic/BasicViewportUI.java:
5938 Likewise, and improve a bit.
5939 * javax/swing/plaf/basic/BasicLookAndFeel.java
5940 (Button.margin): Shrink.
5942 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
5943 Hack to set horizontal always, workaround pango.
5945 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
5946 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
5947 Synchronize more often, check cairo status after ops,
5948 handle changes to cairo pattern API, check for disposal.
5950 2004-05-21 Olga Rodimina <rodimina@redhat.com>
5952 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5953 (BasicMenuItemUI): Create propertyChangeListener.
5954 (getPath):Implemented.
5955 (installListeners): Add propertyChangeListener to menuItem.
5956 (uninstallListeners): Remove propertyChangeListener from menuItem.
5957 (update): Implemented.
5958 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
5959 (mouseEntered): Take insets of popup menu into account when
5960 calculating position of popup menu.
5962 2004-05-18 Olga Rodimina <rodimina@redhat.com>
5964 * Makefile.am: Added new file.
5965 * Makefile.in: Regenerate.
5966 * javax/swing/JMenuBar.java:
5967 Started implementation.
5968 * javax/swing/JPopupMenu.java:
5969 (setVisible): Fixed location of lightweight/mediumweight
5971 (show): Fixed location of PopupMenu.
5972 * javax/swing/plaf/basic/BasicMenuBarUI.java:
5973 New file. UI Delegate for JMenuBar.
5974 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
5975 (mouseEntered): Corrected position of the submenu.
5977 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
5979 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
5980 to _gtk_accel_group_attach.
5981 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
5984 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
5985 package access. Don't override setFont.
5986 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
5987 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
5988 gtkWidgetRequestFocus package access.
5989 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
5991 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
5992 Give gtkWidgetRequestFocus package access.
5993 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
5994 gtkWidgetRequestFocus package access. Don't override setFont.
5995 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
5997 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
5998 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
6000 (gtkSetFont): Likewise.
6001 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
6003 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6004 (gtkSetFont): Whitespace fix.
6006 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6007 (gtkWidgetSetUsize): Remove method.
6009 2004-05-18 David Jee <djee@redhat.com>
6011 * java/awt/image/MemoryImageSource.java
6012 (newPixels(int,int,int,int,boolean)): Set only the specified
6013 rectangle of pixels.
6014 (newPixels(byte[],ColorModel,int,int)): Implement.
6015 (newPixels(int[],ColorModel,int,int)): Implement.
6017 2004-05-18 Olga Rodimina <rodimina@redhat.com>
6019 * Makefile.am: Added new file.
6020 * Makefile.in: Regenerate.
6021 * javax/swing/JMenu.java: Started
6023 * javax/swing/JPopupMenu.java:
6024 (insert): If specified index is -1, then
6025 add component at the end.
6026 (isPopupTrigger): Reimplemented.
6027 (JPopupMenu.LightWeightPopup): setBounds
6028 of the lightWeightPopup before adding it
6030 (javax/swing/plaf/basic/BasicIconFactory.java):
6031 (getMenuArrowIcon): Implemented.
6032 * javax/swing/plaf/basic/BasicMenuItemUI.java:
6033 (getPreferredSize): Add size of the arrow icon
6034 if this menu item is instance of JMenu.
6035 (paintMenuItem): Paint arrow icon if this
6036 menu item is a submenu.
6037 * javax/swing/plaf/basic/BasicMenuUI.java:
6038 New File. UI Delegate for JMenu.
6040 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
6042 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
6043 Post KEY_TYPED events.
6044 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6045 (generates_key_typed_event): Remove function.
6047 2004-05-17 Olga Rodimina <rodimina@redhat.com>
6049 * javax/swing/JRootPane.java
6050 (JRootPane.RootLayout): Reimplemented to
6051 set bounds of contentPane and menuBar.
6052 (setJMenuBar): Add menu bar to the layered pane.
6053 (createLayeredPane): Set layout of layeredPane
6055 * javax/swing/JLayeredPane.java:
6056 (addImpl): Calculate index of the component in the
6057 layeredPane according to the specified position within
6060 2004-05-17 David Jee <djee@redhat.com>
6062 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6063 (setPixels): Change color model to the default model after
6065 * java/awt/image/MemoryImageSource.java
6066 (newPixels): Set only the specified rectangle of pixels.
6068 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
6070 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
6071 -l-java-beans -l-javax-accessibility -l-javax-swing.
6073 * java/awt/AWTEvent.java (toString): Print source's name rather
6074 than the source itself.
6076 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
6078 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
6080 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
6081 (gdk_color_to_java_color): New function.
6082 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
6084 2004-05-12 David Jee <djee@redhat.com>
6086 * java/awt/image/RGBImageFilter.java:
6087 Initialize origmodel as null.
6088 (makeColor): Fix pixel component order.
6089 (filterRGBPixels): Fix pixel iteration.
6090 (setPixels): Add extra checks for index color model. Convert pixels
6091 to default color model if necessary.
6092 (convertColorModelToDefault): New override method for byte pixels.
6093 (convertColorModelToDefault): For int pixels, fix pixel iteration.
6094 (makeColorbyDefaultCM): New override method for byte pixels.
6095 (makeColorbyDefaultCM): For int pixel, add color model as argument.
6096 (makeColor): Fix pixel component order.
6098 2004-05-11 Kim Ho <kho@redhat.com>
6100 * javax/swing/Box.java:
6101 Comment out more parts of Box.Filler.
6103 2004-05-11 Kim Ho <kho@redhat.com>
6105 * javax/swing/Box.java:
6106 Remove reference to AccessibleAWTComponent so
6109 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6111 * gnu/java/awt/peer/gtk/GtkListPeer.java,
6112 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
6113 implementation of list peer to use GtkTreeView instead of
6114 deprecated GtkCList.
6116 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
6118 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6119 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
6120 (handleEvent): Remove keyChar argument to
6121 gtkWidgetDispatchKeyEvent calls.
6122 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
6124 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6125 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
6126 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
6129 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
6131 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6132 (gtkWidgetRequestFocus): Mark protected.
6133 (GtkComponentPeer): Only set the peer's bounds if its component
6135 * java/awt/Component.java (static): Set the default keyboard
6137 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
6138 requestFocusInWindow(temporary)): Don't request focus if the
6139 component is not showing. Get tree lock before traversing
6140 component hierarchy.
6141 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
6142 Only set the global focus owner if it is not a Window.
6143 (processKeyEvent): Consume keystrokes associated with the focus
6144 traversal keystroke.
6145 (focusPreviousComponent, focusNextComponent, upFocusCycle,
6146 downFocusCycle): Call requestFocusInWindow instead of
6148 * java/awt/EventDispatchThread.java (run): Move setting of
6149 default keyboard focus manager to Component.java.
6150 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6151 (awt_keycode_to_keysym): New function.
6152 (gtkWidgetDispatchKeyEvent): Finish implementation.
6153 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6154 (pre_event_handler): Add FIXME comment.
6156 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
6157 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6158 (gtkWidgetRequestFocus): New method.
6159 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
6160 disable Tab and Shift-Tab keystrokes.
6161 (addNotify, appendText, insertText, replaceText): Simplify peer
6163 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
6164 (connectSignals): Remove connections to "commit" signals.
6165 Remove C++-style comments.
6167 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
6168 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6169 (handleEvent): Activate GTK button when the space bar key is
6171 (gtkActivate): New method.
6173 2004-05-06 David Jee <djee@redhat.com>
6175 * java/awt/image/CropImageFilter.java
6176 (setPixels): Implement for byte array pixels.
6177 * java/awt/image/ReplicateScaleFilter.java
6178 (setPixels): Implement for byte array pixels.
6179 (replicatePixels): Overload for byte array pixels.
6181 2004-05-06 Kim Ho <kho@redhat.com>
6183 * javax/swing/Box.java:
6184 (getAccessibleContext): Return an instance of the
6187 2004-05-05 David Jee <djee@redhat.com>
6189 * gnu/java/awt/peer/gtk/GdkGraphics.java
6190 (drawImage): When component is null, use SystemColor.window as
6191 the default bgcolor.
6192 * gnu/java/awt/peer/gtk/GtkImage.java
6193 (setPixels): We can avoid iterating through the pixel rows only
6195 * java/awt/Image.java
6196 (getScaledInstance): Partially implement.
6197 * java/awt/image/CropImageFilter.java
6198 (setProperties): Fix "filter" property.
6199 (setPixels): Implement.
6200 * java/awt/image/ReplicateScaleFilter.java
6201 (setDimensions): Use scaled dimensions.
6202 (setPixels): Implement.
6203 (replicatePixels): New method.
6205 2004-05-05 David Jee <djee@redhat.com>
6207 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6208 (convertPixels): If either pixels or model is null, return null.
6209 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
6210 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
6211 is null, do nothing and return.
6213 2004-05-03 Kim Ho <kho@redhat.com>
6215 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
6216 (getGraphics): Like GtkFramePeer, the Graphics
6217 object needs to be translate to account for
6219 (postMouseEvent): New method. Account for
6221 (postExposeEvent): ditto.
6222 * javax/swing/Box.java: Stubbed.
6223 * javax/swing/JDialog.java: Ran through jalopy
6225 (JDialog): Call SwingUtilities' getOwnerFrame
6227 (setLayout): Check isRootPaneCheckingEnabled
6228 * javax/swing/JOptionPane.java: Re-implemented.
6229 * javax/swing/SwingUtilities.java:
6230 (getOwnerFrame): Static method to grab a default
6231 owner frame for Dialogs that don't specify owners.
6232 * javax/swing/event/SwingPropertyChangeSupport.java:
6233 (firePropertyChange): Fix early exit condition.
6234 * javax/swing/plaf/basic/BasicLabelUI.java:
6235 (paint): Avoid painting text if it is null
6237 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
6240 2004-05-03 Olga Rodimina <rodimina@redhat.com>
6242 * Makefile.am: Added new file.
6243 * Makefile.in: Regenerate.
6244 * javax/swing/JPopupMenu.java:
6245 Started implementation.
6246 * javax/swing/JWindow.java
6247 (JWindow): call super() if parent for window
6249 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
6250 New File. UI Delegate for JPopupMenu.
6252 2004-04-30 Olga Rodimina <rodimina@redhat.com>
6254 * javax/swing/JApplet.java: Indicated that JApplet
6255 implements RootPaneContainer and made method of this
6257 * javax/swing/JFrame.java: Ditto.
6258 * javax/swing/JWindow.java: Ditto.
6260 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
6262 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6263 (nativeSetBounds): Call gdk_window_move in addition to
6266 * java/applet/Applet.java (preferredSize): Call parent's
6267 preferredSize if the applet stub is null.
6268 (minimumSize): Likewise for parent's minimumSize.
6270 2004-04-27 Olga Rodimina <rodimina@redhat.com>
6272 * javax/swing/JMenuItem.java
6273 (createActionPropertyChangeListener): Implemented.
6274 (processMouseEvent): Ditto.
6275 (fireMenuDragMouseEntered): Ditto.
6276 (fireMenuDragMouseExited): Ditto.
6277 (fireMenuDragMouseDragged): Ditto.
6278 (fireMenuDragMouseReleased): Ditto.
6279 (menuSelectionChanged): Ditto.
6280 (getSubElements): Ditto.
6281 (getComponent): Ditto.
6282 (addMenuDragMouseListener): Ditto.
6283 (removeMenuDragMouseListener):Ditto.
6284 (addMenuKeyListener): Ditto.
6285 (removeMenuKeyListener): Ditto.
6286 * javax/swing/plaf/basic/BasicMenuItemUI.java
6287 (doClick): Imlemented.
6288 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
6289 Don't handle mouse events here. Pass them to
6290 MenuSelectionManager.
6292 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6293 Used correct version of jalopy configuration
6294 file to fix style in the files below.
6296 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6298 * javax/swing/JCheckBoxMenuItem.java:
6299 Fixed style and removed unnecessary comments.
6300 * javax/swing/JMenuItem.java: Ditto.
6301 * javax/swing/JRadioButtonMenuItem.java: Ditto.
6302 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
6303 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
6304 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
6306 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
6308 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
6311 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
6313 * java/awt/ContainerOrderFocusTraversalPolicy.java
6314 (getComponentAfter): Start from current component and work up
6315 the component hierarchy until an acceptable component is found.
6316 Synchronize on tree lock.
6317 (getComponentBefore): Likewise.
6319 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
6321 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
6322 focus-related debugging messages.
6323 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
6324 * java/awt/EventDispatchThread.java: Likewise.
6325 * java/awt/KeyboardFocusManager.java: Likewise.
6326 * java/awt/Window.java: Likewise.
6327 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
6328 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6330 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
6331 new C++-style comments to C-style comments.
6332 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6334 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
6335 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6336 (handleEvent): Dispatch key press and key release events to
6338 (requestFocus): Post a FOCUS_GAINED event to the event queue.
6339 (gtkWidgetRequestFocus): New method.
6340 (gtkWidgetDispatchKeyEvent): Likewise.
6341 * java/awt/Component.java (requestFocus, requestFocus(boolean),
6342 requestFocusInWindow, requestFocusInWindow(boolean),
6343 getFocusCycleRootAncestor, nextFocus, transferFocus,
6344 transferFocusBackward, transferFocusUpCycle, hasFocus,
6345 isFocusOwner): Implement and document focus-handling methods.
6346 (setFocusTraversalKeys): Inherit focus traversal keys when
6347 keystrokes argument is null. Fix focus-handling documentation
6349 * java/awt/Container.java (setFocusTraversalKeys,
6350 getFocusTraversalKeys, areFocusTraversalKeysSet,
6351 isFocusCycleRoot, setFocusTraversalPolicy,
6352 getFocusTraversalPolicy, isFocusTraversalPolicySet,
6353 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
6354 Implement and document focus-handling methods.
6355 (transferFocusBackward): Remove method.
6356 (readObject, writeObject): Implement and document serialization
6358 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
6360 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
6362 * java/awt/DefaultKeyboardFocusManager.java: Implement and
6364 * java/awt/EventDispatchThread.java (run): Set default keyboard
6365 focus manager. Attempt to dispatch each event to the keyboard
6366 focus manager before normal dispatch.
6367 * java/awt/KeyboardFocusManager.java: Implement and partially
6369 * java/awt/Window.java (Window): Set focusCycleRoot to true.
6370 (show): Focus initial component when window is shown for the
6372 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6373 (pre_event_handler): Replace complex key press and key release
6374 logic with simple callbacks into GtkComponentPeer.
6375 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
6377 2004-04-21 Olga Rodimina <rodimina@redhat.com>
6379 * javax/swing/MenuSelectionManager.java
6380 (componentForPoint): Added new method.
6381 (defaultManager): New Method. Implemented.
6382 (getSelectedPath): Ditto.
6383 (isComponentPartOfCurrentMenu): Ditto.
6384 (processKeyEvent): Added new method.
6385 (processMouseEvent): New Method. Implemented.
6386 (setSelectedPath): Ditto.
6389 2004-04-19 Kim Ho <kho@redhat.com>
6391 * java/awt/Container.java:
6392 (remove): Set the component's parent to null.
6393 (getComponentAt): Implement.
6394 * javax/swing/JComponent.java:
6395 (JComponent): Initialize defaultLocale
6396 (getDefaultLocale): Implement.
6397 (setDefaultLocale): ditto.
6398 * javax/swing/JSlider.java:
6399 (JSlider): Fix calculation of value.
6400 * javax/swing/JSplitPane.java: Implement.
6401 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6402 Change SplitPane's default divider size.
6403 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6404 (paint): Remove unused code.
6405 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
6406 Added comments and ran through jalopy.
6407 (setBasicSplitPaneUI): Get reference to hidden divider
6408 and set up one touch buttons if necessary.
6409 (setBorder): Fire propertyChangeEvent only if
6410 borders are different.
6411 (getPreferredSize): Defer to layout manager.
6412 (propertyChange): Implement.
6413 (oneTouchExpandableChanged): ditto.
6414 (createLeftOneTouchButton): Use BasicArrowButton.
6415 (createRightOneTouchButton): ditto.
6416 (moveDividerTo): New method. Moves the divider
6417 to a set location based on the last divider location.
6418 (BasicSplitPaneDivider::MouseHandler): Implement.
6419 (BasicSplitPaneDivider::OneTouchButton): Removed.
6420 (BasicSplitPaneDivider::DragController): Implement.
6421 (BasicSplitPaneDivider::VerticalDragController):
6423 (BasicSplitPaneDivider::DividerLayout): ditto.
6424 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
6425 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
6426 (calculateLayoutInfo): Don't show component if it's
6428 (paintTab): Fix title paint logic.
6430 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
6433 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
6434 (setStartRule,setEndRule): Don't take abs of day number.
6435 (getOffset): Clarify docs. Add argument checks.
6436 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
6437 (equals,hasSameRules,toString,readObject): Use startTimeMode and
6439 * testsuite/libjava.mauve/xfails
6440 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
6442 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
6444 Layout interfaces during preparation, not initialization.
6445 * java/lang/natClass.cc (initializeClass): Move
6446 _Jv_LayoutInterfaceMethods call...
6447 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
6449 2004-05-19 Anthony Green <green@localhost.localdomain>
6451 * Makefile.am (awt_java_source_files): Remove javax.rmi and
6453 * Makefile.in: Rebuilt.
6454 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
6455 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
6456 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
6457 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
6458 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
6459 gnu/javax/rmi/CORBA/DelegateFactory.java,
6460 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
6461 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
6462 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
6463 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
6464 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
6465 gnu/javax/rmi/PortableServer.java: Remove files.
6467 2004-05-19 Anthony Green <green@redhat.com>
6469 * Makefile.am: Define JAVA_EXT_DIRS.
6470 * Makefile.in: Rebuilt.
6471 * java/lang/natRuntime.cc (insertSystemProperties): Set
6472 java.ext.dirs property.
6474 2004-05-16 Mark Wielaard <mark@klomp.org>
6476 * java/io/Writer.java (Writer(Object)): Check for null lock object.
6478 2004-05-15 Mark Wielaard <mark@klomp.org>
6480 * doc/cni.sgml: Removed, merged into gcj.texi.
6482 2004-05-15 Mark Wielaard <mark@klomp.org>
6484 * Makefile.am (ordinary_java_source_files): Add new javax.print
6486 * Makefile.in: Regenerated.
6488 2004-05-15 Michael Koch <konqueror@gmx.de>
6490 * javax/print/attribute/standard/DateTimeAtCompleted.java,
6491 javax/print/attribute/standard/DateTimeAtCreation.java,
6492 javax/print/attribute/standard/DateTimeAtProcessing.java,
6493 javax/print/attribute/standard/DocumentName.java,
6494 javax/print/attribute/standard/JobHoldUntil.java,
6495 javax/print/attribute/standard/JobImpressionsCompleted.java,
6496 javax/print/attribute/standard/JobMessageFromOperator.java,
6497 javax/print/attribute/standard/JobName.java,
6498 javax/print/attribute/standard/JobOriginatingUserName.java,
6499 javax/print/attribute/standard/JobPriority.java,
6500 javax/print/attribute/standard/JobPrioritySupported.java,
6501 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6502 javax/print/attribute/standard/OutputDeviceAssigned.java,
6503 javax/print/attribute/standard/PrinterInfo.java,
6504 javax/print/attribute/standard/PrinterLocation.java,
6505 javax/print/attribute/standard/PrinterMakeAndModel.java,
6506 javax/print/attribute/standard/PrinterMessageFromOperator.java,
6507 javax/print/attribute/standard/PrinterName.java,
6508 javax/print/attribute/standard/QueuedJobCount.java,
6509 javax/print/attribute/standard/RequestingUserName.java:
6510 Fixed javadocs all over.
6512 2004-05-15 Michael Koch <konqueror@gmx.de>
6514 * javax/print/DocFlavor.java,
6515 javax/print/attribute/standard/ColorSupported.java,
6516 javax/print/attribute/standard/Compression.java,
6517 javax/print/attribute/standard/CopiesSupported.java,
6518 javax/print/attribute/standard/Fidelity.java,
6519 javax/print/attribute/standard/Finishings.java,
6520 javax/print/attribute/standard/JobImpressionsSupported.java,
6521 javax/print/attribute/standard/JobKOctetsSupported.java,
6522 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6523 javax/print/attribute/standard/JobSheets.java,
6524 javax/print/attribute/standard/JobState.java,
6525 javax/print/attribute/standard/JobStateReason.java,
6526 javax/print/attribute/standard/JobStateReasons.java,
6527 javax/print/attribute/standard/Media.java,
6528 javax/print/attribute/standard/MediaSizeName.java,
6529 javax/print/attribute/standard/MultipleDocumentHandling.java,
6530 javax/print/attribute/standard/NumberUpSupported.java,
6531 javax/print/attribute/standard/OrientationRequested.java,
6532 javax/print/attribute/standard/PDLOverrideSupported.java,
6533 javax/print/attribute/standard/PageRanges.java,
6534 javax/print/attribute/standard/PresentationDirection.java,
6535 javax/print/attribute/standard/PrintQuality.java,
6536 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6537 javax/print/attribute/standard/PrinterMoreInfo.java,
6538 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6539 javax/print/attribute/standard/PrinterResolution.java,
6540 javax/print/attribute/standard/PrinterState.java,
6541 javax/print/attribute/standard/PrinterStateReason.java,
6542 javax/print/attribute/standard/PrinterStateReasons.java,
6543 javax/print/attribute/standard/PrinterURI.java,
6544 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6545 javax/print/attribute/standard/Severity.java,
6546 javax/print/attribute/standard/SheetCollate.java,
6547 javax/print/attribute/standard/Sides.java:
6548 Added serialVersionUID and removed final keyword where it doenst
6551 2004-05-15 Michael Koch <konqueror@gmx.de>
6553 * javax/print/PrintServiceLookup.java: New file.
6555 2004-05-15 Michael Koch <konqueror@gmx.de>
6557 * javax/print/DocFlavor.java:
6558 Implemented all flavor classes.
6560 2004-05-15 Michael Koch <konqueror@gmx.de>
6562 * javax/print/attribute/standard/ColorSupported.java,
6563 javax/print/attribute/standard/Compression.java,
6564 javax/print/attribute/standard/CopiesSupported.java,
6565 javax/print/attribute/standard/Fidelity.java,
6566 javax/print/attribute/standard/Finishings.java,
6567 javax/print/attribute/standard/JobImpressionsSupported.java,
6568 javax/print/attribute/standard/JobKOctetsSupported.java,
6569 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6570 javax/print/attribute/standard/JobSheets.java,
6571 javax/print/attribute/standard/JobState.java,
6572 javax/print/attribute/standard/JobStateReason.java,
6573 javax/print/attribute/standard/JobStateReasons.java,
6574 javax/print/attribute/standard/Media.java,
6575 javax/print/attribute/standard/MediaSizeName.java,
6576 javax/print/attribute/standard/MultipleDocumentHandling.java,
6577 javax/print/attribute/standard/NumberUpSupported.java,
6578 javax/print/attribute/standard/OrientationRequested.java,
6579 javax/print/attribute/standard/PDLOverrideSupported.java,
6580 javax/print/attribute/standard/PageRanges.java,
6581 javax/print/attribute/standard/PresentationDirection.java,
6582 javax/print/attribute/standard/PrintQuality.java,
6583 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6584 javax/print/attribute/standard/PrinterMoreInfo.java,
6585 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6586 javax/print/attribute/standard/PrinterResolution.java,
6587 javax/print/attribute/standard/PrinterState.java,
6588 javax/print/attribute/standard/PrinterStateReason.java,
6589 javax/print/attribute/standard/PrinterStateReasons.java,
6590 javax/print/attribute/standard/PrinterURI.java,
6591 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6592 javax/print/attribute/standard/Severity.java,
6593 javax/print/attribute/standard/SheetCollate.java,
6594 javax/print/attribute/standard/Sides.java: New files.
6596 2004-05-15 Michael Koch <konqueror@gmx.de>
6598 * javax/print/Doc.java
6599 (getPrintData): Throws IOException.
6600 (getReaderForText): Likewise.
6601 (getStreamForBytes): Likewise.
6602 * javax/print/DocFlavor.java:
6603 Fixed filename in copyright.
6604 (serialVersionUID): New field.
6605 * javax/print/ServiceUIFactory.java:
6606 Made all constants final.
6607 * javax/print/AttributeException.java
6608 javax/print/MultiDoc.java
6609 javax/print/MultiDocPrintJob.java
6610 javax/print/MultiDocPrintService.java
6611 javax/print/StreamPrintService.java
6612 javax/print/URIException.java: New files.
6613 * javax/print/Makefile.am
6614 (EXTRA_DIST): Added all new files.
6616 2004-05-15 Michael Koch <konqueror@gmx.de>
6618 * javax/print/attribute/standard/Copies.java,
6619 javax/print/attribute/standard/DateTimeAtCompleted.java,
6620 javax/print/attribute/standard/DateTimeAtCreation.java,
6621 javax/print/attribute/standard/DateTimeAtProcessing.java,
6622 javax/print/attribute/standard/DocumentName.java,
6623 javax/print/attribute/standard/JobHoldUntil.java,
6624 javax/print/attribute/standard/JobImpressions.java,
6625 javax/print/attribute/standard/JobImpressionsCompleted.java,
6626 javax/print/attribute/standard/JobKOctets.java,
6627 javax/print/attribute/standard/JobKOctetsProcessed.java,
6628 javax/print/attribute/standard/JobMediaSheets.java,
6629 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
6630 javax/print/attribute/standard/JobMessageFromOperator.java,
6631 javax/print/attribute/standard/JobName.java,
6632 javax/print/attribute/standard/JobOriginatingUserName.java,
6633 javax/print/attribute/standard/JobPriority.java,
6634 javax/print/attribute/standard/JobPrioritySupported.java,
6635 javax/print/attribute/standard/NumberOfDocuments.java,
6636 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6637 javax/print/attribute/standard/NumberUp.java,
6638 javax/print/attribute/standard/OutputDeviceAssigned.java,
6639 javax/print/attribute/standard/PagesPerMinute.java,
6640 javax/print/attribute/standard/PagesPerMinuteColor.java:
6641 Fixed @return tag all over.
6643 2004-05-15 Michael Koch <konqueror@gmx.de>
6645 * javax/print/attribute/AttributeSetUtilities.java
6646 (verifyCategoryForValue): Fixed typo in javadoc.
6647 * javax/print/attribute/HashAttributeSet.java
6648 (containsKey): Fixed @return tag.
6649 (comtainsValue): Likewise.
6651 * javax/print/attribute/IntegerSyntax.java
6653 * javax/print/attribute/ResolutionSyntax.java
6655 (getCrossFeedResolution): Removed unused code.
6656 (getFeedResolution): Likewise.
6657 * javax/print/attribute/SetOfIntegerSyntax.java
6658 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
6659 (equals): Fixed @return tag.
6660 * javax/print/attribute/TextSyntax.java
6661 (TextSyntax): Take locale into account.
6662 (hashCode): Better implementation.
6664 2004-05-15 Michael Koch <konqueror@gmx.de>
6666 * javax/print/CancelablePrintJob.java,
6667 javax/print/Doc.java,
6668 javax/print/DocFlavor.java,
6669 javax/print/DocPrintJob.java,
6670 javax/print/FlavorException.java,
6671 javax/print/PrintException.java,
6672 javax/print/PrintService.java,
6673 javax/print/ServiceUIFactory.java: New files.
6675 2004-05-15 Mark Wielaard <mark@klomp.org>
6677 * gnu/regexp/CharIndexedReader.java: Removed.
6678 * gnu/regexp/REFilterReader.java: Likewise.
6679 * gnu/regexp/RETokenLookAhead.java: Likewise.
6680 * Makefile.am (ordinary_java_source_files): Remove above classes.
6681 * Makefile.in: Regenerated.
6683 2004-05-14 Tom Tromey <tromey@redhat.com>
6685 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
6686 not `XGraphicsConfiguration.XOffScreenImage'.
6688 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
6690 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
6692 2004-05-14 Steven Augart <augart@watson.ibm.com>
6694 * include/jni.h (_Jv_func): Removed.
6695 (struct JNINativeInterface): Use `void *' for reserved slots.
6696 (struct JNIInvokeInterface): Likewise.
6698 2004-05-11 Michael Koch <konqueror@gmx.de>
6700 * gnu/java/net/natPlainSocketImplPosix.cc
6701 (read): Fixed typo in expression.
6703 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
6705 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
6706 ld_library_additions. Adjust all calls to libjava_invoke to match
6709 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
6710 path to cxxflagslist.
6711 Pass path of libstdc++ to libjava_invoke.
6713 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
6714 libjava_invoke arguments.
6716 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
6718 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
6721 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
6723 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
6724 main binary against the JNI shared library.
6726 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6728 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
6729 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
6730 (SimpleTimeZone): Tweak docs. Add new variation.
6731 (setStartRule,setEndRule): Add new variations. Use
6732 startTimeMode and endTimeMode.
6734 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6736 * java/util/Calendar.java (getActualMinimum,
6737 getActualMaximum): Remove abstract. Implement.
6739 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6741 Run the jni tests using the interpreter.
6742 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
6743 options_cxx to shared lib compile command.
6744 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
6745 they are used to link the shared lib, not the main binary.
6746 Use libjava_invoke to run gij.
6748 2004-05-06 Michael Koch <konqueror@gmx.de>
6750 * java/util/logging/Level.java
6751 (parse): Use == instead of String.equals().
6753 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6755 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
6756 verify_field_signature and verify_method_signature, not
6757 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
6758 (_Jv_ClassReader::handleField): Likewise.
6759 (_Jv_ClassReader::handleMethod): Likewise.
6761 2004-05-06 Michael Koch <konqueror@gmx.de>
6763 * javax/swing/table/TableColumn.java:
6766 2004-05-06 Michael Koch <konqueror@gmx.de>
6768 * javax/imageio/spi/ImageReaderWriterSpi.java
6769 (ImageReaderWriterSpi): Made it public.
6770 * javax/imageio/stream/ImageInputStream.java:
6773 2004-05-06 Michael Koch <konqueror@gmx.de>
6775 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6778 2004-05-06 Michael Koch <konqueror@gmx.de>
6780 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
6781 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
6783 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
6784 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
6785 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
6786 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
6787 their own source file.
6788 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6789 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
6790 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
6791 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
6792 (create): Define variable on top of function.
6793 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
6794 (menu_pos): Prototyped.
6795 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6796 (setTitle): Removed.
6797 * jni/gtk-peer/gthread-jni.c
6798 (gdk_threads_wake): Removed.
6799 * Makefile.am (gtk_c_source_files): Added new files
6800 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
6801 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
6802 * Makefile.in: Regenerated.
6804 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
6806 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
6809 2004-05-05 Mark Wielaard <mark@klomp.org>
6811 * javax/swing/AbstractButton.java: Replace special HTML entities with
6813 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
6814 * javax/swing/DefaultButtonModel.java: Likewise.
6815 * javax/swing/DefaultListModel.java: Likewise.
6816 * javax/swing/JList.java: Likewise.
6817 * javax/swing/JSlider.java: Likewise.
6818 * javax/swing/ListModel.java: Likewise.
6819 * javax/swing/Popup.java: Likewise.
6820 * javax/swing/SwingUtilities.java: Likewise.
6822 2004-05-05 Michael Koch <konqueror@gmx.de>
6824 * javax/swing/AbstractButton.java,
6825 javax/swing/ActionMap.java,
6826 javax/swing/DefaultButtonModel.java,
6827 javax/swing/DefaultListModel.java,
6828 javax/swing/ImageIcon.java,
6829 javax/swing/JComboBox.java,
6830 javax/swing/JComponent.java,
6831 javax/swing/JFrame.java,
6832 javax/swing/JInternalFrame.java,
6833 javax/swing/JMenuBar.java,
6834 javax/swing/JMenuItem.java,
6835 javax/swing/JOptionPane.java,
6836 javax/swing/JProgressBar.java,
6837 javax/swing/JRootPane.java,
6838 javax/swing/JScrollBar.java,
6839 javax/swing/JScrollPane.java,
6840 javax/swing/JSeparator.java,
6841 javax/swing/JSlider.java,
6842 javax/swing/JTabbedPane.java,
6843 javax/swing/JTable.java,
6844 javax/swing/JTextField.java,
6845 javax/swing/JToolBar.java,
6846 javax/swing/JToolTip.java,
6847 javax/swing/JTree.java,
6848 javax/swing/JViewport.java,
6849 javax/swing/JWindow.java,
6850 javax/swing/KeyStroke.java,
6851 javax/swing/LookAndFeel.java,
6852 javax/swing/SwingUtilities.java,
6853 javax/swing/Timer.java,
6854 javax/swing/ToolTipManager.java,
6855 javax/swing/UIDefaults.java,
6856 javax/swing/border/TitledBorder.java,
6857 javax/swing/filechooser/FileSystemView.java,
6858 javax/swing/plaf/basic/BasicButtonListener.java,
6859 javax/swing/plaf/basic/BasicButtonUI.java,
6860 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
6861 javax/swing/plaf/basic/BasicGraphicsUtils.java,
6862 javax/swing/plaf/basic/BasicLabelUI.java,
6863 javax/swing/plaf/basic/BasicMenuItemUI.java,
6864 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
6865 javax/swing/plaf/basic/BasicRootPaneUI.java,
6866 javax/swing/plaf/basic/BasicScrollBarUI.java,
6867 javax/swing/plaf/basic/BasicScrollPaneUI.java,
6868 javax/swing/plaf/basic/BasicSliderUI.java,
6869 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
6870 javax/swing/plaf/basic/BasicToggleButtonUI.java,
6871 javax/swing/table/JTableHeader.java,
6872 javax/swing/text/AbstractDocument.java,
6873 javax/swing/text/DefaultCaret.java,
6874 javax/swing/text/StyledEditorKit.java,
6875 javax/swing/tree/DefaultTreeCellEditor.java:
6878 2004-05-05 Michael Koch <konqueror@gmx.de>
6880 * java/util/prefs/AbstractPreferences.java
6881 (AbstractPreferences): Added parenthesis for clarity.
6882 Closes classpath bug #7940.
6884 2004-05-05 Tom Tromey <tromey@redhat.com>
6886 * javax/naming/CompoundName.java (endsWith): Look at correct
6887 element of source name.
6889 2004-05-05 Mark Wielaard <mark@klomp.org>
6891 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
6892 * java/util/HashMap.java (rehash): Add entry at start of bucket.
6894 2004-05-05 Tom Tromey <tromey@redhat.com>
6896 * java/io/BufferedReader.java (skip): Removed unused
6899 2004-05-05 Michael Koch <konqueror@gmx.de>
6901 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
6903 2004-05-05 Dalibor Topic <robilad@kaffe.org>
6905 * java/text/AttributedString.java,
6906 java/text/AttributedStringIterator.java,
6907 java/text/Collator.java,
6908 java/text/DecimalFormatSymbols.java,
6909 java/text/NumberFormat.java,
6910 java/text/RuleBasedCollator.java:
6913 2004-05-05 Tom Tromey <tromey@redhat.com>
6915 * java/text/Format.java: Cleaned up imports.
6916 * java/text/DecimalFormat.java: Cleaned up imports.
6917 * java/security/SecureRandom.java: Cleaned up imports.
6918 (SecureRandom): Removed unused variable.
6919 * java/security/UnresolvedPermission.java: Cleaned up imports.
6920 * java/util/Date.java (parse): Removed unused variable.
6921 * java/util/ResourceBundle.java: Cleaned up imports.
6922 (getBundle): Removed unused variable.
6923 (tryBundle): Likewise.
6924 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
6926 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6928 * java/text/SimpleDateFormat.java:
6929 (formatWithAttribute): New method. It implements
6930 the formatting process with attributes.
6931 (format): Use formatWithAttribute.
6932 (formatToCharacterIterator): New method. Use
6933 formatWithAttribute.
6935 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6937 * java/text/MessageFormat.java:
6938 (class Field): New class.
6939 (formatToCharacterIterator): New method.
6940 (format): Use formatInternal now.
6941 (formatInternal): New method. String formatter should
6942 be done here (with attributes). Attributes merging supported.
6943 (parse): More documentation.
6944 (getFormatsByArgumentIndex): New method.
6945 (setFormatByArgumentIndex): New method.
6946 (setFormatsByArgumentIndex): New method.
6948 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6950 * java/text/DecimalFormat.java
6951 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
6952 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
6953 (parse): Fixed handling of exponentiation notation and grouping.
6955 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6957 * java/text/DecimalFormat.java
6958 (scanFix): Build attribute array. Fixed error reporting.
6959 (applyPatternWithSymbols): Store attributes for the prefix and
6961 (formatInternal): New method. Changed the way the string is
6962 computed. Implemented attributes. Cleant up rounding in
6963 exponential notation.
6964 (format): Use formatInternal.
6965 (formatToCharacterIterator): New method.
6966 (exponentRound, negativePrefixRanges, positivePrefixRanges,
6967 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
6968 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
6971 2004-05-04 Dalibor Topic <robilad@kaffe.org>
6973 * java/security/interfaces/DSAKeyPairGenerator.java,
6974 java/security/interfaces/DSAPrivateKey.java,
6975 java/security/interfaces/DSAPublicKey.java,
6976 java/security/interfaces/RSAPrivateKey.java,
6977 java/security/interfaces/RSAPublicKey.java:
6980 2004-05-04 Michael Koch <konqueror@gmx.de>
6982 * java/nio/ByteBuffer.java,
6983 java/nio/CharBuffer.java,
6984 java/nio/DoubleBuffer.java,
6985 java/nio/FloatBuffer.java,
6986 java/nio/IntBuffer.java,
6987 java/nio/LongBuffer.java,
6988 java/nio/ShortBuffer.java:
6989 (compareTo): Fixed bogus implementation in all buffer classes.
6991 2004-05-04 Ingo Proetel <proetel@aicas.com>
6993 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
6994 32 bit pixels not 8 bit pixels.
6995 (isCompatibleRaster): Added javadoc comment.
6997 2004-05-04 Ingo Proetel <proetel@aicas.com>
6999 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
7002 2004-05-04 Ingo Proetel <proetel@aicas.com>
7004 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
7005 (getColorModel): Return the actual color model.
7006 (getRaster): Implemented.
7007 (ColorRaster): New inner class.
7008 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
7010 * java/awt/Color.java (<init>): Make exception more verbose.
7011 (createContext): Use ColorModel when creating a PaintContext.
7013 2004-05-04 Michael Koch <konqueror@gmx.de>
7015 * gnu/java/text/CharacterBreakIterator.java
7016 (previous): Removed unused variable.
7018 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
7020 * gnu/java/text/FormatBuffer.java,
7021 gnu/java/text/AttributedFormatBuffer.java,
7022 gnu/java/text/StringFormatBuffer.java: New classes to implement
7023 attributed iterators in java.text.
7024 * gnu/java/text/FormatCharacterIterator.java: Moved
7025 from java/text as it is an internal class.
7026 * java/text/FormatCharacterIterator.java: Removed.
7027 * java/text/Format.java:
7028 Import gnu.java.text.FormatCharacterIterator.
7029 * Makefile.am (java_source_files): Added new files.
7030 * Makefile.in: Regenerated.
7033 2004-05-04 Mark Wielaard <mark@klomp.org>
7035 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
7037 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
7039 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
7040 * Makefile.in: Rebuilt.
7042 2004-05-03 Mark Wielaard <mark@klomp.org>
7044 * gnu/java/security/der/DERReader.java: Call static methods staticly.
7045 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
7047 (set(String, String, int, String, String, String, String, String)):
7048 Assign this.file to path or path + "?" + query.
7049 * java/util/Arrays.java: Call static methods staticly.
7050 * java/util/zip/ZipEntry.java: Likewise.
7051 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
7052 dir to this.direction.
7053 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
7054 Assign static field only once.
7055 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
7057 2004-05-03 Mark Wielaard <mark@klomp.org>
7059 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
7060 unused variables hScrollbarHeight and vScrollbarWidth.
7061 (preferredSize): Likewise.
7062 * gnu/java/security/provider/DSAParameters.java (engineToString):
7063 Removed unused call to System.getProperty("line.seperator");
7064 * java/security/Security.java (loadProviders): Return result.
7066 2004-05-03 Tom Tromey <tromey@redhat.com>
7068 * java/net/URLStreamHandler.java (toExternalForm): Removed
7071 * java/math/BigDecimal.java (divide): Removed unused variable.
7072 * java/lang/Throwable.java: Cleaned up imports.
7073 * java/lang/ClassLoader.java: Cleaned up imports.
7074 * java/io/FilePermission.java (implies): Removed unused
7076 * java/awt/TextComponent.java: Removed unused import.
7077 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
7078 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
7079 * gnu/java/text/WordBreakIterator.java: Removed unused import.
7080 * gnu/java/text/SentenceBreakIterator.java: Removed unused
7082 * gnu/java/text/LineBreakIterator.java: Removed unused import.
7083 * gnu/java/text/CharacterBreakIterator.java: Removed
7085 * gnu/java/security/provider/DSAKeyPairGenerator.java:
7087 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
7088 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
7090 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
7091 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
7092 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
7093 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
7094 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
7095 (lookupProviders): Removed unused variable.
7096 (loadNextServiceProvider): Likewise.
7097 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
7099 2004-05-03 Michael Koch <konqueror@gmx.de>
7101 Fixes PR libgcj/14695:
7102 * java/net/NetworkInterface.java
7103 (getByName): Return null when no interface was found.
7105 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
7106 Tom Tromey <tromey@redhat.com>
7108 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
7109 additional option "-Wmissing-prototypes" for compiling C sources.
7110 Print actual filename for pass/fail rather than $name.c.
7111 * testsuite/libjava.jni/PR15133.java: New testcase file.
7112 * testsuite/libjava.jni/PR15133.c: Likewise.
7113 * testsuite/libjava.jni/PR15133.out: Likewise.
7115 2004-04-30 Roger Sayle <roger@eyesopen.com>
7117 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
7120 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
7122 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
7123 limit the maximum heap size to avoid unnecessary thrashing.
7125 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
7127 * java/text/CollationElementIterator.java (reset): Reset
7128 lookahead variables.
7130 2004-04-23 Mark Wielaard <mark@klomp.org>
7132 * jni/classpath/jcl.c: Changed C++ comments into C comments.
7134 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7136 * java/sql/DriverManager.java:
7139 2004-04-23 Michael Koch <konqueror@gmx.de>
7142 (hashcode): Don't initialize with default value explicitely.
7143 (getContent): Removed redundant "final" keyword.
7144 (openStream): Likewise.
7145 (getURLStreamHandler): Fixed coding style.
7146 * java/net/URLConnection.java
7147 (defaultAllowUserInteraction): Don't initialize with default value
7149 (connected): Likewise.
7150 (doOutput): Likewise.
7151 (ifModifiedSince): Likewise.
7152 (dateformats_initialized): Likewise.
7153 (setURLStreamHander): Use StreamTokenizer where it belongs to.
7155 2004-04-23 Michael Koch <konqueror@gmx.de>
7157 * gnu/java/nio/channels/FileChannelImpl.java
7158 (SET, CUR): Unused, removed.
7159 (read): Implement here directly.
7160 (implRead): Removed.
7161 (write): Implement here directly.
7162 (implWrite): Removed.
7164 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7166 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
7167 javax/rmi/CORBA/Stub.java,
7168 javax/rmi/CORBA/Util.java,
7169 javax/rmi/CORBA/ValueHandler.java,
7170 javax/rmi/CORBA/ValueHandler.java,
7171 javax/rmi/PortableRemoteObject.java:
7174 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7176 * java/util/jar/JarFile.java,
7177 java/util/jar/JarInputStream.java,
7178 java/util/jar/JarOutputStream.java,
7179 java/util/jar/Manifest.java:
7182 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7184 * java/util/ArrayList.java,
7185 java/util/Calendar.java,
7186 java/util/Currency.java,
7187 java/util/HashMap.java,
7188 java/util/HashSet.java,
7189 java/util/Hashtable.java,
7190 java/util/LinkedList.java,
7191 java/util/Properties.java,
7192 java/util/PropertyPermission.java,
7193 java/util/TimeZone.java,
7194 java/util/TreeMap.java,
7195 java/util/TreeSet.java,
7196 java/util/Vector.java,
7197 java/util/WeakHashMap.java:
7200 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7202 * java/util/logging/FileHandler.java,
7203 java/util/logging/Formatter.java,
7204 java/util/logging/Handler.java,
7205 java/util/logging/Logger.java,
7206 java/util/logging/SimpleFormatter.java,
7207 java/util/logging/XMLFormatter.java:
7210 2004-04-22 Mark Wielaard <mark@klomp.org>
7212 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
7213 -Wno-long-long flags variable.
7214 (gtk_c_files): Use PEDANTIC_CFLAGS.
7215 * Makefile.in: Regenerated.
7217 2004-04-22 Mark Wielaard <mark@klomp.org>
7219 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7220 Changed C++ comments into C comments.
7221 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
7224 2004-04-22 Michael Koch <konqueror@gmx.de>
7226 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
7227 Merged copyright year with GNU classpath.
7229 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7231 * javax/security/auth/x500/X500Principal.java:
7234 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7236 * javax/swing/JSlider.java:
7237 Fixed HTML tags in comments.
7239 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7241 * javax/accessibility/AccessibleText.java:
7244 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
7246 * java/net/URLStreamHandler.java
7247 (parseURL): Convert the file path to using '/' instead of native
7250 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
7253 (userInfo): New field.
7254 (URL): Set authority to the right value.
7255 (setURL): Fixed authority and file initialization.
7256 * java/net/URLStreamHandler.java
7257 (parseURL): Take care of the query tag. Build authority.
7258 (toExternalForm): Fixed URL building using authority.
7260 2004-04-22 Michael Koch <konqueror@gmx.de>
7262 * java/net/Socket.java
7263 (impl): Made package-private.
7264 * java/net/ServerSocket.java
7265 (implAccept): Access Socket.impl field directly.
7267 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7269 * java/util/prefs/Preferences.java,
7270 java/util/prefs/InvalidPreferencesFormatException.java,
7271 java/util/prefs/BackingStoreException.java,
7272 java/util/prefs/AbstractPreferences.java:
7275 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7277 * java/util/regex/Matcher.java,
7278 java/util/regex/Pattern.java:
7281 2004-04-22 Michael Koch <konqueror@gmx.de>
7283 * java/nio/charset/IllegalCharsetNameException.java
7284 (charsetName): Made private.
7285 (IllegalCharsetNameException): Added @param tag to javadoc.
7286 (getCharsetName): Added @return tag to javadoc.
7287 * java/nio/charset/MalformedInputException.java
7288 (MalformedInputException): Added @param tag to javadoc.
7289 (getInputLength): Revised method description, added @return tag.
7290 (getMessage): Added @return tag.
7292 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
7294 * java/awt/Font.java (deriveFont): Implement missing variants.
7295 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
7298 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
7300 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
7301 Set method->index values for interface methods to their itable index.
7302 (initializeClass): Call _Jv_LayoutInterfaceMethods.
7304 2004-04-21 Michael Koch <konqueror@gmx.de>
7306 * java/nio/DirectByteBufferImpl.java
7307 (shiftDown): Made static, give address as argument and
7308 provide a convenience method that overwrites shiftDown in
7309 ByteBufferImpl and calls the native shiftDown.
7310 * java/nio/MappedByteBufferImpl.java
7311 (): Use optimized method in DirectByteBufferImpl.
7312 * java/nio/natDirectByteBufferImpl.cc
7313 (shiftDown): Changed method signature. Removed usage of array_offset.
7315 2004-04-21 Michael Koch <konqueror@gmx.de>
7317 * gnu/java/net/natPlainSocketImplPosix.cc
7318 (SocketInputStream::read): Make sure returned data is a byte value.
7320 2004-04-21 Michael Koch <konqueror@gmx.de>
7322 * gnu/classpath/ServiceFactory.java,
7323 gnu/classpath/ServiceProviderLoadingAction.java,
7324 javax/imageio/ImageReader.java,
7325 javax/imageio/ImageTranscoder.java,
7326 javax/imageio/ImageWriter.java,
7327 javax/imageio/package.html,
7328 javax/imageio/spi/IIOServiceProvider.java,
7329 javax/imageio/spi/ImageInputStreamSpi.java,
7330 javax/imageio/spi/ImageOutputStreamSpi.java,
7331 javax/imageio/spi/ImageReaderWriterSpi.java,
7332 javax/imageio/spi/ImageTranscoderSpi.java,
7333 javax/imageio/spi/RegisterableService.java,
7334 javax/imageio/spi/ServiceRegistry.java,
7335 javax/imageio/spi/package.html,
7336 javax/imageio/stream/IIOByteBuffer.java,
7337 javax/imageio/stream/ImageInputStream.java,
7338 javax/imageio/stream/ImageOutputStream.java,
7339 javax/imageio/stream/package.html:
7342 (ordinary_java_source_files): Added
7343 gnu/classpath/ServiceFactory.java and
7344 gnu/classpath/ServiceProviderLoadingAction.java.
7345 (javax_source_files): Added
7346 javax/imageio/ImageReader.java,
7347 javax/imageio/ImageTranscoder.java,
7348 javax/imageio/ImageWriter.java,
7349 javax/imageio/spi/IIOServiceProvider.java,
7350 javax/imageio/spi/ImageInputStreamSpi.java,
7351 javax/imageio/spi/ImageOutputStreamSpi.java,
7352 javax/imageio/spi/ImageReaderWriterSpi.java,
7353 javax/imageio/spi/ImageTranscoderSpi.java,
7354 javax/imageio/spi/RegisterableService.java,
7355 javax/imageio/spi/ServiceRegistry.java,
7356 javax/imageio/stream/IIOByteBuffer.java,
7357 javax/imageio/stream/ImageInputStream.java and
7358 javax/imageio/stream/ImageOutputStream.java.
7359 * Makefile.in: Regenerated.
7361 2004-04-21 Michael Koch <konqueror@gmx.de>
7363 * java/util/Properties.java
7364 (load): Fix wrongly merged fix.
7366 2004-04-21 Mark Wielaard <mark@klomp.org>
7368 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
7369 malloc and free buf.
7371 2004-04-21 Dalibor Topic <robilad@kaffe.org>
7373 * javax/naming/AuthenticationException.java,
7374 javax/naming/AuthenticationNotSupportedException.java,
7375 javax/naming/CannotProceedException.java,
7376 javax/naming/CommunicationException.java,
7377 javax/naming/CompoundName.java,
7378 javax/naming/ConfigurationException.java,
7379 javax/naming/ContextNotEmptyException.java,
7380 javax/naming/InitialContext.java,
7381 javax/naming/InsufficientResourcesException.java,
7382 javax/naming/InterruptedNamingException.java,
7383 javax/naming/LimitExceededException.java,
7384 javax/naming/LinkException.java,
7385 javax/naming/LinkLoopException.java,
7386 javax/naming/LinkRef.java,
7387 javax/naming/MalformedLinkException.java,
7388 javax/naming/Name.java,
7389 javax/naming/NameAlreadyBoundException.java,
7390 javax/naming/NameNotFoundException.java,
7391 javax/naming/NamingSecurityException.java,
7392 javax/naming/NoInitialContextException.java,
7393 javax/naming/NoPermissionException.java,
7394 javax/naming/NotContextException.java,
7395 javax/naming/PartialResultException.java,
7396 javax/naming/ReferralException.java,
7397 javax/naming/ServiceUnavailableException.java,
7398 javax/naming/SizeLimitExceededException.java,
7399 javax/naming/TimeLimitExceededException.java,
7400 javax/naming/directory/Attribute.java,
7401 javax/naming/directory/Attributes.java,
7402 javax/naming/directory/SearchResult.java,
7403 javax/naming/event/NamingExceptionEvent.java,
7404 javax/naming/spi/ResolveResult.java:
7407 2004-04-21 Mark Wielaard <mark@klomp.org>
7409 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
7410 Changed C++ comments into C comments. Removed commented out code.
7411 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7413 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
7415 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
7417 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
7419 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
7421 * native/jni/gtk-peer/gthread-jni.c:
7424 2004-04-21 Mark Wielaard <mark@klomp.org>
7426 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
7427 static fields defined in interface.
7428 * javax/awt/JDialog.java: Likewise.
7429 (JDialog): Make constructors public.
7430 (getDefaultCloseOperation): Make public.
7431 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
7432 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
7433 * javax/swing/JViewport.java (JViewport): Make constructor public.
7435 2004-04-21 Michael Koch <konqueror@gmx.de>
7437 * java/util/Map.java
7438 (Entry): Removed redundant "static" modifier.
7439 * java/text/AttributedCharacterIterator.java:
7440 Updated copyright year.
7442 2004-04-20 Michael Koch <konqueror@gmx.de>
7444 * javax/naming/directory/SearchControls.java:
7445 Don't explicitely extend java.lang.Object.
7446 * javax/naming/spi/DirStateFactory.java:
7447 Merged copyright year with GNU classpath.
7449 2004-04-20 Michael Koch <konqueror@gmx.de>
7451 * java/nio/channels/Channels.java:
7452 Merged coding style with GNU classpath.
7454 2004-04-20 Michael Koch <konqueror@gmx.de>
7456 * java/net/ServerSocket.java
7457 Merged coding style from GNU classpath.
7459 2004-04-20 Michael Koch <konqueror@gmx.de>
7461 * java/io/BufferedWriter.java:
7462 Reordered variables to be at top of the class.
7463 (localFlush): Removed redundant final keyword.
7465 2004-04-20 Ingo Proetel <proetel@aicas.com>
7467 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
7469 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7471 * java/text/DecimalFormat.java (scanFix): Removed suffix check
7472 for percent and permill check.
7474 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7476 * java/text/FieldPosition.java
7477 (FieldPosition) Constructor now behaves as it should according
7478 to the java documentation.
7480 2004-04-20 Mark Wielaard <mark@klomp.org>
7482 * java/util/Properties.java: Use the word umlaut, not ä in api
7485 2004-04-20 Michael Koch <konqueror@gmx.de>
7487 * java/nio/Buffer.java,
7488 java/nio/channels/AlreadyConnectedException.java,
7489 java/nio/channels/AsynchronousCloseException.java,
7490 java/nio/channels/ByteChannel.java,
7491 java/nio/channels/CancelledKeyException.java,
7492 java/nio/channels/Channel.java,
7493 java/nio/channels/Channels.java,
7494 java/nio/channels/ClosedByInterruptException.java,
7495 java/nio/channels/ClosedChannelException.java,
7496 java/nio/channels/ClosedSelectorException.java,
7497 java/nio/channels/ConnectionPendingException.java,
7498 java/nio/channels/DatagramChannel.java,
7499 java/nio/channels/FileChannel.java,
7500 java/nio/channels/FileLock.java,
7501 java/nio/channels/FileLockInterruptionException.java,
7502 java/nio/channels/GatheringByteChannel.java,
7503 java/nio/channels/IllegalBlockingModeException.java,
7504 java/nio/channels/IllegalSelectorException.java,
7505 java/nio/channels/InterruptibleChannel.java,
7506 java/nio/channels/NoConnectionPendingException.java,
7507 java/nio/channels/NonReadableChannelException.java,
7508 java/nio/channels/NonWritableChannelException.java,
7509 java/nio/channels/NotYetBoundException.java,
7510 java/nio/channels/NotYetConnectedException.java,
7511 java/nio/channels/OverlappingFileLockException.java,
7512 java/nio/channels/Pipe.java,
7513 java/nio/channels/ReadableByteChannel.java,
7514 java/nio/channels/ScatteringByteChannel.java,
7515 java/nio/channels/SelectableChannel.java,
7516 java/nio/channels/SelectionKey.java,
7517 java/nio/channels/Selector.java,
7518 java/nio/channels/ServerSocketChannel.java,
7519 java/nio/channels/SocketChannel.java,
7520 java/nio/channels/UnresolvedAddressException.java,
7521 java/nio/channels/UnsupportedAddressTypeException.java,
7522 java/nio/channels/WritableByteChannel.java,
7523 java/nio/channels/spi/AbstractInterruptibleChannel.java,
7524 java/nio/channels/spi/AbstractSelectableChannel.java,
7525 java/nio/channels/spi/AbstractSelectionKey.java,
7526 java/nio/channels/spi/AbstractSelector.java,
7527 java/nio/channels/spi/SelectorProvider.java,
7528 java/nio/charset/spi/CharsetProvider.java:
7529 Fixed javadocs and jalopied all over java.nio.
7531 2004-04-20 Michael Koch <konqueror@gmx.de>
7533 * java/nio/ByteBufferImpl.java,
7534 java/nio/CharBufferImpl.java,
7535 java/nio/DirectByteBufferImpl.java,
7536 java/nio/DoubleBufferImpl.java,
7537 java/nio/DoubleViewBufferImpl.java,
7538 java/nio/FloatBufferImpl.java,
7539 java/nio/FloatViewBufferImpl.java,
7540 java/nio/IntBufferImpl.java,
7541 java/nio/IntViewBufferImpl.java,
7542 java/nio/LongBufferImpl.java,
7543 java/nio/LongViewBufferImpl.java,
7544 java/nio/MappedByteBufferImpl.java,
7545 java/nio/ShortBufferImpl.java,
7546 java/nio/ShortViewBufferImpl.java:
7547 Made sure all classes are final and removed final keyword from all
7550 2004-04-20 Michael Koch <konqueror@gmx.de>
7552 * java/rmi/MarshalledObject.java,
7553 java/rmi/Naming.java,
7554 java/rmi/RemoteException.java,
7555 java/rmi/activation/ActivationException.java,
7556 java/rmi/server/ServerCloneException.java,
7557 java/security/AccessController.java,
7558 java/security/AlgorithmParameterGenerator.java,
7559 java/security/AlgorithmParameters.java,
7560 java/security/CodeSource.java,
7561 java/security/Identity.java,
7562 java/security/IdentityScope.java,
7563 java/security/KeyPairGenerator.java,
7564 java/security/KeyStore.java,
7565 java/security/Security.java,
7566 java/security/Signature.java,
7567 java/security/SignatureSpi.java,
7568 java/security/SignedObject.java,
7569 java/security/spec/DSAParameterSpec.java,
7570 java/security/spec/DSAPrivateKeySpec.java,
7571 java/security/spec/DSAPublicKeySpec.java,
7572 java/sql/Array.java,
7573 java/sql/DatabaseMetaData.java,
7574 java/sql/ResultSet.java,
7575 java/text/ChoiceFormat.java,
7576 java/text/CollationElementIterator.java,
7577 java/text/CollationKey.java,
7578 java/text/Collator.java,
7579 java/text/DateFormat.java,
7580 java/text/DateFormatSymbols.java,
7581 java/text/DecimalFormatSymbols.java,
7582 java/text/Format.java,
7583 java/text/ParsePosition.java,
7584 java/text/RuleBasedCollator.java,
7585 java/text/SimpleDateFormat.java,
7586 java/text/StringCharacterIterator.java,
7587 java/util/Collections.java,
7588 java/util/PropertyResourceBundle.java,
7589 java/util/ResourceBundle.java,
7590 java/util/StringTokenizer.java,
7591 java/util/jar/Attributes.java,
7592 java/util/logging/ConsoleHandler.java,
7593 java/util/logging/LogManager.java,
7594 java/util/logging/MemoryHandler.java,
7595 java/util/logging/SocketHandler.java,
7596 javax/naming/NamingException.java:
7597 Fixed javadoc, coding style and argument names all over.
7599 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7601 * java/io/FileDescriptor.java: (FileDescriptor) Added public
7602 constructor. (valid) Added null check.
7604 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7606 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
7607 * java/io/FileOutputStream.java
7608 (FileOutputStream) Reorganized constructors. Constructors now
7609 check whether the given path is directory.
7611 2004-04-20 Michael Koch <konqueror@gmx.de>
7613 * java/net/Authenticator.java,
7614 java/net/BindException.java,
7615 java/net/ConnectException.java,
7616 java/net/ContentHandler.java,
7617 java/net/ContentHandlerFactory.java,
7618 java/net/DatagramPacket.java,
7619 java/net/DatagramSocket.java,
7620 java/net/DatagramSocketImpl.java,
7621 java/net/DatagramSocketImplFactory.java,
7622 java/net/FileNameMap.java,
7623 java/net/HttpURLConnection.java,
7624 java/net/Inet4Address.java,
7625 java/net/Inet6Address.java,
7626 java/net/InetAddress.java,
7627 java/net/InetSocketAddress.java,
7628 java/net/JarURLConnection.java,
7629 java/net/MalformedURLException.java,
7630 java/net/MulticastSocket.java,
7631 java/net/NetPermission.java,
7632 java/net/NetworkInterface.java,
7633 java/net/NoRouteToHostException.java,
7634 java/net/PasswordAuthentication.java,
7635 java/net/PortUnreachableException.java,
7636 java/net/ProtocolException.java,
7637 java/net/ServerSocket.java,
7638 java/net/Socket.java,
7639 java/net/SocketAddress.java,
7640 java/net/SocketException.java,
7641 java/net/SocketImpl.java,
7642 java/net/SocketImplFactory.java,
7643 java/net/SocketOptions.java,
7644 java/net/SocketPermission.java,
7645 java/net/SocketTimeoutException.java,
7647 java/net/URISyntaxException.java,
7649 java/net/URLClassLoader.java,
7650 java/net/URLConnection.java,
7651 java/net/URLDecoder.java,
7652 java/net/URLEncoder.java,
7653 java/net/URLStreamHandler.java,
7654 java/net/URLStreamHandlerFactory.java,
7655 java/net/UnknownHostException.java,
7656 java/net/UnknownServiceException.java:
7657 Fixed javadocs, coding style and argument names all over.
7659 2004-04-20 Michael Koch <konqueror@gmx.de>
7661 * java/lang/Byte.java,
7662 java/lang/CharSequence.java,
7663 java/lang/ClassLoader.java,
7664 java/lang/Compiler.java,
7665 java/lang/Double.java,
7666 java/lang/Float.java,
7667 java/lang/Integer.java,
7668 java/lang/Long.java,
7669 java/lang/Math.java,
7670 java/lang/Number.java,
7671 java/lang/Package.java,
7672 java/lang/Runtime.java,
7673 java/lang/RuntimePermission.java,
7674 java/lang/SecurityManager.java,
7675 java/lang/Short.java,
7676 java/lang/StringBuffer.java,
7677 java/lang/System.java,
7678 java/lang/ThreadGroup.java,
7679 java/lang/Throwable.java,
7680 java/lang/reflect/InvocationHandler.java,
7681 java/lang/reflect/Proxy.java:
7682 Fixed javadocs, coding style and argument names all over.
7684 2004-04-20 Michael Koch <konqueror@gmx.de>
7686 * java/io/BufferedWriter.java,
7687 java/io/ByteArrayInputStream.java,
7688 java/io/CharArrayWriter.java,
7689 java/io/DataInput.java,
7690 java/io/DataInputStream.java,
7692 java/io/FilterInputStream.java,
7693 java/io/InputStream.java,
7694 java/io/InputStreamReader.java,
7695 java/io/ObjectInputStream.java,
7696 java/io/ObjectStreamClass.java,
7697 java/io/PipedInputStream.java,
7698 java/io/PipedReader.java,
7699 java/io/PushbackInputStream.java,
7700 java/io/PushbackReader.java,
7701 java/io/RandomAccessFile.java,
7702 java/io/SerializablePermission.java,
7703 java/io/StreamTokenizer.java,
7704 java/io/StringWriter.java,
7705 java/io/WriteAbortedException.java,
7706 java/io/Writer.java:
7707 Fixed javadocs all over, rename arguments to match javadocs,
7710 2004-04-20 Ingo Proetel <proetel@aicas.com>
7712 * java/awt/FontMetrics.java:
7713 (charsWidth): fixed accumulation of total_width
7714 (getWidth): simple default implementation
7715 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
7716 in Rectangle constructor.
7717 * java/awt/image/Raster.java (toString): Added method.
7718 * java/awt/image/SampleModel.java (<init>): Added error cause
7719 information to thrown exception.
7720 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
7722 (setDataElements): New method.
7723 (setPixels): New method.
7724 (toString): New method.
7726 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7728 * java/awt/image/ComponentColorModel.java
7729 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
7730 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
7731 Mauve tests on this method. Improved documentation.
7733 2004-04-20 Michael Koch <konqueror@gmx.de>
7735 * javax/swing/JLayeredPane.java,
7736 javax/swing/plaf/BorderUIResource.java,
7737 javax/swing/plaf/ComponentUI.java,
7738 javax/swing/undo/CompoundEdit.java,
7739 javax/swing/undo/StateEdit.java:
7740 Fixed HTML tags in javadocs all over.
7742 2004-04-20 Michael Koch <konqueror@gmx.de>
7744 * javax/print/attribute/EnumSyntax.java
7745 (getOffset): Made protected.
7746 * javax/print/attribute/HashAttributeSet.java
7747 (HashAttributeSet): Likewise.
7748 * javax/print/attribute/ResolutionSyntax.java
7749 (getFeedResolution): Fixed typo in exception name.
7750 (getCrossFeedResolution): Likewise.
7751 * javax/print/attribute/SetOfIntegerSyntax.java
7752 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
7753 * javax/print/attribute/TextSyntax.java
7754 (TextSyntax): Handle locale correctly.
7755 (hashCode): Calc better hashcode value.
7756 (equals): Fixed @return tag.
7757 (toString): New method.
7759 2004-04-20 Michael Koch <konqueror@gmx.de>
7761 * gnu/java/nio/FileLockImpl.java
7762 (static): Removed, not needed anymore.
7763 * gnu/java/nio/channels/FileChannelImpl.java
7764 (FileChannelImpl): Made final.
7765 (mode): Made private.
7766 (READ, WRITE, APPEND): Made public.
7767 (EXCL, SYNC, DSYNC): Likewise.
7768 (static): Load native JNI library, when needed.
7769 (length): Unused, removed.
7770 (available): Made public.
7771 (implPosition): Throws IOException.
7773 (implTruncate): Likewise.
7777 2004-04-20 Michael Koch <konqueror@gmx.de>
7779 * java/awt/AWTPermission.java,
7780 java/awt/Component.java,
7781 java/awt/ComponentOrientation.java,,
7782 java/awt/Dialog.java,
7783 java/awt/FontMetrics.java,
7784 java/awt/Graphics.java,
7785 java/awt/datatransfer/DataFlavor.java,
7786 java/beans/Introspector.java,
7787 java/beans/PropertyEditor.java,
7788 java/beans/PropertyEditorManager.java,
7789 java/beans/beancontext/BeanContextServiceProvider.java:
7790 Fixed HTML tags in javadocs all over.
7792 2004-04-20 Mark Wielaard <mark@klomp.org>
7794 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
7795 MissingResourceException is thrown.
7796 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
7797 null when a MissingResourceException is thrown. Should never happen.
7799 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7801 * java/awt/image/DataBufferShort.java,
7802 java/awt/image/DataBufferFloat.java,
7803 java/awt/image/DataBufferDouble.java,
7804 java/awt/image/PixelInterleavedSampleModel.java: New files.
7805 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
7806 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
7808 2004-04-20 Michael Koch <konqueror@gmx.de>
7810 * Makefile.am (java_source_files): Added
7811 java/awt/image/DataBufferDouble.java,
7812 java/awt/image/DataBufferFloat.java,
7813 java/awt/image/DataBufferShort.java and
7814 java/awt/image/PixelInterleavedSampleModel.java.
7815 * Makefile.in: Regenerated.
7817 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
7819 * gcj/cni.h (JvAllocObject): Remove these obsolete,
7820 undocumented CNI calls.
7821 * include/java-interp.h (_Jv_InterpClass): No longer
7822 extends java.lang.Class.
7823 * java/lang/Class.h (Class): Add new field `aux_info'.
7824 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
7825 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
7826 Use Class->aux_info instead.
7827 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
7828 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
7829 Use Class->aux_info instead.
7830 * java/io/natObjectInputStream.cc (allocateObject): Use
7832 * java/lang/natClass.cc (newInstance): Likewise.
7833 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
7834 * java/lang/natObject.cc (clone): Likewise.
7835 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
7836 * java/lang/natVMClassLoader.cc (defineClass): Don't use
7837 JvAllocObject. Allocate klass->aux_info here for interpreted
7840 2004-04-17 Mark Wielaard <mark@klomp.org>
7842 * javax/swing/JToggleButton.java (ToggleButtonModel):
7843 Make public static inner class.
7844 * javax/swing/JTabbedPane.java (setComponentAt):
7845 Call Page.setComponent().
7846 (SCROLL_TAB_LAYOUT): Make public, value is 1.
7847 (WRAP_TAB_LAYOUT): Make public, value is 0.
7848 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
7849 Make private static inner class.
7851 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
7853 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
7854 arguments to match new signature. Remove FIXME comments.
7856 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
7858 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
7860 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
7863 2004-04-02 Olga Rodimina <rodimina@redhat.com>
7865 * Makefile.am: Added new file.
7866 * Makefile.in: Regenerate.
7867 * javax/swing/ImageIcon.java:
7868 (ImageIcon(file)): set description of the icon
7870 * javax/swing/JCheckBoxMenuItem.java:
7871 Mostly Implemented. Work in progress.
7872 * javax/swing/JRadioButtonMenuItem.java:
7873 Reimplement constructors to use JToggleButtonModel.
7874 * javax/swing/plaf/basic/BasicIconFactory.java:
7875 (getCheckBoxMenuItemIcon): return check box
7877 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7878 paint menu item selected only when it is armed and
7881 2004-04-02 David Jee <djee@redhat.com>
7883 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
7884 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
7885 * java/awt/Component.java
7886 (add): Set the parent of the popup as this component.
7887 * java/awt/PopupMenu.java
7888 (addNotify): Create popup menu when peer is null.
7889 (show): Call addNotify() if peer is null.
7890 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
7891 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
7892 argument for gtk_menu_popup() as zero. This causes the popup menu to
7893 respond to any mouse button.
7895 2004-03-31 Olga Rodimina <rodimina@redhat.com>
7897 * Makefile.am: Added new file.
7898 * Makefile.in: Regenerate.
7899 * javax/swing/JRadioButtonMenuItem.java:
7901 * javax/swing/plaf/basic/BasicIconFactory.java:
7902 (getRadioButtonMenuItemIcon): Return
7904 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7905 (getPreferredSize): Add size of checkIcon if it
7907 (installDefaults): Don't initialize checkIcon.
7908 It's value will be set in subclasses.
7909 (uninstallDefaults): remove uninstallation of
7911 (paint): Moved code to paintMenuItem().
7912 (paintMenuItem): Implemented.
7913 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
7914 UI delegate for JRadioButtonMenuItem.
7916 2004-03-29 Olga Rodimina <rodimina@redhat.com>
7918 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7919 Corrected position of the accelerator.
7921 2004-03-29 Olga Rodimina <rodimina@redhat.com>
7923 * Makefile.am: Added new file.
7924 * Makefile.in: Regenerate.
7925 * javax/swing/JMenuItem.java: Partly
7926 implemented. Work in progress
7927 * javax/swing/plaf/basic/BasicLookAndFeel.java:
7928 Changed default value of acceleratorDelimiter.
7929 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7930 New class. Partly implemented.
7932 2004-03-26 Mark Wielaard <mark@klomp.org>
7934 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
7935 (item_activate): Declare label before use.
7936 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7937 (gtkSetFont): Removed unused variable label.
7938 (addExposeFilter): Declare variables before use.
7939 (removeExposeFilter): Likewise.
7940 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
7941 (ok_clicked): Declare str_fileName before use.
7943 2004-03-26 David Jee <djee@redhat.com>
7945 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
7946 (addSeparator): Remove.
7947 * java/awt/Menu.java
7948 (separator): Remove static final MenuItem field.
7949 (separatorLabel): New static final String field.
7950 (addSeparator): Do not use peer method; use add(MenuItem) instead.
7951 Use separatorLabel to denote that it is a separator.
7952 (insertSeparator): Create a new MenuItem with separatorLabel, instead
7953 of reusing the static separator instance, because a MenuItem instance
7954 can't be added more than once without being cloned.
7955 * java/awt/peer/MenuPeer.java
7956 (addSeparator): Remove from interface.
7958 2004-03-26 David Jee <djee@redhat.com>
7960 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
7961 (connectSignals): New native method declaration.
7962 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
7963 * java/awt/MenuItem.java
7964 (getActionCommand): Return the label if the action command is not set.
7965 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
7966 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
7967 gtk_menu_shell_append().
7968 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
7969 (item_activate): Fix argument type.
7970 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
7972 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
7974 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
7975 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
7976 given. Add the menu widget's top-level GtkWindow to the global window
7977 group, so it can grab the pointer.
7978 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
7979 gtk_menu_shell_append().
7981 2004-03-23 Graydon Hoare <graydon@redhat.com>
7983 * java/text/AttributedString.java
7984 (addAttribute): Fix off-by-one.
7985 (getIterator): Likewise.
7986 * java/text/AttributedStringIterator.java
7987 (getRunLimit): Correct logic.
7988 (getRunStart): Likewise.
7989 (getAttribute): Fix inequality.
7990 (getAttributes): Likewise.
7991 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
7993 2004-03-23 Kim Ho <kho@redhat.com>
7995 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
7996 (calculateSizes): Return real width and height.
7998 2004-03-23 Kim Ho <kho@redhat.com>
8000 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
8001 (calculateTabRects): Set the selectedRun before
8002 trying to rotate tabs.
8004 2004-03-23 Kim Ho <kho@redhat.com>
8006 * Makefile.am: New file
8007 * Makefile.in: Regenerate
8008 * java/awt/Graphics.java: (drawRect):
8009 Draw to the correct point.
8010 * javax/swing/DefaultSingleSelectionModel.java
8011 (isSelected): Return true if the selected index
8013 * javax/swing/JLabel.java: Do not change mnemonic
8014 index if text is null.
8015 * javax/swing/JProgressBar.java: Use JComponent's
8017 * javax/swing/JScrollBar.java: Ditto.
8018 * javax/swing/JSlider.java: Ditto.
8019 * javax/swing/JTabbedPane.java: Reimplement.
8020 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8021 Add defaults for TabbedPane.
8022 * javax/swing/plaf/basic/BasicArrowButton.java:
8024 * javax/swing/plaf/basic/BasicProgressBarUI.java:
8025 (paintDeterminate): Don't paint String if it's
8027 (paintIndeterminate): ditto.
8028 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
8031 2004-03-19 Michael Koch <konqueror@gmx.de>
8033 * java/awt/image/AffineTransformOp.java
8034 (AffineTransformOp): Made public.
8035 * javax/swing/JComponent.java
8036 (listenerList): Made protected.
8037 (accessibleContext): Likewise.
8038 * javax/swing/JList.java
8039 (valueChanged): Dont use internal fields of ListSelectionEvent.
8040 * javax/swing/JViewport.java
8041 (getView): Dont use internal fields of Component.
8042 (addImpl): Likewise.
8043 * javax/swing/Timer.java
8044 (isRunning): Made public.
8047 * javax/swing/UIDefaults.java
8048 (getInt): Made public.
8049 * javax/swing/plaf/basic/BasicListUI.java
8050 (mousePressed): Dont use internal fields of MouseEvent.
8051 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
8052 * javax/swing/plaf/basic/BasicScrollBarUI.java
8053 (arrowIcon): Made static.
8054 * javax/swing/plaf/basic/BasicViewportUI.java
8055 (stateChanged): Dont use internal field on ChangeEvent.
8056 * javax/swing/text/JTextComponent.java
8057 (getUI): Call UIManager.getUI().
8058 (updateUI): Use getUI().
8060 2004-03-19 Graydon Hoare <graydon@redhat.com>
8062 * javax/swing/JComponent.java: Turn off double buffer by default.
8063 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
8064 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8065 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
8066 Use cairo to copy areas.
8067 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
8068 Initialize and set clip region.
8070 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
8072 * java/applet/Applet.java (preferredSize): Override deprecated
8073 variant of getPreferredSize.
8074 (minimumSize): Override deprecated variant of getMinimumSize.
8076 2004-03-15 Olga Rodimina <rodimina@redhat.com>
8078 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8079 (drawImage(img,xform,bgcolor,obs)): New Method.
8080 Helper function that every drawImage method will
8082 (drawRaster): Added new parameter, bgcolor. All
8083 transparent pixels are changed to bgcolor before
8085 (drawRenderedImage): Fixed to use changed drawRaster().
8086 (drawImage(image,xform,obs): Fixed to use new helper function
8087 (drawImage(image,op,x,y)): Ditto.
8088 (drawImage (img,x,y,observer)): Ditto.
8089 ((PainterThread) bgcolor): New Field.
8090 ((PainterThread) (setPixels)): Changed all transparent pixels
8092 (drawImage(img,x,y,width,height,bgcolor,observer)):
8093 Fixed FIXME - all the transparent pixels are
8094 changed to the specified bgcolor.
8095 (drawImage(img, x, y, width, height, observer): Changed to
8097 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
8098 Fixed FIXME- changed all transparent pixels to bgcolor.
8099 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
8100 Changed to use function above.
8102 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
8104 * java/applet/Applet.java (dimensions): New field.
8105 (getDimensions): New method.
8106 (getPreferredSize): Call getDimensions.
8107 (getMinimumSize): Likewise.
8109 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8111 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
8112 * jni/classpath/jnilink.c: Likewise.
8114 * java/applet/Applet.java (getPreferredSize): New method.
8115 (getMinimumSize): New method.
8117 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
8119 * prims.cc (_Jv_AllocObject): Remove `size' argument.
8120 (_Jv_AllocObjectNoFinalizer): Likewise.
8121 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
8122 (_Jv_AllocPtrFreeObject): Likewise.
8123 (_Jv_AllocString): Moved from natString.cc. Call collector interface
8124 directly even in the JVMPI case.
8125 * gcj/cni.h (JvAllocObject): Remove `size' argument from
8126 _Jv_AllocObject calls.
8127 * gcj/javaprims.h: Update prototypes.
8128 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
8129 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
8130 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
8132 2004-04-14 Andrew Haley <aph@redhat.com>
8133 Bryce McKinlay <mckinlay@redhat.com>
8135 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
8136 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
8137 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
8139 * testsuite/libjava.lang/InvokeInterface.java: New file.
8140 * testsuite/libjava.lang/InvokeInterface.out: New file.
8142 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
8144 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
8146 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
8147 StackTraceElement directly.
8148 (newElement): New native helper method to create StackTraceElement
8149 bypassing Java access control.
8150 (createStackTraceElement): Use newElement() instead of directly
8151 calling StackTraceElement's constructor.
8152 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
8154 2004-04-01 Michael Koch <konqueror@gmx.de>
8156 * java/lang/SecurityManager.java
8157 (checkAwtEventQueueAccess): Implemented.
8159 2004-04-01 Gary Benson <gbenson@redhat.com>
8161 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
8162 (_Jv_SearchMethodInClass): Likewise.
8164 2004-03-26 Peter Moon <peterm@miraculum.com>
8166 * java/text/NumberFormat.java: Fix spelling of setCurrency
8169 2004-03-21 Anthony Green <green@redhat.com>
8171 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
8172 recursion when searching for the system ClassLoader.
8174 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
8176 * java/net/ServerSocket.java
8177 (accept): Close the socket when error occured.
8179 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
8181 * java/net/URI.java (parseURI): Added unquoting.
8182 (unquote): New method.
8183 (quoteAuthority): Implemented.
8184 (quote(String,String)): New method.
8185 (quotePath): Implemented.
8186 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
8187 (getSchemeSpecificPart): Removed FIXME comment.
8188 (getRawAuthority): Return new rawAuthority field.
8189 (getAuthority): Removed FIXME comment.
8190 (getRawUserInfo): Return new rawUserInfo field.
8191 (getUserInfo): Removed FIXME comment.
8192 (getRawPath): Return new rawPath field.
8193 (getPath): Removed FIXME comment.
8194 (getRawQuery): Return new rawQuery field.
8195 (getQuery): Removed FIXME comment.
8196 (getRawFragment): Return new rawFragment field.
8197 (getFragment): Removed FIXME comment.
8199 2004-03-20 Michael Koch <konqueror@gmx.de>
8201 * java/net/URLConnection.java: Merged copyright year with classpath.
8203 2004-03-20 Norbert Frese <postfach@nfrese.net>
8205 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
8206 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
8207 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
8209 (getObjectInputStream): Return object reference, throw IOException if null.
8210 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
8211 (getObjectOutputStream): Return object reference, throw IOException if null.
8212 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
8213 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
8214 (UnicastConnectionManager): Throw RemoteException if port is not available.
8215 (getInstance): Throw RemoteException.
8216 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
8217 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
8218 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8219 Collect Exceptions which are returned by a rmi-call and fix void returns.
8220 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
8221 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8222 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
8223 (dispatch): Answer ping messages which are sent by other java implementions.
8224 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
8225 for every rmi-message and fix void return problems.
8226 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
8227 (UnicastServerRef): Throw RemoteException.
8228 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
8229 In some situations it is necessary to export a subclass of the class which has the _Stub.
8230 For instance when the class with has the _Stub is abstract.
8231 (findStubSkelClass): New method which looks for the class which has the _Stub.
8232 (getClientHost): Implementated.
8233 * gcc/libjava/java/rmi/server/RemoteServer.java
8234 (getClientHost): Implementated.
8235 * gcc/libjava/Makefile.am (rmi_java_source_files):
8236 Added gnu/java/rmi/server/RMIIncomingThread.java.
8237 * Makefile.in: Regenerated.
8239 2004-03-20 Michael Koch <konqueror@gmx.de>
8241 * java/net/InetAddress.java
8242 (getLocalHostname): Added javadoc.
8244 2004-03-19 Per Bothner <per@bothner.com>
8246 * configure.in: FILE variable overrides FLATFORM when linking
8247 natFileChannelXXX.cc.
8249 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
8250 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
8252 2004-03-19 Per Bothner <per@bothner.com>
8254 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
8255 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
8256 * Makefile.am: Update accordingly.
8257 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
8258 as aliases for UnicodeLittle and UnicodeBig.
8260 2004-03-20 Mark Wielaard <mark@klomp.org>
8262 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8263 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
8264 Don't access ws when it is null.
8265 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
8268 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
8270 * java/lang/ThreadGroup.java (list): Changed print to println.
8272 2004-03-19 Mark Wielaard <mark@klomp.org>
8274 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
8277 2004-02-10 Randolph Chung <tausq@debian.org>
8279 * configure.in: Build java for hppa target.
8280 * configure: Regenerate.
8281 * libjava/configure.host (hppa-*): Add target.
8282 * libjava/sysdeps/pa/lock.h: New file.
8284 2004-03-19 Mark Wielaard <mark@klomp.org>
8286 Reported by Stephen Crawley
8287 * java/io/FilePermission.java (implies): Use String.length() -1 to
8288 access last char of String.
8290 2004-03-19 Michael Koch <konqueror@gmx.de>
8292 * java/awt/image/AffineTransformOp.java
8293 (AffineTransformOp): Made public.
8294 * javax/swing/JComponent.java
8295 (listenerList): Made protected.
8296 (accessibleContext): Likewise.
8297 * javax/swing/JList.java
8298 (valueChanged): Dont use internal fields of ListSelectionEvent.
8299 * javax/swing/JViewport.java
8300 (getView): Dont use internal fields of Component.
8301 (addImpl): Likewise.
8302 * javax/swing/Timer.java
8303 (isRunning): Made public.
8306 * javax/swing/UIDefaults.java
8307 (getInt): Made public.
8308 * javax/swing/plaf/basic/BasicListUI.java
8309 (mousePressed): Dont use internal fields of MouseEvent.
8310 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
8311 * javax/swing/plaf/basic/BasicScrollBarUI.java
8312 (arrowIcon): Made static.
8313 * javax/swing/plaf/basic/BasicViewportUI.java
8314 (stateChanged): Dont use internal field on ChangeEvent.
8315 * javax/swing/text/JTextComponent.java
8316 (getUI): Call UIManager.getUI().
8317 (updateUI): Use getUI().
8319 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8321 * verify.cc: Undef PC.
8323 2004-03-18 Michael Koch <konqueror@gmx.de>
8325 * java/nio/channels/spi/AbstractSelectableChannel.java
8326 (keys): Initialize at declaration.
8327 (locate): keys cant be null.
8329 (addSelectionKey): New method.
8330 (removeSelectionKey): New method.
8331 * java/nio/channels/spi/AbstractSelectionKey.java
8332 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
8333 * java/nio/channels/spi/AbstractSelector.java
8334 (provider): Javadoc added.
8335 (cancelledKeys): Javadoc added.
8336 (cancelKey): Javadoc added, add key to cancelledKeys.
8337 (deregister): Implemented.
8339 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8341 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
8342 MAP_FAILED to void *.
8344 2004-03-12 Graydon Hoare <graydon@redhat.com>
8346 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
8347 * javax/swing/JComponent.java (paint): Use persistent double buffer.
8348 * javax/swing/JList.java (ListListener): Revalidate on changes.
8349 * javax/swing/JScrollPane.java: Reimplement.
8350 * javax/swing/JViewport.java: Reimplement.
8351 * javax/swing/ScrollPaneLayout.java: Reimplement.
8352 * javax/swing/ViewportLayout.java: Tidy up.
8353 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
8354 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
8355 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
8356 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
8359 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
8361 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8362 (window_wm_protocols_filter): New function.
8363 (window_focus_in_cb): Remove function.
8364 (window_focus_out_cb): Likewise.
8365 (window_focus_or_active_state_change_cb): New function.
8366 (create): Add filter that removes WM_TAKE_FOCUS client messages.
8367 (connectSignals): Don't attach handlers to focus-in-event or
8368 focus-out-event signals. Handle notify signal.
8370 2004-03-11 David Jee <djee@redhat.com>
8372 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8373 (gtkSetLabel): New native method declaration.
8374 (setLabel): Use gtkSetLabel.
8375 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8376 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
8378 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
8380 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
8381 black when color argument is null.
8383 2004-03-10 Kim Ho <kho@redhat.com>
8385 * java/awt/Container.java: Remove check
8388 2004-03-10 Kim Ho <kho@redhat.com>
8390 * java/awt/Container.java: (visitChild):
8391 Remove candidate clip. Use the component
8393 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8394 (handleEvent): Use the PaintEvent's clip.
8396 2004-03-10 Kim Ho <kho@redhat.com>
8398 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8399 (handleEvent): Don't set the clip for the
8402 2004-03-09 Graydon Hoare <graydon@redhat.com>
8404 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
8405 Fix double <-> fixed macros, reset font transform.
8406 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
8409 2004-03-09Â Kim Ho <kho@redhat.com>
8411 * java/awt/Container.java: (visitChild): Move
8412 the x and y coordinate of the component rectangle
8413 to correct position.
8414 (handleEvent): Forward drag events to the pressed
8416 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8418 (ArrowButtonListener::mousePressed): Stop the
8420 (mouseDragged): Implement.
8421 (TrackListener::mousePressed): Only react if
8422 the press doesn't occur on the thumb, otherwise
8423 just set the offset.
8424 (TrackListener::mouseReleased): Unset the isAdjusting
8426 (createIncreaseIcon): Switch icon.
8427 (createDecreaseIcon): Switch icon.
8428 (calculatePreferredSize): Use width.
8429 (getThumbBounds): Use the top as the lower value.
8430 (layoutVScrollBar): Switch the button locations.
8431 (paintIncreaseHighlight): Paint correct side of thumb.
8432 (paintDecreaseHighlight): ditto.
8433 (valueForYPosition): Use top as the lower value.
8434 * javax/swing/plaf/basic/BasicSliderUI.java:
8436 (mouseDragged): Implement.
8437 (mousePressed): Only react when the thumb isn't
8438 pressed, otherwise just set offset.
8439 (mouseReleased): Handle a release of the thumb.
8440 (scrollDueToClickInTrack): Stop the timer first.
8441 * javax/swing/JProgressBar.java:
8442 (setString): Fix change condition.
8443 * javax/swing/JSeparator.java:
8446 2004-03-08 David Jee <djee@redhat.com>
8448 * java/awt/image/AffineTransformOp.java:
8449 (filter): Use Graphics2D interface instead of directly using the
8452 2004-03-05 David Jee <djee@redhat.com>
8454 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
8455 (handleEvent): Action events are generated upon MOUSE_RELEASED.
8456 * java/awt/Container.java
8457 (acquireComponentForMouseEvent): Fixed.
8458 (handleEvent): Fixed.
8459 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8460 (state_to_awt_mods_with_button_states): New method.
8461 (pre_event_handler): Fixed mouse event generation.
8463 2004-03-05 Olga Rodimina <rodimina@redhat.com>
8465 gnu/java/awt/peer/gtk/GdkGraphics2D.java
8466 (GdkGraphics2D (BufferedImage)): Initialize
8467 pixmap associated with specified BufferedImage.
8468 (setPaint): Changed implementation of Texture
8469 Paint to use AffineTransformOp.
8470 * java/awt/image/AffineTransformOp.java
8471 (createCompatibleDestRaster): Throw RasterFormatException
8472 if resulting width or height of raster is 0.
8474 2004-03-04 Olga Rodimina <rodimina@redhat.com>
8476 * java/awt/image/AffineTransformOp.java:
8477 Removed unnecessary field interpolationType.
8478 Formatted some of the lines to be consistent with
8480 (AffineTransformOp): Create new RenderingHints
8481 containing specified interpolation type.
8482 (createCompatibleDestImage): Implemented.
8483 (createCompatibleDestRaster): Implemented.
8484 (filter): Implemented.
8485 (getBounds2D(BufferedImage)): Implemented.
8486 (getBounds2D(Raster)): Implemented.
8487 (getInterpolationType): Get interpolation value from
8490 2004-03-04 David Jee <djee@redhat.com>
8492 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8493 (setFont): Check if child peers are null.
8495 2004-03-04 Graydon Hoare <graydon@redhat.com>
8497 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
8499 (libjava_arguments): Add new libraries to argument list.
8501 2004-03-02 Olga Rodimina <rodimina@redhat.com>
8503 * Makefile.am: Added java/awt/image/AffineTransformOp.java
8504 * Makefile.in: Re-generated.
8505 * java/awt/image/AffineTransformOp.java: New Class.
8507 2004-03-01 Olga Rodimina <rodimina@redhat.com>
8509 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8510 (setPaint): Interpret correctly TexturePaint's
8512 (drawImage): Fixed scale factors of the affine
8515 2004-02-27 David Jee <djee@redhat.com>
8517 * gnu/java/awt/peer/gtk/GdkGraphics.java
8518 (GdkGraphics(Component)): Inherit font from component.
8519 (drawString): Use font style.
8520 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8521 (gtkSetFont): New native method declaration.
8522 (setFont): New method.
8523 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8524 (gtkSetFont): New native method declaration.
8525 (setFont): Call new native method gtkSetFont.
8526 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8527 (setFont): For all child components who do not their fonts set,
8528 set their peers' fonts with this container's font.
8529 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
8530 Move all native method declarations to the top for readability.
8531 (gtkSetFont): New native method declaration.
8532 (setFont): New method.
8533 * java/awt/Component.java
8534 (setFont): Invalidate after setting the font.
8535 * java/awt/Container.java
8536 (invalidateTree): New method.
8537 (setFont): Invalidate the container tree after setting the font.
8538 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
8539 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
8540 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8541 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
8542 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8543 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
8544 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
8545 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
8547 2004-02-27 Olga Rodimina <rodimina@redhat.com>
8549 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8550 (updateBufferedImage): New helper function.
8551 Updates BufferedImage in memory if it was changed.
8552 (draw): changed to update BufferedImage in memory after
8553 this drawing operation
8555 (draw3DRect): Ditto.
8556 (fill3DRect): Ditto.
8558 (drawRaster): Ditto.
8559 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
8560 no affine transformation.
8561 (drawGlyphVector): Ditto.
8563 2004-02-26 Olga Rodimina <rodimina@redhat.com>
8565 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8566 (isBufferedImageGraphics): New Helper function.
8567 Returns true if this graphics2d can be used to draw
8568 into buffered image and false otherwise.
8569 (updateImagePixels): New Helper function.
8570 Updates pixels in the BufferedImage.
8571 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8572 (getImagePixels): New function. Returns pixels
8573 of the buffered image associated with
8576 2004-02-26 David Jee <djee@redhat.com>
8578 * java/awt/BorderLayout.java
8579 (layoutContainer): Fix width and height calculations to ensure
8580 that they're non-negative.
8581 * java/awt/Component.java
8582 (setBackground): If c is null, inherit from closest ancestor whose
8583 background color is set.
8585 2004-02-26 Kim Ho <kho@redhat.com>
8587 * Makefile.am: Add new files.
8588 * Makefile.in: Re-generate.
8589 * javax/swing/JProgressBar.java:
8590 (JProgressBar(int, int int)): Throw
8591 IllegalArgumentException if orientation is
8593 (JProgressBar(BoundedRangeModel)): Create
8594 ChangeListener and register it. UpdateUI.
8595 (getChangeListeners): Implement.
8596 (setModel): Reset ChangeListener.
8597 * javax/swing/JScrollBar.java: Implement.
8598 * javax/swing/JSeparator.java: Implement.
8599 * javax/swing/JSlider.java:
8600 (JSlider(int, int, int, int)): Throw
8601 IllegalArgumentException if orientation
8603 (getChangeListeners): Fix method name.
8604 * javax/swing/SwingUtilities.java:
8605 (layoutCompoundLabel): If there is no text,
8606 set the text rectangle dimensions to 0.
8607 * javax/swing/plaf/basic/BasicButtonUI.java:
8608 (paint): If there is no text, don't paint it.
8609 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8611 * javax/swing/plaf/basic/BasicSeparatorUI.java:
8613 * javax/swing/plaf/basic/BasicSliderUI.java:
8614 (propertyChange): If the model changes, change
8615 the listeners accordingly.
8617 2004-02-25 Graydon Hoare <graydon@redhat.com>
8619 * javax/swing/AbstractButton.java: Add "final" qualifiers.
8620 * javax/swing/JList.java: Reimplement.
8621 * javax/swing/DefaultListSelectionModel.java: Reimplement.
8622 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
8623 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
8624 * javax/swing/ListModel.java: Javadoc.
8625 * javax/swing/ListSelectionModel.java: Add missing methods.
8626 * javax/swing/AbstractListModel.java: Javadoc and corrections.
8627 * javax/swing/DefaultListModel.java: Javadoc and corrections.
8628 * javax/swing/ListModel.java: Javadoc and corrections.
8629 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
8631 2004-02-25 David Jee <djee@redhat.com>
8633 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8634 (GtkFontPeer): Change default size to 12.
8635 * gnu/java/awt/peer/gtk/GtkToolkit.java
8636 (getFontPeer): Change default size to 12.
8637 (getClasspathFontPeer): Likewise. Set default name to "Default".
8638 * java/awt/Font.java
8639 (Font(Map)): Call Font(String,Map).
8640 (Font(String,Map)): If attrs is null, initialize it as an empty
8641 HashMap, which will ensure that the Font will get default attributes.
8643 2004-02-25 David Jee <djee@redhat.com>
8645 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8646 (GtkFontPeer(String,int)): Call the new constructor with size 1.
8647 (GtkFontPeer(String,int,int)): New constructor with size attribute.
8648 * gnu/java/awt/peer/gtk/GtkToolkit.java
8649 (getFontPeer(String,int)): Call the new overload method with size 1.
8650 (getFontPeer(String,int,int)): New method. Overloaded with size
8652 (getClasspathFontPeer): Set the size of the font.
8654 2004-02-24 Olga Rodimina <rodimina@redhat.com>
8656 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8657 (bimage): New field.
8658 (GdkGraphics2D): New Constructor. Constructs Graphics
8659 object that can be used to draw into the Buffered Image.
8660 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8661 (GdkGraphicsEnvironment): Fixed to include public
8663 (createGraphics): Implemented.
8664 * gnu/java/awt/peer/gtk/GtkToolkit.java
8665 (getLocalGraphicsEnvironment): Implemented.
8666 * java/awt/GraphicsEnvironment.java:
8667 (getLocalGraphicsEnvironment): Implemented.
8668 * java/awt/image/BufferedImage.java:
8669 (createGraphics): Implemented.
8671 2004-02-24 David Jee <djee@redhat.com>
8673 * java/awt/Component.java
8674 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
8675 * java/awt/Container.java
8676 (addNotifyContainerChildren): Fix event enabling.
8678 2004-02-23 Olga Rodimina <rodimina@redhat.com>
8680 * Makefile.am: Added
8681 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
8682 * Makefile.in: Re-generated.
8683 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8686 2004-02-19 Kim Ho <kho@redhat.com>
8688 * Makefile.am: Add BasicProgressBarUI
8689 * Makefile.in: Regenerate.
8690 * javax/swing/JProgressBar.java:
8692 * javax/swing/plaf/basic/BasicLookAndFeel.java
8693 Add constants for JProgressBar.
8694 * javax/swing/plaf/basic/BasicProgressBarUI.java
8696 * javax/swing/plaf/basic/BasicSliderUI.java
8698 (calculateGeometry): New method
8699 (paint): Remove unnecessary size calculations.
8701 2004-02-18 Olga Rodimina <rodimina@redhat.com>
8703 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8704 (drawRaster): Fixed small error that caused
8705 imageToUser transformation to be set incorrectly.
8706 (toString): Implemented.
8708 2004-02-18 David Jee <djee@redhat.com>
8710 * java/awt/CardLayout.java
8711 (addLayoutComponent): Show the first component added as the default.
8712 (removeLayoutComponent): After removing, show the next component.
8713 (gotoComponent): If there is only one component, show it and return.
8715 2004-02-18 Kim Ho <kho@redhat.com>
8717 * javax/swing/JSlider.java: Re-order
8719 * javax/swing/JLabel.java: Re-order
8721 * javax/swing/JComponent.java:
8722 (addPropertyChangeListener):
8724 (removePropertyChangeListener):
8726 (firePropertyChangeEvent):
8729 2004-02-17 David Jee <djee@redhat.com>
8731 * java/awt/Component.java
8732 (show): Dispatch ComponentEvent via system event queue.
8736 (reshape): Likewise.
8737 * java/awt/Window.java
8738 (setBoundsCallback): Likewise.
8740 2004-02-17 David Jee <djee@redhat.com>
8742 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8743 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
8744 Use gtk_widget_set_size_request() instead of the deprecated
8745 gtk_widget_set_usize().
8747 2004-02-17 Kim Ho <kho@redhat.com>
8749 * javax/swing/JSlider.java: Fix comments and
8750 make property strings constants.
8751 (createStandardLabels): Use the labels
8752 preferred size as bounds.
8753 * javax/swing/plaf/basic/BasicSliderUI.java
8755 (ScrollHandler::actionPerformed): Don't
8756 calculate the timer stop value. Let the
8757 MouseListeners find the stop location.
8758 (getPreferredHorizontalSize): Re-implement.
8759 (getPreferredVerticalSize): ditto.
8760 (getMinimumHorizontalSize): ditto.
8761 (getMinimumVerticalSize): ditto.
8762 (getPreferredSize): ditto.
8763 (getMinimumSize): ditto.
8764 (getMaximumSize): ditto.
8765 (paintTicks): Use doubles to find the
8767 (paintHorizontalLabel):Â Use preferredSize
8768 as initial width and height.
8769 (paintVerticalLabel): ditto.
8771 2004-02-17 Kim Ho <kho@redhat.com>
8773 * javax/swing/JLabel.java: Changed
8774 property strings to constants.
8775 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
8777 (setText): Change mnemonic index if
8779 (setDisplayedMnemonicIndex): Fire property
8781 (getDisplayedMnemonicIndex): Remove check
8784 2004-02-17 Olga Rodimina <rodimina@redhat.com>
8786 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8787 (drawImage(img,xform,obs)): Invert xform before
8788 passing the xform to cairo.
8789 (drawImage(img,x,y,bgcolor,obs)): Implemented.
8790 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
8792 (drawImage (img,x,y,w,h,obs)): Implemented.
8793 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
8794 bgcolor,obs)): Partly implemented.
8795 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
8797 * java/awt/image/BufferedImage.java:
8798 (copyData): if dest is null, create raster with same
8799 dimensions as the current image.
8801 2004-02-16 Graydon Hoare <graydon@redhat.com>
8803 * javax/swing/plaf/basic/BasicLabelUI.java
8804 (getPreferredSize): Use layoutCL.
8805 * javax/swing/plaf/basic/BasicGraphicsUtils.java
8806 (getPreferredButtonSize): Start with empty view rect, layout using
8807 component's preferred alignment.
8808 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
8811 2004-02-16 David Jee <djee@redhat.com>
8813 * java/awt/Component.java
8814 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
8815 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
8816 (move): Erase old bounds and repaint new bounds. Dispatch
8817 COMPONENT_MOVED ComponentEvent.
8818 (resize): Erase old bounds and repaint new bounds. Dispatch
8819 COMPONENT_RESIZED ComponentEvent.
8820 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8822 * java/awt/Window.java
8823 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8826 2004-02-16 Olga Rodimina <rodimina@redhat.com>
8828 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8829 (setRenderingHint): Added implementation of
8830 Interpolation rendering hints.
8831 (setRenderingHints): Ditto.
8832 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
8833 (drawPixels): fixed to allow user to choose type
8834 of filtering that should be used when displaying images.
8835 (cairoSurfaceSetFilter): New method. Sets filter type for
8836 interpolation of pixel values.
8838 2004-02-16 David Jee <djee@redhat.com>
8840 * java/awt/GridBagLayout.java
8841 (calcCellSizes): Rows or columns with zero sizes should still be
8842 considered for extra space distribution.
8844 2004-02-16 Kim Ho <kho@redhat.com>
8846 * javax/swing/JLabel.java: Re-implement.
8847 * javax/swing/plaf/basic/BasicLabelUI.java
8849 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8852 2004-02-16 Kim Ho <kho@redhat.com>
8854 * javax/swing/JSlider.java: Fix indentation and comments.
8855 (setModel): Remove null check to conform with Sun's.
8856 (setOrientation): Throw exception if not
8857 HORIZONTAL or VERTICAL.
8858 (getInverted): Use private variable instead of
8859 ComponentOrientation.
8860 (setInverted): ditto.
8861 * javax/swing/plaf/basic/BasicSliderUI.java:
8862 Fix indentation and comments.
8863 (propertyChange): Remove check for inverted slider, handle
8865 (getMinimumSize): Return preferred size.
8866 (getMaximumSize): ditto.
8867 (calculateFocusRect): Don't relocate rectangle.
8868 (drawInverted): Return XOR of the slider's inversion and
8869 the component's orientation.
8870 (paint): Update leftToRightCache
8872 2004-02-13 David Jee <djee@redhat.com>
8874 * java/awt/GridBagLayout.java
8875 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
8876 code to helper methods.
8877 (sortBySpan): New helper method.
8878 (distributeSizeAndWeight): Likewise.
8879 (calcCellWeights): Likewise.
8880 (calcCellSizes): Add comments.
8882 2004-02-13 David Jee <djee@redhat.com>
8884 * java/awt/Component.java
8885 (show): Only do something if component is invisible at the moment.
8886 (hide): Only do something if component is visible at the moment.
8887 (reshape): If lightweight, erase old bounds and repaint new bounds.
8889 2004-02-13 Kim Ho <kho@redhat.com>
8891 * Makefile.am: Updated for new file.
8892 * Makefile.in: Regenerated.
8893 * javax/swing/JSlider.java: Reimplement.
8894 * javax/swing/SwingUtilities.java
8895 (layoutCompoundLabel): Use icon height
8897 (paintComponent): Implement.
8898 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8899 Add JSlider defaults.
8900 * javax/swing/plaf/basic/BasicSliderUI.java:
8901 Implement. New file.
8903 2004-03-17 Michael Koch <konqueror@gmx.de>
8905 * gnu/java/net/PlainDatagramSocketImpl.java
8906 (RECEIVE_LOCK): New member field.
8907 (SEND_LOCK): New member field.
8908 (send0): New method.
8909 (send): Synchronize on SEND_LOCK.
8910 (receive0): New method.
8911 (receive): Synchronize on RECEIVE_LOCK.
8912 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
8913 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
8914 gnu/java/net/natPlainDatagramSocketImplWin32.cc
8915 (send0): Renamed from send.
8916 (receive0): Renamed from receive.
8917 2004-03-17 Michael Koch <konqueror@gmx.de>
8919 * gnu/java/net/natPlainSocketImplPosix.cc
8920 (write): Just call write(jbyteArray, offset, len).
8921 (read): Just call read(jbyteArray, offset, len).
8923 2004-03-16 Michael Koch <konqueror@gmx.de>
8925 * javax/swing/JTabbedPane.java
8926 (serialVersionUID): New field.
8928 2004-03-16 Norbert Frese <postfach@nfrese.net>
8930 * java/net/InetAddress.java
8931 (getByName): Handle hostname == "" case.
8933 2004-03-16 Dalibor Topic <robilad@kaffe.org>
8935 Reported by: Adam Heath <doogie@debian.org>
8936 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
8939 2004-03-15 Michael Koch <konqueror@gmx.de>
8941 * java/util/Locale.java: Reverting my last patch
8942 and add a comment why the original version was okay.
8944 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
8946 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
8947 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
8948 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
8949 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
8951 2004-03-12 Michael Koch <konqueror@gmx.de>
8953 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
8955 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
8957 * java/net/URI.java (toURL): Implemented.
8959 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
8962 (URI_REGEXP) updated to contain scheme specific part.
8963 (SCHEME_SPEC_PART_GROUP) new constant.
8964 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
8965 updated to make room for SCHEME_SPEC_PART_GROUP.
8966 (parseURI) parse scheme specific part.
8967 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
8968 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
8969 getQuery, getFragment) implemented.
8971 2004-03-12 Dalibor Topic <robilad@kaffe.org>
8973 * libraries/javalib/java/net/URI.java
8974 partially implemented using java.util.regex.
8975 (URI_REGEXP) new constant. Used to parse URIs.
8976 (SCHEME_GROUP) new constant representing index of scheme group
8978 (AUTHORITY_GROUP) new constant representing index of authority
8979 group in parsed URI.
8980 (PATH_GROUP) new constant representing index of path group in
8982 (QUERY_GROUP) new constant representing index of query group in
8984 (FRAGMENT_GROUP) new constant representing index of fragment
8985 group in parsed URI.
8986 (getURIGroup) new static utility method.
8987 (parseURI) implemented.
8988 (quote) stub for new static utility method.
8989 (quoteAuthority) stub for new static utility method.
8990 (quoteHost) stub for new static utility method.
8991 (quotePath) stub for new static utility method.
8992 (quoteUserInfo) stub for new static utility method.
8994 (create) don't throw URISyntaxException. Implemented.
8995 (toString) implemented.
8997 2004-03-12 Michael Koch <konqueror@gmx.de>
8999 * java/net/HttpURLConnection.java
9000 (getResponseCode): Fix another typo in javadoc.
9002 2004-03-11 Michael Koch <konqueror@gmx.de>
9004 * java/util/logging/Level.java
9005 (parse): Use String.equals() instead of ==.
9007 2004-03-11 Michael Koch <konqueror@gmx.de>
9009 * gnu/java/net/protocol/jar/Connection.java
9010 (getContentLength): New method.
9012 2004-03-11 Michael Koch <konqueror@gmx.de>
9014 * gnu/java/net/PlainSocketImpl.java:
9015 Reformated to merge better with classpath's version.
9017 2004-03-11 Michael Koch <konqueror@gmx.de>
9019 * java/util/Locale.java
9020 (getISO3Language): Use String.equals() instead of ==.
9021 (getISO3Country): Likewise.
9023 2004-03-11 Dalibor Topic <robilad@kaffe.org>
9025 * java/text/AttributedString.java
9026 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
9027 Use HashMap instead of Hashtable since value can be null, and
9028 you can not store a null value in a Hashtable.
9030 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
9032 * java/text/AttributedStringIterator.java
9033 (getAllAttributesKey): Return only keys concerned
9034 by the current iterator.
9035 (getAttributes): Use strict inequality for
9038 2004-03-11 Michael Koch <konqueror@gmx.de>
9040 * java/net/HttpURLConnection.java:
9041 Fixed typo in javadoc.
9043 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
9045 * java/io/BufferedInputStream.java (marktarget): New field for max
9047 (CHUNKSIZE): New constant for incremental mark buffer allocation.
9048 (mark): Use new fields.
9050 (read(byte[],int,int)): Likewise.
9054 2004-03-11 Mark Wielaard <mark@klomp.org>
9056 * java/beans/BeanDescriptor.java (BeanDescriptor):
9057 Set the FeatureDescriptor programmatic name.
9059 2004-03-11 Michael Koch <konqueror@gmx.de>
9061 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
9062 This file was was just copied form java/io/natFileDescriptorEcos.cc
9063 and never changed to compile correctly.
9065 2004-03-11 Michael Koch <konqueror@gmx.de>
9067 * gnu/java/nio/PipeImpl.java
9068 (SourceChannelImpl): Made final.
9069 (read): Implemented.
9070 (SinkChannelImpl): Made final.
9071 (write): Implemented.
9073 2004-03-11 Michael Koch <konqueror@gmx.de>
9075 * gnu/java/net/PlainDatagramSocketImpl.java:
9076 Reformated to match classpath's version more.
9078 2004-03-11 Michael Koch <konqueror@gmx.de>
9080 * gnu/java/awt/peer/ClasspathFontPeer.java:
9081 Fixed javadoc to be correct xhtml.
9082 * gnu/java/awt/peer/gtk/GtkArgList.java
9083 (add): Use Boolean.valueOf() instead of new Boolean().
9085 2004-03-09 Michael Koch <konqueror@gmx.de>
9087 * java/lang/Thread.java
9088 (runnable): Moved around.
9089 (daemon): Renamed from daemon_flag.
9090 (contextClassLoader): Renamed from context_class_loader.
9091 (Thread): Reordered constructors.
9092 (activeCount): Use group directly.
9093 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
9094 (holdsLock): Reworked javadoc.
9095 (setDaemon): Reworked.
9096 * java/lang/natThread.cc
9099 2004-03-08 Anthony Green <green@redhat.com>
9101 * Makefile.am: Build property resource files into libgcj.
9102 * Makefile.in: Rebuilt.
9103 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
9104 java/util/regex/PatternSyntaxException.java,
9105 gnu/regexp/CharIndexed.java,
9106 gnu/regexp/CharIndexedCharArray.java,
9107 gnu/regexp/CharIndexedInputStream.java,
9108 gnu/regexp/CharIndexedReader.java,
9109 gnu/regexp/CharIndexedString.java,
9110 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
9111 gnu/regexp/REException.java,
9112 gnu/regexp/REFilterInputStream.java,
9113 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
9114 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
9115 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
9116 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
9117 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
9118 gnu/regexp/RETokenLookAhead.java,
9119 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
9120 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
9121 gnu/regexp/RETokenStart.java,
9122 gnu/regexp/RETokenWordBoundary.java,
9123 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
9125 2004-03-03 Per Bothner <per@bothner.com>
9127 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
9128 Optimize when argument is a FileChannelImpl.
9129 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
9131 * java/nio/channels/natChannels.cc: New file for new native methods.
9132 * Makefile.am: Update accordingly.
9134 2004-03-02 Jan Hubicka <jh@suse.cz>
9136 * configure.host: Pass -fno-omit-frame-pointer for i386.
9137 * configure.in: Likewise.
9138 * configure: Regenerate.
9140 2004-03-01 Per Bothner <per@bothner.com>
9142 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
9144 2004-02-29 Per Bothner <per@bothner.com>
9146 * java/nio/channels/FileChannelImpl.java: Moved to package
9147 gnu/java/nio/channels, since we need to refer to it from java.io.
9148 * java/nio/channels/natFileChannelImpl.cc: Removed file.
9149 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
9150 from java/nio/channels. Don't depend on FileDescriptor.
9151 (in, out, err): New static fields.
9153 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
9154 from FileDescriptor.
9155 (by): Removed MappedByteBuffer field.
9156 (map): New working implementation.
9157 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
9158 some code "ported" from natFileDescriptoPosix.cc.
9159 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
9160 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
9161 * java/io/FileDescriptor.java: Implement on top of FileChannel.
9162 Remove native methods.
9163 * Makefile.am, configure.in: Updated accordingly.
9165 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
9166 (ch): New FileChannelImpl field. Update constructor to match.
9167 (releaseImpl): Remove native method. Instead ...
9168 (release): Call unlock on channel.
9169 * gnu/java/nio/natFileLockImpl.cc: Removed file.
9171 * java/io/natFileDescriptorEcos.cc: Remove file.
9172 * java/io/natFileDescriptorPosix.cc: Remove file.
9173 * java/io/natFileDescriptorWin32.cc: Remove file.
9174 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
9175 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
9176 (<init>(FileChannelImpl)): New package-private constructor.
9177 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
9178 (available, close, read, skip): Implement using FileChannelImpl.
9179 (getFD): Allocate FileDescriptor if needed.
9180 (getChannel): Is now trivial.
9181 * java/io/FileOutputStream.java: Corresponding changes.
9182 * java/io/RandomAccessFile.java: Corresponding changes.
9184 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
9185 unmapImpl): New dummy methods, to be overridden by subclass.
9186 (finalize, isLoaded, load, force): New methods.
9187 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
9188 Now works, at least for read mapping.
9190 * java/lang/natPosixProcess.cc (startProcess): Implement standard
9191 streams using FileChannelImpl, not FileDescriptor.
9192 * java/lang/natWin32Process.cc (startProcess): Likewise.
9194 2004-02-28 Michael Koch <konqueror@gmx.de>
9196 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
9199 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
9201 * java/io/ObjectInputStream.java
9202 (readClassDescriptor): Keep elements of the mapping non null.
9203 (checkTypeConsistency): New method.
9204 (readFields): Fixed main loop and base logic. Small reindentation.
9205 * java/io/ObjectStreamField.java
9206 (lookupField): New method to update the field reference.
9207 (checkFieldType): New method.
9208 * java/io/ObjectStreamClass.java
9209 (setClass, setFields): Call lookupField when building the field
9210 database. Check the real field type.
9212 2004-02-28 Michael Koch <konqueror@gmx.de>
9214 * java/nio/ByteOrder.java
9215 (nativeOrder): Use equals() to compare strings.
9217 2004-02-26 Michael Koch <konqueror@gmx.de>
9219 * gnu/java/nio/FileLockImpl.java
9220 (finalize): Made protected.
9221 * java/nio/channels/FileChannel.java
9222 (MapMode.READ_ONLY): Made final.
9223 (MapMode.READ_WRITE): Made final.
9224 (MapMode.PRIVATE): Made final.
9225 * java/nio/channels/SocketChannel.java
9226 (open): Simplified code.
9227 * java/nio/channels/spi/AbstractSelectableChannel.java
9228 (registered): Unused, removed.
9229 (keyFor): Check channel is open, only locate key
9230 and not add a new one.
9231 (register): Don't delete attachments.
9233 2004-02-26 Michael Koch <konqueror@gmx.de>
9235 * gnu/java/awt/ComponentDataBlitOp.java
9236 (INSTANCE): Made final.
9237 * gnu/java/awt/image/ImageDecoder.java:
9239 (cm): Unused, removed.
9241 2004-02-26 Michael Koch <konqueror@gmx.de>
9243 * gnu/java/nio/DatagramChannelImpl.java
9244 (send): Check if target address is resolved.
9246 2004-02-26 Michael Koch <konqueror@gmx.de>
9248 * Makefile.am: Generate and install headers for inner classes in
9249 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
9250 * Makefile.in: Regenerated.
9252 2004-02-24 Anthony Green <green@redhat.com>
9254 * java/lang/StringBuffer.java: No need to NULL out remainder of
9255 buffer since ensureCapacity_unsynchronized will have done this for
9258 2004-02-20 Michael Koch <konqueror@gmx.de>
9260 * gnu/java/net/protocol/jar/Handler.java
9261 (): Removed unneeded check for file != null. java.net.URL.getFile()
9262 returns an empty string but never null.
9264 2004-02-20 Michael Koch <konqueror@gmx.de>
9266 * gnu/gcj/convert/Convert.java
9267 (main): Use equals() to compare strings.
9269 2004-02-20 Michael Koch <konqueror@gmx.de>
9271 * javax/swing/AbstractButton.java: Made several constants final.
9272 (getRolloverSelectedIcon): Made public.
9273 (getSelectedIcon): Made public.
9275 2004-02-16 Per Bothner <per@bothner.com>
9277 * java/nio/CharBufferImpl.java: Inline super constructor.
9278 * java/nio/DoubleBufferImpl.java: Likewise.
9279 * java/nio/FloatBufferImpl.java: Likewise.
9280 * java/nio/IntBufferImpl.java: Likewise.
9281 * java/nio/LongBufferImpl.java: Likewise.
9282 * java/nio/ShortBufferImpl.java: Likewise.
9283 * java/nio/CharBuffer.java: Remove unused constructor.
9284 * java/nio/DoubleBuffer.java: Likewise.
9285 * java/nio/FloatBuffer.java: Likewise.
9286 * java/nio/IntBuffer.java: Likewise.
9287 * java/nio/LongBuffer.java: Likewise.
9288 * java/nio/ShortBuffer.java: Likewise.
9289 * java/nio/CharViewBufferImpl.java: New convenience constructor.
9290 Fix buggy call to super constructor.
9291 * java/nio/DoubleViewBufferImpl.java: Likewise.
9292 * java/nio/FloatViewBufferImpl.java: Likewise.
9293 * java/nio/IntViewBufferImpl.java: Likewise.
9294 * java/nio/LongViewBufferImpl.java: Likewise.
9295 * java/nio/ShortViewBufferImpl.java: Likewise.
9297 * java/nio/ByteBuffer.java (endian): Make non-private so other
9298 java.nio classes can inherit it.
9299 (<init>): Don't bother clearing array_offset.
9300 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
9301 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
9302 Remove redundant test.
9304 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
9305 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
9306 Use new XxxViewBufferImpl constructors.
9307 * java/nio/MappedByteBufferImpl.java: Likewise.
9308 * java/nio/DirectByteBufferImpl.java: Likewise.
9310 * java/nio/ByteBufferImpl.java: Remove one constructor.
9311 Inline super in remaining constructor.
9312 * java/nio/ByteBuffer.java: Remove unused constructor.
9314 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
9316 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
9317 * java/nio/DirectByteBufferImpl.java (owner): New field.
9318 (offset): Remove unused field.
9319 (<init>): Modify one and add another constructor. Change callers.
9320 (allocateDirect): Removed - not used.
9321 (getImpl, putImpl): Make static and pass address explicitly,
9322 to make them useful for MappedByteBufferImpl.
9323 (get, put): Check for underflow. Modify for new getImpl.
9324 (getImpl): New native method where target is array.
9325 (get(byte[],int,int)): Use the above.
9326 (adjustAddress): New static native method.
9327 (slice, duplicate, asReadOnly): New implementations.
9328 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
9329 adjustAddress): New or updated native methods.
9331 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
9333 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
9334 overflow of fieldmapping.
9336 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
9338 * javax/swing/undo/UndoManager.java: Re-written from scratch.
9340 2004-02-14 Per Bothner <per@bothner.com>
9342 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
9343 Set closed before calling implCloseChannel, as in the spec.
9345 2004-02-09 Graydon Hoare <graydon@redhat.com>
9347 * javax/swing/ToggleButtonModel.java: Remove dead class.
9348 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
9349 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
9350 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
9351 * Makefile.am: Update for new and removed files.
9352 * Makefile.in: Regenerate.
9354 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
9355 * javax/swing/AbstractButton.java
9356 (AbstractButton): Initialize fields correctly in ctor.
9357 * javax/swing/JCheckbox.java
9358 (JCheckBox): Override painting flags.
9359 * javax/swing/DefaultButtonModel.java: Conform to sun.
9360 * javax/swing/JComponent.java (paint): Fill with background color
9362 (processComponentKeyEvent)
9365 (processMouseMotionEvent): Remove event-consuming empty methods.
9366 (getUIClassID): Return "ComponentUI" not "JComponent"
9367 * javax/swing/JFrame.java: Remove some debugging chatter.
9368 (JFrame): Subscribe to window events.
9369 * javax/swing/JRadioButton.java
9370 (JRadioButton): Override painting flags.
9371 * javax/swing/JRootPane.java
9372 (JRootPane): Set background from UIDefaults.
9373 * javax/swing/JToggleButton.java
9374 (ToggleButtonModel): New inner class.
9375 (JToggleButton): Override layout alighment.
9376 * javax/swing/SwingUtilities.java:
9377 (getLocalBounds): Return width and height, not x and y.
9378 (calculateInnerArea): Use local bounds, not bounds.
9379 (layoutCompoundLabel): Provide overridden form.
9380 (layoutCompoundLabel): Correct bugs.
9381 * javax/swing/UIDefaults.java: Correct comment.
9382 * javax/swing/plaf/basic/BasicButtonUI.java:
9383 Move most logic into defaults, external listener.
9384 (paintIcon): Implement icon painting.
9385 (paint): Fix state painting to conform to changes in model.
9386 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
9387 Remove most dead/wrong methods.
9388 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
9389 * javax/swing/plaf/basic/BasicIconFactory.java:
9390 (DummyIcon): New class.
9391 (getMenuItemCheckIcon)
9392 (getMenuItemArrowIcon)
9394 (getCheckBoxMenuItemIcon)
9395 (getRadioButtonMenuItemIcon)
9396 (createEmptyFrameIcon): Return DummyIcons, not null.
9397 (getCheckBoxIcon): Implement an icon that looks like sun's.
9398 (getRadioButtonIcon): Implement an icon that looks like sun's.
9399 * javax/swing/plaf/basic/BasicLookAndFeel.java
9400 (initComponentDefaults): Fix impossible values, add some missing.
9401 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
9402 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
9403 Remove most dead/wrong methods.
9405 (getDefaultIcon): New method.
9406 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
9407 Remove most dead/wrong methods.
9408 * javax/swing/plaf/metal/MetalLookAndFeel.java
9409 (getDefaults): Return super.getDefaults(), not BasicDefaults.
9410 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
9411 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
9412 Implement "clearing" as drawing, when on pixmap drawables.
9414 * javax/swing/JButton.java (getUIClassID):
9415 * javax/swing/JCheckBox.java (getUIClassID):
9416 * javax/swing/JEditorPane.java (getUIClassID):
9417 * javax/swing/JLabel.java (getUIClassID):
9418 * javax/swing/JList.java (getUIClassID):
9419 * javax/swing/JOptionPane.java (getUIClassID):
9420 * javax/swing/JPanel.java (getUIClassID):
9421 * javax/swing/JPasswordField.java (uiClassID):
9422 * javax/swing/JRadioButton.java (getUIClassID):
9423 * javax/swing/JRootPane.java (getUIClassID):
9424 * javax/swing/JScrollPane.java (getUIClassID):
9425 * javax/swing/JTabbedPane.java (getUIClassID):
9426 * javax/swing/JToggleButton.java (getUIClassID):
9427 * javax/swing/JTree.java (getUIClassID):
9428 * javax/swing/JViewport.java (getUIClassID):
9429 * javax/swing/text/JTextComponent.java (getUIClassID):
9430 Return "fooUI" not "Jfoo"
9432 2004-02-11 Michael Koch <konqueror@gmx.de>
9434 * java/net/DatagramSocket.java
9435 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
9437 (setBroadcast): Likewise.
9438 * java/net/MulticastSocket.java
9439 (setLoopbackMode): Likewise.
9440 * java/net/ServerSocket.java
9441 (setReuseAddress): Likewise.
9442 * java/net/Socket.java
9443 (setTcpNoDelay): Likewise.
9444 (setSoLinger): Likewise.
9445 (setOOBInline): Likewise.
9446 (setKeepAlive): Likewise.
9447 (setReuseAddress): Likewise.
9448 * java/net/URLConnection.java
9449 (setContentHandler): Replace == with equals().
9450 * java/net/URLStreamHandler.java
9451 (hostSEquals): Fix checking host addresses.
9452 (toExternalForm): Dont check protocol for null. We know already its
9455 2004-02-10 David Jee <djee@redhat.com>
9457 * java/awt/BorderLayout.java
9458 (calcCompSize): Invisible components get zero dimensions.
9459 * java/awt/Button.java
9460 (setLabel): Set actionCommand.
9461 * java/awt/Component.java
9462 (show): Invalidate component and parent container.
9465 2004-02-10 David Jee <djee@redhat.com>
9467 * java/awt/GridBagLayout.java
9468 (GridBagLayout): New private field, internalcomptable.
9469 (lookupInternalConstraints): New method.
9470 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
9471 (GetLayoutInfo): Reimplement.
9472 (calcCellSizes): Ignore rows/columns with size 0.
9474 2004-02-10 Michael Koch <konqueror@gmx.de>
9476 * gnu/java/awt/EmbeddedWindow.java
9477 (setHandle): Use java.awt.Component.getPeer() instead of
9478 java.awt.Component.peer directly.
9480 2004-02-10 David Jee <djee@redhat.com>
9482 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
9483 (gtkSetLabel): New native method definition.
9484 (setLabel): Use gtkSetLabel.
9485 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
9486 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
9488 2004-02-10 Alan Modra <amodra@bigpond.net.au>
9490 * include/powerpc-signal.h: Revert 2004-01-21 change.
9491 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
9492 from syscall for ppc32 versions.
9494 2004-02-08 Per Bothner <per@bothner.com>
9496 * java/nio/ByteBuffer.java (shiftDown): New helper method.
9497 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
9498 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
9499 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
9500 Pass ByteOrder parameter to most methods, since the underlying
9501 ByteBuffer's order isn't always what we should use.
9502 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
9503 * java/nio/DirectByteBufferImpl.java: Likewise.
9504 Use ByteBufferHelper methods.
9505 * java/nio/MappedByteBufferImpl.java: Likewise.
9506 (compact): Use shiftDown.
9507 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
9508 (get, put): Use ByteBufferHelper.
9509 (compact): Use new shiftDown method.
9510 (duplicate(boolean)): New helper method.
9511 (duplicate, asReadOnlyBuffer): Use it.
9512 (order): Return endian field.
9513 * java/nio/DoubleViewBufferImpl.java: Likewise.
9514 * java/nio/FloatViewBufferImpl.java: Likewise.
9515 * java/nio/IntViewBufferImpl.java: Likewise.
9516 * java/nio/LongViewBufferImpl.java: Likewise.
9517 * java/nio/ShortViewBufferImpl.java: Likewise.
9518 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
9519 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
9520 (compact): Re-implement using shiftDown.
9522 2004-02-08 Andreas Jaeger <aj@suse.de>
9524 * include/x86_64-signal.h: Fix typo.
9526 2004-02-08 Diego Novillo <dnovillo@redhat.com>
9528 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
9530 (HANDLE_DIVIDE_OVERFLOW): Likewise.
9532 2004-02-06 Michael Koch <konqueror@gmx.de>
9534 * java/io/ObjectInputStream.java
9535 (currentClassLoader): Reverted to old version of this method.
9537 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
9539 * java/io/ObjectInputStream.java: Made all calls
9540 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
9541 use cached info from ObjectStreamClass. (readClassDescriptor):
9542 Cache more information in ObjectStreamClass. (processResolution,
9543 readFields): Use cached info from ObjectStreamClass.
9544 (newObject): Throw exception instead of returning null for failure.
9545 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
9546 setCharField, setDoubleField, setFloatField, setIntField,
9547 setLongField, setShortField, setObjectField, readObjectParams):
9548 Removed. (dumpElement, dumpElementln): Removed dump flag condition
9550 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
9551 (setClass): Added call to cacheMethods() (findMethod): New method.
9552 (cacheMethods): New method. (ObjectStreamClass): Added call to
9553 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
9554 AccessController.doPrivileged to invoke setAccessible.
9555 (readObjectMethod, readResolveMethod, realClassIsSerializable,
9556 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
9558 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
9559 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
9560 isPrimitive): Made safe for cases where type == null.
9561 (setBooleanField, setByteField, setCharField, setShortField,
9562 setIntField, setLongField, setFloatField, setDoubleField,
9563 setObjectField): New methods.
9565 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
9567 * java/awt/Component.java (getFont): Return a default font
9570 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
9571 (Scrollbar (int, int, int, int, int)): Make default page
9573 (setValues): Only call peer.setValues if one of the values has
9575 (generateName): New method.
9576 (getUniqueLong): New method.
9577 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
9578 (range_scrollbar): Remove structure.
9579 (post_adjustment_event): Remove function.
9580 (post_change_event): Accept jobject argument.
9581 (create): Cast jints to gdoubles. Round scrollbar values to the
9582 nearest integer. Clamp min, max and value settings.
9583 (connectJObject): Connect hook to widget->window.
9584 (connectSignals): Remove range_scrollbar structure variables.
9585 Remove "move-slider" connection. Pass global peer reference to
9586 "value-changed" callback.
9587 (setLineIncrement): Cast jint value to gdouble.
9588 (setPageIncrement): Likewise.
9589 (setValues): Likewise. Clamp min, max and value settings.
9591 2004-02-05 Michael Koch <konqueror@gmx.de>
9593 * javax/swing/AbstractCellEditor.java
9594 (getCellEditorValue): Removed.
9595 * javax/swing/Box.java: Reformated.
9596 (serialVersionUID): New field.
9597 * javax/swing/ButtonGroup.java:
9598 Removed some weird whitespace.
9599 * javax/swing/CellEditor.java: Reformated.
9600 * javax/swing/CellRendererPane.java
9601 (serialVersionUID): New field.
9602 (AccessibleCellRendererPaneserialVersionUID): New field.
9603 * javax/swing/DefaultListModel.java
9604 (serialVersionUID): New field.
9605 * javax/swing/JEditorPane.java
9606 (serialVersionUID): New field.
9607 (setPage): Throws IOException.
9608 (addHyperlinkListener): Implemented.
9609 (removeHyperlinkListener): Implemented.
9610 (getHyperlinkListener): New method.
9611 * javax/swing/JFileChooser.java
9612 (serialVersionUID): New field.
9613 (AccessibleJFileChooser.serialVersionUID): New field.
9614 (addActionListener): Implemented.
9615 (removeActionListener): Implemented.
9616 (getActionListeners): New method.
9617 * javax/swing/JFormattedTextField.java
9618 (serialVersionUID): New field.
9619 (AbstractFormatter.serialVersionUID): New field.
9620 (clone): Throws CloneNotSupportedException
9621 (setEditValid): Add missing argument.
9622 (stringToValue): Throws ParseExcpetion.
9623 (valueToString): Throws ParseException.
9624 (commitEdit): Throws ParseException.
9625 * javax/swing/JLabel.java
9626 (serialVersionUID): New field.
9627 * javax/swing/JList.java
9628 (serialVersionUID): New field.
9629 (addListSelectionListener): Reformated.
9630 (removeListSelectionListener): Reformated.
9631 (getListSelectionListeners): New method.
9632 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
9634 (serialVersionUID): New field.
9635 * javax/swing/table/AbstractTableModel.java
9636 (getValueAt): Removed.
9637 (getColumnCount): Removed.
9638 (getRowCount): Removed.
9640 2004-02-05 Michael Koch <konqueror@gmx.de>
9642 * java/awt/datatransfer/DataFlavor.java
9643 (imageFlavor): Javadoc added.
9644 (javaJVMLocalObjectType): Fixed.
9646 2004-02-05 Michael Koch <konqueror@gmx.de>
9648 * java/lang/Thread.java
9649 (Thread): Reordered.
9650 (setContextClassLoader): Fixed javadoc comment.
9651 (setPriority): Reordered.
9653 (initialize_native): Reordered.
9654 (gen_name): Reordered.
9656 2004-02-05 Michael Koch <konqueror@gmx.de>
9658 * java/lang/Thread.java: Reordered fields, reformated much code,
9659 no functional changes, some variables renamed, javadoc comments
9662 2004-02-05 Michael Koch <konqueror@gmx.de>
9664 * java/util/zip/Deflater.java,
9665 java/util/zip/DeflaterOutputStream.java,
9666 java/util/zip/GZIPInputStream.java:
9667 Reformated and javadoc comments merged from classpath.
9669 2004-02-05 Michael Koch <konqueror@gmx.de>
9671 * gnu/java/nio/NIOServerSocket.java
9672 (impl): Unused, removed.
9673 * gnu/java/nio/SocketChannelImpl.java
9674 (finnishConnect): Don't throw NoConnectionPendingException if not
9675 connected or no connection pending.
9677 2004-02-02 Graydon Hoare <graydon@redhat.com>
9679 * javax/swing/SwingUtilities.java: Many new functions.
9680 * java/awt/Container.java (LightweightDispatcher): Reimplement.
9681 * javax/swing/basic/BasicGraphicsUtils.java
9682 (getPreferredButtonSize): Start layout from top-left corner.
9684 2004-02-04 Olga Rodimina <rodimina@redhat.com>
9686 * java/awt/geom/AffineTransform.java:
9687 Corrected comments on the field definitions for
9689 (shear): Fixed few errors that caused shear
9690 transformation to be performed incorrectly.
9691 (createInverse): Fixed to return correct
9692 inverse of the given matrix.
9694 2004-02-03 Tom Tromey <tromey@redhat.com>
9696 * java/lang/natPosixProcess.cc (startProcess): Handle case where
9697 PATH or LD_LIBRARY_PATH is not set in parent environment.
9699 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
9701 * gnu/java/awt/peer/gtk/GtkListPeer.java,
9702 java/awt/BorderLayout.java, java/awt/CardLayout.java,
9703 java/awt/CheckboxGroup.java, java/awt/Choice.java,
9704 java/awt/Component.java, java/awt/Container.java,
9705 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
9706 java/awt/LayoutManager2.java, java/awt/List.java,
9707 java/awt/Menu.java, java/awt/MenuBar.java,
9708 java/awt/MenuItem.java, java/awt/Polygon.java,
9709 java/awt/Rectangle.java, java/awt/ScrollPane.java,
9710 java/awt/Scrollbar.java, java/awt/TextArea.java,
9711 java/awt/TextField.java,
9712 java/awt/image/renderable/RenderContext.java,
9713 javax/swing/JApplet.java: Fix handling of alias methods, where a
9714 method has been deprecated in favour of a new one with the same
9715 funtion but a different name. Put the method implementation in
9716 the deprecated method and have the new method call the
9717 deprecated one. Make all other code call the new method.
9719 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
9721 * gnu/java/nio/DatagramChannelImpl.java
9722 (inChannelOperation): New field.
9723 (isInChannelOperation): New accessor.
9724 (setInChannelOperation): New modifier.
9725 (receive): Use capacity() - position() of destination
9726 buffer instead of remaining(). Set and reset our "in
9727 channel operation indicator" before and after delegating
9728 the receive to our datagram socket. Removed testing code.
9729 Update destination buffer's current position if it is
9730 backed by a byte array (hasArray() is true).
9731 (send): Set and reset our "in channel operation indicator"
9732 before and after delegating the send to our datagram socket.
9733 Removed testing code. Update source buffer's current position
9734 if it is backed by a byte array (hasArray() is true).
9735 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
9736 Use capacity() - position() of destination buffer instead
9738 * java/net/DatagramSocket.java (receive): Don't throw an
9739 IllegalBlockingModeException if we have a non-blocking
9740 channel which initiated this operation.
9743 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
9745 * configure.in: Add pkgconfig check for glib and gthread.
9746 * configure: Regenerate.
9748 2004-02-01 Michael Koch <konqueror@gmx.de>
9750 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
9752 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
9753 * verify.cc (debug_print): Mark 'fmt' unused.
9755 2004-01-30 Michael Koch <konqueror@gmx.de>
9757 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
9758 * configure: Regenerated.
9759 * glib-2.0.m4: Removed.
9760 * gtk-2.0.m4: Removed.
9761 * libart.m4: Removed.
9764 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
9766 * gnu/java/net/PlainSocketImpl.java
9767 (inChannelOperation): New field.
9768 (isInChannelOperation): New accessor.
9769 (setInChannelOperation): New modifier.
9770 * gnu/java/nio/ServerSocketChannelImpl.java
9771 (accept): Set and reset our server socket's PlainSocketImpl's
9772 "in channel operation" indicator before and after delegating
9773 the accept to our server socket.
9774 * gnu/java/nio/SocketChannelImpl.java
9775 (connect): Set and reset our socket's PlainSocketImpl's "in channel
9776 operation" indicator before and after delegating the operation to
9780 * java/net/ServerSocket.java (implAccept): Don't throw an
9781 IllegalBlockingModeException if we have a non-blocking
9782 channel which initiated this accept operation.
9783 * java/net/Socket.java (connect): Don't throw an
9784 IllegalBlockingModeException if we have a non-blocking
9785 channel which initiated this connect operation.
9786 * java/nio/channels/spi/AbstractSelectableChannel.java
9787 (configureBlocking): Only call implConfigureBlocking() if
9788 the desired blocking mode is different from our current one.
9790 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
9792 * java/io/BufferedReader.java (sbuf): New field.
9793 (readLine): Use String.valueOf instead of new String() as per
9794 Per Bothner's suggestion. Use instance sbuf field instead of a
9795 local StringBuffer instance.
9796 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
9797 caller's buffer to refill().
9798 (read(void)): Pass our internal work buffer to refill if our
9799 input queue is empty.
9800 (refill): Changed return type to int. Use the specified buffer
9801 instead of our work buffer as per Bryce McKinlay's suggestion.
9802 Return the number of characters read or -1 for EOF.
9804 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9806 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
9808 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9810 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
9811 * Makefile.in: Re-generated.
9812 * gnu/awt/xlib/XFontPeer.java: New file.
9813 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
9814 (setClip): Commented out debug printout.
9815 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
9816 (getFontPeer): Return XFontPeer.
9817 (getLocalGraphicsEnvironment): New method.
9818 (getClasspathFontPeer): New method.
9819 (createFont): New method.
9821 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9823 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
9826 2004-01-29 Kim Ho <kho@redhat.com>
9828 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9829 (gtkLayoutSetVisible): New method
9830 (setMenuBar): Hide layout before setting MenuBar
9831 and reshow it after.
9832 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9833 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
9835 2004-01-28 Michael Koch <konqueror@gmx.de>
9837 * gnu/java/lang/ClassHelper.java
9838 (getPackagePortion): Removed.
9840 2004-01-28 Michael Koch <konqueror@gmx.de>
9842 * javax/swing/JComponent.java
9843 (listenerList): Initalize globally.
9844 (ancestor_list): Removed.
9845 (veto_list): Removed.
9846 (change_list): Removed.
9847 (get_veto_list): Removed.
9848 (get_change_list): Removed.
9849 (get_ancestor_list): Removed.
9850 (removeAncestorListener): Reimplemented.
9851 (removePropertyChangeListener): Likewise.
9852 (removeVetoableChangeListener): Likewise.
9853 (addAncestorListener): Likewise.
9854 (addPropertyChangeListener): Likewise.
9855 (addVetoableChangeListener): Likewise.
9856 (getListeners): New method.
9857 (getAncestorListeners): Likewise.
9858 (getVetoableChangeListeners): Likewise.
9859 (fireVetoableChange): Throws PropertyVetoException.
9860 * javax/swing/JEditorPane.java
9861 (JEditorPane): Throws IOException.
9863 2004-01-28 David Jee <djee@redhat.com>
9865 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9866 (create): Set the default foreground color to
9867 java.awt.SystemColor.windowText.
9869 2004-01-27 Michael Koch <konqueror@gmx.de>
9871 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
9872 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
9873 Reindented to merge with classpath.
9875 2004-01-27 David Jee <djee@redhat.com>
9877 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9878 (addExposeFilter): Handle GtkFramePeer separately.
9879 (removeExposeFilter): Likewise.
9881 2004-01-27 Michael Koch <konqueror@gmx.de>
9883 * gnu/java/net/protocol/http/Connection.java
9884 (getOutputStream): Fixed typo.
9886 2004-01-27 Michael Koch <konqueror@gmx.de>
9888 * java/lang/Class.java
9889 (getConstructor): Removed SecurityException from throws clause.
9890 (_getConstructors): Likewise.
9891 (getConstructors): Likewise.
9892 (getDeclaredConstructor): Likewise.
9893 (getDeclaredClasses): Likewise.
9894 (getDeclaredConstructors): Likewise.
9895 (getDeclaredField): Likewise.
9896 (getDeclaredMethod): Likewise.
9897 (getDeclaredMethods): Likewise.
9898 (getField): Likewise.
9899 (getMethod): Likewise.
9900 (getMethods): Likewise.
9902 2004-01-27 Kim Ho <kho@redhat.com>
9904 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9905 (removeMenuBarPeer): Remove MenuBarPeer argument.
9906 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
9907 (dispose): Call native method.
9908 * java/awt/Frame.java (setMenuBar): Create and remove
9909 MenuBar peers only if the Frame has a peer.
9910 (addNotify): Create the MenuBar peer if one exists.
9911 (removeNotify): Remove MenuBar peer if one exists.
9912 * java/awt/Menu.java: Fix imports.
9913 (addNotify): Don't use full class name.
9914 (removeNotify): Call removeNotify on all children.
9915 * java/awt/MenuBar.java (removeNotify): Call
9916 removeNotify on all children.
9917 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9918 (removeMenuBarPeer): Remove MenuBarPeer argument.
9919 Iterate through children to find the Frame's MenuBar.
9920 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
9922 (dispose): Remove references to the MenuComponent.
9924 2004-01-27 Michael Koch <konqueror@gmx.de>
9926 * javax/swing/AbstractCellEditor.java: Reformated.
9927 * javax/swing/DefaultListSelectionModel.java
9928 (listenerList): Made protected.
9929 (addListSelectionListener): Javadoc added.
9930 (removeListSelectionListener): Likewise.
9931 (getListeners): Likewise.
9932 (getListSelectionListeners): Likewise.
9933 * javax/swing/JComboBox.java: Merged copyright year.
9934 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
9936 2004-01-26 Andrew Haley <aph@redhat.com>
9938 * javax/swing/table/JTableHeader.java: Extend JComponent
9940 2004-01-26 Kim Ho <kho@redhat.com>
9942 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
9945 2004-01-26 Kim Ho <kho@redhat.com>
9947 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
9949 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
9950 height and let the Layout Managers readjust anything that
9952 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9953 (moveLayout): New method. Shift everything in the Gtk
9954 layout in the Y direction by an offset.
9956 2004-01-26 David Jee <djee@redhat.com>
9958 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
9959 (handleEvent): Implemented. Handles PaintEvents.
9960 (paint): Implemented. Use GTK native methods to queue updates
9961 for this heavyweight peer.
9962 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
9963 (handleEvent): Removed.
9964 * java/awt/Component.java
9965 (paint): Implemented. Explictly paint the heavyweight peer.
9966 (update): Clear the background for heavyweight components.
9967 (paintAll): No need to call peer.paint() anymore.
9968 (processEvent): Don't process PaintEvents here. It's now done in
9969 the peer's handleEvent().
9970 (processPaintEvent): Removed.
9971 * java/awt/Container.java
9972 (paint): No need to call super.paint(). Visit heavyweight
9974 (update): Don't clear the background here. It's done in
9976 (visitChildren): Added check to not recurse into Containers.
9977 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9978 (filter_expose_event_handler): New method. Filter unwanted
9979 expose events while painting heavyweight peers.
9980 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
9981 New method. Connect filter and block pre_event_handler.
9982 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
9983 New method. Disconnect filter and unblock pre_event_handler.
9984 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
9985 New method. Invalidate and update given area.
9986 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
9987 (pre_event_handler): Add checks for unwanted expose events.
9989 2004-01-26 David Jee <djee@redhat.com>
9991 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9992 (find_bg_color_widget): For GtkButton, return its child.
9994 2004-01-26 Kim Ho <kho@redhat.com>
9996 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
9998 (setMenuBar): Grab MenuBar height and change insets.
9999 (setBounds): Account for MenuBar height.
10000 (postInsetsChangedEvent): Ditto.
10001 (postSizeAllocateEvent): Remove.
10002 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10003 (menubar_resize_cb): Remove
10004 (setMenuBarPeer): Remove callback.
10005 (getMenuBarHeight): Use size requisition instead of
10008 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
10010 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
10011 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
10013 (setColumns): Remove FIXME -- peer will retrieve number of
10014 columns by calling getColumns.
10015 (setRows): Likewise for number of rows.
10016 (next_text_number): New field.
10017 (paramString): Fix param string.
10018 (generateName): New method.
10019 (getUniqueLong): New method.
10021 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
10023 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
10024 image observer of image loading status.
10025 (getImage (String)): Start image production.
10026 (getImage (URL)): Likewise.
10028 2004-01-25 Michael Koch <konqueror@gmx.de>
10030 * java/lang/Class.java: Imports reworked, reformated.
10031 (Class): Javadoc added.
10032 (forName): Likewise.
10033 (getClasses): Likewise.
10034 (getClassLoader): Likewise.
10035 (getComponentType): Likewise.
10036 (getConstructor): Likewise.
10037 (getConstructors): Likewise.
10038 (getDeclaredConstructor): Likewise.
10039 (getDeclaredClasses): Likewise.
10040 (getDeclaredConstructors): Likewise.
10041 (getDeclaredField): Likewise.
10042 (getDeclaredMethod): Likewise.
10043 (getDeclaredMethods): Likewise.
10044 (getDeclaringClass): Likewise.
10045 (getField): Likewise.
10046 (getInterfaces): Likewise.
10047 (getMethod): Likewise.
10048 (getMethods): Likewise.
10049 (getModifiers): Likewise.
10050 (getName): Likewise.
10051 (getResource): Likewise.
10052 (getResourceAsStream): Likewise.
10053 (getSigners): Likewise.
10054 (setSigners): Likewise.
10055 (getSuperclass): Likewise.
10056 (isArray): Likewise.
10057 (isAssignableFrom): Likewise.
10058 (isInstance): Likewise.
10059 (isInterface): Likewise.
10060 (isPrimitive): Likewise.
10061 (newInstance): Likewise.
10062 (getProtectionDomain): Likewise.
10063 (toString): Likewise.
10065 (initializeClass): Likewise.
10066 (finalize): Likewise.
10068 2004-01-24 Michael Koch <konqueror@gmx.de>
10070 * gnu/java/net/protocol/jar/Connection.java
10071 (hdrHash): Removed.
10073 (gotHeaders): Removed.
10074 (getHeaderField): Removed.
10075 (getHeaderFields): Removed.
10076 (getHeaderFieldKey): Removed.
10078 (getField): Removed.
10079 (getHeaders): Removed.
10081 2004-01-24 Michael Koch <konqueror@gmx.de>
10083 * Makefile.am: Added library version to gtk peer lib.
10084 * Makefile.in: Regenerated.
10086 2004-01-24 Michael Koch <konqueror@gmx.de>
10088 * java/util/zip/InflaterInputStream.java: Merged class documentation
10091 2004-01-21 Jakub Jelinek <jakub@redhat.com>
10093 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
10094 header. For __powerpc64__ provide the default-signal.h definitions
10096 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
10097 instead of the dummy definitions.
10098 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
10099 (powerpc64*-*): Remove with_libffi_default.
10100 Only add -mminimal-toc for 64-bit compilations.
10101 * configure.in: Use powerpc-signal.h on powerpc64 as well.
10102 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
10103 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
10104 * configure: Rebuilt.
10106 2004-01-23 Michael Koch <konqueror@gmx.de>
10108 * gnu/java/nio/FileLockImpl.java: Compile fixes.
10110 2004-01-23 Michael Koch <konqueror@gmx.de>
10112 * java/lang/VMClassLoader.java: Reworked imports.
10114 2004-01-23 Michael Koch <konqueror@gmx.de>
10116 * javax/swing/AbstractAction.java: Reformated.
10118 2004-01-23 Michael Koch <konqueror@gmx.de>
10120 * java/text/CollationElementIterator.java:
10121 (setText): New method.
10123 2004-01-23 Michael Koch <konqueror@gmx.de>
10125 * gnu/java/nio/FileLockImpl.java:
10126 Fixed filename in copyright.
10127 (released): Removed.
10128 (finalize): New method.
10129 * gnu/java/nio/natFileLockImpl.cc
10130 (releaseImpl): Implemented.
10131 * java/nio/channels/FileChannelImpl.java:
10133 (lock): Implemented.
10134 (lockImpl): New method.
10135 (tryLock): Implemented.
10136 (tryLockImpl): New method.
10137 * java/nio/channels/natFileChannelImpl.cc
10138 (lockImpl): New method.
10139 (tryLockImpl): New method.
10141 2004-01-23 Michael Koch <konqueror@gmx.de>
10143 * java/io/FileDescriptor.java
10144 (lock): New method.
10145 (tryLock): New method.
10146 (unlock): New method.
10147 * java/io/natFileDescriptorEcos.cc
10148 (lock): New method.
10149 (tryLock): New method.
10150 (unlock): New method.
10151 * java/io/natFileDescriptorPosix.cc
10152 (lock): New method.
10153 (tryLock): New method.
10154 (unlock): New method.
10155 * java/io/natFileDescriptorWin32.cc
10156 (lock): New method.
10157 (tryLock): New method.
10158 (unlock): New method.
10160 2004-01-23 Michael Koch <konqueror@gmx.de>
10162 * java/io/FileDescriptor.java
10163 (sync): Moved around, added javadoc.
10168 (setLength): Likewise.
10170 (getLength): Likewise.
10171 (getFilePointer): Likewise.
10173 (available): Likewise.
10174 (finalize): Likewise.
10176 2004-01-23 Michael Koch <konqueror@gmx.de>
10178 * javax/swing/AbstractAction.java: Reformated.
10179 (getPropertyChangeListeners): New method.
10180 * javax/swing/AbstractCellEditor.java: Reformated.
10181 (getCellEditorListeners): New method.
10182 * javax/swing/DefaultListSelectionModel.java
10183 (listenerList): New field.
10184 (listeners): Removed.
10185 (get_listeners): Removed.
10186 (addListSelectionListener): Rewritten.
10187 (removeListSelectionListener): Rewritten.
10188 (getListSelectionListeners): New method.
10189 (getListeners): New method.
10190 * javax/swing/JComboBox.java: Imports reworked.
10191 (addActionListener): Implemented.
10192 (removeActionListener): Implemented.
10193 (addItemListener): Implemented.
10194 (removeItemListener): Implemented.
10195 (addPopupMenuListener): Implemented.
10196 (removePopupMenuListener): Implemented.
10197 (getActionListeners): New method.
10198 (getItemListeners): New method.
10199 (getPopupMenuListeners): New method.
10201 2004-01-23 Michael Koch <konqueror@gmx.de>
10203 * gnu/java/net/protocol/http/Connection.java
10204 (connect): Don't initialize bufferedOutputStream if not needed.
10205 (sendRequest): Set property for content length if content is present.
10206 Write content only if present.
10207 (getOutputStream): Check if already connected, dont connect,
10208 initalize bufferedOutputStream if needed.
10210 2004-01-23 Michael Koch <konqueror@gmx.de>
10212 * java/io/FileDescriptor.java
10213 (in, out, err): Added javadoc.
10214 (static): Merged loading code.
10215 (fd, position): Moved around.
10217 2004-01-23 Michael Koch <konqueror@gmx.de>
10219 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
10222 2004-01-23 Michael Koch <konqueror@gmx.de>
10224 * java/lang/Class.java,
10225 java/lang/Object.java,
10226 java/lang/Thread.java: Merged copyright with classpath.
10228 2004-01-23 Michael Koch <konqueror@gmx.de>
10230 * java/io/FileDescriptor.java: Merged copyright with classpath to
10231 start merging this class.
10233 2004-01-22 Tom Tromey <tromey@redhat.com>
10236 * testsuite/libjava.lang/pr13107_2.xfail: New file.
10237 * testsuite/libjava.lang/pr13107_3.xfail: New file.
10238 * testsuite/libjava.lang/pr13107_3.java: New file.
10239 * testsuite/libjava.lang/pr13107_3.out: New file.
10240 * testsuite/libjava.lang/pr13107_2.java: New file.
10241 * testsuite/libjava.lang/pr13107_2.out: New file.
10242 * testsuite/libjava.lang/pr13107.java: New file.
10243 * testsuite/libjava.lang/pr13107.out: New file.
10244 * verify.cc (jsr_ptrs): Removed.
10245 (entry_points): Likewise.
10246 (struct subr_info): Likewise.
10247 (struct subr_entry_info): Likewise.
10248 (type_val::unused_by_subroutine_type): Likewise.
10249 (type::merge): Don't handle unused_by_subroutine_type.
10250 (type::print): Likewise.
10251 (state::flags): Removed.
10252 (state::subroutine): Likewise.
10253 (state::seen_subrs): Likewise.
10254 (state::NO_STACK): Likewise.
10255 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
10256 (state): Updated all methods.
10257 (state::clean_subrs): Removed.
10258 (state::state): Removed `ret_semantics' flag.
10259 (state::copy): Likewise.
10260 (state::add_subr): Removed.
10261 (state::enter_subroutine): Likewise.
10262 (type::set_return_address): New method.
10263 (handle_jsr_insn): Set return address on the type. Always
10264 invalidate PC after call.
10265 (check_nonrecursive_call): Removed.
10266 (~_Jv_BytecodeVerifier): Updated.
10267 (branch_prepass): Removed special handling of jsr.
10268 (note_branch_target): Likewise.
10269 (get_subroutine): Removed.
10270 (state::merge): Don't merge subroutines and don't handle
10271 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
10272 (state::note_variable): Removed.
10273 (state::is_unmerged_ret_state): Likewise.
10274 (state::print): Updated.
10275 (set_variable): Likewise.
10276 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
10277 and jsr_semantics arguments. Updated for new reverification
10279 (pop_jump): Rewrote.
10280 (construct_primitive_array_type): Updated.
10281 (state::next): Removed.
10282 (INVALID_STATE): New define.
10283 (state::INVALID): Removed.
10284 (state::NO_NEXT): New value.
10285 (state::pc, state::next): New fields.
10286 (state::get_pc): New method.
10287 (next_verify_pc): Removed.
10288 (next_verify_state): New field.
10289 (verify_instructions_0): Always check for falling off end.
10290 (linked): New type.
10291 (linked_utf8): Removed.
10292 (states): Changed type.
10293 (type::state_mergeable_p): New method.
10294 (state::state_mergeable_p): Likewise.
10295 (handle_ret_insn): Removed most code.
10296 (state::reverify): New method.
10297 (add_new_state): Likewise.
10298 (state::set_pc): Likewise.
10300 2004-01-22 Jeff Sturm <jsturm@one-point.com>
10303 * testsuite/libjava.compile/PR13733.java: New file.
10304 * testsuite/libjava.compile/PR13733.xfail: New file.
10306 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
10307 Michael Koch <konqueror@gmx.de>
10309 * javax/swing/table/DefaultTableCellRenderer.java
10310 (DefaultTableCellRenderer): Added javadoc for the class and for
10311 the constructor, Border instance, create an EmptyBorder.
10312 (UIResource): Removed the comment at the end of the class
10313 (setForeground): New method.
10314 (setBackground): New method.
10315 (updateUI): New method.
10316 (getTableCellRendererComponent): Rewritten with the help of
10317 dvholten and Stephane Meslin-Weber.
10318 (validate): New method.
10319 (repaint): New method.
10320 (firePropertyChange): New method.
10321 (setValue): New method.
10323 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
10325 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10326 (connectJObject): Replace printf calls with g_assert statements.
10327 Move property-notify-event signal connection to ...
10328 (connectSignals): Connect property-notify-event signal. Iterate
10329 through the vbox's children to find layout.
10331 2004-01-22 Graydon Hoare <graydon@redhat.com>
10333 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
10334 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
10335 Predicate static initialization on GtkToolkit.useGraphics2D().
10336 * java/awt/Component.java (processPaintEvent): Consume event.
10337 * javax/swing/AbstractButton.java: Reimplement, document.
10338 * javax/swing/DefaultButtonModel.java: Reimplement, document.
10339 * javax/swing/JComponent.java (paint): Use double buffer.
10340 (listenerList): Enable member.
10341 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
10342 * javax/swing/JToggleButton.java
10343 (JToggleButton): Modify model constructor.
10344 * javax/swing/SwingUtilities.java
10345 (layoutCompoundLabel): Adjust arithmetic.
10346 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
10347 * javax/swing/plaf/basic/BasicGraphicsUtils.java
10348 (getPreferredButtonSize): Include margins in calculation.
10349 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10350 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
10351 Receive up events from subordinate layout component.
10353 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
10355 * java/awt/Component.java (show): Set visible to true before
10358 2004-01-21 Kim Ho <kho@redhat.com>
10360 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
10362 (removeMenuBarPeer): Make package private.
10363 (setMenuBarPeer): Make package private.
10364 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10365 (menubar_resize_cb): Mark attributes unused.
10366 (getMenuBarHeight): ditto.
10368 2004-01-21 David Jee <djee@redhat.com>
10370 * java/awt/Container.java
10371 (LightweightDispatcher.handleEvent): Add an extra check to avoid
10372 dispatching MOUSE_ENTERED event twice. Translate the point for
10373 the mouse event target before dispatching the event.
10375 2004-01-20 Jakub Jelinek <jakub@redhat.com>
10377 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
10378 lib_org_w3c_dom_la_LDFLAGS): New.
10379 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
10380 * Makefile.in: Rebuilt.
10382 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
10384 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
10385 Calculate proper offsets for heavyweight components packed in
10386 lightweight containers.
10388 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
10389 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
10390 (native create): Add width parameter.
10391 (create): Calculate text entry width based on current font's
10392 metrics and number of columns. Set TextField's font if not
10393 already set. Call native create.
10394 (gtkEntryGetBorderWidth): New native method.
10395 (gtkEntryGetSize): Remove method.
10396 (getMinimumSize): Call minimumSize.
10397 (getPreferredSize): Call preferredSize.
10398 (minimumSize): Calculate minimum size based on backing
10399 GtkEntry's borders, font metrics and number of columns.
10400 (preferredSize): Likewise for preferred size.
10401 (get_border_width): New static function.
10403 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
10404 Override GtkWindowPeer's setResizable method to account for menu
10405 bar height when setting the frame's size.
10407 2004-01-19 Matthias Klose <doko@debian.org>
10409 * libtool-version: Increased `current' to 6.
10411 2004-01-19 Kim Ho <kho@redhat.com>
10413 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10414 (connectJObject): Iterate through the vbox's children to find layout.
10416 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10418 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
10419 isDispatchThread method to replace wrong test condition.
10421 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10423 * java/awt/EventQueue.java (pop): Prevent racing condition to add
10424 events to the queue out of order by acquiring locks in the proper
10425 order and not by releasing one before acquiring the other.
10427 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10429 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
10430 visible so that dialog can be reused.
10432 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10434 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
10435 events may be handled by any queue in the stack.
10437 2004-01-19 Kim Ho <kho@redhat.com>
10439 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
10440 MenuBarPeer parameter.
10441 (removeMenuBarPeer): New native method.
10442 (setMenuBar): Call remove if menu bar is null. Adjust insets
10444 (postSizeAllocateEvent): New method. Called when menu bar size is
10445 allocated. Adjust insets and redo layout.
10446 (GtkFramePeer): Set menu bar during frame creation.
10447 (postConfigureEvent): Adjust position and size to accomodate
10449 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
10450 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
10451 (addNotify): Create the peer if it doesn't exist and call addNotify
10452 for the menu's items.
10453 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
10454 * java/awt/MenuItem.java (addNotify): Create the peer if it
10456 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10457 (removeMenuBarPeer): New method. Remove menu bar on the current
10459 (setMenuBarPeer): Add the menu bar to the current frame and the
10460 callback for size-allocate events on the menu bar.
10461 (getMenuBarHeight): Add menu bar parameter.
10462 (menubar_resize_cb): New callback method for postSizeAllocate events.
10464 Also: Fix indentation on last ChangeLog entry.
10466 2004-01-16 Kim Ho <kho@redhat.com>
10468 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10469 (gtkWidgetGetDimensions): Remove.
10470 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10471 (gtkWidgetGetDimensions): Remove.
10473 2004-01-16 Tom Tromey <tromey@redhat.com>
10475 * java/awt/Container.java: Typo and indentation fixes.
10477 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
10478 * java/lang/natVMClassLoader.cc: ...here. New file.
10479 * Makefile.in: Rebuilt.
10480 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
10482 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10484 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
10485 Discard GDK_ENTER_NOTIFY related to ungrabs.
10487 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10489 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
10490 is called for an intermediate queue.
10492 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
10494 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10495 (window_property_changed_cb): Set id_set.
10497 2004-01-16 Kim Ho <kho@redhat.com>
10499 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
10500 it is a FileDialog and has dimensions of 0 by 0, then the initial
10501 size is set to size request plus insets.
10502 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10503 (gtkWidgetGetDimensions): Override method.
10504 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10505 (gtkWidgetGetDimensions): Override method. Returns size request plus
10508 2004-01-16 Andrew Haley <aph@redhat.com>
10510 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
10511 * sysdep/i386/locks.h: Likewise.
10513 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10515 * java/awt/EventDispatchThread.java (run): Stop running when
10517 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
10518 Reset the queue after transferring its contents.
10519 (push): Start a new dispatch thread if none is running.
10521 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
10523 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10524 (doPolygon): set fill rule of polygon to
10525 WIND_EVEN_ODD by default.
10527 2004-01-15 Olga Rodimina <rodimina@redhat.com>
10529 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10530 Implemented rendering hints related methods.
10531 (getDefaultHints): New helper method. Returns
10532 default rendering hints.
10533 (walkPath): changed to normalize path if
10534 the KEY_STROKE_CONTROL key is in "normalize" mode.
10535 (draw3DRect): changed coordinates of rectangle by +0.5
10536 if in "normalize" mode.
10538 2004-01-15 Tom Tromey <tromey@redhat.com>
10540 * Makefile.in: Rebuilt.
10541 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
10542 (%.lo: %.java) Filter out StackTrace.lo.
10544 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
10546 * configure.in: Add in AC_PREREQ(2.13)
10547 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
10550 2004-01-14 Nathan Bryant <nbryant@optonline.net>
10551 Tom Tromey <tromey@redhat.com>
10554 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
10555 array to superclass.
10556 (init): Changed interface; add URLs here.
10557 (initialize): New static method.
10558 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
10559 (_Jv_RunMain): ... not here.
10561 2004-01-14 Michael Koch <konqueror@gmx.de>
10563 * java/text/MessageFormat.java:
10564 Added descriptions to exceptions.
10565 This fixes PR libgcj/2429.
10567 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10569 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
10570 (push): Make sure push is performed at the top of the thread stack.
10572 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10574 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
10575 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
10576 (native create): Add width and height parameters. Set text
10577 view's size request according to new parameters.
10578 (create): Calculate text view size based on current font's
10579 metrics and number of rows and columns. Set TextArea's font if
10580 not already set. Call native create.
10581 (getMinimumSize): Call minimumSize.
10582 (getPreferredSize): Call preferredSize.
10583 (getHScrollbarHeight): New method.
10584 (getVScrollbarWidth): New method.
10585 (minimumSize): Calculate minimum size based on scrollbar
10586 visibility, scrollbar sizes, font metrics and number of rows and
10588 (preferredSize): Likewise for preferred size.
10589 (gtkTextGetSize): Remove method.
10591 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10593 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10594 (initializeInsets): Remove method.
10595 (GtkComponentPeer): Initialize insets field. Remove call to
10597 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
10599 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
10601 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
10602 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
10603 (latestInsets): Remove field.
10604 (native create): Add insets parameter. Call
10605 window_get_frame_extents. Set the window's default size and
10606 size request based on its frame extents.
10607 (create): Initialize insets.
10608 (postInsetsChangedEvent): New method.
10609 (postConfigureEvent): Remove parameters top, left, bottom,
10610 right. Remove insets-related logic.
10611 (connectJObject): Handle property-notify-event.
10612 (window_get_frame_extents, request_frame_extents,
10613 property_notify_predicate, window_property_changed_cb): New
10615 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10616 (pre_event_handler): Remove insets-related logic for configure
10618 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
10619 Update postConfigureEvent signature.
10621 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10623 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
10624 to handle Window "Closing" events.
10626 2004-01-13 David Jee <djee@redhat.com>
10628 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10629 (setBackground): New method. Children with no explicitly-set
10630 background will be repainted with the parent container's new
10633 2004-01-13 David Jee <djee@redhat.com>
10635 * Makefile.am: Add BitwiseXORComposite.java.
10636 * Makefile.in: Regenerated.
10637 * gcj/Makefile.in: Regenerated.
10638 * include/Makefile.in: Regenerated.
10639 * testsuite/Makefile.in: Regenerated.
10641 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10643 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
10644 not show modal dialogs twice and so that it allows showing a modal
10645 dialog from another modal dialog.
10647 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10649 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
10650 and run secondary dispatch thread to process event queue while this
10653 2004-01-12 Graydon Hoare <graydon@redhat.com>
10655 * gnu/java/awt/gtk/GdkGraphics2D.java
10656 (static): Check GtkToolkit before initializing static state.
10657 (Graphics2D): Don't construct transform with 0.5 unit offset.
10659 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
10661 * gnu/java/awt/BitwiseXORComposite.java: Add.
10662 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
10663 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
10664 (BitwiseXORComposite): Remove inner class.
10666 2004-01-11 Michael Koch <konqueror@gmx.de>
10668 * gnu/java/lang/reflect/TypeSignature.java
10669 (getEncodingOfClass): Documentation fixed.
10670 (getClassForEncoding): Give class loader to Class.forName().
10671 Documentation fixed.
10673 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
10675 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
10677 2004-01-11 Michael Koch <konqueror@gmx.de>
10679 * javax/swing/undo/StateEditable.java
10680 (RCSID): Removed redundant modifiers.
10682 2004-01-10 Michael Koch <konqueror@gmx.de>
10684 * javax/print/attribute/EnumSyntax.java
10685 (getStringTable): Made protected.
10686 (getEnumValueTable): Likewise.
10687 * javax/print/attribute/standard/JobKOctetsProcessed.java
10688 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
10689 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
10690 (JobMediaSheetsCompleted): Made class final.
10691 * javax/print/attribute/standard/OutputDeviceAssigned.java
10692 (getName): Fixed typo.
10693 * javax/print/attribute/standard/RequestingUserName.java
10694 (serialVersionUID): Fixed value.
10696 2004-01-10 Michael Koch <konqueror@gmx.de>
10698 * javax/swing/plaf/basic/BasicButtonUI.java,
10699 javax/swing/plaf/basic/BasicCheckBoxUI.java,
10700 javax/swing/plaf/basic/BasicListUI.java,
10701 javax/swing/plaf/basic/BasicOptionPaneUI.java,
10702 javax/swing/plaf/basic/BasicPanelUI.java,
10703 javax/swing/plaf/basic/BasicRadioButtonUI.java,
10704 javax/swing/plaf/basic/BasicScrollPaneUI.java,
10705 javax/swing/plaf/basic/BasicToggleButtonUI.java,
10706 javax/swing/plaf/basic/BasicViewportUI.java:
10707 Fixed import statements.
10709 2004-01-10 Michael Koch <konqueror@gmx.de>
10711 * gnu/java/awt/image/ImageDecoder.java
10712 (produce): Made public.
10713 * gnu/java/awt/peer/GLightweightPeer.java,
10714 gnu/java/awt/peer/gtk/GtkToolkit.java:
10717 2004-01-10 Michael Koch <konqueror@gmx.de>
10719 * javax/swing/JRadioButtonMenuItem.java,
10720 javax/swing/JSeparator.java,
10721 javax/swing/JSplitPane.java,
10722 javax/swing/JTextPane.java,
10723 javax/swing/JToolBar.java,
10724 javax/swing/ListCellRenderer.java,
10725 javax/swing/ListModel.java,
10726 javax/swing/MenuElement.java,
10727 javax/swing/OverlayLayout.java,
10728 javax/swing/ProgressMonitor.java,
10729 javax/swing/ProgressMonitorInputStream.java,
10730 javax/swing/Renderer.java,
10731 javax/swing/RootPaneContainer.java,
10732 javax/swing/Scrollable.java,
10733 javax/swing/SingleSelectionModel.java,
10734 javax/swing/ToolTipManager.java,
10735 javax/swing/ViewportLayout.java,
10736 javax/swing/event/DocumentEvent.java,
10737 javax/swing/event/SwingPropertyChangeSupport.java,
10738 javax/swing/event/TreeSelectionEvent.java,
10739 javax/swing/event/UndoableEditEvent.java,
10740 javax/swing/text/AbstractDocument.java,
10741 javax/swing/text/AttributeSet.java,
10742 javax/swing/text/Caret.java,
10743 javax/swing/text/ComponentView.java,
10744 javax/swing/text/DefaultCaret.java,
10745 javax/swing/text/DefaultEditorKit.java,
10746 javax/swing/text/Document.java,
10747 javax/swing/text/EditorKit.java,
10748 javax/swing/text/GapContent.java,
10749 javax/swing/text/Keymap.java,
10750 javax/swing/text/MutableAttributeSet.java,
10751 javax/swing/text/PlainEditorKit.java,
10752 javax/swing/text/Segment.java,
10753 javax/swing/text/Style.java,
10754 javax/swing/text/StyledDocument.java,
10755 javax/swing/text/StyledEditorKit.java,
10756 javax/swing/text/TextAction.java,
10757 javax/swing/text/View.java: Fixed import statements.
10759 2004-01-08 Graydon Hoare <graydon@redhat.com>
10761 * javax/swing/JLayeredPane.java: Rewrite to accomodate
10762 djee@redhat.com's recent inverse ordering of Container elements.
10764 2004-01-09 Michael Koch <konqueror@gmx.de>
10766 * gnu/java/lang/ArrayHelper.java
10767 (equalsArray): Removed.
10769 2004-01-09 Andrew Haley <aph@redhat.com>
10771 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
10772 a Utf8Const field before looking at its class.
10774 2004-01-09 Michael Koch <konqueror@gmx.de>
10776 * javax/print/attribute/standard/DocumentName.java,
10777 javax/print/attribute/standard/JobHoldUntil.java,
10778 javax/print/attribute/standard/JobMessageFromOperator.java,
10779 javax/print/attribute/standard/JobName.java,
10780 javax/print/attribute/standard/JobOriginatingUserName.java,
10781 javax/print/attribute/standard/OutputDeviceAssigned.java,
10782 javax/print/attribute/standard/PrinterInfo.java,
10783 javax/print/attribute/standard/PrinterLocation.java,
10784 javax/print/attribute/standard/PrinterMakeAndModel.java,
10785 javax/print/attribute/standard/PrinterMessageFromOperator.java,
10786 javax/print/attribute/standard/PrinterName.java,
10787 javax/print/attribute/standard/RequestingUserName.java: New files.
10788 * Makefile.am (javax_source_files): Added new files.
10789 * Makefile.in: Regenerated.
10791 2004-01-09 Michael Koch <konqueror@gmx.de>
10793 * javax/swing/AbstractAction.java,
10794 javax/swing/AbstractSet.java,
10795 javax/swing/Action.java,
10796 javax/swing/ActionMap.java,
10797 javax/swing/BoundedRangeModel.java,
10798 javax/swing/ButtonModel.java,
10799 javax/swing/CellEditor.java,
10800 javax/swing/CellRendererPane.java,
10801 javax/swing/ComboBoxEditor.java,
10802 javax/swing/DebugGraphics.java,
10803 javax/swing/DefaultCellEditor.java,
10804 javax/swing/DefaultCellRenderer.java,
10805 javax/swing/DefaultComboBoxModel.java,
10806 javax/swing/DefaultDesktopManager.java,
10807 javax/swing/DefaultFocusManager.java,
10808 javax/swing/DefaultListCellRenderer.java,
10809 javax/swing/Icon.java,
10810 javax/swing/JButton.java,
10811 javax/swing/JCheckBoxMenuItem.java,
10812 javax/swing/JDesktopPane.java,
10813 javax/swing/JEditorPane.java,
10814 javax/swing/JMenu.java,
10815 javax/swing/JPanel.java,
10816 javax/swing/JPasswordField.java,
10817 javax/swing/JPopupMenu.java,
10818 javax/swing/JProgressBar.java: Reworked imports.
10820 2004-01-09 Michael Koch <konqueror@gmx.de>
10822 * java/awt/geom/PathIterator.java
10823 (WIND_EVEN_ODD): Removed redundant modifiers.
10824 (WIND_NON_ZERO): Likewise.
10825 (SEG_MOVETO): Likewise.
10826 (SEG_LINETO): Likewise.
10827 (SEG_QUADTO): Likewise.
10828 (SEG_CUBICTO): Likewise.
10829 (SEG_CLOSE): Likewise.
10830 * java/awt/image/SinglePixelPackedSampleModel.java:
10831 Removed redundant semicolon.
10832 * java/io/ObjectInputStream.java
10833 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
10834 * java/util/logging/Filter.java
10835 (isLoggable): Removed redundant modifier.
10836 * java/util/logging/LogManager.java:
10837 Removed redundant semicolon.
10838 * java/util/logging/XMLFormatter.java
10839 (format): Removed unused variable "key".
10841 2004-01-08 Fernando Nasser <fnasser@redhat.com>
10843 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
10844 New name for the former setFile native method.
10845 (setFile): New method.
10846 (setDirectory): Implemented.
10847 (connectSignals): New native method.
10848 (setFilenameFilter): Improve comment.
10849 (getGraphics): Comment.
10850 (gtkHideFileDialog): New method.
10851 (gtkDisposeFileDialog): New method.
10852 (gtkSetFilename): New method.
10853 * java/awt/Dialog.java (show): Block on modal dialogs, but only
10854 for FileDialog for now.
10855 (hide): New method.
10856 (dispose): New method.
10857 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
10858 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
10859 deprecated creation functions. Make dialog modal. Add it to the
10861 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
10863 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
10865 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
10867 (window_closed): New function.
10868 (ok_clicked): New function.
10869 (cancel_clicked): New function.
10871 2004-01-08 Michael Koch <konqueror@gmx.de>
10873 * javax/swing/JLayeredPane.java: Revert changes to standard
10874 boilerplate, reworked imports.
10876 2004-01-07 Tom Tromey <tromey@redhat.com>
10879 * verify.cc (state::merge): Copy changed locals out of subroutine
10881 (state::FLAG_CHANGED): New const.
10882 (state::FLAG_UNUSED): Likewise.
10883 (state::local_changed): Removed. Updated all users.
10884 (state::flags): New field.
10885 (state::merge): Added jsr_semantics argument, more logic.
10886 (push_jump_merge): Added jsr_semantics argument.
10887 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
10888 merging through the jsr instruction.
10890 2004-01-07 Tom Tromey <tromey@redhat.com>
10892 * scripts/MakeDefaultMimeTypes.java: Use \n, not
10895 2004-01-07 Graydon Hoare <graydon@redhat.com>
10897 * java/awt/Container.java (LightweightDispatcher): Implement.
10898 (visitChild): Reuse graphics object.
10899 (dispatchEventImpl): Optionally dispatch to lightweight.
10900 (addNotifyContainerChildren): Build LightweightDispatcher.
10902 2004-01-07 David Jee <djee@redhat.com>
10904 * java/awt/Container.java
10905 (update): Clear only the clipped region, instead of clearing the
10907 (visitChildren): Visit children in descending order.
10909 2004-01-07 Michael Koch <konqueror@gmx.de>
10911 * java/lang/reflect/Array.java: Merged documentation with classpath.
10913 2004-01-07 Michael Koch <konqueror@gmx.de>
10915 * java/text/CollationElementIterator.java
10916 (textIndex): Renamed from index.
10917 * java/text/CollationKey.java
10918 (collator): New member.
10919 (CollationKey): New argument for parent collator.
10920 (equals): Check for same collator, source string and key array.
10921 * java/text/RuleBasedCollator.java:
10923 (RuleBasedCollator): Don't re-initialize frenchAccents with default
10925 (getCollationElementIterator): Rewritten.
10926 (getCollationKey): Added new argument to CollationKey constructor.
10928 2004-01-07 Michael Koch <konqueror@gmx.de>
10930 * gnu/java/nio/DatagramChannelImpl.java
10931 (blocking): Removed.
10932 (DatagramChannelImpl): Call configureBlocking().
10933 (implConfigureBlocking): Dont initialize blocking.
10934 * gnu/java/nio/ServerSocketChannelImpl.java
10935 (blocking): Removed.
10936 (ServerSocketChannelImpl): Call configureBlocking().
10937 (implConfigureBlocking): Dont initialize blocking.
10938 * gnu/java/nio/SocketChannelImpl.java
10939 (blocking): Removed.
10940 (SocketChannelImpl): Call configureBlocking().
10941 (implConfigureBlocking): Dont initialize blocking.
10942 (connect): Use isBlocking().
10943 * java/nio/channels/spi/AbstractSelectableChannel.java
10944 (configureBlocking): Use blockingLock() instead of LOCK.
10945 Set blocking after successfully called implConfigureBlocking().
10946 (register): Use blockingLock() instead of LOCK.
10948 2004-01-07 Michael Koch <konqueror@gmx.de>
10950 * java/net/ServerSocket.java (isBound): Fixed documentation.
10952 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
10954 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
10955 (changeEvent): Create event object on demand.
10956 (DefaultBoundedRangeModel, toString, setValue, setExtent,
10957 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
10958 fireStateChanged): Re-written.
10959 * javax/swing/event/EventListenerList.java: Reformatted, document
10961 (toString): Implemented.
10962 (getListeners): Re-written.
10963 (remove): Re-written.
10965 (NO_LISTENERS): New singleton field.
10966 (listenerList): Declare as transient; document.
10967 (serialVersionUID): Document.
10968 (getListenerCount(Class)): More efficient implementation,
10969 also accepts null argument. Improve Javadoc.
10970 (getListenerCount()): Remove unnecessary cast; docfix.
10971 * javax/swing/undo/UndoableEditSupport.java:
10972 Re-format, document.
10973 (UndoableEditSupport): Set realSource field. Improve documentation.
10974 (_postEdit): Iterate over cloned listener vector.
10975 (toString): Don't emit realSource.
10976 (beginUpdate, endUpdate): Support nested updates.
10977 (postEdit): Use compound edit if present.
10979 2004-01-06 Graydon Hoare <graydon@redhat.com>
10981 * java/awt/Container.java (swapComponents): Add forgotten
10982 function, required for JLayeredPane change.
10984 2004-01-06 Michael Koch <konqueror@gmx.de>
10986 * java/text/CollationElementIterator.java: Reformated.
10987 (CollationElementIterator): Changed order of arguments.
10988 * java/text/RuleBasedCollator.java
10989 (RuleBasedCollator): Merged class documentation.
10990 (CollationElement): Added documentation.
10991 (compare): Reformated, renamed arguments.
10992 (equals): Likewise.
10993 (getCollationElementIterator): Likewise.
10994 (getCollationKey): Likewise.
10996 2004-01-06 Graydon Hoare <graydon@redhat.com>
10998 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
11000 2004-01-06 Michael Koch <konqueror@gmx.de>
11002 * gnu/java/net/protocol/file/Connection.java:
11003 Reformated copyright.
11004 (hdrHash): Removed.
11006 (gotHeaders): Removed.
11007 (getHeaderField): Removed.
11008 (getHeaderField): Removed.
11009 (getHeaderFieldKey): Removed.
11011 (getField): Removed.
11012 (getHeaders): Removed.
11014 2004-01-06 Michael Koch <konqueror@gmx.de>
11016 * javax/print/attribute/standard/DateTimeAtCompleted.java,
11017 javax/print/attribute/standard/DateTimeAtCreation.java,
11018 javax/print/attribute/standard/DateTimeAtProcessing.java,
11019 javax/print/attribute/standard/JobImpressionsCompleted.java,
11020 javax/print/attribute/standard/JobKOctets.java,
11021 javax/print/attribute/standard/JobKOctetsProcessed.java,
11022 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
11023 javax/print/attribute/standard/JobPrioritySupported.java: New files.
11024 * Makefile.am (javax_source_files): Added new files.
11025 * Makefile.in: Regenerated.
11027 2004-01-06 Michael Koch <konqueror@gmx.de>
11029 * java/net/URLConnection.java
11030 (contentHandler): Removed.
11032 (getHeaderFields): Return an empty map instead of null.
11033 (getContent): Connect if needed, renamed "cType" to "type" and
11034 "contentHandler" to "ch" and made it a local variable.
11035 (getPermission): Don't use package in class name.
11036 (setDefaultRequestProperty): Fixed typo in documentation.
11037 (initializeDateFormats): Made locale a local variable.
11039 2004-01-06 Michael Koch <konqueror@gmx.de>
11041 * java/lang/Package.java
11042 (getPackage): Get the current class loader directly.
11043 * java/lang/SecurityManager.java
11044 (currentLoadedClass): Dont iterate over class contexts.
11045 (classLoaderDepth): Don't check class loaders if everything is allowed.
11047 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
11049 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
11050 (pre_event_handler): Set all insets to 0 when a Configure event
11051 is received for a GtkPlug.
11052 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
11053 Make handle long, not int.
11054 (EmbeddedWindow()): New constructor.
11055 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
11057 (setHandle): New method.
11058 (getHandle): Return long, not int.
11059 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
11061 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
11062 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
11063 (create(long)): Take long parameter, not int. Cast gtk_plug_new
11064 argument to GdkNativeWindow.
11065 (construct): New method.
11066 (embed): New method.
11068 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
11069 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
11070 (create(int, int)): New method.
11071 (create): Call new create method.
11072 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
11074 (childResized): Remove native implementation. Implement in
11076 (getHScrollbarHeight, getVScrollbarWidth): Call
11077 gtk_widget_size_request to get scrollbar dimensions.
11078 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
11079 call getVScrollbarWidth and getHScrollbarHeight when vertical
11080 and horizontal scrollbars respectively are needed.
11081 (doLayout): Enlarge child if it is smaller than the viewport.
11083 2004-01-05 Fernando Nasser <fnasser@redhat.com>
11085 * java/awt/Dialog.java (constructor): Accept null title as per spec.
11086 * java/awt/FileDialog.java (constructor): Throw exception on invalid
11087 argument as per spec.
11089 2004-01-05 Fernando Nasser <fnasser@redhat.com>
11091 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
11093 (remove): Ditto. Also, Check for valid argument.
11094 (removeAll): Use peer interface method.
11095 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
11096 native add function.
11097 (nativeRemove): New name for native remove function.
11098 (getHistory): New native function.
11099 (constructor): Generate ItemEvent.
11100 (add): Ditto, if selection is changed.
11101 (remove): Ditto, ditto.
11102 (removeAll): Add implementation.
11103 (handleEvent): Remove. Dead code.
11104 (choicePostItemEvent): Add comment.
11105 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
11106 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
11107 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
11108 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
11109 comments and fix condition to change selection.
11110 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
11111 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
11112 remove all capability.
11113 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
11114 (item_activate): Add cast to remove compiler warning.
11116 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
11118 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
11119 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
11120 (getPreferredSize): Call preferredSize.
11121 (preferredSize): Call gtkWidgetGetPreferredDimensions.
11122 (getMinimumSize): Call minimumSize.
11123 (minimumSize): Call gtkWidgetGetPreferredDimensions.
11124 (gtkWidgetGetDimensions): Return the peer widget's current size
11126 (gtkWidgetGetPreferredDimensions): Return the peer widget's
11127 natural size request.
11129 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
11131 Thanks to Brian Gough <bjg@network-theory.com>
11132 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
11133 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
11135 2004-01-04 Matthias Klose <doko@debian.org>
11137 * aclocal.m4: Rebuilt using "aclocal -I .".
11138 * configure: Rebuilt.
11140 2004-01-03 Per Bothner <per@bothner.com>
11142 * java/util/Date.java (parse): Fix a number of problems.
11143 (skipParens): Remove no-longer-needed method.