1 2004-10-16 Michael Koch <konqueror@gmx.de>
3 * gnu/java/nio/NIODatagramSocket.java,
4 gnu/java/nio/ServerSocketChannelImpl.java:
5 Reorganized import statements.
7 2004-10-16 Michael Koch <konqueror@gmx.de>
9 * gnu/java/rmi/RMIMarshalledObjectOutputStream.java
10 gnu/java/rmi/rmic/RMIC.java,
11 gnu/java/rmi/server/RMIHashes.java,
12 gnu/java/rmi/server/RMIObjectInputStream.java,
13 gnu/java/rmi/server/RMIObjectOutputStream.java,
14 gnu/java/rmi/server/UnicastConnection.java,
15 gnu/java/rmi/server/UnicastConnectionManager.java,
16 gnu/java/rmi/server/UnicastRemoteCall.java,
17 gnu/java/rmi/server/UnicastServer.java,
18 gnu/java/rmi/server/UnicastServerRef.java,
19 java/rmi/MarshalledObject.java,
21 java/rmi/RMISecurityManager.java,
23 java/rmi/activation/Activatable.java,
24 java/rmi/activation/ActivationDesc.java,
25 java/rmi/activation/ActivationGroup.java,
26 java/rmi/activation/ActivationGroupDesc.java,
27 java/rmi/activation/ActivationGroupID.java,
28 java/rmi/activation/ActivationID.java,
29 java/rmi/activation/ActivationInstantiator.java,
30 java/rmi/activation/ActivationMonitor.java,
31 java/rmi/activation/ActivationSystem.java,
32 java/rmi/activation/Activator.java,
33 java/rmi/dgc/DGC.java,
34 java/rmi/dgc/Lease.java,
35 java/rmi/dgc/VMID.java,
36 java/rmi/registry/LocateRegistry.java,
37 java/rmi/registry/Registry.java,
38 java/rmi/registry/RegistryHandler.java,
39 java/rmi/server/LoaderHandler.java,
40 java/rmi/server/LogStream.java,
41 java/rmi/server/ObjID.java,
42 java/rmi/server/Operation.java,
43 java/rmi/server/RMIClassLoader.java,
44 java/rmi/server/RMIClassLoaderSpi.java,
45 java/rmi/server/RMIClientSocketFactory.java,
46 java/rmi/server/RMIFailureHandler.java,
47 java/rmi/server/RMIServerSocketFactory.java,
48 java/rmi/server/RMISocketFactory.java,
49 java/rmi/server/RemoteCall.java,
50 java/rmi/server/RemoteObject.java,
51 java/rmi/server/RemoteRef.java,
52 java/rmi/server/RemoteServer.java,
53 java/rmi/server/RemoteStub.java,
54 java/rmi/server/ServerRef.java,
55 java/rmi/server/Skeleton.java,
56 java/rmi/server/SkeletonMismatchException.java,
57 java/rmi/server/UID.java,
58 java/rmi/server/UnicastRemoteObject.java,
59 java/rmi/server/Unreferenced.java:
60 File headers and import statements cleaned up.
62 2004-10-16 Michael Koch <konqueror@gmx.de>
64 * libjava/gnu/java/nio/charset/UTF_16.java,
65 libjava/gnu/java/nio/charset/UTF_16BE.java,
66 libjava/gnu/java/nio/charset/UTF_16LE.java,
67 libjava/java/nio/ByteOrder.java,
68 libjava/java/nio/MappedByteBuffer.java,
69 libjava/java/nio/channels/Channels.java,
70 libjava/java/nio/channels/spi/SelectorProvider.java,
71 libjava/java/nio/charset/Charset.java:
74 2004-10-16 Michael Koch <konqueror@gmx.de>
76 * gnu/java/nio/charset/UTF_16Encoder.java
77 (UTF_16Encoder): Fixed maxBytesPerChar handling.
79 2004-10-16 Michael Koch <konqueror@gmx.de>
81 * java/math/BigDecimal.java, java/math/BigInteger.java:
82 Reorganized import statements, removed redundant and
83 reorganized modifiers.
85 2004-10-16 Michael Koch <konqueror@gmx.de>
87 * gnu/java/beans/ExplicitBeanInfo.java:
88 Explicitely import java.awt.Image.
89 (getIcon): Fixed off-by-one error.
91 2004-10-15 Andrew Haley <aph@redhat.com>
93 * Makefile.am (nat_files, xlib_nat_files): New.
94 * Makefile.in: Regenerate.
96 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
98 * jni.cc (_Jv_JNIMethod::call): Use ffi_java_raw_call instead of
99 ffi_raw_call if FFI_NATIVE_RAW_API is not defined.
101 2004-10-13 Andrew Haley <aph@redhat.com>
103 * interpret.cc (_Jv_InterpMethod::run): Initialize
104 _Jv_StartOfInterpreter.
105 (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): Functions removed.
106 (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): New variables.
107 * gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Use
108 _Unwind_FindEnclosingFunction to discover whether PC is within the
111 2004-10-12 Rutger Ovidius <ovidr@users.sourceforge.net>
114 * testsuite/libjava.lang/md5test.java: New file.
115 * testsuite/libjava.lang/md5test.out: Likewise.
116 * testsuite/libjava.lang/shatest.java: Likewise.
117 * testsuite/libjava.lang/shatest.out: Likewise.
119 2004-10-11 Richard Henderson <rth@redhat.com>
121 * include/posix-threads.h <__alpha__> (_Jv_ThreadId_t): Use void*.
122 (_Jv_ThreadSelf): Use __builtin_thread_pointer.
124 2004-10-08 Bryce McKinlay <mckinlay@redhat.com>
126 * java/util/Calendar.java (set): Invalidate DST_OFFSET
127 field as a DST boundary may have been crossed.
128 * java/util/GregorianCalendar.java (add): Throw
129 IllegalArgumentException on attempt to add to DST_OFFSET or
130 ZONE_OFFSET fields. Update javadoc.
132 2004-10-09 Michael Koch <konqueror@gmx.de>
134 * java/io/CharArrayWriter.java
135 (resize): Removed redundant 'final' modifier.
136 * java/io/DataInputStream.java
137 (readFully): Throw IndexOutOfBoundsException of len < 0.
138 * java/io/FileDescriptor.java,
139 java/io/FileInputStream.java,
140 java/io/FileOutputStream.java,
141 java/io/ObjectOutputStream.java,
142 java/io/ObjectStreamClass.java,
143 java/io/PipedInputStream.java,
144 java/io/RandomAccessFile.java:
145 Reorganized import statements.
147 2004-10-09 Michael Koch <konqueror@gmx.de>
149 * gnu/java/rmi/rmic/RMIC.java,
150 gnu/java/rmi/server/RMIHashes.java,
151 gnu/java/rmi/server/RMIObjectInputStream.java,
152 gnu/java/rmi/server/UnicastConnection.java,
153 gnu/java/rmi/server/UnicastConnectionManager.java,
154 gnu/java/rmi/server/UnicastRemoteCall.java,
155 gnu/java/rmi/server/UnicastServerRef.java:
156 Reworked import statements and fixed file headers.
158 2004-10-04 Loren J. Rittle <ljrittle@acm.org>
160 * configure.ac (*-*-freebsd[[1234]]*): Refine error message
162 * configure: Rebuilt.
164 2004-09-30 Tom Tromey <tromey@redhat.com>
166 * java/text/MessageFormat.java (Field): Constructor now
169 2004-09-30 Tom Tromey <tromey@redhat.com>
171 * javax/crypto/MacSpi.java: Fixed typo.
173 2004-09-30 Michael Koch <konqueror@gmx.de>
175 * java/net/InetAddress.java: Reformatted.
176 (loopback): Initialize with Inet4Address object.
177 (static): Initialize ANY_IF with Inet4Address object.
178 (InetAddress): Removed unused package-private constructor.
180 2004-09-30 Michael Koch <konqueror@gmx.de>
182 * java/beans/Beans.java,
183 java/beans/EventHandler.java,
184 java/beans/EventSetDescriptor.java,
185 java/beans/Introspector.java,
186 java/beans/PropertyEditorManager.java,
187 java/beans/beancontext/BeanContext.java,
188 java/beans/beancontext/BeanContextChild.java,
189 java/beans/beancontext/BeanContextChildSupport.java,
190 java/beans/beancontext/BeanContextMembershipEvent.java:
191 Reordered import statements and removed redundant modifiers.
193 2004-09-29 Tom Tromey <tromey@redhat.com>
196 * Makefile.in: Rebuilt.
197 * Makefile.am (libgcj-@gcc_version@.jar): Include properties
199 (all_property_files): New macro.
201 * Makefile.in: Rebuilt.
202 * Makefile.am (ordinary_java_source_files): Re-sorted.
203 (libgcj.la): Moved to old location near lib-gnu-awt-xlib.la.
205 2004-09-28 Tom Tromey <tromey@redhat.com>
207 * jni.cc (_Jv_JNI_RegisterNatives): Formatting fixlets.
210 * Makefile.am (libgcj.la): Restored.
211 * Makefile.in: Rebuilt.
213 2004-09-28 Michael Koch <konqueror@gmx.de>
215 * java/net/URLConnection.java: Reformatted.
216 * java/net/URLClassLoader.java: Reformatted.
217 (getContent): Reordered return of content.
218 (getContentHandler): Don't check for null explicitely.
220 2004-09-27 Michael Koch <konqueror@gmx.de>
222 * java/io/BufferedInputStream.java
223 (BufferedInputStream): Added Jeroen Frijters to authors.
224 (count): Don't explicitely initialize with default value.
226 (marklimit): Likewise.
227 (read): Changed boolean expression to match GNU classpath' version.
228 (reset): Add proper message to exception.
229 (skip): Check for closed stream.
232 2004-09-26 Per Bothner <per@bothner.com>
234 * prims.cc (unblock_signal): Annotate signum with __unused__ to
235 avoid warnings in the non-POSIX_VERSION case.
236 Also, we only need this function if either HANDLE_SEGV or HANDLE_FPE,
237 so place it inside an #if block.
238 * include/default-signal.h (SIGNAL_HANDLER): Parameters are __unused__.
239 * include/i386-signal.h (SIGNAL_HANDLER): Likewise
240 * include/mips-signal.h (SIGNAL_HANDLER): Likewise
241 * include/sparc-signal.h (SIGNAL_HANDLER): Likewise
243 2004-09-26 Per Bothner <per@bothner.com>
245 * prims.cc (process_gcj_properties): Optimization.
247 2004-09-26 Per Bothner <per@bothner.com>
249 * java/util/Collections.java (sort): Copy from array in forwards
250 order, rather than reverse order which may be much less efficient.
252 2004-09-26 Mark Wielaard <mark@klomp.org>
254 * java/lang/System.java (properties): Make package private.
255 * java/lang/Throwable.java (StaticData.nl): Initialize through
256 directly accessing System.properties.getProperty().
258 * java/lang/Throwable.java (nl): Remove static field.
259 (StaticData): New private static inner class.
260 (stackTraceStringBuffer): Use StaticData.nl.
262 2004-09-26 Casey Marshall <csm@gnu.org>
264 * java/security/ProtectionDomain.java
265 (<init>(CodeSource,PermissionCollection)): set `staticBinding' to
268 * java/security/SecureClassLoader.java
269 (defineClass): make protection domain dynamically bound.
270 (getPermissions): call `getCurrentPolicy' to avoid permission
273 2004-09-25 Mark Wielaard <mark@klomp.org>
275 * Makefile.am (core_java_source_files): Add VMTimeZone.java.
276 (nat_source_files): Rename natTimeZone.cc to natVMTimeZone.cc.
277 * Makefile.in: Regenerated.
279 * gcj/javaprims.h: Regenerated.
281 * java/util/TimeZone.java (defaultZone): Use VMTimeZone.
282 (getDefaultTimeZone): Make package private. Check that GMToffset
283 contains at least one digit.
284 (getDefaultTimeZoneId, readTimeZoneFile, readtzFile): (Re)Moved to
286 * util/VMTimeZone.java: New file with above methods.
288 * java/util/natTimeZone.cc: Removed (renamed).
289 * java/util/natVMTimeZone.cc: Added (renamed).
291 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
293 * java/util/TimeZone.java
294 (getDefaultTimeZone): Fixed test to distinguish between hours and
295 minutes in specified timezone.
297 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
299 * java/lang/reflect/Proxy.java (getPackage, ClassFactory): Fixed
300 handling of default package. (generate): Removed confused comments
301 and code about making Method and Field accessible.
303 2004-09-25 Tom Tromey <tromey@redhat.com>
306 * testsuite/libjava.compile/pr17500.java: New file.
308 2004-09-25 Shashank Bapat <shashankbapat@yahoo.com>
309 Mark Wielaard <mark@klomp.org>
311 * gnu/regexp/RE.java (initialize): Add RETokenLookAhead support.
312 * gnu/regexp/RETokenLookAhead.java: New file.
314 * Makefile.am (ordinary_java_source_files): Add RETokenLookAhead.java.
315 * Makefile.in: Regenerated.
317 2004-09-25 Michael Koch <konqueror@gmx.de>
319 * java/io/ObjectStreamField.java:
320 Removed unused import statement.
322 2004-09-24 Tom Tromey <tromey@redhat.com>
325 * testsuite/libjava.compile/pr15656.xfail: New file.
326 * testsuite/libjava.compile/pr15656.java: new file.
329 * testsuite/libjava.lang/pr16789.out: New file.
330 * testsuite/libjava.lang/pr16789.java: New file.
332 2004-09-24 Andrew Haley <aph@redhat.com>
335 * testsuite/libjava.compile/AssertBug.java: New file.
337 2004-09-24 Casey Marshall <csm@gnu.org>
339 * java/util/PropertyPermissionCollection.java
340 (implies): avoid infinite loop.
342 2004-09-24 Andrew John Hughes <gnu_andrew@member.fsf.org>
344 * javax/security/auth/PrivateCredentialPermission.java
345 (PrivateCredentialPermission): added serialization UID
348 2004-09-24 Ilya Perminov <iperminov@logicalsoft.com>
350 * gnu/java/rmi/server/UnicastServer.java
351 (incomingMessageCall): Added code to handle Errors.
352 * gnu/java/rmi/server/UnicastServerRef.java
353 (incomingMessageCall): Added code to handle Errors.
356 2004-09-24 Tom Tromey <tromey@redhat.com>
358 * java/lang/ClassLoader.java (loadedClasses): Declare as HashMap.
359 (definedPackages): Likewise.
361 2004-09-24 Michael Koch <konqueror@gmx.de>
363 * java/io/ObjectInputStream.java:
366 2004-09-24 Casey Marshall <csm@gnu.org>
368 * java/io/ObjectInputStream.java (callReadMethod): re-throw
369 `ClassNotFoundException'.
371 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
373 * java/io/ObjectInputStream.java (readObject): Delegate instantation
374 of Externalizable classes to ObjectStreamClass.
375 * java/io/ObjectStreamClass.java (newInstance): New method to
376 instantiate Externalizable (while ignoring the accessibility of
377 the constructor). (constructor): New field to cache the constructor.
379 2004-09-24 Mark Wielaard <mark@klomp.org>
381 * java/net/URL.java (systemClassLoader): New static field.
382 (getURLStreamHandler): Always use system/application classloader
383 for finding URLStreamhandler. Remove unecessary instanceof checks.
385 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
388 (set): This method now matches the behaviour of the JDK.
389 (DEFAULT_SEARCH_PATH): Added "gnu.inet".
391 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
393 * java/net/URL.java (URL): Delete whitespaces in the protocol string.
395 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
397 * java/net/URL.java (URL(String,String,int,String,URLStreamHandler):
398 Don't set authority if host isn't specified.
400 2004-09-24 Michael Koch <konqueror@gmx.de>
402 * gnu/java/nio/PipeImpl.java: Use VMPipe for native stuff.
403 * gnu/java/nio/SelectorImpl.java: Use VMSelector for native stuff.
404 * gnu/java/nio/VMPipe.java,
405 gnu/java/nio/VMSelector.java:
407 * gnu/java/nio/natPipeImplEcos.cc,
408 gnu/java/nio/natPipeImplPosix.cc,
409 gnu/java/nio/natPipeImplWin32.cc:
411 * gnu/java/nio/natSelectorImplEcos.cc,
412 gnu/java/nio/natSelectorImplPosix.cc,
413 gnu/java/nio/natSelectorImplWin32.cc:
414 Ported to VMSelector.
415 * Makefile.am: Added new files gnu/java/nio/VMPipe.java and
416 gnu/java/nio/VMSelector.java.
417 * Makefile.in: Regenerated.
419 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
421 * java/lang/StackTraceElement.java
422 (className): Renamed field to declaringClass to be compatible
423 with Sun serialization format.
425 2004-09-23 Michael Koch <konqueror@gmx.de>
427 * java/applet/AppletContext.java,
428 java/applet/Applet.java,
429 java/applet/AppletStub.java,
430 java/applet/AudioClip.java:
431 Jalopied and checkstyle clean.
433 2004-09-23 Mark Wielaard <mark@klomp.org>
435 * java/util/Collections.java
436 (binarySearch(List, Object, Comparator)): Explicitly
437 reverse direction in list iterator.
438 (rotate): Just return when list is empty.
440 2004-09-23 Tom Tromey <tromey@redhat.com>
443 * testsuite/libjava.compile/pr17329.java: New file.
446 * testsuite/libjava.jacks/jacks.xfail: Added 9.2-implicit-6 and
449 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
451 * Makefile.am: Run aclocal with -I ../config
452 * acinclude.m4: Delete macros picked up from ../config and tidy.
453 (AM_ICONV,AM_LC_MESSAGES, PKG_CHECK_MODULES): Delete.
454 * aclocal.m4, configure, Makefile.in, gcj/Makefile.in: Regenerate.
455 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
457 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
459 * aclocal.m4: Regenerate with aclocal 1.9.2.
460 * configure: Regenerate.
461 * Makefile.in, gcj/Makefile.in: Regenerate with automake 1.9.2.
462 * include/Makefile.in, testsuite/Makefile.in: Likewise.
464 2004-09-22 David Daney <ddaney@avtrex.com>
467 * java/net/URL.java (URL): Copy userInfo from context.
468 (getUserInfo): Return cached userInfo if present.
470 2004-09-22 Tom Tromey <tromey@redhat.com>
473 * mauve-libgcj: Enable java.lang.Character tests.
475 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
477 * Makefile.am (lib_org_ietf_jgss_la_DEPENDENCIES): Add missing
479 (lib_org_ietf_jgss_la_LIBADD): Likewise.
480 * Makefile.in: Regenerated.
482 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
484 * configure.ac: Introduce AC_C_BIGENDIAN_CROSS for WORDS_BIGENDIAN.
485 * configure: Regenerate.
486 * include/config.h.in: Likewise.
487 * jni/gtk-peer/gtkpeer.h (SWAPU32): Introduce macro to swap pixels.
488 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c: Moved SWAPU32
490 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
491 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_getImagePixels): Convert
492 pixels from 0xBBGGRRAA to 0xAARRGGBB only on Little Endian
494 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c (area_updated):
497 2004-09-22 Tom Tromey <tromey@redhat.com>
500 * java/util/zip/GZIPInputStream.java (read): Avoid sign extension
502 * java/util/zip/InflaterInputStream.java (onebytebuffer): New
504 (read()): New overload.
506 2004-09-21 Tom Tromey <tromey@redhat.com>
508 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
511 2004-09-21 Michael Koch <konqueror@gmx.de>
513 * java/net/Socket.java
514 (getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
516 2004-09-21 Casey Marshall <csm@gnu.org>
518 * javax/crypto/MacSpi.java (clone): Provide meaningful
521 2004-09-21 Tom Tromey <tromey@redhat.com>
524 * Makefile.in: Rebuilt.
525 * Makefile.am (MOSTLYCLEANFILES): Removed.
526 (mostlyclean-local): Remove header files.
528 2004-09-21 Casey Marshall <csm@gnu.org>
530 * java/security/cert/X509CRLSelector.java:
531 (match): remove unreachable try-catch clauses.
532 Reported by: Dalibor Topic <robilad@kaffe.org>
534 2004-09-21 Mark Wielaard <mark@klomp.org>
536 * java/util/TreeMap.java (root): Don't initialize.
537 (TreeMap(Comparator)): Call fabricateTree(0).
538 (fabricateTree): Initialize root and size when count is 0.
540 2004-09-21 Sven de Marothy <sven@physto.se>
542 * java/nio/ByteBuffer.java (hashCode): Implemented.
543 * java/nio/CharBuffer.java: Likewise.
544 * java/nio/DoubleBuffer.java: Likewise.
545 * java/nio/FloatBuffer.java: Likewise.
546 * java/nio/LongBuffer.java: Likewise.
547 * java/nio/IntBuffer.java: Likewise.
548 * java/nio/ShortBuffer.java: Likewise.
550 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
552 * javax/security/auth/x500/X500Principal.java: Fix some merge glitches.
554 2004-09-21 Michael Koch <konqueror@gmx.de>
556 * javax/net/ssl/SSLServerSocket.java:
557 Removed comment about "Do not edit this file, it's generated.".
559 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
561 Import the big Crypto/Jessie/Security merge from Classpath.
563 * Makefile.am: Add imported files.
564 * Makefile.in: Regenerate.
566 2004-08-14 Casey Marshall <csm@gnu.org>
568 The Big Crypto Merge of 2004.
570 * javax/security/auth/x500/X500Principal.java: Replaced with GNU
573 Files imported from GNU Crypto.
574 * javax/crypto/BadPaddingException.java
575 * javax/crypto/Cipher.java
576 * javax/crypto/CipherInputStream.java
577 * javax/crypto/CipherOutputStream.java
578 * javax/crypto/CipherSpi.java
579 * javax/crypto/EncryptedPrivateKeyInfo.java
580 * javax/crypto/ExemptionMechanism.java
581 * javax/crypto/ExemptionMechanismException.java
582 * javax/crypto/ExemptionMechanismSpi.java
583 * javax/crypto/IllegalBlockSizeException.java
584 * javax/crypto/KeyAgreement.java
585 * javax/crypto/KeyAgreementSpi.java
586 * javax/crypto/KeyGenerator.java
587 * javax/crypto/KeyGeneratorSpi.java
588 * javax/crypto/Mac.java
589 * javax/crypto/MacSpi.java
590 * javax/crypto/Makefile.am
591 * javax/crypto/NoSuchPaddingException.java
592 * javax/crypto/NullCipher.java
593 * javax/crypto/NullCipherImpl.java
594 * javax/crypto/SealedObject.java
595 * javax/crypto/SecretKey.java
596 * javax/crypto/SecretKeyFactory.java
597 * javax/crypto/SecretKeyFactorySpi.java
598 * javax/crypto/ShortBufferException.java
599 * javax/crypto/interfaces/DHKey.java
600 * javax/crypto/interfaces/DHPrivateKey.java
601 * javax/crypto/interfaces/DHPublicKey.java
602 * javax/crypto/interfaces/PBEKey.java
603 * javax/crypto/spec/DESKeySpec.java
604 * javax/crypto/spec/DESedeKeySpec.java
605 * javax/crypto/spec/DHGenParameterSpec.java
606 * javax/crypto/spec/DHParameterSpec.java
607 * javax/crypto/spec/DHPrivateKeySpec.java
608 * javax/crypto/spec/DHPublicKeySpec.java
609 * javax/crypto/spec/IvParameterSpec.java
610 * javax/crypto/spec/PBEKeySpec.java
611 * javax/crypto/spec/PBEParameterSpec.java
612 * javax/crypto/spec/RC2ParameterSpec.java
613 * javax/crypto/spec/RC5ParameterSpec.java
614 * javax/crypto/spec/SecretKeySpec.java
615 * javax/security/auth/AuthPermission.java
616 * javax/security/auth/DestroyFailedException.java
617 * javax/security/auth/Destroyable.java
618 * javax/security/auth/Policy.java
619 * javax/security/auth/PrivateCredentialPermission.java
620 * javax/security/auth/RefreshFailedException.java
621 * javax/security/auth/Refreshable.java
622 * javax/security/auth/Subject.java
623 * javax/security/auth/SubjectDomainCombiner.java
624 * javax/security/auth/callback/Callback.java
625 * javax/security/auth/callback/CallbackHandler.java
626 * javax/security/auth/callback/ChoiceCallback.java
627 * javax/security/auth/callback/ConfirmationCallback.java
628 * javax/security/auth/callback/LanguageCallback.java
629 * javax/security/auth/callback/NameCallback.java
630 * javax/security/auth/callback/PasswordCallback.java
631 * javax/security/auth/callback/TextInputCallback.java
632 * javax/security/auth/callback/TextOutputCallback.java
633 * javax/security/auth/callback/UnsupportedCallbackException.java
634 * javax/security/auth/login/AccountExpiredException.java
635 * javax/security/auth/login/AppConfigurationEntry.java
636 * javax/security/auth/login/Configuration.java
637 * javax/security/auth/login/CredentialExpiredException.java
638 * javax/security/auth/login/FailedLoginException.java
639 * javax/security/auth/login/LoginContext.java
640 * javax/security/auth/login/LoginException.java
641 * javax/security/auth/login/NullConfiguration.java
642 * javax/security/auth/x500/X500PrivateCredential.java
643 * javax/security/sasl/AuthenticationException.java
644 * javax/security/sasl/AuthorizeCallback.java
645 * javax/security/sasl/RealmCallback.java
646 * javax/security/sasl/RealmChoiceCallback.java
647 * javax/security/sasl/Sasl.java
648 * javax/security/sasl/SaslClient.java
649 * javax/security/sasl/SaslClientFactory.java
650 * javax/security/sasl/SaslException.java
651 * javax/security/sasl/SaslServer.java
652 * javax/security/sasl/SaslServerFactory.java
653 * org/ietf/jgss/ChannelBinding.java
654 * org/ietf/jgss/GSSContext.java
655 * org/ietf/jgss/GSSCredential.java
656 * org/ietf/jgss/GSSException.java
657 * org/ietf/jgss/GSSManager.java
658 * org/ietf/jgss/GSSName.java
659 * org/ietf/jgss/MessageProp.java
660 * org/ietf/jgss/Oid.java
661 * org/ietf/jgss/MessagesBundle.properties
663 Files imported from Jessie <http://www.nongnu.org/jessie/>
664 * javax/net/ServerSocketFactory.java
665 * javax/net/SocketFactory.java
666 * javax/net/VanillaServerSocketFactory.java
667 * javax/net/VanillaSocketFactory.java
668 * javax/net/ssl/HandshakeCompletedEvent.java
669 * javax/net/ssl/HandshakeCompletedListener.java
670 * javax/net/ssl/HostnameVerifier.java
671 * javax/net/ssl/HttpsURLConnection.java
672 * javax/net/ssl/KeyManager.java
673 * javax/net/ssl/KeyManagerFactory.java
674 * javax/net/ssl/KeyManagerFactorySpi.java
675 * javax/net/ssl/ManagerFactoryParameters.java
676 * javax/net/ssl/SSLContext.java
677 * javax/net/ssl/SSLContextSpi.java
678 * javax/net/ssl/SSLException.java
679 * javax/net/ssl/SSLHandshakeException.java
680 * javax/net/ssl/SSLKeyException.java
681 * javax/net/ssl/SSLPeerUnverifiedException.java
682 * javax/net/ssl/SSLPermission.java
683 * javax/net/ssl/SSLProtocolException.java
684 * javax/net/ssl/SSLServerSocket.java
685 * javax/net/ssl/SSLServerSocketFactory.java
686 * javax/net/ssl/SSLSession.java
687 * javax/net/ssl/SSLSessionBindingEvent.java
688 * javax/net/ssl/SSLSessionBindingListener.java
689 * javax/net/ssl/SSLSessionContext.java
690 * javax/net/ssl/SSLSocket.java
691 * javax/net/ssl/SSLSocketFactory.java
692 * javax/net/ssl/TrivialHostnameVerifier.java
693 * javax/net/ssl/TrustManager.java
694 * javax/net/ssl/TrustManagerFactory.java
695 * javax/net/ssl/TrustManagerFactorySpi.java
696 * javax/net/ssl/X509KeyManager.java
697 * javax/net/ssl/X509TrustManager.java
698 * javax/security/cert/Certificate.java
699 * javax/security/cert/CertificateEncodingException.java
700 * javax/security/cert/CertificateException.java
701 * javax/security/cert/CertificateExpiredException.java
702 * javax/security/cert/CertificateNotYetValidException.java
703 * javax/security/cert/CertificateParsingException.java
704 * javax/security/cert/X509CertBridge.java
705 * javax/security/cert/X509Certificate.java
707 2004-08-20 Casey Marshall <csm@gnu.org>
709 * java/security/cert/X509CRLSelector.java: New file.
710 * java/security/cert/X509CertSelector.java: New file.
712 2004-09-15 Michael Koch <konqueror@gmx.de>
714 * gnu/java/net/protocol/file/Handler.java
715 (openConnection): Don't throw exception if host part for file: URI is
716 present. setURL() keeps file: protocol if ftp: protocol is not
719 2004-09-14 Richard Henderson <rth@redhat.com>
721 * java/lang/natPosixProcess.cc (waitForSignal): Ignore return
724 2004-09-12 Tom Tromey <tromey@redhat.com>
726 * javax/naming/CompoundName.java (CompoundName): Don't check for
727 separator in "flat" case.
729 2004-09-12 Michael Koch <konqueror@gmx.de>
731 * libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces
732 AM_CONFIG_HEADER by AC_CONFIG_FILES.
733 * libltdl/Makefile.in, libltdl/aclocal.m4, libltdl/configure:
736 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
739 * win32-threads.cc (_Jv_ThreadInitData): Zero out thread
740 handle in newly-allocated _Jv_Thread_t.
741 (_Jv_ThreadDestroyData): Close thread handle.
742 (_Jv_ThreadStart): Remove obsolete comment.
743 Store handle of newly-created thread in _Jv_Thread_t.
744 * include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
745 before including <windows.h>
746 #define _Jv_HaveCondDestroy
748 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
750 * java/lang/natThread.cc (finalize_native): Destroy
751 join conditional variable and mutex if these destroy
752 operations are supported.
754 2004-09-10 Dalibor Topic <robilad@kaffe.org>
756 * gnu/java/net/protocol/file/Connection.java (permission): New field.
757 (DEFAULT_PERMISSION): New constant.
758 (Connection): Create a FilePermission with permission to read file.
760 2004-09-10 Michael Koch <konqueror@gmx.de>
762 * gnu/java/net/protocol/file/Connection.java
763 (getLastModified): Moved around.
764 (getPermission): Return stored permission.
766 2004-09-10 Michael Koch <konqueror@gmx.de>
768 * Makefile.in: Regenerate.
770 2004-09-10 Michael Koch <konqueror@gmx.de>
772 * Makefile.am: Reverted accidently commited stuff.
773 * configure: Regenerated.
775 2004-09-10 Michael Koch <konqueror@gmx.de>
777 * gnu/java/net/protocol/file/Connection.java
778 (lineSeparator): Made non-final.
780 (connect): Initialize lineSeparator lazily. Use ByteArrayInputStream
781 instead of StringBufferInputStream.
783 2004-09-10 Michael Koch <konqueror@gmx.de>
785 * gnu/java/net/protocol/file/Connection.java
786 (connect): Handle file is a directory case.
788 2004-09-10 Michael Koch <konqueror@gmx.de>
791 (xlib_includes): Removed.
792 (AM_CPPFLAGS): Renamed from INCLUDES.
793 (lib_gnu_awt_xlib_la_CPPFLAGS): New automake variable.
794 * Makefile.in: Regenerate.
796 2004-09-09 Michael Koch <konqueror@gmx.de>
798 * java/security/ProtectionDomain.java,
799 * java/util/PropertyPermissionCollection.java:
800 Fixed javadocs all over.
802 2004-09-09 Sven de Marothy <sven@physto.se>
804 Patch from David Gilbert <david.gilbert@object-refinery.com>
805 * java/lang/Comparable.java: Fixed documentation errors.
806 * java/util/Arrays.java: Likewise.
808 2004-09-09 Andrew John Hughes <gnu_andrew@member.fsf.org>
810 * java/net/Inet4Address.java
811 (Inet4Address): Added comment to serialization UID.
812 * java/text/Format.java
813 (Format): Added comment to serialization UID.
815 2004-09-09 Michael Koch <konqueror@gmx.de>
817 * java/lang/System.java
818 (err): Fixed javadoci to point to setErr() and not setOut().
820 2004-09-09 Jeroen Frijters <jeroen@frijters.net>
822 (normalizePath): Added special case for windows systems.
824 2004-09-09 Michael Koch <konqueror@gmx.de>
827 (dupSeparator): Made private.
828 (File(URI)): New constructor.
829 (getParentFile): Fixed javadoc.
830 (createTempFile): Reformated.
831 (setReadOnly): Added comment.
832 (deleteOnExit): Merged javadoc with classpath version.
834 2004-09-09 Michael Koch <konqueror@gmx.de>
836 * Makefile.am: Don't try to include deps.mk.
837 * Makefile.in: Regenerated.
839 2004-09-08 Bryce McKinlay <mckinlay@redhat.com>
841 * configure.ac (AC_CONFIG_COMMANDS): Don't create subdirectories and
843 * configure: Rebuilt.
845 2004-09-04 Mohan Embar <gnustuff@thisiscool.com>
847 * java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces):
848 Changed pfn from static local to local.
850 2004-09-03 Bryce McKinlay <mckinlay@redhat.com>
851 H.J. Lu <hongjiu.lu@intel.com>
854 * Makefile.am (GCJCOMPILE): Remove definition.
855 (AM_CFLAGS): Add -fclasspath and -fbootclasspath flags.
856 Use LTGCJCOMPILE, not GCJCOMPILE, to build .lo targets.
857 * Makefile.in: Rebuilt.
859 2004-09-03 Kelley Cook <kcook@gcc.gnu.org>
861 * configure.ac (enable-gc-debug): Update help for new syntax.
862 * configure: Regenerate.
864 2004-09-03 David Daney <ddaney@avtrex.com>
866 * include/mips-signal.h: Update copyright.
868 2004-09-03 David Daney <ddaney@avtrex.com>
870 * configure.host: Use -fno-use-divide-subroutine for mips*-*-linux*.
871 * include/mips-signal.h: Added HANDLE_FPE support.
873 2004-08-31 Michael Koch <konqueror@gmx.de>
875 * javax/swing/plaf/basic/BasicTextAreaUI.java
876 (create): New method.
877 * javax/swing/text/DefaultHighlighter.java
878 (DefaultHighlightPainter.debugRect): Removed.
879 * javax/swing/text/StyleContext.java
880 (DEFAULT_STYLE): New field.
882 2004-08-31 Michael Koch <konqueror@gmx.de>
884 * javax/swing/plaf/basic/BasicLookAndFeel.java
885 (initComponentDefaults): Add keybindings for selection.backward and
886 selection-forward for text components.
887 * javax/swing/plaf/basic/BasicTextUI.java
888 (paintSafely): Paint highlight only when something is actually
890 * javax/swing/text/DefaultCaret.java
891 (handleHighlight): New method.
892 (setSelectionVisible): Don't do anything when nothing changes.
894 (moveDot): Reimplemented. Handle highlight.
895 (setDot): Set mark too. Handle highlight.
896 (getSelectionPainter): New method.
897 * javax/swing/text/DefaultEditorKit.java
898 (defaultActions): Added new actions for text selection.
899 * javax/swing/text/DefaultHighlighter.java
900 (DefaultHighlightPainter): New inner class.
901 (DefaultPainter): New field.
902 (paint): Implemented.
903 * javax/swing/text/PlainView.java
904 (paint): Don't draw background here again.
905 * javax/swing/text/Utilities.java
906 (getTabbedTextWidth): Use width of ' ' instead of 'm' for tabsize.
907 (drawTabbedText): Likewise.
909 2004-08-31 Graydon Hoare <graydon@redhat.com>
911 * javax/swing/JComponent.java
912 (resetKeyboardActions): Add null checks.
914 2004-08-31 Graydon Hoare <graydon@redhat.com>
916 * javax/swing/DefaultButtonModel.java:
917 Skip group notification when no group is set.
919 2004-08-31 Graydon Hoare <graydon@redhat.com>
921 * javax/swing/JColorChooser.java:
922 Make a couple inner classes static, for jikes.
924 2004-08-31 Michael Koch <konqueror@gmx.de>
926 * javax/swing/plaf/basic/BasicTextUI.java
927 (RottView.modelToView): New method.
928 (UpdateHandler): Renamed from EventHandler.
929 (updateHandler): Renamed from eventHandler.
930 (modelToView): Implemented.
931 * javax/swing/text/AbstractDocument.java
932 (BranchElement.getElement): Return null for non-existing indeces.
933 (BranchElement.getElementIndex): Return 0 in some corner cases.
934 * javax/swing/text/FieldView.java
935 (modelToView): New method.
936 * javax/swing/text/PlainView.java
937 (modelToView): Made public.
939 2004-08-31 Kim Ho <kho@redhat.com>
941 * Makefile.am: New files.
942 * Makefile.in: Regenerate.
943 * gcj/Makefile.in: Regenerate.
944 * include/Makefile.in: Regenerate.
945 * java/awt/Color.java: Fix documentation.
946 (RGBtoHSB): Use floats for conversions.
947 * javax/swing/ButtonGroup.java: Run Jalopy.
948 (setSelected): Reimplement.
949 * javax/swing/DefaultButtonModel.java: Run Jalopy.
950 (changeState): Let ButtonGroup know that the button
952 * javax/swing/JColorChooser.java: Implement.
953 * javax/swing/JLabel.java: Run Jalopy.
954 * javax/swing/JSpinner.java: Run Jalopy.
955 (setValue): New method.
956 * javax/swing/JTabbedPane.java: Run Jalopy.
957 (removeTabAt): Call correct remove method.
958 * javax/swing/SpinnerNumberModel.java: Run Jalopy.
959 (getPreviousValue): Compare minimum value.
960 * javax/swing/Timer.java: Run Jalopy.
961 (run): Comment out println.
962 * javax/swing/ToolTipManager.java:
963 (mouseMoved): Get new tooltip text for location.
964 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
966 * javax/swing/colorchooser/ColorChooserComponentFactory.java:
968 * javax/swing/colorchooser/DefaultColorSelectionModel.java:
970 (setSelectedColor): Fire ChangeEvent.
971 * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
973 * javax/swing/colorchooser/DefaultPreviewPanel.java:
975 * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
977 * javax/swing/colorchooser/DefaultSwatchChooserPanel.java:
979 * javax/swing/plaf/basic/BasicArrowButton.java:
980 (getArrow): Fix size of upward pointing button.
981 * javax/swing/plaf/basic/BasicColorChooserUI.java:
983 * javax/swing/plaf/basic/BasicSliderUI.java:
984 (getWidthOfWidestLabel): Use preferred dimensions.
985 (getHeightOfTallestLabel): Ditto.
986 * javax/swing/plaf/basic/BasicSpinnerUI.java:
988 (mousePressed): Disable changes to spinner if it is not enabled.
989 * testsuite/Makefile.in: Regenerate.
992 2004-08-31 Michael Koch <konqueror@gmx.de>
994 * javax/swing/plaf/basic/BasicTableHeaderUI.java,
995 javax/swing/plaf/basic/BasicTableUI.java:
996 Added copyright notice.
998 2004-08-31 Olga Rodimina <rodimina@redhat.com>
1000 * Makefile.am: Added new files.
1001 * Makefile.in: Regenerate.
1002 * javax/swing/ComboBoxEditor.java: Added javadocs.
1003 * javax/swing/ComboBoxModel.java: Likewise.
1004 * javax/swing/DefaultComboBoxModel.java: Implemented.
1005 * javax/swing/DefaultListCellRenderer.java: Added javadocs
1006 and ran through jalopy to fix formatting style.
1007 (getListCellRendererComponent): Use appropriate border
1008 if renderer has focus and use noFocusBorder when it doesn't.
1009 * javax/swing/JComboBox.java: Implemented.
1010 * javax/swing/JList.java:
1011 (locationToIndex): New Method. Implemented.
1012 (indexToLocation): New Method.
1013 * javax/swing/JPopupMenu.java:
1014 (visible): New field.
1015 (isVisible): Changed to use new field above.
1016 (setVisible): Likewise.
1017 * javax/swing/MutableComboBoxModel.java: Added javadocs.
1018 * javax/swing/plaf/basic/BasicArrowButton.java:
1019 (shadow): Changed default color to Color.gray.
1020 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
1021 UI delegate for JComboBox.
1022 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
1023 Popup menu containing list of JComboBox's items.
1024 * javax/swing/plaf/basic/BasicComboBoxEditor.java: New File.
1025 * javax/swing/plaf/basic/BasicComboBoxRenderer.java: New File.
1026 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
1027 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
1028 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
1029 (popupMenuWillBecomeVisible): Set selected path to the first
1030 element only if it is of type MenuElement. Also fix formatting
1032 * javax/swing/plaf/basic/ComboPopup.java: Added javadocs and missing
1035 2004-08-31 Michael Koch <konqueror@gmx.de>
1037 * javax/swing/text/AbstractDocument.java
1038 (createBranchElement): Use new constructor of BranchElement.
1039 (createLeafElement): Renamed arguments.
1040 (getRootElements): Implemented.
1041 (BranchElement.start): Removed.
1042 (BranchElement.end): Likewise.
1043 (BranchElement.BranchElement): Fixed arguments.
1044 (BranchElement.getEndOffset): Reimplemented.
1045 (BranchElement.getStartOffset): Likewis.
1046 * javax/swing/text/DefaultCaret.java
1047 (paint): Draw simple vertical line as caret instead of a rectangle.
1048 * javax/swing/text/JTextComponent.java
1049 (setText): Use doc directly.
1050 * javax/swing/text/PlainView.java
1051 (nextTabStop): Implemented.
1052 * javax/swing/text/Utilities.java
1053 (drawTabbedText): nextTabStop() returns an absolute x position.
1054 (getTabbedTextWidth): Likewise.
1056 2004-08-31 Graydon Hoare <graydon@redhat.com>
1058 * java/awt/Component.java
1059 (isFocusTraversable): Predicate on isLightweight()
1060 (setFocusable): Set isFocusTraversableOverridden.
1061 (requestFocus): Predicate peer dispatch on !isLightweight()
1062 (requestFocusInWindow): Likewise.
1063 (dispatchEventImpl): Coordinate with KeyboardFocusManager.
1064 * java/awt/Container.java
1065 (dispatchEventImpl): Predicate on event mask.
1066 (LightweightDispatcher): Remove focus machinery.
1067 * java/awt/DefaultFocusTraversalPolicy.java
1068 (accept): Expand predicate to include isFocusable().
1069 * java/awt/DefaultKeyboardFocusManager.java:
1070 Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
1071 * java/awt/KeyboardFocusManager.java
1072 (redispatchEvent): Synchronize on event to prevent feedback.
1073 * javax/swing/AbstractButton.java
1074 (ButtonFocusListener): Remove class.
1075 (init): Set focusPainted, focusable.
1076 * javax/swing/ActionMap.java (get): Check parent for null.
1077 * javax/swing/InputMap.java (get): Likewise.
1078 * javax/swing/JComponent.java
1079 (inputMap_whenFocused): New InputMap.
1080 (inputMap_whenAncestorOfFocused): Likewise.
1081 (inputMap_whenInFocusedWindow): Likewise.
1082 (getActionForKeyStroke): Rewrite.
1083 (getConditionForKeystroke): Likewise.
1084 (ActionListenerProxy): New private class.
1085 (setInputMap): Implement.
1086 (getInputMap): Likewise.
1087 (setActionMap): Likewise.
1088 (getActionMap): Likewise.
1089 (processComponentKeyEvent): New empty method.
1090 (processKeyEvent): Implement.
1091 (processKeyBinding): Likewise.
1092 (resetKeyboardActions): Rewrite.
1093 * javax/swing/KeyStroke.java: Rewrite.
1094 * javax/swing/SwingUtilities.java
1095 (notifyAction): Implement.
1096 (replaceUIActionMap): Likewise.
1097 (replaceUIInputMap): Likewise.
1098 * javax/swing/plaf/basic/BasicButtonListener.java
1099 (focusGained): Implement.
1100 (focusLost): Repaint if focusPainted().
1101 (installKeyboardActions): Install pressed / released actions.
1102 (uninstallKeyboardActions): Implement.
1103 * javax/swing/plaf/basic/BasicButtonUI.java
1104 (focusColor): New field.
1105 (installDefaults): Load focus color, install input map.
1106 (installKeyboardActions): Implement.
1107 (uninstallKeyboardActions): Likewise.
1108 (paintFocus): Rewrite.
1109 * javax/swing/plaf/basic/BasicLookAndFeel.java
1110 (Button.focus): New default, midPurple.
1111 * javax/swing/plaf/basic/BasicTextUI.java
1113 (installUI): Get doc from kit, load defaults.
1114 (getKeymapName): Implement.
1115 (createKeymap): Likewise.
1116 (installKeyboardActions): Likewise.
1117 (getInputMap): Likewise.
1118 (getActionMap): Likewise.
1119 (createActionMap): Likewise.
1120 * javax/swing/text/AbstractDocument.java
1121 (getStartPosition): Implement.
1122 (getEndPosition): Likewise.
1123 * javax/swing/text/DefaultEditorKit.java
1124 (CopyAction): New class.
1125 (CutAction): Likewise.
1126 (DefaultKeyTypedAction): Likewise.
1127 (InsertBreakAction): Likewise.
1128 (InsertContentAction): Likewise.
1129 (InsertTabAction): Likewise.
1130 (PasteAction): Likewise.
1131 (defaultActions): New static table.
1132 (createCaret): Implement.
1133 (getActions): Likewise.
1134 * javax/swing/text/JTextComponent.java
1135 (KeymapWrapper): New private class.
1136 (KeymapActionMap): Likewise.
1137 (DefaultKeymap): New class.
1138 (keymaps): New static table.
1139 (keymap): New field.
1140 (getKeymap): Implement.
1141 (removeKeymap): Likewise.
1142 (addKeymap): Likewise.
1143 (setKeymap): Likewise.
1144 (loadKeymap): Likewise.
1145 (getActions): Likewise.
1146 (margin): New field.
1147 (JTextComponent): Build and install default keymap.
1148 * javax/swing/text/TextAction.java
1149 (textAction): Call super properly.
1150 (getTextComponent): Implement.
1151 * javax/swing/text/Utilities.java
1152 (drawTabbedText): Adjust position by ascent.
1154 2004-08-31 David Jee <djee@redhat.com>
1158 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
1159 (setEnabled): Make it a native method.
1160 * java/awt/DefaultKeyboardFocusManager.java
1161 (postProcessKeyEvent): Only post event if the menu item
1163 * java/awt/MenuItem.java:
1164 Private field 'enabled' should be true by default.
1165 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
1166 (setEnabled): New function.
1168 2004-08-31 David Jee <djee@redhat.com>
1172 * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
1173 (nativeSetHelpMenu): New native method declaration.
1174 (addHelpMenu): Call nativeSetHelpMenu().
1176 * java/awt/MenuBar.java
1177 (setHelpMenu): Call addNotify() on the new help menu.
1178 (add): Call addNotify() on the new menu.
1179 (addNotify): Set the help menu if one exists.
1180 * java/awt/peer/MenuBarPeer.java
1182 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
1183 (nativeSetHelpMenu): New method.
1185 2004-08-31 Graydon Hoare <graydon@redhat.com>
1187 * Makefile.am: Add new files.
1188 * Makefile.in: Regenerate.
1189 * javax/swing/Box.java: Fix setting of layout in ctor.
1190 * javax/swing/JScrollPane.java: Scroll headers as well.
1191 * javax/swing/JTable.java: Reimplement.
1192 * javax/swing/JViewPort.java: Only add non-null children.
1193 * javax/swing/ScrollPaneLayout.java: Correct header calculations.
1194 * javax/swing/Timer.java: Fix stopping null waker.
1195 * javax/swing/plaf/basic/BasicTableHeaderUI.java: New file.
1196 * javax/swing/plaf/basic/BasicTableUI.java: New file.
1197 * javax/swing/table/DefaultTableCellRenderer.java: Configure.
1198 * javax/swing/table/DefaultTableColumnModel.java: Flesh out.
1199 * javax/swing/table/DefaultTableModel.java: Clean up.
1200 * javax/swing/table/JTableHeader.java: Implement.
1202 2004-08-31 Mark Wielaard <mark@klomp.org>
1204 * javax/swing/JSpinner.java (getChangeListeners): Remove double
1207 2004-08-31 Mark Wielaard <mark@klomp.org>
1209 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
1210 Declare variables at top of functions/block.
1211 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Likewise.
1213 2004-08-31 Mark Wielaard <mark@klomp.org>
1215 * java/lang/Rectangle.java (intersects): Check r.width and r.height
1218 2004-08-31 Michael Koch <konqueror@gmx.de>
1220 * javax/swing/text/PlainView.java
1221 (selectedColor): New field.
1222 (unselectedColor): Likewise.
1224 (updateMetrics): New method.
1225 (lineToRect): Likewise.
1226 (modelToView): Likewise.
1227 (drawSelectedText): Use color from JTextComponent ad draw with
1229 (drawUnselectedText): Likewise.
1230 (paint): Initialize helper fields.
1231 * javax/swing/text/View.java
1232 (getChildAllocation): New method.
1233 (getViewIndex): Likewise.
1234 (getToolTipText): Likewise.
1236 2004-08-31 Michael Koch <konqueror@gmx.de>
1238 * javax/swing/text/Utilities.java
1239 (drawTabbedText): Reimplemented.
1240 (getTabbedTextWidth): Likewise.
1242 2004-08-31 Michael Koch <konqueror@gmx.de>
1244 * javax/swing/plaf/basic/BasicTextUI.java
1245 (installDefaults): Install caret and highlighter.
1246 (modelToView): Use Bias.Forward when calling sibling.
1247 * javax/swing/text/AbstractDocument.java
1248 (ElementEdit): Implements DocumentEvent.ElementChange.
1249 (ElementEdit.ElementEdit): New method.
1250 (ElementEdit.getChildrenAdded): Likewise.
1251 (ElementEdit.getChildrenRemoved): Likewise.
1252 (ElementEdit.getElement): Likewise.
1253 (ElementEdit.getIndex): Likewise.
1254 * javax/swing/text/DefaultCaret.java
1256 (textComponent): Renamed from parent, made private.
1257 (selectionVisible): Renamed from vis_sel, made private.
1258 (blinkRate): Renamed from blink, made private.
1259 (magicCaretPosition): Renamed from magic, made private.
1260 (visible): Renamed from vis, made private.
1261 (dot): Made private.
1263 (deinstall): Remove as MouseMotionListener.
1264 (install): Initialize textComponent first. Add as MouseMotionListener.
1265 (paint): Reimplemented.
1266 * javax/swing/text/JTextComponent.java
1267 (setCaret): Deinstall old caret, install new one and fire property
1268 change after setting property.
1269 (setHighlighter): Deinstall old highlighter, install new one and fire
1270 property change after setting property.
1271 (setCaretColor): Fire property change after setting property.
1272 (setDisabledTextColor): Likewise.
1273 (setSelectedTextColor): Likewise.
1274 (setSelectionColor): Likewise.
1275 (modelToView): New method.
1277 2004-08-31 Michael Koch <konqueror@gmx.de>
1279 * javax/swing/text/AbstractDocument.java
1280 (getText): Simplified.
1281 * javax/swing/text/Segment.java
1282 (current): New field.
1283 (current): Reimplemented.
1285 (getIndex): Likewise.
1288 (previous): Likewise.
1289 (setIndex): Likewise.
1291 2004-08-31 Michael Koch <konqueror@gmx.de>
1293 * javax/swing/plaf/basic/BasicButtonUI.java
1294 (defaultTextIconGap): Made protected.
1295 (defaultTextShiftOffset): Likewise.
1296 (textShiftOffset): New field.
1297 (clearTextShiftOffset): New method.
1298 (getTextShiftOffset): Likewise.
1299 (setTextShiftOffset): Likewise.
1301 2004-08-31 Michael Koch <konqueror@gmx.de>
1303 * javax/swing/plaf/basic/BasicTextUI.java
1304 (installUI): Add eventHandler as property listener.
1305 (uninstallUI): remove eventHandler as propert listener.
1306 (installDefaults): Added comment.
1307 (installListeners): Likewise.
1308 (installKeyboardActions): Likewise.
1309 (uninstallDefaults): Likewise.
1310 (uninstallListeners): Likewise.
1311 (uninstallKeyboardActions): Likewise.
1313 2004-08-31 Michael Koch <konqueror@gmx.de>
1315 * javax/swing/text/AbstractDocument.java:
1316 Fixed some typos in comments.
1317 (insertString): Reimplemented.
1319 (replace): New method.
1320 (children): Dont use fully qualified class name.
1321 (DefaultDocumentEvent.offset): Renamed from off.
1322 (DefaultDocumentEvent.length): Renamed from len.
1323 (DefaultDocumentEvent.type): New field.
1324 (DefaultDocumentEvent.DefaultDocumentEvent): New constructor.
1325 (DefaultDocumentEvent.getType): Implemented.
1327 2004-08-31 Michael Koch <konqueror@gmx.de>
1329 * javax/swing/plaf/basic/BasicTextUI.java
1330 (RootView.textComponent): Removed.
1331 (RootView.RootView): Don't initialize textComponent.
1332 (RootView.getViewFactory): New method.
1333 (EventHandler): New inner class.
1334 (rootView): Initialize at instance creation.
1335 (eventHandler): New field.
1336 (installUI): Don't create view hierarchy directly,
1337 call modelChanged() instead.
1338 (modelChanged): New method.
1339 * javax/swing/text/JTextComponent.java
1340 (setDocument): Fire property change event.
1342 2004-08-31 Michael Koch <konqueror@gmx.de>
1344 * javax/swing/plaf/basic/BasicTextUI.java
1345 (RootView.paint): Removed debug output.
1346 (paintSafely): Draw highlighter before text.
1347 (paintBackground): Use background color of text component.
1348 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
1351 2004-08-31 Michael Koch <konqueror@gmx.de>
1353 * javax/swing/plaf/basic/BasicToolBarUI.java
1354 (BasicToolBarUI): Fixed arguments for constructor.
1355 (createUI): Fixed creation of object.
1357 2004-08-31 Michael Koch <konqueror@gmx.de>
1359 * javax/swing/DefaultListSelectionModel.java
1360 (fireValueChanged): Renamed from fireSelectionValueChanged,
1363 2004-08-31 Michael Koch <konqueror@gmx.de>
1365 * javax/swing/text/TabSet.java
1366 (TabSet): Implements java.io.Serializable.
1367 * javax/swing/text/TabStop.java
1368 (TabStop): Implements java.io.Serializable.
1369 (TabStop): Made public.
1371 2004-08-31 Michael Koch <konqueror@gmx.de>
1373 * javax/swing/JComponent.java
1374 (setUI): Fire PropertyChange.
1375 * javax/swing/JLabel.java
1376 (text): Renamed from labelText.
1377 (horizontalAlignment): New default vlaue.
1378 (icon): Renamed from activeIcon.
1379 (displayedMnemonic): Renamed from mnemonicKey, added default value.
1380 (displayedMnemonicIndex): Renamed from underlineChar.
1381 (setDisplayedMnemonic): Reimplemented.
1382 * javax/swing/JRadioButton.java
1383 (JRadioButton): New constructors.
1384 * javax/swing/JTextField.java
1385 (JTextField): Throw exception if colums < 0, initialitialz
1386 this.columns directly and initialize document with text conditionally.
1388 2004-08-31 Michael Koch <konqueror@gmx.de>
1390 * javax/swing/plaf/basic/BasicFormattedTextFieldUI.java,
1391 javax/swing/plaf/basic/BasicPasswordFieldUI.java,
1392 javax/swing/plaf/basic/BasicTextAreaUI.java: New files.
1393 * javax/swing/text/FieldView.java
1394 (paint): Just call super method for now.
1395 * Makefile.am: Added new files.
1396 * Makefile.in: Regenerated.
1398 2004-08-31 Ka-Hing Cheung <kahing@javabsp.org>
1400 * javax/swing/AbstractSpinnerModel.java,
1401 javax/swing/JSpinner.java,
1402 javax/swing/SpinnerNumberModel.java,
1403 javax/swing/plaf/basic/BasicSpinnerUI.java:
1405 * javax/swing/plaf/basic/BasicLookAndFeel.java
1406 (initClassDefaults): Added defaults for BasicSpinnerUI.
1408 2004-08-31 Michael Koch <konqueror@gmx.de>
1410 * Makefile.am: Added new files.
1411 * Makefile.in: Regenerated.
1413 2004-08-31 Michael Koch <konqueror@gmx.de>
1415 * javax/swing/TransferHandler.java,
1416 javax/swing/plaf/basic/ComboPopup.java: New files
1417 * Makefile.am: Added javax/swing/TransferHandler.java and
1418 javax/swing/plaf/basic/ComboPopup.java
1419 * Makefile.in: Regenerated.
1421 2004-08-31 Roman Kennke <roman@ontographics.com>
1423 * javax/swing/text/Utilities.java: New file.
1425 2004-08-31 Michael Koch <konqueror@gmx.de>
1427 * Makefile.am: Added javax/swing/text/Utilities.java.
1428 * Makefile.in: Regenerated.
1430 2004-08-31 Graydon Hoare <graydon@redhat.com>
1432 * javax/swing/text/SimpleAttributeSet.java: New file.
1433 * javax/swing/text/StyleConstants.java: New file.
1434 * javax/swing/text/StyleContext.java: New file.
1435 * javax/swing/text/TabSet.java: New file.
1436 * javax/swing/text/TabStop.java: New file.
1437 * javax/swing/text/AbstactDocument.java:
1438 (AbstractElement): Implement attribute support.
1439 * javax/swing/text/AttributeSet.java
1440 (NameAttribute): New static field.
1441 (ResolveAttribute): New static field.
1442 * Makefile.am: Update for new files.
1443 * Makefile.in: Regenerate.
1445 2004-08-31 Craig Black <craig.black@aonix.com>
1447 * gnu/java/awt/peer/gtk/GdkGraphics.java
1448 (drawImage): Add support for scaling pixmaps.
1449 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1450 (copyAndScalePixmap): New native method.
1452 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1455 * jni/gtk-peer/gthread-jni.c: Include stdio.h. Eliminate
1456 type-punning compiler warnings using unions.
1457 (throw): Replace bzero with memset.
1459 2004-08-31 Andreas Tobler <a.tobler@schweiz.ch>
1460 Thomas Fitzsimmons <fitzsim@redhat.com>
1462 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: Move
1463 NSA_PB macros to gtkpeer.h. Include gtkpeer.h.
1464 * jni/gtk-peer/gtkpeer.h: Move NSA_PB macros here.
1465 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1466 (nativeSetIconImageFromDecoder): Use NSA_GET_PB_PTR macro.
1468 2004-08-31 Mark Wielaard <mark@klomp.org>
1470 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
1471 #include gdk.h, not gtk.h. #include jni.h, native_state.h, string.h
1472 and stdlib.h, not gtkpeer.h.
1473 (*vm): New static variable.
1474 (areaPreparedID): Make static.
1475 (areaUpdatedID): Likewise.
1476 (area_prepared): Get and use JNIEnv through stored JavaVM *vm.
1477 (area_prepared): Likewise.
1478 (area_updated): Likewise.
1480 (initStaticState): Initialize *vm javaVM.
1481 (pumpBytes): Use given env, not global gdk_env.
1483 2004-08-31 Mark Wielaard <mark@klomp.org>
1485 * java/awt/geom/CubicCurve2D.java (solveCubic): Removed duplicate
1488 2004-08-31 Sven de Marothy <sven@physto.se>
1490 * java/awt/geom/CubicCurve2D.java: Reindent.
1491 (contains): Implemented.
1492 (intersects): Implemented.
1493 * java/awt/geom/QuadCurve2D.java: Likewise.
1494 * java/awt/geom/GeneralPath.java: Reindent and document.
1495 Fully (re)implemented using separate xpoints and ypoints
1497 * java/awt/geom/RoundRectangle2D.java: Several bugfixes (Bug #6007).
1499 2004-08-31 Michael Koch <konqueror@gmx.de>
1501 * javax/swing/JMenuItem.java
1502 (getMenuDragMouseListeners): New method.
1503 (getMenuKeyListeners): Likewise.
1505 2004-08-31 Michael Koch <konqueror@gmx.de>
1507 * javax/swing/AbstractButton.java
1508 (model): Made protected.
1509 (actionListener): Likewise.
1510 (changeListener): Likewise.
1511 (itemListener): Likewise.
1512 (multiClickThreshhold): New field.
1513 (getActionListeners): New method.
1514 (getChangeListeners): Likewise.
1515 (getItemListeners): Likewise.
1516 (fireItemStateChanged): Simplified implementation.
1517 (fireActionPerformed): Likewise.
1518 (fireStateChanged): Likewise.
1519 (getMultiClickThreshhold): New method.
1520 (setMultiClickThreshhold): Likewise.
1522 2004-08-31 Tom Tromey <tromey@redhat.com>
1524 * java/awt/image/Kernel.java (clone): Use super.clone().
1526 2004-08-31 David Jee <djee@redhat.com>
1529 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1530 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1531 (nativeSetIconImageFromData): New native method declaration.
1532 (setIconImage): Handle images not produced from GdkPixbufDecoder.
1533 * gnu/java/awt/peer/gtk/GtkImage.java
1534 (getPixelCache): New method.
1535 (getColorModel): New method.
1536 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1537 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1538 (free_pixbuf_data): New helper function.
1539 (nativeSetIconImageFromData): New function.
1541 2004-08-31 Graydon Hoare <graydon@redhat.com>
1544 * javax/swing/JLayeredPane.java
1545 (setLayer): Permit changing layer after addition.
1546 (setPosition): Permit over-length positions.
1547 (layerToRange): Compare intValue()s.
1548 * javax/swing/Box.java (createHorizontalBox): Implement.
1549 (createRigidArea): Likewise.
1550 (createVerticalBox): Likewise.
1552 2004-08-31 Kim Ho <kho@redhat.com>
1554 * java/awt/Component.java:
1555 (processMouseEvent): Consume event after
1556 listeners process it.
1557 (processMouseMotionEvent): ditto.
1558 (processMouseWheelEvent): ditto.
1559 * java/awt/Container.java:
1560 (acquireComponentForMouseEvent):
1561 Do not dispatch to events that have been
1562 removed from the Container.
1563 (handleEvent): Consume the MouseEvents.
1564 * javax/swing/RepaintManager.java:
1565 (paintDirtyRegions): Do not add to list of
1566 damaged areas if the component has no root.
1568 2004-08-31 Michael Koch <konqueror@gmx.de>
1570 * javax/swing/plaf/basic/BasicMenuItemUI.java: Clean ip imports.
1572 2004-08-31 Mark Wielaard <mark@klomp.org>
1574 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
1575 null when a MissingResourceException is thrown. Should never happen.
1577 2004-08-31 Mark Wielaard <mark@klomp.org>
1579 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1580 when argument is null.
1582 2004-08-31 Mark Wielaard <mark@klomp.org>
1584 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1585 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
1586 Define hid at start of function.
1587 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
1590 2004-08-31 Mark Wielaard <mark@klomp.org>
1592 * gnu/java/awt/EmbeddedWindow.java: Reindent.
1593 * javax/swing/JButton.java: Reindent.
1594 * javax/swing/JCheckBox.java: Reindent.
1596 2004-08-31 Mark Wielaard <mark@klomp.org>
1598 * Makefile.am (gtk_c_source_files): Added
1599 jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c.
1600 (gtk_awt_peer_sources): Added
1601 gnu/java/awt/peer/gtk/GThreadMutex.java and
1602 gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java.
1603 * Makefile.in: Regenerated.
1605 2004-08-31 Archie Cobbs <archie@dellroad.org>
1607 * jni/gtk-peer/gthread-jni.c: don't #include nonexistent files
1609 2004-08-31 Steven Augart <augart@watson.ibm.com>
1611 * jni/gtk-peer/gthread-jni.c (c-font-lock-extra-types):
1612 Added jfieldID, jmethodID.
1614 2004-08-31 Mark Wielaard <mark@klomp.org>
1616 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1617 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): Initialize
1618 gdk_env before calling any gdk or gtk function.
1620 * gnu/java/awt/peer/gtk/GtkMainThread.java (gtkInitCalled): New field.
1621 (GtkMainThread): Call wait() in while loop waiting for gtkInitCalled.
1622 (run): Set gtkInitCalled.
1624 2004-08-31 Steven Augart <augart@watson.ibm.com>
1626 * gnu/java/awt/peer/gtk/GtkMainThread.java (run): Pass the value of
1627 the gnu.classpath.awt.gtk.portable.native.sync system property to C.
1629 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1630 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): New argument,
1631 portableNativeSync. Delegate PORTABLE_NATIVE_SYNC work to
1633 (init_glib_threads): New function.
1635 2004-08-31 Mark Wielaard <mark@klomp.org>
1637 * jni/gtk-peer/gthread-jni.c: Define MIN_, MAX_ and NORM_
1638 PRIORITY when not already defined in header file.
1640 2004-08-31 Mark Wielaard <mark@klomp.org>
1642 * jni/gtk-peer/gthread-jni.c (setup_cache): Call
1643 ExceptionOccurred, not ExceptionCheck, when we don't have JNI 1.2.
1645 2004-08-31 Steven Augart <augart@watson.ibm.com>
1647 * gnu/native/jni/gtk-peer/gthread-jni.c: Indentation fixes.
1648 Implemented missing functions for GTK2.
1649 Added error handling.
1650 Renamed static functions out of the g_ namespace.
1651 Added TRACE_API_CALLS, EXPLAIN_TROUBLE, EXPLAIN_BROKEN,
1652 EXPLAIN_BADLY_BROKEN, and DELETE_LOCAL_REFS options.
1653 Rewrote global-reference code.
1654 Eliminated cascading errors.
1655 (mutex_trylock_jni_impl) Fully implemented.
1656 (cond_timed_wait_jni_impl) Went from millisecond to microsecond
1658 (setup_cache) New function.
1659 (mutex_cond_wait_jni_impl, mutex_cond_timed_wait_jni_impl) Fixed
1660 bug where they were not unlocking the GMutex associated with the
1661 condition variable during the wait on that condition variable.
1663 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
1664 native/jni/gtk-peer/gthread-jni.c,
1665 native/jni/gtk-peer/gthread-jni.h
1666 (g_thread_jni_functions): Renamed to ...
1667 (portable_native_sync_jni_functions): this name.
1668 (gdk_vm): Renamed to...
1669 (the_vm): this name.
1671 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1672 (gdk_vm): Removed duplicate definition.
1673 (gtkInit): Removed stray message to stdout.
1674 (gtkInit): Use g_malloc and g_free instead of malloc and free.
1675 (gtkInit): Fix a const assignment bug.
1676 (gtkInit): Simplified code.
1678 * gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
1679 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
1680 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h,
1681 gnu/java/awt/peer/gtk/GThreadMutex.java:
1684 2004-08-31 Mark Wielaard <mark@klomp.org>
1686 * javax/swing/Box.java: Put FIXME comment above class declaration.
1687 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1688 * javax/swing/JCheckBox.java: Likewise.
1689 * javax/swing/JDialog.java: Likewise.
1690 * javax/swing/JRadioButton.java: Likewise.
1691 * javax/swing/JToggleButton.java: Likewise.
1692 * javax/swing/UIManager.java: Likewise.
1693 * javax/swing/border/TitledBorder.java: Likewise.
1694 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1695 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1696 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1697 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1698 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1699 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1700 * javax/swing/text/JTextComponent.java: Likewise.
1702 2004-08-31 David Jee <djee@redhat.com>
1705 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1706 (setIconImage): Add a FIXME for unhandled cases.
1708 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1711 * gnu/awt/LightweightRedirector.java: Call getModifiersEx, not
1712 getModifiers. Replace old button masks with new ones.
1713 * gnu/awt/xlib/XEventLoop.java: Likewise.
1714 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Likewise.
1715 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1716 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
1717 * gnu/java/awt/peer/gtk/GtkListPeer.java: Likewise.
1718 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
1719 * java/awt/AWTKeyStroke.java: Remove old modifier masks.
1720 * java/awt/Component.java: Replace old modifier masks with new
1722 * java/awt/Container.java: Call getModifiersEx, not
1724 * java/awt/DefaultKeyboardFocusManager.java: Likewise. Remove
1726 * javax/swing/JMenuItem.java: Replace old button masks with new
1728 * javax/swing/KeyStroke.java: Call getModifiersEx, not
1730 * javax/swing/SwingUtilities.java: Likewise.
1731 * javax/swing/plaf/basic/BasicButtonListener.java: Likewise.
1732 * javax/swing/plaf/basic/BasicInternalFrameUI.java: Likewise.
1733 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Replace old
1734 mask macros with new ones.
1735 * jni/gtk-peer/gtkpeer.h: Replace old button and modifier mask
1736 macros with new ones representing new masks.
1738 2004-08-31 Craig Black <craig.black@aonix.com>
1740 * gnu/java/awt/peer/gtk/GdkGraphics.java
1741 (drawRoundRect): Implemented.
1742 (fillRoundRect): Implemented.
1743 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1744 (drawRoundRect): Reimplemented to match GdkGraphics.
1745 (fillRoundRect): Reimplemented to match GdkGraphics.
1747 2004-08-31 Mark Wielaard <mark@klomp.org>
1749 * Makefile.in: Regenerated.
1751 2004-08-31 Michael Koch <konqueror@gmx.de>
1753 * gnu/java/awt/EmbeddedWindow.java
1754 (addNotify): Use AccessController to allow execution of privileged
1757 2004-08-31 Michael Koch <konqueror@gmx.de>
1759 * gnu/java/awt/EmbeddedWindow.java
1761 (addNotify): Set peer via reflection.
1762 (setWindowPeer): Removed.
1763 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1764 * Makefile.am (nat_source_files):
1765 Removed gnu/java/awt/natEmbeddedWindow.cc.
1767 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1769 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
1770 and gnu/java/security/action/SetAccessibleAction.java.
1772 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1774 * gnu/java/security/action/GetPropertyAction.java (setParameters):
1775 Renamed from 'setName'. New 2-argument form with default value.
1776 (run): Pass default 'value' parameter to System.getProperty().
1777 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
1780 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1782 * gnu/java/security/action/GetPropertyAction.java: New class.
1783 * gnu/java/security/action/SetAccessibleAction.java: New class.
1785 2004-08-31 David Jee <djee@redhat.com>
1787 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1788 (setIconImage): Check if image is null.
1790 2004-08-31 David Jee <djee@redhat.com>
1792 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1793 (create): Set the icon image.
1794 (nativeSetIconImage): New native method declaration.
1795 (setIconImage): Implement.
1796 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1797 (nativeSetIconImage): New function.
1799 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1801 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1802 (filenameFilterCallback): Declare local variable accepted before use.
1804 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1806 * gnu/java/awt/ComponentDataBlitOp.java:
1809 2004-08-31 Tom Tromey <tromey@redhat.com>
1811 * gnu/java/awt/peer/GLightweightPeer.java,
1812 gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1813 gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1814 javax/swing/JScrollPane.java: Removed
1817 2004-08-31 David Jee <djee@redhat.com>
1819 * java/awt/DefaultKeyboardFocusManager.java
1820 (postProcessKeyEvent): Only activate MenuShortcuts on KEY_PRESSED
1821 event. Fix shift modifier checking.
1822 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1823 (accel_attach): Remove.
1824 (setupAccelGroup): Remove calls to accel_attach.
1826 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1828 * gnu/java/awt/peer/gtk/GtkArg.java: Remove file.
1829 * gnu/java/awt/peer/gtk/GtkArgList.java: Remove file.
1831 * Makefile.am (gtk_awt_peer_sources): Remove GtkArg.java and
1833 (gtk_c_files): Use CAIRO_CFLAGS and PANGOFT2_CFLAGS, not _LIBS.
1834 * Makefile.in: Regenerate.
1835 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1836 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1837 (create(String)): New method.
1838 (create): Call new create method.
1839 (getArgs): Remove method.
1840 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
1841 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
1842 (nativeCreate): Rename to create.
1843 (gtkSetLabel): Rename to gtkButtonSetLabel.
1844 (gtkToggleButtonSetActive): New method.
1845 (create): Call gtkToggleButtonSetActive and gtkButtonSetLabel.
1846 (setState): Replace set call with gtkToggleButtonSetActive.
1847 (setLabel): Replace gtkSetLabel call with gtkButtonSetLabel.
1848 (getArgs): Remove method.
1849 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1850 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1851 (gtkWidgetSetSensitive): New method.
1852 (gtkWidgetSetParent): Likewise.
1853 (GtkComponentPeer): Call setParent, setComponentBounds and
1854 setVisibleAndEnabled.
1855 (setParent): New method.
1856 (setComponentBounds): New method.
1857 (setVisibleAndEnabled): New method.
1858 (setEnabled): Call gtkWidgetSetSensitive.
1859 (getArgs): Remove method.
1860 Remove all set methods.
1861 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Call
1862 gtkWindowSetModal, setTitle and setResizable.
1863 (getArgs): Remove method.
1864 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1865 (setComponentBounds): New method.
1866 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
1867 Replace set call with gtkWindowSetResizable.
1868 (getArgs): Remove method.
1869 (create): Call setTitle and setResizable.
1870 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
1871 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1872 (gtkWindowSetTitle): New method.
1873 (gtkWindowSetResizable): New method.
1874 (gtkWindowSetModal): New method.
1875 (setParent): New method.
1876 (setVisibleAndEnabled): New method.
1877 (getArgs): Remove method.
1878 (setTitle): Call gtkWindowSetTitle.
1879 (setResizable): Call gtkWindowSetResizable.
1880 * jni/gtk-peer/gtkpeer.h [DEBUG_LOCKING]: New define to turn on
1881 and off locking instrumentation.
1883 2004-08-31 Kim Ho <kho@redhat.com>
1885 * Makefile.am: Add new file.
1886 * Makefile.in: Regenerate.
1887 * gcj/Makefile.in: Regenerate
1888 * include/Makefile.in:
1889 * java/awt/Container.java:
1890 (acquireComponentForMouseEvent): Respect
1891 the event mask when looking for candidate.
1892 * javax/swing/JComponent.java:
1893 Remove toolTip field.
1894 (createToolTip): Create a tooltip on demand.
1895 (setToolTipText): Register with the ToolTipManager.
1896 (getToolTipText(MouseEvent)): Return getToolTipText().
1897 * javax/swing/JToolTip.java: Implement.
1898 * javax/swing/Timer.java: Jalopy.
1899 (restart): Call stop, then start.
1900 (stop): Interrupt the timer rather than wait for
1901 the timer to come to a stop naturally.
1902 * javax/swing/ToolTipManager.java: Implement.
1903 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1904 Change ToolTip.background color.
1905 * javax/swing/plaf/basic/BasicToolTipUI.java:
1907 * testsuite/Makefile.in: Regenerate
1909 2004-08-31 Jerry Quinn <jlquinn@optonline.net>
1911 * java/awt/image/DirectColorModel.java (DirectColorModel): Fix
1912 constructor param comments.
1914 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1916 * java/awt/Component.java: Document AWT 1.0 event handler
1919 2004-08-31 Roman Kennke <roman@ontographics.com>
1921 * javax/swing/Box.java:
1922 (createGlue): Implemented
1923 (createHorizontalGlue): Implemented
1924 (createHorizontalStrut): Implemented
1925 (createVerticalGlue): Implemented
1926 (createVerticalStrut): Implemented
1928 2004-08-31 David Jee <djee@redhat.com>
1930 * gnu/java/awt/peer/gtk/GtkChoicePeer.java
1931 (GtkChoicePeer): Do not automatically select first item.
1932 (getHistory): Remove.
1933 (nativeGetSelected): New method.
1934 (nativeRemoveAll): New method.
1935 (add): Use nativeGetSelected() instead of getHistory().
1937 (removeAll): Call nativeRemoveAll().
1938 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
1939 (create): Migrate to GtkComboBox.
1941 (nativeAdd): Likewise.
1942 (nativeRemove): Likewise.
1944 (nativeRemoveAll): New method.
1945 (nativeGetSelected): New method.
1946 (selection_changed): New method.
1947 (getHistory): Remove.
1948 (item_activate): Remove.
1949 (item_removed): Remove.
1950 (connect_choice_item_selectable_hook): Remove.
1952 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1954 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create): Use tf
1955 variable in setEditable call.
1957 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
1958 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
1959 (gtkWidgetSetBackground): New method.
1960 (gtkWidgetSetForeground): Likewise.
1961 (create): Set peer's editable state based on awtComponent's.
1963 * java/awt/Button.java (Button()): Use empty string rather than
1964 null in no-label constructor.
1966 2004-08-31 Roman Kennke <roman@ontographics.com>
1968 * javax/swing/BoxLayout.java: Reimplement.
1970 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1972 * gnu/java/awt/peer/gtk/GdkGraphics.java,
1973 gnu_java_awt_peer_gtk_GdkGraphics.c
1974 (initState(GtkComponentPeer)): Don't return array of colour
1976 (GdkGraphics(int,int)): Set default font to size 12.
1977 (GdkGraphics(GtkComponentPeer)): Set graphics colour to
1978 component's foreground colour.
1979 * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1980 gnu_java_awt_peer_gtk_GdkGraphics2D.c
1981 (initState(GtkComponentPeer)): Don't return array of colour
1983 (GdkGraphics2D(GtkComponentPeer)): Set foreground and background
1984 colours to component's colours.
1985 (current_colors_of_widget): Remove function.
1986 * gnu/java/awt/peer/gtk/GtkOffScreenImage.java (getGraphics):
1987 Return a new graphics object.
1988 * java/awt/Font.java (toString): Fix format.
1989 * java/awt/Graphics.java (toString): Likewise.
1991 2004-08-31 Craig Black <craig.black@aonix.com>
1993 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1994 (addTearOff): New function.
1995 * gnu/java/awt/peer/gtk/GtkMenuPeer.java (addTearOff):
1997 (init): Call addTearOff() when menu.isTearOff().
1999 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
2001 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2002 Default implementation.
2003 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2004 Implement using GdkPixbufDecoder.
2006 2004-08-31 David Jee <djee@redhat.com>
2008 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
2009 (GtkComponentPeer): Use gtkWidgetGetPreferredDimensions() for
2010 setting the size of GtkFileDialogPeers.
2011 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2012 (gtkWidgetGetPreferredDimensions): For widgets extending GtkWindow,
2013 use their default sizes rather than their natural requisitions.
2015 2004-08-31 Michael Koch <konqueror@gmx.de>
2017 * javax/swing/JFormattedTextField.java
2018 (JFormattedTextField): Implemented.
2019 * javax/swing/text/DefaultEditorKit.java
2020 (BeepAction): New inner class.
2021 * javax/swing/text/Segment.java
2022 (partialReturn): New field.
2023 (setPartialReturn): New method.
2024 (isPartialReturn): Likewise.
2025 * javax/swing/text/View.java
2026 (createFragment): Fixed typo.
2027 (getStartOffset): New method.
2028 (getEndOffset): Likewise.
2030 2004-08-31 Michael Koch <konqueror@gmx.de>
2032 * javax/swing/table/DefaultTableColumnModel.java
2033 (serialVersionUID): Made private.
2034 (listenerList): Initialize.
2035 (changeEvent): Initialize.
2036 * javax/swing/table/JTableHeader.java
2037 (JTableHeader): New constructors.
2038 (createDefaultColumnModel): New method.
2039 * javax/swing/table/TableColumn.java
2040 (setHeaderRenderer): Simplified code.
2041 (setCellRenderer): Likewise.
2042 (setWidth): Likewise.
2044 2004-08-31 Tom Tromey <tromey@redhat.com>
2046 * java/text/AttributedString.java (AttributedString): Use
2047 ArrayList to build array of attribute ranges. Don't use
2048 `attribs' before it is set.
2050 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
2052 * HACKING: Remove reference to special automake. No longer needed.
2054 2004-08-30 Tom Tromey <tromey@redhat.com>
2056 * gnu/java/security/util/Prime.java (generateRandomPrime): Use
2057 return result from `add'.
2059 2004-08-30 Tom Tromey <tromey@redhat.com>
2061 * java/rmi/server/UID.java (UID): Read `nextCount', not count.
2063 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
2065 * gnu/java/security/der/DEREncodingException.java: Remove whitespaces.
2067 2004-08-30 Jeroen Frijters <jeroen@frijters.net>
2069 * java/io/File.java File(String,String): Fixed handling of empty
2072 2004-08-30 Casey Marshall <csm@gnu.org>
2074 Author e-mail updated for all files.
2075 * gnu/java/security/OID.java (equals): Test if the aurgment is an
2077 (compareTo): Use `equals'.
2078 * gnu/java/security/der/BitString.java (equals): Test if the
2079 argument is an instance of BitString.
2080 * gnu/java/security/der/DERReader.java: Removed NIO imports. Made
2081 class final. Made fields private.
2082 (<init>): New constructor.
2084 (makeString): Made static; don't use NIO.
2085 (fromIso88591, fromUtf16Be, fromUtf8): New methods.
2086 * gnu/java/security/der/DERWriter.java: Fixed imports.
2087 (writeString): Don't use NIO.
2088 (toIso88591, toUtf16Be, toUtf8): New methods.
2089 * gnu/java/security/der/DERValue.java: Formatting changes only.
2090 * gnu/java/security/der/DER.java: Likewise.
2092 2004-08-30 Tom Tromey <tromey@redhat.com>
2094 * java/nio/CharBuffer.java (put): Fix typo.
2095 * java/nio/DoubleBuffer.java (put): Fix typo.
2096 * java/nio/FloatBuffer.java (put): Fix typo.
2097 * java/nio/IntBuffer.java (put): Fix typo.
2098 * java/nio/LongBuffer.java (put): Fix typo.
2099 * java/nio/ShortBuffer.java (put): Fix typo.
2101 2004-08-30 Florian Weimer <fw@deneb.enyo.de>
2103 * java/nio/ByteBuffer.java (put): Fix typo.
2105 2004-08-30 Casey Marshall <csm@gnu.org>
2107 * java/security/DummyKeyPairGenerator.java (clone): Removed
2108 useless instanceof check.
2109 * java/security/DummyMessageDigest.java (clone): Likewise.
2110 * java/security/DummySignature.java (clone): Likewise.
2111 * java/security/MessageDigest.java (clone): Remove useless
2113 * java/security/MessageDigestSpi.java (clone): Likewise.
2114 * java/security/Signature.java (clone): Provide meaningful
2116 * java/security/SignatureSpi.java (clone): Likewise.
2118 2004-08-29 Mark Wielaard <mark@klomp.org>
2120 * java/util/Arrays.java
2121 (sort(byte[], int, int)): Check fromIndex < 0.
2122 (sort(char[], int, int)): Likewise.
2123 (sort(short[], int, int)): Likewise.
2124 (sort(int[], int, int)): Likewise.
2125 (sort(long[], int, int)): Likewise.
2126 (sort(float[], int, int)): Likewise.
2127 (sort(double[], int, int)): Likewise.
2128 (sort(Object[], int, int, Comparator)): Likewise.
2129 (qsort(byte[], int, int)): Honor lower bound from in insertion sort.
2130 (qsort(char[], int, int)): Likewise.
2131 (qsort(short[], int, int)): Likewise.
2132 (qsort(int[], int, int)): Likewise.
2133 (qsort(long[], int, int)): Likewise.
2134 (qsort(float[], int, int)): Likewise.
2135 (qsort(double[], int, int)): Likewise.
2137 2004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
2139 * java/util/AbstractCollection.java, java/util/AbstractList.java,
2140 java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
2141 java/util/ArrayList.java, java/util/Arrays.java,
2142 java/util/BitSet.java, java/util/Calendar.java,
2143 java/util/Collection.java, java/util/ListIterator.java,
2144 java/util/Map.java, java/util/SortedSet.java:
2145 Added additional exceptions to documentation, along
2146 with some additions and corrections.
2148 2004-08-27 Hans Boehm <Hans.Boehm@hp.com>
2150 * configure.ac: Handle --enable-gc-debug.
2151 * configure: Regenerate.
2152 * include/config.h.in (LIBGCJ_GC_DEBUG): Add.
2153 * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files.
2154 Rearrange include file order.
2155 (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set.
2156 (GC_finalize_all, GC_debug_generic_malloc): Don't declare.
2157 (disable_gc_mutex): Delete along with all references.
2158 (_Jv_MarkObj, _Jv_MarkArray): Use public types,
2159 adjust for debug header size.
2160 (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for
2162 (_Jv_AllocArray): Declare min_heap_addr only if needed.
2163 (gcj_describe_type_fn): New.
2164 (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind.
2165 Register gcj_describe_type_fn.
2166 * include/boehm-gc.h:
2167 (_Jv_AllocObj, _Jv_allocPtrFreeObj):
2168 Don't define, but declare, for debug case.
2169 * java/lang/natObject.cc:
2170 (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set.
2172 2004-08-26 Mark Wielaard <mark@klomp.org>
2174 Fixes PR libgcj/17002:
2175 * java/util/TimeZone.java (defaultZone): Try a couple of ways to get
2176 a TimeZoneId string and then try to convert that to a TimeZone with
2177 getDefaultSystemTimeZone(String).
2178 (timezones0): Changed type from Hashtable to HashMap.
2179 (timezones): Create HashMap, not Hashtable.
2180 (getDefaultTimeZone): New method, rewritten from CNI version.
2181 (readTimeZoneFile): New method.
2182 (readtzFile): Likewise.
2183 (skipFully): Likewise.
2184 * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
2185 getDefaultTimeZoneId and rewritten.
2186 (getDefaultTimeZoneId): Rewritten in java.
2188 2004-08-25 David Daney <daney@avtrex.com>
2190 * Makefile.am (AM_GCJFLAGS): Add LIBGCJ_JAVAFLAGS.
2191 * Makefile.in: Regenerated.
2193 2004-08-23 Bryce McKinlay <mckinlay@redhat.com>
2195 * prims.cc (JVMPI_NOTIFY_ALLOC): New macro. Call jvmpi_notify_alloc
2196 only if jvmpi is enabled.
2197 (jvmpi_notify_alloc): Don't check if jvmpi is enabled here.
2198 (_Jv_AllocObjectNoFinalizer): Use JVMPI_NOTIFY_ALLOC.
2199 (_Jv_AllocString): Likewise.
2200 (_Jv_AllocPtrFreeObject): Likewise.
2202 2004-08-23 Hans Boehm <Hans.Boehm@hp.com>
2204 * defineclass.cc: Include <stdio.h>.
2205 * java/lang/natClassLoader.cc: Include <stdio.h>.
2207 2004-08-21 Andreas Tobler <a.tobler@schweiz.ch>
2208 Michael Koch <konqueror@gmx.de>
2210 * Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.
2211 * Makefile.in: Regenerated.
2213 2004-08-20 Michael Koch <konqueror@gmx.de>
2215 * configure.ac: Replaced all AC_TRY_COMPILE macros with
2216 AC_COMPILE_IFELSE macros.
2218 2004-08-20 Michael Koch <konqueror@gmx.de>
2220 * configure.in: Renamed to configure.ac.
2221 * configure.ac: New file.
2222 * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
2223 include/config.h.in, testsuite/Makefile.in: Regenerated.
2225 2004-08-20 Michael Koch <konqueror@gmx.de>
2227 * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
2228 * aclocal.m4, configure: Regenerated.
2230 2004-08-19 Thomas Fitzsimmons <fitzsim@redhat.com>
2231 Michael Koch <konqueror@gmx.de>
2233 * configure.in, Makefile.am: Ported to automake 1.9.
2234 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
2235 include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
2238 2004-08-19 Tom Tromey <tromey@redhat.com>
2240 * java/net/DatagramSocket.java: Fixed typo.
2242 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2245 * java/net/URI.java (string): New field. Make all other fields
2247 (readObject): Implemented.
2248 (writeObject): Implemented.
2249 (URI): Set 'string'.
2251 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2254 * java/util/logging/Handler.java (isLoggable): Accept record if its
2255 log level equals the threshold level. From Robin Green.
2257 2004-08-18 David Daney <ddaney@avtrex.com>
2259 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
2262 2004-08-17 Michael Koch <konqueror@gmx.de>
2264 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
2265 * Makefile.in: Regenerated.
2267 2004-08-16 Tom Tromey <tromey@redhat.com>
2270 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
2272 2004-08-16 Michael Koch <konqueror@gmx.de>
2275 (math_c_files): Renamed from c_files.
2276 (math_c_source_files): Renamed from c_source_files.
2279 include/Makefile.in,
2280 testsuite/Makefile.in: Regenerated.
2282 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
2284 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
2285 to avoid autoconf warning.
2286 * configure: Rebuilt.
2288 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
2290 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
2291 localhostAddress to loopbackAddress.
2292 * java/net/natInetAddressWin32.cc (lookup): Likewise.
2294 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2296 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
2297 boehm-gc's include dirs.
2298 * configure: Rebuilt.
2299 * include/boehm-gc.h: Include gc_config.h.
2301 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2303 * java/net/InetAddress.java (loopbackAddress): Renamed from
2305 (getByName): Return loopback address for null hostname, without
2306 security check. Use lookup(), not getAllByName.
2307 (getAllByName): Return loopback address for null hostname, without
2309 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
2312 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2315 Reported by Robin Green.
2316 * defineclass.cc (handleField): Don't throw exception on unrecognised
2317 modifier. Add FIXME comments for spec compliance.
2318 (handleMethod): Likewise.
2320 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
2323 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
2324 (Almost everywhere): add LOG calls, fix, add comments.
2325 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
2326 Add explicit check for LOCKED bit in slow case (PR 16662).
2327 (_Jv_MonitorExit): Add casts in debug-only code.
2328 Always release LOCKED bit before throwing exception.
2329 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
2330 isn't. Handle easy cases without lock acquisition.
2331 (Object::wait): Use NotifyAll for lock inflation.
2333 2004-08-12 David Daney <ddaney@avtrex.com>
2335 * testsuite/libjava.lang/Process_1.java: New test.
2336 * testsuite/libjava.lang/Process_2.java: New test.
2337 * testsuite/libjava.lang/Process_3.java: New test.
2338 * testsuite/libjava.lang/Process_4.java: New test.
2339 * testsuite/libjava.lang/Process_5.java: New test.
2340 * testsuite/libjava.lang/Process_6.java: New test.
2341 * testsuite/libjava.lang/Process_1.out: Expected result.
2342 * testsuite/libjava.lang/Process_2.out: Expected result.
2343 * testsuite/libjava.lang/Process_3.out: Expected result.
2344 * testsuite/libjava.lang/Process_4.out: Expected result.
2345 * testsuite/libjava.lang/Process_5.out: Expected result.
2346 * testsuite/libjava.lang/Process_6.out: Expected result.
2348 2004-08-12 David Daney <ddaney@avtrex.com>
2351 * java/lang/PosixProcess.java: Rewrote.
2352 * java/lang/natPosixProcess.cc: Rewrote.
2353 * java/lang/Runtime.java (execInternal): Declare throws IOException.
2354 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
2355 * posix-threads.cc (block_sigchld) New function.
2356 (_Jv_ThreadRegister) Use it.
2357 (_Jv_ThreadStart) Use it.
2358 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
2359 * Makefile.am: ... to specify extra native headers.
2360 * configure: Regenerated.
2361 * include/config.h: Regenerated.
2362 * Makefile.in: Regenerated.
2363 * gcj/Makefile.in: Regenerated.
2364 * include/Makefile.in: Regenerated.
2365 * testsuite/Makefile.in: Regenerated.
2367 2004-08-12 Diego Novillo <dnovillo@redhat.com>
2369 PR tree-optimization/16867
2370 * testsuite/libjava.lang/PR16867.java: New test.
2372 2004-08-09 Per Bothner <per@bothner.com>
2374 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
2375 with private fields and access methods.
2376 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
2377 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
2378 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
2379 ( _Jv_makeUtf8Const): Rewrite using new constructors.
2380 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
2381 * defineclass.cc: Use new _Utf8Const access/convenience methods.
2383 * resolve.cc: Likewise.
2384 * gcj/field.h: Likewise.
2385 * include/jvm.h: Likewise.
2386 * java/lang/Class.h: Likewise.
2387 * java/lang/natClass.cc: Likwise.
2388 * java/lang/natClassLoader.cc: Likewise
2389 * java/lang/reflect/natMethod.cc: Likewise
2390 * verify.cc: Likewise.
2391 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
2392 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
2394 2004-08-10 Andrew Haley <aph@redhat.com>
2396 * testsuite/libjava.lang/err14.java: New file.
2397 * testsuite/libjava.lang/err14.out: New file.
2399 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
2401 * Makefile.am: Fix missing rename from x_nat_headers to
2403 * Makefile.in: Regenerated.
2405 2004-08-04 Andrew Haley <aph@redhat.com>
2407 * java/security/BasicPermission.java: Don't check wildcards.
2409 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2410 Michael Koch <konqueror@gmx.de>
2412 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
2413 * configure.in: Replaced all usages of AC_LINK_FILES by
2416 configure: Regenerated.
2418 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2419 Michael Koch <konqueror@gmx.de>
2421 * acconfig.h: Removed.
2422 * Makefile.am: Rename variables for xlib peer to include xlib and
2423 gtk_c_headers to gtk_jni_headers.
2424 * Makefile.in: Regenerated.
2426 2004-08-04 Andrew Haley <aph@redhat.com>
2428 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
2431 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
2433 * configure.in: Eliminate uses of changequote (mostly by quoting []).
2434 Replace most top level 'dnl' comments with '#' comments, conforming
2435 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
2437 * configure: Rebuilt.
2439 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
2441 * acinclude.m4: Include no-executables.m4.
2442 * aclocal.m4: Rebuild.
2443 * configure.in: Convert to the autoconf 2.59 version of
2444 of the no-executables hack, and also of the nonstandard CXX
2445 hack and the multilibbed CC and CXX hack. Change prerequisite
2447 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
2448 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
2449 testsuite/Makefile.in: Regenerate.
2451 2004-08-03 Tom Tromey <tromey@redhat.com>
2453 * jni.cc: Reindented.
2455 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2457 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
2459 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2461 * testsuite/libjava.compile/PR16701.java: New test.
2463 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
2465 * java/util/Collection.java, java/util/List.java,
2466 java/util/Map.java, java/util/Set.java,
2467 java/util/SortedMap.java, java/util/SortedSet.java:
2468 Added additional exceptions to documentation.
2470 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
2473 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
2474 * configure. Regenerate.
2475 * include/win32.h: Explicitly include winsock2.h
2476 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
2479 2004-07-30 Michael Koch <konqueror@gmx.de>
2481 * java/util/zip/GZIPInputStream.java
2482 (GZIPInputStream): Increase buffer size to 4k.
2483 * java/util/zip/GZIPOutputStream.java
2484 (GZIPOutputStream): Likewise.
2485 * java/util/zip/Inflater.java
2486 (setInput): Merged formating with GNU classpath.
2487 * java/util/zip/InflaterInputStream.java
2488 (InflaterInputStream): Increase buffer size to 4k.
2489 (fill): Throw exception if stream ends early.
2490 (read): Merged endless-loop with GNU classpath.
2491 (skip): Increase buffer size to 2k.
2493 2004-07-30 Michael Koch <konqueror@gmx.de>
2495 * gnu/java/awt/EmbeddedWindow.java
2496 (addNotify): Use AccessController to allow execution of privileged
2499 2004-07-29 Michael Koch <konqueror@gmx.de>
2501 * gnu/java/lang/MainThread.java:
2502 Explicitely import used classes.
2503 (args): Make it type String[].
2505 2004-07-29 Dalibor Topic <robilad@kaffe.org>
2507 * gnu/java/awt/ComponentDataBlitOp.java,
2508 gnu/java/beans/ExplicitBeanInfo.java,
2509 gnu/java/beans/IntrospectionIncubator.java,
2510 gnu/java/beans/editors/ColorEditor.java,
2511 gnu/java/beans/editors/FontEditor.java,
2512 gnu/java/beans/editors/NativeBooleanEditor.java,
2513 gnu/java/beans/editors/NativeByteEditor.java,
2514 gnu/java/beans/editors/NativeDoubleEditor.java,
2515 gnu/java/beans/editors/NativeFloatEditor.java,
2516 gnu/java/beans/editors/NativeIntEditor.java,
2517 gnu/java/beans/editors/NativeLongEditor.java,
2518 gnu/java/beans/editors/NativeShortEditor.java,
2519 gnu/java/beans/editors/StringEditor.java,
2520 gnu/java/io/ClassLoaderObjectInputStream.java,
2521 gnu/java/io/decode/Decoder.java,
2522 gnu/java/io/encode/Encoder.java,
2523 gnu/java/lang/ClassHelper.java,
2524 gnu/java/locale/Calendar.java,
2525 gnu/java/locale/Calendar_de.java,
2526 gnu/java/locale/Calendar_en.java,
2527 gnu/java/locale/Calendar_nl.java,
2528 gnu/java/locale/LocaleInformation_de.java,
2529 gnu/java/locale/LocaleInformation_en.java,
2530 gnu/java/locale/LocaleInformation_nl.java:
2533 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2535 * README: Remove obsolete info. Update bug URL.
2537 * NEWS: Updated with news up to GCC 3.4 release.
2539 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2541 * gnu/java/security/action/GetPropertyAction.java (setParameters):
2542 Renamed from 'setName'. New 2-argument form with default value.
2543 (run): Pass default 'value' parameter to System.getProperty().
2544 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
2546 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
2549 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2551 * configure.in: Check for minimum GTK version 2.4 requirement.
2552 * configure: Rebuilt.
2554 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2556 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
2557 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
2559 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
2561 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
2562 address. Reduce sleep times. Synchronize with target threads before
2563 attempting to interrupt them. Don't try to calibrate yeild count,
2564 instead, always loop for a fixed time.
2565 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
2566 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
2567 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
2568 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
2569 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
2570 * testsuite/libjava.lang/pr179.java: Likewise.
2571 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
2572 time. Remove upper bounds check on sleep time.
2574 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2576 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
2577 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
2579 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2581 * java/io/File.java (toURI): Throw RuntimeException, not
2583 * java/lang/Runtime.java (exit): Qualify static sleep() call with
2584 class name, not instance.
2586 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
2588 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
2589 and gnu/java/security/action/SetAccessibleAction.java.
2590 * Makefile.in: Rebuilt.
2592 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2594 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
2595 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
2597 (DECLARE_PRIM_TYPE): Don't declare array vtables.
2598 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
2599 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
2601 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
2603 * Makefile.am: Replace jar, rmic and rmiregistry references with
2604 gjar, grmic and grmiregistry.
2605 * configure.in: Likewise.
2606 * Makefile.in: Regenerate.
2607 * configure: Likewise.
2608 * gcj/Makefile.in: Likewise.
2609 * include/Makefile.in: Likewise.
2610 * testsuite/Makefile.in: Likewise.
2612 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2614 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
2615 for privileged getProperty calls.
2616 * java/io/ObjectOutputStream.java (getField): No longer static. Use
2617 SetAccessibleAction instead of anonymous class for doPrivileged call.
2618 (getMethod): Likewise.
2619 (setAccessible): New field. PrivilegedAction object to use when
2620 calling setAccessible.
2621 * java/io/ObjectStreamClass.java (calculateOffsets): Use
2622 SetAccessibleAction instead of anonymous class for diPrivileged call.
2623 (setFields): Likewise.
2624 (getClassUID): Likewise.
2625 (findMethod): Likewise.
2626 * gnu/java/security/action/GetPropertyAction.java: New class.
2627 * gnu/java/security/action/SetAccessibleAction.java: New class.
2629 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2631 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
2633 * testsuite/libjava.lang/Serialization.java: New test.
2634 * testsuite/libjava.lang/Serialization.out: New.
2636 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2638 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
2639 missed in last commit.
2641 2004-07-23 Mark Wielaard <mark@klomp.org>
2643 * java/lang/System.java (static): Set http.agent system property when
2645 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
2646 from system property inside AccessController.doPrivileged() call.
2647 (proxyPort): Made package private.
2648 (proxyInUse): Likewise.
2649 (proxyHost): Likewise.
2650 (userAgent): Likewise.
2652 2004-07-23 Mark Wielaard <mark@klomp.org>
2654 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
2657 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
2659 * Makefile.am (ordinary_java_source_files): Add
2660 DefaultContentHandlerFactory.java.
2661 * Makefile.in: Rebuilt.
2662 * java/net/URLConnection.java (defaultFactory): New field.
2664 (getContentHandler): Renamed from 'setContentHandler'. Try
2665 defaultFactory after user-set factory, if any. Search for content
2666 handler implementations in gnu.java.net.content, not gnu.gcj.content.
2667 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
2669 (getLastModified): Implemented.
2670 (getPermission): Create file permission here, instead of in
2672 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
2674 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
2676 (getLastModified): Implemented.
2677 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2678 Default implementation.
2679 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2680 Implement using GdkPixbufDecoder.
2682 2004-07-21 Michael Koch <konqueror@gmx.de>
2684 * javax/swing/JTextArea.java
2685 (setLineWrap): Fire property change event after new value is set.
2686 (setTabSize): Likewise.
2688 2004-07-21 Michael Koch <konqueror@gmx.de>
2690 * javax/swing/JTable.java
2691 (autoCreateColumnsFromModel): New field.
2692 (autoResizeMode): Likewise.
2693 (cellEditor): Likewise.
2694 (cellSelectionEnabled): Likewise.
2695 (columnModel): Likewise.
2696 (dataModel): Likewise.
2697 (defaultEditorsByColumnClass): Likewise.
2698 (defaultRenderersByColumnClass): Likewise.
2699 (editingColumn): Likewise.
2700 (editingRow): Likewise.
2701 (gridColor): Likewise.
2702 (preferredViewportSize): Likewise.
2703 (rowHeight): Likewise.
2704 (rowMargin): Likewise.
2705 (rowSelectionAllowed): Likewise.
2706 (selectionBackground): Likewise.
2707 (selectionForeground): Likewise.
2708 (selectionModel): Likewise.
2709 (showHorizontalLines): Likewise.
2710 (showVerticalLines): Likewise.
2711 (tableHeader): Likewise.
2712 (JTable): Implemented.
2713 (getColumnModel): Likewise.
2714 (getSelectedRow): Likewise.
2715 (getSelectionModel): Likewise.
2716 (setModel): Likewise.
2717 (setSelectionModel): Likewise.
2718 (createScrollPaneForTable): New method.
2719 (createDefaultDataModel): Likewise.
2720 (createDefaultListSelectionModel): Likewise.
2721 (getModel): Likewise.
2722 (getTableHeader): Likewise.
2723 (setTableHeader): Likewise.
2724 (getColumnSelectionAllowed): Likewise.
2725 (setColumnSelectionAllowed): Likewise.
2726 (getRowSelectionAllowed): Likewise.
2727 (setRowSelectionAllowed): Likewise.
2728 (getAutoResizeMode): Likewise.
2729 (setAutoResizeMode): Likewise.
2730 (getColumnCount): Likewise.
2731 (getRowCount): Likewise.
2732 (getCellRenderer): Likewise.
2733 * javax/swing/JTree.java
2734 (cellRenderer): New field.
2735 (editable): Likewise.
2736 (rootVisible): Likewise.
2737 (showsRootHandles): Likewise.
2738 (getModel): New method.
2739 (setModel): Likewise.
2740 (isEditable): Likewise.
2741 (setEditable): Likewise.
2742 (isRootVisbile): Likewise.
2743 (setRootVisible): Likewise.
2744 (getShowsRootHandles): Likewise.
2745 (setShowRootHandles): Likewise.
2746 (getCellRenderer): Likewise.
2747 (setCellRenderer): Likewise.
2749 2004-07-21 Michael Koch <konqueror@gmx.de>
2751 * javax/swing/JFormattedTextField.java
2752 (setDocument): Implemented.
2753 * javax/swing/JRootPane.java:
2755 * javax/swing/JTable.java
2756 (getDefaultRenderer): New method.
2757 * javax/swing/JTextField.java
2758 (setFont): Likewise.
2759 (getPreferredSize): Likewise.
2760 * javax/swing/JToggleButton.java
2761 (getAccessibleContext): Fix javadoc.
2762 * javax/swing/JTree.java:
2764 * javax/swing/JViewport.java:
2767 2004-07-21 David Jee <djee@redhat.com>
2769 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
2770 Collect all native method declaration at the top.
2771 (create): Set the filename filter if necessary.
2772 (setDirectory): Call nativeSetDirectory().
2773 (setFilenameFilter): Implement.
2774 (filenameFilterCallback): New method.
2775 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2776 (create): Configure dialog to show hidden files.
2777 (filenameFilterCallback): New function.
2778 (nativeSetFilenameFilter): New function.
2779 (nativeSetDirectory): New function.
2781 2004-07-21 Kim Ho <kho@redhat.com>
2783 * javax/swing/plaf/basic/BasicSliderUI.java:
2785 (paintTrack): Fill the track before painting
2788 2004-07-21 Graydon Hoare <graydon@redhat.com>
2790 patch from Roman Kennke <roman@ontographics.com>
2791 * javax/swing/Spring.java: New file.
2792 * javax/swing/SpringLayout.java: New file.
2793 * Makefile.am: Add new files.
2794 * Makefile.in: Regenerate.
2796 2004-07-21 Graydon Hoare <graydon@redhat.com>
2798 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
2799 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
2800 * javax/swing/ScrollPaneLayout.java: Likewise.
2802 2004-07-21 Kim Ho <kho@redhat.com>
2804 * javax/swing/DefaultDesktopManager.java:
2805 (findMinimum): Removed.
2806 (resizeFrame): Trust the UI to pass valid
2808 * javax/swing/JOptionPane.java:
2809 Implemented showInternalXXXDialog methods.
2810 (startModal): New method.
2811 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2812 (BorderListener::mouseDragged): Verify that the new
2813 bounds are valid before passing them to the DesktopManager.
2814 (preferredLayoutSize): Delegate
2816 (minimumLayoutSize): Ditto.
2817 (getSize): New method.
2818 (GlassPaneDispatcher): Reimplemented by copying
2819 a stripped down LightweightDispatcher from Container.
2820 (getMinimumSize): Call minimumLayoutSize.
2821 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
2823 (mousePressed): Add ability to properly close
2825 * javax/swing/plaf/basic/BasicToolBarUI.java:
2826 (DragWindow): Set owner for DragWindow.
2828 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2830 * java/awt/image/ShortLookupTable.java: New file.
2831 * java/awt/image/ByteLookupTable.java: New file.
2832 * Makefile.am: Added new files.
2833 * Makefile.in: Regenerated.
2835 2004-07-21 David Jee <djee@redhat.com>
2837 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2838 (create(GtkContainerPeer)): New native method.
2839 (create()): Call native create(), passing in the parent frame
2840 as the paramter. Natively set the current file and directory.
2841 (setFile): Construct an absolute filename before passing it to
2843 (nativeGetDirectory): New method.
2844 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2845 (window_closed): Removed.
2846 (ok_clicked): Likewise.
2847 (cancel_clicked): Likewise.
2848 (handle_response): New method.
2849 (create): Use GtkFileChooserDialog.
2850 (connectSignals): Connect to handle_response.
2851 (nativeGetDirectory): New method.
2852 (nativeSetFile): Use GtkFileChooserDialog.
2854 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2856 * java/awt/image/LookupTable.java: New file.
2857 * Makefile.am: Added new file.
2858 * Makefile.in: Regenerated.
2860 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2862 * java/awt/image/Kernel.java: New file.
2863 * Makefile.am: Added new file.
2864 * Makefile.in: Regenerated.
2866 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2868 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
2869 * javax/swing/JMenu.java: Likewise.
2870 * javax/swing/JMenuBar.java: Likewise.
2871 (MARGIN_CHANGED_PROPERTY): New property.
2872 (setMargin): Implemented.
2873 * javax/swing/JMenuItem.java: Fixed javadocs.
2874 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
2875 (LABEL_CHANGED_PROPERTY): New property.
2876 (add): changed to use createActionComponent.
2877 (createActionComponent): Implemented.
2878 (setLabel): Fire PropertyChangeEvent if label property
2880 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
2881 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
2882 (ContainerHandler): Repaint if margin property has changed.
2883 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2884 (installUI): Call installComponents().
2885 (uninstallUI): Call uinstallComponents().
2886 * javax/swing/plaf/basic/BasicMenuUI.java:
2888 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2891 2004-07-21 Kim Ho <kho@redhat.com>
2893 * javax/swing/plaf/basic/BasicToolBarUI.java:
2894 (DragWindow): Use the right constructor.
2896 2004-07-21 Kim Ho <kho@redhat.com>
2898 * javax/swing/JToolBar.java:
2899 (layoutContainer): Use getComponents.
2900 * javax/swing/plaf/basic/BasicToolBarUI.java:
2901 (DragWindow): Don't use SwingUtilities'
2903 (ToolBarDialog): ditto.
2905 2004-07-21 Kim Ho <kho@redhat.com>
2907 * javax/swing/JRootPane.java:
2909 (layoutContainer): Set the glasspane's size to
2910 be the same as the content pane.
2911 (createGlassPane): Set opaque property to false.
2913 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2915 * java/awt/Component.java (requestFocus()): Don't handle Panels
2917 (requestFocus(boolean)): Likewise.
2918 (requestFocusInWindow(boolean)): Likewise.
2919 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
2920 Set GTK_CAN_FOCUS flag.
2922 2004-07-21 Kim Ho <kho@redhat.com>
2924 * Makefile.am: Added new file.
2925 * Makefile.in: Regenerated.
2926 * gcj/Makefile.in: Regenerated.
2927 * include/Makefile.in: Regenerated.
2928 * javax/swing/AbstractButton.java:
2929 Add rollOverEnabled property.
2930 (setRolloverEnabled): Use new property.
2931 (isRolloverEnabled): Use new property.
2932 * javax/swing/JTabbedPane.java:
2933 (setComponent): Remove useless JTabbedPane.this.
2934 * javax/swing/JToolBar.java: Finish implementation.
2935 * javax/swing/plaf/basic/BasicArrowButton.java:
2936 (paint): Moved border painting to a border.
2937 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2938 Change JToolBar look and feel defaults.
2939 * javax/swing/plaf/basic/BasicOptionPaneUI.java
2940 (actionPerformed): Return Integer index instead of name.
2941 (addButtonComponents): Check to see if component is
2943 (createMessageArea): Don't use components that are not
2945 (getIconForType): Use temporary icons.
2946 * javax/swing/plaf/basic/BasicSliderUI.java:
2947 (mousePressed): Do not return if it's on thumb.
2948 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
2949 (paintMinorTickForVertSlider): ditto.
2950 (paintMajorTickForHorizSlider): ditto.
2951 (paintMajorTickForVertSlider): ditto.
2952 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
2953 Add a border around the SplitPaneDivider.
2954 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
2956 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
2957 New file. Implemented.
2958 * javax/swing/plaf/basic/BasicToolBarUI.java:
2960 * testsuite/Makefile.in: Regenerated.
2962 2004-07-21 Graydon Hoare <graydon@redhat.com>
2964 * javax/swing/Timer.java (run): Queue events each time cycle.
2966 2004-07-21 David Jee <djee@redhat.com>
2968 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2969 (imageComplete): Call image.imageComplete().
2970 * java/awt/image/MemoryImageSource.java:
2971 Reimplement consumers as a Vector instead of a Hashtable. This is
2972 because enumeration on a Hashtable is not thread-safe.
2973 (addConsumer): Adapt to Vector consumers.
2974 (isConsumer): Adapt to Vector consumers.
2975 (removeConsumer): Adapt to Vector consumers.
2976 (startProduction): Adapt to Vector consumers. Call imageComplete()
2977 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
2978 (newPixels): Adapt to Vector consumers.
2979 (sendPicture): Set the color model of the image consumer.
2980 (newPixels(IIII)): Adapt to Vector consumers.
2981 (newPixels(IIIIB)): Adapt to Vector consumers.
2983 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2985 * java/awt/Component.java (deliverEvent): Implement.
2986 (postEvent): Implement.
2987 (handleEvent): Implement.
2988 (translateEvent): New method.
2989 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
2990 * java/awt/Container.java (deliverEvent): Implement.
2991 * java/awt/Event.java (paramString): Fix formatting.
2992 * java/awt/Font.java (toString): Likewise.
2993 * java/awt/Window.java (postEvent): Implement.
2995 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2997 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
2998 Set window's focus owner upon receiving a FOCUS_LOST event.
2999 * java/awt/Window.java (Window()): Refocus the previously
3000 focused component within the window when the window regains the
3002 (setFocusOwner): New method.
3003 * java/awt/Component.java (requestFocus): Add FIXME.
3005 * libgcj.pc.in: Remove library flags.
3007 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3009 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
3010 MOUSE_PRESSED event.
3011 * java/awt/Component.java (requestFocus()): Handle Panel
3012 specially. Post FOCUS_LOST event on opposite component.
3013 (requestFocus(boolean)): Likewise.
3014 (requestFocusInWindow(boolean)): Likewise.
3015 (paramString): Reorder dimension fields.
3016 * java/awt/Container.java (paramString): Fix string format.
3017 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3018 Handle FOCUS_LOST events. Don't handle Windows specially. Only
3019 process key events if the focus owner is non-null.
3020 (dispatchKeyEvent): Likewise.
3021 * java/awt/Frame.java (paramString): Fix formatting.
3022 (generateName): New method.
3023 (getUniqueLong): Likewise.
3024 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
3025 the temporary focus owner is null. If so, return the permanent
3027 * java/awt/Panel.java (generateName): New method.
3028 (getUniqueLong): Likewise.
3029 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
3030 signal handling to make callbacks more specific.
3032 2004-07-21 Michael Koch <konqueror@gmx.de>
3034 * javax/swing/text/Position.java
3035 (Bias): Implemented.
3037 2004-07-21 Michael Koch <konqueror@gmx.de>
3039 * javax/swing/LookAndFeel.java
3040 (provideErrorFeedback): New method.
3042 2004-07-21 Michael Koch <konqueror@gmx.de>
3044 * javax/swing/JTextArea.java
3045 (tabSize): New field.
3046 (getTabSize): New method.
3047 (setTabSize): Likewise.
3049 2004-07-21 Michael Koch <konqueror@gmx.de>
3051 * javax/swing/ActionMap.java:
3052 Fixed javadocs all over.
3053 (serialVersionUID): Made private.
3054 (parent): Don't explicitely initialize with default value.
3056 (keys): Reimplemented.
3057 (allKeys): Likewise.
3058 (convertSet): Removed.
3059 * javax/swing/ComponentInputMap.java:
3060 Fixed javadocs all over.
3061 (ComponentInputMap): Implemented.
3065 (SetParent): Likewise.
3066 (getComponent): Likewise.
3067 * javax/swing/InputMap.java:
3068 Fixed javadocs all over.
3069 (serialVersionUID): Made private.
3070 (parent): Don't explicitely initialize with default value.
3072 (keys): Reimplemented.
3073 (allKeys): Likewise.
3074 (convertSet): Removed.
3076 2004-07-21 Michael Koch <konqueror@gmx.de>
3078 * javax/swing/ActionMap.java,
3079 javax/swing/ComponentInputMap.java,
3080 javax/swing/InputMap.java,
3081 javax/swing/table/DefaultTableColumnModel.java,
3082 javax/swing/table/TableColumn.java,
3083 javax/swing/table/TableColumnModel.java,
3084 javax/swing/table/TableModel.java,
3085 javax/swing/text/AbstractDocument.java,
3086 javax/swing/text/TextAction.java:
3089 2004-07-21 Graydon Hoare <graydon@redhat.com>
3091 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
3092 Make method non-static.
3093 * javax/swing/AbstractButton.java:
3094 Rename fields to match property names where possible.
3095 (iconTextGap): New property.
3096 * javax/swing/JCheckBox.java: Match AbstractButton changes.
3097 (init) New method, call from after various constructors.
3098 * javax/swing/JComponent.java (revalidate):
3099 Invalidate before queueing repair.
3100 * javax/swing/JList.java (getPreferredScrollableViewportSize):
3101 Reimplement in terms of visibleRowCount property.
3102 * javax/swing/JMenuButton.java: Match AbstractButton changes.
3103 * javax/swing/JScrollPane.java (createScrollListener):
3104 Remove tracing chatter.
3105 * javax/swing/JToggleButton.java: Match AbstractButton changes.
3106 * javax/swing/RepaintManager.java (addInvalidComponent):
3108 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
3110 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
3111 Mimic sun behavior on top left/right positioning.
3112 * javax/swing/ViewportLayout.java (preferredLayoutSize):
3113 Remove mistaken use of preferredScrollableViewportSize here.
3114 (layoutContainer): Use view's preferred size as basis.
3115 * javax/swing/plaf/basic/BasicButtonUI.java:
3116 Set, get, and use textIconGap property.
3117 (paint) Paint text returned from layout (with ellipsis).
3118 * javax/swing/plaf/basic/BasicListUI.java:
3119 Remove tracing chatter, correct various minor calculations.
3120 (getCellBounds): Update layout state before calculating.
3121 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
3122 Use margin default similar to sun's.
3123 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
3124 (createIncreaseIcon): Center icon, minimize margins.
3125 (createDecreaseIcon): Likewise.
3126 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
3128 (installUI): Call it.
3129 (uninstallDefaults): Implement.
3130 (uninstallUI): Call it.
3131 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
3132 Call existing Window constructor.
3133 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
3134 Set clip before painting.
3136 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3138 * javax/swing/JMenuItem.java:
3139 (processMouseEvent): Reimplemented to deal with
3141 (createMenuDragMouseEvent): New private helper method.
3142 Creates MenuDragMouseEvent.
3143 * javax/swing/MenuSelectionManager.java
3144 (componentForPoint): Implemented.
3145 (isComponentPartOfCurrentMenu): Made public.
3146 (processMouseEvent): Reimplemented to deal with
3148 (setSelectedPath): Corrected small mistake that caused
3149 path to be set incorrectly.
3150 (getPath): If given component is JMenu then also add this
3151 menu's popup menu to the selected path.
3152 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3154 (getPreferredSize): Call getPreferredMenuItemSize().
3155 (getPreferredItemSize): Moved code from getPreferredSize to here.
3156 (installListeners): Install MouseMotionListeners.
3157 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
3158 if mouse wasn't released in the bounds of this menu item.
3159 (MenuDragMouseHandler): Implemented.
3160 * javax/swing/plaf/basic/BasicMenuUI.java:
3161 (installListeners): Install MouseMotionListener and
3162 MenuDrageMouseListener.
3163 (MenuDragMouseHandler): Implemented.
3164 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3165 (uninstallListeners): Implemented.
3167 2004-07-21 Michael Koch <konqueror@gmx.de>
3169 * javax/swing/JCheckBox.java: Reformated.
3170 (JCheckBox): Fixed all constructors.
3171 (isBorderPaintedFlat): New method.
3172 (setBorderPaintedFlat): New method.
3173 * javax/swing/JEditorPane.java
3174 (createEditorKitForContentType): Made public.
3175 (scrollToReference): Likewise.
3176 * javax/swing/JTextArea.java
3177 (setLineWrap): Fire property change.
3178 * javax/swing/JToggleButton.java
3179 (JToggleButton): New constructor.
3180 (JToggleButton): Simplified.
3181 * javax/swing/text/AttributeSet.java
3182 (FontAttribute): Renamed from FontCharacterAttribute.
3183 * javax/swing/text/JTextComponent.java
3184 (KeyBinBinding): Added javadoc.
3185 (JTextComponent): Likewise.
3186 (getAccessibleContext): Fixed javadoc.
3187 * javax/swing/text/View.java
3188 (View): Added javadoc.
3189 * javax/swing/text/TabableView.java: New file.
3190 * Makefile.am: Added javax/swing/text/TabableView.java.
3191 * Makefile.in: Regenerated.
3193 2004-07-21 Graydon Hoare <graydon@redhat.com>
3195 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
3196 * gnu/java/awt/peer/gtk/GtkToolkit.java
3197 (GtkErrorImage): New helper class.
3198 (bufferedImageOrError): New helper method.
3199 (createImage): Use it.
3201 2004-07-21 David Jee <djee@redhat.com>
3203 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3204 (setCaretPosition): Scroll the text view so the new caret position
3205 is visible on screen.
3207 2004-07-21 David Jee <djee@redhat.com>
3209 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3210 (setBounds): Do not validate awtComponent here.
3211 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
3212 (getPreferredSize): New method.
3213 * java/awt/ScrollPane.java
3214 (ScrollPane): Set default size to 100x100.
3215 (addNotify): If child is not a Panel, wrap it with a new Panel.
3216 (paramString): Implement.
3218 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3220 * javax/swing/JMenu.java:
3221 (setSelected): Display popup menu only if this menu
3222 is showing on the screen.
3223 * javax/swing/JPopupMenu.java:
3224 (processMouseEvent): Added comment.
3225 (processKeyEvent): Likewise.
3226 * javax/swing/MenuSelectionManager.java:
3227 (clearSelectedPath): Only fireStateChanged() after
3228 selected path was changed, not before.
3229 (setSelectedPath): Likewise.
3230 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3231 (paintMenuItem): Corrected position of menu item's
3233 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3234 (installUI): Correct setDefaultLightWeightPopupEnabled call.
3235 (popupMenuCanceled): Reimplemented.
3236 (popupMenuWillBecomeVisible): Select first menu item by default
3237 when displaying free floating popup menus.
3238 (TopWindowListener): Reimplemented.
3240 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3242 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
3243 Panel from being painted twice when it is first shown.
3245 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3247 * java/awt/Window.java: Reverted changes from my
3248 previous patch for creating window without an owner.
3249 * javax/swing/SwingUtilities.java:
3250 (SwingUtilities.OwnerFrame): made static.
3251 (OwnerFrame.setVisible): New method. Overridden with
3252 empty implementation.
3253 (OwnerFrame.isShowing): New method. Ovverridden
3254 to return always true.
3256 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3258 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3259 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3260 (GtkComponentPeer): Remove temporary try/catch block.
3261 (setVisible): Call show and hide.
3262 (show): Make native.
3264 (getArgs): Don't add "visible" argument.
3265 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3266 (property_notify_predicate): Return Bool instead of int.
3267 (find_layout): New function.
3268 (connectJObject): Call find_layout.
3269 (connectSignals): Likewise.
3270 (moveLayout): Likewise.
3271 (gtkLayoutSetVisible): Likewise.
3273 2004-07-21 Mark Wielaard <mark@klomp.org>
3275 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3276 on notifier object before calling notifyAll().
3278 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3280 * java/awt/Window.java: Changed constructors to use new
3281 method that is described below. Constructors call this
3282 methods only if newly created window should have an owner.
3283 (setWindowOwner): New method. Implementation for
3284 this method is moved from this(owner,configuration).
3285 * javax/swing/JWindow.java:
3286 (JWindow): Reimplement to use SwingUtilities.ownerFrame
3288 * javax/swing/SwingUtilities.java:
3289 (ownerFrame): Change type of this field to OwnerFrame.
3290 (getOwnerFrame): Changed to return object of type OwnerFrame.
3291 (SwingUtilities.OwnerFrame): New class. Represents owner
3292 of a Window that is not provided with one.
3294 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3296 * javax/swing/AbstractButton.java:
3297 (configurePropertiesFromAction): Set action command
3298 to button's text by default if action command is not
3299 explicitely specified.
3300 * javax/swing/JMenu.java: Remove unnecessary listener
3301 and methods relevant to it.
3302 (setSelected): Reimplemented.
3303 (menuSelectionChanged): Moved most part of implementation to
3304 setSelected() and call it instead.
3305 * javax/swing/JMenuItem.java:
3306 (init): Comment out statement that sets paint_border to false.
3307 (configurePropertiesFromAction): Do not set accelerator
3309 (menuSelectionChanged): Change selected index in the selection
3310 model of menu item's parent.
3311 * javax/swing/JPopupMenu.java:
3312 (remove): Set constraints.fill field to GridBagConstraints.BOTH
3313 instead of GridBagConstraints.HORIZONTAL.
3315 (createActionChangeListener): Implemented.
3316 (setVisible): Correct location of HeavyWeightMenu and
3317 don't firePopupMenuCanceled().
3318 (menuSelectionChanged): Implemented.
3319 (ActionChangeListener): New Listener. Implemented.
3320 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3321 (BasicMenuBarUI.ContainerHandler): Implemented.
3322 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3323 (paintMenuItem): Uncommented out code that paints
3324 icon, now that icons are working properly.
3325 (PropertyChangeListener): Implemented.
3326 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3328 (topWindowListener): New field.
3329 (Constructor): initialize topWindowListener.
3330 (BasicPopupMenuUI.TopWindowListener): Implemented.
3331 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
3332 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
3335 2004-07-21 Michael Koch <konqueror@gmx.de>
3337 * javax/swing/plaf/basic/BasicButtonUI.java
3338 (paintFocus): Fixed method signature.
3339 (paintButtonPressed): Likewise.
3340 (paintButtonNormal): Likewise.
3341 (paintText): New method.
3342 * javax/swing/plaf/basic/BasicLabelUI.java
3343 (paint): Re-indented.
3344 * javax/swing/plaf/basic/BasicTextUI.java
3345 (installUI): Set parent textComponent to opaque.
3346 * javax/swing/text/DefaultHighlighter.java
3347 (checkPositions): New helper method.
3348 (addHighlight): Throws BadLocationException, check positions.
3349 (changeHighlight): Likewise.
3350 * javax/swing/text/EditorKit.java
3351 (EditorKit): Implements Serializable.
3352 * javax/swing/text/JTextComponent.java
3353 (getUI): Added javadoc.
3355 (upadteUI): Added javadoc, don't revalidate and repaint.
3357 2004-07-21 David Jee <djee@redhat.com>
3359 * java/awt/GridBagLayout.java
3360 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
3361 * javax/swing/AbstractButton.java
3362 (setText): Reindent.
3363 * javax/swing/RepaintManager.java
3364 (addInvalidComponent): Find the first ancestor that isValidateRoot().
3366 2004-07-21 Michael Koch <konqueror@gmx.de>
3368 * javax/swing/JFormattedTextField.java
3370 (JFormattedTextField): Implemented.
3371 (getValue): Likewise.
3372 (setValue): Likewise.
3373 * javax/swing/LookAndFeel.java
3374 (getSupportsWindowDecorations): New method.
3375 * javax/swing/UIDefaults.java:
3376 Use java.beans.PropertyChangeSupport instead of doing all ourself.
3377 (addPropertyChangeListener): Made public.
3378 (addResourceBundle): Likewise.
3379 (removeResourceBundle): Likewise.
3380 (setDefaultLocale): Likewise.
3381 * javax/swing/plaf/basic/BasicRootPaneUI.java
3382 (BasicRootPaneUI): Implements PropertyChangeListener.
3383 (propertyChange): New method.
3384 * javax/swing/plaf/basic/BasicTextUI.java
3385 (BasicHighlighter): New inner class.
3386 (createHighlighter): New method.
3387 * javax/swing/plaf/basic/BasicToolBarUI.java
3388 (DragWindow): Extends java.awt.Window.
3389 * javax/swing/text/JTextComponent.java
3390 (getDocument): Removed debug output.
3391 * javax/swing/plaf/basic/BasicTextFieldUI.java,
3392 javax/swing/text/DefaultHighlighter.java,
3393 javax/swing/text/FieldView.java,
3394 javax/swing/text/PlainView.java: New files.
3395 * Makefile.am: Added new files.
3396 * Makefile.in: Regenerated.
3398 2004-07-21 Michael Koch <konqueror@gmx.de>
3400 * javax/swing/JEditorPane.java
3401 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
3402 (createEditorKitForContentType): Likewise.
3403 * javax/swing/text/DefaultEditorKit.java
3404 (serialVersionUID): Added constant field.
3405 (EndOfLineStringPropery): Fixed typo.
3406 (DefaultEditorKit): New constructor.
3407 * javax/swing/text/Segment.java:
3408 Import java.text.CharacterIterator.
3409 * javax/swing/text/CharacterIterator.java,
3410 javax/swing/text/PlainEditorKit.java: Removed.
3411 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
3412 javax/swing/text/PlainEditorKit.java.
3413 * Makefile.in: Regenerated.
3415 2004-07-21 Michael Koch <konqueror@gmx.de>
3417 * javax/swing/JButton.java,
3418 javax/swing/text/DefaultEditorKit.java,
3419 javax/swing/text/EditorKit.java,
3420 javax/swing/text/Segment.java,
3421 javax/swing/text/StyledEditorKit.java:
3424 2004-07-21 Michael Koch <konqueror@gmx.de>
3426 * javax/swing/ImageIcon.java
3428 (description): Renamed from descr.
3429 (ImageIcon): Added missing constructors.
3430 (setParent): Removed.
3431 (setImageObserver): New method.
3432 (getImageObserver): New method.
3433 (paintIcon): Handle observer = null.
3434 * javax/swing/JButton.java
3435 (removeNotify): Fixed javadoc.
3436 (updateUI): Simplified.
3437 * javax/swing/JRootPane.java
3438 (serialVersionUID): New constant field.
3439 * javax/swing/UIManager.java:
3440 Fixed javadocs all over.
3441 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
3442 * javax/swing/text/AbstractDocument.java
3443 (createPosition): Throws BadLocationException.
3444 (getText): Likewise.
3446 * javax/swing/text/ComponentView.java
3447 (modelToView): Likewise.
3448 * javax/swing/text/DefaultEditorKit.java:
3449 Made all public methods public.
3450 (read): Throws BadLocationException and IOException.
3452 * javax/swing/text/EditorKit.java:
3453 Made all public methods public.
3454 (serialVersionUID): New constant field.
3455 (clone): New method.
3456 (read): Throws BadLocationException and IOException.
3458 * javax/swing/text/Segment.java
3459 (array): Made public.
3462 (Segment): New constructors.
3463 (clone): Reimplemented.
3464 * javax/swing/text/StyledEditorKit.java
3465 (serialVersionUID): New constant field.
3467 2004-07-21 Graydon Hoare <graydon@redhat.com>
3469 * java/awt/image/BufferedImage.java
3470 (getSource): Implement.
3471 * javax/swing/ImageIcon.java
3472 (ImageIcon): Implement ctor.
3473 * javax/swing/ScrollPaneLayout.java
3474 (preferredLayoutSize): Be more careful about nulls.
3476 2004-07-21 Michael Koch <konqueror@gmx.de>
3478 * javax/swing/text/AttributeSet.java
3479 (CharacterAttribute): New interface
3480 (ColorAttribute): Likewise.
3481 (FontCharacterAttribute): Likewise.
3482 (ParagraphAttribute): Likewise.
3483 * javax/swing/text/DefaultCaret.java
3484 (moveCaret): New method.
3485 (positionCaret): Likewise.
3486 (repaint): Made protected.
3487 * javax/swing/text/JTextComponent.java
3488 (KeyBinding): Made it static.
3489 * javax/swing/text/View.java
3490 (getContainer): Honor parent == null.
3492 2004-07-21 Michael Koch <konqueror@gmx.de>
3494 * javax/swing/text/AbstractDocument.java:
3497 2004-07-21 Michael Koch <konqueror@gmx.de>
3499 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3500 Import javax.swing.UIManager explicitely.
3501 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
3502 (ScrollingButton): Made it static.
3504 2004-07-21 Michael Koch <konqueror@gmx.de>
3506 * javax/swing/UIDefaults.java
3507 (ActiveValue): Made public.
3508 (LazyValue): Likewise.
3509 * javax/swing/plaf/basic/BasicTextUI.java
3510 (RootView): Reintroduced.
3512 (rootView): New field.
3513 (installUI): Create document if needed, initialize rootView.
3514 (uninstallUI): Hanle rootView.
3516 (getRootView): Likewise.
3517 (setView): Likewise.
3518 * javax/swing/text/DefaultCaret.java:
3519 Renamed all "evt" variables to "event".
3521 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3523 * libgcj.spec.in: Add -l-java-util-logging.
3525 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
3527 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3528 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
3529 gtk-xft-dpi can no calculate the right value.
3530 (dpi_changed_cb): Mark *pspec as unsused.
3532 2004-07-21 David Jee <djee@redhat.com>
3534 * java/awt/Component.java
3535 (move): Delegate to setBounds().
3537 (reshape): Fix so it repaints parent and self only when necessary.
3539 2004-07-21 David Jee <djee@redhat.com>
3541 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3542 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3543 (GtkComponentPeer): Revert previous patch from 2004-06-22.
3544 (setVisible): Likewise.
3547 (getArgs): Likewise.
3548 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3549 (property_notify_predicate): Likewise.
3550 (find_layout): Likewise.
3551 (connectJObject): Likewise.
3552 (connectSignals): Likewise.
3553 (moveLayout): Likewise.
3554 (gtkLayoutSetVisible): Likewise.
3556 2004-07-21 Graydon Hoare <graydon@redhat.com>
3562 (rmiregistry_LDADD): Add lib-java-util-logging.la
3563 * Makefile.in: Regenerate.
3565 2004-07-21 Michael Koch <konqueror@gmx.de>
3567 * javax/swing/text/AbstractDocument.java
3568 (replace): Dont use protected method of java.util.Vector directly.
3570 2004-07-21 Michael Koch <konqueror@gmx.de>
3572 * javax/swing/plaf/basic/BasicTextUI.java
3573 (installUI): Call specialized install methods.
3574 (installDefaults): New method.
3575 (installListeners): Likewise.
3576 (installKeyboardActions): Likewise.
3577 (uninstallUI): Likewise.
3578 (uninstallDefaults): New method.
3579 (uninstallListeners): Likewise.
3580 (uninstallKeyboardActions): Likewise.
3581 (getPropertyPrefix): New abstract method.
3582 (paint): Made final, just call paintSafely().
3583 (paintSavely): New method.
3584 (paintBackground): Likewise.
3585 (getVisibleEditorRect): Likewise.
3586 * javax/swing/text/LayeredHighlighter.java,
3587 javax/swing/text/TabExpander.java: New files.
3588 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
3589 and javax/swing/text/TabExpander.java.
3590 * Makefile.in: Regenerated.
3592 2004-07-21 Michael Koch <konqueror@gmx.de>
3594 * javax/swing/plaf/basic/BasicTextUI.java
3595 (BasicTextUI): Made abstract.
3596 (BasicCaret): New inner class.
3597 (view): Don't explicitely initialize with "null".
3598 (textComponent): New field.
3599 (textColor): Removed.
3600 (disabledTextColor): Removed.
3601 (normalBackgroundColor): Removed.
3602 (RootView): Removed commented out inner class.
3603 (createUI): Removed.
3604 (createCaret): New method.
3605 (getComponent): Likewise.
3606 (installUI): Initialize textComponent only.
3607 (getPreferredSize): Use installed JTextComponent.
3608 (setView): New method.
3610 * javax/swing/text/JTextComponent.java
3611 (highlighter): New field.
3612 (caretColor): Likewise.
3613 (disabledTextColor): Likewise.
3614 (seletedTextColor): Likewise.
3615 (selectionColor): Likewise.
3616 (setUI): New method.
3617 (getCaretColor): Likewise.
3618 (setCaretColor): Likewise.
3619 (getDisabledColor): Likewise.
3620 (setDisabledColor): Likewise.
3621 (getSelectedTextColor): Likewise.
3622 (setSelectedTextColor): Likewise.
3623 (getSelectionColor): Likewise.
3624 (setSelectionColor): Likewise.
3625 (getHighlighter): Likewise.
3626 (setHighlighter): Likewise.
3627 (replaceSelection): Likewise.
3629 2004-07-21 Michael Koch <konqueror@gmx.de>
3631 * javax/swing/plaf/basic/BasicScrollPaneUI.java
3632 (BasicScrollPaneUI): Implements ScrollPaneConstants.
3633 * javax/swing/plaf/basic/BasicToolBarUI.java
3634 (BasicToolBarUI): Implements SwingConstants.
3636 2004-07-21 Michael Koch <konqueror@gmx.de>
3638 * javax/swing/JPopupMenu.java: Removed CVS tags.
3639 * javax/swing/UIDefaults.java: Reformatted.
3640 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3641 Explicitely import used classes.
3643 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3645 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3646 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3647 (GtkComponentPeer): Remove temporary try/catch block.
3648 (setVisible): Call show and hide.
3649 (show): Make native.
3651 (getArgs): Don't add "visible" argument.
3652 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3653 (property_notify_predicate): Return Bool instead of int.
3654 (find_layout): New function.
3655 (connectJObject): Call find_layout.
3656 (connectSignals): Likewise.
3657 (moveLayout): Likewise.
3658 (gtkLayoutSetVisible): Likewise.
3660 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3662 * javax/swing/AbstractButton.java:
3663 (setDisplayedMnemonicIndex): Check if button
3664 text is not null before checking its length.
3665 * javax/swing/JMenuItem.java:
3666 (processMouseEvent): Disarm menu item if mouse has
3668 * javax/swing/plaf/basic/BasicMenuUI.java:
3669 (MouseInputHandler.mouseEntered): Do not raise
3670 popup menu if this menu is already selected.
3671 (MouseInputHandler.mousePressed): Do not fire
3673 (MenuHandler): Implemented.
3675 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3677 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
3678 (getSelectedObjects): Implemented.
3679 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
3680 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
3681 Added javadoc for few methods.
3682 (processMouseEvent): Made public.
3683 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
3684 (processMouseEvent): Likewise.
3686 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3688 * javax/swing/AbstractButton.java:
3689 (init): Set display mnemonic index to -1.
3690 (setMnemonic(char)): Use setMnemonic(int).
3691 (setMnemonic(int)): Set display mnemonic index.
3692 (getDisplayedMnemonicIndex): Change method signature
3693 by removing 'index' parameter.
3694 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3695 Added default for Menu.selectionBackground.
3696 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3697 (paintMenuItem): Change background color of the selected
3699 (paintText): Paint differently when menu item is disabled.
3700 Also paint mnemonic if it appears in the menu item's label.
3701 (paintAccelerator): Paint accelerator differently
3702 if menu item is disabled.
3703 * javax/swing/plaf/basic/BasicMenuUI.java:
3704 (installDefaults): Install defaults for
3705 selectionForeground and selectionBackground.
3706 (uninstallDefaults): Uninstall defauls for
3707 selectionForeground and selectionBackground.
3709 2004-07-21 Michael Koch <konqueror@gmx.de>
3711 * javax/swing/text/AbstractDocument.java
3712 (BranchElement): Implemented.
3713 (LeafElement): Implemented.
3714 * javax/swing/text/DefaultCaret.java:
3715 Import used classes.
3716 (serialVersionUID): New constant.
3717 * javax/swing/text/JTextComponent.java
3718 (AccessibleJTextComponent): Removed dead declaration.
3719 (caretPos): Removed.
3720 (setCaret): New method.
3721 * javax/swing/text/PlainDocument.java
3722 (rootElement): New field.
3723 (PlainDocument): Initialize rootElement.
3724 (createDefaultRoot): New method.
3725 (getDefaultRootElement): Implemented.
3726 * javax/swing/text/View.java: Reformatted.
3727 * javax/swing/text/ViewFactory.java
3728 (create): Added javadoc.
3730 2004-07-21 Michael Koch <konqueror@gmx.de>
3732 * javax/swing/ToolTipManager.java: Reformatted.
3734 2004-07-21 Rodimina Olga <rodimina@redhat.com>
3736 * javax/swing/AbstractButton.java
3737 (changeEvent): New field.
3738 (fireItemStateChanged): Change source of the event
3739 to 'this' before firing it to button listeners.
3740 (fireActionPerformed): Likewise.
3741 (fireStateChanged): Likewise.
3742 (createActionListener): Do not set source
3743 of the event to AbstractButton.
3744 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3745 (ContainerHandler.componentAdded): Removed
3746 print out statement.
3747 (ContainerHandler.componentRemoved): Likewise.
3749 2004-07-21 Michael Koch <konqueror@gmx.de>
3751 * javax/swing/text/Highlighter.java: New file.
3752 * Makefile.am: Added javax/swing/text/Highlighter.java.
3753 * Makefile.in: Regenerated.
3755 2004-07-21 Michael Koch <konqueror@gmx.de>
3757 * javax/swing/ToolTipManager.java
3758 (stillInsideTimerAction): Fixed constructor arguments.
3759 (outsideTimerAction): Likewise.
3760 (insideTimerAction): Likewise.
3762 2004-07-21 Michael Koch <konqueror@gmx.de>
3764 * javax/swing/JButton.java: Reformatted.
3765 * javax/swing/JFormattedTextField.java
3766 (getUIClassID): Implemented.
3767 * javax/swing/JRootPane.java
3768 (serialVersionUID): New constant.
3769 * javax/swing/JTextField.java
3771 (JTextField): Simplified.
3772 (getUIClassID): New method.
3773 (getActionListeners): Added @since tag.
3774 (setColumns): Invalidate layout and repaint.
3775 (getHorizontalAlignment): New method.
3776 (setHorizontalAlignment): New method.
3777 (selectAll): Removed.
3778 * javax/swing/SwingUtilities.java
3779 (getAncestorOfClass): Removed redundant @see tag.
3780 (isLeftMouseButton): Fixed implementation.
3781 (isMiddleMouseButton): Likewise.
3782 (isRightMouseButton): Likewise.
3783 * javax/swing/text/AbstractDocument.java
3784 (AttributeContext.addAttribute): New method.
3785 (AttributeContext.addAttributes): New method.
3786 (AttributeContext.getEmptySet): New method.
3787 (AttributeContext.reclaim): New method.
3788 (AttributeContext.removeAttribute): New method.
3789 (AttributeContext.removeAttributes): New method.
3790 * javax/swing/text/Document.java
3791 (createPosition): Throws BadLocationException.
3792 (getText): Likewise.
3794 * javax/swing/text/JTextComponent.java
3795 (getText): Return null if no document is set. Catch
3796 BadLocationException.
3798 (updateUI): Simplified.
3800 2004-07-21 Michael Koch <konqueror@gmx.de>
3802 * javax/swing/JButton.java
3803 (removeNotify): Fixed javadoc.
3804 (updateUI): Simplified.
3806 2004-07-21 David Jee <djee@redhat.com>
3808 * gnu/java/awt/image/ImageDecoder.java
3809 (startProduction): Only add consumer if it's not added yet.
3810 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
3811 (GdkPixbufDecoder): Don't call initState() here.
3812 (produce): Call initState() here, to ensure area_prepared and
3813 area_updated signals are properly connected.
3814 * gnu/java/awt/peer/gtk/GtkImage.java
3815 (setColorModel): Use equals() to compare ColorModel objects.
3816 (setPixels): Likewise.
3817 * java/awt/image/ColorModel.java
3818 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
3819 * java/awt/image/RGBImageFilter.java
3820 (setColorModel): Set consumer's color model.
3821 (setPixels): Use equals() to compare ColorModel objects.
3823 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
3825 * java/net/URLConnection.java (position): New field.
3826 (dateFormat1, dateFormat2, dateFormat3): Removed.
3827 (dateFormats): New field.
3828 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
3829 each time instead of re-allocating.
3830 (initializeDateFormats): Initialize 'dateFormats'.
3832 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3835 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
3838 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3840 * java/net/Socket.java (getImpl): Now private. Remove comment.
3842 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3844 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
3845 of chained Writer when calling super-constructor.
3846 * java/io/FilterWriter.java (FilterWriter): Likewise.
3847 * java/io/PrintWriter.java (PrintWriter): Likewise.
3849 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
3851 * prims.cc (process_gcj_properties): Don't increment i within LHS
3854 2004-07-19 Per Bothner <per@bothner.com>
3856 Print -verbose:message on "loading", not initialization.
3857 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
3858 * defineclass.cc (_Jv_ClassReader::parse): Print message if
3859 gcj::verbose_class_flag.
3860 * java/lang/natClass.cc (initializeClass): Don't print message here.
3861 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
3862 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
3863 (_Jv_PrepareCompiledClass): Likewise.
3865 2004-07-18 Matthias Klose <doko@debian.org>
3867 * configure.in: Substitute target_noncanonical.
3868 * configure: Regenerate
3870 2004-07-17 Michael Koch <konqueror@gmx.de>
3872 * java/lang/String.java: Fixed javadocs all over.
3874 2004-07-17 Mark Wielaard <mark@klomp.org>
3876 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
3877 when size is smaller.
3878 * java/io/RandomAccessFile.java (setLength): Use truncate for
3879 shrinking the file and seek plus write for expanding the file.
3881 2004-07-17 Michael Koch <konqueror@gmx.de>
3883 * gnu/java/nio/channels/natFileChannelPosix.cc
3884 (implTruncate): Always save current position. Only reposition file
3885 pointer to where we started if not beyond new lenght. Reposition file
3886 pointer to file length if it points beyond the end of file.
3888 2004-07-17 Mark Wielaard <mark@klomp.org>
3890 * javax/swing/Box.java: Put FIXME comment above class declaration.
3891 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
3892 * javax/swing/JCheckBox.java: Likewise.
3893 * javax/swing/JDialog.java: Likewise.
3894 * javax/swing/JRadioButton.java: Likewise.
3895 * javax/swing/JToggleButton.java: Likewise.
3896 * javax/swing/UIManager.java: Likewise.
3897 * javax/swing/border/TitledBorder.java: Likewise.
3898 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3899 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
3900 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
3901 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3902 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
3903 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3904 * javax/swing/text/JTextComponent.java: Likewise.
3906 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
3908 * java/net/DatagramPacket.java (setAddress): Removed check for
3911 2004-07-17 Michael Koch <konqueror@gmx.de>
3913 * java/net/DatagramSocket.java
3914 (getLocalAddress): Check if socket is bound or not.
3915 * java/net/Socket.java
3916 (getLocalAddrss): Check if socket is bound or not.
3917 (getPort): Return -1 when not connected. Dont check getImpl() for
3919 (setReuseAddress): Check if socket is closed.
3920 (isConnected): Check if getImpl() returns null.
3922 2004-07-17 Mark Wielaard <mark@klomp.org>
3924 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3925 on notifier object before calling notifyAll().
3927 2004-07-17 Michael Koch <konqueror@gmx.de>
3929 * gnu/java/nio/channels/FileChannelImpl.java
3930 (finalize): Added javadoc.
3932 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
3934 * java/text/CollationElementIterator.java
3935 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
3936 (setText): Use ArrayList instead of Vector.
3938 2004-07-17 Michael Koch <konqueror@gmx.de>
3940 * java/nio/ByteOrder.java
3941 (static): Removed. Not needed.
3942 Thanks to Patrick Reali for noticing.
3943 * java/nio/charset/CharsetDecoder.java
3944 (decode): Fix for classpath bug #9177: Reset state before flipping.
3946 2004-07-17 Michael Koch <konqueror@gmx.de>
3948 * java/security/Security.java: Fixed javadocs all over.
3950 2004-07-17 Michael Koch <konqueror@gmx.de>
3952 * gnu/java/awt/EmbeddedWindow.java
3954 (addNotify): Set peer via reflection.
3955 (setWindowPeer): Removed.
3956 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
3957 * Makefile.am (nat_source_files):
3958 Removed gnu/java/awt/natEmbeddedWindow.cc.
3959 * Makefile.in: Regenerated.
3961 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
3963 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
3965 * configure: Regenerated.
3967 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
3969 * configure.in: Use build_noncanonical rather than build_alias.
3970 * configure: Rebuild.
3972 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
3973 by logic refactoring. Move default definition of NATIVE closer
3974 to first alternate definition.
3975 * configure: Regenerate.
3977 * Makefile.am: Set ZIP and GCJH directly using autoconf.
3978 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
3979 gcj/Makefile.in: Regenerate.
3980 * configure.in: Set ZIP and GCJH. Remove redundant condition
3981 in AM_CONDITIONAL(NATIVE,...)
3982 * configure: Regenerate.
3984 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
3986 * configure.in: Use target_noncanonical rather than
3987 target_alias for forward-compatibility with autoconf 2.59.
3988 * configure: Regenerate.
3989 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
3990 testsuite/Makefile.am: Substitute target_noncanonical.
3991 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3992 testsuite/Makefile.in: Regenerate.
3994 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
3995 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
3996 * acinclude.m4: Include acx.m4.
3997 * aclocal.m4: Regenerate.
3998 * configure: Regenerate.
4000 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
4003 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
4004 (decimalFormat): New static variable.
4006 (getTime): New. Override Date.getTime().
4007 (toString): Synchronize. Use decimalFormat to format nanos value
4008 correctly. Truncate extra zeros.
4009 (before): Compare getNanos() only if getTime() is equal.
4012 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
4014 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
4015 * configure.in: ...here.
4016 * aclocal.m4: Regenerate.
4017 * configure: Regenerate.
4019 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
4020 * configure: Rebuilt with autoconf 2.13.
4021 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4022 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
4024 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
4027 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
4029 * Makefile.in: Rebuilt.
4030 * testsuite/libjava.lang/LargeFile.java: New test case.
4031 * testsuite/libjava.lang/LargeFile.out: New file.
4033 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
4035 * java/beans/EventHandler.java: Remove debugging statements.
4037 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
4039 * java/beans/EventHandler.java: New file.
4040 * Makefile.am (awt_java_source_files): Add EventHandler.java.
4041 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4042 testsuite/Makefile.in: Regenerate.
4044 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
4046 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
4047 flag to the gcj_setup.
4048 (gcj_jacks_run): Check tclsh version and launch jacks directly with
4050 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
4051 deprecation flag change. 58 XFAILS removed.
4053 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
4055 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
4056 -fno-use-divide-subroutine.
4057 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
4058 (HANDLE_FPE): Define.
4059 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
4060 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
4061 (HANDLE_DIVIDE_OVERFLOW): Define.
4063 2004-07-14 Michael Koch <konqueror@gmx.de>
4064 Matthias Klose <doko@debian.org>
4066 * java/awt/im/InputContext.java: Initialize in, line.
4068 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
4070 * interpret.cc (run): Correctly access libffi return values of
4071 integral smaller-than-int type; these are implicitly promoted.
4073 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
4076 * interpret.cc (compile_mutex): New.
4077 (_Jv_InitInterpreter): New. Initialize compile_mutex.
4078 (run): Lock compile_mutex before calling compile() if compilation is
4080 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
4081 * include/java-interp.h (_Jv_InitInterpreter): Declare.
4083 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
4086 * include/jvm.h (_Jv_value): New union type.
4087 * gcj/field.h (_Jv_Field): Add new _addr union field variants
4088 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
4091 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
4093 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
4094 * gnu/awt/xlib/XOffScreenImage.java
4095 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
4096 constructor argument. Add constructor using ImageProducer.
4097 (getSource): Implement.
4098 (imageComplete): New method.
4099 (setColorModel): New method.
4100 (setDimensions): New method.
4101 (setHints): New method.
4102 (setPixels): New method.
4103 (setProperties): New method.
4104 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
4105 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
4107 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
4110 * prims.cc (_Jv_CreateJavaVM): Fix comment.
4111 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
4112 (finalizerReady): Now native.
4114 (runFinalizers): Removed.
4115 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
4116 a primitive lock, and don't hold it while running the finalizers.
4117 (runFinalizers): Implement. Don't aquire any Java lock.
4118 (finalizerReady): Use lock primitives to signal finalizer thread.
4120 2004-07-11 Mark Wielaard <mark@klomp.org>
4122 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
4123 * java/net/URLStreamHandler.java (parseURL): When url file part
4124 doesn't contain a '/' just ignore context.
4126 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
4128 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
4129 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
4130 (MAKE_THROW_FRAME): Do not modify PSW address.
4131 (INIT_SEGV): Install SIGINFO-style signal handler.
4132 (INIT_FPE): Likewise.
4134 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
4136 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
4137 status. 21 xfail's removed, 1 added.
4139 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
4141 * gcj/javaprims.h: Regenerate CNI namespace definitions.
4143 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
4145 * java/text/MessageFormat.java
4146 (formatInternal): Append "{n}" if argument n is unavailable.
4147 (format(Object, StringBuffer, FieldPosition)): This
4148 should be equivalent to format(Object[],
4149 StringBuffer, FieldPosition).
4151 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4153 * java.util.Calendar.java (cache): New private static field. Cached
4154 mappings of locales->calendar classes.
4155 (ctorArgTypes): New private static field. Singleton argument for
4156 calendar class constructor lookup.
4157 (getInstance): Cache Locale->Calendar class mappings using HashMap.
4158 Optimize by bypassing reflection instantiation for the
4159 GregorianCalendar case.
4161 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4163 * java/util/Calendar.java: Use getSystemClassLoader as argument for
4164 ResourceBundle.getBundle() calls.
4165 * java/util/GregorianCalendar.java: Likewise.
4166 * java/util/Currency.java: Likewise.
4167 * java/text/BreakIterator.java: Likewise.
4168 * java/text/Collator.java: Likewise.
4169 * java/text/DateFormat.java: Likewise.
4170 * java/text/DateFormatSymbols.java: Likewise.
4171 * java/text/DecimalFormatSymbols.java: Likewise.
4172 * java/text/NumberFormat.java: Likewise.
4173 * java/awt/Window.java: Likewise.
4175 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4177 * java/util/ResourceBundle.java (bundleCache): Renamed from
4178 resourceBundleCache. Update comments.
4179 (getObject): Don't catch MissingResourceException.
4180 (getBundle(String)): Remove 'final'. Use system classloader if
4181 getCallingClassLoader returned null.
4182 (getBundle(String, Locale)): Likewise.
4183 (BundleKey): New private class. HashMap key for bundle cache lookup.
4184 (lookupKey): New. Singleton instance of BundleKey.
4185 (nullEntry): New. Cache entry to represent failed lookups.
4186 (getBundle(String, Locale, ClassLoader)): Re-written to use new
4187 caching strategy, no-allocation lookup, and new tryBundle methods.
4188 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
4189 name using given classloader.
4190 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
4191 baseName for given Locale and attempt to load bundle.
4193 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4195 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
4196 illegal protected method calls.
4198 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4200 Fix or remove some bogus test cases.
4201 * testsuite/libjava.compile/pr10459_2.java: Removed.
4202 * testsuite/libjava.compile/pr10459.java: Test using its own method,
4204 * testsuite/libjava.compile/inner_data.java: Test against its own
4207 2004-07-09 Michael Koch <konqueror@gmx.de>
4209 * scripts/unicode-muncher.pl: Updated to version 2.1
4210 from GNU classpath. Added some clarifications on where to find the
4211 needed files from www.unicode.org.
4212 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
4213 gnu/gcj/convert/UnicodeData-3.0.0.txt:
4214 Removed, these can directly be downloaded from www.unicode.org if
4216 * gnu/java/lang/CharData.java: Regenerated.
4217 * include/java-chartables.h: Regenerated.
4218 * Makefile.am (ordinary_java_source_files):
4219 Removed gnu/java/lang/CharData.java.
4220 * Makefile.in: Regenerated.
4222 2004-07-09 Michael Koch <konqueror@gmx.de>
4224 * java/security/AccessControlContext.java,
4225 java/security/SecureClassLoader.java:
4228 2004-07-09 Michael Koch <konqueror@gmx.de>
4230 * java/io/ObjectInputStream.java (readFields): Use long datatype
4231 when shifting byte values more then 24 bits left.
4233 2004-07-09 Michael Koch <konqueror@gmx.de>
4235 * java/util/zip/DeflaterOutputStream.java,
4236 java/util/zip/GZIPInputStream.java,
4237 java/util/zip/GZIPOutputStream.java,
4238 java/util/zip/InflaterInputStream.java:
4239 Reformatted. Added javadocs. Reordered all stuff.
4240 Renamed variables to be more clear.
4242 2004-07-09 Michael Koch <konqueror@gmx.de>
4244 * javax/imageio/IIOException.java,
4245 javax/imageio/event/IIOReadProgressListener.java,
4246 javax/imageio/event/IIOReadUpdateListener.java,
4247 javax/imageio/event/IIOReadWarningListener.java,
4248 javax/imageio/event/IIOWriteProgressListener.java,
4249 javax/imageio/event/IIOWriteWarningListener.java:
4251 * Makefile.am: Added new files.
4252 * Makefile.in: Regenerated.
4254 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
4256 * java/text/RuleBasedCollator.java
4257 (mergeRules): Use ArrayList instead of Vector.
4258 (subParseString): likewise.
4259 (parseString): likewise.
4260 (buildCollationVector): likewise.
4261 (getCollationKey): likewise.
4263 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4265 * java/text/DateFormat.java (parse):
4266 Improved javadoc. Improved exception message.
4268 2004-07-09 Mark Wielaard <mark@klomp.org>
4270 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
4271 interrupted() method to clear interupt flag of our Thread.
4273 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4275 * java/nio/Buffer.java,
4276 java/nio/ByteBuffer.java,
4277 java/nio/ByteBufferHelper.java,
4278 java/nio/ByteBufferImpl.java,
4279 java/nio/CharBuffer.java,
4280 java/nio/CharBufferImpl.java,
4281 java/nio/CharViewBufferImpl.java,
4282 java/nio/DirectByteBufferImpl.java,
4283 java/nio/DoubleBuffer.java,
4284 java/nio/DoubleBufferImpl.java,
4285 java/nio/DoubleViewBufferImpl.java,
4286 java/nio/FloatBuffer.java,
4287 java/nio/FloatBufferImpl.java,
4288 java/nio/FloatViewBufferImpl.java,
4289 java/nio/IntBuffer.java,
4290 java/nio/IntBufferImpl.java,
4291 java/nio/IntViewBufferImpl.java,
4292 java/nio/LongBuffer.java,
4293 java/nio/LongBufferImpl.java,
4294 java/nio/LongViewBufferImpl.java,
4295 java/nio/MappedByteBufferImpl.java,
4296 java/nio/ShortBuffer.java,
4297 java/nio/ShortBufferImpl.java,
4298 java/nio/ShortViewBufferImpl.java:
4299 Fixed javadocs all over. Improved input error
4302 * java/nio/Buffer.java
4303 (checkForUnderflow, checkForOverflow, checkIndex,
4304 checkIfReadOnly, checkArraySize): New helper methods
4307 * java/nio/ByteBufferHelper.java
4308 (checkRemainingForRead, checkRemainingForWrite,
4309 checkAvailableForRead, checkAvailableForWrite): Removed
4310 no longer needed methods.
4312 2004-07-09 Michael Koch <konqueror@gmx.de>
4314 * gnu/regexp/CharIndexedInputStream.java:
4315 Reordered imports to match classpath.
4317 2004-07-09 Michael Koch <konqueror@gmx.de>
4319 * gnu/java/awt/EmbeddedWindow.java:
4320 Load native library for setWindowPeer method.
4322 2004-07-08 Randolph Chung <tausq@debian.org>
4324 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
4325 * configure: Regenerate.
4326 * configure.host: Set can_unwind_signal for hppa*-linux.
4327 * include/pa-signal.h: New file.
4329 2004-07-07 Per Bothner <per@bothner.com>
4331 * Makefile.am: Add rules to build libgij from just gij.cc.
4333 * include/jvm.h (namespace jcj): Declare verbose_class_flag
4334 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
4335 (initializeClass): If verbose_class_flag, print message.
4336 * gij.cc (main): Handle -verbose:class flag.
4338 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
4340 * configure.host: Enable hash synchronization on Darwin.
4341 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
4342 ';', since this is a comment on Darwin.
4343 (compare_and_swap_release): Likewise.
4345 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
4347 * java/net/URLStreamHandler.java (parseURL): Canonicalize
4348 file portion of URL in addition to spec for file: protocol.
4350 2004-07-05 Anthony Green <green@redhat.com>
4352 * java/io/File.java (toURI): Merge from Classpath.
4354 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4356 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
4357 before passing to URL constructor. Rethrow any MalformedURLException
4358 as a RuntimeException. Catch MalformedURLException specifically, not
4361 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4363 * java/util/Locale.java (readObject): Intern strings read from object
4366 2004-07-04 Michael Koch <konqueror@gmx.de>
4368 * gnu/gcj/runtime/FirstThread.java,
4369 gnu/gcj/runtime/natFirstThread.cc: Removed.
4370 * gnu/java/lang/MainThread.java,
4371 gnu/java/lang/natMainThread.cc: New files.
4372 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
4373 * Makefile.am: Added new files and removed deleted ones.
4374 * Makefile.in: Regenerated.
4376 2004-07-03 Mark Wielaard <mark@klomp.org>
4377 Anthony Green <green@redhat.com>
4379 * java/net/URL.java (getFile): Clarify return value doc.
4380 (getPath): Return null if file is empty - not empty String.
4381 (set): Convert protocol to lower case before doing anything.
4382 Only change the protocol handler if it's different.
4384 2004-07-03 Anthony Green <green@redhat.com>
4386 * java/net/URL.java (URL): Convert protocol to lower case before
4387 doing anything, so we getURLStreamHandler() with the proper value.
4389 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
4391 * java/util/Locale.java (hashcode): Made transient.
4392 (hashCode): No longer synchronized.
4393 (equals): Remove comment.
4394 (writeObject): No longer synchronized. Implement using writeObject
4395 calls instead of tweaking hashCode field. Update doc.
4396 (readObject): Implement using readObject calls.
4398 2004-06-26 Geoffrey Keating <geoffk@apple.com>
4399 Andreas Tobler <a.tobler@schweiz.ch>
4401 * configure.host (powerpc-*-darwin*): New case, define
4403 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
4404 * configure: Regenerate.
4405 * include/darwin-signal.h: New.
4407 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
4409 * java/beans/Statement.java (doExecute): Fix formatting.
4411 2004-06-29 Per Bothner <per@bothner.com>
4413 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
4414 etc etc): Remove needless parenthesis, which causes __stdcall__
4415 attribute on MinGW to get ignored.
4417 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
4419 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
4421 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
4423 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
4425 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
4427 * java/beans/Expression.java: New file.
4428 * java/beans/Statement.java: New file.
4429 * Makefile.am: Added new files.
4430 * Makefile.in: Re-generate.
4432 2004-06-27 Mark Wielaard <mark@klomp.org>
4434 * java/io/FilePermission.java (usingPerms): Removed.
4435 (actionsString): Made final.
4436 (cachePerms): Renamed to checkPerms.
4437 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
4439 (FilePermission): Check arguments, call checkPerms().
4440 (equals): Remove cachePerms() call.
4441 (implies): Likewise.
4443 2004-06-27 Mark Wielaard <mark@klomp.org>
4445 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
4447 (sendRequest): Use new field in user-agent http agent.
4449 2004-06-27 Mark Wielaard <mark@klomp.org>
4451 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
4452 when argument is null.
4454 2004-06-26 Mark Wielaard <mark@klomp.org>
4456 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
4457 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
4459 (cancel_clicked): Likewise.
4461 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
4463 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
4464 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
4465 can not calculate the right value.
4466 (dpi_changed_cb): Likewise. Mark *pspec as unused.
4468 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
4470 * testsuite/libjava.jacks/jacks.xfail: Remove
4471 15.9.1-qualified-concrete-20.
4473 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4475 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
4476 encoding name to iconv.
4477 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4479 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4482 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
4483 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
4484 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4486 2004-06-21 Andrew Haley <aph@redhat.com>
4488 * java/io/ObjectOutputStream.java: Add DEBUG statements
4490 (dumpElementln): New method.
4492 * java/io/ObjectInputStream.java
4493 (currentClassLoader): Make native.
4494 (callersClassLoader): New field.
4496 (readObject): ENDBLOCKDATA is generated if the class has a write
4497 method, not if it has a read method.
4498 (readObject): Save and restore this.currentObject and
4499 this.currentObjectStreamClass around calls to callReadMethod().
4500 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
4503 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
4505 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
4508 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4510 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
4511 if desired, before the default class loader is initialised.
4512 Call INIT_SEGV only if HANDLE_SEGV is defined.
4514 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4516 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
4517 directory only if it actually exists.
4519 2004-06-18 Graydon Hoare <graydon@redhat.com>
4521 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4522 Fix up non-ansi comments.
4524 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4526 * javax/swing/text/AbstractDocument.java: Adding missing import
4527 for javax.swing.event.EventListenerList.
4528 * javax/swing/text/DefaultCaret.java: Likewise.
4530 2004-06-17 Michael Koch <konqueror@gmx.de>
4532 * javax/swing/JToolBar.java
4534 (JToolBar): Use Component.setName(String) instead of doing it all
4536 * javax/swing/Timer.java
4537 (queueEvent): Added missing modifier.
4539 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
4541 * Makefile.am: Added new file.
4542 * Makefile.in: Re-generate.
4543 * javax/swing/JMenu.java:
4544 (insertSeparator): Implemented.
4545 * javax/swing/JPopupMenu.java:
4546 (JPopupMenu.Separator): Implemented.
4547 * javax/swing/MenuSelectionManager.java:
4548 (processMouseEvent): Use java.awt.Component
4549 for event source instead of javax.swing.JComponent.
4550 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
4551 New File. Implemented.
4553 2004-06-16 David Jee <djee@redhat.com>
4555 * java/awt/GridBagLayout.java
4556 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
4557 Make sure pos_x and pos_y are never negative.
4559 2004-04-16 Andrew Overholt <overholt@redhat.com>
4561 * Makefile.am: Add new file.
4562 * Makefile.in: Re-generate.
4563 * javax/swing/JToolBar.java
4564 Partially implemented.
4565 * javax/swing/plaf/basic/BasicToolBarUI.java
4566 New file. Partially implemented.
4568 2004-06-16 Graydon Hoare <graydon@redhat.com>
4570 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
4571 (setComposite): Accept AlphaComposite arguments.
4572 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
4573 (createBufferedImage): Add new overloads.
4574 * gnu/java/awt/peer/gtk/GtkToolkit.java
4575 (createImage): Use GdkPixbufDecoder.createBufferedImage
4576 when useGraphics2D() is true.
4577 (getImage): Delegate to createImage.
4578 * javax/swing/JList.java
4580 (getFirstVisibleIndex):
4581 (getLastVisibleIndex):
4583 (ensureIndexIsVisible): New methods.
4584 * javax/swing/Timer.java: Reimplement.
4586 2004-06-16 Michael Koch <konqueror@gmx.de>
4588 * javax/swing/text/AbstractDocument.java
4589 (AbstracElement): Made public, implements java.io.Serializable.
4590 (AttributeContext): Made public.
4591 (BranchElement): Likewise.
4592 (Content): Likewise.
4593 (DefaultDocumentEvent): Made public, extends
4594 javax.swing.undo.CompoundEdit.
4595 (ElementEdit): Made public, extends
4596 javax.swing.undo.AbstractUndoableEdit.
4597 (LeafElement): Made public.
4598 (LeafElement.LeafElement): Made public.
4600 2004-06-16 Michael Koch <konqueror@gmx.de>
4602 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
4603 methods (that were obviously never be intended to get included hi this
4604 class. Added some methods too.
4606 2004-06-16 Michael Koch <konqueror@gmx.de>
4608 * javax/swing/text/PlainDocument.java
4609 (serialVersionUID): New constant.
4610 (lineLimitAttribute): Likewise.
4611 (tabSizeAttribute): Likewise.
4612 (tabSize): New field.
4613 (PlainDocument): Made public.
4614 (PlainDocument): New constructor.
4616 2004-06-16 Michael Koch <konqueror@gmx.de>
4618 * javax/swing/text/AbstractDocument.java
4619 (insertString): Throws BadLocationException.
4620 * javax/swing/text/Document.java
4621 (insertString): Likewise.
4622 * javax/swing/text/JTextComponent.java:
4623 Javadocs and comments cleaned up.
4625 2004-06-16 Michael Koch <konqueror@gmx.de>
4627 * javax/swing/event/UndoableEditListener.java: Reformatted.
4628 * javax/swing/text/AbstractDocument.java
4629 (AbstractDocument): Implements java.io.Serializable.
4630 (doc_list): Removed.
4631 (undo_list): Removed.
4632 (AbstractElement.serialVerionUID): New field.
4633 (BranchElement.serialVerionUID): Likewise.
4634 (DefaultDocumentEvent.serialVerionUID): Likewise.
4635 (ElementEdit.serialVerionUID): Likewise.
4636 (LeafElement.serialVerionUID): Likewise.
4637 (serialVerionUID): Likewise.
4638 (BAD_LOCATION): New constant.
4639 (BidiElementName): Likewise.
4640 (ContentElementName): Likewise.
4641 (ParagraphElementName): Likewise.
4642 (SectionElementName): Likewise.
4643 (ElementNameAttribute): Likewise.
4644 (AbstractDocument): Made protected.
4645 (AbstractDocument): New construtor.
4646 (listenerList): New field.
4647 (fireChangedUpdate): Implemented.
4648 (fireInsertUpdate): Likewise.
4649 (fireRemoveUpdate): Likewise.
4650 (fireUndoableEditUpdate): Likewise.
4651 (getListeners): Likewise.
4652 (addDocumentListener): Likewise.
4653 (removeDocumentListener): Likewise.
4654 (addUndoableEditListener): Likewise.
4655 (removeUndoableEditListener): Likewise.
4656 (getDocumentListeners): New method.
4657 (getUndoableEditListeners): Likewise.
4658 (getAsynchronousLoadPriority): Made public.
4659 (getBidiRootElement): Likewise.
4660 (setAsynchronousLoadPriority): Likewise.
4661 (setDocumentProperties): Likewise.
4662 * javax/swing/text/BadLocationException.java
4663 (serialVerionUID): New field.
4664 * javax/swing/text/DefaultCaret.java
4665 (changeEvent): New field.
4666 (listenerList): Likewise.
4668 (addChangeListener): Reimplemented.
4669 (removeChangeListener): Likewise.
4670 (getListeners): New method.
4671 (getChangeListeners): Likwise.
4672 (getComponent): Likewise.
4673 * javax/swing/text/GapContent.java
4674 (GapContent): Implements java.io.Serializable.
4675 (serialVerionUID): New field.
4677 2004-06-16 Michael Koch <konqueror@gmx.de>
4679 * javax/swing/JTree.java
4680 (treeModel): New field.
4681 (JTree): New constructors, one existing one made public.
4682 (createTreeModel): New method.
4683 (addTreeExpansionListener): Likewise.
4684 (removeTreeExpansionListener): Likewise.
4685 (getTreeExpansionListeners): Likewise.
4686 (fireTreeCollapsed): Likewise.
4687 (fireTreeExpanded): Likewise.
4688 (addTreeSelectionListener): Likewise.
4689 (removeTreeSelectionListener): Likewise.
4690 (getTreeSelectionListeners): Likewise.
4691 (fireValueChanged): Likewise.
4692 (addTreeWillExpandListener): Likewise.
4693 (removeTreeWillExpandListener): Likewise.
4694 (getTreeWillExpandListeners): Likewise.
4695 (fireTreeWillCollapse): Likewise.
4696 (fireTreeWillExpand): Likewise.
4698 2004-06-16 Michael Koch <konqueror@gmx.de>
4700 * javax/swing/JTree.java: Reformatted.
4702 2004-06-16 Michael Koch <konqueror@gmx.de>
4704 * javax/swing/JTextArea.java: New file.
4705 * javax/swing/JTextField.java
4707 (notifyAction): New constant.
4708 (columns): New field.
4709 (JTextField): New constructors.
4710 (createDefaultModel): New method.
4711 (addActionListener): Reimplmemented.
4712 (removeActionListener): Reimplemented.
4713 (getActionListeners): New method.
4714 (fireActionPerformed): New method.
4715 (getColumns): New method.
4716 (setColumne): New method.
4717 * javax/swing/text/JTextComponent.java
4718 (AccessibleJTextComponent.serialVersionUID): New field.
4719 (serialVersionUID): Likewise.
4720 (DEFAULT_KEYMAP): Likewise.
4721 (FOCUS_ACCELERATOR_KEY): Likewise.
4722 (doc): Made private.
4723 (icon_gap): Likewise.
4726 (JTextComponent): Some constructors removed.
4727 (getScrollableTracksViewportHeight): New method.
4728 (getScrollableTracksViewportWidth): Likewise.
4729 * Makefile.am: Added javax/swing/JTextArea.java.
4730 * Makefile.in: Regenerated.
4732 2004-06-15 Graydon Hoare <graydon@redhat.com>
4734 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
4735 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
4736 * javax/swing/JViewport.java
4737 (getExtentSize): Return size rather than preferred size.
4738 (toViewCoordinates): New methods.
4739 (getViewSize): Return size rather than preferred size.
4740 (setViewSize): Note view size as set.
4741 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
4742 * javax/swing/plaf/basic/BasicScrollBarUI.java
4743 (getPreferredSize): Don't redo layout.
4744 * javax/swing/plaf/basic/BasicViewportUI.java
4745 (paint): Translate image properly and eat exceptions.
4747 2004-06-15 Kim Ho <kho@redhat.com>
4749 * javax/swing/JTabbedPane.java
4750 (setComponent): Remove old component and
4752 (setSelectedIndex): Don't operate on the
4753 components if they're null. Don't set index
4754 on the model if the index is the same.
4755 (insertTab): Don't add or hide the component
4756 if it's null. Repaint the container.
4757 * javax/swing/plaf/basic/BasicLookAndFeel.java
4758 Change colors for TabbedPane.
4759 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
4760 (mousePressed): Re-layout and paint the component.
4761 (layoutContainer): Don't set location on the view.
4762 (ScrollingViewport::paint): Remove.
4764 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
4766 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4767 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
4769 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
4770 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
4771 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
4773 (drawLine): Call gdk_flush before leaving GDK critical region.
4774 (fillRect): Likewise.
4775 (drawRect): Likewise.
4776 (copyArea): Likewise.
4777 (copyPixmap): Likewise.
4778 (clearRect): Likewise.
4779 (drawArc): Likewise.
4780 (drawPolyline): Likewise.
4781 (drawPolygon): Likewise.
4782 (fillPolygon): Likewise.
4783 (fillArc): Likewise.
4784 (drawOval): Likewise.
4785 (fillOval): Likewise.
4787 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
4789 (GdkFontMetrics): Add style argument to initState call.
4790 (stringWidth(String,int,int,String)): Add style parameter.
4791 (stringWidth(String)): Add style argument to stringWidth call.
4792 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
4793 (initState): Set pango font style and weight based on AWT style
4794 parameter. Pass default GTK language to
4795 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
4796 simply dividing by PANGO_SCALE.
4797 (stringWidth): Set pango font style and weight based on AWT style
4800 * java/awt/Button.java (next_button_number): New field.
4801 (paramString): Change output.
4802 (generateName): New method.
4803 (getUniqueLong): New method.
4805 2004-06-14 Kim Ho <kho@redhat.com>
4807 * javax/swing/JTabbedPane.java:
4808 (setComponentAt): Set the component, not
4810 * javax/swing/plaf/basic/BasicDesktopIconUI.java
4811 (actionPerformed): Let deiconize catch exception.
4813 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4815 * javax/swing/JPopupMenu.java:
4816 (setVisible): Corrected location of a
4817 heavyweight popup menu.
4819 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4821 * javax/swing/MenuSelectionManager.java:
4822 Ran through jalopy to fix formatting style.
4824 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4826 * javax/swing/JLayeredPane.java:
4827 (remove): Revalidate and repaint layered pane after
4828 the component was removed.
4829 javax/swing/JMenu.java:
4830 (setVisible): Display popup menu at the user location,
4831 if one was set by the user.
4832 (setMenuLocation): Reimplemented. Fixed javadoc.
4833 * javax/swing/JMenuBar.java: Added javadoc.
4834 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
4835 (MODEL_CHANGED_PROPERTY): New Property.
4836 (isSelected): Implemented.
4837 (setBorderPainted): Fire PropertyChangeEvent
4838 if paintBorder property changes.
4839 (setSelected): Implemented.
4840 (setSelectionModel): Implemented.
4841 * javax/swing/JPopupMenu.java: Added Javadoc
4842 (pack): Implemented.
4843 (setVisible): Reimplemented.
4844 (show): Fixed location.
4845 (JPopupMenu.LigthWeightPopup): Reimplemented to use
4846 Container instead of JPanel.
4847 * javax/swing/MenuSelectionManager.java: Added Javadocs.
4848 (clearSelectedPath): Reimplemented to clear selectedPath
4850 (processMouseEvent): Reimplemented.
4851 (setSelectedPath): Fire stateChange event indicating that
4852 selected menu path has changed.
4853 (getPath): Change to use ArrayList instead of Vector.
4854 * javax/swing/plaf/basic/BasicMenuBarUI.java:
4855 (installUI): call installKeyboardActions().
4856 (uninstallUI): call uninstallKeyboardActions().
4858 2004-06-13 Michael Koch <konqueror@gmx.de>
4860 * javax/swing/text/DefaultCaret.java,
4861 javax/swing/text/BadLocationException.java:
4864 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
4866 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
4867 DEFAULT_COLS): New variables.
4868 (create): Don't allow 0 rows or 0 columns. Instead, set the
4869 values to DEFAULT_ROWS or DEFAULT_COLS.
4870 (getMinimumSize): Likewise.
4871 (getPreferredSize): Likewise.
4872 (minimumSize): Likewise.
4873 (preferredSize): Likewise.
4874 (create): Set peer's editable state.
4875 * java/awt/TextArea.java (TextArea()): Set rows and columns to
4876 zero. Update javadocs.
4877 (TextArea(String)): Likewise.
4878 (TextArea(int,int)): Fix javadocs.
4879 (TextArea(String,int,int,int)): Only throw exception if one of
4880 rows or columns is zero. Fix javadocs.
4882 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
4884 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
4885 addition to Components.
4887 * java/awt/MenuItem.java (dispatchEventImpl): If the event
4888 wasn't consumed by normal processing, send it to the parent
4891 * gnu/java/awt/peer/gtk/GtkImagePainter.java
4892 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
4895 2004-06-11 David Jee <djee@redhat.com>
4897 * java/awt/MediaTracker.java
4898 (addImage(Image,int)): Call imageUpdate() to udpate image status.
4899 (addImage(Image,int,int,int)): Likewise.
4901 2004-06-11 Michael Koch <konqueror@gmx.de>
4903 * javax/swing/text/AbstractDocument.java,
4904 javax/swing/text/Document.java,
4905 javax/swing/text/GapContent.java,
4906 javax/swing/text/JTextComponent.java,
4907 javax/swing/text/PlainDocument.java:
4910 2004-06-11 Michael Koch <konqueror@gmx.de>
4912 * javax/swing/JRootPane.java
4913 (AccessibleJRootPane.serialVersionUID): New field.
4914 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
4915 (AccessibleJRootPane.getAccessibleRole): New method.
4916 (RootLayout): Implements Serializable.
4917 (RootLayout.serialVersionUID): New field.
4918 (RootLayout.RootLayout): New constructor.
4919 (setJMenuBar): Made public.
4920 (getJMenuBar): Likewise.
4921 (JRootPane): Likewise.
4922 (createContentPane): Likewise.
4923 (createGlassPane): Likewise.
4924 (createLayeredPane): Likewise.
4926 2004-06-11 Michael Koch <konqueror@gmx.de>
4928 * javax/swing/SwingUtilities.java
4929 (isLeftMouseButton): Fixed javadoc.
4930 (isMiddleMouseButton): Likewise.
4931 (isRightMouseButton): Likewise.
4933 2004-06-11 Michael Koch <konqueror@gmx.de>
4935 * javax/swing/JScrollPane.java
4936 (serialVersionUID): New field.
4937 (columnHeader): Made protected.
4938 (rowHeader): Likewise.
4939 (lowerLeft): Likewise.
4940 (lowerRight): Likewise.
4941 (upperLeft): Likewise.
4942 (upperRight): Likewise.
4943 (horizontalScrollBar): Likewise.
4944 (horizontalScrollBarPolicy): Likewise.
4945 (verticalScrollBar): Likewise.
4946 (verticalScrollBarPolicy): Likewise.
4947 (viewport): Likewise.
4949 2004-06-11 Michael Koch <konqueror@gmx.de>
4951 * javax/swing/LookAndFeel.java: Fixed javadocs.
4953 2004-06-11 Michael Koch <konqueror@gmx.de>
4955 * javax/swing/JEditorPane.java: Fixed javadocs.
4956 (JEditorPane): Removed redundant call to to this().
4957 (fireHyperlinkUpdate): Implemented.
4959 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4961 * javax/swing/JMenu.java: Fixed file name
4962 in the file comment.
4964 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4966 * javax/swing/JMenu.java: Added javadoc.
4967 (JMenu): Added MenuChangeListener to listen to
4968 ChangeEvents occuring in menu's model.
4969 (insert): Throw IllegalArgumentException if
4970 index is less than 0
4971 (setSelected): Reimplement.
4972 (setPopupMenuVisible): Call menu's model isEnabled()
4973 (setDelay): Throw IllegalArgumentException if
4974 given amount of delay is less than 0.
4975 (createActionComponent): Implemented.
4976 (createActionChangeListener): Implemented.
4977 (addSeparator): Implemented.
4978 (getItem): Throw IllegalArgumentException if index is
4980 (getItemCount): Implemented.
4981 (fireMenuSelected): Changed to use menuEvent.
4982 (fireMenuDeselected): Likewise.
4983 (fireMenuCanceled): Likewise.
4984 (setAccelerator): Changed to throw an error if this
4986 (doClick): Implemented.
4987 (JMenu.ActionChangedListener): New inner class to handle
4988 PropertyChangeEvents occuring in the actions associated with menu.
4989 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
4990 (BasicMenuUI): Added PropertyChangeListener to the menu.
4991 (createChangeListener): Implemented.
4992 (createMenuDragMouseListener): Likewise.
4993 (createMenuKeyListener): Likewise.
4994 (createPropertyChangeListener): Likewise.
4995 (uninstallListeners): Likewise.
4996 (BasicMenuUI.MouseInputHandler): Reimplemented.
4997 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
4998 (BasicMenuUI.ChangeHandler): Likewise.
4999 (BasicMenuUI.MenuDragMouseHandler): Likewise.
5000 (BasicMenuUI.MenuKeyHandler): Likewise.
5002 2004-06-10 David Jee <djee@redhat.com>
5004 * java/awt/MediaTracker.java
5005 (imageUpdate): Only do notifyAll() if the image is complete.
5007 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5009 * javax/swing/JApplet.java:
5010 (getJMenuBar): Made public.
5011 (setJMenuBar): Likewise.
5012 * javax/swing/JFrame.java:
5013 (getJMenuBar): Made public.
5014 (setJMenuBar): Likewise.
5015 * javax/swing/JWindow.java:
5016 (getJMenuBar): Removed.
5017 (setJMenuBar): Removed.
5019 2004-06-10 Michael Koch <konqueror@gmx.de>
5021 * javax/swing/JEditorPane.java
5022 (createEditorKitForContentType): Fixed visibility.
5023 (fireHyperlinkUpdate): Likewise.
5024 (getContentType): Likewise.
5025 (getEditorKit): Likewise.
5026 (getEditorKitForContentType): Likewise.
5027 (getPage): Likewise.
5029 (registerEditorKitForContentTyoe): Likewise.
5030 (replaceSelection): Likewise.
5031 (setContentType): Likewise.
5032 (setEditorKit): Likewise.
5033 (setPage): Likewise.
5035 2004-06-10 Michael Koch <konqueror@gmx.de>
5037 * javax/swing/Timer.java
5038 (Timer): New constructor.
5039 * javax/swing/plaf/basic/BasicProgressBarUI.java
5040 (animationTimer): Don't initialize at construction.
5041 (startAnimationTimer): Added since tag.
5042 (stopAnimationTimer): Likewise.
5043 (installUI): Use new Timer constructor.
5044 * javax/swing/plaf/basic/BasicScrollBarUI.java
5045 (installUI): Likewise.
5046 * javax/swing/plaf/basic/BasicSliderUI.java
5047 (installUI): Likewise.
5049 2004-06-10 Michael Koch <konqueror@gmx.de>
5051 * javax/swing/ButtonGroup.java
5052 (serialVersionUID): Made private.
5053 (buttons): Renamed from v, added javadoc.
5054 (sel): Added javadoc.
5055 (ButtonGroup): Likewise.
5058 (getElements): Likewise.
5059 (getSelection): Likewise.
5060 (setSelected): Likewise.
5061 (isSelected): Likewise.
5062 (getButtonCount): Likewise.
5064 2004-06-10 Michael Koch <konqueror@gmx.de>
5066 * javax/swing/ButtonGroup.java,
5067 javax/swing/ImageIcon.java,
5068 javax/swing/JEditorPane.java,
5069 javax/swing/JRootPane.java,
5070 javax/swing/JTextField.java,
5071 javax/swing/LookAndFeel.java,
5072 javax/swing/plaf/basic/BasicTextUI.java:
5075 2004-06-10 Michael Koch <konqueror@gmx.de>
5077 * javax/swing/text/Style.java: Added javadocs.
5079 2004-06-10 Michael Koch <konqueror@gmx.de>
5081 * javax/swing/JComponent.java
5082 (fireVetoableChange): Removed redundant cast.
5083 * javax/swing/JLabel.java
5084 (getDisabledIcon): Save icon for next call.
5086 2004-06-10 Michael Koch <konqueror@gmx.de>
5088 * javax/swing/KeyStroke.java
5089 (getKeyStroke(char,boolean)): Marked deprecated.
5091 2004-06-10 Michael Koch <konqueror@gmx.de>
5093 * javax/swing/DefaultCellEditor.java,
5094 javax/swing/GrayFilter.java,
5095 javax/swing/event/DocumentEvent.java,
5096 javax/swing/text/JTextComponent.java,
5097 javax/swing/text/MutableAttributeSet.java:
5100 2004-06-10 Michael Koch <konqueror@gmx.de>
5102 * javax/swing/plaf/BorderUIResource.java:
5103 Added serialVersionUID all over.
5105 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
5107 * javax/swing/undo/UndoManager.java: Re-written from scratch.
5109 2004-06-10 Michael Koch <konqueror@gmx.de>
5111 * javax/swing/table/DefaultTableCellRenderer.java
5112 (noFocusBorder): Initialize directly.
5114 2004-06-10 Michael Koch <konqueror@gmx.de>
5116 * javax/swing/plaf/basic/BasicArrowButton.java
5117 (setDirection): Use method argument.
5119 2004-06-10 Michael Koch <konqueror@gmx.de>
5121 * javax/swing/plaf/BorderUIResource.java,
5122 javax/swing/plaf/ComponentUI.java,
5123 javax/swing/undo/CompoundEdit.java,
5124 javax/swing/undo/StateEdit.java:
5125 Fixed javadocs all over.
5127 2004-06-10 Michael Koch <konqueror@gmx.de>
5129 * javax/swing/DefaultButtonModel.java
5130 (ARMED): Made public final, fixed value.
5131 (ENABLED): Likewise.
5132 (PRESSED): Likewise.
5133 (ROLLOVER): Likewise.
5134 (SELECTED): Likewise.
5135 (stateMask): Initialize directly.
5136 (listenerList): Likewise.
5137 (mnemonic): Likewise.
5138 (fireStateChanged): Removed argument, use changeEvent as event.
5139 All places where this method is called are fixed too.
5140 (getActionCommant): Fixed javadoc.
5141 (setGroup): Fixed javadoc.
5142 (getGroup): New method.
5144 2004-06-09 Olga Rodimina <rodimina@redhat.com>
5146 * javax/swing/AbstractButton.java
5147 (AbstractButton): Use init() to initialize the button.
5148 (init): New Method. Initializes AbstractButton.
5149 * javax/swing/JMenuItem.java: Documented.
5150 (JMenuItem): Reimplemented.
5151 (init): Implemented.
5152 (setEnabled): Changed to call super.setEnabled()
5153 (processMouseEvent): Reimplemented.
5154 (fireMenuKeyPressed): Implemented.
5155 (fireMenuKeyReleased): Implemented.
5156 (fireMenuKeyTyped): Implemented.
5157 (menuSelectionChanged): disarm the model if the menu item was
5159 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
5160 (getPath): Change to use ArrayList instead of Vector.
5161 (getPreferredSize): Renamed variable.
5162 (paintMenuItem): Paint margin area of menu item.
5163 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
5164 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
5165 menu item's bounds before clearing the selection.
5167 2004-06-09 David Jee <djee@redhat.com>
5169 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
5170 (GtkTextComponentPeer): Set caret position to 0.
5171 * java/awt/TextComponent.java
5172 (setText): Set caret position to 0.
5173 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5174 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
5175 Handle GtkScrolledWindow separately. Fix signal handler blocking.
5176 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
5178 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5179 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
5182 2004-06-09 Kim Ho <kho@redhat.com>
5184 * Makefile.am: New files
5185 * Makefile.in: Regenerated
5186 * java/awt/Container.java
5187 (getComponentAt): Removed.
5188 * javax/swing/AbstractAction.java
5189 (ENABLED_PROPERTY): New property.
5190 (putValue): Fire PropertyChangeEvents.
5191 (setEnabled): ditto.
5192 (firePropertyChange): Javadoc and implement
5194 * javax/swing/AbstractButton.java
5195 (setAction): Don't create PropertyChangeListener
5196 if new Action is null.
5197 (setIcon): Don't set icon till after comparing
5199 (configurePropertiesFromAction): Check mnemonic
5200 key before calling intValue().
5201 (createActionPropertyChangeListener): Check
5202 properties rather than bulk change.
5203 * javax/swing/DefaultDesktopManager.java:
5205 * javax/swing/DesktopManager.java:
5207 * javax/swing/JComponent.java
5208 (fireVetoableChange): Implement.
5209 (paintImmediately): Use root component.
5210 * javax/swing/JDesktopPane.java: Implement
5211 * javax/swing/JInternalFrame.java: Implement
5212 * javax/swing/JLabel.java
5213 (getDisabledIcon): Return grayscaled icon if
5214 no disabled icon specified.
5215 * javax/swing/JMenuBar.java
5216 (getComponentAtIndex): Use getComponent
5217 * javax/swing/JOptionPane.java
5218 (getDesktopPaneForComponent): Use SwingUtilities'
5220 (getFrameForComponent): ditto.
5221 * javax/swing/JSplitPane.java
5222 (remove): Use getComponent.
5223 * javax/swing/SwingUtilities.java
5224 (convertPoint): Implement.
5225 * javax/swing/plaf/basic/BasicButtonUI.java
5226 (paintButtonNormal): Check opaqueness before
5228 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
5230 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
5232 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
5234 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
5236 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5237 Change InternalFrame and Desktop colors.
5239 2004-06-09 David Jee <djee@redhat.com>
5241 * java/awt/Container.java
5242 (remove): Do not set component to invisible.
5244 2004-06-09 Michael Koch <konqueror@gmx.de>
5246 * javax/swing/tree/DefaultMutableTreeNode.java
5247 (getLeafCount): Renamed enum to e.
5249 2004-06-09 Michael Koch <konqueror@gmx.de>
5251 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5252 (positionForMouseEvent): Removed redundant semicolon.
5253 (continueDrag): Use method arguments.
5255 2004-06-09 Michael Koch <konqueror@gmx.de>
5257 * javax/swing/border/TitledBorder.java,
5258 javax/swing/filechooser/FileSystemView.java,
5259 javax/swing/plaf/basic/BasicButtonListener.java,
5260 javax/swing/plaf/basic/BasicGraphicsUtils.java,
5261 javax/swing/plaf/basic/BasicLabelUI.java,
5262 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
5263 javax/swing/plaf/basic/BasicScrollBarUI.java,
5264 javax/swing/plaf/basic/BasicScrollPaneUI.java,
5265 javax/swing/plaf/basic/BasicSliderUI.java,
5266 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
5267 javax/swing/plaf/basic/BasicToggleButtonUI.java,
5268 javax/swing/table/JTableHeader.java,
5269 javax/swing/text/AbstractDocument.java,
5270 javax/swing/text/DefaultCaret.java,
5271 javax/swing/text/StyledEditorKit.java,
5272 javax/swing/tree/DefaultTreeCellEditor.java:
5273 Reworked import statements.
5275 2004-06-08 Graydon Hoare <graydon@redhat.com>
5277 * javax/swing/Box.java: Temporarily comment out code
5278 broken due to visibility bug.
5280 2004-06-09 Michael Koch <konqueror@gmx.de>
5282 * javax/swing/ImageIcon.java
5283 (ImageIcon): Added missing constructor.
5285 2004-06-08 Michael Koch <konqueror@gmx.de>
5287 * javax/swing/JToggleButton.java
5288 (JToggleButton): New constructor.
5289 (getAccessibleContext): Moved documentation into javadoc.
5290 (getUIClassID): Likewise.
5292 2004-06-08 Michael Koch <konqueror@gmx.de>
5294 * javax/swing/AbstractButton.java
5295 (getDisabledIcon): Create disabled icon if none exists yet.
5297 2004-06-08 Michael Koch <konqueror@gmx.de>
5299 * javax/swing/plaf/basic/BasicLookAndFeel.java
5300 (initClassDefaults): Added FormattedTextFieldUI.
5301 (loadResourceBundle): Renamed enum to e.
5303 2004-06-08 Michael Koch <konqueror@gmx.de>
5305 * javax/swing/plaf/basic/BasicButtonUI.java
5306 (paintIcon): Simplified.
5307 (paintText): Paint disabled button correctly.
5309 2004-06-08 Michael Koch <konqueror@gmx.de>
5311 * javax/swing/JComponent.java
5312 (createToolTip): Use official JToolTip API.
5314 2004-06-08 Michael Koch <konqueror@gmx.de>
5316 * javax/swing/JToolTip.java
5317 (JToolTip): No arguments in API.
5318 (setTipText): New method.
5320 2004-06-08 Michael Koch <konqueror@gmx.de>
5322 * javax/swing/SwingUtilities.java
5323 (isLeftMouseButton): New method.
5324 (isMiddleMouseButton): New method.
5325 (isRightMouseButton): New method.
5327 2004-06-08 Michael Koch <konqueror@gmx.de>
5329 * javax/swing/AbstractButton.java,
5330 javax/swing/CellRendererPane.java,
5331 javax/swing/JCheckBoxMenuItem.java,
5332 javax/swing/JColorChooser.java,
5333 javax/swing/JComboBox.java,
5334 javax/swing/JComponent.java,
5335 javax/swing/JDesktopPane.java,
5336 javax/swing/JFileChooser.java,
5337 javax/swing/JMenu.java,
5338 javax/swing/JMenuItem.java,
5339 javax/swing/JOptionPane.java,
5340 javax/swing/JPasswordField.java,
5341 javax/swing/JPopupMenu.java,
5342 javax/swing/JProgressBar.java,
5343 javax/swing/JRadioButtonMenuItem.java,
5344 javax/swing/JScrollBar.java,
5345 javax/swing/JSeparator.java,
5346 javax/swing/JSlider.java,
5347 javax/swing/JSplitPane.java,
5348 javax/swing/JTabbedPane.java,
5349 javax/swing/JTextField.java,
5350 javax/swing/JToolBar.java,
5351 javax/swing/text/JTextComponent.java:
5352 Fixed all constructors of accessibility classes.
5354 2004-06-08 Michael Koch <konqueror@gmx.de>
5356 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
5359 2004-06-08 Michael Koch <konqueror@gmx.de>
5361 * javax/swing/Box.java
5362 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
5363 (AccessibleBoxFiller.serialVersionUID): New member variable.
5364 * javax/swing/DefaultButtonModel.java
5365 (stateMask): Made protected.
5366 (listenerList): Likewise.
5367 (changeEvent): Likewise.
5369 (mnemonic): Likewise.
5370 (actionCommand): Likewise.
5371 (getListeners): New method.
5372 (getActionListeners): New method.
5373 (getItemListeners): New method.
5374 (getChangeListeners): New method.
5375 (fireItemStateChanged): Simplified.
5376 (fireActionPerformed): Simplified.
5377 (fireStateChanged): Simplified.
5378 * javax/swing/JFrame.java
5379 (JFrame): Implements WindowContants.
5380 (HIDE_ON_CLOSE): Removed.
5381 (EXIT_ON_CLOSE): Removed.
5382 (DISPOSE_ON_CLOSE): Removed.
5383 (DO_NOTHING_ON_CLOSE): Removed.
5384 (processWindowEvent): Exit with code 0.
5385 (setDefaultCloseOperation): Do security check before setting value.
5386 * javax/swing/JOptionPane.java
5387 (message): Initialize only in constructor.
5388 * javax/swing/JToolTip.java: Removed unused imports.
5389 * javax/swing/JViewport.java
5390 (serialVersionUID): New member variable.
5391 (SIMPLE_SCROLL_MODE): Made final, fixed value.
5392 (BLIT_SCROLL_MODE): Likewise.
5393 (BACKINGSTORE_SCROLL_MODE): Likewise.
5394 (scrollUnderway): Made protected.
5395 (isViewSizeSet): Likewise.
5396 * javax/swing/ListModel.java: Fixed javadoc.
5397 * javax/swing/Popup.java: Likewise.
5398 * javax/swing/RepaintManager.java
5399 (paintDirtyRegions): Don't use internal classes of
5400 java.util.AbstractMap.
5401 * javax/swing/ScrollPaneConstants.java: Reindented.
5402 * javax/swing/ScrollPaneLayout.java
5403 (viewport): Made protected.
5404 (verticalScrollBar): Made protected, renamed to vsb.
5405 (horizontalScrollBar): Made protected, renamed to hsb.
5406 (rowHeader): Made protected, renamed to rowHead.
5407 (columnHeader): Made protected, renamed to colHead.
5408 (lowerLeft): Made protected.
5409 (lowerRight): Made protected.
5410 (upperLeft): Made protected.
5411 (upperRight): Made protected.
5412 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
5413 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
5415 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
5417 * java/awt/MediaTracker.java (imageUpdate): Only set status to
5418 LOADING if flags has SOMEBITS set.
5420 2004-06-07 Michael Koch <konqueror@gmx.de>
5422 * javax/swing/AbstractButton.java: Reorganized imports.
5423 * javax/swing/ActionMap.java: Likewise.
5424 * javax/swing/DefaultButtonModel.java: Likewise.
5425 * javax/swing/DefaultListModel.java: Likewise.
5426 * javax/swing/ImageIcon.java: Likewise.
5427 (serialVersionUID): New member variable.
5428 * javax/swing/JComboBox.java: Reorganized imports.
5429 * javax/swing/JComponent.java: Likewise.
5430 (ui): Made protected.
5431 (listenerList): Made protected.
5432 (TOOL_TIP_TEXT_KEY): New constant.
5433 (scrollRectToVisible): Removed redundant null check.
5434 * javax/swing/JFrame.java: Reorganized imports.
5435 * javax/swing/JInternalFrame.java: Reorganized imports.
5436 * javax/swing/JProgressBar.java: Likewise.
5437 * javax/swing/JRootPane.java: Likewise.
5438 * javax/swing/JScrollBar.java: Likewise.
5439 * javax/swing/JSeparator.java: Likewise.
5440 * javax/swing/JSlider.java: Likewise.
5441 * javax/swing/JTabbedPane.java: Likewise.
5442 * javax/swing/JTextField.java: Likewise.
5443 * javax/swing/JToolBar.java: Likewise.
5444 * javax/swing/JTree.java: Likewise.
5445 * javax/swing/JViewport.java: Likewise.
5446 * javax/swing/JWindow.java: Likewise.
5447 * javax/swing/KeyStroke.java: Likewise.
5448 * javax/swing/LookAndFeel.java: Likewise.
5449 * javax/swing/MenuSelectionManager.java: Likewise.
5450 * javax/swing/SwingUtilities.java: Likewise.
5451 * javax/swing/Timer.java: Likewise.
5452 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
5453 * javax/swing/JList.java
5454 (HORIZONTAL_WRAP): Made final, fixed value.
5455 (VERTICAL): Likewise.
5456 (VERTICAL_WRAP): Likewise.
5458 2004-06-07 Michael Koch <konqueror@gmx.de>
5460 * javax/swing/AbstractButton.java
5461 (serialVersionUID): New member variable.
5462 (AccessibleAbstractButton.serialVersionUID): Likewise.
5463 (AbstractButton): Made public.
5464 * javax/swing/Box.java
5465 (AccessibleBox.serialVersionUID): New member variable.
5466 (Filler.serialVersionUID): Likewise.
5467 * javax/swing/DefaultListSelectionModel.java
5468 (serialVersionUID): Likewise.
5469 * javax/swing/JApplet.java
5470 (serialVersionUID): Likewise.
5471 * javax/swing/JCheckBox.java
5472 (serialVersionUID): Likewise.
5473 * javax/swing/JCheckBoxMenuItem.java
5474 (serialVersionUID): Likewise.
5475 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
5476 * javax/swing/JColorChooser.java
5477 (serialVersionUID): Likewise.
5478 (AccessibleJColorChooser.serialVersionUID): Likewise.
5479 * javax/swing/JComponent.java
5480 (serialVersionUID): Made private.
5481 (AccessibleJComponent.serialVersionUID): New member variable.
5482 * javax/swing/JDesktopPane.java
5483 (serialVersionUID): Likewise.
5484 * javax/swing/JDialog.java
5485 (serialVersionUID): Likewise.
5486 * javax/swing/JFormattedTextField.java
5487 (serialVersionUID): Fixed value.
5488 * javax/swing/JFrame.java
5489 (serialVersionUID): New member variable.
5490 (getDefaultCloseOpertation): Made public.
5491 * javax/swing/JLayeredPane.java
5492 (serialVersionUID): Likewise.
5493 (LAYER_PROPERTY): Made final, fixed value.
5494 (JLayeredPane): Made public.
5495 * javax/swing/JMenu.java
5496 (AccessibleJMenu.serialVersionUID): New member variable.
5497 (WinListener.serialVersionUID): Likewise.
5498 * javax/swing/JMenuBar.java
5499 (serialVersionUID): Likewise.
5500 (getComponentAtIndex): Added @deprecated tag.
5501 * javax/swing/JMenuItem.java
5502 (serialVersionUID): New member variable.
5503 (AccessibleJMenuItem.serialVersionUID): Likewise.
5504 * javax/swing/JOptionPane.java
5505 (serialVersionUID): Likewise.
5506 (AccessibleJOptionPane.serialVersionUID): Likewise.
5507 * javax/swing/JPopupMenu.java
5508 (serialVersionUID): Likewise.
5509 (AccessibleJPopupMenu.serialVersionUID): Likewise.
5510 (getPopupMenuListeners): New method.
5511 (getComponentAtIndex): Added @deprecated tag.
5512 * javax/swing/JProgressBar.java
5513 (serialVersionUID): New member variable.
5514 (AccessibleJProgressBar.serialVersionUID): Likewise.
5515 * javax/swing/JRadioButton.java
5516 (serialVersionUID): Likewise.
5517 * javax/swing/JRadioButtonMenuItem.java
5518 (serialVersionUID): Likewise.
5519 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
5520 * javax/swing/JScrollBar.java
5521 (serialVersionUID): Likewise.
5522 (AccessibleJScrollBar.serialVersionUID): Likewise.
5523 * javax/swing/JSeparator.java
5524 (serialVersionUID): Likewise.
5525 (AccessibleJSeparator.serialVersionUID): Likewise.
5526 * javax/swing/JSlider.java: Fixed javadocs.
5527 (AccessibleJSlider.serialVersionUID): New member variable.
5528 * javax/swing/JSplitPane.java: Added copyright statement.
5529 (serialVersionUID): New member variable.
5530 (AccessibleJSplitPane.serialVersionUID): Likewise.
5531 * javax/swing/JTabbedPane.java
5532 (serialVersionUID): Likewise.
5533 (AccessibleJTabbedPane.serialVersionUID): Likewise.
5534 (ModelListener.serialVersionUID): Likewise.
5535 (ModelListener.ModelListener): New constructor.
5536 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
5537 (WRAP_TAB_LAYOUT): Likewise.
5538 * javax/swing/JTable.java
5539 (serialVersionUID): New member variable.
5540 * javax/swing/JToggleButton.java
5541 (serialVersionUID): Likewise.
5542 (ToggleButtonModel): Made static.
5543 (ToggleButtonModel.serialVersionUID): New member variable.
5544 * javax/swing/JToolTip.java
5545 (serialVersionUID): Likewise.
5546 * javax/swing/JTree.java
5547 (serialVersionUID): Likewise.
5548 * javax/swing/JWindow.java
5549 (serialVersionUID): Likewise.
5550 * javax/swing/Timer.java
5551 (serialVersionUID): Likewise.
5553 2004-06-06 Michael Koch <konqueror@gmx.de>
5555 * javax/swing/SwingConstants.java
5556 (NEXT): New constant.
5557 (PREVIOUS): Likewise.
5558 * javax/swing/UIManager.java
5559 (LookAndFeel): Made public.
5560 (LookAndFeel.getClassName): Likewise.
5561 (LookAndFeel.getName): Likewise.
5563 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5565 * javax/swing/JCheckBoxMenuItem.java:
5567 * javax/swing/JMenu.java: Likewise.
5568 * javax/swing/JMenuBar.java: Likewise.
5569 * javax/swing/JMenuItem.java: Likewise.
5570 * javax/swing/JPopupMenu.java: Likewise.
5571 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5572 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5573 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5574 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5575 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5576 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5577 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5579 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5581 * javax/swing/plaf/basic/BasicMenuUI.java:
5582 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5583 Call getPath() from super class instead.
5585 2004-05-31 David Jee <djee@redhat.com>
5587 * java/awt/Container.java
5588 (remove): Set component visibility to false after removing it.
5590 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
5592 * java/awt/Component.java (getForeground): Return SystemColor if
5594 (getBackground): Likewise.
5596 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5597 (item_highlighted): New function.
5598 (connectSignals): Set item_highlighted as list's select
5601 * java/applet/Applet.java: Revert changes from 2004-04-29,
5602 2004-03-15 and 2004-03-14.
5604 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5605 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
5608 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
5609 "Dialog" as the default font.
5610 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
5612 * java/awt/Component.java (getFont): Return "Dialog" font by
5614 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
5615 Multiply size argument to pango_font_description_set_size by the
5616 DPI conversion factor rather than by PANGO_SCALE.
5617 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
5618 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
5619 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
5620 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
5621 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
5622 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
5623 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
5624 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
5625 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
5626 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5627 Divide baseline y coordinate by DPI conversion factor rather
5628 than by PANGO_SCALE.
5629 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
5630 (area_prepared): Fix typo.
5631 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
5632 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
5633 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
5634 (dpi_conversion_factor): New global variable.
5635 (init_dpi_conversion_factor): New function to calculate and
5636 track DPI conversion factor.
5637 (dpi_changed_cb): New callback.
5638 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
5640 2004-05-27 David Jee <djee@redhat.com>
5642 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5643 (getGraphics): Return a new GdkGraphics instance.
5644 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5645 (getGraphics): Call super.getGraphics().
5647 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5649 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5650 (setNativeBounds): Clamp width and height values to >= 0.
5652 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5653 (find_fg_color_widget): Handle GtkOptionMenu specially.
5655 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5656 (pre_event_handler): Only post configure events to visible
5659 2004-05-26 David Jee <djee@redhat.com>
5661 * java/awt/BorderLayout.java
5662 (layoutContainer): Fix size calculations.
5664 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5666 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5667 (window_wm_protocols_filter): Remove function.
5668 (create): Remove filter that removes WM_TAKE_FOCUS client
5671 2004-06-17 Anthony Green <green@redhat.com>
5673 * java/util/zip/ZipFile.java (getInputStream): Return null if
5676 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
5677 directory contents to the class path.
5679 2004-06-15 Andrew Haley <aph@redhat.com>
5681 * java/lang/natSystem.cc (getenv0): Don't assume environment
5682 variable is Latin 1 coded.
5684 2004-06-14 Andreas Jaeger <aj@suse.de>
5686 * configure.in: Support --enable-version-specific-runtime-libs.
5687 * configure: Regenerated.
5689 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
5691 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
5692 to pass ClassLoader argument.
5693 * java/util/GregorianCalendar.java: Likewise.
5694 * java/util/Currency.java: Likewise.
5695 * java/text/BreakIterator.java: Likewise.
5696 * java/text/Collator.java: Likewise.
5697 * java/text/DateFormat.java: Likewise.
5698 * java/text/DateFormatSymbols.java: Likewise.
5699 * java/text/DecimalFormatSymbols.java: Likewise.
5700 * java/text/NumberFormat.java: Likewise.
5701 * java/awt/Window.java: Likewise.
5703 2004-06-14 Andrew Haley <aph@redhat.com>
5705 * java/lang/System.java: (getenv0): New method.
5706 (getenv): Add security check. Do the right thing.
5707 * java/lang/natSystem.cc (getenv0): New method.
5709 2004-06-12 Mark Wielaard <mark@klomp.org>
5711 * javax/swing/RepaintManager.java
5712 (paintDirtyRegions): Use entrySet(), not values().
5714 2004-06-10 Mark Wielaard <mark@klomp.org>
5716 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
5719 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
5721 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
5722 when we already know the answer.
5723 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
5724 (setStartRule,setEndRule): Don't take abs of day number.
5725 (getOffset): Clarify docs. Add argument checks.
5726 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
5727 (equals,hasSameRules,toString,readObject): Use startTimeMode and
5730 2004-06-10 Tom Tromey <tromey@redhat.com>
5732 * interpret.cc (run): Handle wide fload.
5734 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
5736 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
5738 2004-06-05 Michael Koch <konqueror@gmx.de>
5740 * javax/swing/SwingConstants.java
5741 (NEXT): New constant.
5742 (PREVIOUS): Likewise.
5744 2004-06-05 Michael Koch <konqueror@gmx.de>
5746 * javax/swing/UIManager.java
5747 (LookAndFeel): Made public.
5748 (LookAndFeel.getName): Likewise.
5749 (LookAndFeel.getClassName): Likewise.
5751 2004-06-03 Michael Koch <konqueror@gmx.de>
5753 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5754 (requestFocus): Revert last changes.
5755 (gtkRequestFocus): Removed.
5756 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5757 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5759 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
5760 Reverted last patch.
5761 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5762 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
5763 Reverted comment change.
5765 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5767 * javax/swing/JCheckBoxMenuItem.java:
5769 * javax/swing/JMenu.java: Likewise.
5770 * javax/swing/JMenuBar.java: Likewise.
5771 * javax/swing/JMenuItem.java: Likewise.
5772 * javax/swing/JPopupMenu.java: Likewise.
5773 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5774 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5775 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5776 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5777 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5778 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5779 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5781 2004-06-01 Tom Tromey <tromey@redhat.com>
5783 * java/io/ObjectStreamField.java: Cleaned up imports.
5785 2004-06-01 Michael Koch <konqueror@gmx.de>
5787 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
5789 2004-06-01 Mark Wielaard <mark@klomp.org>
5791 * java/io/Writer.java (Writer(Object)): Fixed API doc.
5793 2004-06-01 Michael Koch <konqueror@gmx.de>
5795 * java/security/Security.java
5796 (insertProviderAt): Use equals() instead of ==.
5797 (removeProvicer): Likewise.
5798 (getProvider): Likewise.
5799 * java/security/Signature.java
5800 (sign): Don't set state to UNINITIALIZED.
5803 2004-06-01 Mark Wielaard <mark@klomp.org>
5805 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
5806 Implement by calling gtkRequestFocus.
5807 (gtkRequestFocus): New native method.
5808 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5809 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
5811 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5813 (filter_expose_event_handler):
5815 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5816 (menu_pos): Mark static.
5818 2004-06-01 Michael Koch <konqueror@gmx.de>
5820 * java/text/CollationElementIterator.java,
5821 java/text/CollationKey.java,
5822 java/text/RuleBasedCollator.java: New versions from GNU classpath.
5823 * testsuite/libjava.mauve/xfails: Removed all
5824 java.text.CollationElementIterator tests.
5826 2004-06-01 Michael Koch <konqueror@gmx.de>
5828 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
5830 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
5831 Java 1.5 keyword usage.
5833 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5835 * javax/swing/plaf/basic/BasicMenuUI.java:
5836 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5837 Call getPath() from super class instead.
5839 2004-05-31 Michael Koch <konqueror@gmx.de>
5841 * java/io/SequenceInputStream.java:
5842 Rename enum to e because enum is a keyword in Java 1.5.
5844 2004-05-31 Michael Koch <konqueror@gmx.de>
5846 * gnu/java/rmi/rmic/CompilerProcess.java:
5847 Fixed javadoc to by XHTML compliant.
5849 2004-05-30 Mark Wielaard <mark@klomp.org>
5851 * java/awt/Toolkit.java (loadSystemColors): Implement.
5853 2004-05-30 Michael Koch <konqueror@gmx.de>
5855 * java/lang/System.java: Reordered imports.
5857 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
5859 * java/text/DecimalFormat.java
5860 (parse): Fixed parsing of decimal strings. Number of maximum
5861 digits to be read should now work.
5862 * java/text/SimpleDateFormat.java
5863 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
5864 formatter. This fixes DateFormatTest.
5866 2004-05-30 Michael Koch <konqueror@gmx.de>
5868 * java/nio/Buffer.java
5869 (limit): Fixed off by one error.
5870 * java/nio/CharBuffer.java
5871 (wrap): Fixed arguments, added javadocs.
5873 2004-05-30 Michael Koch <konqueror@gmx.de>
5875 * gnu/java/beans/BeanInfoEmbryo.java,
5876 java/awt/im/InputContext.java,
5877 javax/swing/tree/DefaultMutableTreeNode.java:
5878 Rename enum to e because enum is a keyword in Java 1.5.
5880 2004-05-30 Michael Koch <konqueror@gmx.de>
5882 * gnu/java/math/MPN.java,
5883 java/awt/geom/Arc2D.java:
5884 Fixed javadocs all over.
5886 2004-05-30 Michael Koch <konqueror@gmx.de>
5888 * java/awt/DefaultKeyboardFocusManager.java
5889 (dispatchEvent): Call method to get key event dispatchers.
5890 (dispatchKeyEvent): Call method to get key event post processors.
5891 * javax/swing/JComponent.java
5892 (listenerList): Made protected.
5893 * javax/swing/JOptionPane.java
5894 (message): Don't initialize.
5895 (JOptionPane): Set message text.
5896 * javax/swing/JPopupMenu.java
5897 (show): Fixed typo in argument name.
5898 * javax/swing/RepaintManager.java
5899 (paintDirtyRegions): Use public API of java.util.Map.
5900 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5901 (positionForMouseEvent): Removed redundant ';'.
5902 (continueDrag): Use method arguments.
5904 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
5906 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
5909 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
5911 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
5913 * gnu/gcj/RawDataManaged.java: New file.
5914 * java/lang/Thread.java (data): Declare as RawDataManaged.
5915 * java/lang/natThread.cc (init_native): Cast natThread data to
5916 RawDataManaged, not jobject.
5917 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
5918 * Makefile.in: Rebuilt.
5920 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
5922 * java/util/SimpleTimeZone.java: Reverting my last change until I
5923 can fix it properly.
5925 2004-05-27 Michael Koch <konqueror@gmx.de>
5927 * javax/swing/JPopupMenu.java
5928 (isVisible): Do not use visible directly.
5929 (setVisible): Likewise.
5930 * javax/swing/JWindow.java
5931 (JWindow): call accessible constructor.
5932 * javax/swing/RepaintManager.java
5933 (paintDirtyRegions): Use public methods to obtain iterator.
5935 2004-05-25 David Jee <djee@redhat.com>
5937 * java/awt/Container.java
5938 (remove): Set component's parent to null only after we removed the
5939 component from its parent's layout manager.
5941 2004-05-25 David Jee <djee@redhat.com>
5943 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5944 (GtkComponentPeer): Set bounds regardless of whether awtComponent
5946 * gnu/java/awt/peer/gtk/GtkListPeer.java
5947 (getSize): Change native method declaration.
5948 (minimumSize): Pass visible row count into getSize().
5949 (preferredSize): Likewise.
5950 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5951 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
5952 natural size. Use visible row count to determine the final height
5955 2004-05-21 Graydon Hoare <graydon@redhat.com>
5957 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5958 (setClip): Minor correction to order of operations.
5960 * javax/swing/JScrollPane.java: Extend sketchy implementation.
5961 * javax/swing/ScrollPaneLayout.java: Likewise.
5962 * javax/swing/JViewPort.java: Likewise.
5963 * javax/swing/ViewportLayout.java: Likewise.
5965 * javax/swing/JComponent.java: Rewrite.
5966 * javax/swing/RepaintManager.java: Likewise.
5968 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
5969 * javax/swing/JList.java
5970 (setSelectedIndices):
5971 (getSelectedIndices):
5972 (getSelectedValues): New functions.
5973 (getPreferredScrollableViewportSize): Return preferred size.
5974 (getScrollableUnitIncrement):
5975 (getScrollableBlockIncrement): Initial implementations.
5976 * javax/swing/JRootPane.java: Clean up slightly.
5981 (isValidateRoot): Add overrides from JComponent.
5982 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
5983 * javax/swing/UIManager.java (getDimension): Return the dimension.
5985 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
5986 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
5987 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5988 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
5989 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
5990 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
5991 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
5992 * javax/swing/plaf/basic/BasicRootPaneUI.java:
5993 Likewise, and set background.
5994 * javax/swing/plaf/basic/BasicListUI.java:
5995 Likewise, and improve a bit.
5996 * javax/swing/plaf/basic/BasicScrollBarUI.java:
5997 Likewise, and adjust calculations.
5998 * javax/swing/plaf/basic/BasicViewportUI.java:
5999 Likewise, and improve a bit.
6000 * javax/swing/plaf/basic/BasicLookAndFeel.java
6001 (Button.margin): Shrink.
6003 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
6004 Hack to set horizontal always, workaround pango.
6006 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
6007 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6008 Synchronize more often, check cairo status after ops,
6009 handle changes to cairo pattern API, check for disposal.
6011 2004-05-21 Olga Rodimina <rodimina@redhat.com>
6013 * javax/swing/plaf/basic/BasicMenuItemUI.java:
6014 (BasicMenuItemUI): Create propertyChangeListener.
6015 (getPath):Implemented.
6016 (installListeners): Add propertyChangeListener to menuItem.
6017 (uninstallListeners): Remove propertyChangeListener from menuItem.
6018 (update): Implemented.
6019 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
6020 (mouseEntered): Take insets of popup menu into account when
6021 calculating position of popup menu.
6023 2004-05-18 Olga Rodimina <rodimina@redhat.com>
6025 * Makefile.am: Added new file.
6026 * Makefile.in: Regenerate.
6027 * javax/swing/JMenuBar.java:
6028 Started implementation.
6029 * javax/swing/JPopupMenu.java:
6030 (setVisible): Fixed location of lightweight/mediumweight
6032 (show): Fixed location of PopupMenu.
6033 * javax/swing/plaf/basic/BasicMenuBarUI.java:
6034 New file. UI Delegate for JMenuBar.
6035 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
6036 (mouseEntered): Corrected position of the submenu.
6038 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
6040 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
6041 to _gtk_accel_group_attach.
6042 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
6045 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
6046 package access. Don't override setFont.
6047 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
6048 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
6049 gtkWidgetRequestFocus package access.
6050 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
6052 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
6053 Give gtkWidgetRequestFocus package access.
6054 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
6055 gtkWidgetRequestFocus package access. Don't override setFont.
6056 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
6058 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6059 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
6061 (gtkSetFont): Likewise.
6062 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
6064 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6065 (gtkSetFont): Whitespace fix.
6067 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6068 (gtkWidgetSetUsize): Remove method.
6070 2004-05-18 David Jee <djee@redhat.com>
6072 * java/awt/image/MemoryImageSource.java
6073 (newPixels(int,int,int,int,boolean)): Set only the specified
6074 rectangle of pixels.
6075 (newPixels(byte[],ColorModel,int,int)): Implement.
6076 (newPixels(int[],ColorModel,int,int)): Implement.
6078 2004-05-18 Olga Rodimina <rodimina@redhat.com>
6080 * Makefile.am: Added new file.
6081 * Makefile.in: Regenerate.
6082 * javax/swing/JMenu.java: Started
6084 * javax/swing/JPopupMenu.java:
6085 (insert): If specified index is -1, then
6086 add component at the end.
6087 (isPopupTrigger): Reimplemented.
6088 (JPopupMenu.LightWeightPopup): setBounds
6089 of the lightWeightPopup before adding it
6091 (javax/swing/plaf/basic/BasicIconFactory.java):
6092 (getMenuArrowIcon): Implemented.
6093 * javax/swing/plaf/basic/BasicMenuItemUI.java:
6094 (getPreferredSize): Add size of the arrow icon
6095 if this menu item is instance of JMenu.
6096 (paintMenuItem): Paint arrow icon if this
6097 menu item is a submenu.
6098 * javax/swing/plaf/basic/BasicMenuUI.java:
6099 New File. UI Delegate for JMenu.
6101 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
6103 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
6104 Post KEY_TYPED events.
6105 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6106 (generates_key_typed_event): Remove function.
6108 2004-05-17 Olga Rodimina <rodimina@redhat.com>
6110 * javax/swing/JRootPane.java
6111 (JRootPane.RootLayout): Reimplemented to
6112 set bounds of contentPane and menuBar.
6113 (setJMenuBar): Add menu bar to the layered pane.
6114 (createLayeredPane): Set layout of layeredPane
6116 * javax/swing/JLayeredPane.java:
6117 (addImpl): Calculate index of the component in the
6118 layeredPane according to the specified position within
6121 2004-05-17 David Jee <djee@redhat.com>
6123 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6124 (setPixels): Change color model to the default model after
6126 * java/awt/image/MemoryImageSource.java
6127 (newPixels): Set only the specified rectangle of pixels.
6129 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
6131 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
6132 -l-java-beans -l-javax-accessibility -l-javax-swing.
6134 * java/awt/AWTEvent.java (toString): Print source's name rather
6135 than the source itself.
6137 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
6139 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
6141 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
6142 (gdk_color_to_java_color): New function.
6143 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
6145 2004-05-12 David Jee <djee@redhat.com>
6147 * java/awt/image/RGBImageFilter.java:
6148 Initialize origmodel as null.
6149 (makeColor): Fix pixel component order.
6150 (filterRGBPixels): Fix pixel iteration.
6151 (setPixels): Add extra checks for index color model. Convert pixels
6152 to default color model if necessary.
6153 (convertColorModelToDefault): New override method for byte pixels.
6154 (convertColorModelToDefault): For int pixels, fix pixel iteration.
6155 (makeColorbyDefaultCM): New override method for byte pixels.
6156 (makeColorbyDefaultCM): For int pixel, add color model as argument.
6157 (makeColor): Fix pixel component order.
6159 2004-05-11 Kim Ho <kho@redhat.com>
6161 * javax/swing/Box.java:
6162 Comment out more parts of Box.Filler.
6164 2004-05-11 Kim Ho <kho@redhat.com>
6166 * javax/swing/Box.java:
6167 Remove reference to AccessibleAWTComponent so
6170 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6172 * gnu/java/awt/peer/gtk/GtkListPeer.java,
6173 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
6174 implementation of list peer to use GtkTreeView instead of
6175 deprecated GtkCList.
6177 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
6179 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6180 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
6181 (handleEvent): Remove keyChar argument to
6182 gtkWidgetDispatchKeyEvent calls.
6183 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
6185 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6186 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
6187 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
6190 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
6192 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6193 (gtkWidgetRequestFocus): Mark protected.
6194 (GtkComponentPeer): Only set the peer's bounds if its component
6196 * java/awt/Component.java (static): Set the default keyboard
6198 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
6199 requestFocusInWindow(temporary)): Don't request focus if the
6200 component is not showing. Get tree lock before traversing
6201 component hierarchy.
6202 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
6203 Only set the global focus owner if it is not a Window.
6204 (processKeyEvent): Consume keystrokes associated with the focus
6205 traversal keystroke.
6206 (focusPreviousComponent, focusNextComponent, upFocusCycle,
6207 downFocusCycle): Call requestFocusInWindow instead of
6209 * java/awt/EventDispatchThread.java (run): Move setting of
6210 default keyboard focus manager to Component.java.
6211 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6212 (awt_keycode_to_keysym): New function.
6213 (gtkWidgetDispatchKeyEvent): Finish implementation.
6214 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6215 (pre_event_handler): Add FIXME comment.
6217 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
6218 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6219 (gtkWidgetRequestFocus): New method.
6220 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
6221 disable Tab and Shift-Tab keystrokes.
6222 (addNotify, appendText, insertText, replaceText): Simplify peer
6224 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
6225 (connectSignals): Remove connections to "commit" signals.
6226 Remove C++-style comments.
6228 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
6229 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6230 (handleEvent): Activate GTK button when the space bar key is
6232 (gtkActivate): New method.
6234 2004-05-06 David Jee <djee@redhat.com>
6236 * java/awt/image/CropImageFilter.java
6237 (setPixels): Implement for byte array pixels.
6238 * java/awt/image/ReplicateScaleFilter.java
6239 (setPixels): Implement for byte array pixels.
6240 (replicatePixels): Overload for byte array pixels.
6242 2004-05-06 Kim Ho <kho@redhat.com>
6244 * javax/swing/Box.java:
6245 (getAccessibleContext): Return an instance of the
6248 2004-05-05 David Jee <djee@redhat.com>
6250 * gnu/java/awt/peer/gtk/GdkGraphics.java
6251 (drawImage): When component is null, use SystemColor.window as
6252 the default bgcolor.
6253 * gnu/java/awt/peer/gtk/GtkImage.java
6254 (setPixels): We can avoid iterating through the pixel rows only
6256 * java/awt/Image.java
6257 (getScaledInstance): Partially implement.
6258 * java/awt/image/CropImageFilter.java
6259 (setProperties): Fix "filter" property.
6260 (setPixels): Implement.
6261 * java/awt/image/ReplicateScaleFilter.java
6262 (setDimensions): Use scaled dimensions.
6263 (setPixels): Implement.
6264 (replicatePixels): New method.
6266 2004-05-05 David Jee <djee@redhat.com>
6268 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6269 (convertPixels): If either pixels or model is null, return null.
6270 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
6271 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
6272 is null, do nothing and return.
6274 2004-05-03 Kim Ho <kho@redhat.com>
6276 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
6277 (getGraphics): Like GtkFramePeer, the Graphics
6278 object needs to be translate to account for
6280 (postMouseEvent): New method. Account for
6282 (postExposeEvent): ditto.
6283 * javax/swing/Box.java: Stubbed.
6284 * javax/swing/JDialog.java: Ran through jalopy
6286 (JDialog): Call SwingUtilities' getOwnerFrame
6288 (setLayout): Check isRootPaneCheckingEnabled
6289 * javax/swing/JOptionPane.java: Re-implemented.
6290 * javax/swing/SwingUtilities.java:
6291 (getOwnerFrame): Static method to grab a default
6292 owner frame for Dialogs that don't specify owners.
6293 * javax/swing/event/SwingPropertyChangeSupport.java:
6294 (firePropertyChange): Fix early exit condition.
6295 * javax/swing/plaf/basic/BasicLabelUI.java:
6296 (paint): Avoid painting text if it is null
6298 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
6301 2004-05-03 Olga Rodimina <rodimina@redhat.com>
6303 * Makefile.am: Added new file.
6304 * Makefile.in: Regenerate.
6305 * javax/swing/JPopupMenu.java:
6306 Started implementation.
6307 * javax/swing/JWindow.java
6308 (JWindow): call super() if parent for window
6310 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
6311 New File. UI Delegate for JPopupMenu.
6313 2004-04-30 Olga Rodimina <rodimina@redhat.com>
6315 * javax/swing/JApplet.java: Indicated that JApplet
6316 implements RootPaneContainer and made method of this
6318 * javax/swing/JFrame.java: Ditto.
6319 * javax/swing/JWindow.java: Ditto.
6321 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
6323 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6324 (nativeSetBounds): Call gdk_window_move in addition to
6327 * java/applet/Applet.java (preferredSize): Call parent's
6328 preferredSize if the applet stub is null.
6329 (minimumSize): Likewise for parent's minimumSize.
6331 2004-04-27 Olga Rodimina <rodimina@redhat.com>
6333 * javax/swing/JMenuItem.java
6334 (createActionPropertyChangeListener): Implemented.
6335 (processMouseEvent): Ditto.
6336 (fireMenuDragMouseEntered): Ditto.
6337 (fireMenuDragMouseExited): Ditto.
6338 (fireMenuDragMouseDragged): Ditto.
6339 (fireMenuDragMouseReleased): Ditto.
6340 (menuSelectionChanged): Ditto.
6341 (getSubElements): Ditto.
6342 (getComponent): Ditto.
6343 (addMenuDragMouseListener): Ditto.
6344 (removeMenuDragMouseListener):Ditto.
6345 (addMenuKeyListener): Ditto.
6346 (removeMenuKeyListener): Ditto.
6347 * javax/swing/plaf/basic/BasicMenuItemUI.java
6348 (doClick): Imlemented.
6349 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
6350 Don't handle mouse events here. Pass them to
6351 MenuSelectionManager.
6353 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6354 Used correct version of jalopy configuration
6355 file to fix style in the files below.
6357 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6359 * javax/swing/JCheckBoxMenuItem.java:
6360 Fixed style and removed unnecessary comments.
6361 * javax/swing/JMenuItem.java: Ditto.
6362 * javax/swing/JRadioButtonMenuItem.java: Ditto.
6363 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
6364 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
6365 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
6367 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
6369 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
6372 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
6374 * java/awt/ContainerOrderFocusTraversalPolicy.java
6375 (getComponentAfter): Start from current component and work up
6376 the component hierarchy until an acceptable component is found.
6377 Synchronize on tree lock.
6378 (getComponentBefore): Likewise.
6380 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
6382 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
6383 focus-related debugging messages.
6384 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
6385 * java/awt/EventDispatchThread.java: Likewise.
6386 * java/awt/KeyboardFocusManager.java: Likewise.
6387 * java/awt/Window.java: Likewise.
6388 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
6389 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6391 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
6392 new C++-style comments to C-style comments.
6393 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6395 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
6396 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6397 (handleEvent): Dispatch key press and key release events to
6399 (requestFocus): Post a FOCUS_GAINED event to the event queue.
6400 (gtkWidgetRequestFocus): New method.
6401 (gtkWidgetDispatchKeyEvent): Likewise.
6402 * java/awt/Component.java (requestFocus, requestFocus(boolean),
6403 requestFocusInWindow, requestFocusInWindow(boolean),
6404 getFocusCycleRootAncestor, nextFocus, transferFocus,
6405 transferFocusBackward, transferFocusUpCycle, hasFocus,
6406 isFocusOwner): Implement and document focus-handling methods.
6407 (setFocusTraversalKeys): Inherit focus traversal keys when
6408 keystrokes argument is null. Fix focus-handling documentation
6410 * java/awt/Container.java (setFocusTraversalKeys,
6411 getFocusTraversalKeys, areFocusTraversalKeysSet,
6412 isFocusCycleRoot, setFocusTraversalPolicy,
6413 getFocusTraversalPolicy, isFocusTraversalPolicySet,
6414 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
6415 Implement and document focus-handling methods.
6416 (transferFocusBackward): Remove method.
6417 (readObject, writeObject): Implement and document serialization
6419 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
6421 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
6423 * java/awt/DefaultKeyboardFocusManager.java: Implement and
6425 * java/awt/EventDispatchThread.java (run): Set default keyboard
6426 focus manager. Attempt to dispatch each event to the keyboard
6427 focus manager before normal dispatch.
6428 * java/awt/KeyboardFocusManager.java: Implement and partially
6430 * java/awt/Window.java (Window): Set focusCycleRoot to true.
6431 (show): Focus initial component when window is shown for the
6433 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6434 (pre_event_handler): Replace complex key press and key release
6435 logic with simple callbacks into GtkComponentPeer.
6436 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
6438 2004-04-21 Olga Rodimina <rodimina@redhat.com>
6440 * javax/swing/MenuSelectionManager.java
6441 (componentForPoint): Added new method.
6442 (defaultManager): New Method. Implemented.
6443 (getSelectedPath): Ditto.
6444 (isComponentPartOfCurrentMenu): Ditto.
6445 (processKeyEvent): Added new method.
6446 (processMouseEvent): New Method. Implemented.
6447 (setSelectedPath): Ditto.
6450 2004-04-19 Kim Ho <kho@redhat.com>
6452 * java/awt/Container.java:
6453 (remove): Set the component's parent to null.
6454 (getComponentAt): Implement.
6455 * javax/swing/JComponent.java:
6456 (JComponent): Initialize defaultLocale
6457 (getDefaultLocale): Implement.
6458 (setDefaultLocale): ditto.
6459 * javax/swing/JSlider.java:
6460 (JSlider): Fix calculation of value.
6461 * javax/swing/JSplitPane.java: Implement.
6462 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6463 Change SplitPane's default divider size.
6464 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6465 (paint): Remove unused code.
6466 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
6467 Added comments and ran through jalopy.
6468 (setBasicSplitPaneUI): Get reference to hidden divider
6469 and set up one touch buttons if necessary.
6470 (setBorder): Fire propertyChangeEvent only if
6471 borders are different.
6472 (getPreferredSize): Defer to layout manager.
6473 (propertyChange): Implement.
6474 (oneTouchExpandableChanged): ditto.
6475 (createLeftOneTouchButton): Use BasicArrowButton.
6476 (createRightOneTouchButton): ditto.
6477 (moveDividerTo): New method. Moves the divider
6478 to a set location based on the last divider location.
6479 (BasicSplitPaneDivider::MouseHandler): Implement.
6480 (BasicSplitPaneDivider::OneTouchButton): Removed.
6481 (BasicSplitPaneDivider::DragController): Implement.
6482 (BasicSplitPaneDivider::VerticalDragController):
6484 (BasicSplitPaneDivider::DividerLayout): ditto.
6485 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
6486 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
6487 (calculateLayoutInfo): Don't show component if it's
6489 (paintTab): Fix title paint logic.
6491 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
6494 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
6495 (setStartRule,setEndRule): Don't take abs of day number.
6496 (getOffset): Clarify docs. Add argument checks.
6497 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
6498 (equals,hasSameRules,toString,readObject): Use startTimeMode and
6500 * testsuite/libjava.mauve/xfails
6501 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
6503 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
6505 Layout interfaces during preparation, not initialization.
6506 * java/lang/natClass.cc (initializeClass): Move
6507 _Jv_LayoutInterfaceMethods call...
6508 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
6510 2004-05-19 Anthony Green <green@localhost.localdomain>
6512 * Makefile.am (awt_java_source_files): Remove javax.rmi and
6514 * Makefile.in: Rebuilt.
6515 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
6516 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
6517 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
6518 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
6519 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
6520 gnu/javax/rmi/CORBA/DelegateFactory.java,
6521 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
6522 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
6523 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
6524 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
6525 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
6526 gnu/javax/rmi/PortableServer.java: Remove files.
6528 2004-05-19 Anthony Green <green@redhat.com>
6530 * Makefile.am: Define JAVA_EXT_DIRS.
6531 * Makefile.in: Rebuilt.
6532 * java/lang/natRuntime.cc (insertSystemProperties): Set
6533 java.ext.dirs property.
6535 2004-05-16 Mark Wielaard <mark@klomp.org>
6537 * java/io/Writer.java (Writer(Object)): Check for null lock object.
6539 2004-05-15 Mark Wielaard <mark@klomp.org>
6541 * doc/cni.sgml: Removed, merged into gcj.texi.
6543 2004-05-15 Mark Wielaard <mark@klomp.org>
6545 * Makefile.am (ordinary_java_source_files): Add new javax.print
6547 * Makefile.in: Regenerated.
6549 2004-05-15 Michael Koch <konqueror@gmx.de>
6551 * javax/print/attribute/standard/DateTimeAtCompleted.java,
6552 javax/print/attribute/standard/DateTimeAtCreation.java,
6553 javax/print/attribute/standard/DateTimeAtProcessing.java,
6554 javax/print/attribute/standard/DocumentName.java,
6555 javax/print/attribute/standard/JobHoldUntil.java,
6556 javax/print/attribute/standard/JobImpressionsCompleted.java,
6557 javax/print/attribute/standard/JobMessageFromOperator.java,
6558 javax/print/attribute/standard/JobName.java,
6559 javax/print/attribute/standard/JobOriginatingUserName.java,
6560 javax/print/attribute/standard/JobPriority.java,
6561 javax/print/attribute/standard/JobPrioritySupported.java,
6562 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6563 javax/print/attribute/standard/OutputDeviceAssigned.java,
6564 javax/print/attribute/standard/PrinterInfo.java,
6565 javax/print/attribute/standard/PrinterLocation.java,
6566 javax/print/attribute/standard/PrinterMakeAndModel.java,
6567 javax/print/attribute/standard/PrinterMessageFromOperator.java,
6568 javax/print/attribute/standard/PrinterName.java,
6569 javax/print/attribute/standard/QueuedJobCount.java,
6570 javax/print/attribute/standard/RequestingUserName.java:
6571 Fixed javadocs all over.
6573 2004-05-15 Michael Koch <konqueror@gmx.de>
6575 * javax/print/DocFlavor.java,
6576 javax/print/attribute/standard/ColorSupported.java,
6577 javax/print/attribute/standard/Compression.java,
6578 javax/print/attribute/standard/CopiesSupported.java,
6579 javax/print/attribute/standard/Fidelity.java,
6580 javax/print/attribute/standard/Finishings.java,
6581 javax/print/attribute/standard/JobImpressionsSupported.java,
6582 javax/print/attribute/standard/JobKOctetsSupported.java,
6583 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6584 javax/print/attribute/standard/JobSheets.java,
6585 javax/print/attribute/standard/JobState.java,
6586 javax/print/attribute/standard/JobStateReason.java,
6587 javax/print/attribute/standard/JobStateReasons.java,
6588 javax/print/attribute/standard/Media.java,
6589 javax/print/attribute/standard/MediaSizeName.java,
6590 javax/print/attribute/standard/MultipleDocumentHandling.java,
6591 javax/print/attribute/standard/NumberUpSupported.java,
6592 javax/print/attribute/standard/OrientationRequested.java,
6593 javax/print/attribute/standard/PDLOverrideSupported.java,
6594 javax/print/attribute/standard/PageRanges.java,
6595 javax/print/attribute/standard/PresentationDirection.java,
6596 javax/print/attribute/standard/PrintQuality.java,
6597 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6598 javax/print/attribute/standard/PrinterMoreInfo.java,
6599 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6600 javax/print/attribute/standard/PrinterResolution.java,
6601 javax/print/attribute/standard/PrinterState.java,
6602 javax/print/attribute/standard/PrinterStateReason.java,
6603 javax/print/attribute/standard/PrinterStateReasons.java,
6604 javax/print/attribute/standard/PrinterURI.java,
6605 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6606 javax/print/attribute/standard/Severity.java,
6607 javax/print/attribute/standard/SheetCollate.java,
6608 javax/print/attribute/standard/Sides.java:
6609 Added serialVersionUID and removed final keyword where it doenst
6612 2004-05-15 Michael Koch <konqueror@gmx.de>
6614 * javax/print/PrintServiceLookup.java: New file.
6616 2004-05-15 Michael Koch <konqueror@gmx.de>
6618 * javax/print/DocFlavor.java:
6619 Implemented all flavor classes.
6621 2004-05-15 Michael Koch <konqueror@gmx.de>
6623 * javax/print/attribute/standard/ColorSupported.java,
6624 javax/print/attribute/standard/Compression.java,
6625 javax/print/attribute/standard/CopiesSupported.java,
6626 javax/print/attribute/standard/Fidelity.java,
6627 javax/print/attribute/standard/Finishings.java,
6628 javax/print/attribute/standard/JobImpressionsSupported.java,
6629 javax/print/attribute/standard/JobKOctetsSupported.java,
6630 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6631 javax/print/attribute/standard/JobSheets.java,
6632 javax/print/attribute/standard/JobState.java,
6633 javax/print/attribute/standard/JobStateReason.java,
6634 javax/print/attribute/standard/JobStateReasons.java,
6635 javax/print/attribute/standard/Media.java,
6636 javax/print/attribute/standard/MediaSizeName.java,
6637 javax/print/attribute/standard/MultipleDocumentHandling.java,
6638 javax/print/attribute/standard/NumberUpSupported.java,
6639 javax/print/attribute/standard/OrientationRequested.java,
6640 javax/print/attribute/standard/PDLOverrideSupported.java,
6641 javax/print/attribute/standard/PageRanges.java,
6642 javax/print/attribute/standard/PresentationDirection.java,
6643 javax/print/attribute/standard/PrintQuality.java,
6644 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6645 javax/print/attribute/standard/PrinterMoreInfo.java,
6646 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6647 javax/print/attribute/standard/PrinterResolution.java,
6648 javax/print/attribute/standard/PrinterState.java,
6649 javax/print/attribute/standard/PrinterStateReason.java,
6650 javax/print/attribute/standard/PrinterStateReasons.java,
6651 javax/print/attribute/standard/PrinterURI.java,
6652 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6653 javax/print/attribute/standard/Severity.java,
6654 javax/print/attribute/standard/SheetCollate.java,
6655 javax/print/attribute/standard/Sides.java: New files.
6657 2004-05-15 Michael Koch <konqueror@gmx.de>
6659 * javax/print/Doc.java
6660 (getPrintData): Throws IOException.
6661 (getReaderForText): Likewise.
6662 (getStreamForBytes): Likewise.
6663 * javax/print/DocFlavor.java:
6664 Fixed filename in copyright.
6665 (serialVersionUID): New field.
6666 * javax/print/ServiceUIFactory.java:
6667 Made all constants final.
6668 * javax/print/AttributeException.java
6669 javax/print/MultiDoc.java
6670 javax/print/MultiDocPrintJob.java
6671 javax/print/MultiDocPrintService.java
6672 javax/print/StreamPrintService.java
6673 javax/print/URIException.java: New files.
6674 * javax/print/Makefile.am
6675 (EXTRA_DIST): Added all new files.
6677 2004-05-15 Michael Koch <konqueror@gmx.de>
6679 * javax/print/attribute/standard/Copies.java,
6680 javax/print/attribute/standard/DateTimeAtCompleted.java,
6681 javax/print/attribute/standard/DateTimeAtCreation.java,
6682 javax/print/attribute/standard/DateTimeAtProcessing.java,
6683 javax/print/attribute/standard/DocumentName.java,
6684 javax/print/attribute/standard/JobHoldUntil.java,
6685 javax/print/attribute/standard/JobImpressions.java,
6686 javax/print/attribute/standard/JobImpressionsCompleted.java,
6687 javax/print/attribute/standard/JobKOctets.java,
6688 javax/print/attribute/standard/JobKOctetsProcessed.java,
6689 javax/print/attribute/standard/JobMediaSheets.java,
6690 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
6691 javax/print/attribute/standard/JobMessageFromOperator.java,
6692 javax/print/attribute/standard/JobName.java,
6693 javax/print/attribute/standard/JobOriginatingUserName.java,
6694 javax/print/attribute/standard/JobPriority.java,
6695 javax/print/attribute/standard/JobPrioritySupported.java,
6696 javax/print/attribute/standard/NumberOfDocuments.java,
6697 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6698 javax/print/attribute/standard/NumberUp.java,
6699 javax/print/attribute/standard/OutputDeviceAssigned.java,
6700 javax/print/attribute/standard/PagesPerMinute.java,
6701 javax/print/attribute/standard/PagesPerMinuteColor.java:
6702 Fixed @return tag all over.
6704 2004-05-15 Michael Koch <konqueror@gmx.de>
6706 * javax/print/attribute/AttributeSetUtilities.java
6707 (verifyCategoryForValue): Fixed typo in javadoc.
6708 * javax/print/attribute/HashAttributeSet.java
6709 (containsKey): Fixed @return tag.
6710 (comtainsValue): Likewise.
6712 * javax/print/attribute/IntegerSyntax.java
6714 * javax/print/attribute/ResolutionSyntax.java
6716 (getCrossFeedResolution): Removed unused code.
6717 (getFeedResolution): Likewise.
6718 * javax/print/attribute/SetOfIntegerSyntax.java
6719 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
6720 (equals): Fixed @return tag.
6721 * javax/print/attribute/TextSyntax.java
6722 (TextSyntax): Take locale into account.
6723 (hashCode): Better implementation.
6725 2004-05-15 Michael Koch <konqueror@gmx.de>
6727 * javax/print/CancelablePrintJob.java,
6728 javax/print/Doc.java,
6729 javax/print/DocFlavor.java,
6730 javax/print/DocPrintJob.java,
6731 javax/print/FlavorException.java,
6732 javax/print/PrintException.java,
6733 javax/print/PrintService.java,
6734 javax/print/ServiceUIFactory.java: New files.
6736 2004-05-15 Mark Wielaard <mark@klomp.org>
6738 * gnu/regexp/CharIndexedReader.java: Removed.
6739 * gnu/regexp/REFilterReader.java: Likewise.
6740 * gnu/regexp/RETokenLookAhead.java: Likewise.
6741 * Makefile.am (ordinary_java_source_files): Remove above classes.
6742 * Makefile.in: Regenerated.
6744 2004-05-14 Tom Tromey <tromey@redhat.com>
6746 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
6747 not `XGraphicsConfiguration.XOffScreenImage'.
6749 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
6751 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
6753 2004-05-14 Steven Augart <augart@watson.ibm.com>
6755 * include/jni.h (_Jv_func): Removed.
6756 (struct JNINativeInterface): Use `void *' for reserved slots.
6757 (struct JNIInvokeInterface): Likewise.
6759 2004-05-11 Michael Koch <konqueror@gmx.de>
6761 * gnu/java/net/natPlainSocketImplPosix.cc
6762 (read): Fixed typo in expression.
6764 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
6766 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
6767 ld_library_additions. Adjust all calls to libjava_invoke to match
6770 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
6771 path to cxxflagslist.
6772 Pass path of libstdc++ to libjava_invoke.
6774 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
6775 libjava_invoke arguments.
6777 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
6779 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
6782 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
6784 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
6785 main binary against the JNI shared library.
6787 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6789 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
6790 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
6791 (SimpleTimeZone): Tweak docs. Add new variation.
6792 (setStartRule,setEndRule): Add new variations. Use
6793 startTimeMode and endTimeMode.
6795 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6797 * java/util/Calendar.java (getActualMinimum,
6798 getActualMaximum): Remove abstract. Implement.
6800 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6802 Run the jni tests using the interpreter.
6803 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
6804 options_cxx to shared lib compile command.
6805 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
6806 they are used to link the shared lib, not the main binary.
6807 Use libjava_invoke to run gij.
6809 2004-05-06 Michael Koch <konqueror@gmx.de>
6811 * java/util/logging/Level.java
6812 (parse): Use == instead of String.equals().
6814 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6816 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
6817 verify_field_signature and verify_method_signature, not
6818 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
6819 (_Jv_ClassReader::handleField): Likewise.
6820 (_Jv_ClassReader::handleMethod): Likewise.
6822 2004-05-06 Michael Koch <konqueror@gmx.de>
6824 * javax/swing/table/TableColumn.java:
6827 2004-05-06 Michael Koch <konqueror@gmx.de>
6829 * javax/imageio/spi/ImageReaderWriterSpi.java
6830 (ImageReaderWriterSpi): Made it public.
6831 * javax/imageio/stream/ImageInputStream.java:
6834 2004-05-06 Michael Koch <konqueror@gmx.de>
6836 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6839 2004-05-06 Michael Koch <konqueror@gmx.de>
6841 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
6842 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
6844 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
6845 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
6846 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
6847 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
6848 their own source file.
6849 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6850 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
6851 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
6852 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
6853 (create): Define variable on top of function.
6854 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
6855 (menu_pos): Prototyped.
6856 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6857 (setTitle): Removed.
6858 * jni/gtk-peer/gthread-jni.c
6859 (gdk_threads_wake): Removed.
6860 * Makefile.am (gtk_c_source_files): Added new files
6861 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
6862 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
6863 * Makefile.in: Regenerated.
6865 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
6867 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
6870 2004-05-05 Mark Wielaard <mark@klomp.org>
6872 * javax/swing/AbstractButton.java: Replace special HTML entities with
6874 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
6875 * javax/swing/DefaultButtonModel.java: Likewise.
6876 * javax/swing/DefaultListModel.java: Likewise.
6877 * javax/swing/JList.java: Likewise.
6878 * javax/swing/JSlider.java: Likewise.
6879 * javax/swing/ListModel.java: Likewise.
6880 * javax/swing/Popup.java: Likewise.
6881 * javax/swing/SwingUtilities.java: Likewise.
6883 2004-05-05 Michael Koch <konqueror@gmx.de>
6885 * javax/swing/AbstractButton.java,
6886 javax/swing/ActionMap.java,
6887 javax/swing/DefaultButtonModel.java,
6888 javax/swing/DefaultListModel.java,
6889 javax/swing/ImageIcon.java,
6890 javax/swing/JComboBox.java,
6891 javax/swing/JComponent.java,
6892 javax/swing/JFrame.java,
6893 javax/swing/JInternalFrame.java,
6894 javax/swing/JMenuBar.java,
6895 javax/swing/JMenuItem.java,
6896 javax/swing/JOptionPane.java,
6897 javax/swing/JProgressBar.java,
6898 javax/swing/JRootPane.java,
6899 javax/swing/JScrollBar.java,
6900 javax/swing/JScrollPane.java,
6901 javax/swing/JSeparator.java,
6902 javax/swing/JSlider.java,
6903 javax/swing/JTabbedPane.java,
6904 javax/swing/JTable.java,
6905 javax/swing/JTextField.java,
6906 javax/swing/JToolBar.java,
6907 javax/swing/JToolTip.java,
6908 javax/swing/JTree.java,
6909 javax/swing/JViewport.java,
6910 javax/swing/JWindow.java,
6911 javax/swing/KeyStroke.java,
6912 javax/swing/LookAndFeel.java,
6913 javax/swing/SwingUtilities.java,
6914 javax/swing/Timer.java,
6915 javax/swing/ToolTipManager.java,
6916 javax/swing/UIDefaults.java,
6917 javax/swing/border/TitledBorder.java,
6918 javax/swing/filechooser/FileSystemView.java,
6919 javax/swing/plaf/basic/BasicButtonListener.java,
6920 javax/swing/plaf/basic/BasicButtonUI.java,
6921 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
6922 javax/swing/plaf/basic/BasicGraphicsUtils.java,
6923 javax/swing/plaf/basic/BasicLabelUI.java,
6924 javax/swing/plaf/basic/BasicMenuItemUI.java,
6925 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
6926 javax/swing/plaf/basic/BasicRootPaneUI.java,
6927 javax/swing/plaf/basic/BasicScrollBarUI.java,
6928 javax/swing/plaf/basic/BasicScrollPaneUI.java,
6929 javax/swing/plaf/basic/BasicSliderUI.java,
6930 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
6931 javax/swing/plaf/basic/BasicToggleButtonUI.java,
6932 javax/swing/table/JTableHeader.java,
6933 javax/swing/text/AbstractDocument.java,
6934 javax/swing/text/DefaultCaret.java,
6935 javax/swing/text/StyledEditorKit.java,
6936 javax/swing/tree/DefaultTreeCellEditor.java:
6939 2004-05-05 Michael Koch <konqueror@gmx.de>
6941 * java/util/prefs/AbstractPreferences.java
6942 (AbstractPreferences): Added parenthesis for clarity.
6943 Closes classpath bug #7940.
6945 2004-05-05 Tom Tromey <tromey@redhat.com>
6947 * javax/naming/CompoundName.java (endsWith): Look at correct
6948 element of source name.
6950 2004-05-05 Mark Wielaard <mark@klomp.org>
6952 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
6953 * java/util/HashMap.java (rehash): Add entry at start of bucket.
6955 2004-05-05 Tom Tromey <tromey@redhat.com>
6957 * java/io/BufferedReader.java (skip): Removed unused
6960 2004-05-05 Michael Koch <konqueror@gmx.de>
6962 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
6964 2004-05-05 Dalibor Topic <robilad@kaffe.org>
6966 * java/text/AttributedString.java,
6967 java/text/AttributedStringIterator.java,
6968 java/text/Collator.java,
6969 java/text/DecimalFormatSymbols.java,
6970 java/text/NumberFormat.java,
6971 java/text/RuleBasedCollator.java:
6974 2004-05-05 Tom Tromey <tromey@redhat.com>
6976 * java/text/Format.java: Cleaned up imports.
6977 * java/text/DecimalFormat.java: Cleaned up imports.
6978 * java/security/SecureRandom.java: Cleaned up imports.
6979 (SecureRandom): Removed unused variable.
6980 * java/security/UnresolvedPermission.java: Cleaned up imports.
6981 * java/util/Date.java (parse): Removed unused variable.
6982 * java/util/ResourceBundle.java: Cleaned up imports.
6983 (getBundle): Removed unused variable.
6984 (tryBundle): Likewise.
6985 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
6987 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6989 * java/text/SimpleDateFormat.java:
6990 (formatWithAttribute): New method. It implements
6991 the formatting process with attributes.
6992 (format): Use formatWithAttribute.
6993 (formatToCharacterIterator): New method. Use
6994 formatWithAttribute.
6996 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6998 * java/text/MessageFormat.java:
6999 (class Field): New class.
7000 (formatToCharacterIterator): New method.
7001 (format): Use formatInternal now.
7002 (formatInternal): New method. String formatter should
7003 be done here (with attributes). Attributes merging supported.
7004 (parse): More documentation.
7005 (getFormatsByArgumentIndex): New method.
7006 (setFormatByArgumentIndex): New method.
7007 (setFormatsByArgumentIndex): New method.
7009 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7011 * java/text/DecimalFormat.java
7012 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
7013 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
7014 (parse): Fixed handling of exponentiation notation and grouping.
7016 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7018 * java/text/DecimalFormat.java
7019 (scanFix): Build attribute array. Fixed error reporting.
7020 (applyPatternWithSymbols): Store attributes for the prefix and
7022 (formatInternal): New method. Changed the way the string is
7023 computed. Implemented attributes. Cleant up rounding in
7024 exponential notation.
7025 (format): Use formatInternal.
7026 (formatToCharacterIterator): New method.
7027 (exponentRound, negativePrefixRanges, positivePrefixRanges,
7028 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
7029 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
7032 2004-05-04 Dalibor Topic <robilad@kaffe.org>
7034 * java/security/interfaces/DSAKeyPairGenerator.java,
7035 java/security/interfaces/DSAPrivateKey.java,
7036 java/security/interfaces/DSAPublicKey.java,
7037 java/security/interfaces/RSAPrivateKey.java,
7038 java/security/interfaces/RSAPublicKey.java:
7041 2004-05-04 Michael Koch <konqueror@gmx.de>
7043 * java/nio/ByteBuffer.java,
7044 java/nio/CharBuffer.java,
7045 java/nio/DoubleBuffer.java,
7046 java/nio/FloatBuffer.java,
7047 java/nio/IntBuffer.java,
7048 java/nio/LongBuffer.java,
7049 java/nio/ShortBuffer.java:
7050 (compareTo): Fixed bogus implementation in all buffer classes.
7052 2004-05-04 Ingo Proetel <proetel@aicas.com>
7054 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
7055 32 bit pixels not 8 bit pixels.
7056 (isCompatibleRaster): Added javadoc comment.
7058 2004-05-04 Ingo Proetel <proetel@aicas.com>
7060 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
7063 2004-05-04 Ingo Proetel <proetel@aicas.com>
7065 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
7066 (getColorModel): Return the actual color model.
7067 (getRaster): Implemented.
7068 (ColorRaster): New inner class.
7069 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
7071 * java/awt/Color.java (<init>): Make exception more verbose.
7072 (createContext): Use ColorModel when creating a PaintContext.
7074 2004-05-04 Michael Koch <konqueror@gmx.de>
7076 * gnu/java/text/CharacterBreakIterator.java
7077 (previous): Removed unused variable.
7079 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
7081 * gnu/java/text/FormatBuffer.java,
7082 gnu/java/text/AttributedFormatBuffer.java,
7083 gnu/java/text/StringFormatBuffer.java: New classes to implement
7084 attributed iterators in java.text.
7085 * gnu/java/text/FormatCharacterIterator.java: Moved
7086 from java/text as it is an internal class.
7087 * java/text/FormatCharacterIterator.java: Removed.
7088 * java/text/Format.java:
7089 Import gnu.java.text.FormatCharacterIterator.
7090 * Makefile.am (java_source_files): Added new files.
7091 * Makefile.in: Regenerated.
7094 2004-05-04 Mark Wielaard <mark@klomp.org>
7096 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
7098 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
7100 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
7101 * Makefile.in: Rebuilt.
7103 2004-05-03 Mark Wielaard <mark@klomp.org>
7105 * gnu/java/security/der/DERReader.java: Call static methods staticly.
7106 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
7108 (set(String, String, int, String, String, String, String, String)):
7109 Assign this.file to path or path + "?" + query.
7110 * java/util/Arrays.java: Call static methods staticly.
7111 * java/util/zip/ZipEntry.java: Likewise.
7112 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
7113 dir to this.direction.
7114 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
7115 Assign static field only once.
7116 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
7118 2004-05-03 Mark Wielaard <mark@klomp.org>
7120 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
7121 unused variables hScrollbarHeight and vScrollbarWidth.
7122 (preferredSize): Likewise.
7123 * gnu/java/security/provider/DSAParameters.java (engineToString):
7124 Removed unused call to System.getProperty("line.seperator");
7125 * java/security/Security.java (loadProviders): Return result.
7127 2004-05-03 Tom Tromey <tromey@redhat.com>
7129 * java/net/URLStreamHandler.java (toExternalForm): Removed
7132 * java/math/BigDecimal.java (divide): Removed unused variable.
7133 * java/lang/Throwable.java: Cleaned up imports.
7134 * java/lang/ClassLoader.java: Cleaned up imports.
7135 * java/io/FilePermission.java (implies): Removed unused
7137 * java/awt/TextComponent.java: Removed unused import.
7138 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
7139 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
7140 * gnu/java/text/WordBreakIterator.java: Removed unused import.
7141 * gnu/java/text/SentenceBreakIterator.java: Removed unused
7143 * gnu/java/text/LineBreakIterator.java: Removed unused import.
7144 * gnu/java/text/CharacterBreakIterator.java: Removed
7146 * gnu/java/security/provider/DSAKeyPairGenerator.java:
7148 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
7149 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
7151 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
7152 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
7153 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
7154 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
7155 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
7156 (lookupProviders): Removed unused variable.
7157 (loadNextServiceProvider): Likewise.
7158 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
7160 2004-05-03 Michael Koch <konqueror@gmx.de>
7162 Fixes PR libgcj/14695:
7163 * java/net/NetworkInterface.java
7164 (getByName): Return null when no interface was found.
7166 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
7167 Tom Tromey <tromey@redhat.com>
7169 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
7170 additional option "-Wmissing-prototypes" for compiling C sources.
7171 Print actual filename for pass/fail rather than $name.c.
7172 * testsuite/libjava.jni/PR15133.java: New testcase file.
7173 * testsuite/libjava.jni/PR15133.c: Likewise.
7174 * testsuite/libjava.jni/PR15133.out: Likewise.
7176 2004-04-30 Roger Sayle <roger@eyesopen.com>
7178 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
7181 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
7183 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
7184 limit the maximum heap size to avoid unnecessary thrashing.
7186 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
7188 * java/text/CollationElementIterator.java (reset): Reset
7189 lookahead variables.
7191 2004-04-23 Mark Wielaard <mark@klomp.org>
7193 * jni/classpath/jcl.c: Changed C++ comments into C comments.
7195 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7197 * java/sql/DriverManager.java:
7200 2004-04-23 Michael Koch <konqueror@gmx.de>
7203 (hashcode): Don't initialize with default value explicitely.
7204 (getContent): Removed redundant "final" keyword.
7205 (openStream): Likewise.
7206 (getURLStreamHandler): Fixed coding style.
7207 * java/net/URLConnection.java
7208 (defaultAllowUserInteraction): Don't initialize with default value
7210 (connected): Likewise.
7211 (doOutput): Likewise.
7212 (ifModifiedSince): Likewise.
7213 (dateformats_initialized): Likewise.
7214 (setURLStreamHander): Use StreamTokenizer where it belongs to.
7216 2004-04-23 Michael Koch <konqueror@gmx.de>
7218 * gnu/java/nio/channels/FileChannelImpl.java
7219 (SET, CUR): Unused, removed.
7220 (read): Implement here directly.
7221 (implRead): Removed.
7222 (write): Implement here directly.
7223 (implWrite): Removed.
7225 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7227 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
7228 javax/rmi/CORBA/Stub.java,
7229 javax/rmi/CORBA/Util.java,
7230 javax/rmi/CORBA/ValueHandler.java,
7231 javax/rmi/CORBA/ValueHandler.java,
7232 javax/rmi/PortableRemoteObject.java:
7235 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7237 * java/util/jar/JarFile.java,
7238 java/util/jar/JarInputStream.java,
7239 java/util/jar/JarOutputStream.java,
7240 java/util/jar/Manifest.java:
7243 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7245 * java/util/ArrayList.java,
7246 java/util/Calendar.java,
7247 java/util/Currency.java,
7248 java/util/HashMap.java,
7249 java/util/HashSet.java,
7250 java/util/Hashtable.java,
7251 java/util/LinkedList.java,
7252 java/util/Properties.java,
7253 java/util/PropertyPermission.java,
7254 java/util/TimeZone.java,
7255 java/util/TreeMap.java,
7256 java/util/TreeSet.java,
7257 java/util/Vector.java,
7258 java/util/WeakHashMap.java:
7261 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7263 * java/util/logging/FileHandler.java,
7264 java/util/logging/Formatter.java,
7265 java/util/logging/Handler.java,
7266 java/util/logging/Logger.java,
7267 java/util/logging/SimpleFormatter.java,
7268 java/util/logging/XMLFormatter.java:
7271 2004-04-22 Mark Wielaard <mark@klomp.org>
7273 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
7274 -Wno-long-long flags variable.
7275 (gtk_c_files): Use PEDANTIC_CFLAGS.
7276 * Makefile.in: Regenerated.
7278 2004-04-22 Mark Wielaard <mark@klomp.org>
7280 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7281 Changed C++ comments into C comments.
7282 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
7285 2004-04-22 Michael Koch <konqueror@gmx.de>
7287 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
7288 Merged copyright year with GNU classpath.
7290 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7292 * javax/security/auth/x500/X500Principal.java:
7295 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7297 * javax/swing/JSlider.java:
7298 Fixed HTML tags in comments.
7300 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7302 * javax/accessibility/AccessibleText.java:
7305 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
7307 * java/net/URLStreamHandler.java
7308 (parseURL): Convert the file path to using '/' instead of native
7311 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
7314 (userInfo): New field.
7315 (URL): Set authority to the right value.
7316 (setURL): Fixed authority and file initialization.
7317 * java/net/URLStreamHandler.java
7318 (parseURL): Take care of the query tag. Build authority.
7319 (toExternalForm): Fixed URL building using authority.
7321 2004-04-22 Michael Koch <konqueror@gmx.de>
7323 * java/net/Socket.java
7324 (impl): Made package-private.
7325 * java/net/ServerSocket.java
7326 (implAccept): Access Socket.impl field directly.
7328 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7330 * java/util/prefs/Preferences.java,
7331 java/util/prefs/InvalidPreferencesFormatException.java,
7332 java/util/prefs/BackingStoreException.java,
7333 java/util/prefs/AbstractPreferences.java:
7336 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7338 * java/util/regex/Matcher.java,
7339 java/util/regex/Pattern.java:
7342 2004-04-22 Michael Koch <konqueror@gmx.de>
7344 * java/nio/charset/IllegalCharsetNameException.java
7345 (charsetName): Made private.
7346 (IllegalCharsetNameException): Added @param tag to javadoc.
7347 (getCharsetName): Added @return tag to javadoc.
7348 * java/nio/charset/MalformedInputException.java
7349 (MalformedInputException): Added @param tag to javadoc.
7350 (getInputLength): Revised method description, added @return tag.
7351 (getMessage): Added @return tag.
7353 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
7355 * java/awt/Font.java (deriveFont): Implement missing variants.
7356 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
7359 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
7361 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
7362 Set method->index values for interface methods to their itable index.
7363 (initializeClass): Call _Jv_LayoutInterfaceMethods.
7365 2004-04-21 Michael Koch <konqueror@gmx.de>
7367 * java/nio/DirectByteBufferImpl.java
7368 (shiftDown): Made static, give address as argument and
7369 provide a convenience method that overwrites shiftDown in
7370 ByteBufferImpl and calls the native shiftDown.
7371 * java/nio/MappedByteBufferImpl.java
7372 (): Use optimized method in DirectByteBufferImpl.
7373 * java/nio/natDirectByteBufferImpl.cc
7374 (shiftDown): Changed method signature. Removed usage of array_offset.
7376 2004-04-21 Michael Koch <konqueror@gmx.de>
7378 * gnu/java/net/natPlainSocketImplPosix.cc
7379 (SocketInputStream::read): Make sure returned data is a byte value.
7381 2004-04-21 Michael Koch <konqueror@gmx.de>
7383 * gnu/classpath/ServiceFactory.java,
7384 gnu/classpath/ServiceProviderLoadingAction.java,
7385 javax/imageio/ImageReader.java,
7386 javax/imageio/ImageTranscoder.java,
7387 javax/imageio/ImageWriter.java,
7388 javax/imageio/package.html,
7389 javax/imageio/spi/IIOServiceProvider.java,
7390 javax/imageio/spi/ImageInputStreamSpi.java,
7391 javax/imageio/spi/ImageOutputStreamSpi.java,
7392 javax/imageio/spi/ImageReaderWriterSpi.java,
7393 javax/imageio/spi/ImageTranscoderSpi.java,
7394 javax/imageio/spi/RegisterableService.java,
7395 javax/imageio/spi/ServiceRegistry.java,
7396 javax/imageio/spi/package.html,
7397 javax/imageio/stream/IIOByteBuffer.java,
7398 javax/imageio/stream/ImageInputStream.java,
7399 javax/imageio/stream/ImageOutputStream.java,
7400 javax/imageio/stream/package.html:
7403 (ordinary_java_source_files): Added
7404 gnu/classpath/ServiceFactory.java and
7405 gnu/classpath/ServiceProviderLoadingAction.java.
7406 (javax_source_files): Added
7407 javax/imageio/ImageReader.java,
7408 javax/imageio/ImageTranscoder.java,
7409 javax/imageio/ImageWriter.java,
7410 javax/imageio/spi/IIOServiceProvider.java,
7411 javax/imageio/spi/ImageInputStreamSpi.java,
7412 javax/imageio/spi/ImageOutputStreamSpi.java,
7413 javax/imageio/spi/ImageReaderWriterSpi.java,
7414 javax/imageio/spi/ImageTranscoderSpi.java,
7415 javax/imageio/spi/RegisterableService.java,
7416 javax/imageio/spi/ServiceRegistry.java,
7417 javax/imageio/stream/IIOByteBuffer.java,
7418 javax/imageio/stream/ImageInputStream.java and
7419 javax/imageio/stream/ImageOutputStream.java.
7420 * Makefile.in: Regenerated.
7422 2004-04-21 Michael Koch <konqueror@gmx.de>
7424 * java/util/Properties.java
7425 (load): Fix wrongly merged fix.
7427 2004-04-21 Mark Wielaard <mark@klomp.org>
7429 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
7430 malloc and free buf.
7432 2004-04-21 Dalibor Topic <robilad@kaffe.org>
7434 * javax/naming/AuthenticationException.java,
7435 javax/naming/AuthenticationNotSupportedException.java,
7436 javax/naming/CannotProceedException.java,
7437 javax/naming/CommunicationException.java,
7438 javax/naming/CompoundName.java,
7439 javax/naming/ConfigurationException.java,
7440 javax/naming/ContextNotEmptyException.java,
7441 javax/naming/InitialContext.java,
7442 javax/naming/InsufficientResourcesException.java,
7443 javax/naming/InterruptedNamingException.java,
7444 javax/naming/LimitExceededException.java,
7445 javax/naming/LinkException.java,
7446 javax/naming/LinkLoopException.java,
7447 javax/naming/LinkRef.java,
7448 javax/naming/MalformedLinkException.java,
7449 javax/naming/Name.java,
7450 javax/naming/NameAlreadyBoundException.java,
7451 javax/naming/NameNotFoundException.java,
7452 javax/naming/NamingSecurityException.java,
7453 javax/naming/NoInitialContextException.java,
7454 javax/naming/NoPermissionException.java,
7455 javax/naming/NotContextException.java,
7456 javax/naming/PartialResultException.java,
7457 javax/naming/ReferralException.java,
7458 javax/naming/ServiceUnavailableException.java,
7459 javax/naming/SizeLimitExceededException.java,
7460 javax/naming/TimeLimitExceededException.java,
7461 javax/naming/directory/Attribute.java,
7462 javax/naming/directory/Attributes.java,
7463 javax/naming/directory/SearchResult.java,
7464 javax/naming/event/NamingExceptionEvent.java,
7465 javax/naming/spi/ResolveResult.java:
7468 2004-04-21 Mark Wielaard <mark@klomp.org>
7470 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
7471 Changed C++ comments into C comments. Removed commented out code.
7472 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7474 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
7476 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
7478 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
7480 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
7482 * native/jni/gtk-peer/gthread-jni.c:
7485 2004-04-21 Mark Wielaard <mark@klomp.org>
7487 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
7488 static fields defined in interface.
7489 * javax/awt/JDialog.java: Likewise.
7490 (JDialog): Make constructors public.
7491 (getDefaultCloseOperation): Make public.
7492 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
7493 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
7494 * javax/swing/JViewport.java (JViewport): Make constructor public.
7496 2004-04-21 Michael Koch <konqueror@gmx.de>
7498 * java/util/Map.java
7499 (Entry): Removed redundant "static" modifier.
7500 * java/text/AttributedCharacterIterator.java:
7501 Updated copyright year.
7503 2004-04-20 Michael Koch <konqueror@gmx.de>
7505 * javax/naming/directory/SearchControls.java:
7506 Don't explicitely extend java.lang.Object.
7507 * javax/naming/spi/DirStateFactory.java:
7508 Merged copyright year with GNU classpath.
7510 2004-04-20 Michael Koch <konqueror@gmx.de>
7512 * java/nio/channels/Channels.java:
7513 Merged coding style with GNU classpath.
7515 2004-04-20 Michael Koch <konqueror@gmx.de>
7517 * java/net/ServerSocket.java
7518 Merged coding style from GNU classpath.
7520 2004-04-20 Michael Koch <konqueror@gmx.de>
7522 * java/io/BufferedWriter.java:
7523 Reordered variables to be at top of the class.
7524 (localFlush): Removed redundant final keyword.
7526 2004-04-20 Ingo Proetel <proetel@aicas.com>
7528 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
7530 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7532 * java/text/DecimalFormat.java (scanFix): Removed suffix check
7533 for percent and permill check.
7535 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7537 * java/text/FieldPosition.java
7538 (FieldPosition) Constructor now behaves as it should according
7539 to the java documentation.
7541 2004-04-20 Mark Wielaard <mark@klomp.org>
7543 * java/util/Properties.java: Use the word umlaut, not ä in api
7546 2004-04-20 Michael Koch <konqueror@gmx.de>
7548 * java/nio/Buffer.java,
7549 java/nio/channels/AlreadyConnectedException.java,
7550 java/nio/channels/AsynchronousCloseException.java,
7551 java/nio/channels/ByteChannel.java,
7552 java/nio/channels/CancelledKeyException.java,
7553 java/nio/channels/Channel.java,
7554 java/nio/channels/Channels.java,
7555 java/nio/channels/ClosedByInterruptException.java,
7556 java/nio/channels/ClosedChannelException.java,
7557 java/nio/channels/ClosedSelectorException.java,
7558 java/nio/channels/ConnectionPendingException.java,
7559 java/nio/channels/DatagramChannel.java,
7560 java/nio/channels/FileChannel.java,
7561 java/nio/channels/FileLock.java,
7562 java/nio/channels/FileLockInterruptionException.java,
7563 java/nio/channels/GatheringByteChannel.java,
7564 java/nio/channels/IllegalBlockingModeException.java,
7565 java/nio/channels/IllegalSelectorException.java,
7566 java/nio/channels/InterruptibleChannel.java,
7567 java/nio/channels/NoConnectionPendingException.java,
7568 java/nio/channels/NonReadableChannelException.java,
7569 java/nio/channels/NonWritableChannelException.java,
7570 java/nio/channels/NotYetBoundException.java,
7571 java/nio/channels/NotYetConnectedException.java,
7572 java/nio/channels/OverlappingFileLockException.java,
7573 java/nio/channels/Pipe.java,
7574 java/nio/channels/ReadableByteChannel.java,
7575 java/nio/channels/ScatteringByteChannel.java,
7576 java/nio/channels/SelectableChannel.java,
7577 java/nio/channels/SelectionKey.java,
7578 java/nio/channels/Selector.java,
7579 java/nio/channels/ServerSocketChannel.java,
7580 java/nio/channels/SocketChannel.java,
7581 java/nio/channels/UnresolvedAddressException.java,
7582 java/nio/channels/UnsupportedAddressTypeException.java,
7583 java/nio/channels/WritableByteChannel.java,
7584 java/nio/channels/spi/AbstractInterruptibleChannel.java,
7585 java/nio/channels/spi/AbstractSelectableChannel.java,
7586 java/nio/channels/spi/AbstractSelectionKey.java,
7587 java/nio/channels/spi/AbstractSelector.java,
7588 java/nio/channels/spi/SelectorProvider.java,
7589 java/nio/charset/spi/CharsetProvider.java:
7590 Fixed javadocs and jalopied all over java.nio.
7592 2004-04-20 Michael Koch <konqueror@gmx.de>
7594 * java/nio/ByteBufferImpl.java,
7595 java/nio/CharBufferImpl.java,
7596 java/nio/DirectByteBufferImpl.java,
7597 java/nio/DoubleBufferImpl.java,
7598 java/nio/DoubleViewBufferImpl.java,
7599 java/nio/FloatBufferImpl.java,
7600 java/nio/FloatViewBufferImpl.java,
7601 java/nio/IntBufferImpl.java,
7602 java/nio/IntViewBufferImpl.java,
7603 java/nio/LongBufferImpl.java,
7604 java/nio/LongViewBufferImpl.java,
7605 java/nio/MappedByteBufferImpl.java,
7606 java/nio/ShortBufferImpl.java,
7607 java/nio/ShortViewBufferImpl.java:
7608 Made sure all classes are final and removed final keyword from all
7611 2004-04-20 Michael Koch <konqueror@gmx.de>
7613 * java/rmi/MarshalledObject.java,
7614 java/rmi/Naming.java,
7615 java/rmi/RemoteException.java,
7616 java/rmi/activation/ActivationException.java,
7617 java/rmi/server/ServerCloneException.java,
7618 java/security/AccessController.java,
7619 java/security/AlgorithmParameterGenerator.java,
7620 java/security/AlgorithmParameters.java,
7621 java/security/CodeSource.java,
7622 java/security/Identity.java,
7623 java/security/IdentityScope.java,
7624 java/security/KeyPairGenerator.java,
7625 java/security/KeyStore.java,
7626 java/security/Security.java,
7627 java/security/Signature.java,
7628 java/security/SignatureSpi.java,
7629 java/security/SignedObject.java,
7630 java/security/spec/DSAParameterSpec.java,
7631 java/security/spec/DSAPrivateKeySpec.java,
7632 java/security/spec/DSAPublicKeySpec.java,
7633 java/sql/Array.java,
7634 java/sql/DatabaseMetaData.java,
7635 java/sql/ResultSet.java,
7636 java/text/ChoiceFormat.java,
7637 java/text/CollationElementIterator.java,
7638 java/text/CollationKey.java,
7639 java/text/Collator.java,
7640 java/text/DateFormat.java,
7641 java/text/DateFormatSymbols.java,
7642 java/text/DecimalFormatSymbols.java,
7643 java/text/Format.java,
7644 java/text/ParsePosition.java,
7645 java/text/RuleBasedCollator.java,
7646 java/text/SimpleDateFormat.java,
7647 java/text/StringCharacterIterator.java,
7648 java/util/Collections.java,
7649 java/util/PropertyResourceBundle.java,
7650 java/util/ResourceBundle.java,
7651 java/util/StringTokenizer.java,
7652 java/util/jar/Attributes.java,
7653 java/util/logging/ConsoleHandler.java,
7654 java/util/logging/LogManager.java,
7655 java/util/logging/MemoryHandler.java,
7656 java/util/logging/SocketHandler.java,
7657 javax/naming/NamingException.java:
7658 Fixed javadoc, coding style and argument names all over.
7660 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7662 * java/io/FileDescriptor.java: (FileDescriptor) Added public
7663 constructor. (valid) Added null check.
7665 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7667 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
7668 * java/io/FileOutputStream.java
7669 (FileOutputStream) Reorganized constructors. Constructors now
7670 check whether the given path is directory.
7672 2004-04-20 Michael Koch <konqueror@gmx.de>
7674 * java/net/Authenticator.java,
7675 java/net/BindException.java,
7676 java/net/ConnectException.java,
7677 java/net/ContentHandler.java,
7678 java/net/ContentHandlerFactory.java,
7679 java/net/DatagramPacket.java,
7680 java/net/DatagramSocket.java,
7681 java/net/DatagramSocketImpl.java,
7682 java/net/DatagramSocketImplFactory.java,
7683 java/net/FileNameMap.java,
7684 java/net/HttpURLConnection.java,
7685 java/net/Inet4Address.java,
7686 java/net/Inet6Address.java,
7687 java/net/InetAddress.java,
7688 java/net/InetSocketAddress.java,
7689 java/net/JarURLConnection.java,
7690 java/net/MalformedURLException.java,
7691 java/net/MulticastSocket.java,
7692 java/net/NetPermission.java,
7693 java/net/NetworkInterface.java,
7694 java/net/NoRouteToHostException.java,
7695 java/net/PasswordAuthentication.java,
7696 java/net/PortUnreachableException.java,
7697 java/net/ProtocolException.java,
7698 java/net/ServerSocket.java,
7699 java/net/Socket.java,
7700 java/net/SocketAddress.java,
7701 java/net/SocketException.java,
7702 java/net/SocketImpl.java,
7703 java/net/SocketImplFactory.java,
7704 java/net/SocketOptions.java,
7705 java/net/SocketPermission.java,
7706 java/net/SocketTimeoutException.java,
7708 java/net/URISyntaxException.java,
7710 java/net/URLClassLoader.java,
7711 java/net/URLConnection.java,
7712 java/net/URLDecoder.java,
7713 java/net/URLEncoder.java,
7714 java/net/URLStreamHandler.java,
7715 java/net/URLStreamHandlerFactory.java,
7716 java/net/UnknownHostException.java,
7717 java/net/UnknownServiceException.java:
7718 Fixed javadocs, coding style and argument names all over.
7720 2004-04-20 Michael Koch <konqueror@gmx.de>
7722 * java/lang/Byte.java,
7723 java/lang/CharSequence.java,
7724 java/lang/ClassLoader.java,
7725 java/lang/Compiler.java,
7726 java/lang/Double.java,
7727 java/lang/Float.java,
7728 java/lang/Integer.java,
7729 java/lang/Long.java,
7730 java/lang/Math.java,
7731 java/lang/Number.java,
7732 java/lang/Package.java,
7733 java/lang/Runtime.java,
7734 java/lang/RuntimePermission.java,
7735 java/lang/SecurityManager.java,
7736 java/lang/Short.java,
7737 java/lang/StringBuffer.java,
7738 java/lang/System.java,
7739 java/lang/ThreadGroup.java,
7740 java/lang/Throwable.java,
7741 java/lang/reflect/InvocationHandler.java,
7742 java/lang/reflect/Proxy.java:
7743 Fixed javadocs, coding style and argument names all over.
7745 2004-04-20 Michael Koch <konqueror@gmx.de>
7747 * java/io/BufferedWriter.java,
7748 java/io/ByteArrayInputStream.java,
7749 java/io/CharArrayWriter.java,
7750 java/io/DataInput.java,
7751 java/io/DataInputStream.java,
7753 java/io/FilterInputStream.java,
7754 java/io/InputStream.java,
7755 java/io/InputStreamReader.java,
7756 java/io/ObjectInputStream.java,
7757 java/io/ObjectStreamClass.java,
7758 java/io/PipedInputStream.java,
7759 java/io/PipedReader.java,
7760 java/io/PushbackInputStream.java,
7761 java/io/PushbackReader.java,
7762 java/io/RandomAccessFile.java,
7763 java/io/SerializablePermission.java,
7764 java/io/StreamTokenizer.java,
7765 java/io/StringWriter.java,
7766 java/io/WriteAbortedException.java,
7767 java/io/Writer.java:
7768 Fixed javadocs all over, rename arguments to match javadocs,
7771 2004-04-20 Ingo Proetel <proetel@aicas.com>
7773 * java/awt/FontMetrics.java:
7774 (charsWidth): fixed accumulation of total_width
7775 (getWidth): simple default implementation
7776 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
7777 in Rectangle constructor.
7778 * java/awt/image/Raster.java (toString): Added method.
7779 * java/awt/image/SampleModel.java (<init>): Added error cause
7780 information to thrown exception.
7781 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
7783 (setDataElements): New method.
7784 (setPixels): New method.
7785 (toString): New method.
7787 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7789 * java/awt/image/ComponentColorModel.java
7790 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
7791 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
7792 Mauve tests on this method. Improved documentation.
7794 2004-04-20 Michael Koch <konqueror@gmx.de>
7796 * javax/swing/JLayeredPane.java,
7797 javax/swing/plaf/BorderUIResource.java,
7798 javax/swing/plaf/ComponentUI.java,
7799 javax/swing/undo/CompoundEdit.java,
7800 javax/swing/undo/StateEdit.java:
7801 Fixed HTML tags in javadocs all over.
7803 2004-04-20 Michael Koch <konqueror@gmx.de>
7805 * javax/print/attribute/EnumSyntax.java
7806 (getOffset): Made protected.
7807 * javax/print/attribute/HashAttributeSet.java
7808 (HashAttributeSet): Likewise.
7809 * javax/print/attribute/ResolutionSyntax.java
7810 (getFeedResolution): Fixed typo in exception name.
7811 (getCrossFeedResolution): Likewise.
7812 * javax/print/attribute/SetOfIntegerSyntax.java
7813 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
7814 * javax/print/attribute/TextSyntax.java
7815 (TextSyntax): Handle locale correctly.
7816 (hashCode): Calc better hashcode value.
7817 (equals): Fixed @return tag.
7818 (toString): New method.
7820 2004-04-20 Michael Koch <konqueror@gmx.de>
7822 * gnu/java/nio/FileLockImpl.java
7823 (static): Removed, not needed anymore.
7824 * gnu/java/nio/channels/FileChannelImpl.java
7825 (FileChannelImpl): Made final.
7826 (mode): Made private.
7827 (READ, WRITE, APPEND): Made public.
7828 (EXCL, SYNC, DSYNC): Likewise.
7829 (static): Load native JNI library, when needed.
7830 (length): Unused, removed.
7831 (available): Made public.
7832 (implPosition): Throws IOException.
7834 (implTruncate): Likewise.
7838 2004-04-20 Michael Koch <konqueror@gmx.de>
7840 * java/awt/AWTPermission.java,
7841 java/awt/Component.java,
7842 java/awt/ComponentOrientation.java,,
7843 java/awt/Dialog.java,
7844 java/awt/FontMetrics.java,
7845 java/awt/Graphics.java,
7846 java/awt/datatransfer/DataFlavor.java,
7847 java/beans/Introspector.java,
7848 java/beans/PropertyEditor.java,
7849 java/beans/PropertyEditorManager.java,
7850 java/beans/beancontext/BeanContextServiceProvider.java:
7851 Fixed HTML tags in javadocs all over.
7853 2004-04-20 Mark Wielaard <mark@klomp.org>
7855 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
7856 MissingResourceException is thrown.
7857 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
7858 null when a MissingResourceException is thrown. Should never happen.
7860 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7862 * java/awt/image/DataBufferShort.java,
7863 java/awt/image/DataBufferFloat.java,
7864 java/awt/image/DataBufferDouble.java,
7865 java/awt/image/PixelInterleavedSampleModel.java: New files.
7866 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
7867 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
7869 2004-04-20 Michael Koch <konqueror@gmx.de>
7871 * Makefile.am (java_source_files): Added
7872 java/awt/image/DataBufferDouble.java,
7873 java/awt/image/DataBufferFloat.java,
7874 java/awt/image/DataBufferShort.java and
7875 java/awt/image/PixelInterleavedSampleModel.java.
7876 * Makefile.in: Regenerated.
7878 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
7880 * gcj/cni.h (JvAllocObject): Remove these obsolete,
7881 undocumented CNI calls.
7882 * include/java-interp.h (_Jv_InterpClass): No longer
7883 extends java.lang.Class.
7884 * java/lang/Class.h (Class): Add new field `aux_info'.
7885 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
7886 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
7887 Use Class->aux_info instead.
7888 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
7889 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
7890 Use Class->aux_info instead.
7891 * java/io/natObjectInputStream.cc (allocateObject): Use
7893 * java/lang/natClass.cc (newInstance): Likewise.
7894 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
7895 * java/lang/natObject.cc (clone): Likewise.
7896 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
7897 * java/lang/natVMClassLoader.cc (defineClass): Don't use
7898 JvAllocObject. Allocate klass->aux_info here for interpreted
7901 2004-04-17 Mark Wielaard <mark@klomp.org>
7903 * javax/swing/JToggleButton.java (ToggleButtonModel):
7904 Make public static inner class.
7905 * javax/swing/JTabbedPane.java (setComponentAt):
7906 Call Page.setComponent().
7907 (SCROLL_TAB_LAYOUT): Make public, value is 1.
7908 (WRAP_TAB_LAYOUT): Make public, value is 0.
7909 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
7910 Make private static inner class.
7912 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
7914 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
7915 arguments to match new signature. Remove FIXME comments.
7917 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
7919 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
7921 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
7924 2004-04-02 Olga Rodimina <rodimina@redhat.com>
7926 * Makefile.am: Added new file.
7927 * Makefile.in: Regenerate.
7928 * javax/swing/ImageIcon.java:
7929 (ImageIcon(file)): set description of the icon
7931 * javax/swing/JCheckBoxMenuItem.java:
7932 Mostly Implemented. Work in progress.
7933 * javax/swing/JRadioButtonMenuItem.java:
7934 Reimplement constructors to use JToggleButtonModel.
7935 * javax/swing/plaf/basic/BasicIconFactory.java:
7936 (getCheckBoxMenuItemIcon): return check box
7938 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7939 paint menu item selected only when it is armed and
7942 2004-04-02 David Jee <djee@redhat.com>
7944 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
7945 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
7946 * java/awt/Component.java
7947 (add): Set the parent of the popup as this component.
7948 * java/awt/PopupMenu.java
7949 (addNotify): Create popup menu when peer is null.
7950 (show): Call addNotify() if peer is null.
7951 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
7952 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
7953 argument for gtk_menu_popup() as zero. This causes the popup menu to
7954 respond to any mouse button.
7956 2004-03-31 Olga Rodimina <rodimina@redhat.com>
7958 * Makefile.am: Added new file.
7959 * Makefile.in: Regenerate.
7960 * javax/swing/JRadioButtonMenuItem.java:
7962 * javax/swing/plaf/basic/BasicIconFactory.java:
7963 (getRadioButtonMenuItemIcon): Return
7965 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7966 (getPreferredSize): Add size of checkIcon if it
7968 (installDefaults): Don't initialize checkIcon.
7969 It's value will be set in subclasses.
7970 (uninstallDefaults): remove uninstallation of
7972 (paint): Moved code to paintMenuItem().
7973 (paintMenuItem): Implemented.
7974 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
7975 UI delegate for JRadioButtonMenuItem.
7977 2004-03-29 Olga Rodimina <rodimina@redhat.com>
7979 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7980 Corrected position of the accelerator.
7982 2004-03-29 Olga Rodimina <rodimina@redhat.com>
7984 * Makefile.am: Added new file.
7985 * Makefile.in: Regenerate.
7986 * javax/swing/JMenuItem.java: Partly
7987 implemented. Work in progress
7988 * javax/swing/plaf/basic/BasicLookAndFeel.java:
7989 Changed default value of acceleratorDelimiter.
7990 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7991 New class. Partly implemented.
7993 2004-03-26 Mark Wielaard <mark@klomp.org>
7995 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
7996 (item_activate): Declare label before use.
7997 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7998 (gtkSetFont): Removed unused variable label.
7999 (addExposeFilter): Declare variables before use.
8000 (removeExposeFilter): Likewise.
8001 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8002 (ok_clicked): Declare str_fileName before use.
8004 2004-03-26 David Jee <djee@redhat.com>
8006 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
8007 (addSeparator): Remove.
8008 * java/awt/Menu.java
8009 (separator): Remove static final MenuItem field.
8010 (separatorLabel): New static final String field.
8011 (addSeparator): Do not use peer method; use add(MenuItem) instead.
8012 Use separatorLabel to denote that it is a separator.
8013 (insertSeparator): Create a new MenuItem with separatorLabel, instead
8014 of reusing the static separator instance, because a MenuItem instance
8015 can't be added more than once without being cloned.
8016 * java/awt/peer/MenuPeer.java
8017 (addSeparator): Remove from interface.
8019 2004-03-26 David Jee <djee@redhat.com>
8021 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
8022 (connectSignals): New native method declaration.
8023 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
8024 * java/awt/MenuItem.java
8025 (getActionCommand): Return the label if the action command is not set.
8026 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
8027 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
8028 gtk_menu_shell_append().
8029 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
8030 (item_activate): Fix argument type.
8031 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
8033 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
8035 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
8036 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
8037 given. Add the menu widget's top-level GtkWindow to the global window
8038 group, so it can grab the pointer.
8039 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
8040 gtk_menu_shell_append().
8042 2004-03-23 Graydon Hoare <graydon@redhat.com>
8044 * java/text/AttributedString.java
8045 (addAttribute): Fix off-by-one.
8046 (getIterator): Likewise.
8047 * java/text/AttributedStringIterator.java
8048 (getRunLimit): Correct logic.
8049 (getRunStart): Likewise.
8050 (getAttribute): Fix inequality.
8051 (getAttributes): Likewise.
8052 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
8054 2004-03-23 Kim Ho <kho@redhat.com>
8056 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
8057 (calculateSizes): Return real width and height.
8059 2004-03-23 Kim Ho <kho@redhat.com>
8061 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
8062 (calculateTabRects): Set the selectedRun before
8063 trying to rotate tabs.
8065 2004-03-23 Kim Ho <kho@redhat.com>
8067 * Makefile.am: New file
8068 * Makefile.in: Regenerate
8069 * java/awt/Graphics.java: (drawRect):
8070 Draw to the correct point.
8071 * javax/swing/DefaultSingleSelectionModel.java
8072 (isSelected): Return true if the selected index
8074 * javax/swing/JLabel.java: Do not change mnemonic
8075 index if text is null.
8076 * javax/swing/JProgressBar.java: Use JComponent's
8078 * javax/swing/JScrollBar.java: Ditto.
8079 * javax/swing/JSlider.java: Ditto.
8080 * javax/swing/JTabbedPane.java: Reimplement.
8081 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8082 Add defaults for TabbedPane.
8083 * javax/swing/plaf/basic/BasicArrowButton.java:
8085 * javax/swing/plaf/basic/BasicProgressBarUI.java:
8086 (paintDeterminate): Don't paint String if it's
8088 (paintIndeterminate): ditto.
8089 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
8092 2004-03-19 Michael Koch <konqueror@gmx.de>
8094 * java/awt/image/AffineTransformOp.java
8095 (AffineTransformOp): Made public.
8096 * javax/swing/JComponent.java
8097 (listenerList): Made protected.
8098 (accessibleContext): Likewise.
8099 * javax/swing/JList.java
8100 (valueChanged): Dont use internal fields of ListSelectionEvent.
8101 * javax/swing/JViewport.java
8102 (getView): Dont use internal fields of Component.
8103 (addImpl): Likewise.
8104 * javax/swing/Timer.java
8105 (isRunning): Made public.
8108 * javax/swing/UIDefaults.java
8109 (getInt): Made public.
8110 * javax/swing/plaf/basic/BasicListUI.java
8111 (mousePressed): Dont use internal fields of MouseEvent.
8112 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
8113 * javax/swing/plaf/basic/BasicScrollBarUI.java
8114 (arrowIcon): Made static.
8115 * javax/swing/plaf/basic/BasicViewportUI.java
8116 (stateChanged): Dont use internal field on ChangeEvent.
8117 * javax/swing/text/JTextComponent.java
8118 (getUI): Call UIManager.getUI().
8119 (updateUI): Use getUI().
8121 2004-03-19 Graydon Hoare <graydon@redhat.com>
8123 * javax/swing/JComponent.java: Turn off double buffer by default.
8124 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
8125 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8126 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
8127 Use cairo to copy areas.
8128 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
8129 Initialize and set clip region.
8131 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
8133 * java/applet/Applet.java (preferredSize): Override deprecated
8134 variant of getPreferredSize.
8135 (minimumSize): Override deprecated variant of getMinimumSize.
8137 2004-03-15 Olga Rodimina <rodimina@redhat.com>
8139 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8140 (drawImage(img,xform,bgcolor,obs)): New Method.
8141 Helper function that every drawImage method will
8143 (drawRaster): Added new parameter, bgcolor. All
8144 transparent pixels are changed to bgcolor before
8146 (drawRenderedImage): Fixed to use changed drawRaster().
8147 (drawImage(image,xform,obs): Fixed to use new helper function
8148 (drawImage(image,op,x,y)): Ditto.
8149 (drawImage (img,x,y,observer)): Ditto.
8150 ((PainterThread) bgcolor): New Field.
8151 ((PainterThread) (setPixels)): Changed all transparent pixels
8153 (drawImage(img,x,y,width,height,bgcolor,observer)):
8154 Fixed FIXME - all the transparent pixels are
8155 changed to the specified bgcolor.
8156 (drawImage(img, x, y, width, height, observer): Changed to
8158 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
8159 Fixed FIXME- changed all transparent pixels to bgcolor.
8160 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
8161 Changed to use function above.
8163 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
8165 * java/applet/Applet.java (dimensions): New field.
8166 (getDimensions): New method.
8167 (getPreferredSize): Call getDimensions.
8168 (getMinimumSize): Likewise.
8170 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8172 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
8173 * jni/classpath/jnilink.c: Likewise.
8175 * java/applet/Applet.java (getPreferredSize): New method.
8176 (getMinimumSize): New method.
8178 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
8180 * prims.cc (_Jv_AllocObject): Remove `size' argument.
8181 (_Jv_AllocObjectNoFinalizer): Likewise.
8182 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
8183 (_Jv_AllocPtrFreeObject): Likewise.
8184 (_Jv_AllocString): Moved from natString.cc. Call collector interface
8185 directly even in the JVMPI case.
8186 * gcj/cni.h (JvAllocObject): Remove `size' argument from
8187 _Jv_AllocObject calls.
8188 * gcj/javaprims.h: Update prototypes.
8189 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
8190 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
8191 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
8193 2004-04-14 Andrew Haley <aph@redhat.com>
8194 Bryce McKinlay <mckinlay@redhat.com>
8196 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
8197 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
8198 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
8200 * testsuite/libjava.lang/InvokeInterface.java: New file.
8201 * testsuite/libjava.lang/InvokeInterface.out: New file.
8203 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
8205 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
8207 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
8208 StackTraceElement directly.
8209 (newElement): New native helper method to create StackTraceElement
8210 bypassing Java access control.
8211 (createStackTraceElement): Use newElement() instead of directly
8212 calling StackTraceElement's constructor.
8213 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
8215 2004-04-01 Michael Koch <konqueror@gmx.de>
8217 * java/lang/SecurityManager.java
8218 (checkAwtEventQueueAccess): Implemented.
8220 2004-04-01 Gary Benson <gbenson@redhat.com>
8222 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
8223 (_Jv_SearchMethodInClass): Likewise.
8225 2004-03-26 Peter Moon <peterm@miraculum.com>
8227 * java/text/NumberFormat.java: Fix spelling of setCurrency
8230 2004-03-21 Anthony Green <green@redhat.com>
8232 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
8233 recursion when searching for the system ClassLoader.
8235 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
8237 * java/net/ServerSocket.java
8238 (accept): Close the socket when error occured.
8240 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
8242 * java/net/URI.java (parseURI): Added unquoting.
8243 (unquote): New method.
8244 (quoteAuthority): Implemented.
8245 (quote(String,String)): New method.
8246 (quotePath): Implemented.
8247 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
8248 (getSchemeSpecificPart): Removed FIXME comment.
8249 (getRawAuthority): Return new rawAuthority field.
8250 (getAuthority): Removed FIXME comment.
8251 (getRawUserInfo): Return new rawUserInfo field.
8252 (getUserInfo): Removed FIXME comment.
8253 (getRawPath): Return new rawPath field.
8254 (getPath): Removed FIXME comment.
8255 (getRawQuery): Return new rawQuery field.
8256 (getQuery): Removed FIXME comment.
8257 (getRawFragment): Return new rawFragment field.
8258 (getFragment): Removed FIXME comment.
8260 2004-03-20 Michael Koch <konqueror@gmx.de>
8262 * java/net/URLConnection.java: Merged copyright year with classpath.
8264 2004-03-20 Norbert Frese <postfach@nfrese.net>
8266 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
8267 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
8268 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
8270 (getObjectInputStream): Return object reference, throw IOException if null.
8271 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
8272 (getObjectOutputStream): Return object reference, throw IOException if null.
8273 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
8274 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
8275 (UnicastConnectionManager): Throw RemoteException if port is not available.
8276 (getInstance): Throw RemoteException.
8277 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
8278 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
8279 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8280 Collect Exceptions which are returned by a rmi-call and fix void returns.
8281 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
8282 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8283 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
8284 (dispatch): Answer ping messages which are sent by other java implementions.
8285 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
8286 for every rmi-message and fix void return problems.
8287 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
8288 (UnicastServerRef): Throw RemoteException.
8289 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
8290 In some situations it is necessary to export a subclass of the class which has the _Stub.
8291 For instance when the class with has the _Stub is abstract.
8292 (findStubSkelClass): New method which looks for the class which has the _Stub.
8293 (getClientHost): Implementated.
8294 * gcc/libjava/java/rmi/server/RemoteServer.java
8295 (getClientHost): Implementated.
8296 * gcc/libjava/Makefile.am (rmi_java_source_files):
8297 Added gnu/java/rmi/server/RMIIncomingThread.java.
8298 * Makefile.in: Regenerated.
8300 2004-03-20 Michael Koch <konqueror@gmx.de>
8302 * java/net/InetAddress.java
8303 (getLocalHostname): Added javadoc.
8305 2004-03-19 Per Bothner <per@bothner.com>
8307 * configure.in: FILE variable overrides FLATFORM when linking
8308 natFileChannelXXX.cc.
8310 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
8311 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
8313 2004-03-19 Per Bothner <per@bothner.com>
8315 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
8316 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
8317 * Makefile.am: Update accordingly.
8318 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
8319 as aliases for UnicodeLittle and UnicodeBig.
8321 2004-03-20 Mark Wielaard <mark@klomp.org>
8323 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8324 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
8325 Don't access ws when it is null.
8326 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
8329 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
8331 * java/lang/ThreadGroup.java (list): Changed print to println.
8333 2004-03-19 Mark Wielaard <mark@klomp.org>
8335 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
8338 2004-02-10 Randolph Chung <tausq@debian.org>
8340 * configure.in: Build java for hppa target.
8341 * configure: Regenerate.
8342 * libjava/configure.host (hppa-*): Add target.
8343 * libjava/sysdeps/pa/lock.h: New file.
8345 2004-03-19 Mark Wielaard <mark@klomp.org>
8347 Reported by Stephen Crawley
8348 * java/io/FilePermission.java (implies): Use String.length() -1 to
8349 access last char of String.
8351 2004-03-19 Michael Koch <konqueror@gmx.de>
8353 * java/awt/image/AffineTransformOp.java
8354 (AffineTransformOp): Made public.
8355 * javax/swing/JComponent.java
8356 (listenerList): Made protected.
8357 (accessibleContext): Likewise.
8358 * javax/swing/JList.java
8359 (valueChanged): Dont use internal fields of ListSelectionEvent.
8360 * javax/swing/JViewport.java
8361 (getView): Dont use internal fields of Component.
8362 (addImpl): Likewise.
8363 * javax/swing/Timer.java
8364 (isRunning): Made public.
8367 * javax/swing/UIDefaults.java
8368 (getInt): Made public.
8369 * javax/swing/plaf/basic/BasicListUI.java
8370 (mousePressed): Dont use internal fields of MouseEvent.
8371 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
8372 * javax/swing/plaf/basic/BasicScrollBarUI.java
8373 (arrowIcon): Made static.
8374 * javax/swing/plaf/basic/BasicViewportUI.java
8375 (stateChanged): Dont use internal field on ChangeEvent.
8376 * javax/swing/text/JTextComponent.java
8377 (getUI): Call UIManager.getUI().
8378 (updateUI): Use getUI().
8380 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8382 * verify.cc: Undef PC.
8384 2004-03-18 Michael Koch <konqueror@gmx.de>
8386 * java/nio/channels/spi/AbstractSelectableChannel.java
8387 (keys): Initialize at declaration.
8388 (locate): keys cant be null.
8390 (addSelectionKey): New method.
8391 (removeSelectionKey): New method.
8392 * java/nio/channels/spi/AbstractSelectionKey.java
8393 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
8394 * java/nio/channels/spi/AbstractSelector.java
8395 (provider): Javadoc added.
8396 (cancelledKeys): Javadoc added.
8397 (cancelKey): Javadoc added, add key to cancelledKeys.
8398 (deregister): Implemented.
8400 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8402 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
8403 MAP_FAILED to void *.
8405 2004-03-12 Graydon Hoare <graydon@redhat.com>
8407 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
8408 * javax/swing/JComponent.java (paint): Use persistent double buffer.
8409 * javax/swing/JList.java (ListListener): Revalidate on changes.
8410 * javax/swing/JScrollPane.java: Reimplement.
8411 * javax/swing/JViewport.java: Reimplement.
8412 * javax/swing/ScrollPaneLayout.java: Reimplement.
8413 * javax/swing/ViewportLayout.java: Tidy up.
8414 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
8415 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
8416 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
8417 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
8420 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
8422 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8423 (window_wm_protocols_filter): New function.
8424 (window_focus_in_cb): Remove function.
8425 (window_focus_out_cb): Likewise.
8426 (window_focus_or_active_state_change_cb): New function.
8427 (create): Add filter that removes WM_TAKE_FOCUS client messages.
8428 (connectSignals): Don't attach handlers to focus-in-event or
8429 focus-out-event signals. Handle notify signal.
8431 2004-03-11 David Jee <djee@redhat.com>
8433 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8434 (gtkSetLabel): New native method declaration.
8435 (setLabel): Use gtkSetLabel.
8436 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8437 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
8439 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
8441 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
8442 black when color argument is null.
8444 2004-03-10 Kim Ho <kho@redhat.com>
8446 * java/awt/Container.java: Remove check
8449 2004-03-10 Kim Ho <kho@redhat.com>
8451 * java/awt/Container.java: (visitChild):
8452 Remove candidate clip. Use the component
8454 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8455 (handleEvent): Use the PaintEvent's clip.
8457 2004-03-10 Kim Ho <kho@redhat.com>
8459 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8460 (handleEvent): Don't set the clip for the
8463 2004-03-09 Graydon Hoare <graydon@redhat.com>
8465 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
8466 Fix double <-> fixed macros, reset font transform.
8467 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
8470 2004-03-09Â Kim Ho <kho@redhat.com>
8472 * java/awt/Container.java: (visitChild): Move
8473 the x and y coordinate of the component rectangle
8474 to correct position.
8475 (handleEvent): Forward drag events to the pressed
8477 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8479 (ArrowButtonListener::mousePressed): Stop the
8481 (mouseDragged): Implement.
8482 (TrackListener::mousePressed): Only react if
8483 the press doesn't occur on the thumb, otherwise
8484 just set the offset.
8485 (TrackListener::mouseReleased): Unset the isAdjusting
8487 (createIncreaseIcon): Switch icon.
8488 (createDecreaseIcon): Switch icon.
8489 (calculatePreferredSize): Use width.
8490 (getThumbBounds): Use the top as the lower value.
8491 (layoutVScrollBar): Switch the button locations.
8492 (paintIncreaseHighlight): Paint correct side of thumb.
8493 (paintDecreaseHighlight): ditto.
8494 (valueForYPosition): Use top as the lower value.
8495 * javax/swing/plaf/basic/BasicSliderUI.java:
8497 (mouseDragged): Implement.
8498 (mousePressed): Only react when the thumb isn't
8499 pressed, otherwise just set offset.
8500 (mouseReleased): Handle a release of the thumb.
8501 (scrollDueToClickInTrack): Stop the timer first.
8502 * javax/swing/JProgressBar.java:
8503 (setString): Fix change condition.
8504 * javax/swing/JSeparator.java:
8507 2004-03-08 David Jee <djee@redhat.com>
8509 * java/awt/image/AffineTransformOp.java:
8510 (filter): Use Graphics2D interface instead of directly using the
8513 2004-03-05 David Jee <djee@redhat.com>
8515 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
8516 (handleEvent): Action events are generated upon MOUSE_RELEASED.
8517 * java/awt/Container.java
8518 (acquireComponentForMouseEvent): Fixed.
8519 (handleEvent): Fixed.
8520 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8521 (state_to_awt_mods_with_button_states): New method.
8522 (pre_event_handler): Fixed mouse event generation.
8524 2004-03-05 Olga Rodimina <rodimina@redhat.com>
8526 gnu/java/awt/peer/gtk/GdkGraphics2D.java
8527 (GdkGraphics2D (BufferedImage)): Initialize
8528 pixmap associated with specified BufferedImage.
8529 (setPaint): Changed implementation of Texture
8530 Paint to use AffineTransformOp.
8531 * java/awt/image/AffineTransformOp.java
8532 (createCompatibleDestRaster): Throw RasterFormatException
8533 if resulting width or height of raster is 0.
8535 2004-03-04 Olga Rodimina <rodimina@redhat.com>
8537 * java/awt/image/AffineTransformOp.java:
8538 Removed unnecessary field interpolationType.
8539 Formatted some of the lines to be consistent with
8541 (AffineTransformOp): Create new RenderingHints
8542 containing specified interpolation type.
8543 (createCompatibleDestImage): Implemented.
8544 (createCompatibleDestRaster): Implemented.
8545 (filter): Implemented.
8546 (getBounds2D(BufferedImage)): Implemented.
8547 (getBounds2D(Raster)): Implemented.
8548 (getInterpolationType): Get interpolation value from
8551 2004-03-04 David Jee <djee@redhat.com>
8553 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8554 (setFont): Check if child peers are null.
8556 2004-03-04 Graydon Hoare <graydon@redhat.com>
8558 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
8560 (libjava_arguments): Add new libraries to argument list.
8562 2004-03-02 Olga Rodimina <rodimina@redhat.com>
8564 * Makefile.am: Added java/awt/image/AffineTransformOp.java
8565 * Makefile.in: Re-generated.
8566 * java/awt/image/AffineTransformOp.java: New Class.
8568 2004-03-01 Olga Rodimina <rodimina@redhat.com>
8570 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8571 (setPaint): Interpret correctly TexturePaint's
8573 (drawImage): Fixed scale factors of the affine
8576 2004-02-27 David Jee <djee@redhat.com>
8578 * gnu/java/awt/peer/gtk/GdkGraphics.java
8579 (GdkGraphics(Component)): Inherit font from component.
8580 (drawString): Use font style.
8581 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8582 (gtkSetFont): New native method declaration.
8583 (setFont): New method.
8584 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8585 (gtkSetFont): New native method declaration.
8586 (setFont): Call new native method gtkSetFont.
8587 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8588 (setFont): For all child components who do not their fonts set,
8589 set their peers' fonts with this container's font.
8590 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
8591 Move all native method declarations to the top for readability.
8592 (gtkSetFont): New native method declaration.
8593 (setFont): New method.
8594 * java/awt/Component.java
8595 (setFont): Invalidate after setting the font.
8596 * java/awt/Container.java
8597 (invalidateTree): New method.
8598 (setFont): Invalidate the container tree after setting the font.
8599 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
8600 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
8601 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8602 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
8603 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8604 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
8605 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
8606 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
8608 2004-02-27 Olga Rodimina <rodimina@redhat.com>
8610 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8611 (updateBufferedImage): New helper function.
8612 Updates BufferedImage in memory if it was changed.
8613 (draw): changed to update BufferedImage in memory after
8614 this drawing operation
8616 (draw3DRect): Ditto.
8617 (fill3DRect): Ditto.
8619 (drawRaster): Ditto.
8620 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
8621 no affine transformation.
8622 (drawGlyphVector): Ditto.
8624 2004-02-26 Olga Rodimina <rodimina@redhat.com>
8626 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8627 (isBufferedImageGraphics): New Helper function.
8628 Returns true if this graphics2d can be used to draw
8629 into buffered image and false otherwise.
8630 (updateImagePixels): New Helper function.
8631 Updates pixels in the BufferedImage.
8632 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8633 (getImagePixels): New function. Returns pixels
8634 of the buffered image associated with
8637 2004-02-26 David Jee <djee@redhat.com>
8639 * java/awt/BorderLayout.java
8640 (layoutContainer): Fix width and height calculations to ensure
8641 that they're non-negative.
8642 * java/awt/Component.java
8643 (setBackground): If c is null, inherit from closest ancestor whose
8644 background color is set.
8646 2004-02-26 Kim Ho <kho@redhat.com>
8648 * Makefile.am: Add new files.
8649 * Makefile.in: Re-generate.
8650 * javax/swing/JProgressBar.java:
8651 (JProgressBar(int, int int)): Throw
8652 IllegalArgumentException if orientation is
8654 (JProgressBar(BoundedRangeModel)): Create
8655 ChangeListener and register it. UpdateUI.
8656 (getChangeListeners): Implement.
8657 (setModel): Reset ChangeListener.
8658 * javax/swing/JScrollBar.java: Implement.
8659 * javax/swing/JSeparator.java: Implement.
8660 * javax/swing/JSlider.java:
8661 (JSlider(int, int, int, int)): Throw
8662 IllegalArgumentException if orientation
8664 (getChangeListeners): Fix method name.
8665 * javax/swing/SwingUtilities.java:
8666 (layoutCompoundLabel): If there is no text,
8667 set the text rectangle dimensions to 0.
8668 * javax/swing/plaf/basic/BasicButtonUI.java:
8669 (paint): If there is no text, don't paint it.
8670 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8672 * javax/swing/plaf/basic/BasicSeparatorUI.java:
8674 * javax/swing/plaf/basic/BasicSliderUI.java:
8675 (propertyChange): If the model changes, change
8676 the listeners accordingly.
8678 2004-02-25 Graydon Hoare <graydon@redhat.com>
8680 * javax/swing/AbstractButton.java: Add "final" qualifiers.
8681 * javax/swing/JList.java: Reimplement.
8682 * javax/swing/DefaultListSelectionModel.java: Reimplement.
8683 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
8684 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
8685 * javax/swing/ListModel.java: Javadoc.
8686 * javax/swing/ListSelectionModel.java: Add missing methods.
8687 * javax/swing/AbstractListModel.java: Javadoc and corrections.
8688 * javax/swing/DefaultListModel.java: Javadoc and corrections.
8689 * javax/swing/ListModel.java: Javadoc and corrections.
8690 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
8692 2004-02-25 David Jee <djee@redhat.com>
8694 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8695 (GtkFontPeer): Change default size to 12.
8696 * gnu/java/awt/peer/gtk/GtkToolkit.java
8697 (getFontPeer): Change default size to 12.
8698 (getClasspathFontPeer): Likewise. Set default name to "Default".
8699 * java/awt/Font.java
8700 (Font(Map)): Call Font(String,Map).
8701 (Font(String,Map)): If attrs is null, initialize it as an empty
8702 HashMap, which will ensure that the Font will get default attributes.
8704 2004-02-25 David Jee <djee@redhat.com>
8706 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8707 (GtkFontPeer(String,int)): Call the new constructor with size 1.
8708 (GtkFontPeer(String,int,int)): New constructor with size attribute.
8709 * gnu/java/awt/peer/gtk/GtkToolkit.java
8710 (getFontPeer(String,int)): Call the new overload method with size 1.
8711 (getFontPeer(String,int,int)): New method. Overloaded with size
8713 (getClasspathFontPeer): Set the size of the font.
8715 2004-02-24 Olga Rodimina <rodimina@redhat.com>
8717 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8718 (bimage): New field.
8719 (GdkGraphics2D): New Constructor. Constructs Graphics
8720 object that can be used to draw into the Buffered Image.
8721 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8722 (GdkGraphicsEnvironment): Fixed to include public
8724 (createGraphics): Implemented.
8725 * gnu/java/awt/peer/gtk/GtkToolkit.java
8726 (getLocalGraphicsEnvironment): Implemented.
8727 * java/awt/GraphicsEnvironment.java:
8728 (getLocalGraphicsEnvironment): Implemented.
8729 * java/awt/image/BufferedImage.java:
8730 (createGraphics): Implemented.
8732 2004-02-24 David Jee <djee@redhat.com>
8734 * java/awt/Component.java
8735 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
8736 * java/awt/Container.java
8737 (addNotifyContainerChildren): Fix event enabling.
8739 2004-02-23 Olga Rodimina <rodimina@redhat.com>
8741 * Makefile.am: Added
8742 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
8743 * Makefile.in: Re-generated.
8744 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8747 2004-02-19 Kim Ho <kho@redhat.com>
8749 * Makefile.am: Add BasicProgressBarUI
8750 * Makefile.in: Regenerate.
8751 * javax/swing/JProgressBar.java:
8753 * javax/swing/plaf/basic/BasicLookAndFeel.java
8754 Add constants for JProgressBar.
8755 * javax/swing/plaf/basic/BasicProgressBarUI.java
8757 * javax/swing/plaf/basic/BasicSliderUI.java
8759 (calculateGeometry): New method
8760 (paint): Remove unnecessary size calculations.
8762 2004-02-18 Olga Rodimina <rodimina@redhat.com>
8764 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8765 (drawRaster): Fixed small error that caused
8766 imageToUser transformation to be set incorrectly.
8767 (toString): Implemented.
8769 2004-02-18 David Jee <djee@redhat.com>
8771 * java/awt/CardLayout.java
8772 (addLayoutComponent): Show the first component added as the default.
8773 (removeLayoutComponent): After removing, show the next component.
8774 (gotoComponent): If there is only one component, show it and return.
8776 2004-02-18 Kim Ho <kho@redhat.com>
8778 * javax/swing/JSlider.java: Re-order
8780 * javax/swing/JLabel.java: Re-order
8782 * javax/swing/JComponent.java:
8783 (addPropertyChangeListener):
8785 (removePropertyChangeListener):
8787 (firePropertyChangeEvent):
8790 2004-02-17 David Jee <djee@redhat.com>
8792 * java/awt/Component.java
8793 (show): Dispatch ComponentEvent via system event queue.
8797 (reshape): Likewise.
8798 * java/awt/Window.java
8799 (setBoundsCallback): Likewise.
8801 2004-02-17 David Jee <djee@redhat.com>
8803 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8804 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
8805 Use gtk_widget_set_size_request() instead of the deprecated
8806 gtk_widget_set_usize().
8808 2004-02-17 Kim Ho <kho@redhat.com>
8810 * javax/swing/JSlider.java: Fix comments and
8811 make property strings constants.
8812 (createStandardLabels): Use the labels
8813 preferred size as bounds.
8814 * javax/swing/plaf/basic/BasicSliderUI.java
8816 (ScrollHandler::actionPerformed): Don't
8817 calculate the timer stop value. Let the
8818 MouseListeners find the stop location.
8819 (getPreferredHorizontalSize): Re-implement.
8820 (getPreferredVerticalSize): ditto.
8821 (getMinimumHorizontalSize): ditto.
8822 (getMinimumVerticalSize): ditto.
8823 (getPreferredSize): ditto.
8824 (getMinimumSize): ditto.
8825 (getMaximumSize): ditto.
8826 (paintTicks): Use doubles to find the
8828 (paintHorizontalLabel):Â Use preferredSize
8829 as initial width and height.
8830 (paintVerticalLabel): ditto.
8832 2004-02-17 Kim Ho <kho@redhat.com>
8834 * javax/swing/JLabel.java: Changed
8835 property strings to constants.
8836 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
8838 (setText): Change mnemonic index if
8840 (setDisplayedMnemonicIndex): Fire property
8842 (getDisplayedMnemonicIndex): Remove check
8845 2004-02-17 Olga Rodimina <rodimina@redhat.com>
8847 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8848 (drawImage(img,xform,obs)): Invert xform before
8849 passing the xform to cairo.
8850 (drawImage(img,x,y,bgcolor,obs)): Implemented.
8851 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
8853 (drawImage (img,x,y,w,h,obs)): Implemented.
8854 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
8855 bgcolor,obs)): Partly implemented.
8856 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
8858 * java/awt/image/BufferedImage.java:
8859 (copyData): if dest is null, create raster with same
8860 dimensions as the current image.
8862 2004-02-16 Graydon Hoare <graydon@redhat.com>
8864 * javax/swing/plaf/basic/BasicLabelUI.java
8865 (getPreferredSize): Use layoutCL.
8866 * javax/swing/plaf/basic/BasicGraphicsUtils.java
8867 (getPreferredButtonSize): Start with empty view rect, layout using
8868 component's preferred alignment.
8869 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
8872 2004-02-16 David Jee <djee@redhat.com>
8874 * java/awt/Component.java
8875 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
8876 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
8877 (move): Erase old bounds and repaint new bounds. Dispatch
8878 COMPONENT_MOVED ComponentEvent.
8879 (resize): Erase old bounds and repaint new bounds. Dispatch
8880 COMPONENT_RESIZED ComponentEvent.
8881 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8883 * java/awt/Window.java
8884 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8887 2004-02-16 Olga Rodimina <rodimina@redhat.com>
8889 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8890 (setRenderingHint): Added implementation of
8891 Interpolation rendering hints.
8892 (setRenderingHints): Ditto.
8893 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
8894 (drawPixels): fixed to allow user to choose type
8895 of filtering that should be used when displaying images.
8896 (cairoSurfaceSetFilter): New method. Sets filter type for
8897 interpolation of pixel values.
8899 2004-02-16 David Jee <djee@redhat.com>
8901 * java/awt/GridBagLayout.java
8902 (calcCellSizes): Rows or columns with zero sizes should still be
8903 considered for extra space distribution.
8905 2004-02-16 Kim Ho <kho@redhat.com>
8907 * javax/swing/JLabel.java: Re-implement.
8908 * javax/swing/plaf/basic/BasicLabelUI.java
8910 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8913 2004-02-16 Kim Ho <kho@redhat.com>
8915 * javax/swing/JSlider.java: Fix indentation and comments.
8916 (setModel): Remove null check to conform with Sun's.
8917 (setOrientation): Throw exception if not
8918 HORIZONTAL or VERTICAL.
8919 (getInverted): Use private variable instead of
8920 ComponentOrientation.
8921 (setInverted): ditto.
8922 * javax/swing/plaf/basic/BasicSliderUI.java:
8923 Fix indentation and comments.
8924 (propertyChange): Remove check for inverted slider, handle
8926 (getMinimumSize): Return preferred size.
8927 (getMaximumSize): ditto.
8928 (calculateFocusRect): Don't relocate rectangle.
8929 (drawInverted): Return XOR of the slider's inversion and
8930 the component's orientation.
8931 (paint): Update leftToRightCache
8933 2004-02-13 David Jee <djee@redhat.com>
8935 * java/awt/GridBagLayout.java
8936 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
8937 code to helper methods.
8938 (sortBySpan): New helper method.
8939 (distributeSizeAndWeight): Likewise.
8940 (calcCellWeights): Likewise.
8941 (calcCellSizes): Add comments.
8943 2004-02-13 David Jee <djee@redhat.com>
8945 * java/awt/Component.java
8946 (show): Only do something if component is invisible at the moment.
8947 (hide): Only do something if component is visible at the moment.
8948 (reshape): If lightweight, erase old bounds and repaint new bounds.
8950 2004-02-13 Kim Ho <kho@redhat.com>
8952 * Makefile.am: Updated for new file.
8953 * Makefile.in: Regenerated.
8954 * javax/swing/JSlider.java: Reimplement.
8955 * javax/swing/SwingUtilities.java
8956 (layoutCompoundLabel): Use icon height
8958 (paintComponent): Implement.
8959 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8960 Add JSlider defaults.
8961 * javax/swing/plaf/basic/BasicSliderUI.java:
8962 Implement. New file.
8964 2004-03-17 Michael Koch <konqueror@gmx.de>
8966 * gnu/java/net/PlainDatagramSocketImpl.java
8967 (RECEIVE_LOCK): New member field.
8968 (SEND_LOCK): New member field.
8969 (send0): New method.
8970 (send): Synchronize on SEND_LOCK.
8971 (receive0): New method.
8972 (receive): Synchronize on RECEIVE_LOCK.
8973 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
8974 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
8975 gnu/java/net/natPlainDatagramSocketImplWin32.cc
8976 (send0): Renamed from send.
8977 (receive0): Renamed from receive.
8978 2004-03-17 Michael Koch <konqueror@gmx.de>
8980 * gnu/java/net/natPlainSocketImplPosix.cc
8981 (write): Just call write(jbyteArray, offset, len).
8982 (read): Just call read(jbyteArray, offset, len).
8984 2004-03-16 Michael Koch <konqueror@gmx.de>
8986 * javax/swing/JTabbedPane.java
8987 (serialVersionUID): New field.
8989 2004-03-16 Norbert Frese <postfach@nfrese.net>
8991 * java/net/InetAddress.java
8992 (getByName): Handle hostname == "" case.
8994 2004-03-16 Dalibor Topic <robilad@kaffe.org>
8996 Reported by: Adam Heath <doogie@debian.org>
8997 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
9000 2004-03-15 Michael Koch <konqueror@gmx.de>
9002 * java/util/Locale.java: Reverting my last patch
9003 and add a comment why the original version was okay.
9005 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
9007 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
9008 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
9009 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
9010 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
9012 2004-03-12 Michael Koch <konqueror@gmx.de>
9014 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
9016 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
9018 * java/net/URI.java (toURL): Implemented.
9020 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
9023 (URI_REGEXP) updated to contain scheme specific part.
9024 (SCHEME_SPEC_PART_GROUP) new constant.
9025 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
9026 updated to make room for SCHEME_SPEC_PART_GROUP.
9027 (parseURI) parse scheme specific part.
9028 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
9029 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
9030 getQuery, getFragment) implemented.
9032 2004-03-12 Dalibor Topic <robilad@kaffe.org>
9034 * libraries/javalib/java/net/URI.java
9035 partially implemented using java.util.regex.
9036 (URI_REGEXP) new constant. Used to parse URIs.
9037 (SCHEME_GROUP) new constant representing index of scheme group
9039 (AUTHORITY_GROUP) new constant representing index of authority
9040 group in parsed URI.
9041 (PATH_GROUP) new constant representing index of path group in
9043 (QUERY_GROUP) new constant representing index of query group in
9045 (FRAGMENT_GROUP) new constant representing index of fragment
9046 group in parsed URI.
9047 (getURIGroup) new static utility method.
9048 (parseURI) implemented.
9049 (quote) stub for new static utility method.
9050 (quoteAuthority) stub for new static utility method.
9051 (quoteHost) stub for new static utility method.
9052 (quotePath) stub for new static utility method.
9053 (quoteUserInfo) stub for new static utility method.
9055 (create) don't throw URISyntaxException. Implemented.
9056 (toString) implemented.
9058 2004-03-12 Michael Koch <konqueror@gmx.de>
9060 * java/net/HttpURLConnection.java
9061 (getResponseCode): Fix another typo in javadoc.
9063 2004-03-11 Michael Koch <konqueror@gmx.de>
9065 * java/util/logging/Level.java
9066 (parse): Use String.equals() instead of ==.
9068 2004-03-11 Michael Koch <konqueror@gmx.de>
9070 * gnu/java/net/protocol/jar/Connection.java
9071 (getContentLength): New method.
9073 2004-03-11 Michael Koch <konqueror@gmx.de>
9075 * gnu/java/net/PlainSocketImpl.java:
9076 Reformated to merge better with classpath's version.
9078 2004-03-11 Michael Koch <konqueror@gmx.de>
9080 * java/util/Locale.java
9081 (getISO3Language): Use String.equals() instead of ==.
9082 (getISO3Country): Likewise.
9084 2004-03-11 Dalibor Topic <robilad@kaffe.org>
9086 * java/text/AttributedString.java
9087 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
9088 Use HashMap instead of Hashtable since value can be null, and
9089 you can not store a null value in a Hashtable.
9091 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
9093 * java/text/AttributedStringIterator.java
9094 (getAllAttributesKey): Return only keys concerned
9095 by the current iterator.
9096 (getAttributes): Use strict inequality for
9099 2004-03-11 Michael Koch <konqueror@gmx.de>
9101 * java/net/HttpURLConnection.java:
9102 Fixed typo in javadoc.
9104 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
9106 * java/io/BufferedInputStream.java (marktarget): New field for max
9108 (CHUNKSIZE): New constant for incremental mark buffer allocation.
9109 (mark): Use new fields.
9111 (read(byte[],int,int)): Likewise.
9115 2004-03-11 Mark Wielaard <mark@klomp.org>
9117 * java/beans/BeanDescriptor.java (BeanDescriptor):
9118 Set the FeatureDescriptor programmatic name.
9120 2004-03-11 Michael Koch <konqueror@gmx.de>
9122 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
9123 This file was was just copied form java/io/natFileDescriptorEcos.cc
9124 and never changed to compile correctly.
9126 2004-03-11 Michael Koch <konqueror@gmx.de>
9128 * gnu/java/nio/PipeImpl.java
9129 (SourceChannelImpl): Made final.
9130 (read): Implemented.
9131 (SinkChannelImpl): Made final.
9132 (write): Implemented.
9134 2004-03-11 Michael Koch <konqueror@gmx.de>
9136 * gnu/java/net/PlainDatagramSocketImpl.java:
9137 Reformated to match classpath's version more.
9139 2004-03-11 Michael Koch <konqueror@gmx.de>
9141 * gnu/java/awt/peer/ClasspathFontPeer.java:
9142 Fixed javadoc to be correct xhtml.
9143 * gnu/java/awt/peer/gtk/GtkArgList.java
9144 (add): Use Boolean.valueOf() instead of new Boolean().
9146 2004-03-09 Michael Koch <konqueror@gmx.de>
9148 * java/lang/Thread.java
9149 (runnable): Moved around.
9150 (daemon): Renamed from daemon_flag.
9151 (contextClassLoader): Renamed from context_class_loader.
9152 (Thread): Reordered constructors.
9153 (activeCount): Use group directly.
9154 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
9155 (holdsLock): Reworked javadoc.
9156 (setDaemon): Reworked.
9157 * java/lang/natThread.cc
9160 2004-03-08 Anthony Green <green@redhat.com>
9162 * Makefile.am: Build property resource files into libgcj.
9163 * Makefile.in: Rebuilt.
9164 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
9165 java/util/regex/PatternSyntaxException.java,
9166 gnu/regexp/CharIndexed.java,
9167 gnu/regexp/CharIndexedCharArray.java,
9168 gnu/regexp/CharIndexedInputStream.java,
9169 gnu/regexp/CharIndexedReader.java,
9170 gnu/regexp/CharIndexedString.java,
9171 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
9172 gnu/regexp/REException.java,
9173 gnu/regexp/REFilterInputStream.java,
9174 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
9175 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
9176 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
9177 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
9178 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
9179 gnu/regexp/RETokenLookAhead.java,
9180 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
9181 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
9182 gnu/regexp/RETokenStart.java,
9183 gnu/regexp/RETokenWordBoundary.java,
9184 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
9186 2004-03-03 Per Bothner <per@bothner.com>
9188 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
9189 Optimize when argument is a FileChannelImpl.
9190 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
9192 * java/nio/channels/natChannels.cc: New file for new native methods.
9193 * Makefile.am: Update accordingly.
9195 2004-03-02 Jan Hubicka <jh@suse.cz>
9197 * configure.host: Pass -fno-omit-frame-pointer for i386.
9198 * configure.in: Likewise.
9199 * configure: Regenerate.
9201 2004-03-01 Per Bothner <per@bothner.com>
9203 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
9205 2004-02-29 Per Bothner <per@bothner.com>
9207 * java/nio/channels/FileChannelImpl.java: Moved to package
9208 gnu/java/nio/channels, since we need to refer to it from java.io.
9209 * java/nio/channels/natFileChannelImpl.cc: Removed file.
9210 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
9211 from java/nio/channels. Don't depend on FileDescriptor.
9212 (in, out, err): New static fields.
9214 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
9215 from FileDescriptor.
9216 (by): Removed MappedByteBuffer field.
9217 (map): New working implementation.
9218 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
9219 some code "ported" from natFileDescriptoPosix.cc.
9220 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
9221 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
9222 * java/io/FileDescriptor.java: Implement on top of FileChannel.
9223 Remove native methods.
9224 * Makefile.am, configure.in: Updated accordingly.
9226 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
9227 (ch): New FileChannelImpl field. Update constructor to match.
9228 (releaseImpl): Remove native method. Instead ...
9229 (release): Call unlock on channel.
9230 * gnu/java/nio/natFileLockImpl.cc: Removed file.
9232 * java/io/natFileDescriptorEcos.cc: Remove file.
9233 * java/io/natFileDescriptorPosix.cc: Remove file.
9234 * java/io/natFileDescriptorWin32.cc: Remove file.
9235 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
9236 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
9237 (<init>(FileChannelImpl)): New package-private constructor.
9238 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
9239 (available, close, read, skip): Implement using FileChannelImpl.
9240 (getFD): Allocate FileDescriptor if needed.
9241 (getChannel): Is now trivial.
9242 * java/io/FileOutputStream.java: Corresponding changes.
9243 * java/io/RandomAccessFile.java: Corresponding changes.
9245 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
9246 unmapImpl): New dummy methods, to be overridden by subclass.
9247 (finalize, isLoaded, load, force): New methods.
9248 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
9249 Now works, at least for read mapping.
9251 * java/lang/natPosixProcess.cc (startProcess): Implement standard
9252 streams using FileChannelImpl, not FileDescriptor.
9253 * java/lang/natWin32Process.cc (startProcess): Likewise.
9255 2004-02-28 Michael Koch <konqueror@gmx.de>
9257 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
9260 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
9262 * java/io/ObjectInputStream.java
9263 (readClassDescriptor): Keep elements of the mapping non null.
9264 (checkTypeConsistency): New method.
9265 (readFields): Fixed main loop and base logic. Small reindentation.
9266 * java/io/ObjectStreamField.java
9267 (lookupField): New method to update the field reference.
9268 (checkFieldType): New method.
9269 * java/io/ObjectStreamClass.java
9270 (setClass, setFields): Call lookupField when building the field
9271 database. Check the real field type.
9273 2004-02-28 Michael Koch <konqueror@gmx.de>
9275 * java/nio/ByteOrder.java
9276 (nativeOrder): Use equals() to compare strings.
9278 2004-02-26 Michael Koch <konqueror@gmx.de>
9280 * gnu/java/nio/FileLockImpl.java
9281 (finalize): Made protected.
9282 * java/nio/channels/FileChannel.java
9283 (MapMode.READ_ONLY): Made final.
9284 (MapMode.READ_WRITE): Made final.
9285 (MapMode.PRIVATE): Made final.
9286 * java/nio/channels/SocketChannel.java
9287 (open): Simplified code.
9288 * java/nio/channels/spi/AbstractSelectableChannel.java
9289 (registered): Unused, removed.
9290 (keyFor): Check channel is open, only locate key
9291 and not add a new one.
9292 (register): Don't delete attachments.
9294 2004-02-26 Michael Koch <konqueror@gmx.de>
9296 * gnu/java/awt/ComponentDataBlitOp.java
9297 (INSTANCE): Made final.
9298 * gnu/java/awt/image/ImageDecoder.java:
9300 (cm): Unused, removed.
9302 2004-02-26 Michael Koch <konqueror@gmx.de>
9304 * gnu/java/nio/DatagramChannelImpl.java
9305 (send): Check if target address is resolved.
9307 2004-02-26 Michael Koch <konqueror@gmx.de>
9309 * Makefile.am: Generate and install headers for inner classes in
9310 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
9311 * Makefile.in: Regenerated.
9313 2004-02-24 Anthony Green <green@redhat.com>
9315 * java/lang/StringBuffer.java: No need to NULL out remainder of
9316 buffer since ensureCapacity_unsynchronized will have done this for
9319 2004-02-20 Michael Koch <konqueror@gmx.de>
9321 * gnu/java/net/protocol/jar/Handler.java
9322 (): Removed unneeded check for file != null. java.net.URL.getFile()
9323 returns an empty string but never null.
9325 2004-02-20 Michael Koch <konqueror@gmx.de>
9327 * gnu/gcj/convert/Convert.java
9328 (main): Use equals() to compare strings.
9330 2004-02-20 Michael Koch <konqueror@gmx.de>
9332 * javax/swing/AbstractButton.java: Made several constants final.
9333 (getRolloverSelectedIcon): Made public.
9334 (getSelectedIcon): Made public.
9336 2004-02-16 Per Bothner <per@bothner.com>
9338 * java/nio/CharBufferImpl.java: Inline super constructor.
9339 * java/nio/DoubleBufferImpl.java: Likewise.
9340 * java/nio/FloatBufferImpl.java: Likewise.
9341 * java/nio/IntBufferImpl.java: Likewise.
9342 * java/nio/LongBufferImpl.java: Likewise.
9343 * java/nio/ShortBufferImpl.java: Likewise.
9344 * java/nio/CharBuffer.java: Remove unused constructor.
9345 * java/nio/DoubleBuffer.java: Likewise.
9346 * java/nio/FloatBuffer.java: Likewise.
9347 * java/nio/IntBuffer.java: Likewise.
9348 * java/nio/LongBuffer.java: Likewise.
9349 * java/nio/ShortBuffer.java: Likewise.
9350 * java/nio/CharViewBufferImpl.java: New convenience constructor.
9351 Fix buggy call to super constructor.
9352 * java/nio/DoubleViewBufferImpl.java: Likewise.
9353 * java/nio/FloatViewBufferImpl.java: Likewise.
9354 * java/nio/IntViewBufferImpl.java: Likewise.
9355 * java/nio/LongViewBufferImpl.java: Likewise.
9356 * java/nio/ShortViewBufferImpl.java: Likewise.
9358 * java/nio/ByteBuffer.java (endian): Make non-private so other
9359 java.nio classes can inherit it.
9360 (<init>): Don't bother clearing array_offset.
9361 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
9362 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
9363 Remove redundant test.
9365 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
9366 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
9367 Use new XxxViewBufferImpl constructors.
9368 * java/nio/MappedByteBufferImpl.java: Likewise.
9369 * java/nio/DirectByteBufferImpl.java: Likewise.
9371 * java/nio/ByteBufferImpl.java: Remove one constructor.
9372 Inline super in remaining constructor.
9373 * java/nio/ByteBuffer.java: Remove unused constructor.
9375 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
9377 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
9378 * java/nio/DirectByteBufferImpl.java (owner): New field.
9379 (offset): Remove unused field.
9380 (<init>): Modify one and add another constructor. Change callers.
9381 (allocateDirect): Removed - not used.
9382 (getImpl, putImpl): Make static and pass address explicitly,
9383 to make them useful for MappedByteBufferImpl.
9384 (get, put): Check for underflow. Modify for new getImpl.
9385 (getImpl): New native method where target is array.
9386 (get(byte[],int,int)): Use the above.
9387 (adjustAddress): New static native method.
9388 (slice, duplicate, asReadOnly): New implementations.
9389 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
9390 adjustAddress): New or updated native methods.
9392 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
9394 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
9395 overflow of fieldmapping.
9397 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
9399 * javax/swing/undo/UndoManager.java: Re-written from scratch.
9401 2004-02-14 Per Bothner <per@bothner.com>
9403 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
9404 Set closed before calling implCloseChannel, as in the spec.
9406 2004-02-09 Graydon Hoare <graydon@redhat.com>
9408 * javax/swing/ToggleButtonModel.java: Remove dead class.
9409 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
9410 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
9411 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
9412 * Makefile.am: Update for new and removed files.
9413 * Makefile.in: Regenerate.
9415 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
9416 * javax/swing/AbstractButton.java
9417 (AbstractButton): Initialize fields correctly in ctor.
9418 * javax/swing/JCheckbox.java
9419 (JCheckBox): Override painting flags.
9420 * javax/swing/DefaultButtonModel.java: Conform to sun.
9421 * javax/swing/JComponent.java (paint): Fill with background color
9423 (processComponentKeyEvent)
9426 (processMouseMotionEvent): Remove event-consuming empty methods.
9427 (getUIClassID): Return "ComponentUI" not "JComponent"
9428 * javax/swing/JFrame.java: Remove some debugging chatter.
9429 (JFrame): Subscribe to window events.
9430 * javax/swing/JRadioButton.java
9431 (JRadioButton): Override painting flags.
9432 * javax/swing/JRootPane.java
9433 (JRootPane): Set background from UIDefaults.
9434 * javax/swing/JToggleButton.java
9435 (ToggleButtonModel): New inner class.
9436 (JToggleButton): Override layout alighment.
9437 * javax/swing/SwingUtilities.java:
9438 (getLocalBounds): Return width and height, not x and y.
9439 (calculateInnerArea): Use local bounds, not bounds.
9440 (layoutCompoundLabel): Provide overridden form.
9441 (layoutCompoundLabel): Correct bugs.
9442 * javax/swing/UIDefaults.java: Correct comment.
9443 * javax/swing/plaf/basic/BasicButtonUI.java:
9444 Move most logic into defaults, external listener.
9445 (paintIcon): Implement icon painting.
9446 (paint): Fix state painting to conform to changes in model.
9447 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
9448 Remove most dead/wrong methods.
9449 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
9450 * javax/swing/plaf/basic/BasicIconFactory.java:
9451 (DummyIcon): New class.
9452 (getMenuItemCheckIcon)
9453 (getMenuItemArrowIcon)
9455 (getCheckBoxMenuItemIcon)
9456 (getRadioButtonMenuItemIcon)
9457 (createEmptyFrameIcon): Return DummyIcons, not null.
9458 (getCheckBoxIcon): Implement an icon that looks like sun's.
9459 (getRadioButtonIcon): Implement an icon that looks like sun's.
9460 * javax/swing/plaf/basic/BasicLookAndFeel.java
9461 (initComponentDefaults): Fix impossible values, add some missing.
9462 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
9463 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
9464 Remove most dead/wrong methods.
9466 (getDefaultIcon): New method.
9467 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
9468 Remove most dead/wrong methods.
9469 * javax/swing/plaf/metal/MetalLookAndFeel.java
9470 (getDefaults): Return super.getDefaults(), not BasicDefaults.
9471 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
9472 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
9473 Implement "clearing" as drawing, when on pixmap drawables.
9475 * javax/swing/JButton.java (getUIClassID):
9476 * javax/swing/JCheckBox.java (getUIClassID):
9477 * javax/swing/JEditorPane.java (getUIClassID):
9478 * javax/swing/JLabel.java (getUIClassID):
9479 * javax/swing/JList.java (getUIClassID):
9480 * javax/swing/JOptionPane.java (getUIClassID):
9481 * javax/swing/JPanel.java (getUIClassID):
9482 * javax/swing/JPasswordField.java (uiClassID):
9483 * javax/swing/JRadioButton.java (getUIClassID):
9484 * javax/swing/JRootPane.java (getUIClassID):
9485 * javax/swing/JScrollPane.java (getUIClassID):
9486 * javax/swing/JTabbedPane.java (getUIClassID):
9487 * javax/swing/JToggleButton.java (getUIClassID):
9488 * javax/swing/JTree.java (getUIClassID):
9489 * javax/swing/JViewport.java (getUIClassID):
9490 * javax/swing/text/JTextComponent.java (getUIClassID):
9491 Return "fooUI" not "Jfoo"
9493 2004-02-11 Michael Koch <konqueror@gmx.de>
9495 * java/net/DatagramSocket.java
9496 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
9498 (setBroadcast): Likewise.
9499 * java/net/MulticastSocket.java
9500 (setLoopbackMode): Likewise.
9501 * java/net/ServerSocket.java
9502 (setReuseAddress): Likewise.
9503 * java/net/Socket.java
9504 (setTcpNoDelay): Likewise.
9505 (setSoLinger): Likewise.
9506 (setOOBInline): Likewise.
9507 (setKeepAlive): Likewise.
9508 (setReuseAddress): Likewise.
9509 * java/net/URLConnection.java
9510 (setContentHandler): Replace == with equals().
9511 * java/net/URLStreamHandler.java
9512 (hostSEquals): Fix checking host addresses.
9513 (toExternalForm): Dont check protocol for null. We know already its
9516 2004-02-10 David Jee <djee@redhat.com>
9518 * java/awt/BorderLayout.java
9519 (calcCompSize): Invisible components get zero dimensions.
9520 * java/awt/Button.java
9521 (setLabel): Set actionCommand.
9522 * java/awt/Component.java
9523 (show): Invalidate component and parent container.
9526 2004-02-10 David Jee <djee@redhat.com>
9528 * java/awt/GridBagLayout.java
9529 (GridBagLayout): New private field, internalcomptable.
9530 (lookupInternalConstraints): New method.
9531 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
9532 (GetLayoutInfo): Reimplement.
9533 (calcCellSizes): Ignore rows/columns with size 0.
9535 2004-02-10 Michael Koch <konqueror@gmx.de>
9537 * gnu/java/awt/EmbeddedWindow.java
9538 (setHandle): Use java.awt.Component.getPeer() instead of
9539 java.awt.Component.peer directly.
9541 2004-02-10 David Jee <djee@redhat.com>
9543 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
9544 (gtkSetLabel): New native method definition.
9545 (setLabel): Use gtkSetLabel.
9546 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
9547 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
9549 2004-02-10 Alan Modra <amodra@bigpond.net.au>
9551 * include/powerpc-signal.h: Revert 2004-01-21 change.
9552 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
9553 from syscall for ppc32 versions.
9555 2004-02-08 Per Bothner <per@bothner.com>
9557 * java/nio/ByteBuffer.java (shiftDown): New helper method.
9558 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
9559 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
9560 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
9561 Pass ByteOrder parameter to most methods, since the underlying
9562 ByteBuffer's order isn't always what we should use.
9563 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
9564 * java/nio/DirectByteBufferImpl.java: Likewise.
9565 Use ByteBufferHelper methods.
9566 * java/nio/MappedByteBufferImpl.java: Likewise.
9567 (compact): Use shiftDown.
9568 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
9569 (get, put): Use ByteBufferHelper.
9570 (compact): Use new shiftDown method.
9571 (duplicate(boolean)): New helper method.
9572 (duplicate, asReadOnlyBuffer): Use it.
9573 (order): Return endian field.
9574 * java/nio/DoubleViewBufferImpl.java: Likewise.
9575 * java/nio/FloatViewBufferImpl.java: Likewise.
9576 * java/nio/IntViewBufferImpl.java: Likewise.
9577 * java/nio/LongViewBufferImpl.java: Likewise.
9578 * java/nio/ShortViewBufferImpl.java: Likewise.
9579 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
9580 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
9581 (compact): Re-implement using shiftDown.
9583 2004-02-08 Andreas Jaeger <aj@suse.de>
9585 * include/x86_64-signal.h: Fix typo.
9587 2004-02-08 Diego Novillo <dnovillo@redhat.com>
9589 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
9591 (HANDLE_DIVIDE_OVERFLOW): Likewise.
9593 2004-02-06 Michael Koch <konqueror@gmx.de>
9595 * java/io/ObjectInputStream.java
9596 (currentClassLoader): Reverted to old version of this method.
9598 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
9600 * java/io/ObjectInputStream.java: Made all calls
9601 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
9602 use cached info from ObjectStreamClass. (readClassDescriptor):
9603 Cache more information in ObjectStreamClass. (processResolution,
9604 readFields): Use cached info from ObjectStreamClass.
9605 (newObject): Throw exception instead of returning null for failure.
9606 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
9607 setCharField, setDoubleField, setFloatField, setIntField,
9608 setLongField, setShortField, setObjectField, readObjectParams):
9609 Removed. (dumpElement, dumpElementln): Removed dump flag condition
9611 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
9612 (setClass): Added call to cacheMethods() (findMethod): New method.
9613 (cacheMethods): New method. (ObjectStreamClass): Added call to
9614 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
9615 AccessController.doPrivileged to invoke setAccessible.
9616 (readObjectMethod, readResolveMethod, realClassIsSerializable,
9617 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
9619 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
9620 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
9621 isPrimitive): Made safe for cases where type == null.
9622 (setBooleanField, setByteField, setCharField, setShortField,
9623 setIntField, setLongField, setFloatField, setDoubleField,
9624 setObjectField): New methods.
9626 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
9628 * java/awt/Component.java (getFont): Return a default font
9631 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
9632 (Scrollbar (int, int, int, int, int)): Make default page
9634 (setValues): Only call peer.setValues if one of the values has
9636 (generateName): New method.
9637 (getUniqueLong): New method.
9638 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
9639 (range_scrollbar): Remove structure.
9640 (post_adjustment_event): Remove function.
9641 (post_change_event): Accept jobject argument.
9642 (create): Cast jints to gdoubles. Round scrollbar values to the
9643 nearest integer. Clamp min, max and value settings.
9644 (connectJObject): Connect hook to widget->window.
9645 (connectSignals): Remove range_scrollbar structure variables.
9646 Remove "move-slider" connection. Pass global peer reference to
9647 "value-changed" callback.
9648 (setLineIncrement): Cast jint value to gdouble.
9649 (setPageIncrement): Likewise.
9650 (setValues): Likewise. Clamp min, max and value settings.
9652 2004-02-05 Michael Koch <konqueror@gmx.de>
9654 * javax/swing/AbstractCellEditor.java
9655 (getCellEditorValue): Removed.
9656 * javax/swing/Box.java: Reformated.
9657 (serialVersionUID): New field.
9658 * javax/swing/ButtonGroup.java:
9659 Removed some weird whitespace.
9660 * javax/swing/CellEditor.java: Reformated.
9661 * javax/swing/CellRendererPane.java
9662 (serialVersionUID): New field.
9663 (AccessibleCellRendererPaneserialVersionUID): New field.
9664 * javax/swing/DefaultListModel.java
9665 (serialVersionUID): New field.
9666 * javax/swing/JEditorPane.java
9667 (serialVersionUID): New field.
9668 (setPage): Throws IOException.
9669 (addHyperlinkListener): Implemented.
9670 (removeHyperlinkListener): Implemented.
9671 (getHyperlinkListener): New method.
9672 * javax/swing/JFileChooser.java
9673 (serialVersionUID): New field.
9674 (AccessibleJFileChooser.serialVersionUID): New field.
9675 (addActionListener): Implemented.
9676 (removeActionListener): Implemented.
9677 (getActionListeners): New method.
9678 * javax/swing/JFormattedTextField.java
9679 (serialVersionUID): New field.
9680 (AbstractFormatter.serialVersionUID): New field.
9681 (clone): Throws CloneNotSupportedException
9682 (setEditValid): Add missing argument.
9683 (stringToValue): Throws ParseExcpetion.
9684 (valueToString): Throws ParseException.
9685 (commitEdit): Throws ParseException.
9686 * javax/swing/JLabel.java
9687 (serialVersionUID): New field.
9688 * javax/swing/JList.java
9689 (serialVersionUID): New field.
9690 (addListSelectionListener): Reformated.
9691 (removeListSelectionListener): Reformated.
9692 (getListSelectionListeners): New method.
9693 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
9695 (serialVersionUID): New field.
9696 * javax/swing/table/AbstractTableModel.java
9697 (getValueAt): Removed.
9698 (getColumnCount): Removed.
9699 (getRowCount): Removed.
9701 2004-02-05 Michael Koch <konqueror@gmx.de>
9703 * java/awt/datatransfer/DataFlavor.java
9704 (imageFlavor): Javadoc added.
9705 (javaJVMLocalObjectType): Fixed.
9707 2004-02-05 Michael Koch <konqueror@gmx.de>
9709 * java/lang/Thread.java
9710 (Thread): Reordered.
9711 (setContextClassLoader): Fixed javadoc comment.
9712 (setPriority): Reordered.
9714 (initialize_native): Reordered.
9715 (gen_name): Reordered.
9717 2004-02-05 Michael Koch <konqueror@gmx.de>
9719 * java/lang/Thread.java: Reordered fields, reformated much code,
9720 no functional changes, some variables renamed, javadoc comments
9723 2004-02-05 Michael Koch <konqueror@gmx.de>
9725 * java/util/zip/Deflater.java,
9726 java/util/zip/DeflaterOutputStream.java,
9727 java/util/zip/GZIPInputStream.java:
9728 Reformated and javadoc comments merged from classpath.
9730 2004-02-05 Michael Koch <konqueror@gmx.de>
9732 * gnu/java/nio/NIOServerSocket.java
9733 (impl): Unused, removed.
9734 * gnu/java/nio/SocketChannelImpl.java
9735 (finnishConnect): Don't throw NoConnectionPendingException if not
9736 connected or no connection pending.
9738 2004-02-02 Graydon Hoare <graydon@redhat.com>
9740 * javax/swing/SwingUtilities.java: Many new functions.
9741 * java/awt/Container.java (LightweightDispatcher): Reimplement.
9742 * javax/swing/basic/BasicGraphicsUtils.java
9743 (getPreferredButtonSize): Start layout from top-left corner.
9745 2004-02-04 Olga Rodimina <rodimina@redhat.com>
9747 * java/awt/geom/AffineTransform.java:
9748 Corrected comments on the field definitions for
9750 (shear): Fixed few errors that caused shear
9751 transformation to be performed incorrectly.
9752 (createInverse): Fixed to return correct
9753 inverse of the given matrix.
9755 2004-02-03 Tom Tromey <tromey@redhat.com>
9757 * java/lang/natPosixProcess.cc (startProcess): Handle case where
9758 PATH or LD_LIBRARY_PATH is not set in parent environment.
9760 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
9762 * gnu/java/awt/peer/gtk/GtkListPeer.java,
9763 java/awt/BorderLayout.java, java/awt/CardLayout.java,
9764 java/awt/CheckboxGroup.java, java/awt/Choice.java,
9765 java/awt/Component.java, java/awt/Container.java,
9766 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
9767 java/awt/LayoutManager2.java, java/awt/List.java,
9768 java/awt/Menu.java, java/awt/MenuBar.java,
9769 java/awt/MenuItem.java, java/awt/Polygon.java,
9770 java/awt/Rectangle.java, java/awt/ScrollPane.java,
9771 java/awt/Scrollbar.java, java/awt/TextArea.java,
9772 java/awt/TextField.java,
9773 java/awt/image/renderable/RenderContext.java,
9774 javax/swing/JApplet.java: Fix handling of alias methods, where a
9775 method has been deprecated in favour of a new one with the same
9776 funtion but a different name. Put the method implementation in
9777 the deprecated method and have the new method call the
9778 deprecated one. Make all other code call the new method.
9780 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
9782 * gnu/java/nio/DatagramChannelImpl.java
9783 (inChannelOperation): New field.
9784 (isInChannelOperation): New accessor.
9785 (setInChannelOperation): New modifier.
9786 (receive): Use capacity() - position() of destination
9787 buffer instead of remaining(). Set and reset our "in
9788 channel operation indicator" before and after delegating
9789 the receive to our datagram socket. Removed testing code.
9790 Update destination buffer's current position if it is
9791 backed by a byte array (hasArray() is true).
9792 (send): Set and reset our "in channel operation indicator"
9793 before and after delegating the send to our datagram socket.
9794 Removed testing code. Update source buffer's current position
9795 if it is backed by a byte array (hasArray() is true).
9796 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
9797 Use capacity() - position() of destination buffer instead
9799 * java/net/DatagramSocket.java (receive): Don't throw an
9800 IllegalBlockingModeException if we have a non-blocking
9801 channel which initiated this operation.
9804 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
9806 * configure.in: Add pkgconfig check for glib and gthread.
9807 * configure: Regenerate.
9809 2004-02-01 Michael Koch <konqueror@gmx.de>
9811 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
9813 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
9814 * verify.cc (debug_print): Mark 'fmt' unused.
9816 2004-01-30 Michael Koch <konqueror@gmx.de>
9818 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
9819 * configure: Regenerated.
9820 * glib-2.0.m4: Removed.
9821 * gtk-2.0.m4: Removed.
9822 * libart.m4: Removed.
9825 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
9827 * gnu/java/net/PlainSocketImpl.java
9828 (inChannelOperation): New field.
9829 (isInChannelOperation): New accessor.
9830 (setInChannelOperation): New modifier.
9831 * gnu/java/nio/ServerSocketChannelImpl.java
9832 (accept): Set and reset our server socket's PlainSocketImpl's
9833 "in channel operation" indicator before and after delegating
9834 the accept to our server socket.
9835 * gnu/java/nio/SocketChannelImpl.java
9836 (connect): Set and reset our socket's PlainSocketImpl's "in channel
9837 operation" indicator before and after delegating the operation to
9841 * java/net/ServerSocket.java (implAccept): Don't throw an
9842 IllegalBlockingModeException if we have a non-blocking
9843 channel which initiated this accept operation.
9844 * java/net/Socket.java (connect): Don't throw an
9845 IllegalBlockingModeException if we have a non-blocking
9846 channel which initiated this connect operation.
9847 * java/nio/channels/spi/AbstractSelectableChannel.java
9848 (configureBlocking): Only call implConfigureBlocking() if
9849 the desired blocking mode is different from our current one.
9851 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
9853 * java/io/BufferedReader.java (sbuf): New field.
9854 (readLine): Use String.valueOf instead of new String() as per
9855 Per Bothner's suggestion. Use instance sbuf field instead of a
9856 local StringBuffer instance.
9857 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
9858 caller's buffer to refill().
9859 (read(void)): Pass our internal work buffer to refill if our
9860 input queue is empty.
9861 (refill): Changed return type to int. Use the specified buffer
9862 instead of our work buffer as per Bryce McKinlay's suggestion.
9863 Return the number of characters read or -1 for EOF.
9865 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9867 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
9869 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9871 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
9872 * Makefile.in: Re-generated.
9873 * gnu/awt/xlib/XFontPeer.java: New file.
9874 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
9875 (setClip): Commented out debug printout.
9876 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
9877 (getFontPeer): Return XFontPeer.
9878 (getLocalGraphicsEnvironment): New method.
9879 (getClasspathFontPeer): New method.
9880 (createFont): New method.
9882 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9884 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
9887 2004-01-29 Kim Ho <kho@redhat.com>
9889 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9890 (gtkLayoutSetVisible): New method
9891 (setMenuBar): Hide layout before setting MenuBar
9892 and reshow it after.
9893 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9894 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
9896 2004-01-28 Michael Koch <konqueror@gmx.de>
9898 * gnu/java/lang/ClassHelper.java
9899 (getPackagePortion): Removed.
9901 2004-01-28 Michael Koch <konqueror@gmx.de>
9903 * javax/swing/JComponent.java
9904 (listenerList): Initalize globally.
9905 (ancestor_list): Removed.
9906 (veto_list): Removed.
9907 (change_list): Removed.
9908 (get_veto_list): Removed.
9909 (get_change_list): Removed.
9910 (get_ancestor_list): Removed.
9911 (removeAncestorListener): Reimplemented.
9912 (removePropertyChangeListener): Likewise.
9913 (removeVetoableChangeListener): Likewise.
9914 (addAncestorListener): Likewise.
9915 (addPropertyChangeListener): Likewise.
9916 (addVetoableChangeListener): Likewise.
9917 (getListeners): New method.
9918 (getAncestorListeners): Likewise.
9919 (getVetoableChangeListeners): Likewise.
9920 (fireVetoableChange): Throws PropertyVetoException.
9921 * javax/swing/JEditorPane.java
9922 (JEditorPane): Throws IOException.
9924 2004-01-28 David Jee <djee@redhat.com>
9926 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9927 (create): Set the default foreground color to
9928 java.awt.SystemColor.windowText.
9930 2004-01-27 Michael Koch <konqueror@gmx.de>
9932 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
9933 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
9934 Reindented to merge with classpath.
9936 2004-01-27 David Jee <djee@redhat.com>
9938 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9939 (addExposeFilter): Handle GtkFramePeer separately.
9940 (removeExposeFilter): Likewise.
9942 2004-01-27 Michael Koch <konqueror@gmx.de>
9944 * gnu/java/net/protocol/http/Connection.java
9945 (getOutputStream): Fixed typo.
9947 2004-01-27 Michael Koch <konqueror@gmx.de>
9949 * java/lang/Class.java
9950 (getConstructor): Removed SecurityException from throws clause.
9951 (_getConstructors): Likewise.
9952 (getConstructors): Likewise.
9953 (getDeclaredConstructor): Likewise.
9954 (getDeclaredClasses): Likewise.
9955 (getDeclaredConstructors): Likewise.
9956 (getDeclaredField): Likewise.
9957 (getDeclaredMethod): Likewise.
9958 (getDeclaredMethods): Likewise.
9959 (getField): Likewise.
9960 (getMethod): Likewise.
9961 (getMethods): Likewise.
9963 2004-01-27 Kim Ho <kho@redhat.com>
9965 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9966 (removeMenuBarPeer): Remove MenuBarPeer argument.
9967 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
9968 (dispose): Call native method.
9969 * java/awt/Frame.java (setMenuBar): Create and remove
9970 MenuBar peers only if the Frame has a peer.
9971 (addNotify): Create the MenuBar peer if one exists.
9972 (removeNotify): Remove MenuBar peer if one exists.
9973 * java/awt/Menu.java: Fix imports.
9974 (addNotify): Don't use full class name.
9975 (removeNotify): Call removeNotify on all children.
9976 * java/awt/MenuBar.java (removeNotify): Call
9977 removeNotify on all children.
9978 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9979 (removeMenuBarPeer): Remove MenuBarPeer argument.
9980 Iterate through children to find the Frame's MenuBar.
9981 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
9983 (dispose): Remove references to the MenuComponent.
9985 2004-01-27 Michael Koch <konqueror@gmx.de>
9987 * javax/swing/AbstractCellEditor.java: Reformated.
9988 * javax/swing/DefaultListSelectionModel.java
9989 (listenerList): Made protected.
9990 (addListSelectionListener): Javadoc added.
9991 (removeListSelectionListener): Likewise.
9992 (getListeners): Likewise.
9993 (getListSelectionListeners): Likewise.
9994 * javax/swing/JComboBox.java: Merged copyright year.
9995 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
9997 2004-01-26 Andrew Haley <aph@redhat.com>
9999 * javax/swing/table/JTableHeader.java: Extend JComponent
10001 2004-01-26 Kim Ho <kho@redhat.com>
10003 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
10006 2004-01-26 Kim Ho <kho@redhat.com>
10008 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
10010 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
10011 height and let the Layout Managers readjust anything that
10013 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10014 (moveLayout): New method. Shift everything in the Gtk
10015 layout in the Y direction by an offset.
10017 2004-01-26 David Jee <djee@redhat.com>
10019 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10020 (handleEvent): Implemented. Handles PaintEvents.
10021 (paint): Implemented. Use GTK native methods to queue updates
10022 for this heavyweight peer.
10023 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10024 (handleEvent): Removed.
10025 * java/awt/Component.java
10026 (paint): Implemented. Explictly paint the heavyweight peer.
10027 (update): Clear the background for heavyweight components.
10028 (paintAll): No need to call peer.paint() anymore.
10029 (processEvent): Don't process PaintEvents here. It's now done in
10030 the peer's handleEvent().
10031 (processPaintEvent): Removed.
10032 * java/awt/Container.java
10033 (paint): No need to call super.paint(). Visit heavyweight
10035 (update): Don't clear the background here. It's done in
10036 Component.update().
10037 (visitChildren): Added check to not recurse into Containers.
10038 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10039 (filter_expose_event_handler): New method. Filter unwanted
10040 expose events while painting heavyweight peers.
10041 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
10042 New method. Connect filter and block pre_event_handler.
10043 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
10044 New method. Disconnect filter and unblock pre_event_handler.
10045 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
10046 New method. Invalidate and update given area.
10047 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10048 (pre_event_handler): Add checks for unwanted expose events.
10050 2004-01-26 David Jee <djee@redhat.com>
10052 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10053 (find_bg_color_widget): For GtkButton, return its child.
10055 2004-01-26 Kim Ho <kho@redhat.com>
10057 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
10059 (setMenuBar): Grab MenuBar height and change insets.
10060 (setBounds): Account for MenuBar height.
10061 (postInsetsChangedEvent): Ditto.
10062 (postSizeAllocateEvent): Remove.
10063 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10064 (menubar_resize_cb): Remove
10065 (setMenuBarPeer): Remove callback.
10066 (getMenuBarHeight): Use size requisition instead of
10069 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
10071 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
10072 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
10074 (setColumns): Remove FIXME -- peer will retrieve number of
10075 columns by calling getColumns.
10076 (setRows): Likewise for number of rows.
10077 (next_text_number): New field.
10078 (paramString): Fix param string.
10079 (generateName): New method.
10080 (getUniqueLong): New method.
10082 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
10084 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
10085 image observer of image loading status.
10086 (getImage (String)): Start image production.
10087 (getImage (URL)): Likewise.
10089 2004-01-25 Michael Koch <konqueror@gmx.de>
10091 * java/lang/Class.java: Imports reworked, reformated.
10092 (Class): Javadoc added.
10093 (forName): Likewise.
10094 (getClasses): Likewise.
10095 (getClassLoader): Likewise.
10096 (getComponentType): Likewise.
10097 (getConstructor): Likewise.
10098 (getConstructors): Likewise.
10099 (getDeclaredConstructor): Likewise.
10100 (getDeclaredClasses): Likewise.
10101 (getDeclaredConstructors): Likewise.
10102 (getDeclaredField): Likewise.
10103 (getDeclaredMethod): Likewise.
10104 (getDeclaredMethods): Likewise.
10105 (getDeclaringClass): Likewise.
10106 (getField): Likewise.
10107 (getInterfaces): Likewise.
10108 (getMethod): Likewise.
10109 (getMethods): Likewise.
10110 (getModifiers): Likewise.
10111 (getName): Likewise.
10112 (getResource): Likewise.
10113 (getResourceAsStream): Likewise.
10114 (getSigners): Likewise.
10115 (setSigners): Likewise.
10116 (getSuperclass): Likewise.
10117 (isArray): Likewise.
10118 (isAssignableFrom): Likewise.
10119 (isInstance): Likewise.
10120 (isInterface): Likewise.
10121 (isPrimitive): Likewise.
10122 (newInstance): Likewise.
10123 (getProtectionDomain): Likewise.
10124 (toString): Likewise.
10126 (initializeClass): Likewise.
10127 (finalize): Likewise.
10129 2004-01-24 Michael Koch <konqueror@gmx.de>
10131 * gnu/java/net/protocol/jar/Connection.java
10132 (hdrHash): Removed.
10134 (gotHeaders): Removed.
10135 (getHeaderField): Removed.
10136 (getHeaderFields): Removed.
10137 (getHeaderFieldKey): Removed.
10139 (getField): Removed.
10140 (getHeaders): Removed.
10142 2004-01-24 Michael Koch <konqueror@gmx.de>
10144 * Makefile.am: Added library version to gtk peer lib.
10145 * Makefile.in: Regenerated.
10147 2004-01-24 Michael Koch <konqueror@gmx.de>
10149 * java/util/zip/InflaterInputStream.java: Merged class documentation
10152 2004-01-21 Jakub Jelinek <jakub@redhat.com>
10154 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
10155 header. For __powerpc64__ provide the default-signal.h definitions
10157 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
10158 instead of the dummy definitions.
10159 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
10160 (powerpc64*-*): Remove with_libffi_default.
10161 Only add -mminimal-toc for 64-bit compilations.
10162 * configure.in: Use powerpc-signal.h on powerpc64 as well.
10163 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
10164 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
10165 * configure: Rebuilt.
10167 2004-01-23 Michael Koch <konqueror@gmx.de>
10169 * gnu/java/nio/FileLockImpl.java: Compile fixes.
10171 2004-01-23 Michael Koch <konqueror@gmx.de>
10173 * java/lang/VMClassLoader.java: Reworked imports.
10175 2004-01-23 Michael Koch <konqueror@gmx.de>
10177 * javax/swing/AbstractAction.java: Reformated.
10179 2004-01-23 Michael Koch <konqueror@gmx.de>
10181 * java/text/CollationElementIterator.java:
10182 (setText): New method.
10184 2004-01-23 Michael Koch <konqueror@gmx.de>
10186 * gnu/java/nio/FileLockImpl.java:
10187 Fixed filename in copyright.
10188 (released): Removed.
10189 (finalize): New method.
10190 * gnu/java/nio/natFileLockImpl.cc
10191 (releaseImpl): Implemented.
10192 * java/nio/channels/FileChannelImpl.java:
10194 (lock): Implemented.
10195 (lockImpl): New method.
10196 (tryLock): Implemented.
10197 (tryLockImpl): New method.
10198 * java/nio/channels/natFileChannelImpl.cc
10199 (lockImpl): New method.
10200 (tryLockImpl): New method.
10202 2004-01-23 Michael Koch <konqueror@gmx.de>
10204 * java/io/FileDescriptor.java
10205 (lock): New method.
10206 (tryLock): New method.
10207 (unlock): New method.
10208 * java/io/natFileDescriptorEcos.cc
10209 (lock): New method.
10210 (tryLock): New method.
10211 (unlock): New method.
10212 * java/io/natFileDescriptorPosix.cc
10213 (lock): New method.
10214 (tryLock): New method.
10215 (unlock): New method.
10216 * java/io/natFileDescriptorWin32.cc
10217 (lock): New method.
10218 (tryLock): New method.
10219 (unlock): New method.
10221 2004-01-23 Michael Koch <konqueror@gmx.de>
10223 * java/io/FileDescriptor.java
10224 (sync): Moved around, added javadoc.
10229 (setLength): Likewise.
10231 (getLength): Likewise.
10232 (getFilePointer): Likewise.
10234 (available): Likewise.
10235 (finalize): Likewise.
10237 2004-01-23 Michael Koch <konqueror@gmx.de>
10239 * javax/swing/AbstractAction.java: Reformated.
10240 (getPropertyChangeListeners): New method.
10241 * javax/swing/AbstractCellEditor.java: Reformated.
10242 (getCellEditorListeners): New method.
10243 * javax/swing/DefaultListSelectionModel.java
10244 (listenerList): New field.
10245 (listeners): Removed.
10246 (get_listeners): Removed.
10247 (addListSelectionListener): Rewritten.
10248 (removeListSelectionListener): Rewritten.
10249 (getListSelectionListeners): New method.
10250 (getListeners): New method.
10251 * javax/swing/JComboBox.java: Imports reworked.
10252 (addActionListener): Implemented.
10253 (removeActionListener): Implemented.
10254 (addItemListener): Implemented.
10255 (removeItemListener): Implemented.
10256 (addPopupMenuListener): Implemented.
10257 (removePopupMenuListener): Implemented.
10258 (getActionListeners): New method.
10259 (getItemListeners): New method.
10260 (getPopupMenuListeners): New method.
10262 2004-01-23 Michael Koch <konqueror@gmx.de>
10264 * gnu/java/net/protocol/http/Connection.java
10265 (connect): Don't initialize bufferedOutputStream if not needed.
10266 (sendRequest): Set property for content length if content is present.
10267 Write content only if present.
10268 (getOutputStream): Check if already connected, dont connect,
10269 initalize bufferedOutputStream if needed.
10271 2004-01-23 Michael Koch <konqueror@gmx.de>
10273 * java/io/FileDescriptor.java
10274 (in, out, err): Added javadoc.
10275 (static): Merged loading code.
10276 (fd, position): Moved around.
10278 2004-01-23 Michael Koch <konqueror@gmx.de>
10280 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
10283 2004-01-23 Michael Koch <konqueror@gmx.de>
10285 * java/lang/Class.java,
10286 java/lang/Object.java,
10287 java/lang/Thread.java: Merged copyright with classpath.
10289 2004-01-23 Michael Koch <konqueror@gmx.de>
10291 * java/io/FileDescriptor.java: Merged copyright with classpath to
10292 start merging this class.
10294 2004-01-22 Tom Tromey <tromey@redhat.com>
10297 * testsuite/libjava.lang/pr13107_2.xfail: New file.
10298 * testsuite/libjava.lang/pr13107_3.xfail: New file.
10299 * testsuite/libjava.lang/pr13107_3.java: New file.
10300 * testsuite/libjava.lang/pr13107_3.out: New file.
10301 * testsuite/libjava.lang/pr13107_2.java: New file.
10302 * testsuite/libjava.lang/pr13107_2.out: New file.
10303 * testsuite/libjava.lang/pr13107.java: New file.
10304 * testsuite/libjava.lang/pr13107.out: New file.
10305 * verify.cc (jsr_ptrs): Removed.
10306 (entry_points): Likewise.
10307 (struct subr_info): Likewise.
10308 (struct subr_entry_info): Likewise.
10309 (type_val::unused_by_subroutine_type): Likewise.
10310 (type::merge): Don't handle unused_by_subroutine_type.
10311 (type::print): Likewise.
10312 (state::flags): Removed.
10313 (state::subroutine): Likewise.
10314 (state::seen_subrs): Likewise.
10315 (state::NO_STACK): Likewise.
10316 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
10317 (state): Updated all methods.
10318 (state::clean_subrs): Removed.
10319 (state::state): Removed `ret_semantics' flag.
10320 (state::copy): Likewise.
10321 (state::add_subr): Removed.
10322 (state::enter_subroutine): Likewise.
10323 (type::set_return_address): New method.
10324 (handle_jsr_insn): Set return address on the type. Always
10325 invalidate PC after call.
10326 (check_nonrecursive_call): Removed.
10327 (~_Jv_BytecodeVerifier): Updated.
10328 (branch_prepass): Removed special handling of jsr.
10329 (note_branch_target): Likewise.
10330 (get_subroutine): Removed.
10331 (state::merge): Don't merge subroutines and don't handle
10332 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
10333 (state::note_variable): Removed.
10334 (state::is_unmerged_ret_state): Likewise.
10335 (state::print): Updated.
10336 (set_variable): Likewise.
10337 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
10338 and jsr_semantics arguments. Updated for new reverification
10340 (pop_jump): Rewrote.
10341 (construct_primitive_array_type): Updated.
10342 (state::next): Removed.
10343 (INVALID_STATE): New define.
10344 (state::INVALID): Removed.
10345 (state::NO_NEXT): New value.
10346 (state::pc, state::next): New fields.
10347 (state::get_pc): New method.
10348 (next_verify_pc): Removed.
10349 (next_verify_state): New field.
10350 (verify_instructions_0): Always check for falling off end.
10351 (linked): New type.
10352 (linked_utf8): Removed.
10353 (states): Changed type.
10354 (type::state_mergeable_p): New method.
10355 (state::state_mergeable_p): Likewise.
10356 (handle_ret_insn): Removed most code.
10357 (state::reverify): New method.
10358 (add_new_state): Likewise.
10359 (state::set_pc): Likewise.
10361 2004-01-22 Jeff Sturm <jsturm@one-point.com>
10364 * testsuite/libjava.compile/PR13733.java: New file.
10365 * testsuite/libjava.compile/PR13733.xfail: New file.
10367 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
10368 Michael Koch <konqueror@gmx.de>
10370 * javax/swing/table/DefaultTableCellRenderer.java
10371 (DefaultTableCellRenderer): Added javadoc for the class and for
10372 the constructor, Border instance, create an EmptyBorder.
10373 (UIResource): Removed the comment at the end of the class
10374 (setForeground): New method.
10375 (setBackground): New method.
10376 (updateUI): New method.
10377 (getTableCellRendererComponent): Rewritten with the help of
10378 dvholten and Stephane Meslin-Weber.
10379 (validate): New method.
10380 (repaint): New method.
10381 (firePropertyChange): New method.
10382 (setValue): New method.
10384 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
10386 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10387 (connectJObject): Replace printf calls with g_assert statements.
10388 Move property-notify-event signal connection to ...
10389 (connectSignals): Connect property-notify-event signal. Iterate
10390 through the vbox's children to find layout.
10392 2004-01-22 Graydon Hoare <graydon@redhat.com>
10394 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
10395 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
10396 Predicate static initialization on GtkToolkit.useGraphics2D().
10397 * java/awt/Component.java (processPaintEvent): Consume event.
10398 * javax/swing/AbstractButton.java: Reimplement, document.
10399 * javax/swing/DefaultButtonModel.java: Reimplement, document.
10400 * javax/swing/JComponent.java (paint): Use double buffer.
10401 (listenerList): Enable member.
10402 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
10403 * javax/swing/JToggleButton.java
10404 (JToggleButton): Modify model constructor.
10405 * javax/swing/SwingUtilities.java
10406 (layoutCompoundLabel): Adjust arithmetic.
10407 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
10408 * javax/swing/plaf/basic/BasicGraphicsUtils.java
10409 (getPreferredButtonSize): Include margins in calculation.
10410 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10411 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
10412 Receive up events from subordinate layout component.
10414 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
10416 * java/awt/Component.java (show): Set visible to true before
10419 2004-01-21 Kim Ho <kho@redhat.com>
10421 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
10423 (removeMenuBarPeer): Make package private.
10424 (setMenuBarPeer): Make package private.
10425 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10426 (menubar_resize_cb): Mark attributes unused.
10427 (getMenuBarHeight): ditto.
10429 2004-01-21 David Jee <djee@redhat.com>
10431 * java/awt/Container.java
10432 (LightweightDispatcher.handleEvent): Add an extra check to avoid
10433 dispatching MOUSE_ENTERED event twice. Translate the point for
10434 the mouse event target before dispatching the event.
10436 2004-01-20 Jakub Jelinek <jakub@redhat.com>
10438 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
10439 lib_org_w3c_dom_la_LDFLAGS): New.
10440 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
10441 * Makefile.in: Rebuilt.
10443 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
10445 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
10446 Calculate proper offsets for heavyweight components packed in
10447 lightweight containers.
10449 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
10450 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
10451 (native create): Add width parameter.
10452 (create): Calculate text entry width based on current font's
10453 metrics and number of columns. Set TextField's font if not
10454 already set. Call native create.
10455 (gtkEntryGetBorderWidth): New native method.
10456 (gtkEntryGetSize): Remove method.
10457 (getMinimumSize): Call minimumSize.
10458 (getPreferredSize): Call preferredSize.
10459 (minimumSize): Calculate minimum size based on backing
10460 GtkEntry's borders, font metrics and number of columns.
10461 (preferredSize): Likewise for preferred size.
10462 (get_border_width): New static function.
10464 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
10465 Override GtkWindowPeer's setResizable method to account for menu
10466 bar height when setting the frame's size.
10468 2004-01-19 Matthias Klose <doko@debian.org>
10470 * libtool-version: Increased `current' to 6.
10472 2004-01-19 Kim Ho <kho@redhat.com>
10474 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10475 (connectJObject): Iterate through the vbox's children to find layout.
10477 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10479 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
10480 isDispatchThread method to replace wrong test condition.
10482 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10484 * java/awt/EventQueue.java (pop): Prevent racing condition to add
10485 events to the queue out of order by acquiring locks in the proper
10486 order and not by releasing one before acquiring the other.
10488 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10490 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
10491 visible so that dialog can be reused.
10493 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10495 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
10496 events may be handled by any queue in the stack.
10498 2004-01-19 Kim Ho <kho@redhat.com>
10500 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
10501 MenuBarPeer parameter.
10502 (removeMenuBarPeer): New native method.
10503 (setMenuBar): Call remove if menu bar is null. Adjust insets
10505 (postSizeAllocateEvent): New method. Called when menu bar size is
10506 allocated. Adjust insets and redo layout.
10507 (GtkFramePeer): Set menu bar during frame creation.
10508 (postConfigureEvent): Adjust position and size to accomodate
10510 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
10511 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
10512 (addNotify): Create the peer if it doesn't exist and call addNotify
10513 for the menu's items.
10514 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
10515 * java/awt/MenuItem.java (addNotify): Create the peer if it
10517 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10518 (removeMenuBarPeer): New method. Remove menu bar on the current
10520 (setMenuBarPeer): Add the menu bar to the current frame and the
10521 callback for size-allocate events on the menu bar.
10522 (getMenuBarHeight): Add menu bar parameter.
10523 (menubar_resize_cb): New callback method for postSizeAllocate events.
10525 Also: Fix indentation on last ChangeLog entry.
10527 2004-01-16 Kim Ho <kho@redhat.com>
10529 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10530 (gtkWidgetGetDimensions): Remove.
10531 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10532 (gtkWidgetGetDimensions): Remove.
10534 2004-01-16 Tom Tromey <tromey@redhat.com>
10536 * java/awt/Container.java: Typo and indentation fixes.
10538 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
10539 * java/lang/natVMClassLoader.cc: ...here. New file.
10540 * Makefile.in: Rebuilt.
10541 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
10543 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10545 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
10546 Discard GDK_ENTER_NOTIFY related to ungrabs.
10548 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10550 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
10551 is called for an intermediate queue.
10553 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
10555 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10556 (window_property_changed_cb): Set id_set.
10558 2004-01-16 Kim Ho <kho@redhat.com>
10560 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
10561 it is a FileDialog and has dimensions of 0 by 0, then the initial
10562 size is set to size request plus insets.
10563 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10564 (gtkWidgetGetDimensions): Override method.
10565 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10566 (gtkWidgetGetDimensions): Override method. Returns size request plus
10569 2004-01-16 Andrew Haley <aph@redhat.com>
10571 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
10572 * sysdep/i386/locks.h: Likewise.
10574 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10576 * java/awt/EventDispatchThread.java (run): Stop running when
10578 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
10579 Reset the queue after transferring its contents.
10580 (push): Start a new dispatch thread if none is running.
10582 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
10584 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10585 (doPolygon): set fill rule of polygon to
10586 WIND_EVEN_ODD by default.
10588 2004-01-15 Olga Rodimina <rodimina@redhat.com>
10590 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10591 Implemented rendering hints related methods.
10592 (getDefaultHints): New helper method. Returns
10593 default rendering hints.
10594 (walkPath): changed to normalize path if
10595 the KEY_STROKE_CONTROL key is in "normalize" mode.
10596 (draw3DRect): changed coordinates of rectangle by +0.5
10597 if in "normalize" mode.
10599 2004-01-15 Tom Tromey <tromey@redhat.com>
10601 * Makefile.in: Rebuilt.
10602 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
10603 (%.lo: %.java) Filter out StackTrace.lo.
10605 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
10607 * configure.in: Add in AC_PREREQ(2.13)
10608 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
10611 2004-01-14 Nathan Bryant <nbryant@optonline.net>
10612 Tom Tromey <tromey@redhat.com>
10615 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
10616 array to superclass.
10617 (init): Changed interface; add URLs here.
10618 (initialize): New static method.
10619 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
10620 (_Jv_RunMain): ... not here.
10622 2004-01-14 Michael Koch <konqueror@gmx.de>
10624 * java/text/MessageFormat.java:
10625 Added descriptions to exceptions.
10626 This fixes PR libgcj/2429.
10628 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10630 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
10631 (push): Make sure push is performed at the top of the thread stack.
10633 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10635 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
10636 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
10637 (native create): Add width and height parameters. Set text
10638 view's size request according to new parameters.
10639 (create): Calculate text view size based on current font's
10640 metrics and number of rows and columns. Set TextArea's font if
10641 not already set. Call native create.
10642 (getMinimumSize): Call minimumSize.
10643 (getPreferredSize): Call preferredSize.
10644 (getHScrollbarHeight): New method.
10645 (getVScrollbarWidth): New method.
10646 (minimumSize): Calculate minimum size based on scrollbar
10647 visibility, scrollbar sizes, font metrics and number of rows and
10649 (preferredSize): Likewise for preferred size.
10650 (gtkTextGetSize): Remove method.
10652 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10654 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10655 (initializeInsets): Remove method.
10656 (GtkComponentPeer): Initialize insets field. Remove call to
10658 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
10660 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
10662 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
10663 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
10664 (latestInsets): Remove field.
10665 (native create): Add insets parameter. Call
10666 window_get_frame_extents. Set the window's default size and
10667 size request based on its frame extents.
10668 (create): Initialize insets.
10669 (postInsetsChangedEvent): New method.
10670 (postConfigureEvent): Remove parameters top, left, bottom,
10671 right. Remove insets-related logic.
10672 (connectJObject): Handle property-notify-event.
10673 (window_get_frame_extents, request_frame_extents,
10674 property_notify_predicate, window_property_changed_cb): New
10676 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10677 (pre_event_handler): Remove insets-related logic for configure
10679 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
10680 Update postConfigureEvent signature.
10682 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10684 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
10685 to handle Window "Closing" events.
10687 2004-01-13 David Jee <djee@redhat.com>
10689 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10690 (setBackground): New method. Children with no explicitly-set
10691 background will be repainted with the parent container's new
10694 2004-01-13 David Jee <djee@redhat.com>
10696 * Makefile.am: Add BitwiseXORComposite.java.
10697 * Makefile.in: Regenerated.
10698 * gcj/Makefile.in: Regenerated.
10699 * include/Makefile.in: Regenerated.
10700 * testsuite/Makefile.in: Regenerated.
10702 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10704 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
10705 not show modal dialogs twice and so that it allows showing a modal
10706 dialog from another modal dialog.
10708 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10710 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
10711 and run secondary dispatch thread to process event queue while this
10714 2004-01-12 Graydon Hoare <graydon@redhat.com>
10716 * gnu/java/awt/gtk/GdkGraphics2D.java
10717 (static): Check GtkToolkit before initializing static state.
10718 (Graphics2D): Don't construct transform with 0.5 unit offset.
10720 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
10722 * gnu/java/awt/BitwiseXORComposite.java: Add.
10723 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
10724 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
10725 (BitwiseXORComposite): Remove inner class.
10727 2004-01-11 Michael Koch <konqueror@gmx.de>
10729 * gnu/java/lang/reflect/TypeSignature.java
10730 (getEncodingOfClass): Documentation fixed.
10731 (getClassForEncoding): Give class loader to Class.forName().
10732 Documentation fixed.
10734 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
10736 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
10738 2004-01-11 Michael Koch <konqueror@gmx.de>
10740 * javax/swing/undo/StateEditable.java
10741 (RCSID): Removed redundant modifiers.
10743 2004-01-10 Michael Koch <konqueror@gmx.de>
10745 * javax/print/attribute/EnumSyntax.java
10746 (getStringTable): Made protected.
10747 (getEnumValueTable): Likewise.
10748 * javax/print/attribute/standard/JobKOctetsProcessed.java
10749 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
10750 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
10751 (JobMediaSheetsCompleted): Made class final.
10752 * javax/print/attribute/standard/OutputDeviceAssigned.java
10753 (getName): Fixed typo.
10754 * javax/print/attribute/standard/RequestingUserName.java
10755 (serialVersionUID): Fixed value.
10757 2004-01-10 Michael Koch <konqueror@gmx.de>
10759 * javax/swing/plaf/basic/BasicButtonUI.java,
10760 javax/swing/plaf/basic/BasicCheckBoxUI.java,
10761 javax/swing/plaf/basic/BasicListUI.java,
10762 javax/swing/plaf/basic/BasicOptionPaneUI.java,
10763 javax/swing/plaf/basic/BasicPanelUI.java,
10764 javax/swing/plaf/basic/BasicRadioButtonUI.java,
10765 javax/swing/plaf/basic/BasicScrollPaneUI.java,
10766 javax/swing/plaf/basic/BasicToggleButtonUI.java,
10767 javax/swing/plaf/basic/BasicViewportUI.java:
10768 Fixed import statements.
10770 2004-01-10 Michael Koch <konqueror@gmx.de>
10772 * gnu/java/awt/image/ImageDecoder.java
10773 (produce): Made public.
10774 * gnu/java/awt/peer/GLightweightPeer.java,
10775 gnu/java/awt/peer/gtk/GtkToolkit.java:
10778 2004-01-10 Michael Koch <konqueror@gmx.de>
10780 * javax/swing/JRadioButtonMenuItem.java,
10781 javax/swing/JSeparator.java,
10782 javax/swing/JSplitPane.java,
10783 javax/swing/JTextPane.java,
10784 javax/swing/JToolBar.java,
10785 javax/swing/ListCellRenderer.java,
10786 javax/swing/ListModel.java,
10787 javax/swing/MenuElement.java,
10788 javax/swing/OverlayLayout.java,
10789 javax/swing/ProgressMonitor.java,
10790 javax/swing/ProgressMonitorInputStream.java,
10791 javax/swing/Renderer.java,
10792 javax/swing/RootPaneContainer.java,
10793 javax/swing/Scrollable.java,
10794 javax/swing/SingleSelectionModel.java,
10795 javax/swing/ToolTipManager.java,
10796 javax/swing/ViewportLayout.java,
10797 javax/swing/event/DocumentEvent.java,
10798 javax/swing/event/SwingPropertyChangeSupport.java,
10799 javax/swing/event/TreeSelectionEvent.java,
10800 javax/swing/event/UndoableEditEvent.java,
10801 javax/swing/text/AbstractDocument.java,
10802 javax/swing/text/AttributeSet.java,
10803 javax/swing/text/Caret.java,
10804 javax/swing/text/ComponentView.java,
10805 javax/swing/text/DefaultCaret.java,
10806 javax/swing/text/DefaultEditorKit.java,
10807 javax/swing/text/Document.java,
10808 javax/swing/text/EditorKit.java,
10809 javax/swing/text/GapContent.java,
10810 javax/swing/text/Keymap.java,
10811 javax/swing/text/MutableAttributeSet.java,
10812 javax/swing/text/PlainEditorKit.java,
10813 javax/swing/text/Segment.java,
10814 javax/swing/text/Style.java,
10815 javax/swing/text/StyledDocument.java,
10816 javax/swing/text/StyledEditorKit.java,
10817 javax/swing/text/TextAction.java,
10818 javax/swing/text/View.java: Fixed import statements.
10820 2004-01-08 Graydon Hoare <graydon@redhat.com>
10822 * javax/swing/JLayeredPane.java: Rewrite to accomodate
10823 djee@redhat.com's recent inverse ordering of Container elements.
10825 2004-01-09 Michael Koch <konqueror@gmx.de>
10827 * gnu/java/lang/ArrayHelper.java
10828 (equalsArray): Removed.
10830 2004-01-09 Andrew Haley <aph@redhat.com>
10832 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
10833 a Utf8Const field before looking at its class.
10835 2004-01-09 Michael Koch <konqueror@gmx.de>
10837 * javax/print/attribute/standard/DocumentName.java,
10838 javax/print/attribute/standard/JobHoldUntil.java,
10839 javax/print/attribute/standard/JobMessageFromOperator.java,
10840 javax/print/attribute/standard/JobName.java,
10841 javax/print/attribute/standard/JobOriginatingUserName.java,
10842 javax/print/attribute/standard/OutputDeviceAssigned.java,
10843 javax/print/attribute/standard/PrinterInfo.java,
10844 javax/print/attribute/standard/PrinterLocation.java,
10845 javax/print/attribute/standard/PrinterMakeAndModel.java,
10846 javax/print/attribute/standard/PrinterMessageFromOperator.java,
10847 javax/print/attribute/standard/PrinterName.java,
10848 javax/print/attribute/standard/RequestingUserName.java: New files.
10849 * Makefile.am (javax_source_files): Added new files.
10850 * Makefile.in: Regenerated.
10852 2004-01-09 Michael Koch <konqueror@gmx.de>
10854 * javax/swing/AbstractAction.java,
10855 javax/swing/AbstractSet.java,
10856 javax/swing/Action.java,
10857 javax/swing/ActionMap.java,
10858 javax/swing/BoundedRangeModel.java,
10859 javax/swing/ButtonModel.java,
10860 javax/swing/CellEditor.java,
10861 javax/swing/CellRendererPane.java,
10862 javax/swing/ComboBoxEditor.java,
10863 javax/swing/DebugGraphics.java,
10864 javax/swing/DefaultCellEditor.java,
10865 javax/swing/DefaultCellRenderer.java,
10866 javax/swing/DefaultComboBoxModel.java,
10867 javax/swing/DefaultDesktopManager.java,
10868 javax/swing/DefaultFocusManager.java,
10869 javax/swing/DefaultListCellRenderer.java,
10870 javax/swing/Icon.java,
10871 javax/swing/JButton.java,
10872 javax/swing/JCheckBoxMenuItem.java,
10873 javax/swing/JDesktopPane.java,
10874 javax/swing/JEditorPane.java,
10875 javax/swing/JMenu.java,
10876 javax/swing/JPanel.java,
10877 javax/swing/JPasswordField.java,
10878 javax/swing/JPopupMenu.java,
10879 javax/swing/JProgressBar.java: Reworked imports.
10881 2004-01-09 Michael Koch <konqueror@gmx.de>
10883 * java/awt/geom/PathIterator.java
10884 (WIND_EVEN_ODD): Removed redundant modifiers.
10885 (WIND_NON_ZERO): Likewise.
10886 (SEG_MOVETO): Likewise.
10887 (SEG_LINETO): Likewise.
10888 (SEG_QUADTO): Likewise.
10889 (SEG_CUBICTO): Likewise.
10890 (SEG_CLOSE): Likewise.
10891 * java/awt/image/SinglePixelPackedSampleModel.java:
10892 Removed redundant semicolon.
10893 * java/io/ObjectInputStream.java
10894 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
10895 * java/util/logging/Filter.java
10896 (isLoggable): Removed redundant modifier.
10897 * java/util/logging/LogManager.java:
10898 Removed redundant semicolon.
10899 * java/util/logging/XMLFormatter.java
10900 (format): Removed unused variable "key".
10902 2004-01-08 Fernando Nasser <fnasser@redhat.com>
10904 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
10905 New name for the former setFile native method.
10906 (setFile): New method.
10907 (setDirectory): Implemented.
10908 (connectSignals): New native method.
10909 (setFilenameFilter): Improve comment.
10910 (getGraphics): Comment.
10911 (gtkHideFileDialog): New method.
10912 (gtkDisposeFileDialog): New method.
10913 (gtkSetFilename): New method.
10914 * java/awt/Dialog.java (show): Block on modal dialogs, but only
10915 for FileDialog for now.
10916 (hide): New method.
10917 (dispose): New method.
10918 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
10919 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
10920 deprecated creation functions. Make dialog modal. Add it to the
10922 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
10924 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
10926 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
10928 (window_closed): New function.
10929 (ok_clicked): New function.
10930 (cancel_clicked): New function.
10932 2004-01-08 Michael Koch <konqueror@gmx.de>
10934 * javax/swing/JLayeredPane.java: Revert changes to standard
10935 boilerplate, reworked imports.
10937 2004-01-07 Tom Tromey <tromey@redhat.com>
10940 * verify.cc (state::merge): Copy changed locals out of subroutine
10942 (state::FLAG_CHANGED): New const.
10943 (state::FLAG_UNUSED): Likewise.
10944 (state::local_changed): Removed. Updated all users.
10945 (state::flags): New field.
10946 (state::merge): Added jsr_semantics argument, more logic.
10947 (push_jump_merge): Added jsr_semantics argument.
10948 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
10949 merging through the jsr instruction.
10951 2004-01-07 Tom Tromey <tromey@redhat.com>
10953 * scripts/MakeDefaultMimeTypes.java: Use \n, not
10956 2004-01-07 Graydon Hoare <graydon@redhat.com>
10958 * java/awt/Container.java (LightweightDispatcher): Implement.
10959 (visitChild): Reuse graphics object.
10960 (dispatchEventImpl): Optionally dispatch to lightweight.
10961 (addNotifyContainerChildren): Build LightweightDispatcher.
10963 2004-01-07 David Jee <djee@redhat.com>
10965 * java/awt/Container.java
10966 (update): Clear only the clipped region, instead of clearing the
10968 (visitChildren): Visit children in descending order.
10970 2004-01-07 Michael Koch <konqueror@gmx.de>
10972 * java/lang/reflect/Array.java: Merged documentation with classpath.
10974 2004-01-07 Michael Koch <konqueror@gmx.de>
10976 * java/text/CollationElementIterator.java
10977 (textIndex): Renamed from index.
10978 * java/text/CollationKey.java
10979 (collator): New member.
10980 (CollationKey): New argument for parent collator.
10981 (equals): Check for same collator, source string and key array.
10982 * java/text/RuleBasedCollator.java:
10984 (RuleBasedCollator): Don't re-initialize frenchAccents with default
10986 (getCollationElementIterator): Rewritten.
10987 (getCollationKey): Added new argument to CollationKey constructor.
10989 2004-01-07 Michael Koch <konqueror@gmx.de>
10991 * gnu/java/nio/DatagramChannelImpl.java
10992 (blocking): Removed.
10993 (DatagramChannelImpl): Call configureBlocking().
10994 (implConfigureBlocking): Dont initialize blocking.
10995 * gnu/java/nio/ServerSocketChannelImpl.java
10996 (blocking): Removed.
10997 (ServerSocketChannelImpl): Call configureBlocking().
10998 (implConfigureBlocking): Dont initialize blocking.
10999 * gnu/java/nio/SocketChannelImpl.java
11000 (blocking): Removed.
11001 (SocketChannelImpl): Call configureBlocking().
11002 (implConfigureBlocking): Dont initialize blocking.
11003 (connect): Use isBlocking().
11004 * java/nio/channels/spi/AbstractSelectableChannel.java
11005 (configureBlocking): Use blockingLock() instead of LOCK.
11006 Set blocking after successfully called implConfigureBlocking().
11007 (register): Use blockingLock() instead of LOCK.
11009 2004-01-07 Michael Koch <konqueror@gmx.de>
11011 * java/net/ServerSocket.java (isBound): Fixed documentation.
11013 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
11015 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
11016 (changeEvent): Create event object on demand.
11017 (DefaultBoundedRangeModel, toString, setValue, setExtent,
11018 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
11019 fireStateChanged): Re-written.
11020 * javax/swing/event/EventListenerList.java: Reformatted, document
11022 (toString): Implemented.
11023 (getListeners): Re-written.
11024 (remove): Re-written.
11026 (NO_LISTENERS): New singleton field.
11027 (listenerList): Declare as transient; document.
11028 (serialVersionUID): Document.
11029 (getListenerCount(Class)): More efficient implementation,
11030 also accepts null argument. Improve Javadoc.
11031 (getListenerCount()): Remove unnecessary cast; docfix.
11032 * javax/swing/undo/UndoableEditSupport.java:
11033 Re-format, document.
11034 (UndoableEditSupport): Set realSource field. Improve documentation.
11035 (_postEdit): Iterate over cloned listener vector.
11036 (toString): Don't emit realSource.
11037 (beginUpdate, endUpdate): Support nested updates.
11038 (postEdit): Use compound edit if present.
11040 2004-01-06 Graydon Hoare <graydon@redhat.com>
11042 * java/awt/Container.java (swapComponents): Add forgotten
11043 function, required for JLayeredPane change.
11045 2004-01-06 Michael Koch <konqueror@gmx.de>
11047 * java/text/CollationElementIterator.java: Reformated.
11048 (CollationElementIterator): Changed order of arguments.
11049 * java/text/RuleBasedCollator.java
11050 (RuleBasedCollator): Merged class documentation.
11051 (CollationElement): Added documentation.
11052 (compare): Reformated, renamed arguments.
11053 (equals): Likewise.
11054 (getCollationElementIterator): Likewise.
11055 (getCollationKey): Likewise.
11057 2004-01-06 Graydon Hoare <graydon@redhat.com>
11059 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
11061 2004-01-06 Michael Koch <konqueror@gmx.de>
11063 * gnu/java/net/protocol/file/Connection.java:
11064 Reformated copyright.
11065 (hdrHash): Removed.
11067 (gotHeaders): Removed.
11068 (getHeaderField): Removed.
11069 (getHeaderField): Removed.
11070 (getHeaderFieldKey): Removed.
11072 (getField): Removed.
11073 (getHeaders): Removed.
11075 2004-01-06 Michael Koch <konqueror@gmx.de>
11077 * javax/print/attribute/standard/DateTimeAtCompleted.java,
11078 javax/print/attribute/standard/DateTimeAtCreation.java,
11079 javax/print/attribute/standard/DateTimeAtProcessing.java,
11080 javax/print/attribute/standard/JobImpressionsCompleted.java,
11081 javax/print/attribute/standard/JobKOctets.java,
11082 javax/print/attribute/standard/JobKOctetsProcessed.java,
11083 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
11084 javax/print/attribute/standard/JobPrioritySupported.java: New files.
11085 * Makefile.am (javax_source_files): Added new files.
11086 * Makefile.in: Regenerated.
11088 2004-01-06 Michael Koch <konqueror@gmx.de>
11090 * java/net/URLConnection.java
11091 (contentHandler): Removed.
11093 (getHeaderFields): Return an empty map instead of null.
11094 (getContent): Connect if needed, renamed "cType" to "type" and
11095 "contentHandler" to "ch" and made it a local variable.
11096 (getPermission): Don't use package in class name.
11097 (setDefaultRequestProperty): Fixed typo in documentation.
11098 (initializeDateFormats): Made locale a local variable.
11100 2004-01-06 Michael Koch <konqueror@gmx.de>
11102 * java/lang/Package.java
11103 (getPackage): Get the current class loader directly.
11104 * java/lang/SecurityManager.java
11105 (currentLoadedClass): Dont iterate over class contexts.
11106 (classLoaderDepth): Don't check class loaders if everything is allowed.
11108 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
11110 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
11111 (pre_event_handler): Set all insets to 0 when a Configure event
11112 is received for a GtkPlug.
11113 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
11114 Make handle long, not int.
11115 (EmbeddedWindow()): New constructor.
11116 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
11118 (setHandle): New method.
11119 (getHandle): Return long, not int.
11120 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
11122 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
11123 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
11124 (create(long)): Take long parameter, not int. Cast gtk_plug_new
11125 argument to GdkNativeWindow.
11126 (construct): New method.
11127 (embed): New method.
11129 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
11130 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
11131 (create(int, int)): New method.
11132 (create): Call new create method.
11133 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
11135 (childResized): Remove native implementation. Implement in
11137 (getHScrollbarHeight, getVScrollbarWidth): Call
11138 gtk_widget_size_request to get scrollbar dimensions.
11139 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
11140 call getVScrollbarWidth and getHScrollbarHeight when vertical
11141 and horizontal scrollbars respectively are needed.
11142 (doLayout): Enlarge child if it is smaller than the viewport.
11144 2004-01-05 Fernando Nasser <fnasser@redhat.com>
11146 * java/awt/Dialog.java (constructor): Accept null title as per spec.
11147 * java/awt/FileDialog.java (constructor): Throw exception on invalid
11148 argument as per spec.
11150 2004-01-05 Fernando Nasser <fnasser@redhat.com>
11152 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
11154 (remove): Ditto. Also, Check for valid argument.
11155 (removeAll): Use peer interface method.
11156 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
11157 native add function.
11158 (nativeRemove): New name for native remove function.
11159 (getHistory): New native function.
11160 (constructor): Generate ItemEvent.
11161 (add): Ditto, if selection is changed.
11162 (remove): Ditto, ditto.
11163 (removeAll): Add implementation.
11164 (handleEvent): Remove. Dead code.
11165 (choicePostItemEvent): Add comment.
11166 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
11167 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
11168 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
11169 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
11170 comments and fix condition to change selection.
11171 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
11172 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
11173 remove all capability.
11174 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
11175 (item_activate): Add cast to remove compiler warning.
11177 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
11179 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
11180 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
11181 (getPreferredSize): Call preferredSize.
11182 (preferredSize): Call gtkWidgetGetPreferredDimensions.
11183 (getMinimumSize): Call minimumSize.
11184 (minimumSize): Call gtkWidgetGetPreferredDimensions.
11185 (gtkWidgetGetDimensions): Return the peer widget's current size
11187 (gtkWidgetGetPreferredDimensions): Return the peer widget's
11188 natural size request.
11190 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
11192 Thanks to Brian Gough <bjg@network-theory.com>
11193 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
11194 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
11196 2004-01-04 Matthias Klose <doko@debian.org>
11198 * aclocal.m4: Rebuilt using "aclocal -I .".
11199 * configure: Rebuilt.
11201 2004-01-03 Per Bothner <per@bothner.com>
11203 * java/util/Date.java (parse): Fix a number of problems.
11204 (skipParens): Remove no-longer-needed method.