1 2004-09-26 Mark Wielaard <mark@klomp.org>
3 * java/lang/System.java (properties): Make package private.
4 * java/lang/Throwable.java (StaticData.nl): Initialize through
5 directly accessing System.properties.getProperty().
7 * java/lang/Throwable.java (nl): Remove static field.
8 (StaticData): New private static inner class.
9 (stackTraceStringBuffer): Use StaticData.nl.
11 2004-09-26 Casey Marshall <csm@gnu.org>
13 * java/security/ProtectionDomain.java
14 (<init>(CodeSource,PermissionCollection)): set `staticBinding' to
17 * java/security/SecureClassLoader.java
18 (defineClass): make protection domain dynamically bound.
19 (getPermissions): call `getCurrentPolicy' to avoid permission
22 2004-09-25 Mark Wielaard <mark@klomp.org>
24 * Makefile.am (core_java_source_files): Add VMTimeZone.java.
25 (nat_source_files): Rename natTimeZone.cc to natVMTimeZone.cc.
26 * Makefile.in: Regenerated.
28 * gcj/javaprims.h: Regenerated.
30 * java/util/TimeZone.java (defaultZone): Use VMTimeZone.
31 (getDefaultTimeZone): Make package private. Check that GMToffset
32 contains at least one digit.
33 (getDefaultTimeZoneId, readTimeZoneFile, readtzFile): (Re)Moved to
35 * util/VMTimeZone.java: New file with above methods.
37 * java/util/natTimeZone.cc: Removed (renamed).
38 * java/util/natVMTimeZone.cc: Added (renamed).
40 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
42 * java/util/TimeZone.java
43 (getDefaultTimeZone): Fixed test to distinguish between hours and
44 minutes in specified timezone.
46 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
48 * java/lang/reflect/Proxy.java (getPackage, ClassFactory): Fixed
49 handling of default package. (generate): Removed confused comments
50 and code about making Method and Field accessible.
52 2004-09-25 Tom Tromey <tromey@redhat.com>
55 * testsuite/libjava.compile/pr17500.java: New file.
57 2004-09-25 Shashank Bapat <shashankbapat@yahoo.com>
58 Mark Wielaard <mark@klomp.org>
60 * gnu/regexp/RE.java (initialize): Add RETokenLookAhead support.
61 * gnu/regexp/RETokenLookAhead.java: New file.
63 * Makefile.am (ordinary_java_source_files): Add RETokenLookAhead.java.
64 * Makefile.in: Regenerated.
66 2004-09-25 Michael Koch <konqueror@gmx.de>
68 * java/io/ObjectStreamField.java:
69 Removed unused import statement.
71 2004-09-24 Tom Tromey <tromey@redhat.com>
74 * testsuite/libjava.compile/pr15656.xfail: New file.
75 * testsuite/libjava.compile/pr15656.java: new file.
78 * testsuite/libjava.lang/pr16789.out: New file.
79 * testsuite/libjava.lang/pr16789.java: New file.
81 2004-09-24 Andrew Haley <aph@redhat.com>
84 * testsuite/libjava.compile/AssertBug.java: New file.
86 2004-09-24 Casey Marshall <csm@gnu.org>
88 * java/util/PropertyPermissionCollection.java
89 (implies): avoid infinite loop.
91 2004-09-24 Andrew John Hughes <gnu_andrew@member.fsf.org>
93 * javax/security/auth/PrivateCredentialPermission.java
94 (PrivateCredentialPermission): added serialization UID
97 2004-09-24 Ilya Perminov <iperminov@logicalsoft.com>
99 * gnu/java/rmi/server/UnicastServer.java
100 (incomingMessageCall): Added code to handle Errors.
101 * gnu/java/rmi/server/UnicastServerRef.java
102 (incomingMessageCall): Added code to handle Errors.
105 2004-09-24 Tom Tromey <tromey@redhat.com>
107 * java/lang/ClassLoader.java (loadedClasses): Declare as HashMap.
108 (definedPackages): Likewise.
110 2004-09-24 Michael Koch <konqueror@gmx.de>
112 * java/io/ObjectInputStream.java:
115 2004-09-24 Casey Marshall <csm@gnu.org>
117 * java/io/ObjectInputStream.java (callReadMethod): re-throw
118 `ClassNotFoundException'.
120 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
122 * java/io/ObjectInputStream.java (readObject): Delegate instantation
123 of Externalizable classes to ObjectStreamClass.
124 * java/io/ObjectStreamClass.java (newInstance): New method to
125 instantiate Externalizable (while ignoring the accessibility of
126 the constructor). (constructor): New field to cache the constructor.
128 2004-09-24 Mark Wielaard <mark@klomp.org>
130 * java/net/URL.java (systemClassLoader): New static field.
131 (getURLStreamHandler): Always use system/application classloader
132 for finding URLStreamhandler. Remove unecessary instanceof checks.
134 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
137 (set): This method now matches the behaviour of the JDK.
138 (DEFAULT_SEARCH_PATH): Added "gnu.inet".
140 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
142 * java/net/URL.java (URL): Delete whitespaces in the protocol string.
144 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
146 * java/net/URL.java (URL(String,String,int,String,URLStreamHandler):
147 Don't set authority if host isn't specified.
149 2004-09-24 Michael Koch <konqueror@gmx.de>
151 * gnu/java/nio/PipeImpl.java: Use VMPipe for native stuff.
152 * gnu/java/nio/SelectorImpl.java: Use VMSelector for native stuff.
153 * gnu/java/nio/VMPipe.java,
154 gnu/java/nio/VMSelector.java:
156 * gnu/java/nio/natPipeImplEcos.cc,
157 gnu/java/nio/natPipeImplPosix.cc,
158 gnu/java/nio/natPipeImplWin32.cc:
160 * gnu/java/nio/natSelectorImplEcos.cc,
161 gnu/java/nio/natSelectorImplPosix.cc,
162 gnu/java/nio/natSelectorImplWin32.cc:
163 Ported to VMSelector.
164 * Makefile.am: Added new files gnu/java/nio/VMPipe.java and
165 gnu/java/nio/VMSelector.java.
166 * Makefile.in: Regenerated.
168 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
170 * java/lang/StackTraceElement.java
171 (className): Renamed field to declaringClass to be compatible
172 with Sun serialization format.
174 2004-09-23 Michael Koch <konqueror@gmx.de>
176 * java/applet/AppletContext.java,
177 java/applet/Applet.java,
178 java/applet/AppletStub.java,
179 java/applet/AudioClip.java:
180 Jalopied and checkstyle clean.
182 2004-09-23 Mark Wielaard <mark@klomp.org>
184 * java/util/Collections.java
185 (binarySearch(List, Object, Comparator)): Explicitly
186 reverse direction in list iterator.
187 (rotate): Just return when list is empty.
189 2004-09-23 Tom Tromey <tromey@redhat.com>
192 * testsuite/libjava.compile/pr17329.java: New file.
195 * testsuite/libjava.jacks/jacks.xfail: Added 9.2-implicit-6 and
198 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
200 * Makefile.am: Run aclocal with -I ../config
201 * acinclude.m4: Delete macros picked up from ../config and tidy.
202 (AM_ICONV,AM_LC_MESSAGES, PKG_CHECK_MODULES): Delete.
203 * aclocal.m4, configure, Makefile.in, gcj/Makefile.in: Regenerate.
204 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
206 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
208 * aclocal.m4: Regenerate with aclocal 1.9.2.
209 * configure: Regenerate.
210 * Makefile.in, gcj/Makefile.in: Regenerate with automake 1.9.2.
211 * include/Makefile.in, testsuite/Makefile.in: Likewise.
213 2004-09-22 David Daney <ddaney@avtrex.com>
216 * java/net/URL.java (URL): Copy userInfo from context.
217 (getUserInfo): Return cached userInfo if present.
219 2004-09-22 Tom Tromey <tromey@redhat.com>
222 * mauve-libgcj: Enable java.lang.Character tests.
224 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
226 * Makefile.am (lib_org_ietf_jgss_la_DEPENDENCIES): Add missing
228 (lib_org_ietf_jgss_la_LIBADD): Likewise.
229 * Makefile.in: Regenerated.
231 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
233 * configure.ac: Introduce AC_C_BIGENDIAN_CROSS for WORDS_BIGENDIAN.
234 * configure: Regenerate.
235 * include/config.h.in: Likewise.
236 * jni/gtk-peer/gtkpeer.h (SWAPU32): Introduce macro to swap pixels.
237 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c: Moved SWAPU32
239 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
240 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_getImagePixels): Convert
241 pixels from 0xBBGGRRAA to 0xAARRGGBB only on Little Endian
243 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c (area_updated):
246 2004-09-22 Tom Tromey <tromey@redhat.com>
249 * java/util/zip/GZIPInputStream.java (read): Avoid sign extension
251 * java/util/zip/InflaterInputStream.java (onebytebuffer): New
253 (read()): New overload.
255 2004-09-21 Tom Tromey <tromey@redhat.com>
257 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
260 2004-09-21 Michael Koch <konqueror@gmx.de>
262 * java/net/Socket.java
263 (getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
265 2004-09-21 Casey Marshall <csm@gnu.org>
267 * javax/crypto/MacSpi.java (clone): Provide meaningful
270 2004-09-21 Tom Tromey <tromey@redhat.com>
273 * Makefile.in: Rebuilt.
274 * Makefile.am (MOSTLYCLEANFILES): Removed.
275 (mostlyclean-local): Remove header files.
277 2004-09-21 Casey Marshall <csm@gnu.org>
279 * java/security/cert/X509CRLSelector.java:
280 (match): remove unreachable try-catch clauses.
281 Reported by: Dalibor Topic <robilad@kaffe.org>
283 2004-09-21 Mark Wielaard <mark@klomp.org>
285 * java/util/TreeMap.java (root): Don't initialize.
286 (TreeMap(Comparator)): Call fabricateTree(0).
287 (fabricateTree): Initialize root and size when count is 0.
289 2004-09-21 Sven de Marothy <sven@physto.se>
291 * java/nio/ByteBuffer.java (hashCode): Implemented.
292 * java/nio/CharBuffer.java: Likewise.
293 * java/nio/DoubleBuffer.java: Likewise.
294 * java/nio/FloatBuffer.java: Likewise.
295 * java/nio/LongBuffer.java: Likewise.
296 * java/nio/IntBuffer.java: Likewise.
297 * java/nio/ShortBuffer.java: Likewise.
299 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
301 * javax/security/auth/x500/X500Principal.java: Fix some merge glitches.
303 2004-09-21 Michael Koch <konqueror@gmx.de>
305 * javax/net/ssl/SSLServerSocket.java:
306 Removed comment about "Do not edit this file, it's generated.".
308 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
310 Import the big Crypto/Jessie/Security merge from Classpath.
312 * Makefile.am: Add imported files.
313 * Makefile.in: Regenerate.
315 2004-08-14 Casey Marshall <csm@gnu.org>
317 The Big Crypto Merge of 2004.
319 * javax/security/auth/x500/X500Principal.java: Replaced with GNU
322 Files imported from GNU Crypto.
323 * javax/crypto/BadPaddingException.java
324 * javax/crypto/Cipher.java
325 * javax/crypto/CipherInputStream.java
326 * javax/crypto/CipherOutputStream.java
327 * javax/crypto/CipherSpi.java
328 * javax/crypto/EncryptedPrivateKeyInfo.java
329 * javax/crypto/ExemptionMechanism.java
330 * javax/crypto/ExemptionMechanismException.java
331 * javax/crypto/ExemptionMechanismSpi.java
332 * javax/crypto/IllegalBlockSizeException.java
333 * javax/crypto/KeyAgreement.java
334 * javax/crypto/KeyAgreementSpi.java
335 * javax/crypto/KeyGenerator.java
336 * javax/crypto/KeyGeneratorSpi.java
337 * javax/crypto/Mac.java
338 * javax/crypto/MacSpi.java
339 * javax/crypto/Makefile.am
340 * javax/crypto/NoSuchPaddingException.java
341 * javax/crypto/NullCipher.java
342 * javax/crypto/NullCipherImpl.java
343 * javax/crypto/SealedObject.java
344 * javax/crypto/SecretKey.java
345 * javax/crypto/SecretKeyFactory.java
346 * javax/crypto/SecretKeyFactorySpi.java
347 * javax/crypto/ShortBufferException.java
348 * javax/crypto/interfaces/DHKey.java
349 * javax/crypto/interfaces/DHPrivateKey.java
350 * javax/crypto/interfaces/DHPublicKey.java
351 * javax/crypto/interfaces/PBEKey.java
352 * javax/crypto/spec/DESKeySpec.java
353 * javax/crypto/spec/DESedeKeySpec.java
354 * javax/crypto/spec/DHGenParameterSpec.java
355 * javax/crypto/spec/DHParameterSpec.java
356 * javax/crypto/spec/DHPrivateKeySpec.java
357 * javax/crypto/spec/DHPublicKeySpec.java
358 * javax/crypto/spec/IvParameterSpec.java
359 * javax/crypto/spec/PBEKeySpec.java
360 * javax/crypto/spec/PBEParameterSpec.java
361 * javax/crypto/spec/RC2ParameterSpec.java
362 * javax/crypto/spec/RC5ParameterSpec.java
363 * javax/crypto/spec/SecretKeySpec.java
364 * javax/security/auth/AuthPermission.java
365 * javax/security/auth/DestroyFailedException.java
366 * javax/security/auth/Destroyable.java
367 * javax/security/auth/Policy.java
368 * javax/security/auth/PrivateCredentialPermission.java
369 * javax/security/auth/RefreshFailedException.java
370 * javax/security/auth/Refreshable.java
371 * javax/security/auth/Subject.java
372 * javax/security/auth/SubjectDomainCombiner.java
373 * javax/security/auth/callback/Callback.java
374 * javax/security/auth/callback/CallbackHandler.java
375 * javax/security/auth/callback/ChoiceCallback.java
376 * javax/security/auth/callback/ConfirmationCallback.java
377 * javax/security/auth/callback/LanguageCallback.java
378 * javax/security/auth/callback/NameCallback.java
379 * javax/security/auth/callback/PasswordCallback.java
380 * javax/security/auth/callback/TextInputCallback.java
381 * javax/security/auth/callback/TextOutputCallback.java
382 * javax/security/auth/callback/UnsupportedCallbackException.java
383 * javax/security/auth/login/AccountExpiredException.java
384 * javax/security/auth/login/AppConfigurationEntry.java
385 * javax/security/auth/login/Configuration.java
386 * javax/security/auth/login/CredentialExpiredException.java
387 * javax/security/auth/login/FailedLoginException.java
388 * javax/security/auth/login/LoginContext.java
389 * javax/security/auth/login/LoginException.java
390 * javax/security/auth/login/NullConfiguration.java
391 * javax/security/auth/x500/X500PrivateCredential.java
392 * javax/security/sasl/AuthenticationException.java
393 * javax/security/sasl/AuthorizeCallback.java
394 * javax/security/sasl/RealmCallback.java
395 * javax/security/sasl/RealmChoiceCallback.java
396 * javax/security/sasl/Sasl.java
397 * javax/security/sasl/SaslClient.java
398 * javax/security/sasl/SaslClientFactory.java
399 * javax/security/sasl/SaslException.java
400 * javax/security/sasl/SaslServer.java
401 * javax/security/sasl/SaslServerFactory.java
402 * org/ietf/jgss/ChannelBinding.java
403 * org/ietf/jgss/GSSContext.java
404 * org/ietf/jgss/GSSCredential.java
405 * org/ietf/jgss/GSSException.java
406 * org/ietf/jgss/GSSManager.java
407 * org/ietf/jgss/GSSName.java
408 * org/ietf/jgss/MessageProp.java
409 * org/ietf/jgss/Oid.java
410 * org/ietf/jgss/MessagesBundle.properties
412 Files imported from Jessie <http://www.nongnu.org/jessie/>
413 * javax/net/ServerSocketFactory.java
414 * javax/net/SocketFactory.java
415 * javax/net/VanillaServerSocketFactory.java
416 * javax/net/VanillaSocketFactory.java
417 * javax/net/ssl/HandshakeCompletedEvent.java
418 * javax/net/ssl/HandshakeCompletedListener.java
419 * javax/net/ssl/HostnameVerifier.java
420 * javax/net/ssl/HttpsURLConnection.java
421 * javax/net/ssl/KeyManager.java
422 * javax/net/ssl/KeyManagerFactory.java
423 * javax/net/ssl/KeyManagerFactorySpi.java
424 * javax/net/ssl/ManagerFactoryParameters.java
425 * javax/net/ssl/SSLContext.java
426 * javax/net/ssl/SSLContextSpi.java
427 * javax/net/ssl/SSLException.java
428 * javax/net/ssl/SSLHandshakeException.java
429 * javax/net/ssl/SSLKeyException.java
430 * javax/net/ssl/SSLPeerUnverifiedException.java
431 * javax/net/ssl/SSLPermission.java
432 * javax/net/ssl/SSLProtocolException.java
433 * javax/net/ssl/SSLServerSocket.java
434 * javax/net/ssl/SSLServerSocketFactory.java
435 * javax/net/ssl/SSLSession.java
436 * javax/net/ssl/SSLSessionBindingEvent.java
437 * javax/net/ssl/SSLSessionBindingListener.java
438 * javax/net/ssl/SSLSessionContext.java
439 * javax/net/ssl/SSLSocket.java
440 * javax/net/ssl/SSLSocketFactory.java
441 * javax/net/ssl/TrivialHostnameVerifier.java
442 * javax/net/ssl/TrustManager.java
443 * javax/net/ssl/TrustManagerFactory.java
444 * javax/net/ssl/TrustManagerFactorySpi.java
445 * javax/net/ssl/X509KeyManager.java
446 * javax/net/ssl/X509TrustManager.java
447 * javax/security/cert/Certificate.java
448 * javax/security/cert/CertificateEncodingException.java
449 * javax/security/cert/CertificateException.java
450 * javax/security/cert/CertificateExpiredException.java
451 * javax/security/cert/CertificateNotYetValidException.java
452 * javax/security/cert/CertificateParsingException.java
453 * javax/security/cert/X509CertBridge.java
454 * javax/security/cert/X509Certificate.java
456 2004-08-20 Casey Marshall <csm@gnu.org>
458 * java/security/cert/X509CRLSelector.java: New file.
459 * java/security/cert/X509CertSelector.java: New file.
461 2004-09-15 Michael Koch <konqueror@gmx.de>
463 * gnu/java/net/protocol/file/Handler.java
464 (openConnection): Don't throw exception if host part for file: URI is
465 present. setURL() keeps file: protocol if ftp: protocol is not
468 2004-09-14 Richard Henderson <rth@redhat.com>
470 * java/lang/natPosixProcess.cc (waitForSignal): Ignore return
473 2004-09-12 Tom Tromey <tromey@redhat.com>
475 * javax/naming/CompoundName.java (CompoundName): Don't check for
476 separator in "flat" case.
478 2004-09-12 Michael Koch <konqueror@gmx.de>
480 * libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces
481 AM_CONFIG_HEADER by AC_CONFIG_FILES.
482 * libltdl/Makefile.in, libltdl/aclocal.m4, libltdl/configure:
485 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
488 * win32-threads.cc (_Jv_ThreadInitData): Zero out thread
489 handle in newly-allocated _Jv_Thread_t.
490 (_Jv_ThreadDestroyData): Close thread handle.
491 (_Jv_ThreadStart): Remove obsolete comment.
492 Store handle of newly-created thread in _Jv_Thread_t.
493 * include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
494 before including <windows.h>
495 #define _Jv_HaveCondDestroy
497 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
499 * java/lang/natThread.cc (finalize_native): Destroy
500 join conditional variable and mutex if these destroy
501 operations are supported.
503 2004-09-10 Dalibor Topic <robilad@kaffe.org>
505 * gnu/java/net/protocol/file/Connection.java (permission): New field.
506 (DEFAULT_PERMISSION): New constant.
507 (Connection): Create a FilePermission with permission to read file.
509 2004-09-10 Michael Koch <konqueror@gmx.de>
511 * gnu/java/net/protocol/file/Connection.java
512 (getLastModified): Moved around.
513 (getPermission): Return stored permission.
515 2004-09-10 Michael Koch <konqueror@gmx.de>
517 * Makefile.in: Regenerate.
519 2004-09-10 Michael Koch <konqueror@gmx.de>
521 * Makefile.am: Reverted accidently commited stuff.
522 * configure: Regenerated.
524 2004-09-10 Michael Koch <konqueror@gmx.de>
526 * gnu/java/net/protocol/file/Connection.java
527 (lineSeparator): Made non-final.
529 (connect): Initialize lineSeparator lazily. Use ByteArrayInputStream
530 instead of StringBufferInputStream.
532 2004-09-10 Michael Koch <konqueror@gmx.de>
534 * gnu/java/net/protocol/file/Connection.java
535 (connect): Handle file is a directory case.
537 2004-09-10 Michael Koch <konqueror@gmx.de>
540 (xlib_includes): Removed.
541 (AM_CPPFLAGS): Renamed from INCLUDES.
542 (lib_gnu_awt_xlib_la_CPPFLAGS): New automake variable.
543 * Makefile.in: Regenerate.
545 2004-09-09 Michael Koch <konqueror@gmx.de>
547 * java/security/ProtectionDomain.java,
548 * java/util/PropertyPermissionCollection.java:
549 Fixed javadocs all over.
551 2004-09-09 Sven de Marothy <sven@physto.se>
553 Patch from David Gilbert <david.gilbert@object-refinery.com>
554 * java/lang/Comparable.java: Fixed documentation errors.
555 * java/util/Arrays.java: Likewise.
557 2004-09-09 Andrew John Hughes <gnu_andrew@member.fsf.org>
559 * java/net/Inet4Address.java
560 (Inet4Address): Added comment to serialization UID.
561 * java/text/Format.java
562 (Format): Added comment to serialization UID.
564 2004-09-09 Michael Koch <konqueror@gmx.de>
566 * java/lang/System.java
567 (err): Fixed javadoci to point to setErr() and not setOut().
569 2004-09-09 Jeroen Frijters <jeroen@frijters.net>
571 (normalizePath): Added special case for windows systems.
573 2004-09-09 Michael Koch <konqueror@gmx.de>
576 (dupSeparator): Made private.
577 (File(URI)): New constructor.
578 (getParentFile): Fixed javadoc.
579 (createTempFile): Reformated.
580 (setReadOnly): Added comment.
581 (deleteOnExit): Merged javadoc with classpath version.
583 2004-09-09 Michael Koch <konqueror@gmx.de>
585 * Makefile.am: Don't try to include deps.mk.
586 * Makefile.in: Regenerated.
588 2004-09-08 Bryce McKinlay <mckinlay@redhat.com>
590 * configure.ac (AC_CONFIG_COMMANDS): Don't create subdirectories and
592 * configure: Rebuilt.
594 2004-09-04 Mohan Embar <gnustuff@thisiscool.com>
596 * java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces):
597 Changed pfn from static local to local.
599 2004-09-03 Bryce McKinlay <mckinlay@redhat.com>
600 H.J. Lu <hongjiu.lu@intel.com>
603 * Makefile.am (GCJCOMPILE): Remove definition.
604 (AM_CFLAGS): Add -fclasspath and -fbootclasspath flags.
605 Use LTGCJCOMPILE, not GCJCOMPILE, to build .lo targets.
606 * Makefile.in: Rebuilt.
608 2004-09-03 Kelley Cook <kcook@gcc.gnu.org>
610 * configure.ac (enable-gc-debug): Update help for new syntax.
611 * configure: Regenerate.
613 2004-09-03 David Daney <ddaney@avtrex.com>
615 * include/mips-signal.h: Update copyright.
617 2004-09-03 David Daney <ddaney@avtrex.com>
619 * configure.host: Use -fno-use-divide-subroutine for mips*-*-linux*.
620 * include/mips-signal.h: Added HANDLE_FPE support.
622 2004-08-31 Michael Koch <konqueror@gmx.de>
624 * javax/swing/plaf/basic/BasicTextAreaUI.java
625 (create): New method.
626 * javax/swing/text/DefaultHighlighter.java
627 (DefaultHighlightPainter.debugRect): Removed.
628 * javax/swing/text/StyleContext.java
629 (DEFAULT_STYLE): New field.
631 2004-08-31 Michael Koch <konqueror@gmx.de>
633 * javax/swing/plaf/basic/BasicLookAndFeel.java
634 (initComponentDefaults): Add keybindings for selection.backward and
635 selection-forward for text components.
636 * javax/swing/plaf/basic/BasicTextUI.java
637 (paintSafely): Paint highlight only when something is actually
639 * javax/swing/text/DefaultCaret.java
640 (handleHighlight): New method.
641 (setSelectionVisible): Don't do anything when nothing changes.
643 (moveDot): Reimplemented. Handle highlight.
644 (setDot): Set mark too. Handle highlight.
645 (getSelectionPainter): New method.
646 * javax/swing/text/DefaultEditorKit.java
647 (defaultActions): Added new actions for text selection.
648 * javax/swing/text/DefaultHighlighter.java
649 (DefaultHighlightPainter): New inner class.
650 (DefaultPainter): New field.
651 (paint): Implemented.
652 * javax/swing/text/PlainView.java
653 (paint): Don't draw background here again.
654 * javax/swing/text/Utilities.java
655 (getTabbedTextWidth): Use width of ' ' instead of 'm' for tabsize.
656 (drawTabbedText): Likewise.
658 2004-08-31 Graydon Hoare <graydon@redhat.com>
660 * javax/swing/JComponent.java
661 (resetKeyboardActions): Add null checks.
663 2004-08-31 Graydon Hoare <graydon@redhat.com>
665 * javax/swing/DefaultButtonModel.java:
666 Skip group notification when no group is set.
668 2004-08-31 Graydon Hoare <graydon@redhat.com>
670 * javax/swing/JColorChooser.java:
671 Make a couple inner classes static, for jikes.
673 2004-08-31 Michael Koch <konqueror@gmx.de>
675 * javax/swing/plaf/basic/BasicTextUI.java
676 (RottView.modelToView): New method.
677 (UpdateHandler): Renamed from EventHandler.
678 (updateHandler): Renamed from eventHandler.
679 (modelToView): Implemented.
680 * javax/swing/text/AbstractDocument.java
681 (BranchElement.getElement): Return null for non-existing indeces.
682 (BranchElement.getElementIndex): Return 0 in some corner cases.
683 * javax/swing/text/FieldView.java
684 (modelToView): New method.
685 * javax/swing/text/PlainView.java
686 (modelToView): Made public.
688 2004-08-31 Kim Ho <kho@redhat.com>
690 * Makefile.am: New files.
691 * Makefile.in: Regenerate.
692 * gcj/Makefile.in: Regenerate.
693 * include/Makefile.in: Regenerate.
694 * java/awt/Color.java: Fix documentation.
695 (RGBtoHSB): Use floats for conversions.
696 * javax/swing/ButtonGroup.java: Run Jalopy.
697 (setSelected): Reimplement.
698 * javax/swing/DefaultButtonModel.java: Run Jalopy.
699 (changeState): Let ButtonGroup know that the button
701 * javax/swing/JColorChooser.java: Implement.
702 * javax/swing/JLabel.java: Run Jalopy.
703 * javax/swing/JSpinner.java: Run Jalopy.
704 (setValue): New method.
705 * javax/swing/JTabbedPane.java: Run Jalopy.
706 (removeTabAt): Call correct remove method.
707 * javax/swing/SpinnerNumberModel.java: Run Jalopy.
708 (getPreviousValue): Compare minimum value.
709 * javax/swing/Timer.java: Run Jalopy.
710 (run): Comment out println.
711 * javax/swing/ToolTipManager.java:
712 (mouseMoved): Get new tooltip text for location.
713 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
715 * javax/swing/colorchooser/ColorChooserComponentFactory.java:
717 * javax/swing/colorchooser/DefaultColorSelectionModel.java:
719 (setSelectedColor): Fire ChangeEvent.
720 * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
722 * javax/swing/colorchooser/DefaultPreviewPanel.java:
724 * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
726 * javax/swing/colorchooser/DefaultSwatchChooserPanel.java:
728 * javax/swing/plaf/basic/BasicArrowButton.java:
729 (getArrow): Fix size of upward pointing button.
730 * javax/swing/plaf/basic/BasicColorChooserUI.java:
732 * javax/swing/plaf/basic/BasicSliderUI.java:
733 (getWidthOfWidestLabel): Use preferred dimensions.
734 (getHeightOfTallestLabel): Ditto.
735 * javax/swing/plaf/basic/BasicSpinnerUI.java:
737 (mousePressed): Disable changes to spinner if it is not enabled.
738 * testsuite/Makefile.in: Regenerate.
741 2004-08-31 Michael Koch <konqueror@gmx.de>
743 * javax/swing/plaf/basic/BasicTableHeaderUI.java,
744 javax/swing/plaf/basic/BasicTableUI.java:
745 Added copyright notice.
747 2004-08-31 Olga Rodimina <rodimina@redhat.com>
749 * Makefile.am: Added new files.
750 * Makefile.in: Regenerate.
751 * javax/swing/ComboBoxEditor.java: Added javadocs.
752 * javax/swing/ComboBoxModel.java: Likewise.
753 * javax/swing/DefaultComboBoxModel.java: Implemented.
754 * javax/swing/DefaultListCellRenderer.java: Added javadocs
755 and ran through jalopy to fix formatting style.
756 (getListCellRendererComponent): Use appropriate border
757 if renderer has focus and use noFocusBorder when it doesn't.
758 * javax/swing/JComboBox.java: Implemented.
759 * javax/swing/JList.java:
760 (locationToIndex): New Method. Implemented.
761 (indexToLocation): New Method.
762 * javax/swing/JPopupMenu.java:
763 (visible): New field.
764 (isVisible): Changed to use new field above.
765 (setVisible): Likewise.
766 * javax/swing/MutableComboBoxModel.java: Added javadocs.
767 * javax/swing/plaf/basic/BasicArrowButton.java:
768 (shadow): Changed default color to Color.gray.
769 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
770 UI delegate for JComboBox.
771 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
772 Popup menu containing list of JComboBox's items.
773 * javax/swing/plaf/basic/BasicComboBoxEditor.java: New File.
774 * javax/swing/plaf/basic/BasicComboBoxRenderer.java: New File.
775 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
776 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
777 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
778 (popupMenuWillBecomeVisible): Set selected path to the first
779 element only if it is of type MenuElement. Also fix formatting
781 * javax/swing/plaf/basic/ComboPopup.java: Added javadocs and missing
784 2004-08-31 Michael Koch <konqueror@gmx.de>
786 * javax/swing/text/AbstractDocument.java
787 (createBranchElement): Use new constructor of BranchElement.
788 (createLeafElement): Renamed arguments.
789 (getRootElements): Implemented.
790 (BranchElement.start): Removed.
791 (BranchElement.end): Likewise.
792 (BranchElement.BranchElement): Fixed arguments.
793 (BranchElement.getEndOffset): Reimplemented.
794 (BranchElement.getStartOffset): Likewis.
795 * javax/swing/text/DefaultCaret.java
796 (paint): Draw simple vertical line as caret instead of a rectangle.
797 * javax/swing/text/JTextComponent.java
798 (setText): Use doc directly.
799 * javax/swing/text/PlainView.java
800 (nextTabStop): Implemented.
801 * javax/swing/text/Utilities.java
802 (drawTabbedText): nextTabStop() returns an absolute x position.
803 (getTabbedTextWidth): Likewise.
805 2004-08-31 Graydon Hoare <graydon@redhat.com>
807 * java/awt/Component.java
808 (isFocusTraversable): Predicate on isLightweight()
809 (setFocusable): Set isFocusTraversableOverridden.
810 (requestFocus): Predicate peer dispatch on !isLightweight()
811 (requestFocusInWindow): Likewise.
812 (dispatchEventImpl): Coordinate with KeyboardFocusManager.
813 * java/awt/Container.java
814 (dispatchEventImpl): Predicate on event mask.
815 (LightweightDispatcher): Remove focus machinery.
816 * java/awt/DefaultFocusTraversalPolicy.java
817 (accept): Expand predicate to include isFocusable().
818 * java/awt/DefaultKeyboardFocusManager.java:
819 Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
820 * java/awt/KeyboardFocusManager.java
821 (redispatchEvent): Synchronize on event to prevent feedback.
822 * javax/swing/AbstractButton.java
823 (ButtonFocusListener): Remove class.
824 (init): Set focusPainted, focusable.
825 * javax/swing/ActionMap.java (get): Check parent for null.
826 * javax/swing/InputMap.java (get): Likewise.
827 * javax/swing/JComponent.java
828 (inputMap_whenFocused): New InputMap.
829 (inputMap_whenAncestorOfFocused): Likewise.
830 (inputMap_whenInFocusedWindow): Likewise.
831 (getActionForKeyStroke): Rewrite.
832 (getConditionForKeystroke): Likewise.
833 (ActionListenerProxy): New private class.
834 (setInputMap): Implement.
835 (getInputMap): Likewise.
836 (setActionMap): Likewise.
837 (getActionMap): Likewise.
838 (processComponentKeyEvent): New empty method.
839 (processKeyEvent): Implement.
840 (processKeyBinding): Likewise.
841 (resetKeyboardActions): Rewrite.
842 * javax/swing/KeyStroke.java: Rewrite.
843 * javax/swing/SwingUtilities.java
844 (notifyAction): Implement.
845 (replaceUIActionMap): Likewise.
846 (replaceUIInputMap): Likewise.
847 * javax/swing/plaf/basic/BasicButtonListener.java
848 (focusGained): Implement.
849 (focusLost): Repaint if focusPainted().
850 (installKeyboardActions): Install pressed / released actions.
851 (uninstallKeyboardActions): Implement.
852 * javax/swing/plaf/basic/BasicButtonUI.java
853 (focusColor): New field.
854 (installDefaults): Load focus color, install input map.
855 (installKeyboardActions): Implement.
856 (uninstallKeyboardActions): Likewise.
857 (paintFocus): Rewrite.
858 * javax/swing/plaf/basic/BasicLookAndFeel.java
859 (Button.focus): New default, midPurple.
860 * javax/swing/plaf/basic/BasicTextUI.java
862 (installUI): Get doc from kit, load defaults.
863 (getKeymapName): Implement.
864 (createKeymap): Likewise.
865 (installKeyboardActions): Likewise.
866 (getInputMap): Likewise.
867 (getActionMap): Likewise.
868 (createActionMap): Likewise.
869 * javax/swing/text/AbstractDocument.java
870 (getStartPosition): Implement.
871 (getEndPosition): Likewise.
872 * javax/swing/text/DefaultEditorKit.java
873 (CopyAction): New class.
874 (CutAction): Likewise.
875 (DefaultKeyTypedAction): Likewise.
876 (InsertBreakAction): Likewise.
877 (InsertContentAction): Likewise.
878 (InsertTabAction): Likewise.
879 (PasteAction): Likewise.
880 (defaultActions): New static table.
881 (createCaret): Implement.
882 (getActions): Likewise.
883 * javax/swing/text/JTextComponent.java
884 (KeymapWrapper): New private class.
885 (KeymapActionMap): Likewise.
886 (DefaultKeymap): New class.
887 (keymaps): New static table.
889 (getKeymap): Implement.
890 (removeKeymap): Likewise.
891 (addKeymap): Likewise.
892 (setKeymap): Likewise.
893 (loadKeymap): Likewise.
894 (getActions): Likewise.
896 (JTextComponent): Build and install default keymap.
897 * javax/swing/text/TextAction.java
898 (textAction): Call super properly.
899 (getTextComponent): Implement.
900 * javax/swing/text/Utilities.java
901 (drawTabbedText): Adjust position by ascent.
903 2004-08-31 David Jee <djee@redhat.com>
907 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
908 (setEnabled): Make it a native method.
909 * java/awt/DefaultKeyboardFocusManager.java
910 (postProcessKeyEvent): Only post event if the menu item
912 * java/awt/MenuItem.java:
913 Private field 'enabled' should be true by default.
914 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
915 (setEnabled): New function.
917 2004-08-31 David Jee <djee@redhat.com>
921 * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
922 (nativeSetHelpMenu): New native method declaration.
923 (addHelpMenu): Call nativeSetHelpMenu().
925 * java/awt/MenuBar.java
926 (setHelpMenu): Call addNotify() on the new help menu.
927 (add): Call addNotify() on the new menu.
928 (addNotify): Set the help menu if one exists.
929 * java/awt/peer/MenuBarPeer.java
931 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
932 (nativeSetHelpMenu): New method.
934 2004-08-31 Graydon Hoare <graydon@redhat.com>
936 * Makefile.am: Add new files.
937 * Makefile.in: Regenerate.
938 * javax/swing/Box.java: Fix setting of layout in ctor.
939 * javax/swing/JScrollPane.java: Scroll headers as well.
940 * javax/swing/JTable.java: Reimplement.
941 * javax/swing/JViewPort.java: Only add non-null children.
942 * javax/swing/ScrollPaneLayout.java: Correct header calculations.
943 * javax/swing/Timer.java: Fix stopping null waker.
944 * javax/swing/plaf/basic/BasicTableHeaderUI.java: New file.
945 * javax/swing/plaf/basic/BasicTableUI.java: New file.
946 * javax/swing/table/DefaultTableCellRenderer.java: Configure.
947 * javax/swing/table/DefaultTableColumnModel.java: Flesh out.
948 * javax/swing/table/DefaultTableModel.java: Clean up.
949 * javax/swing/table/JTableHeader.java: Implement.
951 2004-08-31 Mark Wielaard <mark@klomp.org>
953 * javax/swing/JSpinner.java (getChangeListeners): Remove double
956 2004-08-31 Mark Wielaard <mark@klomp.org>
958 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
959 Declare variables at top of functions/block.
960 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Likewise.
962 2004-08-31 Mark Wielaard <mark@klomp.org>
964 * java/lang/Rectangle.java (intersects): Check r.width and r.height
967 2004-08-31 Michael Koch <konqueror@gmx.de>
969 * javax/swing/text/PlainView.java
970 (selectedColor): New field.
971 (unselectedColor): Likewise.
973 (updateMetrics): New method.
974 (lineToRect): Likewise.
975 (modelToView): Likewise.
976 (drawSelectedText): Use color from JTextComponent ad draw with
978 (drawUnselectedText): Likewise.
979 (paint): Initialize helper fields.
980 * javax/swing/text/View.java
981 (getChildAllocation): New method.
982 (getViewIndex): Likewise.
983 (getToolTipText): Likewise.
985 2004-08-31 Michael Koch <konqueror@gmx.de>
987 * javax/swing/text/Utilities.java
988 (drawTabbedText): Reimplemented.
989 (getTabbedTextWidth): Likewise.
991 2004-08-31 Michael Koch <konqueror@gmx.de>
993 * javax/swing/plaf/basic/BasicTextUI.java
994 (installDefaults): Install caret and highlighter.
995 (modelToView): Use Bias.Forward when calling sibling.
996 * javax/swing/text/AbstractDocument.java
997 (ElementEdit): Implements DocumentEvent.ElementChange.
998 (ElementEdit.ElementEdit): New method.
999 (ElementEdit.getChildrenAdded): Likewise.
1000 (ElementEdit.getChildrenRemoved): Likewise.
1001 (ElementEdit.getElement): Likewise.
1002 (ElementEdit.getIndex): Likewise.
1003 * javax/swing/text/DefaultCaret.java
1005 (textComponent): Renamed from parent, made private.
1006 (selectionVisible): Renamed from vis_sel, made private.
1007 (blinkRate): Renamed from blink, made private.
1008 (magicCaretPosition): Renamed from magic, made private.
1009 (visible): Renamed from vis, made private.
1010 (dot): Made private.
1012 (deinstall): Remove as MouseMotionListener.
1013 (install): Initialize textComponent first. Add as MouseMotionListener.
1014 (paint): Reimplemented.
1015 * javax/swing/text/JTextComponent.java
1016 (setCaret): Deinstall old caret, install new one and fire property
1017 change after setting property.
1018 (setHighlighter): Deinstall old highlighter, install new one and fire
1019 property change after setting property.
1020 (setCaretColor): Fire property change after setting property.
1021 (setDisabledTextColor): Likewise.
1022 (setSelectedTextColor): Likewise.
1023 (setSelectionColor): Likewise.
1024 (modelToView): New method.
1026 2004-08-31 Michael Koch <konqueror@gmx.de>
1028 * javax/swing/text/AbstractDocument.java
1029 (getText): Simplified.
1030 * javax/swing/text/Segment.java
1031 (current): New field.
1032 (current): Reimplemented.
1034 (getIndex): Likewise.
1037 (previous): Likewise.
1038 (setIndex): Likewise.
1040 2004-08-31 Michael Koch <konqueror@gmx.de>
1042 * javax/swing/plaf/basic/BasicButtonUI.java
1043 (defaultTextIconGap): Made protected.
1044 (defaultTextShiftOffset): Likewise.
1045 (textShiftOffset): New field.
1046 (clearTextShiftOffset): New method.
1047 (getTextShiftOffset): Likewise.
1048 (setTextShiftOffset): Likewise.
1050 2004-08-31 Michael Koch <konqueror@gmx.de>
1052 * javax/swing/plaf/basic/BasicTextUI.java
1053 (installUI): Add eventHandler as property listener.
1054 (uninstallUI): remove eventHandler as propert listener.
1055 (installDefaults): Added comment.
1056 (installListeners): Likewise.
1057 (installKeyboardActions): Likewise.
1058 (uninstallDefaults): Likewise.
1059 (uninstallListeners): Likewise.
1060 (uninstallKeyboardActions): Likewise.
1062 2004-08-31 Michael Koch <konqueror@gmx.de>
1064 * javax/swing/text/AbstractDocument.java:
1065 Fixed some typos in comments.
1066 (insertString): Reimplemented.
1068 (replace): New method.
1069 (children): Dont use fully qualified class name.
1070 (DefaultDocumentEvent.offset): Renamed from off.
1071 (DefaultDocumentEvent.length): Renamed from len.
1072 (DefaultDocumentEvent.type): New field.
1073 (DefaultDocumentEvent.DefaultDocumentEvent): New constructor.
1074 (DefaultDocumentEvent.getType): Implemented.
1076 2004-08-31 Michael Koch <konqueror@gmx.de>
1078 * javax/swing/plaf/basic/BasicTextUI.java
1079 (RootView.textComponent): Removed.
1080 (RootView.RootView): Don't initialize textComponent.
1081 (RootView.getViewFactory): New method.
1082 (EventHandler): New inner class.
1083 (rootView): Initialize at instance creation.
1084 (eventHandler): New field.
1085 (installUI): Don't create view hierarchy directly,
1086 call modelChanged() instead.
1087 (modelChanged): New method.
1088 * javax/swing/text/JTextComponent.java
1089 (setDocument): Fire property change event.
1091 2004-08-31 Michael Koch <konqueror@gmx.de>
1093 * javax/swing/plaf/basic/BasicTextUI.java
1094 (RootView.paint): Removed debug output.
1095 (paintSafely): Draw highlighter before text.
1096 (paintBackground): Use background color of text component.
1097 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
1100 2004-08-31 Michael Koch <konqueror@gmx.de>
1102 * javax/swing/plaf/basic/BasicToolBarUI.java
1103 (BasicToolBarUI): Fixed arguments for constructor.
1104 (createUI): Fixed creation of object.
1106 2004-08-31 Michael Koch <konqueror@gmx.de>
1108 * javax/swing/DefaultListSelectionModel.java
1109 (fireValueChanged): Renamed from fireSelectionValueChanged,
1112 2004-08-31 Michael Koch <konqueror@gmx.de>
1114 * javax/swing/text/TabSet.java
1115 (TabSet): Implements java.io.Serializable.
1116 * javax/swing/text/TabStop.java
1117 (TabStop): Implements java.io.Serializable.
1118 (TabStop): Made public.
1120 2004-08-31 Michael Koch <konqueror@gmx.de>
1122 * javax/swing/JComponent.java
1123 (setUI): Fire PropertyChange.
1124 * javax/swing/JLabel.java
1125 (text): Renamed from labelText.
1126 (horizontalAlignment): New default vlaue.
1127 (icon): Renamed from activeIcon.
1128 (displayedMnemonic): Renamed from mnemonicKey, added default value.
1129 (displayedMnemonicIndex): Renamed from underlineChar.
1130 (setDisplayedMnemonic): Reimplemented.
1131 * javax/swing/JRadioButton.java
1132 (JRadioButton): New constructors.
1133 * javax/swing/JTextField.java
1134 (JTextField): Throw exception if colums < 0, initialitialz
1135 this.columns directly and initialize document with text conditionally.
1137 2004-08-31 Michael Koch <konqueror@gmx.de>
1139 * javax/swing/plaf/basic/BasicFormattedTextFieldUI.java,
1140 javax/swing/plaf/basic/BasicPasswordFieldUI.java,
1141 javax/swing/plaf/basic/BasicTextAreaUI.java: New files.
1142 * javax/swing/text/FieldView.java
1143 (paint): Just call super method for now.
1144 * Makefile.am: Added new files.
1145 * Makefile.in: Regenerated.
1147 2004-08-31 Ka-Hing Cheung <kahing@javabsp.org>
1149 * javax/swing/AbstractSpinnerModel.java,
1150 javax/swing/JSpinner.java,
1151 javax/swing/SpinnerNumberModel.java,
1152 javax/swing/plaf/basic/BasicSpinnerUI.java:
1154 * javax/swing/plaf/basic/BasicLookAndFeel.java
1155 (initClassDefaults): Added defaults for BasicSpinnerUI.
1157 2004-08-31 Michael Koch <konqueror@gmx.de>
1159 * Makefile.am: Added new files.
1160 * Makefile.in: Regenerated.
1162 2004-08-31 Michael Koch <konqueror@gmx.de>
1164 * javax/swing/TransferHandler.java,
1165 javax/swing/plaf/basic/ComboPopup.java: New files
1166 * Makefile.am: Added javax/swing/TransferHandler.java and
1167 javax/swing/plaf/basic/ComboPopup.java
1168 * Makefile.in: Regenerated.
1170 2004-08-31 Roman Kennke <roman@ontographics.com>
1172 * javax/swing/text/Utilities.java: New file.
1174 2004-08-31 Michael Koch <konqueror@gmx.de>
1176 * Makefile.am: Added javax/swing/text/Utilities.java.
1177 * Makefile.in: Regenerated.
1179 2004-08-31 Graydon Hoare <graydon@redhat.com>
1181 * javax/swing/text/SimpleAttributeSet.java: New file.
1182 * javax/swing/text/StyleConstants.java: New file.
1183 * javax/swing/text/StyleContext.java: New file.
1184 * javax/swing/text/TabSet.java: New file.
1185 * javax/swing/text/TabStop.java: New file.
1186 * javax/swing/text/AbstactDocument.java:
1187 (AbstractElement): Implement attribute support.
1188 * javax/swing/text/AttributeSet.java
1189 (NameAttribute): New static field.
1190 (ResolveAttribute): New static field.
1191 * Makefile.am: Update for new files.
1192 * Makefile.in: Regenerate.
1194 2004-08-31 Craig Black <craig.black@aonix.com>
1196 * gnu/java/awt/peer/gtk/GdkGraphics.java
1197 (drawImage): Add support for scaling pixmaps.
1198 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1199 (copyAndScalePixmap): New native method.
1201 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1204 * jni/gtk-peer/gthread-jni.c: Include stdio.h. Eliminate
1205 type-punning compiler warnings using unions.
1206 (throw): Replace bzero with memset.
1208 2004-08-31 Andreas Tobler <a.tobler@schweiz.ch>
1209 Thomas Fitzsimmons <fitzsim@redhat.com>
1211 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: Move
1212 NSA_PB macros to gtkpeer.h. Include gtkpeer.h.
1213 * jni/gtk-peer/gtkpeer.h: Move NSA_PB macros here.
1214 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1215 (nativeSetIconImageFromDecoder): Use NSA_GET_PB_PTR macro.
1217 2004-08-31 Mark Wielaard <mark@klomp.org>
1219 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
1220 #include gdk.h, not gtk.h. #include jni.h, native_state.h, string.h
1221 and stdlib.h, not gtkpeer.h.
1222 (*vm): New static variable.
1223 (areaPreparedID): Make static.
1224 (areaUpdatedID): Likewise.
1225 (area_prepared): Get and use JNIEnv through stored JavaVM *vm.
1226 (area_prepared): Likewise.
1227 (area_updated): Likewise.
1229 (initStaticState): Initialize *vm javaVM.
1230 (pumpBytes): Use given env, not global gdk_env.
1232 2004-08-31 Mark Wielaard <mark@klomp.org>
1234 * java/awt/geom/CubicCurve2D.java (solveCubic): Removed duplicate
1237 2004-08-31 Sven de Marothy <sven@physto.se>
1239 * java/awt/geom/CubicCurve2D.java: Reindent.
1240 (contains): Implemented.
1241 (intersects): Implemented.
1242 * java/awt/geom/QuadCurve2D.java: Likewise.
1243 * java/awt/geom/GeneralPath.java: Reindent and document.
1244 Fully (re)implemented using separate xpoints and ypoints
1246 * java/awt/geom/RoundRectangle2D.java: Several bugfixes (Bug #6007).
1248 2004-08-31 Michael Koch <konqueror@gmx.de>
1250 * javax/swing/JMenuItem.java
1251 (getMenuDragMouseListeners): New method.
1252 (getMenuKeyListeners): Likewise.
1254 2004-08-31 Michael Koch <konqueror@gmx.de>
1256 * javax/swing/AbstractButton.java
1257 (model): Made protected.
1258 (actionListener): Likewise.
1259 (changeListener): Likewise.
1260 (itemListener): Likewise.
1261 (multiClickThreshhold): New field.
1262 (getActionListeners): New method.
1263 (getChangeListeners): Likewise.
1264 (getItemListeners): Likewise.
1265 (fireItemStateChanged): Simplified implementation.
1266 (fireActionPerformed): Likewise.
1267 (fireStateChanged): Likewise.
1268 (getMultiClickThreshhold): New method.
1269 (setMultiClickThreshhold): Likewise.
1271 2004-08-31 Tom Tromey <tromey@redhat.com>
1273 * java/awt/image/Kernel.java (clone): Use super.clone().
1275 2004-08-31 David Jee <djee@redhat.com>
1278 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1279 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1280 (nativeSetIconImageFromData): New native method declaration.
1281 (setIconImage): Handle images not produced from GdkPixbufDecoder.
1282 * gnu/java/awt/peer/gtk/GtkImage.java
1283 (getPixelCache): New method.
1284 (getColorModel): New method.
1285 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1286 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1287 (free_pixbuf_data): New helper function.
1288 (nativeSetIconImageFromData): New function.
1290 2004-08-31 Graydon Hoare <graydon@redhat.com>
1293 * javax/swing/JLayeredPane.java
1294 (setLayer): Permit changing layer after addition.
1295 (setPosition): Permit over-length positions.
1296 (layerToRange): Compare intValue()s.
1297 * javax/swing/Box.java (createHorizontalBox): Implement.
1298 (createRigidArea): Likewise.
1299 (createVerticalBox): Likewise.
1301 2004-08-31 Kim Ho <kho@redhat.com>
1303 * java/awt/Component.java:
1304 (processMouseEvent): Consume event after
1305 listeners process it.
1306 (processMouseMotionEvent): ditto.
1307 (processMouseWheelEvent): ditto.
1308 * java/awt/Container.java:
1309 (acquireComponentForMouseEvent):
1310 Do not dispatch to events that have been
1311 removed from the Container.
1312 (handleEvent): Consume the MouseEvents.
1313 * javax/swing/RepaintManager.java:
1314 (paintDirtyRegions): Do not add to list of
1315 damaged areas if the component has no root.
1317 2004-08-31 Michael Koch <konqueror@gmx.de>
1319 * javax/swing/plaf/basic/BasicMenuItemUI.java: Clean ip imports.
1321 2004-08-31 Mark Wielaard <mark@klomp.org>
1323 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
1324 null when a MissingResourceException is thrown. Should never happen.
1326 2004-08-31 Mark Wielaard <mark@klomp.org>
1328 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1329 when argument is null.
1331 2004-08-31 Mark Wielaard <mark@klomp.org>
1333 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1334 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
1335 Define hid at start of function.
1336 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
1339 2004-08-31 Mark Wielaard <mark@klomp.org>
1341 * gnu/java/awt/EmbeddedWindow.java: Reindent.
1342 * javax/swing/JButton.java: Reindent.
1343 * javax/swing/JCheckBox.java: Reindent.
1345 2004-08-31 Mark Wielaard <mark@klomp.org>
1347 * Makefile.am (gtk_c_source_files): Added
1348 jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c.
1349 (gtk_awt_peer_sources): Added
1350 gnu/java/awt/peer/gtk/GThreadMutex.java and
1351 gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java.
1352 * Makefile.in: Regenerated.
1354 2004-08-31 Archie Cobbs <archie@dellroad.org>
1356 * jni/gtk-peer/gthread-jni.c: don't #include nonexistent files
1358 2004-08-31 Steven Augart <augart@watson.ibm.com>
1360 * jni/gtk-peer/gthread-jni.c (c-font-lock-extra-types):
1361 Added jfieldID, jmethodID.
1363 2004-08-31 Mark Wielaard <mark@klomp.org>
1365 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1366 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): Initialize
1367 gdk_env before calling any gdk or gtk function.
1369 * gnu/java/awt/peer/gtk/GtkMainThread.java (gtkInitCalled): New field.
1370 (GtkMainThread): Call wait() in while loop waiting for gtkInitCalled.
1371 (run): Set gtkInitCalled.
1373 2004-08-31 Steven Augart <augart@watson.ibm.com>
1375 * gnu/java/awt/peer/gtk/GtkMainThread.java (run): Pass the value of
1376 the gnu.classpath.awt.gtk.portable.native.sync system property to C.
1378 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1379 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): New argument,
1380 portableNativeSync. Delegate PORTABLE_NATIVE_SYNC work to
1382 (init_glib_threads): New function.
1384 2004-08-31 Mark Wielaard <mark@klomp.org>
1386 * jni/gtk-peer/gthread-jni.c: Define MIN_, MAX_ and NORM_
1387 PRIORITY when not already defined in header file.
1389 2004-08-31 Mark Wielaard <mark@klomp.org>
1391 * jni/gtk-peer/gthread-jni.c (setup_cache): Call
1392 ExceptionOccurred, not ExceptionCheck, when we don't have JNI 1.2.
1394 2004-08-31 Steven Augart <augart@watson.ibm.com>
1396 * gnu/native/jni/gtk-peer/gthread-jni.c: Indentation fixes.
1397 Implemented missing functions for GTK2.
1398 Added error handling.
1399 Renamed static functions out of the g_ namespace.
1400 Added TRACE_API_CALLS, EXPLAIN_TROUBLE, EXPLAIN_BROKEN,
1401 EXPLAIN_BADLY_BROKEN, and DELETE_LOCAL_REFS options.
1402 Rewrote global-reference code.
1403 Eliminated cascading errors.
1404 (mutex_trylock_jni_impl) Fully implemented.
1405 (cond_timed_wait_jni_impl) Went from millisecond to microsecond
1407 (setup_cache) New function.
1408 (mutex_cond_wait_jni_impl, mutex_cond_timed_wait_jni_impl) Fixed
1409 bug where they were not unlocking the GMutex associated with the
1410 condition variable during the wait on that condition variable.
1412 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
1413 native/jni/gtk-peer/gthread-jni.c,
1414 native/jni/gtk-peer/gthread-jni.h
1415 (g_thread_jni_functions): Renamed to ...
1416 (portable_native_sync_jni_functions): this name.
1417 (gdk_vm): Renamed to...
1418 (the_vm): this name.
1420 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1421 (gdk_vm): Removed duplicate definition.
1422 (gtkInit): Removed stray message to stdout.
1423 (gtkInit): Use g_malloc and g_free instead of malloc and free.
1424 (gtkInit): Fix a const assignment bug.
1425 (gtkInit): Simplified code.
1427 * gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
1428 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
1429 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h,
1430 gnu/java/awt/peer/gtk/GThreadMutex.java:
1433 2004-08-31 Mark Wielaard <mark@klomp.org>
1435 * javax/swing/Box.java: Put FIXME comment above class declaration.
1436 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1437 * javax/swing/JCheckBox.java: Likewise.
1438 * javax/swing/JDialog.java: Likewise.
1439 * javax/swing/JRadioButton.java: Likewise.
1440 * javax/swing/JToggleButton.java: Likewise.
1441 * javax/swing/UIManager.java: Likewise.
1442 * javax/swing/border/TitledBorder.java: Likewise.
1443 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1444 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1445 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1446 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1447 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1448 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1449 * javax/swing/text/JTextComponent.java: Likewise.
1451 2004-08-31 David Jee <djee@redhat.com>
1454 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1455 (setIconImage): Add a FIXME for unhandled cases.
1457 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1460 * gnu/awt/LightweightRedirector.java: Call getModifiersEx, not
1461 getModifiers. Replace old button masks with new ones.
1462 * gnu/awt/xlib/XEventLoop.java: Likewise.
1463 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Likewise.
1464 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1465 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
1466 * gnu/java/awt/peer/gtk/GtkListPeer.java: Likewise.
1467 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
1468 * java/awt/AWTKeyStroke.java: Remove old modifier masks.
1469 * java/awt/Component.java: Replace old modifier masks with new
1471 * java/awt/Container.java: Call getModifiersEx, not
1473 * java/awt/DefaultKeyboardFocusManager.java: Likewise. Remove
1475 * javax/swing/JMenuItem.java: Replace old button masks with new
1477 * javax/swing/KeyStroke.java: Call getModifiersEx, not
1479 * javax/swing/SwingUtilities.java: Likewise.
1480 * javax/swing/plaf/basic/BasicButtonListener.java: Likewise.
1481 * javax/swing/plaf/basic/BasicInternalFrameUI.java: Likewise.
1482 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Replace old
1483 mask macros with new ones.
1484 * jni/gtk-peer/gtkpeer.h: Replace old button and modifier mask
1485 macros with new ones representing new masks.
1487 2004-08-31 Craig Black <craig.black@aonix.com>
1489 * gnu/java/awt/peer/gtk/GdkGraphics.java
1490 (drawRoundRect): Implemented.
1491 (fillRoundRect): Implemented.
1492 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1493 (drawRoundRect): Reimplemented to match GdkGraphics.
1494 (fillRoundRect): Reimplemented to match GdkGraphics.
1496 2004-08-31 Mark Wielaard <mark@klomp.org>
1498 * Makefile.in: Regenerated.
1500 2004-08-31 Michael Koch <konqueror@gmx.de>
1502 * gnu/java/awt/EmbeddedWindow.java
1503 (addNotify): Use AccessController to allow execution of privileged
1506 2004-08-31 Michael Koch <konqueror@gmx.de>
1508 * gnu/java/awt/EmbeddedWindow.java
1510 (addNotify): Set peer via reflection.
1511 (setWindowPeer): Removed.
1512 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1513 * Makefile.am (nat_source_files):
1514 Removed gnu/java/awt/natEmbeddedWindow.cc.
1516 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1518 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
1519 and gnu/java/security/action/SetAccessibleAction.java.
1521 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1523 * gnu/java/security/action/GetPropertyAction.java (setParameters):
1524 Renamed from 'setName'. New 2-argument form with default value.
1525 (run): Pass default 'value' parameter to System.getProperty().
1526 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
1529 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1531 * gnu/java/security/action/GetPropertyAction.java: New class.
1532 * gnu/java/security/action/SetAccessibleAction.java: New class.
1534 2004-08-31 David Jee <djee@redhat.com>
1536 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1537 (setIconImage): Check if image is null.
1539 2004-08-31 David Jee <djee@redhat.com>
1541 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1542 (create): Set the icon image.
1543 (nativeSetIconImage): New native method declaration.
1544 (setIconImage): Implement.
1545 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1546 (nativeSetIconImage): New function.
1548 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1550 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1551 (filenameFilterCallback): Declare local variable accepted before use.
1553 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1555 * gnu/java/awt/ComponentDataBlitOp.java:
1558 2004-08-31 Tom Tromey <tromey@redhat.com>
1560 * gnu/java/awt/peer/GLightweightPeer.java,
1561 gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1562 gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1563 javax/swing/JScrollPane.java: Removed
1566 2004-08-31 David Jee <djee@redhat.com>
1568 * java/awt/DefaultKeyboardFocusManager.java
1569 (postProcessKeyEvent): Only activate MenuShortcuts on KEY_PRESSED
1570 event. Fix shift modifier checking.
1571 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1572 (accel_attach): Remove.
1573 (setupAccelGroup): Remove calls to accel_attach.
1575 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1577 * gnu/java/awt/peer/gtk/GtkArg.java: Remove file.
1578 * gnu/java/awt/peer/gtk/GtkArgList.java: Remove file.
1580 * Makefile.am (gtk_awt_peer_sources): Remove GtkArg.java and
1582 (gtk_c_files): Use CAIRO_CFLAGS and PANGOFT2_CFLAGS, not _LIBS.
1583 * Makefile.in: Regenerate.
1584 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1585 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1586 (create(String)): New method.
1587 (create): Call new create method.
1588 (getArgs): Remove method.
1589 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
1590 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
1591 (nativeCreate): Rename to create.
1592 (gtkSetLabel): Rename to gtkButtonSetLabel.
1593 (gtkToggleButtonSetActive): New method.
1594 (create): Call gtkToggleButtonSetActive and gtkButtonSetLabel.
1595 (setState): Replace set call with gtkToggleButtonSetActive.
1596 (setLabel): Replace gtkSetLabel call with gtkButtonSetLabel.
1597 (getArgs): Remove method.
1598 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1599 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1600 (gtkWidgetSetSensitive): New method.
1601 (gtkWidgetSetParent): Likewise.
1602 (GtkComponentPeer): Call setParent, setComponentBounds and
1603 setVisibleAndEnabled.
1604 (setParent): New method.
1605 (setComponentBounds): New method.
1606 (setVisibleAndEnabled): New method.
1607 (setEnabled): Call gtkWidgetSetSensitive.
1608 (getArgs): Remove method.
1609 Remove all set methods.
1610 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Call
1611 gtkWindowSetModal, setTitle and setResizable.
1612 (getArgs): Remove method.
1613 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1614 (setComponentBounds): New method.
1615 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
1616 Replace set call with gtkWindowSetResizable.
1617 (getArgs): Remove method.
1618 (create): Call setTitle and setResizable.
1619 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
1620 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1621 (gtkWindowSetTitle): New method.
1622 (gtkWindowSetResizable): New method.
1623 (gtkWindowSetModal): New method.
1624 (setParent): New method.
1625 (setVisibleAndEnabled): New method.
1626 (getArgs): Remove method.
1627 (setTitle): Call gtkWindowSetTitle.
1628 (setResizable): Call gtkWindowSetResizable.
1629 * jni/gtk-peer/gtkpeer.h [DEBUG_LOCKING]: New define to turn on
1630 and off locking instrumentation.
1632 2004-08-31 Kim Ho <kho@redhat.com>
1634 * Makefile.am: Add new file.
1635 * Makefile.in: Regenerate.
1636 * gcj/Makefile.in: Regenerate
1637 * include/Makefile.in:
1638 * java/awt/Container.java:
1639 (acquireComponentForMouseEvent): Respect
1640 the event mask when looking for candidate.
1641 * javax/swing/JComponent.java:
1642 Remove toolTip field.
1643 (createToolTip): Create a tooltip on demand.
1644 (setToolTipText): Register with the ToolTipManager.
1645 (getToolTipText(MouseEvent)): Return getToolTipText().
1646 * javax/swing/JToolTip.java: Implement.
1647 * javax/swing/Timer.java: Jalopy.
1648 (restart): Call stop, then start.
1649 (stop): Interrupt the timer rather than wait for
1650 the timer to come to a stop naturally.
1651 * javax/swing/ToolTipManager.java: Implement.
1652 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1653 Change ToolTip.background color.
1654 * javax/swing/plaf/basic/BasicToolTipUI.java:
1656 * testsuite/Makefile.in: Regenerate
1658 2004-08-31 Jerry Quinn <jlquinn@optonline.net>
1660 * java/awt/image/DirectColorModel.java (DirectColorModel): Fix
1661 constructor param comments.
1663 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1665 * java/awt/Component.java: Document AWT 1.0 event handler
1668 2004-08-31 Roman Kennke <roman@ontographics.com>
1670 * javax/swing/Box.java:
1671 (createGlue): Implemented
1672 (createHorizontalGlue): Implemented
1673 (createHorizontalStrut): Implemented
1674 (createVerticalGlue): Implemented
1675 (createVerticalStrut): Implemented
1677 2004-08-31 David Jee <djee@redhat.com>
1679 * gnu/java/awt/peer/gtk/GtkChoicePeer.java
1680 (GtkChoicePeer): Do not automatically select first item.
1681 (getHistory): Remove.
1682 (nativeGetSelected): New method.
1683 (nativeRemoveAll): New method.
1684 (add): Use nativeGetSelected() instead of getHistory().
1686 (removeAll): Call nativeRemoveAll().
1687 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
1688 (create): Migrate to GtkComboBox.
1690 (nativeAdd): Likewise.
1691 (nativeRemove): Likewise.
1693 (nativeRemoveAll): New method.
1694 (nativeGetSelected): New method.
1695 (selection_changed): New method.
1696 (getHistory): Remove.
1697 (item_activate): Remove.
1698 (item_removed): Remove.
1699 (connect_choice_item_selectable_hook): Remove.
1701 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1703 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create): Use tf
1704 variable in setEditable call.
1706 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
1707 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
1708 (gtkWidgetSetBackground): New method.
1709 (gtkWidgetSetForeground): Likewise.
1710 (create): Set peer's editable state based on awtComponent's.
1712 * java/awt/Button.java (Button()): Use empty string rather than
1713 null in no-label constructor.
1715 2004-08-31 Roman Kennke <roman@ontographics.com>
1717 * javax/swing/BoxLayout.java: Reimplement.
1719 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1721 * gnu/java/awt/peer/gtk/GdkGraphics.java,
1722 gnu_java_awt_peer_gtk_GdkGraphics.c
1723 (initState(GtkComponentPeer)): Don't return array of colour
1725 (GdkGraphics(int,int)): Set default font to size 12.
1726 (GdkGraphics(GtkComponentPeer)): Set graphics colour to
1727 component's foreground colour.
1728 * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1729 gnu_java_awt_peer_gtk_GdkGraphics2D.c
1730 (initState(GtkComponentPeer)): Don't return array of colour
1732 (GdkGraphics2D(GtkComponentPeer)): Set foreground and background
1733 colours to component's colours.
1734 (current_colors_of_widget): Remove function.
1735 * gnu/java/awt/peer/gtk/GtkOffScreenImage.java (getGraphics):
1736 Return a new graphics object.
1737 * java/awt/Font.java (toString): Fix format.
1738 * java/awt/Graphics.java (toString): Likewise.
1740 2004-08-31 Craig Black <craig.black@aonix.com>
1742 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1743 (addTearOff): New function.
1744 * gnu/java/awt/peer/gtk/GtkMenuPeer.java (addTearOff):
1746 (init): Call addTearOff() when menu.isTearOff().
1748 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1750 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
1751 Default implementation.
1752 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
1753 Implement using GdkPixbufDecoder.
1755 2004-08-31 David Jee <djee@redhat.com>
1757 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
1758 (GtkComponentPeer): Use gtkWidgetGetPreferredDimensions() for
1759 setting the size of GtkFileDialogPeers.
1760 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1761 (gtkWidgetGetPreferredDimensions): For widgets extending GtkWindow,
1762 use their default sizes rather than their natural requisitions.
1764 2004-08-31 Michael Koch <konqueror@gmx.de>
1766 * javax/swing/JFormattedTextField.java
1767 (JFormattedTextField): Implemented.
1768 * javax/swing/text/DefaultEditorKit.java
1769 (BeepAction): New inner class.
1770 * javax/swing/text/Segment.java
1771 (partialReturn): New field.
1772 (setPartialReturn): New method.
1773 (isPartialReturn): Likewise.
1774 * javax/swing/text/View.java
1775 (createFragment): Fixed typo.
1776 (getStartOffset): New method.
1777 (getEndOffset): Likewise.
1779 2004-08-31 Michael Koch <konqueror@gmx.de>
1781 * javax/swing/table/DefaultTableColumnModel.java
1782 (serialVersionUID): Made private.
1783 (listenerList): Initialize.
1784 (changeEvent): Initialize.
1785 * javax/swing/table/JTableHeader.java
1786 (JTableHeader): New constructors.
1787 (createDefaultColumnModel): New method.
1788 * javax/swing/table/TableColumn.java
1789 (setHeaderRenderer): Simplified code.
1790 (setCellRenderer): Likewise.
1791 (setWidth): Likewise.
1793 2004-08-31 Tom Tromey <tromey@redhat.com>
1795 * java/text/AttributedString.java (AttributedString): Use
1796 ArrayList to build array of attribute ranges. Don't use
1797 `attribs' before it is set.
1799 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
1801 * HACKING: Remove reference to special automake. No longer needed.
1803 2004-08-30 Tom Tromey <tromey@redhat.com>
1805 * gnu/java/security/util/Prime.java (generateRandomPrime): Use
1806 return result from `add'.
1808 2004-08-30 Tom Tromey <tromey@redhat.com>
1810 * java/rmi/server/UID.java (UID): Read `nextCount', not count.
1812 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
1814 * gnu/java/security/der/DEREncodingException.java: Remove whitespaces.
1816 2004-08-30 Jeroen Frijters <jeroen@frijters.net>
1818 * java/io/File.java File(String,String): Fixed handling of empty
1821 2004-08-30 Casey Marshall <csm@gnu.org>
1823 Author e-mail updated for all files.
1824 * gnu/java/security/OID.java (equals): Test if the aurgment is an
1826 (compareTo): Use `equals'.
1827 * gnu/java/security/der/BitString.java (equals): Test if the
1828 argument is an instance of BitString.
1829 * gnu/java/security/der/DERReader.java: Removed NIO imports. Made
1830 class final. Made fields private.
1831 (<init>): New constructor.
1833 (makeString): Made static; don't use NIO.
1834 (fromIso88591, fromUtf16Be, fromUtf8): New methods.
1835 * gnu/java/security/der/DERWriter.java: Fixed imports.
1836 (writeString): Don't use NIO.
1837 (toIso88591, toUtf16Be, toUtf8): New methods.
1838 * gnu/java/security/der/DERValue.java: Formatting changes only.
1839 * gnu/java/security/der/DER.java: Likewise.
1841 2004-08-30 Tom Tromey <tromey@redhat.com>
1843 * java/nio/CharBuffer.java (put): Fix typo.
1844 * java/nio/DoubleBuffer.java (put): Fix typo.
1845 * java/nio/FloatBuffer.java (put): Fix typo.
1846 * java/nio/IntBuffer.java (put): Fix typo.
1847 * java/nio/LongBuffer.java (put): Fix typo.
1848 * java/nio/ShortBuffer.java (put): Fix typo.
1850 2004-08-30 Florian Weimer <fw@deneb.enyo.de>
1852 * java/nio/ByteBuffer.java (put): Fix typo.
1854 2004-08-30 Casey Marshall <csm@gnu.org>
1856 * java/security/DummyKeyPairGenerator.java (clone): Removed
1857 useless instanceof check.
1858 * java/security/DummyMessageDigest.java (clone): Likewise.
1859 * java/security/DummySignature.java (clone): Likewise.
1860 * java/security/MessageDigest.java (clone): Remove useless
1862 * java/security/MessageDigestSpi.java (clone): Likewise.
1863 * java/security/Signature.java (clone): Provide meaningful
1865 * java/security/SignatureSpi.java (clone): Likewise.
1867 2004-08-29 Mark Wielaard <mark@klomp.org>
1869 * java/util/Arrays.java
1870 (sort(byte[], int, int)): Check fromIndex < 0.
1871 (sort(char[], int, int)): Likewise.
1872 (sort(short[], int, int)): Likewise.
1873 (sort(int[], int, int)): Likewise.
1874 (sort(long[], int, int)): Likewise.
1875 (sort(float[], int, int)): Likewise.
1876 (sort(double[], int, int)): Likewise.
1877 (sort(Object[], int, int, Comparator)): Likewise.
1878 (qsort(byte[], int, int)): Honor lower bound from in insertion sort.
1879 (qsort(char[], int, int)): Likewise.
1880 (qsort(short[], int, int)): Likewise.
1881 (qsort(int[], int, int)): Likewise.
1882 (qsort(long[], int, int)): Likewise.
1883 (qsort(float[], int, int)): Likewise.
1884 (qsort(double[], int, int)): Likewise.
1886 2004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
1888 * java/util/AbstractCollection.java, java/util/AbstractList.java,
1889 java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
1890 java/util/ArrayList.java, java/util/Arrays.java,
1891 java/util/BitSet.java, java/util/Calendar.java,
1892 java/util/Collection.java, java/util/ListIterator.java,
1893 java/util/Map.java, java/util/SortedSet.java:
1894 Added additional exceptions to documentation, along
1895 with some additions and corrections.
1897 2004-08-27 Hans Boehm <Hans.Boehm@hp.com>
1899 * configure.ac: Handle --enable-gc-debug.
1900 * configure: Regenerate.
1901 * include/config.h.in (LIBGCJ_GC_DEBUG): Add.
1902 * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files.
1903 Rearrange include file order.
1904 (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set.
1905 (GC_finalize_all, GC_debug_generic_malloc): Don't declare.
1906 (disable_gc_mutex): Delete along with all references.
1907 (_Jv_MarkObj, _Jv_MarkArray): Use public types,
1908 adjust for debug header size.
1909 (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for
1911 (_Jv_AllocArray): Declare min_heap_addr only if needed.
1912 (gcj_describe_type_fn): New.
1913 (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind.
1914 Register gcj_describe_type_fn.
1915 * include/boehm-gc.h:
1916 (_Jv_AllocObj, _Jv_allocPtrFreeObj):
1917 Don't define, but declare, for debug case.
1918 * java/lang/natObject.cc:
1919 (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set.
1921 2004-08-26 Mark Wielaard <mark@klomp.org>
1923 Fixes PR libgcj/17002:
1924 * java/util/TimeZone.java (defaultZone): Try a couple of ways to get
1925 a TimeZoneId string and then try to convert that to a TimeZone with
1926 getDefaultSystemTimeZone(String).
1927 (timezones0): Changed type from Hashtable to HashMap.
1928 (timezones): Create HashMap, not Hashtable.
1929 (getDefaultTimeZone): New method, rewritten from CNI version.
1930 (readTimeZoneFile): New method.
1931 (readtzFile): Likewise.
1932 (skipFully): Likewise.
1933 * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
1934 getDefaultTimeZoneId and rewritten.
1935 (getDefaultTimeZoneId): Rewritten in java.
1937 2004-08-25 David Daney <daney@avtrex.com>
1939 * Makefile.am (AM_GCJFLAGS): Add LIBGCJ_JAVAFLAGS.
1940 * Makefile.in: Regenerated.
1942 2004-08-23 Bryce McKinlay <mckinlay@redhat.com>
1944 * prims.cc (JVMPI_NOTIFY_ALLOC): New macro. Call jvmpi_notify_alloc
1945 only if jvmpi is enabled.
1946 (jvmpi_notify_alloc): Don't check if jvmpi is enabled here.
1947 (_Jv_AllocObjectNoFinalizer): Use JVMPI_NOTIFY_ALLOC.
1948 (_Jv_AllocString): Likewise.
1949 (_Jv_AllocPtrFreeObject): Likewise.
1951 2004-08-23 Hans Boehm <Hans.Boehm@hp.com>
1953 * defineclass.cc: Include <stdio.h>.
1954 * java/lang/natClassLoader.cc: Include <stdio.h>.
1956 2004-08-21 Andreas Tobler <a.tobler@schweiz.ch>
1957 Michael Koch <konqueror@gmx.de>
1959 * Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.
1960 * Makefile.in: Regenerated.
1962 2004-08-20 Michael Koch <konqueror@gmx.de>
1964 * configure.ac: Replaced all AC_TRY_COMPILE macros with
1965 AC_COMPILE_IFELSE macros.
1967 2004-08-20 Michael Koch <konqueror@gmx.de>
1969 * configure.in: Renamed to configure.ac.
1970 * configure.ac: New file.
1971 * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
1972 include/config.h.in, testsuite/Makefile.in: Regenerated.
1974 2004-08-20 Michael Koch <konqueror@gmx.de>
1976 * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
1977 * aclocal.m4, configure: Regenerated.
1979 2004-08-19 Thomas Fitzsimmons <fitzsim@redhat.com>
1980 Michael Koch <konqueror@gmx.de>
1982 * configure.in, Makefile.am: Ported to automake 1.9.
1983 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
1984 include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
1987 2004-08-19 Tom Tromey <tromey@redhat.com>
1989 * java/net/DatagramSocket.java: Fixed typo.
1991 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
1994 * java/net/URI.java (string): New field. Make all other fields
1996 (readObject): Implemented.
1997 (writeObject): Implemented.
1998 (URI): Set 'string'.
2000 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2003 * java/util/logging/Handler.java (isLoggable): Accept record if its
2004 log level equals the threshold level. From Robin Green.
2006 2004-08-18 David Daney <ddaney@avtrex.com>
2008 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
2011 2004-08-17 Michael Koch <konqueror@gmx.de>
2013 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
2014 * Makefile.in: Regenerated.
2016 2004-08-16 Tom Tromey <tromey@redhat.com>
2019 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
2021 2004-08-16 Michael Koch <konqueror@gmx.de>
2024 (math_c_files): Renamed from c_files.
2025 (math_c_source_files): Renamed from c_source_files.
2028 include/Makefile.in,
2029 testsuite/Makefile.in: Regenerated.
2031 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
2033 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
2034 to avoid autoconf warning.
2035 * configure: Rebuilt.
2037 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
2039 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
2040 localhostAddress to loopbackAddress.
2041 * java/net/natInetAddressWin32.cc (lookup): Likewise.
2043 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2045 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
2046 boehm-gc's include dirs.
2047 * configure: Rebuilt.
2048 * include/boehm-gc.h: Include gc_config.h.
2050 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2052 * java/net/InetAddress.java (loopbackAddress): Renamed from
2054 (getByName): Return loopback address for null hostname, without
2055 security check. Use lookup(), not getAllByName.
2056 (getAllByName): Return loopback address for null hostname, without
2058 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
2061 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2064 Reported by Robin Green.
2065 * defineclass.cc (handleField): Don't throw exception on unrecognised
2066 modifier. Add FIXME comments for spec compliance.
2067 (handleMethod): Likewise.
2069 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
2072 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
2073 (Almost everywhere): add LOG calls, fix, add comments.
2074 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
2075 Add explicit check for LOCKED bit in slow case (PR 16662).
2076 (_Jv_MonitorExit): Add casts in debug-only code.
2077 Always release LOCKED bit before throwing exception.
2078 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
2079 isn't. Handle easy cases without lock acquisition.
2080 (Object::wait): Use NotifyAll for lock inflation.
2082 2004-08-12 David Daney <ddaney@avtrex.com>
2084 * testsuite/libjava.lang/Process_1.java: New test.
2085 * testsuite/libjava.lang/Process_2.java: New test.
2086 * testsuite/libjava.lang/Process_3.java: New test.
2087 * testsuite/libjava.lang/Process_4.java: New test.
2088 * testsuite/libjava.lang/Process_5.java: New test.
2089 * testsuite/libjava.lang/Process_6.java: New test.
2090 * testsuite/libjava.lang/Process_1.out: Expected result.
2091 * testsuite/libjava.lang/Process_2.out: Expected result.
2092 * testsuite/libjava.lang/Process_3.out: Expected result.
2093 * testsuite/libjava.lang/Process_4.out: Expected result.
2094 * testsuite/libjava.lang/Process_5.out: Expected result.
2095 * testsuite/libjava.lang/Process_6.out: Expected result.
2097 2004-08-12 David Daney <ddaney@avtrex.com>
2100 * java/lang/PosixProcess.java: Rewrote.
2101 * java/lang/natPosixProcess.cc: Rewrote.
2102 * java/lang/Runtime.java (execInternal): Declare throws IOException.
2103 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
2104 * posix-threads.cc (block_sigchld) New function.
2105 (_Jv_ThreadRegister) Use it.
2106 (_Jv_ThreadStart) Use it.
2107 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
2108 * Makefile.am: ... to specify extra native headers.
2109 * configure: Regenerated.
2110 * include/config.h: Regenerated.
2111 * Makefile.in: Regenerated.
2112 * gcj/Makefile.in: Regenerated.
2113 * include/Makefile.in: Regenerated.
2114 * testsuite/Makefile.in: Regenerated.
2116 2004-08-12 Diego Novillo <dnovillo@redhat.com>
2118 PR tree-optimization/16867
2119 * testsuite/libjava.lang/PR16867.java: New test.
2121 2004-08-09 Per Bothner <per@bothner.com>
2123 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
2124 with private fields and access methods.
2125 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
2126 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
2127 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
2128 ( _Jv_makeUtf8Const): Rewrite using new constructors.
2129 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
2130 * defineclass.cc: Use new _Utf8Const access/convenience methods.
2132 * resolve.cc: Likewise.
2133 * gcj/field.h: Likewise.
2134 * include/jvm.h: Likewise.
2135 * java/lang/Class.h: Likewise.
2136 * java/lang/natClass.cc: Likwise.
2137 * java/lang/natClassLoader.cc: Likewise
2138 * java/lang/reflect/natMethod.cc: Likewise
2139 * verify.cc: Likewise.
2140 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
2141 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
2143 2004-08-10 Andrew Haley <aph@redhat.com>
2145 * testsuite/libjava.lang/err14.java: New file.
2146 * testsuite/libjava.lang/err14.out: New file.
2148 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
2150 * Makefile.am: Fix missing rename from x_nat_headers to
2152 * Makefile.in: Regenerated.
2154 2004-08-04 Andrew Haley <aph@redhat.com>
2156 * java/security/BasicPermission.java: Don't check wildcards.
2158 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2159 Michael Koch <konqueror@gmx.de>
2161 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
2162 * configure.in: Replaced all usages of AC_LINK_FILES by
2165 configure: Regenerated.
2167 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2168 Michael Koch <konqueror@gmx.de>
2170 * acconfig.h: Removed.
2171 * Makefile.am: Rename variables for xlib peer to include xlib and
2172 gtk_c_headers to gtk_jni_headers.
2173 * Makefile.in: Regenerated.
2175 2004-08-04 Andrew Haley <aph@redhat.com>
2177 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
2180 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
2182 * configure.in: Eliminate uses of changequote (mostly by quoting []).
2183 Replace most top level 'dnl' comments with '#' comments, conforming
2184 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
2186 * configure: Rebuilt.
2188 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
2190 * acinclude.m4: Include no-executables.m4.
2191 * aclocal.m4: Rebuild.
2192 * configure.in: Convert to the autoconf 2.59 version of
2193 of the no-executables hack, and also of the nonstandard CXX
2194 hack and the multilibbed CC and CXX hack. Change prerequisite
2196 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
2197 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
2198 testsuite/Makefile.in: Regenerate.
2200 2004-08-03 Tom Tromey <tromey@redhat.com>
2202 * jni.cc: Reindented.
2204 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2206 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
2208 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2210 * testsuite/libjava.compile/PR16701.java: New test.
2212 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
2214 * java/util/Collection.java, java/util/List.java,
2215 java/util/Map.java, java/util/Set.java,
2216 java/util/SortedMap.java, java/util/SortedSet.java:
2217 Added additional exceptions to documentation.
2219 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
2222 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
2223 * configure. Regenerate.
2224 * include/win32.h: Explicitly include winsock2.h
2225 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
2228 2004-07-30 Michael Koch <konqueror@gmx.de>
2230 * java/util/zip/GZIPInputStream.java
2231 (GZIPInputStream): Increase buffer size to 4k.
2232 * java/util/zip/GZIPOutputStream.java
2233 (GZIPOutputStream): Likewise.
2234 * java/util/zip/Inflater.java
2235 (setInput): Merged formating with GNU classpath.
2236 * java/util/zip/InflaterInputStream.java
2237 (InflaterInputStream): Increase buffer size to 4k.
2238 (fill): Throw exception if stream ends early.
2239 (read): Merged endless-loop with GNU classpath.
2240 (skip): Increase buffer size to 2k.
2242 2004-07-30 Michael Koch <konqueror@gmx.de>
2244 * gnu/java/awt/EmbeddedWindow.java
2245 (addNotify): Use AccessController to allow execution of privileged
2248 2004-07-29 Michael Koch <konqueror@gmx.de>
2250 * gnu/java/lang/MainThread.java:
2251 Explicitely import used classes.
2252 (args): Make it type String[].
2254 2004-07-29 Dalibor Topic <robilad@kaffe.org>
2256 * gnu/java/awt/ComponentDataBlitOp.java,
2257 gnu/java/beans/ExplicitBeanInfo.java,
2258 gnu/java/beans/IntrospectionIncubator.java,
2259 gnu/java/beans/editors/ColorEditor.java,
2260 gnu/java/beans/editors/FontEditor.java,
2261 gnu/java/beans/editors/NativeBooleanEditor.java,
2262 gnu/java/beans/editors/NativeByteEditor.java,
2263 gnu/java/beans/editors/NativeDoubleEditor.java,
2264 gnu/java/beans/editors/NativeFloatEditor.java,
2265 gnu/java/beans/editors/NativeIntEditor.java,
2266 gnu/java/beans/editors/NativeLongEditor.java,
2267 gnu/java/beans/editors/NativeShortEditor.java,
2268 gnu/java/beans/editors/StringEditor.java,
2269 gnu/java/io/ClassLoaderObjectInputStream.java,
2270 gnu/java/io/decode/Decoder.java,
2271 gnu/java/io/encode/Encoder.java,
2272 gnu/java/lang/ClassHelper.java,
2273 gnu/java/locale/Calendar.java,
2274 gnu/java/locale/Calendar_de.java,
2275 gnu/java/locale/Calendar_en.java,
2276 gnu/java/locale/Calendar_nl.java,
2277 gnu/java/locale/LocaleInformation_de.java,
2278 gnu/java/locale/LocaleInformation_en.java,
2279 gnu/java/locale/LocaleInformation_nl.java:
2282 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2284 * README: Remove obsolete info. Update bug URL.
2286 * NEWS: Updated with news up to GCC 3.4 release.
2288 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2290 * gnu/java/security/action/GetPropertyAction.java (setParameters):
2291 Renamed from 'setName'. New 2-argument form with default value.
2292 (run): Pass default 'value' parameter to System.getProperty().
2293 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
2295 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
2298 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2300 * configure.in: Check for minimum GTK version 2.4 requirement.
2301 * configure: Rebuilt.
2303 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2305 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
2306 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
2308 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
2310 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
2311 address. Reduce sleep times. Synchronize with target threads before
2312 attempting to interrupt them. Don't try to calibrate yeild count,
2313 instead, always loop for a fixed time.
2314 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
2315 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
2316 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
2317 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
2318 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
2319 * testsuite/libjava.lang/pr179.java: Likewise.
2320 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
2321 time. Remove upper bounds check on sleep time.
2323 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2325 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
2326 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
2328 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2330 * java/io/File.java (toURI): Throw RuntimeException, not
2332 * java/lang/Runtime.java (exit): Qualify static sleep() call with
2333 class name, not instance.
2335 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
2337 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
2338 and gnu/java/security/action/SetAccessibleAction.java.
2339 * Makefile.in: Rebuilt.
2341 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2343 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
2344 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
2346 (DECLARE_PRIM_TYPE): Don't declare array vtables.
2347 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
2348 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
2350 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
2352 * Makefile.am: Replace jar, rmic and rmiregistry references with
2353 gjar, grmic and grmiregistry.
2354 * configure.in: Likewise.
2355 * Makefile.in: Regenerate.
2356 * configure: Likewise.
2357 * gcj/Makefile.in: Likewise.
2358 * include/Makefile.in: Likewise.
2359 * testsuite/Makefile.in: Likewise.
2361 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2363 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
2364 for privileged getProperty calls.
2365 * java/io/ObjectOutputStream.java (getField): No longer static. Use
2366 SetAccessibleAction instead of anonymous class for doPrivileged call.
2367 (getMethod): Likewise.
2368 (setAccessible): New field. PrivilegedAction object to use when
2369 calling setAccessible.
2370 * java/io/ObjectStreamClass.java (calculateOffsets): Use
2371 SetAccessibleAction instead of anonymous class for diPrivileged call.
2372 (setFields): Likewise.
2373 (getClassUID): Likewise.
2374 (findMethod): Likewise.
2375 * gnu/java/security/action/GetPropertyAction.java: New class.
2376 * gnu/java/security/action/SetAccessibleAction.java: New class.
2378 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2380 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
2382 * testsuite/libjava.lang/Serialization.java: New test.
2383 * testsuite/libjava.lang/Serialization.out: New.
2385 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2387 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
2388 missed in last commit.
2390 2004-07-23 Mark Wielaard <mark@klomp.org>
2392 * java/lang/System.java (static): Set http.agent system property when
2394 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
2395 from system property inside AccessController.doPrivileged() call.
2396 (proxyPort): Made package private.
2397 (proxyInUse): Likewise.
2398 (proxyHost): Likewise.
2399 (userAgent): Likewise.
2401 2004-07-23 Mark Wielaard <mark@klomp.org>
2403 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
2406 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
2408 * Makefile.am (ordinary_java_source_files): Add
2409 DefaultContentHandlerFactory.java.
2410 * Makefile.in: Rebuilt.
2411 * java/net/URLConnection.java (defaultFactory): New field.
2413 (getContentHandler): Renamed from 'setContentHandler'. Try
2414 defaultFactory after user-set factory, if any. Search for content
2415 handler implementations in gnu.java.net.content, not gnu.gcj.content.
2416 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
2418 (getLastModified): Implemented.
2419 (getPermission): Create file permission here, instead of in
2421 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
2423 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
2425 (getLastModified): Implemented.
2426 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2427 Default implementation.
2428 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2429 Implement using GdkPixbufDecoder.
2431 2004-07-21 Michael Koch <konqueror@gmx.de>
2433 * javax/swing/JTextArea.java
2434 (setLineWrap): Fire property change event after new value is set.
2435 (setTabSize): Likewise.
2437 2004-07-21 Michael Koch <konqueror@gmx.de>
2439 * javax/swing/JTable.java
2440 (autoCreateColumnsFromModel): New field.
2441 (autoResizeMode): Likewise.
2442 (cellEditor): Likewise.
2443 (cellSelectionEnabled): Likewise.
2444 (columnModel): Likewise.
2445 (dataModel): Likewise.
2446 (defaultEditorsByColumnClass): Likewise.
2447 (defaultRenderersByColumnClass): Likewise.
2448 (editingColumn): Likewise.
2449 (editingRow): Likewise.
2450 (gridColor): Likewise.
2451 (preferredViewportSize): Likewise.
2452 (rowHeight): Likewise.
2453 (rowMargin): Likewise.
2454 (rowSelectionAllowed): Likewise.
2455 (selectionBackground): Likewise.
2456 (selectionForeground): Likewise.
2457 (selectionModel): Likewise.
2458 (showHorizontalLines): Likewise.
2459 (showVerticalLines): Likewise.
2460 (tableHeader): Likewise.
2461 (JTable): Implemented.
2462 (getColumnModel): Likewise.
2463 (getSelectedRow): Likewise.
2464 (getSelectionModel): Likewise.
2465 (setModel): Likewise.
2466 (setSelectionModel): Likewise.
2467 (createScrollPaneForTable): New method.
2468 (createDefaultDataModel): Likewise.
2469 (createDefaultListSelectionModel): Likewise.
2470 (getModel): Likewise.
2471 (getTableHeader): Likewise.
2472 (setTableHeader): Likewise.
2473 (getColumnSelectionAllowed): Likewise.
2474 (setColumnSelectionAllowed): Likewise.
2475 (getRowSelectionAllowed): Likewise.
2476 (setRowSelectionAllowed): Likewise.
2477 (getAutoResizeMode): Likewise.
2478 (setAutoResizeMode): Likewise.
2479 (getColumnCount): Likewise.
2480 (getRowCount): Likewise.
2481 (getCellRenderer): Likewise.
2482 * javax/swing/JTree.java
2483 (cellRenderer): New field.
2484 (editable): Likewise.
2485 (rootVisible): Likewise.
2486 (showsRootHandles): Likewise.
2487 (getModel): New method.
2488 (setModel): Likewise.
2489 (isEditable): Likewise.
2490 (setEditable): Likewise.
2491 (isRootVisbile): Likewise.
2492 (setRootVisible): Likewise.
2493 (getShowsRootHandles): Likewise.
2494 (setShowRootHandles): Likewise.
2495 (getCellRenderer): Likewise.
2496 (setCellRenderer): Likewise.
2498 2004-07-21 Michael Koch <konqueror@gmx.de>
2500 * javax/swing/JFormattedTextField.java
2501 (setDocument): Implemented.
2502 * javax/swing/JRootPane.java:
2504 * javax/swing/JTable.java
2505 (getDefaultRenderer): New method.
2506 * javax/swing/JTextField.java
2507 (setFont): Likewise.
2508 (getPreferredSize): Likewise.
2509 * javax/swing/JToggleButton.java
2510 (getAccessibleContext): Fix javadoc.
2511 * javax/swing/JTree.java:
2513 * javax/swing/JViewport.java:
2516 2004-07-21 David Jee <djee@redhat.com>
2518 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
2519 Collect all native method declaration at the top.
2520 (create): Set the filename filter if necessary.
2521 (setDirectory): Call nativeSetDirectory().
2522 (setFilenameFilter): Implement.
2523 (filenameFilterCallback): New method.
2524 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2525 (create): Configure dialog to show hidden files.
2526 (filenameFilterCallback): New function.
2527 (nativeSetFilenameFilter): New function.
2528 (nativeSetDirectory): New function.
2530 2004-07-21 Kim Ho <kho@redhat.com>
2532 * javax/swing/plaf/basic/BasicSliderUI.java:
2534 (paintTrack): Fill the track before painting
2537 2004-07-21 Graydon Hoare <graydon@redhat.com>
2539 patch from Roman Kennke <roman@ontographics.com>
2540 * javax/swing/Spring.java: New file.
2541 * javax/swing/SpringLayout.java: New file.
2542 * Makefile.am: Add new files.
2543 * Makefile.in: Regenerate.
2545 2004-07-21 Graydon Hoare <graydon@redhat.com>
2547 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
2548 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
2549 * javax/swing/ScrollPaneLayout.java: Likewise.
2551 2004-07-21 Kim Ho <kho@redhat.com>
2553 * javax/swing/DefaultDesktopManager.java:
2554 (findMinimum): Removed.
2555 (resizeFrame): Trust the UI to pass valid
2557 * javax/swing/JOptionPane.java:
2558 Implemented showInternalXXXDialog methods.
2559 (startModal): New method.
2560 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2561 (BorderListener::mouseDragged): Verify that the new
2562 bounds are valid before passing them to the DesktopManager.
2563 (preferredLayoutSize): Delegate
2565 (minimumLayoutSize): Ditto.
2566 (getSize): New method.
2567 (GlassPaneDispatcher): Reimplemented by copying
2568 a stripped down LightweightDispatcher from Container.
2569 (getMinimumSize): Call minimumLayoutSize.
2570 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
2572 (mousePressed): Add ability to properly close
2574 * javax/swing/plaf/basic/BasicToolBarUI.java:
2575 (DragWindow): Set owner for DragWindow.
2577 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2579 * java/awt/image/ShortLookupTable.java: New file.
2580 * java/awt/image/ByteLookupTable.java: New file.
2581 * Makefile.am: Added new files.
2582 * Makefile.in: Regenerated.
2584 2004-07-21 David Jee <djee@redhat.com>
2586 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2587 (create(GtkContainerPeer)): New native method.
2588 (create()): Call native create(), passing in the parent frame
2589 as the paramter. Natively set the current file and directory.
2590 (setFile): Construct an absolute filename before passing it to
2592 (nativeGetDirectory): New method.
2593 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2594 (window_closed): Removed.
2595 (ok_clicked): Likewise.
2596 (cancel_clicked): Likewise.
2597 (handle_response): New method.
2598 (create): Use GtkFileChooserDialog.
2599 (connectSignals): Connect to handle_response.
2600 (nativeGetDirectory): New method.
2601 (nativeSetFile): Use GtkFileChooserDialog.
2603 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2605 * java/awt/image/LookupTable.java: New file.
2606 * Makefile.am: Added new file.
2607 * Makefile.in: Regenerated.
2609 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2611 * java/awt/image/Kernel.java: New file.
2612 * Makefile.am: Added new file.
2613 * Makefile.in: Regenerated.
2615 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2617 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
2618 * javax/swing/JMenu.java: Likewise.
2619 * javax/swing/JMenuBar.java: Likewise.
2620 (MARGIN_CHANGED_PROPERTY): New property.
2621 (setMargin): Implemented.
2622 * javax/swing/JMenuItem.java: Fixed javadocs.
2623 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
2624 (LABEL_CHANGED_PROPERTY): New property.
2625 (add): changed to use createActionComponent.
2626 (createActionComponent): Implemented.
2627 (setLabel): Fire PropertyChangeEvent if label property
2629 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
2630 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
2631 (ContainerHandler): Repaint if margin property has changed.
2632 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2633 (installUI): Call installComponents().
2634 (uninstallUI): Call uinstallComponents().
2635 * javax/swing/plaf/basic/BasicMenuUI.java:
2637 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2640 2004-07-21 Kim Ho <kho@redhat.com>
2642 * javax/swing/plaf/basic/BasicToolBarUI.java:
2643 (DragWindow): Use the right constructor.
2645 2004-07-21 Kim Ho <kho@redhat.com>
2647 * javax/swing/JToolBar.java:
2648 (layoutContainer): Use getComponents.
2649 * javax/swing/plaf/basic/BasicToolBarUI.java:
2650 (DragWindow): Don't use SwingUtilities'
2652 (ToolBarDialog): ditto.
2654 2004-07-21 Kim Ho <kho@redhat.com>
2656 * javax/swing/JRootPane.java:
2658 (layoutContainer): Set the glasspane's size to
2659 be the same as the content pane.
2660 (createGlassPane): Set opaque property to false.
2662 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2664 * java/awt/Component.java (requestFocus()): Don't handle Panels
2666 (requestFocus(boolean)): Likewise.
2667 (requestFocusInWindow(boolean)): Likewise.
2668 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
2669 Set GTK_CAN_FOCUS flag.
2671 2004-07-21 Kim Ho <kho@redhat.com>
2673 * Makefile.am: Added new file.
2674 * Makefile.in: Regenerated.
2675 * gcj/Makefile.in: Regenerated.
2676 * include/Makefile.in: Regenerated.
2677 * javax/swing/AbstractButton.java:
2678 Add rollOverEnabled property.
2679 (setRolloverEnabled): Use new property.
2680 (isRolloverEnabled): Use new property.
2681 * javax/swing/JTabbedPane.java:
2682 (setComponent): Remove useless JTabbedPane.this.
2683 * javax/swing/JToolBar.java: Finish implementation.
2684 * javax/swing/plaf/basic/BasicArrowButton.java:
2685 (paint): Moved border painting to a border.
2686 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2687 Change JToolBar look and feel defaults.
2688 * javax/swing/plaf/basic/BasicOptionPaneUI.java
2689 (actionPerformed): Return Integer index instead of name.
2690 (addButtonComponents): Check to see if component is
2692 (createMessageArea): Don't use components that are not
2694 (getIconForType): Use temporary icons.
2695 * javax/swing/plaf/basic/BasicSliderUI.java:
2696 (mousePressed): Do not return if it's on thumb.
2697 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
2698 (paintMinorTickForVertSlider): ditto.
2699 (paintMajorTickForHorizSlider): ditto.
2700 (paintMajorTickForVertSlider): ditto.
2701 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
2702 Add a border around the SplitPaneDivider.
2703 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
2705 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
2706 New file. Implemented.
2707 * javax/swing/plaf/basic/BasicToolBarUI.java:
2709 * testsuite/Makefile.in: Regenerated.
2711 2004-07-21 Graydon Hoare <graydon@redhat.com>
2713 * javax/swing/Timer.java (run): Queue events each time cycle.
2715 2004-07-21 David Jee <djee@redhat.com>
2717 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2718 (imageComplete): Call image.imageComplete().
2719 * java/awt/image/MemoryImageSource.java:
2720 Reimplement consumers as a Vector instead of a Hashtable. This is
2721 because enumeration on a Hashtable is not thread-safe.
2722 (addConsumer): Adapt to Vector consumers.
2723 (isConsumer): Adapt to Vector consumers.
2724 (removeConsumer): Adapt to Vector consumers.
2725 (startProduction): Adapt to Vector consumers. Call imageComplete()
2726 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
2727 (newPixels): Adapt to Vector consumers.
2728 (sendPicture): Set the color model of the image consumer.
2729 (newPixels(IIII)): Adapt to Vector consumers.
2730 (newPixels(IIIIB)): Adapt to Vector consumers.
2732 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2734 * java/awt/Component.java (deliverEvent): Implement.
2735 (postEvent): Implement.
2736 (handleEvent): Implement.
2737 (translateEvent): New method.
2738 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
2739 * java/awt/Container.java (deliverEvent): Implement.
2740 * java/awt/Event.java (paramString): Fix formatting.
2741 * java/awt/Font.java (toString): Likewise.
2742 * java/awt/Window.java (postEvent): Implement.
2744 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2746 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
2747 Set window's focus owner upon receiving a FOCUS_LOST event.
2748 * java/awt/Window.java (Window()): Refocus the previously
2749 focused component within the window when the window regains the
2751 (setFocusOwner): New method.
2752 * java/awt/Component.java (requestFocus): Add FIXME.
2754 * libgcj.pc.in: Remove library flags.
2756 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2758 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
2759 MOUSE_PRESSED event.
2760 * java/awt/Component.java (requestFocus()): Handle Panel
2761 specially. Post FOCUS_LOST event on opposite component.
2762 (requestFocus(boolean)): Likewise.
2763 (requestFocusInWindow(boolean)): Likewise.
2764 (paramString): Reorder dimension fields.
2765 * java/awt/Container.java (paramString): Fix string format.
2766 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
2767 Handle FOCUS_LOST events. Don't handle Windows specially. Only
2768 process key events if the focus owner is non-null.
2769 (dispatchKeyEvent): Likewise.
2770 * java/awt/Frame.java (paramString): Fix formatting.
2771 (generateName): New method.
2772 (getUniqueLong): Likewise.
2773 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
2774 the temporary focus owner is null. If so, return the permanent
2776 * java/awt/Panel.java (generateName): New method.
2777 (getUniqueLong): Likewise.
2778 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
2779 signal handling to make callbacks more specific.
2781 2004-07-21 Michael Koch <konqueror@gmx.de>
2783 * javax/swing/text/Position.java
2784 (Bias): Implemented.
2786 2004-07-21 Michael Koch <konqueror@gmx.de>
2788 * javax/swing/LookAndFeel.java
2789 (provideErrorFeedback): New method.
2791 2004-07-21 Michael Koch <konqueror@gmx.de>
2793 * javax/swing/JTextArea.java
2794 (tabSize): New field.
2795 (getTabSize): New method.
2796 (setTabSize): Likewise.
2798 2004-07-21 Michael Koch <konqueror@gmx.de>
2800 * javax/swing/ActionMap.java:
2801 Fixed javadocs all over.
2802 (serialVersionUID): Made private.
2803 (parent): Don't explicitely initialize with default value.
2805 (keys): Reimplemented.
2806 (allKeys): Likewise.
2807 (convertSet): Removed.
2808 * javax/swing/ComponentInputMap.java:
2809 Fixed javadocs all over.
2810 (ComponentInputMap): Implemented.
2814 (SetParent): Likewise.
2815 (getComponent): Likewise.
2816 * javax/swing/InputMap.java:
2817 Fixed javadocs all over.
2818 (serialVersionUID): Made private.
2819 (parent): Don't explicitely initialize with default value.
2821 (keys): Reimplemented.
2822 (allKeys): Likewise.
2823 (convertSet): Removed.
2825 2004-07-21 Michael Koch <konqueror@gmx.de>
2827 * javax/swing/ActionMap.java,
2828 javax/swing/ComponentInputMap.java,
2829 javax/swing/InputMap.java,
2830 javax/swing/table/DefaultTableColumnModel.java,
2831 javax/swing/table/TableColumn.java,
2832 javax/swing/table/TableColumnModel.java,
2833 javax/swing/table/TableModel.java,
2834 javax/swing/text/AbstractDocument.java,
2835 javax/swing/text/TextAction.java:
2838 2004-07-21 Graydon Hoare <graydon@redhat.com>
2840 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
2841 Make method non-static.
2842 * javax/swing/AbstractButton.java:
2843 Rename fields to match property names where possible.
2844 (iconTextGap): New property.
2845 * javax/swing/JCheckBox.java: Match AbstractButton changes.
2846 (init) New method, call from after various constructors.
2847 * javax/swing/JComponent.java (revalidate):
2848 Invalidate before queueing repair.
2849 * javax/swing/JList.java (getPreferredScrollableViewportSize):
2850 Reimplement in terms of visibleRowCount property.
2851 * javax/swing/JMenuButton.java: Match AbstractButton changes.
2852 * javax/swing/JScrollPane.java (createScrollListener):
2853 Remove tracing chatter.
2854 * javax/swing/JToggleButton.java: Match AbstractButton changes.
2855 * javax/swing/RepaintManager.java (addInvalidComponent):
2857 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
2859 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
2860 Mimic sun behavior on top left/right positioning.
2861 * javax/swing/ViewportLayout.java (preferredLayoutSize):
2862 Remove mistaken use of preferredScrollableViewportSize here.
2863 (layoutContainer): Use view's preferred size as basis.
2864 * javax/swing/plaf/basic/BasicButtonUI.java:
2865 Set, get, and use textIconGap property.
2866 (paint) Paint text returned from layout (with ellipsis).
2867 * javax/swing/plaf/basic/BasicListUI.java:
2868 Remove tracing chatter, correct various minor calculations.
2869 (getCellBounds): Update layout state before calculating.
2870 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
2871 Use margin default similar to sun's.
2872 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
2873 (createIncreaseIcon): Center icon, minimize margins.
2874 (createDecreaseIcon): Likewise.
2875 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
2877 (installUI): Call it.
2878 (uninstallDefaults): Implement.
2879 (uninstallUI): Call it.
2880 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
2881 Call existing Window constructor.
2882 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
2883 Set clip before painting.
2885 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2887 * javax/swing/JMenuItem.java:
2888 (processMouseEvent): Reimplemented to deal with
2890 (createMenuDragMouseEvent): New private helper method.
2891 Creates MenuDragMouseEvent.
2892 * javax/swing/MenuSelectionManager.java
2893 (componentForPoint): Implemented.
2894 (isComponentPartOfCurrentMenu): Made public.
2895 (processMouseEvent): Reimplemented to deal with
2897 (setSelectedPath): Corrected small mistake that caused
2898 path to be set incorrectly.
2899 (getPath): If given component is JMenu then also add this
2900 menu's popup menu to the selected path.
2901 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2903 (getPreferredSize): Call getPreferredMenuItemSize().
2904 (getPreferredItemSize): Moved code from getPreferredSize to here.
2905 (installListeners): Install MouseMotionListeners.
2906 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
2907 if mouse wasn't released in the bounds of this menu item.
2908 (MenuDragMouseHandler): Implemented.
2909 * javax/swing/plaf/basic/BasicMenuUI.java:
2910 (installListeners): Install MouseMotionListener and
2911 MenuDrageMouseListener.
2912 (MenuDragMouseHandler): Implemented.
2913 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2914 (uninstallListeners): Implemented.
2916 2004-07-21 Michael Koch <konqueror@gmx.de>
2918 * javax/swing/JCheckBox.java: Reformated.
2919 (JCheckBox): Fixed all constructors.
2920 (isBorderPaintedFlat): New method.
2921 (setBorderPaintedFlat): New method.
2922 * javax/swing/JEditorPane.java
2923 (createEditorKitForContentType): Made public.
2924 (scrollToReference): Likewise.
2925 * javax/swing/JTextArea.java
2926 (setLineWrap): Fire property change.
2927 * javax/swing/JToggleButton.java
2928 (JToggleButton): New constructor.
2929 (JToggleButton): Simplified.
2930 * javax/swing/text/AttributeSet.java
2931 (FontAttribute): Renamed from FontCharacterAttribute.
2932 * javax/swing/text/JTextComponent.java
2933 (KeyBinBinding): Added javadoc.
2934 (JTextComponent): Likewise.
2935 (getAccessibleContext): Fixed javadoc.
2936 * javax/swing/text/View.java
2937 (View): Added javadoc.
2938 * javax/swing/text/TabableView.java: New file.
2939 * Makefile.am: Added javax/swing/text/TabableView.java.
2940 * Makefile.in: Regenerated.
2942 2004-07-21 Graydon Hoare <graydon@redhat.com>
2944 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
2945 * gnu/java/awt/peer/gtk/GtkToolkit.java
2946 (GtkErrorImage): New helper class.
2947 (bufferedImageOrError): New helper method.
2948 (createImage): Use it.
2950 2004-07-21 David Jee <djee@redhat.com>
2952 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
2953 (setCaretPosition): Scroll the text view so the new caret position
2954 is visible on screen.
2956 2004-07-21 David Jee <djee@redhat.com>
2958 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
2959 (setBounds): Do not validate awtComponent here.
2960 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
2961 (getPreferredSize): New method.
2962 * java/awt/ScrollPane.java
2963 (ScrollPane): Set default size to 100x100.
2964 (addNotify): If child is not a Panel, wrap it with a new Panel.
2965 (paramString): Implement.
2967 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2969 * javax/swing/JMenu.java:
2970 (setSelected): Display popup menu only if this menu
2971 is showing on the screen.
2972 * javax/swing/JPopupMenu.java:
2973 (processMouseEvent): Added comment.
2974 (processKeyEvent): Likewise.
2975 * javax/swing/MenuSelectionManager.java:
2976 (clearSelectedPath): Only fireStateChanged() after
2977 selected path was changed, not before.
2978 (setSelectedPath): Likewise.
2979 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2980 (paintMenuItem): Corrected position of menu item's
2982 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2983 (installUI): Correct setDefaultLightWeightPopupEnabled call.
2984 (popupMenuCanceled): Reimplemented.
2985 (popupMenuWillBecomeVisible): Select first menu item by default
2986 when displaying free floating popup menus.
2987 (TopWindowListener): Reimplemented.
2989 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2991 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
2992 Panel from being painted twice when it is first shown.
2994 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2996 * java/awt/Window.java: Reverted changes from my
2997 previous patch for creating window without an owner.
2998 * javax/swing/SwingUtilities.java:
2999 (SwingUtilities.OwnerFrame): made static.
3000 (OwnerFrame.setVisible): New method. Overridden with
3001 empty implementation.
3002 (OwnerFrame.isShowing): New method. Ovverridden
3003 to return always true.
3005 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3007 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3008 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3009 (GtkComponentPeer): Remove temporary try/catch block.
3010 (setVisible): Call show and hide.
3011 (show): Make native.
3013 (getArgs): Don't add "visible" argument.
3014 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3015 (property_notify_predicate): Return Bool instead of int.
3016 (find_layout): New function.
3017 (connectJObject): Call find_layout.
3018 (connectSignals): Likewise.
3019 (moveLayout): Likewise.
3020 (gtkLayoutSetVisible): Likewise.
3022 2004-07-21 Mark Wielaard <mark@klomp.org>
3024 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3025 on notifier object before calling notifyAll().
3027 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3029 * java/awt/Window.java: Changed constructors to use new
3030 method that is described below. Constructors call this
3031 methods only if newly created window should have an owner.
3032 (setWindowOwner): New method. Implementation for
3033 this method is moved from this(owner,configuration).
3034 * javax/swing/JWindow.java:
3035 (JWindow): Reimplement to use SwingUtilities.ownerFrame
3037 * javax/swing/SwingUtilities.java:
3038 (ownerFrame): Change type of this field to OwnerFrame.
3039 (getOwnerFrame): Changed to return object of type OwnerFrame.
3040 (SwingUtilities.OwnerFrame): New class. Represents owner
3041 of a Window that is not provided with one.
3043 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3045 * javax/swing/AbstractButton.java:
3046 (configurePropertiesFromAction): Set action command
3047 to button's text by default if action command is not
3048 explicitely specified.
3049 * javax/swing/JMenu.java: Remove unnecessary listener
3050 and methods relevant to it.
3051 (setSelected): Reimplemented.
3052 (menuSelectionChanged): Moved most part of implementation to
3053 setSelected() and call it instead.
3054 * javax/swing/JMenuItem.java:
3055 (init): Comment out statement that sets paint_border to false.
3056 (configurePropertiesFromAction): Do not set accelerator
3058 (menuSelectionChanged): Change selected index in the selection
3059 model of menu item's parent.
3060 * javax/swing/JPopupMenu.java:
3061 (remove): Set constraints.fill field to GridBagConstraints.BOTH
3062 instead of GridBagConstraints.HORIZONTAL.
3064 (createActionChangeListener): Implemented.
3065 (setVisible): Correct location of HeavyWeightMenu and
3066 don't firePopupMenuCanceled().
3067 (menuSelectionChanged): Implemented.
3068 (ActionChangeListener): New Listener. Implemented.
3069 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3070 (BasicMenuBarUI.ContainerHandler): Implemented.
3071 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3072 (paintMenuItem): Uncommented out code that paints
3073 icon, now that icons are working properly.
3074 (PropertyChangeListener): Implemented.
3075 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3077 (topWindowListener): New field.
3078 (Constructor): initialize topWindowListener.
3079 (BasicPopupMenuUI.TopWindowListener): Implemented.
3080 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
3081 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
3084 2004-07-21 Michael Koch <konqueror@gmx.de>
3086 * javax/swing/plaf/basic/BasicButtonUI.java
3087 (paintFocus): Fixed method signature.
3088 (paintButtonPressed): Likewise.
3089 (paintButtonNormal): Likewise.
3090 (paintText): New method.
3091 * javax/swing/plaf/basic/BasicLabelUI.java
3092 (paint): Re-indented.
3093 * javax/swing/plaf/basic/BasicTextUI.java
3094 (installUI): Set parent textComponent to opaque.
3095 * javax/swing/text/DefaultHighlighter.java
3096 (checkPositions): New helper method.
3097 (addHighlight): Throws BadLocationException, check positions.
3098 (changeHighlight): Likewise.
3099 * javax/swing/text/EditorKit.java
3100 (EditorKit): Implements Serializable.
3101 * javax/swing/text/JTextComponent.java
3102 (getUI): Added javadoc.
3104 (upadteUI): Added javadoc, don't revalidate and repaint.
3106 2004-07-21 David Jee <djee@redhat.com>
3108 * java/awt/GridBagLayout.java
3109 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
3110 * javax/swing/AbstractButton.java
3111 (setText): Reindent.
3112 * javax/swing/RepaintManager.java
3113 (addInvalidComponent): Find the first ancestor that isValidateRoot().
3115 2004-07-21 Michael Koch <konqueror@gmx.de>
3117 * javax/swing/JFormattedTextField.java
3119 (JFormattedTextField): Implemented.
3120 (getValue): Likewise.
3121 (setValue): Likewise.
3122 * javax/swing/LookAndFeel.java
3123 (getSupportsWindowDecorations): New method.
3124 * javax/swing/UIDefaults.java:
3125 Use java.beans.PropertyChangeSupport instead of doing all ourself.
3126 (addPropertyChangeListener): Made public.
3127 (addResourceBundle): Likewise.
3128 (removeResourceBundle): Likewise.
3129 (setDefaultLocale): Likewise.
3130 * javax/swing/plaf/basic/BasicRootPaneUI.java
3131 (BasicRootPaneUI): Implements PropertyChangeListener.
3132 (propertyChange): New method.
3133 * javax/swing/plaf/basic/BasicTextUI.java
3134 (BasicHighlighter): New inner class.
3135 (createHighlighter): New method.
3136 * javax/swing/plaf/basic/BasicToolBarUI.java
3137 (DragWindow): Extends java.awt.Window.
3138 * javax/swing/text/JTextComponent.java
3139 (getDocument): Removed debug output.
3140 * javax/swing/plaf/basic/BasicTextFieldUI.java,
3141 javax/swing/text/DefaultHighlighter.java,
3142 javax/swing/text/FieldView.java,
3143 javax/swing/text/PlainView.java: New files.
3144 * Makefile.am: Added new files.
3145 * Makefile.in: Regenerated.
3147 2004-07-21 Michael Koch <konqueror@gmx.de>
3149 * javax/swing/JEditorPane.java
3150 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
3151 (createEditorKitForContentType): Likewise.
3152 * javax/swing/text/DefaultEditorKit.java
3153 (serialVersionUID): Added constant field.
3154 (EndOfLineStringPropery): Fixed typo.
3155 (DefaultEditorKit): New constructor.
3156 * javax/swing/text/Segment.java:
3157 Import java.text.CharacterIterator.
3158 * javax/swing/text/CharacterIterator.java,
3159 javax/swing/text/PlainEditorKit.java: Removed.
3160 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
3161 javax/swing/text/PlainEditorKit.java.
3162 * Makefile.in: Regenerated.
3164 2004-07-21 Michael Koch <konqueror@gmx.de>
3166 * javax/swing/JButton.java,
3167 javax/swing/text/DefaultEditorKit.java,
3168 javax/swing/text/EditorKit.java,
3169 javax/swing/text/Segment.java,
3170 javax/swing/text/StyledEditorKit.java:
3173 2004-07-21 Michael Koch <konqueror@gmx.de>
3175 * javax/swing/ImageIcon.java
3177 (description): Renamed from descr.
3178 (ImageIcon): Added missing constructors.
3179 (setParent): Removed.
3180 (setImageObserver): New method.
3181 (getImageObserver): New method.
3182 (paintIcon): Handle observer = null.
3183 * javax/swing/JButton.java
3184 (removeNotify): Fixed javadoc.
3185 (updateUI): Simplified.
3186 * javax/swing/JRootPane.java
3187 (serialVersionUID): New constant field.
3188 * javax/swing/UIManager.java:
3189 Fixed javadocs all over.
3190 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
3191 * javax/swing/text/AbstractDocument.java
3192 (createPosition): Throws BadLocationException.
3193 (getText): Likewise.
3195 * javax/swing/text/ComponentView.java
3196 (modelToView): Likewise.
3197 * javax/swing/text/DefaultEditorKit.java:
3198 Made all public methods public.
3199 (read): Throws BadLocationException and IOException.
3201 * javax/swing/text/EditorKit.java:
3202 Made all public methods public.
3203 (serialVersionUID): New constant field.
3204 (clone): New method.
3205 (read): Throws BadLocationException and IOException.
3207 * javax/swing/text/Segment.java
3208 (array): Made public.
3211 (Segment): New constructors.
3212 (clone): Reimplemented.
3213 * javax/swing/text/StyledEditorKit.java
3214 (serialVersionUID): New constant field.
3216 2004-07-21 Graydon Hoare <graydon@redhat.com>
3218 * java/awt/image/BufferedImage.java
3219 (getSource): Implement.
3220 * javax/swing/ImageIcon.java
3221 (ImageIcon): Implement ctor.
3222 * javax/swing/ScrollPaneLayout.java
3223 (preferredLayoutSize): Be more careful about nulls.
3225 2004-07-21 Michael Koch <konqueror@gmx.de>
3227 * javax/swing/text/AttributeSet.java
3228 (CharacterAttribute): New interface
3229 (ColorAttribute): Likewise.
3230 (FontCharacterAttribute): Likewise.
3231 (ParagraphAttribute): Likewise.
3232 * javax/swing/text/DefaultCaret.java
3233 (moveCaret): New method.
3234 (positionCaret): Likewise.
3235 (repaint): Made protected.
3236 * javax/swing/text/JTextComponent.java
3237 (KeyBinding): Made it static.
3238 * javax/swing/text/View.java
3239 (getContainer): Honor parent == null.
3241 2004-07-21 Michael Koch <konqueror@gmx.de>
3243 * javax/swing/text/AbstractDocument.java:
3246 2004-07-21 Michael Koch <konqueror@gmx.de>
3248 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3249 Import javax.swing.UIManager explicitely.
3250 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
3251 (ScrollingButton): Made it static.
3253 2004-07-21 Michael Koch <konqueror@gmx.de>
3255 * javax/swing/UIDefaults.java
3256 (ActiveValue): Made public.
3257 (LazyValue): Likewise.
3258 * javax/swing/plaf/basic/BasicTextUI.java
3259 (RootView): Reintroduced.
3261 (rootView): New field.
3262 (installUI): Create document if needed, initialize rootView.
3263 (uninstallUI): Hanle rootView.
3265 (getRootView): Likewise.
3266 (setView): Likewise.
3267 * javax/swing/text/DefaultCaret.java:
3268 Renamed all "evt" variables to "event".
3270 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3272 * libgcj.spec.in: Add -l-java-util-logging.
3274 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
3276 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3277 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
3278 gtk-xft-dpi can no calculate the right value.
3279 (dpi_changed_cb): Mark *pspec as unsused.
3281 2004-07-21 David Jee <djee@redhat.com>
3283 * java/awt/Component.java
3284 (move): Delegate to setBounds().
3286 (reshape): Fix so it repaints parent and self only when necessary.
3288 2004-07-21 David Jee <djee@redhat.com>
3290 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3291 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3292 (GtkComponentPeer): Revert previous patch from 2004-06-22.
3293 (setVisible): Likewise.
3296 (getArgs): Likewise.
3297 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3298 (property_notify_predicate): Likewise.
3299 (find_layout): Likewise.
3300 (connectJObject): Likewise.
3301 (connectSignals): Likewise.
3302 (moveLayout): Likewise.
3303 (gtkLayoutSetVisible): Likewise.
3305 2004-07-21 Graydon Hoare <graydon@redhat.com>
3311 (rmiregistry_LDADD): Add lib-java-util-logging.la
3312 * Makefile.in: Regenerate.
3314 2004-07-21 Michael Koch <konqueror@gmx.de>
3316 * javax/swing/text/AbstractDocument.java
3317 (replace): Dont use protected method of java.util.Vector directly.
3319 2004-07-21 Michael Koch <konqueror@gmx.de>
3321 * javax/swing/plaf/basic/BasicTextUI.java
3322 (installUI): Call specialized install methods.
3323 (installDefaults): New method.
3324 (installListeners): Likewise.
3325 (installKeyboardActions): Likewise.
3326 (uninstallUI): Likewise.
3327 (uninstallDefaults): New method.
3328 (uninstallListeners): Likewise.
3329 (uninstallKeyboardActions): Likewise.
3330 (getPropertyPrefix): New abstract method.
3331 (paint): Made final, just call paintSafely().
3332 (paintSavely): New method.
3333 (paintBackground): Likewise.
3334 (getVisibleEditorRect): Likewise.
3335 * javax/swing/text/LayeredHighlighter.java,
3336 javax/swing/text/TabExpander.java: New files.
3337 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
3338 and javax/swing/text/TabExpander.java.
3339 * Makefile.in: Regenerated.
3341 2004-07-21 Michael Koch <konqueror@gmx.de>
3343 * javax/swing/plaf/basic/BasicTextUI.java
3344 (BasicTextUI): Made abstract.
3345 (BasicCaret): New inner class.
3346 (view): Don't explicitely initialize with "null".
3347 (textComponent): New field.
3348 (textColor): Removed.
3349 (disabledTextColor): Removed.
3350 (normalBackgroundColor): Removed.
3351 (RootView): Removed commented out inner class.
3352 (createUI): Removed.
3353 (createCaret): New method.
3354 (getComponent): Likewise.
3355 (installUI): Initialize textComponent only.
3356 (getPreferredSize): Use installed JTextComponent.
3357 (setView): New method.
3359 * javax/swing/text/JTextComponent.java
3360 (highlighter): New field.
3361 (caretColor): Likewise.
3362 (disabledTextColor): Likewise.
3363 (seletedTextColor): Likewise.
3364 (selectionColor): Likewise.
3365 (setUI): New method.
3366 (getCaretColor): Likewise.
3367 (setCaretColor): Likewise.
3368 (getDisabledColor): Likewise.
3369 (setDisabledColor): Likewise.
3370 (getSelectedTextColor): Likewise.
3371 (setSelectedTextColor): Likewise.
3372 (getSelectionColor): Likewise.
3373 (setSelectionColor): Likewise.
3374 (getHighlighter): Likewise.
3375 (setHighlighter): Likewise.
3376 (replaceSelection): Likewise.
3378 2004-07-21 Michael Koch <konqueror@gmx.de>
3380 * javax/swing/plaf/basic/BasicScrollPaneUI.java
3381 (BasicScrollPaneUI): Implements ScrollPaneConstants.
3382 * javax/swing/plaf/basic/BasicToolBarUI.java
3383 (BasicToolBarUI): Implements SwingConstants.
3385 2004-07-21 Michael Koch <konqueror@gmx.de>
3387 * javax/swing/JPopupMenu.java: Removed CVS tags.
3388 * javax/swing/UIDefaults.java: Reformatted.
3389 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3390 Explicitely import used classes.
3392 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3394 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3395 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3396 (GtkComponentPeer): Remove temporary try/catch block.
3397 (setVisible): Call show and hide.
3398 (show): Make native.
3400 (getArgs): Don't add "visible" argument.
3401 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3402 (property_notify_predicate): Return Bool instead of int.
3403 (find_layout): New function.
3404 (connectJObject): Call find_layout.
3405 (connectSignals): Likewise.
3406 (moveLayout): Likewise.
3407 (gtkLayoutSetVisible): Likewise.
3409 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3411 * javax/swing/AbstractButton.java:
3412 (setDisplayedMnemonicIndex): Check if button
3413 text is not null before checking its length.
3414 * javax/swing/JMenuItem.java:
3415 (processMouseEvent): Disarm menu item if mouse has
3417 * javax/swing/plaf/basic/BasicMenuUI.java:
3418 (MouseInputHandler.mouseEntered): Do not raise
3419 popup menu if this menu is already selected.
3420 (MouseInputHandler.mousePressed): Do not fire
3422 (MenuHandler): Implemented.
3424 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3426 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
3427 (getSelectedObjects): Implemented.
3428 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
3429 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
3430 Added javadoc for few methods.
3431 (processMouseEvent): Made public.
3432 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
3433 (processMouseEvent): Likewise.
3435 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3437 * javax/swing/AbstractButton.java:
3438 (init): Set display mnemonic index to -1.
3439 (setMnemonic(char)): Use setMnemonic(int).
3440 (setMnemonic(int)): Set display mnemonic index.
3441 (getDisplayedMnemonicIndex): Change method signature
3442 by removing 'index' parameter.
3443 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3444 Added default for Menu.selectionBackground.
3445 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3446 (paintMenuItem): Change background color of the selected
3448 (paintText): Paint differently when menu item is disabled.
3449 Also paint mnemonic if it appears in the menu item's label.
3450 (paintAccelerator): Paint accelerator differently
3451 if menu item is disabled.
3452 * javax/swing/plaf/basic/BasicMenuUI.java:
3453 (installDefaults): Install defaults for
3454 selectionForeground and selectionBackground.
3455 (uninstallDefaults): Uninstall defauls for
3456 selectionForeground and selectionBackground.
3458 2004-07-21 Michael Koch <konqueror@gmx.de>
3460 * javax/swing/text/AbstractDocument.java
3461 (BranchElement): Implemented.
3462 (LeafElement): Implemented.
3463 * javax/swing/text/DefaultCaret.java:
3464 Import used classes.
3465 (serialVersionUID): New constant.
3466 * javax/swing/text/JTextComponent.java
3467 (AccessibleJTextComponent): Removed dead declaration.
3468 (caretPos): Removed.
3469 (setCaret): New method.
3470 * javax/swing/text/PlainDocument.java
3471 (rootElement): New field.
3472 (PlainDocument): Initialize rootElement.
3473 (createDefaultRoot): New method.
3474 (getDefaultRootElement): Implemented.
3475 * javax/swing/text/View.java: Reformatted.
3476 * javax/swing/text/ViewFactory.java
3477 (create): Added javadoc.
3479 2004-07-21 Michael Koch <konqueror@gmx.de>
3481 * javax/swing/ToolTipManager.java: Reformatted.
3483 2004-07-21 Rodimina Olga <rodimina@redhat.com>
3485 * javax/swing/AbstractButton.java
3486 (changeEvent): New field.
3487 (fireItemStateChanged): Change source of the event
3488 to 'this' before firing it to button listeners.
3489 (fireActionPerformed): Likewise.
3490 (fireStateChanged): Likewise.
3491 (createActionListener): Do not set source
3492 of the event to AbstractButton.
3493 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3494 (ContainerHandler.componentAdded): Removed
3495 print out statement.
3496 (ContainerHandler.componentRemoved): Likewise.
3498 2004-07-21 Michael Koch <konqueror@gmx.de>
3500 * javax/swing/text/Highlighter.java: New file.
3501 * Makefile.am: Added javax/swing/text/Highlighter.java.
3502 * Makefile.in: Regenerated.
3504 2004-07-21 Michael Koch <konqueror@gmx.de>
3506 * javax/swing/ToolTipManager.java
3507 (stillInsideTimerAction): Fixed constructor arguments.
3508 (outsideTimerAction): Likewise.
3509 (insideTimerAction): Likewise.
3511 2004-07-21 Michael Koch <konqueror@gmx.de>
3513 * javax/swing/JButton.java: Reformatted.
3514 * javax/swing/JFormattedTextField.java
3515 (getUIClassID): Implemented.
3516 * javax/swing/JRootPane.java
3517 (serialVersionUID): New constant.
3518 * javax/swing/JTextField.java
3520 (JTextField): Simplified.
3521 (getUIClassID): New method.
3522 (getActionListeners): Added @since tag.
3523 (setColumns): Invalidate layout and repaint.
3524 (getHorizontalAlignment): New method.
3525 (setHorizontalAlignment): New method.
3526 (selectAll): Removed.
3527 * javax/swing/SwingUtilities.java
3528 (getAncestorOfClass): Removed redundant @see tag.
3529 (isLeftMouseButton): Fixed implementation.
3530 (isMiddleMouseButton): Likewise.
3531 (isRightMouseButton): Likewise.
3532 * javax/swing/text/AbstractDocument.java
3533 (AttributeContext.addAttribute): New method.
3534 (AttributeContext.addAttributes): New method.
3535 (AttributeContext.getEmptySet): New method.
3536 (AttributeContext.reclaim): New method.
3537 (AttributeContext.removeAttribute): New method.
3538 (AttributeContext.removeAttributes): New method.
3539 * javax/swing/text/Document.java
3540 (createPosition): Throws BadLocationException.
3541 (getText): Likewise.
3543 * javax/swing/text/JTextComponent.java
3544 (getText): Return null if no document is set. Catch
3545 BadLocationException.
3547 (updateUI): Simplified.
3549 2004-07-21 Michael Koch <konqueror@gmx.de>
3551 * javax/swing/JButton.java
3552 (removeNotify): Fixed javadoc.
3553 (updateUI): Simplified.
3555 2004-07-21 David Jee <djee@redhat.com>
3557 * gnu/java/awt/image/ImageDecoder.java
3558 (startProduction): Only add consumer if it's not added yet.
3559 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
3560 (GdkPixbufDecoder): Don't call initState() here.
3561 (produce): Call initState() here, to ensure area_prepared and
3562 area_updated signals are properly connected.
3563 * gnu/java/awt/peer/gtk/GtkImage.java
3564 (setColorModel): Use equals() to compare ColorModel objects.
3565 (setPixels): Likewise.
3566 * java/awt/image/ColorModel.java
3567 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
3568 * java/awt/image/RGBImageFilter.java
3569 (setColorModel): Set consumer's color model.
3570 (setPixels): Use equals() to compare ColorModel objects.
3572 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
3574 * java/net/URLConnection.java (position): New field.
3575 (dateFormat1, dateFormat2, dateFormat3): Removed.
3576 (dateFormats): New field.
3577 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
3578 each time instead of re-allocating.
3579 (initializeDateFormats): Initialize 'dateFormats'.
3581 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3584 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
3587 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3589 * java/net/Socket.java (getImpl): Now private. Remove comment.
3591 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3593 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
3594 of chained Writer when calling super-constructor.
3595 * java/io/FilterWriter.java (FilterWriter): Likewise.
3596 * java/io/PrintWriter.java (PrintWriter): Likewise.
3598 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
3600 * prims.cc (process_gcj_properties): Don't increment i within LHS
3603 2004-07-19 Per Bothner <per@bothner.com>
3605 Print -verbose:message on "loading", not initialization.
3606 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
3607 * defineclass.cc (_Jv_ClassReader::parse): Print message if
3608 gcj::verbose_class_flag.
3609 * java/lang/natClass.cc (initializeClass): Don't print message here.
3610 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
3611 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
3612 (_Jv_PrepareCompiledClass): Likewise.
3614 2004-07-18 Matthias Klose <doko@debian.org>
3616 * configure.in: Substitute target_noncanonical.
3617 * configure: Regenerate
3619 2004-07-17 Michael Koch <konqueror@gmx.de>
3621 * java/lang/String.java: Fixed javadocs all over.
3623 2004-07-17 Mark Wielaard <mark@klomp.org>
3625 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
3626 when size is smaller.
3627 * java/io/RandomAccessFile.java (setLength): Use truncate for
3628 shrinking the file and seek plus write for expanding the file.
3630 2004-07-17 Michael Koch <konqueror@gmx.de>
3632 * gnu/java/nio/channels/natFileChannelPosix.cc
3633 (implTruncate): Always save current position. Only reposition file
3634 pointer to where we started if not beyond new lenght. Reposition file
3635 pointer to file length if it points beyond the end of file.
3637 2004-07-17 Mark Wielaard <mark@klomp.org>
3639 * javax/swing/Box.java: Put FIXME comment above class declaration.
3640 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
3641 * javax/swing/JCheckBox.java: Likewise.
3642 * javax/swing/JDialog.java: Likewise.
3643 * javax/swing/JRadioButton.java: Likewise.
3644 * javax/swing/JToggleButton.java: Likewise.
3645 * javax/swing/UIManager.java: Likewise.
3646 * javax/swing/border/TitledBorder.java: Likewise.
3647 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3648 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
3649 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
3650 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3651 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
3652 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3653 * javax/swing/text/JTextComponent.java: Likewise.
3655 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
3657 * java/net/DatagramPacket.java (setAddress): Removed check for
3660 2004-07-17 Michael Koch <konqueror@gmx.de>
3662 * java/net/DatagramSocket.java
3663 (getLocalAddress): Check if socket is bound or not.
3664 * java/net/Socket.java
3665 (getLocalAddrss): Check if socket is bound or not.
3666 (getPort): Return -1 when not connected. Dont check getImpl() for
3668 (setReuseAddress): Check if socket is closed.
3669 (isConnected): Check if getImpl() returns null.
3671 2004-07-17 Mark Wielaard <mark@klomp.org>
3673 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3674 on notifier object before calling notifyAll().
3676 2004-07-17 Michael Koch <konqueror@gmx.de>
3678 * gnu/java/nio/channels/FileChannelImpl.java
3679 (finalize): Added javadoc.
3681 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
3683 * java/text/CollationElementIterator.java
3684 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
3685 (setText): Use ArrayList instead of Vector.
3687 2004-07-17 Michael Koch <konqueror@gmx.de>
3689 * java/nio/ByteOrder.java
3690 (static): Removed. Not needed.
3691 Thanks to Patrick Reali for noticing.
3692 * java/nio/charset/CharsetDecoder.java
3693 (decode): Fix for classpath bug #9177: Reset state before flipping.
3695 2004-07-17 Michael Koch <konqueror@gmx.de>
3697 * java/security/Security.java: Fixed javadocs all over.
3699 2004-07-17 Michael Koch <konqueror@gmx.de>
3701 * gnu/java/awt/EmbeddedWindow.java
3703 (addNotify): Set peer via reflection.
3704 (setWindowPeer): Removed.
3705 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
3706 * Makefile.am (nat_source_files):
3707 Removed gnu/java/awt/natEmbeddedWindow.cc.
3708 * Makefile.in: Regenerated.
3710 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
3712 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
3714 * configure: Regenerated.
3716 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
3718 * configure.in: Use build_noncanonical rather than build_alias.
3719 * configure: Rebuild.
3721 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
3722 by logic refactoring. Move default definition of NATIVE closer
3723 to first alternate definition.
3724 * configure: Regenerate.
3726 * Makefile.am: Set ZIP and GCJH directly using autoconf.
3727 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
3728 gcj/Makefile.in: Regenerate.
3729 * configure.in: Set ZIP and GCJH. Remove redundant condition
3730 in AM_CONDITIONAL(NATIVE,...)
3731 * configure: Regenerate.
3733 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
3735 * configure.in: Use target_noncanonical rather than
3736 target_alias for forward-compatibility with autoconf 2.59.
3737 * configure: Regenerate.
3738 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
3739 testsuite/Makefile.am: Substitute target_noncanonical.
3740 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3741 testsuite/Makefile.in: Regenerate.
3743 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
3744 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
3745 * acinclude.m4: Include acx.m4.
3746 * aclocal.m4: Regenerate.
3747 * configure: Regenerate.
3749 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
3752 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
3753 (decimalFormat): New static variable.
3755 (getTime): New. Override Date.getTime().
3756 (toString): Synchronize. Use decimalFormat to format nanos value
3757 correctly. Truncate extra zeros.
3758 (before): Compare getNanos() only if getTime() is equal.
3761 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3763 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
3764 * configure.in: ...here.
3765 * aclocal.m4: Regenerate.
3766 * configure: Regenerate.
3768 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
3769 * configure: Rebuilt with autoconf 2.13.
3770 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3771 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
3773 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
3776 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
3778 * Makefile.in: Rebuilt.
3779 * testsuite/libjava.lang/LargeFile.java: New test case.
3780 * testsuite/libjava.lang/LargeFile.out: New file.
3782 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
3784 * java/beans/EventHandler.java: Remove debugging statements.
3786 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
3788 * java/beans/EventHandler.java: New file.
3789 * Makefile.am (awt_java_source_files): Add EventHandler.java.
3790 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3791 testsuite/Makefile.in: Regenerate.
3793 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
3795 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
3796 flag to the gcj_setup.
3797 (gcj_jacks_run): Check tclsh version and launch jacks directly with
3799 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
3800 deprecation flag change. 58 XFAILS removed.
3802 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
3804 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
3805 -fno-use-divide-subroutine.
3806 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
3807 (HANDLE_FPE): Define.
3808 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
3809 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
3810 (HANDLE_DIVIDE_OVERFLOW): Define.
3812 2004-07-14 Michael Koch <konqueror@gmx.de>
3813 Matthias Klose <doko@debian.org>
3815 * java/awt/im/InputContext.java: Initialize in, line.
3817 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
3819 * interpret.cc (run): Correctly access libffi return values of
3820 integral smaller-than-int type; these are implicitly promoted.
3822 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
3825 * interpret.cc (compile_mutex): New.
3826 (_Jv_InitInterpreter): New. Initialize compile_mutex.
3827 (run): Lock compile_mutex before calling compile() if compilation is
3829 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
3830 * include/java-interp.h (_Jv_InitInterpreter): Declare.
3832 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
3835 * include/jvm.h (_Jv_value): New union type.
3836 * gcj/field.h (_Jv_Field): Add new _addr union field variants
3837 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
3840 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
3842 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
3843 * gnu/awt/xlib/XOffScreenImage.java
3844 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
3845 constructor argument. Add constructor using ImageProducer.
3846 (getSource): Implement.
3847 (imageComplete): New method.
3848 (setColorModel): New method.
3849 (setDimensions): New method.
3850 (setHints): New method.
3851 (setPixels): New method.
3852 (setProperties): New method.
3853 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
3854 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
3856 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
3859 * prims.cc (_Jv_CreateJavaVM): Fix comment.
3860 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
3861 (finalizerReady): Now native.
3863 (runFinalizers): Removed.
3864 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
3865 a primitive lock, and don't hold it while running the finalizers.
3866 (runFinalizers): Implement. Don't aquire any Java lock.
3867 (finalizerReady): Use lock primitives to signal finalizer thread.
3869 2004-07-11 Mark Wielaard <mark@klomp.org>
3871 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
3872 * java/net/URLStreamHandler.java (parseURL): When url file part
3873 doesn't contain a '/' just ignore context.
3875 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
3877 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
3878 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
3879 (MAKE_THROW_FRAME): Do not modify PSW address.
3880 (INIT_SEGV): Install SIGINFO-style signal handler.
3881 (INIT_FPE): Likewise.
3883 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
3885 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
3886 status. 21 xfail's removed, 1 added.
3888 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
3890 * gcj/javaprims.h: Regenerate CNI namespace definitions.
3892 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
3894 * java/text/MessageFormat.java
3895 (formatInternal): Append "{n}" if argument n is unavailable.
3896 (format(Object, StringBuffer, FieldPosition)): This
3897 should be equivalent to format(Object[],
3898 StringBuffer, FieldPosition).
3900 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3902 * java.util.Calendar.java (cache): New private static field. Cached
3903 mappings of locales->calendar classes.
3904 (ctorArgTypes): New private static field. Singleton argument for
3905 calendar class constructor lookup.
3906 (getInstance): Cache Locale->Calendar class mappings using HashMap.
3907 Optimize by bypassing reflection instantiation for the
3908 GregorianCalendar case.
3910 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3912 * java/util/Calendar.java: Use getSystemClassLoader as argument for
3913 ResourceBundle.getBundle() calls.
3914 * java/util/GregorianCalendar.java: Likewise.
3915 * java/util/Currency.java: Likewise.
3916 * java/text/BreakIterator.java: Likewise.
3917 * java/text/Collator.java: Likewise.
3918 * java/text/DateFormat.java: Likewise.
3919 * java/text/DateFormatSymbols.java: Likewise.
3920 * java/text/DecimalFormatSymbols.java: Likewise.
3921 * java/text/NumberFormat.java: Likewise.
3922 * java/awt/Window.java: Likewise.
3924 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3926 * java/util/ResourceBundle.java (bundleCache): Renamed from
3927 resourceBundleCache. Update comments.
3928 (getObject): Don't catch MissingResourceException.
3929 (getBundle(String)): Remove 'final'. Use system classloader if
3930 getCallingClassLoader returned null.
3931 (getBundle(String, Locale)): Likewise.
3932 (BundleKey): New private class. HashMap key for bundle cache lookup.
3933 (lookupKey): New. Singleton instance of BundleKey.
3934 (nullEntry): New. Cache entry to represent failed lookups.
3935 (getBundle(String, Locale, ClassLoader)): Re-written to use new
3936 caching strategy, no-allocation lookup, and new tryBundle methods.
3937 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
3938 name using given classloader.
3939 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
3940 baseName for given Locale and attempt to load bundle.
3942 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3944 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
3945 illegal protected method calls.
3947 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3949 Fix or remove some bogus test cases.
3950 * testsuite/libjava.compile/pr10459_2.java: Removed.
3951 * testsuite/libjava.compile/pr10459.java: Test using its own method,
3953 * testsuite/libjava.compile/inner_data.java: Test against its own
3956 2004-07-09 Michael Koch <konqueror@gmx.de>
3958 * scripts/unicode-muncher.pl: Updated to version 2.1
3959 from GNU classpath. Added some clarifications on where to find the
3960 needed files from www.unicode.org.
3961 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
3962 gnu/gcj/convert/UnicodeData-3.0.0.txt:
3963 Removed, these can directly be downloaded from www.unicode.org if
3965 * gnu/java/lang/CharData.java: Regenerated.
3966 * include/java-chartables.h: Regenerated.
3967 * Makefile.am (ordinary_java_source_files):
3968 Removed gnu/java/lang/CharData.java.
3969 * Makefile.in: Regenerated.
3971 2004-07-09 Michael Koch <konqueror@gmx.de>
3973 * java/security/AccessControlContext.java,
3974 java/security/SecureClassLoader.java:
3977 2004-07-09 Michael Koch <konqueror@gmx.de>
3979 * java/io/ObjectInputStream.java (readFields): Use long datatype
3980 when shifting byte values more then 24 bits left.
3982 2004-07-09 Michael Koch <konqueror@gmx.de>
3984 * java/util/zip/DeflaterOutputStream.java,
3985 java/util/zip/GZIPInputStream.java,
3986 java/util/zip/GZIPOutputStream.java,
3987 java/util/zip/InflaterInputStream.java:
3988 Reformatted. Added javadocs. Reordered all stuff.
3989 Renamed variables to be more clear.
3991 2004-07-09 Michael Koch <konqueror@gmx.de>
3993 * javax/imageio/IIOException.java,
3994 javax/imageio/event/IIOReadProgressListener.java,
3995 javax/imageio/event/IIOReadUpdateListener.java,
3996 javax/imageio/event/IIOReadWarningListener.java,
3997 javax/imageio/event/IIOWriteProgressListener.java,
3998 javax/imageio/event/IIOWriteWarningListener.java:
4000 * Makefile.am: Added new files.
4001 * Makefile.in: Regenerated.
4003 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
4005 * java/text/RuleBasedCollator.java
4006 (mergeRules): Use ArrayList instead of Vector.
4007 (subParseString): likewise.
4008 (parseString): likewise.
4009 (buildCollationVector): likewise.
4010 (getCollationKey): likewise.
4012 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4014 * java/text/DateFormat.java (parse):
4015 Improved javadoc. Improved exception message.
4017 2004-07-09 Mark Wielaard <mark@klomp.org>
4019 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
4020 interrupted() method to clear interupt flag of our Thread.
4022 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4024 * java/nio/Buffer.java,
4025 java/nio/ByteBuffer.java,
4026 java/nio/ByteBufferHelper.java,
4027 java/nio/ByteBufferImpl.java,
4028 java/nio/CharBuffer.java,
4029 java/nio/CharBufferImpl.java,
4030 java/nio/CharViewBufferImpl.java,
4031 java/nio/DirectByteBufferImpl.java,
4032 java/nio/DoubleBuffer.java,
4033 java/nio/DoubleBufferImpl.java,
4034 java/nio/DoubleViewBufferImpl.java,
4035 java/nio/FloatBuffer.java,
4036 java/nio/FloatBufferImpl.java,
4037 java/nio/FloatViewBufferImpl.java,
4038 java/nio/IntBuffer.java,
4039 java/nio/IntBufferImpl.java,
4040 java/nio/IntViewBufferImpl.java,
4041 java/nio/LongBuffer.java,
4042 java/nio/LongBufferImpl.java,
4043 java/nio/LongViewBufferImpl.java,
4044 java/nio/MappedByteBufferImpl.java,
4045 java/nio/ShortBuffer.java,
4046 java/nio/ShortBufferImpl.java,
4047 java/nio/ShortViewBufferImpl.java:
4048 Fixed javadocs all over. Improved input error
4051 * java/nio/Buffer.java
4052 (checkForUnderflow, checkForOverflow, checkIndex,
4053 checkIfReadOnly, checkArraySize): New helper methods
4056 * java/nio/ByteBufferHelper.java
4057 (checkRemainingForRead, checkRemainingForWrite,
4058 checkAvailableForRead, checkAvailableForWrite): Removed
4059 no longer needed methods.
4061 2004-07-09 Michael Koch <konqueror@gmx.de>
4063 * gnu/regexp/CharIndexedInputStream.java:
4064 Reordered imports to match classpath.
4066 2004-07-09 Michael Koch <konqueror@gmx.de>
4068 * gnu/java/awt/EmbeddedWindow.java:
4069 Load native library for setWindowPeer method.
4071 2004-07-08 Randolph Chung <tausq@debian.org>
4073 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
4074 * configure: Regenerate.
4075 * configure.host: Set can_unwind_signal for hppa*-linux.
4076 * include/pa-signal.h: New file.
4078 2004-07-07 Per Bothner <per@bothner.com>
4080 * Makefile.am: Add rules to build libgij from just gij.cc.
4082 * include/jvm.h (namespace jcj): Declare verbose_class_flag
4083 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
4084 (initializeClass): If verbose_class_flag, print message.
4085 * gij.cc (main): Handle -verbose:class flag.
4087 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
4089 * configure.host: Enable hash synchronization on Darwin.
4090 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
4091 ';', since this is a comment on Darwin.
4092 (compare_and_swap_release): Likewise.
4094 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
4096 * java/net/URLStreamHandler.java (parseURL): Canonicalize
4097 file portion of URL in addition to spec for file: protocol.
4099 2004-07-05 Anthony Green <green@redhat.com>
4101 * java/io/File.java (toURI): Merge from Classpath.
4103 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4105 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
4106 before passing to URL constructor. Rethrow any MalformedURLException
4107 as a RuntimeException. Catch MalformedURLException specifically, not
4110 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4112 * java/util/Locale.java (readObject): Intern strings read from object
4115 2004-07-04 Michael Koch <konqueror@gmx.de>
4117 * gnu/gcj/runtime/FirstThread.java,
4118 gnu/gcj/runtime/natFirstThread.cc: Removed.
4119 * gnu/java/lang/MainThread.java,
4120 gnu/java/lang/natMainThread.cc: New files.
4121 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
4122 * Makefile.am: Added new files and removed deleted ones.
4123 * Makefile.in: Regenerated.
4125 2004-07-03 Mark Wielaard <mark@klomp.org>
4126 Anthony Green <green@redhat.com>
4128 * java/net/URL.java (getFile): Clarify return value doc.
4129 (getPath): Return null if file is empty - not empty String.
4130 (set): Convert protocol to lower case before doing anything.
4131 Only change the protocol handler if it's different.
4133 2004-07-03 Anthony Green <green@redhat.com>
4135 * java/net/URL.java (URL): Convert protocol to lower case before
4136 doing anything, so we getURLStreamHandler() with the proper value.
4138 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
4140 * java/util/Locale.java (hashcode): Made transient.
4141 (hashCode): No longer synchronized.
4142 (equals): Remove comment.
4143 (writeObject): No longer synchronized. Implement using writeObject
4144 calls instead of tweaking hashCode field. Update doc.
4145 (readObject): Implement using readObject calls.
4147 2004-06-26 Geoffrey Keating <geoffk@apple.com>
4148 Andreas Tobler <a.tobler@schweiz.ch>
4150 * configure.host (powerpc-*-darwin*): New case, define
4152 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
4153 * configure: Regenerate.
4154 * include/darwin-signal.h: New.
4156 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
4158 * java/beans/Statement.java (doExecute): Fix formatting.
4160 2004-06-29 Per Bothner <per@bothner.com>
4162 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
4163 etc etc): Remove needless parenthesis, which causes __stdcall__
4164 attribute on MinGW to get ignored.
4166 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
4168 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
4170 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
4172 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
4174 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
4176 * java/beans/Expression.java: New file.
4177 * java/beans/Statement.java: New file.
4178 * Makefile.am: Added new files.
4179 * Makefile.in: Re-generate.
4181 2004-06-27 Mark Wielaard <mark@klomp.org>
4183 * java/io/FilePermission.java (usingPerms): Removed.
4184 (actionsString): Made final.
4185 (cachePerms): Renamed to checkPerms.
4186 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
4188 (FilePermission): Check arguments, call checkPerms().
4189 (equals): Remove cachePerms() call.
4190 (implies): Likewise.
4192 2004-06-27 Mark Wielaard <mark@klomp.org>
4194 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
4196 (sendRequest): Use new field in user-agent http agent.
4198 2004-06-27 Mark Wielaard <mark@klomp.org>
4200 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
4201 when argument is null.
4203 2004-06-26 Mark Wielaard <mark@klomp.org>
4205 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
4206 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
4208 (cancel_clicked): Likewise.
4210 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
4212 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
4213 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
4214 can not calculate the right value.
4215 (dpi_changed_cb): Likewise. Mark *pspec as unused.
4217 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
4219 * testsuite/libjava.jacks/jacks.xfail: Remove
4220 15.9.1-qualified-concrete-20.
4222 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4224 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
4225 encoding name to iconv.
4226 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4228 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4231 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
4232 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
4233 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4235 2004-06-21 Andrew Haley <aph@redhat.com>
4237 * java/io/ObjectOutputStream.java: Add DEBUG statements
4239 (dumpElementln): New method.
4241 * java/io/ObjectInputStream.java
4242 (currentClassLoader): Make native.
4243 (callersClassLoader): New field.
4245 (readObject): ENDBLOCKDATA is generated if the class has a write
4246 method, not if it has a read method.
4247 (readObject): Save and restore this.currentObject and
4248 this.currentObjectStreamClass around calls to callReadMethod().
4249 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
4252 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
4254 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
4257 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4259 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
4260 if desired, before the default class loader is initialised.
4261 Call INIT_SEGV only if HANDLE_SEGV is defined.
4263 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4265 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
4266 directory only if it actually exists.
4268 2004-06-18 Graydon Hoare <graydon@redhat.com>
4270 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4271 Fix up non-ansi comments.
4273 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4275 * javax/swing/text/AbstractDocument.java: Adding missing import
4276 for javax.swing.event.EventListenerList.
4277 * javax/swing/text/DefaultCaret.java: Likewise.
4279 2004-06-17 Michael Koch <konqueror@gmx.de>
4281 * javax/swing/JToolBar.java
4283 (JToolBar): Use Component.setName(String) instead of doing it all
4285 * javax/swing/Timer.java
4286 (queueEvent): Added missing modifier.
4288 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
4290 * Makefile.am: Added new file.
4291 * Makefile.in: Re-generate.
4292 * javax/swing/JMenu.java:
4293 (insertSeparator): Implemented.
4294 * javax/swing/JPopupMenu.java:
4295 (JPopupMenu.Separator): Implemented.
4296 * javax/swing/MenuSelectionManager.java:
4297 (processMouseEvent): Use java.awt.Component
4298 for event source instead of javax.swing.JComponent.
4299 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
4300 New File. Implemented.
4302 2004-06-16 David Jee <djee@redhat.com>
4304 * java/awt/GridBagLayout.java
4305 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
4306 Make sure pos_x and pos_y are never negative.
4308 2004-04-16 Andrew Overholt <overholt@redhat.com>
4310 * Makefile.am: Add new file.
4311 * Makefile.in: Re-generate.
4312 * javax/swing/JToolBar.java
4313 Partially implemented.
4314 * javax/swing/plaf/basic/BasicToolBarUI.java
4315 New file. Partially implemented.
4317 2004-06-16 Graydon Hoare <graydon@redhat.com>
4319 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
4320 (setComposite): Accept AlphaComposite arguments.
4321 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
4322 (createBufferedImage): Add new overloads.
4323 * gnu/java/awt/peer/gtk/GtkToolkit.java
4324 (createImage): Use GdkPixbufDecoder.createBufferedImage
4325 when useGraphics2D() is true.
4326 (getImage): Delegate to createImage.
4327 * javax/swing/JList.java
4329 (getFirstVisibleIndex):
4330 (getLastVisibleIndex):
4332 (ensureIndexIsVisible): New methods.
4333 * javax/swing/Timer.java: Reimplement.
4335 2004-06-16 Michael Koch <konqueror@gmx.de>
4337 * javax/swing/text/AbstractDocument.java
4338 (AbstracElement): Made public, implements java.io.Serializable.
4339 (AttributeContext): Made public.
4340 (BranchElement): Likewise.
4341 (Content): Likewise.
4342 (DefaultDocumentEvent): Made public, extends
4343 javax.swing.undo.CompoundEdit.
4344 (ElementEdit): Made public, extends
4345 javax.swing.undo.AbstractUndoableEdit.
4346 (LeafElement): Made public.
4347 (LeafElement.LeafElement): Made public.
4349 2004-06-16 Michael Koch <konqueror@gmx.de>
4351 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
4352 methods (that were obviously never be intended to get included hi this
4353 class. Added some methods too.
4355 2004-06-16 Michael Koch <konqueror@gmx.de>
4357 * javax/swing/text/PlainDocument.java
4358 (serialVersionUID): New constant.
4359 (lineLimitAttribute): Likewise.
4360 (tabSizeAttribute): Likewise.
4361 (tabSize): New field.
4362 (PlainDocument): Made public.
4363 (PlainDocument): New constructor.
4365 2004-06-16 Michael Koch <konqueror@gmx.de>
4367 * javax/swing/text/AbstractDocument.java
4368 (insertString): Throws BadLocationException.
4369 * javax/swing/text/Document.java
4370 (insertString): Likewise.
4371 * javax/swing/text/JTextComponent.java:
4372 Javadocs and comments cleaned up.
4374 2004-06-16 Michael Koch <konqueror@gmx.de>
4376 * javax/swing/event/UndoableEditListener.java: Reformatted.
4377 * javax/swing/text/AbstractDocument.java
4378 (AbstractDocument): Implements java.io.Serializable.
4379 (doc_list): Removed.
4380 (undo_list): Removed.
4381 (AbstractElement.serialVerionUID): New field.
4382 (BranchElement.serialVerionUID): Likewise.
4383 (DefaultDocumentEvent.serialVerionUID): Likewise.
4384 (ElementEdit.serialVerionUID): Likewise.
4385 (LeafElement.serialVerionUID): Likewise.
4386 (serialVerionUID): Likewise.
4387 (BAD_LOCATION): New constant.
4388 (BidiElementName): Likewise.
4389 (ContentElementName): Likewise.
4390 (ParagraphElementName): Likewise.
4391 (SectionElementName): Likewise.
4392 (ElementNameAttribute): Likewise.
4393 (AbstractDocument): Made protected.
4394 (AbstractDocument): New construtor.
4395 (listenerList): New field.
4396 (fireChangedUpdate): Implemented.
4397 (fireInsertUpdate): Likewise.
4398 (fireRemoveUpdate): Likewise.
4399 (fireUndoableEditUpdate): Likewise.
4400 (getListeners): Likewise.
4401 (addDocumentListener): Likewise.
4402 (removeDocumentListener): Likewise.
4403 (addUndoableEditListener): Likewise.
4404 (removeUndoableEditListener): Likewise.
4405 (getDocumentListeners): New method.
4406 (getUndoableEditListeners): Likewise.
4407 (getAsynchronousLoadPriority): Made public.
4408 (getBidiRootElement): Likewise.
4409 (setAsynchronousLoadPriority): Likewise.
4410 (setDocumentProperties): Likewise.
4411 * javax/swing/text/BadLocationException.java
4412 (serialVerionUID): New field.
4413 * javax/swing/text/DefaultCaret.java
4414 (changeEvent): New field.
4415 (listenerList): Likewise.
4417 (addChangeListener): Reimplemented.
4418 (removeChangeListener): Likewise.
4419 (getListeners): New method.
4420 (getChangeListeners): Likwise.
4421 (getComponent): Likewise.
4422 * javax/swing/text/GapContent.java
4423 (GapContent): Implements java.io.Serializable.
4424 (serialVerionUID): New field.
4426 2004-06-16 Michael Koch <konqueror@gmx.de>
4428 * javax/swing/JTree.java
4429 (treeModel): New field.
4430 (JTree): New constructors, one existing one made public.
4431 (createTreeModel): New method.
4432 (addTreeExpansionListener): Likewise.
4433 (removeTreeExpansionListener): Likewise.
4434 (getTreeExpansionListeners): Likewise.
4435 (fireTreeCollapsed): Likewise.
4436 (fireTreeExpanded): Likewise.
4437 (addTreeSelectionListener): Likewise.
4438 (removeTreeSelectionListener): Likewise.
4439 (getTreeSelectionListeners): Likewise.
4440 (fireValueChanged): Likewise.
4441 (addTreeWillExpandListener): Likewise.
4442 (removeTreeWillExpandListener): Likewise.
4443 (getTreeWillExpandListeners): Likewise.
4444 (fireTreeWillCollapse): Likewise.
4445 (fireTreeWillExpand): Likewise.
4447 2004-06-16 Michael Koch <konqueror@gmx.de>
4449 * javax/swing/JTree.java: Reformatted.
4451 2004-06-16 Michael Koch <konqueror@gmx.de>
4453 * javax/swing/JTextArea.java: New file.
4454 * javax/swing/JTextField.java
4456 (notifyAction): New constant.
4457 (columns): New field.
4458 (JTextField): New constructors.
4459 (createDefaultModel): New method.
4460 (addActionListener): Reimplmemented.
4461 (removeActionListener): Reimplemented.
4462 (getActionListeners): New method.
4463 (fireActionPerformed): New method.
4464 (getColumns): New method.
4465 (setColumne): New method.
4466 * javax/swing/text/JTextComponent.java
4467 (AccessibleJTextComponent.serialVersionUID): New field.
4468 (serialVersionUID): Likewise.
4469 (DEFAULT_KEYMAP): Likewise.
4470 (FOCUS_ACCELERATOR_KEY): Likewise.
4471 (doc): Made private.
4472 (icon_gap): Likewise.
4475 (JTextComponent): Some constructors removed.
4476 (getScrollableTracksViewportHeight): New method.
4477 (getScrollableTracksViewportWidth): Likewise.
4478 * Makefile.am: Added javax/swing/JTextArea.java.
4479 * Makefile.in: Regenerated.
4481 2004-06-15 Graydon Hoare <graydon@redhat.com>
4483 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
4484 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
4485 * javax/swing/JViewport.java
4486 (getExtentSize): Return size rather than preferred size.
4487 (toViewCoordinates): New methods.
4488 (getViewSize): Return size rather than preferred size.
4489 (setViewSize): Note view size as set.
4490 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
4491 * javax/swing/plaf/basic/BasicScrollBarUI.java
4492 (getPreferredSize): Don't redo layout.
4493 * javax/swing/plaf/basic/BasicViewportUI.java
4494 (paint): Translate image properly and eat exceptions.
4496 2004-06-15 Kim Ho <kho@redhat.com>
4498 * javax/swing/JTabbedPane.java
4499 (setComponent): Remove old component and
4501 (setSelectedIndex): Don't operate on the
4502 components if they're null. Don't set index
4503 on the model if the index is the same.
4504 (insertTab): Don't add or hide the component
4505 if it's null. Repaint the container.
4506 * javax/swing/plaf/basic/BasicLookAndFeel.java
4507 Change colors for TabbedPane.
4508 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
4509 (mousePressed): Re-layout and paint the component.
4510 (layoutContainer): Don't set location on the view.
4511 (ScrollingViewport::paint): Remove.
4513 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
4515 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4516 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
4518 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
4519 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
4520 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
4522 (drawLine): Call gdk_flush before leaving GDK critical region.
4523 (fillRect): Likewise.
4524 (drawRect): Likewise.
4525 (copyArea): Likewise.
4526 (copyPixmap): Likewise.
4527 (clearRect): Likewise.
4528 (drawArc): Likewise.
4529 (drawPolyline): Likewise.
4530 (drawPolygon): Likewise.
4531 (fillPolygon): Likewise.
4532 (fillArc): Likewise.
4533 (drawOval): Likewise.
4534 (fillOval): Likewise.
4536 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
4538 (GdkFontMetrics): Add style argument to initState call.
4539 (stringWidth(String,int,int,String)): Add style parameter.
4540 (stringWidth(String)): Add style argument to stringWidth call.
4541 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
4542 (initState): Set pango font style and weight based on AWT style
4543 parameter. Pass default GTK language to
4544 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
4545 simply dividing by PANGO_SCALE.
4546 (stringWidth): Set pango font style and weight based on AWT style
4549 * java/awt/Button.java (next_button_number): New field.
4550 (paramString): Change output.
4551 (generateName): New method.
4552 (getUniqueLong): New method.
4554 2004-06-14 Kim Ho <kho@redhat.com>
4556 * javax/swing/JTabbedPane.java:
4557 (setComponentAt): Set the component, not
4559 * javax/swing/plaf/basic/BasicDesktopIconUI.java
4560 (actionPerformed): Let deiconize catch exception.
4562 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4564 * javax/swing/JPopupMenu.java:
4565 (setVisible): Corrected location of a
4566 heavyweight popup menu.
4568 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4570 * javax/swing/MenuSelectionManager.java:
4571 Ran through jalopy to fix formatting style.
4573 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4575 * javax/swing/JLayeredPane.java:
4576 (remove): Revalidate and repaint layered pane after
4577 the component was removed.
4578 javax/swing/JMenu.java:
4579 (setVisible): Display popup menu at the user location,
4580 if one was set by the user.
4581 (setMenuLocation): Reimplemented. Fixed javadoc.
4582 * javax/swing/JMenuBar.java: Added javadoc.
4583 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
4584 (MODEL_CHANGED_PROPERTY): New Property.
4585 (isSelected): Implemented.
4586 (setBorderPainted): Fire PropertyChangeEvent
4587 if paintBorder property changes.
4588 (setSelected): Implemented.
4589 (setSelectionModel): Implemented.
4590 * javax/swing/JPopupMenu.java: Added Javadoc
4591 (pack): Implemented.
4592 (setVisible): Reimplemented.
4593 (show): Fixed location.
4594 (JPopupMenu.LigthWeightPopup): Reimplemented to use
4595 Container instead of JPanel.
4596 * javax/swing/MenuSelectionManager.java: Added Javadocs.
4597 (clearSelectedPath): Reimplemented to clear selectedPath
4599 (processMouseEvent): Reimplemented.
4600 (setSelectedPath): Fire stateChange event indicating that
4601 selected menu path has changed.
4602 (getPath): Change to use ArrayList instead of Vector.
4603 * javax/swing/plaf/basic/BasicMenuBarUI.java:
4604 (installUI): call installKeyboardActions().
4605 (uninstallUI): call uninstallKeyboardActions().
4607 2004-06-13 Michael Koch <konqueror@gmx.de>
4609 * javax/swing/text/DefaultCaret.java,
4610 javax/swing/text/BadLocationException.java:
4613 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
4615 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
4616 DEFAULT_COLS): New variables.
4617 (create): Don't allow 0 rows or 0 columns. Instead, set the
4618 values to DEFAULT_ROWS or DEFAULT_COLS.
4619 (getMinimumSize): Likewise.
4620 (getPreferredSize): Likewise.
4621 (minimumSize): Likewise.
4622 (preferredSize): Likewise.
4623 (create): Set peer's editable state.
4624 * java/awt/TextArea.java (TextArea()): Set rows and columns to
4625 zero. Update javadocs.
4626 (TextArea(String)): Likewise.
4627 (TextArea(int,int)): Fix javadocs.
4628 (TextArea(String,int,int,int)): Only throw exception if one of
4629 rows or columns is zero. Fix javadocs.
4631 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
4633 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
4634 addition to Components.
4636 * java/awt/MenuItem.java (dispatchEventImpl): If the event
4637 wasn't consumed by normal processing, send it to the parent
4640 * gnu/java/awt/peer/gtk/GtkImagePainter.java
4641 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
4644 2004-06-11 David Jee <djee@redhat.com>
4646 * java/awt/MediaTracker.java
4647 (addImage(Image,int)): Call imageUpdate() to udpate image status.
4648 (addImage(Image,int,int,int)): Likewise.
4650 2004-06-11 Michael Koch <konqueror@gmx.de>
4652 * javax/swing/text/AbstractDocument.java,
4653 javax/swing/text/Document.java,
4654 javax/swing/text/GapContent.java,
4655 javax/swing/text/JTextComponent.java,
4656 javax/swing/text/PlainDocument.java:
4659 2004-06-11 Michael Koch <konqueror@gmx.de>
4661 * javax/swing/JRootPane.java
4662 (AccessibleJRootPane.serialVersionUID): New field.
4663 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
4664 (AccessibleJRootPane.getAccessibleRole): New method.
4665 (RootLayout): Implements Serializable.
4666 (RootLayout.serialVersionUID): New field.
4667 (RootLayout.RootLayout): New constructor.
4668 (setJMenuBar): Made public.
4669 (getJMenuBar): Likewise.
4670 (JRootPane): Likewise.
4671 (createContentPane): Likewise.
4672 (createGlassPane): Likewise.
4673 (createLayeredPane): Likewise.
4675 2004-06-11 Michael Koch <konqueror@gmx.de>
4677 * javax/swing/SwingUtilities.java
4678 (isLeftMouseButton): Fixed javadoc.
4679 (isMiddleMouseButton): Likewise.
4680 (isRightMouseButton): Likewise.
4682 2004-06-11 Michael Koch <konqueror@gmx.de>
4684 * javax/swing/JScrollPane.java
4685 (serialVersionUID): New field.
4686 (columnHeader): Made protected.
4687 (rowHeader): Likewise.
4688 (lowerLeft): Likewise.
4689 (lowerRight): Likewise.
4690 (upperLeft): Likewise.
4691 (upperRight): Likewise.
4692 (horizontalScrollBar): Likewise.
4693 (horizontalScrollBarPolicy): Likewise.
4694 (verticalScrollBar): Likewise.
4695 (verticalScrollBarPolicy): Likewise.
4696 (viewport): Likewise.
4698 2004-06-11 Michael Koch <konqueror@gmx.de>
4700 * javax/swing/LookAndFeel.java: Fixed javadocs.
4702 2004-06-11 Michael Koch <konqueror@gmx.de>
4704 * javax/swing/JEditorPane.java: Fixed javadocs.
4705 (JEditorPane): Removed redundant call to to this().
4706 (fireHyperlinkUpdate): Implemented.
4708 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4710 * javax/swing/JMenu.java: Fixed file name
4711 in the file comment.
4713 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4715 * javax/swing/JMenu.java: Added javadoc.
4716 (JMenu): Added MenuChangeListener to listen to
4717 ChangeEvents occuring in menu's model.
4718 (insert): Throw IllegalArgumentException if
4719 index is less than 0
4720 (setSelected): Reimplement.
4721 (setPopupMenuVisible): Call menu's model isEnabled()
4722 (setDelay): Throw IllegalArgumentException if
4723 given amount of delay is less than 0.
4724 (createActionComponent): Implemented.
4725 (createActionChangeListener): Implemented.
4726 (addSeparator): Implemented.
4727 (getItem): Throw IllegalArgumentException if index is
4729 (getItemCount): Implemented.
4730 (fireMenuSelected): Changed to use menuEvent.
4731 (fireMenuDeselected): Likewise.
4732 (fireMenuCanceled): Likewise.
4733 (setAccelerator): Changed to throw an error if this
4735 (doClick): Implemented.
4736 (JMenu.ActionChangedListener): New inner class to handle
4737 PropertyChangeEvents occuring in the actions associated with menu.
4738 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
4739 (BasicMenuUI): Added PropertyChangeListener to the menu.
4740 (createChangeListener): Implemented.
4741 (createMenuDragMouseListener): Likewise.
4742 (createMenuKeyListener): Likewise.
4743 (createPropertyChangeListener): Likewise.
4744 (uninstallListeners): Likewise.
4745 (BasicMenuUI.MouseInputHandler): Reimplemented.
4746 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
4747 (BasicMenuUI.ChangeHandler): Likewise.
4748 (BasicMenuUI.MenuDragMouseHandler): Likewise.
4749 (BasicMenuUI.MenuKeyHandler): Likewise.
4751 2004-06-10 David Jee <djee@redhat.com>
4753 * java/awt/MediaTracker.java
4754 (imageUpdate): Only do notifyAll() if the image is complete.
4756 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4758 * javax/swing/JApplet.java:
4759 (getJMenuBar): Made public.
4760 (setJMenuBar): Likewise.
4761 * javax/swing/JFrame.java:
4762 (getJMenuBar): Made public.
4763 (setJMenuBar): Likewise.
4764 * javax/swing/JWindow.java:
4765 (getJMenuBar): Removed.
4766 (setJMenuBar): Removed.
4768 2004-06-10 Michael Koch <konqueror@gmx.de>
4770 * javax/swing/JEditorPane.java
4771 (createEditorKitForContentType): Fixed visibility.
4772 (fireHyperlinkUpdate): Likewise.
4773 (getContentType): Likewise.
4774 (getEditorKit): Likewise.
4775 (getEditorKitForContentType): Likewise.
4776 (getPage): Likewise.
4778 (registerEditorKitForContentTyoe): Likewise.
4779 (replaceSelection): Likewise.
4780 (setContentType): Likewise.
4781 (setEditorKit): Likewise.
4782 (setPage): Likewise.
4784 2004-06-10 Michael Koch <konqueror@gmx.de>
4786 * javax/swing/Timer.java
4787 (Timer): New constructor.
4788 * javax/swing/plaf/basic/BasicProgressBarUI.java
4789 (animationTimer): Don't initialize at construction.
4790 (startAnimationTimer): Added since tag.
4791 (stopAnimationTimer): Likewise.
4792 (installUI): Use new Timer constructor.
4793 * javax/swing/plaf/basic/BasicScrollBarUI.java
4794 (installUI): Likewise.
4795 * javax/swing/plaf/basic/BasicSliderUI.java
4796 (installUI): Likewise.
4798 2004-06-10 Michael Koch <konqueror@gmx.de>
4800 * javax/swing/ButtonGroup.java
4801 (serialVersionUID): Made private.
4802 (buttons): Renamed from v, added javadoc.
4803 (sel): Added javadoc.
4804 (ButtonGroup): Likewise.
4807 (getElements): Likewise.
4808 (getSelection): Likewise.
4809 (setSelected): Likewise.
4810 (isSelected): Likewise.
4811 (getButtonCount): Likewise.
4813 2004-06-10 Michael Koch <konqueror@gmx.de>
4815 * javax/swing/ButtonGroup.java,
4816 javax/swing/ImageIcon.java,
4817 javax/swing/JEditorPane.java,
4818 javax/swing/JRootPane.java,
4819 javax/swing/JTextField.java,
4820 javax/swing/LookAndFeel.java,
4821 javax/swing/plaf/basic/BasicTextUI.java:
4824 2004-06-10 Michael Koch <konqueror@gmx.de>
4826 * javax/swing/text/Style.java: Added javadocs.
4828 2004-06-10 Michael Koch <konqueror@gmx.de>
4830 * javax/swing/JComponent.java
4831 (fireVetoableChange): Removed redundant cast.
4832 * javax/swing/JLabel.java
4833 (getDisabledIcon): Save icon for next call.
4835 2004-06-10 Michael Koch <konqueror@gmx.de>
4837 * javax/swing/KeyStroke.java
4838 (getKeyStroke(char,boolean)): Marked deprecated.
4840 2004-06-10 Michael Koch <konqueror@gmx.de>
4842 * javax/swing/DefaultCellEditor.java,
4843 javax/swing/GrayFilter.java,
4844 javax/swing/event/DocumentEvent.java,
4845 javax/swing/text/JTextComponent.java,
4846 javax/swing/text/MutableAttributeSet.java:
4849 2004-06-10 Michael Koch <konqueror@gmx.de>
4851 * javax/swing/plaf/BorderUIResource.java:
4852 Added serialVersionUID all over.
4854 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
4856 * javax/swing/undo/UndoManager.java: Re-written from scratch.
4858 2004-06-10 Michael Koch <konqueror@gmx.de>
4860 * javax/swing/table/DefaultTableCellRenderer.java
4861 (noFocusBorder): Initialize directly.
4863 2004-06-10 Michael Koch <konqueror@gmx.de>
4865 * javax/swing/plaf/basic/BasicArrowButton.java
4866 (setDirection): Use method argument.
4868 2004-06-10 Michael Koch <konqueror@gmx.de>
4870 * javax/swing/plaf/BorderUIResource.java,
4871 javax/swing/plaf/ComponentUI.java,
4872 javax/swing/undo/CompoundEdit.java,
4873 javax/swing/undo/StateEdit.java:
4874 Fixed javadocs all over.
4876 2004-06-10 Michael Koch <konqueror@gmx.de>
4878 * javax/swing/DefaultButtonModel.java
4879 (ARMED): Made public final, fixed value.
4880 (ENABLED): Likewise.
4881 (PRESSED): Likewise.
4882 (ROLLOVER): Likewise.
4883 (SELECTED): Likewise.
4884 (stateMask): Initialize directly.
4885 (listenerList): Likewise.
4886 (mnemonic): Likewise.
4887 (fireStateChanged): Removed argument, use changeEvent as event.
4888 All places where this method is called are fixed too.
4889 (getActionCommant): Fixed javadoc.
4890 (setGroup): Fixed javadoc.
4891 (getGroup): New method.
4893 2004-06-09 Olga Rodimina <rodimina@redhat.com>
4895 * javax/swing/AbstractButton.java
4896 (AbstractButton): Use init() to initialize the button.
4897 (init): New Method. Initializes AbstractButton.
4898 * javax/swing/JMenuItem.java: Documented.
4899 (JMenuItem): Reimplemented.
4900 (init): Implemented.
4901 (setEnabled): Changed to call super.setEnabled()
4902 (processMouseEvent): Reimplemented.
4903 (fireMenuKeyPressed): Implemented.
4904 (fireMenuKeyReleased): Implemented.
4905 (fireMenuKeyTyped): Implemented.
4906 (menuSelectionChanged): disarm the model if the menu item was
4908 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
4909 (getPath): Change to use ArrayList instead of Vector.
4910 (getPreferredSize): Renamed variable.
4911 (paintMenuItem): Paint margin area of menu item.
4912 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
4913 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
4914 menu item's bounds before clearing the selection.
4916 2004-06-09 David Jee <djee@redhat.com>
4918 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
4919 (GtkTextComponentPeer): Set caret position to 0.
4920 * java/awt/TextComponent.java
4921 (setText): Set caret position to 0.
4922 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4923 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
4924 Handle GtkScrolledWindow separately. Fix signal handler blocking.
4925 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
4927 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
4928 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
4931 2004-06-09 Kim Ho <kho@redhat.com>
4933 * Makefile.am: New files
4934 * Makefile.in: Regenerated
4935 * java/awt/Container.java
4936 (getComponentAt): Removed.
4937 * javax/swing/AbstractAction.java
4938 (ENABLED_PROPERTY): New property.
4939 (putValue): Fire PropertyChangeEvents.
4940 (setEnabled): ditto.
4941 (firePropertyChange): Javadoc and implement
4943 * javax/swing/AbstractButton.java
4944 (setAction): Don't create PropertyChangeListener
4945 if new Action is null.
4946 (setIcon): Don't set icon till after comparing
4948 (configurePropertiesFromAction): Check mnemonic
4949 key before calling intValue().
4950 (createActionPropertyChangeListener): Check
4951 properties rather than bulk change.
4952 * javax/swing/DefaultDesktopManager.java:
4954 * javax/swing/DesktopManager.java:
4956 * javax/swing/JComponent.java
4957 (fireVetoableChange): Implement.
4958 (paintImmediately): Use root component.
4959 * javax/swing/JDesktopPane.java: Implement
4960 * javax/swing/JInternalFrame.java: Implement
4961 * javax/swing/JLabel.java
4962 (getDisabledIcon): Return grayscaled icon if
4963 no disabled icon specified.
4964 * javax/swing/JMenuBar.java
4965 (getComponentAtIndex): Use getComponent
4966 * javax/swing/JOptionPane.java
4967 (getDesktopPaneForComponent): Use SwingUtilities'
4969 (getFrameForComponent): ditto.
4970 * javax/swing/JSplitPane.java
4971 (remove): Use getComponent.
4972 * javax/swing/SwingUtilities.java
4973 (convertPoint): Implement.
4974 * javax/swing/plaf/basic/BasicButtonUI.java
4975 (paintButtonNormal): Check opaqueness before
4977 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
4979 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
4981 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
4983 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
4985 * javax/swing/plaf/basic/BasicLookAndFeel.java:
4986 Change InternalFrame and Desktop colors.
4988 2004-06-09 David Jee <djee@redhat.com>
4990 * java/awt/Container.java
4991 (remove): Do not set component to invisible.
4993 2004-06-09 Michael Koch <konqueror@gmx.de>
4995 * javax/swing/tree/DefaultMutableTreeNode.java
4996 (getLeafCount): Renamed enum to e.
4998 2004-06-09 Michael Koch <konqueror@gmx.de>
5000 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5001 (positionForMouseEvent): Removed redundant semicolon.
5002 (continueDrag): Use method arguments.
5004 2004-06-09 Michael Koch <konqueror@gmx.de>
5006 * javax/swing/border/TitledBorder.java,
5007 javax/swing/filechooser/FileSystemView.java,
5008 javax/swing/plaf/basic/BasicButtonListener.java,
5009 javax/swing/plaf/basic/BasicGraphicsUtils.java,
5010 javax/swing/plaf/basic/BasicLabelUI.java,
5011 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
5012 javax/swing/plaf/basic/BasicScrollBarUI.java,
5013 javax/swing/plaf/basic/BasicScrollPaneUI.java,
5014 javax/swing/plaf/basic/BasicSliderUI.java,
5015 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
5016 javax/swing/plaf/basic/BasicToggleButtonUI.java,
5017 javax/swing/table/JTableHeader.java,
5018 javax/swing/text/AbstractDocument.java,
5019 javax/swing/text/DefaultCaret.java,
5020 javax/swing/text/StyledEditorKit.java,
5021 javax/swing/tree/DefaultTreeCellEditor.java:
5022 Reworked import statements.
5024 2004-06-08 Graydon Hoare <graydon@redhat.com>
5026 * javax/swing/Box.java: Temporarily comment out code
5027 broken due to visibility bug.
5029 2004-06-09 Michael Koch <konqueror@gmx.de>
5031 * javax/swing/ImageIcon.java
5032 (ImageIcon): Added missing constructor.
5034 2004-06-08 Michael Koch <konqueror@gmx.de>
5036 * javax/swing/JToggleButton.java
5037 (JToggleButton): New constructor.
5038 (getAccessibleContext): Moved documentation into javadoc.
5039 (getUIClassID): Likewise.
5041 2004-06-08 Michael Koch <konqueror@gmx.de>
5043 * javax/swing/AbstractButton.java
5044 (getDisabledIcon): Create disabled icon if none exists yet.
5046 2004-06-08 Michael Koch <konqueror@gmx.de>
5048 * javax/swing/plaf/basic/BasicLookAndFeel.java
5049 (initClassDefaults): Added FormattedTextFieldUI.
5050 (loadResourceBundle): Renamed enum to e.
5052 2004-06-08 Michael Koch <konqueror@gmx.de>
5054 * javax/swing/plaf/basic/BasicButtonUI.java
5055 (paintIcon): Simplified.
5056 (paintText): Paint disabled button correctly.
5058 2004-06-08 Michael Koch <konqueror@gmx.de>
5060 * javax/swing/JComponent.java
5061 (createToolTip): Use official JToolTip API.
5063 2004-06-08 Michael Koch <konqueror@gmx.de>
5065 * javax/swing/JToolTip.java
5066 (JToolTip): No arguments in API.
5067 (setTipText): New method.
5069 2004-06-08 Michael Koch <konqueror@gmx.de>
5071 * javax/swing/SwingUtilities.java
5072 (isLeftMouseButton): New method.
5073 (isMiddleMouseButton): New method.
5074 (isRightMouseButton): New method.
5076 2004-06-08 Michael Koch <konqueror@gmx.de>
5078 * javax/swing/AbstractButton.java,
5079 javax/swing/CellRendererPane.java,
5080 javax/swing/JCheckBoxMenuItem.java,
5081 javax/swing/JColorChooser.java,
5082 javax/swing/JComboBox.java,
5083 javax/swing/JComponent.java,
5084 javax/swing/JDesktopPane.java,
5085 javax/swing/JFileChooser.java,
5086 javax/swing/JMenu.java,
5087 javax/swing/JMenuItem.java,
5088 javax/swing/JOptionPane.java,
5089 javax/swing/JPasswordField.java,
5090 javax/swing/JPopupMenu.java,
5091 javax/swing/JProgressBar.java,
5092 javax/swing/JRadioButtonMenuItem.java,
5093 javax/swing/JScrollBar.java,
5094 javax/swing/JSeparator.java,
5095 javax/swing/JSlider.java,
5096 javax/swing/JSplitPane.java,
5097 javax/swing/JTabbedPane.java,
5098 javax/swing/JTextField.java,
5099 javax/swing/JToolBar.java,
5100 javax/swing/text/JTextComponent.java:
5101 Fixed all constructors of accessibility classes.
5103 2004-06-08 Michael Koch <konqueror@gmx.de>
5105 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
5108 2004-06-08 Michael Koch <konqueror@gmx.de>
5110 * javax/swing/Box.java
5111 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
5112 (AccessibleBoxFiller.serialVersionUID): New member variable.
5113 * javax/swing/DefaultButtonModel.java
5114 (stateMask): Made protected.
5115 (listenerList): Likewise.
5116 (changeEvent): Likewise.
5118 (mnemonic): Likewise.
5119 (actionCommand): Likewise.
5120 (getListeners): New method.
5121 (getActionListeners): New method.
5122 (getItemListeners): New method.
5123 (getChangeListeners): New method.
5124 (fireItemStateChanged): Simplified.
5125 (fireActionPerformed): Simplified.
5126 (fireStateChanged): Simplified.
5127 * javax/swing/JFrame.java
5128 (JFrame): Implements WindowContants.
5129 (HIDE_ON_CLOSE): Removed.
5130 (EXIT_ON_CLOSE): Removed.
5131 (DISPOSE_ON_CLOSE): Removed.
5132 (DO_NOTHING_ON_CLOSE): Removed.
5133 (processWindowEvent): Exit with code 0.
5134 (setDefaultCloseOperation): Do security check before setting value.
5135 * javax/swing/JOptionPane.java
5136 (message): Initialize only in constructor.
5137 * javax/swing/JToolTip.java: Removed unused imports.
5138 * javax/swing/JViewport.java
5139 (serialVersionUID): New member variable.
5140 (SIMPLE_SCROLL_MODE): Made final, fixed value.
5141 (BLIT_SCROLL_MODE): Likewise.
5142 (BACKINGSTORE_SCROLL_MODE): Likewise.
5143 (scrollUnderway): Made protected.
5144 (isViewSizeSet): Likewise.
5145 * javax/swing/ListModel.java: Fixed javadoc.
5146 * javax/swing/Popup.java: Likewise.
5147 * javax/swing/RepaintManager.java
5148 (paintDirtyRegions): Don't use internal classes of
5149 java.util.AbstractMap.
5150 * javax/swing/ScrollPaneConstants.java: Reindented.
5151 * javax/swing/ScrollPaneLayout.java
5152 (viewport): Made protected.
5153 (verticalScrollBar): Made protected, renamed to vsb.
5154 (horizontalScrollBar): Made protected, renamed to hsb.
5155 (rowHeader): Made protected, renamed to rowHead.
5156 (columnHeader): Made protected, renamed to colHead.
5157 (lowerLeft): Made protected.
5158 (lowerRight): Made protected.
5159 (upperLeft): Made protected.
5160 (upperRight): Made protected.
5161 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
5162 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
5164 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
5166 * java/awt/MediaTracker.java (imageUpdate): Only set status to
5167 LOADING if flags has SOMEBITS set.
5169 2004-06-07 Michael Koch <konqueror@gmx.de>
5171 * javax/swing/AbstractButton.java: Reorganized imports.
5172 * javax/swing/ActionMap.java: Likewise.
5173 * javax/swing/DefaultButtonModel.java: Likewise.
5174 * javax/swing/DefaultListModel.java: Likewise.
5175 * javax/swing/ImageIcon.java: Likewise.
5176 (serialVersionUID): New member variable.
5177 * javax/swing/JComboBox.java: Reorganized imports.
5178 * javax/swing/JComponent.java: Likewise.
5179 (ui): Made protected.
5180 (listenerList): Made protected.
5181 (TOOL_TIP_TEXT_KEY): New constant.
5182 (scrollRectToVisible): Removed redundant null check.
5183 * javax/swing/JFrame.java: Reorganized imports.
5184 * javax/swing/JInternalFrame.java: Reorganized imports.
5185 * javax/swing/JProgressBar.java: Likewise.
5186 * javax/swing/JRootPane.java: Likewise.
5187 * javax/swing/JScrollBar.java: Likewise.
5188 * javax/swing/JSeparator.java: Likewise.
5189 * javax/swing/JSlider.java: Likewise.
5190 * javax/swing/JTabbedPane.java: Likewise.
5191 * javax/swing/JTextField.java: Likewise.
5192 * javax/swing/JToolBar.java: Likewise.
5193 * javax/swing/JTree.java: Likewise.
5194 * javax/swing/JViewport.java: Likewise.
5195 * javax/swing/JWindow.java: Likewise.
5196 * javax/swing/KeyStroke.java: Likewise.
5197 * javax/swing/LookAndFeel.java: Likewise.
5198 * javax/swing/MenuSelectionManager.java: Likewise.
5199 * javax/swing/SwingUtilities.java: Likewise.
5200 * javax/swing/Timer.java: Likewise.
5201 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
5202 * javax/swing/JList.java
5203 (HORIZONTAL_WRAP): Made final, fixed value.
5204 (VERTICAL): Likewise.
5205 (VERTICAL_WRAP): Likewise.
5207 2004-06-07 Michael Koch <konqueror@gmx.de>
5209 * javax/swing/AbstractButton.java
5210 (serialVersionUID): New member variable.
5211 (AccessibleAbstractButton.serialVersionUID): Likewise.
5212 (AbstractButton): Made public.
5213 * javax/swing/Box.java
5214 (AccessibleBox.serialVersionUID): New member variable.
5215 (Filler.serialVersionUID): Likewise.
5216 * javax/swing/DefaultListSelectionModel.java
5217 (serialVersionUID): Likewise.
5218 * javax/swing/JApplet.java
5219 (serialVersionUID): Likewise.
5220 * javax/swing/JCheckBox.java
5221 (serialVersionUID): Likewise.
5222 * javax/swing/JCheckBoxMenuItem.java
5223 (serialVersionUID): Likewise.
5224 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
5225 * javax/swing/JColorChooser.java
5226 (serialVersionUID): Likewise.
5227 (AccessibleJColorChooser.serialVersionUID): Likewise.
5228 * javax/swing/JComponent.java
5229 (serialVersionUID): Made private.
5230 (AccessibleJComponent.serialVersionUID): New member variable.
5231 * javax/swing/JDesktopPane.java
5232 (serialVersionUID): Likewise.
5233 * javax/swing/JDialog.java
5234 (serialVersionUID): Likewise.
5235 * javax/swing/JFormattedTextField.java
5236 (serialVersionUID): Fixed value.
5237 * javax/swing/JFrame.java
5238 (serialVersionUID): New member variable.
5239 (getDefaultCloseOpertation): Made public.
5240 * javax/swing/JLayeredPane.java
5241 (serialVersionUID): Likewise.
5242 (LAYER_PROPERTY): Made final, fixed value.
5243 (JLayeredPane): Made public.
5244 * javax/swing/JMenu.java
5245 (AccessibleJMenu.serialVersionUID): New member variable.
5246 (WinListener.serialVersionUID): Likewise.
5247 * javax/swing/JMenuBar.java
5248 (serialVersionUID): Likewise.
5249 (getComponentAtIndex): Added @deprecated tag.
5250 * javax/swing/JMenuItem.java
5251 (serialVersionUID): New member variable.
5252 (AccessibleJMenuItem.serialVersionUID): Likewise.
5253 * javax/swing/JOptionPane.java
5254 (serialVersionUID): Likewise.
5255 (AccessibleJOptionPane.serialVersionUID): Likewise.
5256 * javax/swing/JPopupMenu.java
5257 (serialVersionUID): Likewise.
5258 (AccessibleJPopupMenu.serialVersionUID): Likewise.
5259 (getPopupMenuListeners): New method.
5260 (getComponentAtIndex): Added @deprecated tag.
5261 * javax/swing/JProgressBar.java
5262 (serialVersionUID): New member variable.
5263 (AccessibleJProgressBar.serialVersionUID): Likewise.
5264 * javax/swing/JRadioButton.java
5265 (serialVersionUID): Likewise.
5266 * javax/swing/JRadioButtonMenuItem.java
5267 (serialVersionUID): Likewise.
5268 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
5269 * javax/swing/JScrollBar.java
5270 (serialVersionUID): Likewise.
5271 (AccessibleJScrollBar.serialVersionUID): Likewise.
5272 * javax/swing/JSeparator.java
5273 (serialVersionUID): Likewise.
5274 (AccessibleJSeparator.serialVersionUID): Likewise.
5275 * javax/swing/JSlider.java: Fixed javadocs.
5276 (AccessibleJSlider.serialVersionUID): New member variable.
5277 * javax/swing/JSplitPane.java: Added copyright statement.
5278 (serialVersionUID): New member variable.
5279 (AccessibleJSplitPane.serialVersionUID): Likewise.
5280 * javax/swing/JTabbedPane.java
5281 (serialVersionUID): Likewise.
5282 (AccessibleJTabbedPane.serialVersionUID): Likewise.
5283 (ModelListener.serialVersionUID): Likewise.
5284 (ModelListener.ModelListener): New constructor.
5285 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
5286 (WRAP_TAB_LAYOUT): Likewise.
5287 * javax/swing/JTable.java
5288 (serialVersionUID): New member variable.
5289 * javax/swing/JToggleButton.java
5290 (serialVersionUID): Likewise.
5291 (ToggleButtonModel): Made static.
5292 (ToggleButtonModel.serialVersionUID): New member variable.
5293 * javax/swing/JToolTip.java
5294 (serialVersionUID): Likewise.
5295 * javax/swing/JTree.java
5296 (serialVersionUID): Likewise.
5297 * javax/swing/JWindow.java
5298 (serialVersionUID): Likewise.
5299 * javax/swing/Timer.java
5300 (serialVersionUID): Likewise.
5302 2004-06-06 Michael Koch <konqueror@gmx.de>
5304 * javax/swing/SwingConstants.java
5305 (NEXT): New constant.
5306 (PREVIOUS): Likewise.
5307 * javax/swing/UIManager.java
5308 (LookAndFeel): Made public.
5309 (LookAndFeel.getClassName): Likewise.
5310 (LookAndFeel.getName): Likewise.
5312 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5314 * javax/swing/JCheckBoxMenuItem.java:
5316 * javax/swing/JMenu.java: Likewise.
5317 * javax/swing/JMenuBar.java: Likewise.
5318 * javax/swing/JMenuItem.java: Likewise.
5319 * javax/swing/JPopupMenu.java: Likewise.
5320 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5321 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5322 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5323 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5324 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5325 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5326 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5328 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5330 * javax/swing/plaf/basic/BasicMenuUI.java:
5331 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5332 Call getPath() from super class instead.
5334 2004-05-31 David Jee <djee@redhat.com>
5336 * java/awt/Container.java
5337 (remove): Set component visibility to false after removing it.
5339 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
5341 * java/awt/Component.java (getForeground): Return SystemColor if
5343 (getBackground): Likewise.
5345 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5346 (item_highlighted): New function.
5347 (connectSignals): Set item_highlighted as list's select
5350 * java/applet/Applet.java: Revert changes from 2004-04-29,
5351 2004-03-15 and 2004-03-14.
5353 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5354 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
5357 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
5358 "Dialog" as the default font.
5359 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
5361 * java/awt/Component.java (getFont): Return "Dialog" font by
5363 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
5364 Multiply size argument to pango_font_description_set_size by the
5365 DPI conversion factor rather than by PANGO_SCALE.
5366 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
5367 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
5368 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
5369 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
5370 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
5371 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
5372 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
5373 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
5374 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
5375 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5376 Divide baseline y coordinate by DPI conversion factor rather
5377 than by PANGO_SCALE.
5378 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
5379 (area_prepared): Fix typo.
5380 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
5381 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
5382 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
5383 (dpi_conversion_factor): New global variable.
5384 (init_dpi_conversion_factor): New function to calculate and
5385 track DPI conversion factor.
5386 (dpi_changed_cb): New callback.
5387 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
5389 2004-05-27 David Jee <djee@redhat.com>
5391 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5392 (getGraphics): Return a new GdkGraphics instance.
5393 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5394 (getGraphics): Call super.getGraphics().
5396 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5398 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5399 (setNativeBounds): Clamp width and height values to >= 0.
5401 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5402 (find_fg_color_widget): Handle GtkOptionMenu specially.
5404 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5405 (pre_event_handler): Only post configure events to visible
5408 2004-05-26 David Jee <djee@redhat.com>
5410 * java/awt/BorderLayout.java
5411 (layoutContainer): Fix size calculations.
5413 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5415 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5416 (window_wm_protocols_filter): Remove function.
5417 (create): Remove filter that removes WM_TAKE_FOCUS client
5420 2004-06-17 Anthony Green <green@redhat.com>
5422 * java/util/zip/ZipFile.java (getInputStream): Return null if
5425 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
5426 directory contents to the class path.
5428 2004-06-15 Andrew Haley <aph@redhat.com>
5430 * java/lang/natSystem.cc (getenv0): Don't assume environment
5431 variable is Latin 1 coded.
5433 2004-06-14 Andreas Jaeger <aj@suse.de>
5435 * configure.in: Support --enable-version-specific-runtime-libs.
5436 * configure: Regenerated.
5438 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
5440 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
5441 to pass ClassLoader argument.
5442 * java/util/GregorianCalendar.java: Likewise.
5443 * java/util/Currency.java: Likewise.
5444 * java/text/BreakIterator.java: Likewise.
5445 * java/text/Collator.java: Likewise.
5446 * java/text/DateFormat.java: Likewise.
5447 * java/text/DateFormatSymbols.java: Likewise.
5448 * java/text/DecimalFormatSymbols.java: Likewise.
5449 * java/text/NumberFormat.java: Likewise.
5450 * java/awt/Window.java: Likewise.
5452 2004-06-14 Andrew Haley <aph@redhat.com>
5454 * java/lang/System.java: (getenv0): New method.
5455 (getenv): Add security check. Do the right thing.
5456 * java/lang/natSystem.cc (getenv0): New method.
5458 2004-06-12 Mark Wielaard <mark@klomp.org>
5460 * javax/swing/RepaintManager.java
5461 (paintDirtyRegions): Use entrySet(), not values().
5463 2004-06-10 Mark Wielaard <mark@klomp.org>
5465 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
5468 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
5470 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
5471 when we already know the answer.
5472 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
5473 (setStartRule,setEndRule): Don't take abs of day number.
5474 (getOffset): Clarify docs. Add argument checks.
5475 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
5476 (equals,hasSameRules,toString,readObject): Use startTimeMode and
5479 2004-06-10 Tom Tromey <tromey@redhat.com>
5481 * interpret.cc (run): Handle wide fload.
5483 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
5485 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
5487 2004-06-05 Michael Koch <konqueror@gmx.de>
5489 * javax/swing/SwingConstants.java
5490 (NEXT): New constant.
5491 (PREVIOUS): Likewise.
5493 2004-06-05 Michael Koch <konqueror@gmx.de>
5495 * javax/swing/UIManager.java
5496 (LookAndFeel): Made public.
5497 (LookAndFeel.getName): Likewise.
5498 (LookAndFeel.getClassName): Likewise.
5500 2004-06-03 Michael Koch <konqueror@gmx.de>
5502 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5503 (requestFocus): Revert last changes.
5504 (gtkRequestFocus): Removed.
5505 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5506 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5508 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
5509 Reverted last patch.
5510 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5511 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
5512 Reverted comment change.
5514 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5516 * javax/swing/JCheckBoxMenuItem.java:
5518 * javax/swing/JMenu.java: Likewise.
5519 * javax/swing/JMenuBar.java: Likewise.
5520 * javax/swing/JMenuItem.java: Likewise.
5521 * javax/swing/JPopupMenu.java: Likewise.
5522 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5523 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5524 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5525 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5526 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5527 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5528 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5530 2004-06-01 Tom Tromey <tromey@redhat.com>
5532 * java/io/ObjectStreamField.java: Cleaned up imports.
5534 2004-06-01 Michael Koch <konqueror@gmx.de>
5536 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
5538 2004-06-01 Mark Wielaard <mark@klomp.org>
5540 * java/io/Writer.java (Writer(Object)): Fixed API doc.
5542 2004-06-01 Michael Koch <konqueror@gmx.de>
5544 * java/security/Security.java
5545 (insertProviderAt): Use equals() instead of ==.
5546 (removeProvicer): Likewise.
5547 (getProvider): Likewise.
5548 * java/security/Signature.java
5549 (sign): Don't set state to UNINITIALIZED.
5552 2004-06-01 Mark Wielaard <mark@klomp.org>
5554 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
5555 Implement by calling gtkRequestFocus.
5556 (gtkRequestFocus): New native method.
5557 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5558 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
5560 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5562 (filter_expose_event_handler):
5564 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5565 (menu_pos): Mark static.
5567 2004-06-01 Michael Koch <konqueror@gmx.de>
5569 * java/text/CollationElementIterator.java,
5570 java/text/CollationKey.java,
5571 java/text/RuleBasedCollator.java: New versions from GNU classpath.
5572 * testsuite/libjava.mauve/xfails: Removed all
5573 java.text.CollationElementIterator tests.
5575 2004-06-01 Michael Koch <konqueror@gmx.de>
5577 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
5579 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
5580 Java 1.5 keyword usage.
5582 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5584 * javax/swing/plaf/basic/BasicMenuUI.java:
5585 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5586 Call getPath() from super class instead.
5588 2004-05-31 Michael Koch <konqueror@gmx.de>
5590 * java/io/SequenceInputStream.java:
5591 Rename enum to e because enum is a keyword in Java 1.5.
5593 2004-05-31 Michael Koch <konqueror@gmx.de>
5595 * gnu/java/rmi/rmic/CompilerProcess.java:
5596 Fixed javadoc to by XHTML compliant.
5598 2004-05-30 Mark Wielaard <mark@klomp.org>
5600 * java/awt/Toolkit.java (loadSystemColors): Implement.
5602 2004-05-30 Michael Koch <konqueror@gmx.de>
5604 * java/lang/System.java: Reordered imports.
5606 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
5608 * java/text/DecimalFormat.java
5609 (parse): Fixed parsing of decimal strings. Number of maximum
5610 digits to be read should now work.
5611 * java/text/SimpleDateFormat.java
5612 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
5613 formatter. This fixes DateFormatTest.
5615 2004-05-30 Michael Koch <konqueror@gmx.de>
5617 * java/nio/Buffer.java
5618 (limit): Fixed off by one error.
5619 * java/nio/CharBuffer.java
5620 (wrap): Fixed arguments, added javadocs.
5622 2004-05-30 Michael Koch <konqueror@gmx.de>
5624 * gnu/java/beans/BeanInfoEmbryo.java,
5625 java/awt/im/InputContext.java,
5626 javax/swing/tree/DefaultMutableTreeNode.java:
5627 Rename enum to e because enum is a keyword in Java 1.5.
5629 2004-05-30 Michael Koch <konqueror@gmx.de>
5631 * gnu/java/math/MPN.java,
5632 java/awt/geom/Arc2D.java:
5633 Fixed javadocs all over.
5635 2004-05-30 Michael Koch <konqueror@gmx.de>
5637 * java/awt/DefaultKeyboardFocusManager.java
5638 (dispatchEvent): Call method to get key event dispatchers.
5639 (dispatchKeyEvent): Call method to get key event post processors.
5640 * javax/swing/JComponent.java
5641 (listenerList): Made protected.
5642 * javax/swing/JOptionPane.java
5643 (message): Don't initialize.
5644 (JOptionPane): Set message text.
5645 * javax/swing/JPopupMenu.java
5646 (show): Fixed typo in argument name.
5647 * javax/swing/RepaintManager.java
5648 (paintDirtyRegions): Use public API of java.util.Map.
5649 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5650 (positionForMouseEvent): Removed redundant ';'.
5651 (continueDrag): Use method arguments.
5653 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
5655 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
5658 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
5660 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
5662 * gnu/gcj/RawDataManaged.java: New file.
5663 * java/lang/Thread.java (data): Declare as RawDataManaged.
5664 * java/lang/natThread.cc (init_native): Cast natThread data to
5665 RawDataManaged, not jobject.
5666 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
5667 * Makefile.in: Rebuilt.
5669 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
5671 * java/util/SimpleTimeZone.java: Reverting my last change until I
5672 can fix it properly.
5674 2004-05-27 Michael Koch <konqueror@gmx.de>
5676 * javax/swing/JPopupMenu.java
5677 (isVisible): Do not use visible directly.
5678 (setVisible): Likewise.
5679 * javax/swing/JWindow.java
5680 (JWindow): call accessible constructor.
5681 * javax/swing/RepaintManager.java
5682 (paintDirtyRegions): Use public methods to obtain iterator.
5684 2004-05-25 David Jee <djee@redhat.com>
5686 * java/awt/Container.java
5687 (remove): Set component's parent to null only after we removed the
5688 component from its parent's layout manager.
5690 2004-05-25 David Jee <djee@redhat.com>
5692 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5693 (GtkComponentPeer): Set bounds regardless of whether awtComponent
5695 * gnu/java/awt/peer/gtk/GtkListPeer.java
5696 (getSize): Change native method declaration.
5697 (minimumSize): Pass visible row count into getSize().
5698 (preferredSize): Likewise.
5699 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5700 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
5701 natural size. Use visible row count to determine the final height
5704 2004-05-21 Graydon Hoare <graydon@redhat.com>
5706 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5707 (setClip): Minor correction to order of operations.
5709 * javax/swing/JScrollPane.java: Extend sketchy implementation.
5710 * javax/swing/ScrollPaneLayout.java: Likewise.
5711 * javax/swing/JViewPort.java: Likewise.
5712 * javax/swing/ViewportLayout.java: Likewise.
5714 * javax/swing/JComponent.java: Rewrite.
5715 * javax/swing/RepaintManager.java: Likewise.
5717 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
5718 * javax/swing/JList.java
5719 (setSelectedIndices):
5720 (getSelectedIndices):
5721 (getSelectedValues): New functions.
5722 (getPreferredScrollableViewportSize): Return preferred size.
5723 (getScrollableUnitIncrement):
5724 (getScrollableBlockIncrement): Initial implementations.
5725 * javax/swing/JRootPane.java: Clean up slightly.
5730 (isValidateRoot): Add overrides from JComponent.
5731 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
5732 * javax/swing/UIManager.java (getDimension): Return the dimension.
5734 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
5735 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
5736 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5737 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
5738 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
5739 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
5740 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
5741 * javax/swing/plaf/basic/BasicRootPaneUI.java:
5742 Likewise, and set background.
5743 * javax/swing/plaf/basic/BasicListUI.java:
5744 Likewise, and improve a bit.
5745 * javax/swing/plaf/basic/BasicScrollBarUI.java:
5746 Likewise, and adjust calculations.
5747 * javax/swing/plaf/basic/BasicViewportUI.java:
5748 Likewise, and improve a bit.
5749 * javax/swing/plaf/basic/BasicLookAndFeel.java
5750 (Button.margin): Shrink.
5752 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
5753 Hack to set horizontal always, workaround pango.
5755 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
5756 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
5757 Synchronize more often, check cairo status after ops,
5758 handle changes to cairo pattern API, check for disposal.
5760 2004-05-21 Olga Rodimina <rodimina@redhat.com>
5762 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5763 (BasicMenuItemUI): Create propertyChangeListener.
5764 (getPath):Implemented.
5765 (installListeners): Add propertyChangeListener to menuItem.
5766 (uninstallListeners): Remove propertyChangeListener from menuItem.
5767 (update): Implemented.
5768 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
5769 (mouseEntered): Take insets of popup menu into account when
5770 calculating position of popup menu.
5772 2004-05-18 Olga Rodimina <rodimina@redhat.com>
5774 * Makefile.am: Added new file.
5775 * Makefile.in: Regenerate.
5776 * javax/swing/JMenuBar.java:
5777 Started implementation.
5778 * javax/swing/JPopupMenu.java:
5779 (setVisible): Fixed location of lightweight/mediumweight
5781 (show): Fixed location of PopupMenu.
5782 * javax/swing/plaf/basic/BasicMenuBarUI.java:
5783 New file. UI Delegate for JMenuBar.
5784 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
5785 (mouseEntered): Corrected position of the submenu.
5787 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
5789 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
5790 to _gtk_accel_group_attach.
5791 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
5794 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
5795 package access. Don't override setFont.
5796 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
5797 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
5798 gtkWidgetRequestFocus package access.
5799 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
5801 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
5802 Give gtkWidgetRequestFocus package access.
5803 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
5804 gtkWidgetRequestFocus package access. Don't override setFont.
5805 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
5807 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
5808 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
5810 (gtkSetFont): Likewise.
5811 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
5813 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5814 (gtkSetFont): Whitespace fix.
5816 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5817 (gtkWidgetSetUsize): Remove method.
5819 2004-05-18 David Jee <djee@redhat.com>
5821 * java/awt/image/MemoryImageSource.java
5822 (newPixels(int,int,int,int,boolean)): Set only the specified
5823 rectangle of pixels.
5824 (newPixels(byte[],ColorModel,int,int)): Implement.
5825 (newPixels(int[],ColorModel,int,int)): Implement.
5827 2004-05-18 Olga Rodimina <rodimina@redhat.com>
5829 * Makefile.am: Added new file.
5830 * Makefile.in: Regenerate.
5831 * javax/swing/JMenu.java: Started
5833 * javax/swing/JPopupMenu.java:
5834 (insert): If specified index is -1, then
5835 add component at the end.
5836 (isPopupTrigger): Reimplemented.
5837 (JPopupMenu.LightWeightPopup): setBounds
5838 of the lightWeightPopup before adding it
5840 (javax/swing/plaf/basic/BasicIconFactory.java):
5841 (getMenuArrowIcon): Implemented.
5842 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5843 (getPreferredSize): Add size of the arrow icon
5844 if this menu item is instance of JMenu.
5845 (paintMenuItem): Paint arrow icon if this
5846 menu item is a submenu.
5847 * javax/swing/plaf/basic/BasicMenuUI.java:
5848 New File. UI Delegate for JMenu.
5850 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
5852 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
5853 Post KEY_TYPED events.
5854 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5855 (generates_key_typed_event): Remove function.
5857 2004-05-17 Olga Rodimina <rodimina@redhat.com>
5859 * javax/swing/JRootPane.java
5860 (JRootPane.RootLayout): Reimplemented to
5861 set bounds of contentPane and menuBar.
5862 (setJMenuBar): Add menu bar to the layered pane.
5863 (createLayeredPane): Set layout of layeredPane
5865 * javax/swing/JLayeredPane.java:
5866 (addImpl): Calculate index of the component in the
5867 layeredPane according to the specified position within
5870 2004-05-17 David Jee <djee@redhat.com>
5872 * gnu/java/awt/peer/gtk/GtkImagePainter.java
5873 (setPixels): Change color model to the default model after
5875 * java/awt/image/MemoryImageSource.java
5876 (newPixels): Set only the specified rectangle of pixels.
5878 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
5880 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
5881 -l-java-beans -l-javax-accessibility -l-javax-swing.
5883 * java/awt/AWTEvent.java (toString): Print source's name rather
5884 than the source itself.
5886 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
5888 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
5890 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
5891 (gdk_color_to_java_color): New function.
5892 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
5894 2004-05-12 David Jee <djee@redhat.com>
5896 * java/awt/image/RGBImageFilter.java:
5897 Initialize origmodel as null.
5898 (makeColor): Fix pixel component order.
5899 (filterRGBPixels): Fix pixel iteration.
5900 (setPixels): Add extra checks for index color model. Convert pixels
5901 to default color model if necessary.
5902 (convertColorModelToDefault): New override method for byte pixels.
5903 (convertColorModelToDefault): For int pixels, fix pixel iteration.
5904 (makeColorbyDefaultCM): New override method for byte pixels.
5905 (makeColorbyDefaultCM): For int pixel, add color model as argument.
5906 (makeColor): Fix pixel component order.
5908 2004-05-11 Kim Ho <kho@redhat.com>
5910 * javax/swing/Box.java:
5911 Comment out more parts of Box.Filler.
5913 2004-05-11 Kim Ho <kho@redhat.com>
5915 * javax/swing/Box.java:
5916 Remove reference to AccessibleAWTComponent so
5919 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
5921 * gnu/java/awt/peer/gtk/GtkListPeer.java,
5922 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
5923 implementation of list peer to use GtkTreeView instead of
5924 deprecated GtkCList.
5926 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
5928 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5929 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
5930 (handleEvent): Remove keyChar argument to
5931 gtkWidgetDispatchKeyEvent calls.
5932 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
5934 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
5935 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
5936 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
5939 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
5941 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5942 (gtkWidgetRequestFocus): Mark protected.
5943 (GtkComponentPeer): Only set the peer's bounds if its component
5945 * java/awt/Component.java (static): Set the default keyboard
5947 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
5948 requestFocusInWindow(temporary)): Don't request focus if the
5949 component is not showing. Get tree lock before traversing
5950 component hierarchy.
5951 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
5952 Only set the global focus owner if it is not a Window.
5953 (processKeyEvent): Consume keystrokes associated with the focus
5954 traversal keystroke.
5955 (focusPreviousComponent, focusNextComponent, upFocusCycle,
5956 downFocusCycle): Call requestFocusInWindow instead of
5958 * java/awt/EventDispatchThread.java (run): Move setting of
5959 default keyboard focus manager to Component.java.
5960 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5961 (awt_keycode_to_keysym): New function.
5962 (gtkWidgetDispatchKeyEvent): Finish implementation.
5963 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5964 (pre_event_handler): Add FIXME comment.
5966 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
5967 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5968 (gtkWidgetRequestFocus): New method.
5969 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
5970 disable Tab and Shift-Tab keystrokes.
5971 (addNotify, appendText, insertText, replaceText): Simplify peer
5973 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
5974 (connectSignals): Remove connections to "commit" signals.
5975 Remove C++-style comments.
5977 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
5978 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
5979 (handleEvent): Activate GTK button when the space bar key is
5981 (gtkActivate): New method.
5983 2004-05-06 David Jee <djee@redhat.com>
5985 * java/awt/image/CropImageFilter.java
5986 (setPixels): Implement for byte array pixels.
5987 * java/awt/image/ReplicateScaleFilter.java
5988 (setPixels): Implement for byte array pixels.
5989 (replicatePixels): Overload for byte array pixels.
5991 2004-05-06 Kim Ho <kho@redhat.com>
5993 * javax/swing/Box.java:
5994 (getAccessibleContext): Return an instance of the
5997 2004-05-05 David Jee <djee@redhat.com>
5999 * gnu/java/awt/peer/gtk/GdkGraphics.java
6000 (drawImage): When component is null, use SystemColor.window as
6001 the default bgcolor.
6002 * gnu/java/awt/peer/gtk/GtkImage.java
6003 (setPixels): We can avoid iterating through the pixel rows only
6005 * java/awt/Image.java
6006 (getScaledInstance): Partially implement.
6007 * java/awt/image/CropImageFilter.java
6008 (setProperties): Fix "filter" property.
6009 (setPixels): Implement.
6010 * java/awt/image/ReplicateScaleFilter.java
6011 (setDimensions): Use scaled dimensions.
6012 (setPixels): Implement.
6013 (replicatePixels): New method.
6015 2004-05-05 David Jee <djee@redhat.com>
6017 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6018 (convertPixels): If either pixels or model is null, return null.
6019 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
6020 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
6021 is null, do nothing and return.
6023 2004-05-03 Kim Ho <kho@redhat.com>
6025 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
6026 (getGraphics): Like GtkFramePeer, the Graphics
6027 object needs to be translate to account for
6029 (postMouseEvent): New method. Account for
6031 (postExposeEvent): ditto.
6032 * javax/swing/Box.java: Stubbed.
6033 * javax/swing/JDialog.java: Ran through jalopy
6035 (JDialog): Call SwingUtilities' getOwnerFrame
6037 (setLayout): Check isRootPaneCheckingEnabled
6038 * javax/swing/JOptionPane.java: Re-implemented.
6039 * javax/swing/SwingUtilities.java:
6040 (getOwnerFrame): Static method to grab a default
6041 owner frame for Dialogs that don't specify owners.
6042 * javax/swing/event/SwingPropertyChangeSupport.java:
6043 (firePropertyChange): Fix early exit condition.
6044 * javax/swing/plaf/basic/BasicLabelUI.java:
6045 (paint): Avoid painting text if it is null
6047 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
6050 2004-05-03 Olga Rodimina <rodimina@redhat.com>
6052 * Makefile.am: Added new file.
6053 * Makefile.in: Regenerate.
6054 * javax/swing/JPopupMenu.java:
6055 Started implementation.
6056 * javax/swing/JWindow.java
6057 (JWindow): call super() if parent for window
6059 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
6060 New File. UI Delegate for JPopupMenu.
6062 2004-04-30 Olga Rodimina <rodimina@redhat.com>
6064 * javax/swing/JApplet.java: Indicated that JApplet
6065 implements RootPaneContainer and made method of this
6067 * javax/swing/JFrame.java: Ditto.
6068 * javax/swing/JWindow.java: Ditto.
6070 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
6072 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6073 (nativeSetBounds): Call gdk_window_move in addition to
6076 * java/applet/Applet.java (preferredSize): Call parent's
6077 preferredSize if the applet stub is null.
6078 (minimumSize): Likewise for parent's minimumSize.
6080 2004-04-27 Olga Rodimina <rodimina@redhat.com>
6082 * javax/swing/JMenuItem.java
6083 (createActionPropertyChangeListener): Implemented.
6084 (processMouseEvent): Ditto.
6085 (fireMenuDragMouseEntered): Ditto.
6086 (fireMenuDragMouseExited): Ditto.
6087 (fireMenuDragMouseDragged): Ditto.
6088 (fireMenuDragMouseReleased): Ditto.
6089 (menuSelectionChanged): Ditto.
6090 (getSubElements): Ditto.
6091 (getComponent): Ditto.
6092 (addMenuDragMouseListener): Ditto.
6093 (removeMenuDragMouseListener):Ditto.
6094 (addMenuKeyListener): Ditto.
6095 (removeMenuKeyListener): Ditto.
6096 * javax/swing/plaf/basic/BasicMenuItemUI.java
6097 (doClick): Imlemented.
6098 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
6099 Don't handle mouse events here. Pass them to
6100 MenuSelectionManager.
6102 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6103 Used correct version of jalopy configuration
6104 file to fix style in the files below.
6106 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6108 * javax/swing/JCheckBoxMenuItem.java:
6109 Fixed style and removed unnecessary comments.
6110 * javax/swing/JMenuItem.java: Ditto.
6111 * javax/swing/JRadioButtonMenuItem.java: Ditto.
6112 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
6113 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
6114 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
6116 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
6118 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
6121 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
6123 * java/awt/ContainerOrderFocusTraversalPolicy.java
6124 (getComponentAfter): Start from current component and work up
6125 the component hierarchy until an acceptable component is found.
6126 Synchronize on tree lock.
6127 (getComponentBefore): Likewise.
6129 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
6131 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
6132 focus-related debugging messages.
6133 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
6134 * java/awt/EventDispatchThread.java: Likewise.
6135 * java/awt/KeyboardFocusManager.java: Likewise.
6136 * java/awt/Window.java: Likewise.
6137 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
6138 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6140 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
6141 new C++-style comments to C-style comments.
6142 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6144 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
6145 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6146 (handleEvent): Dispatch key press and key release events to
6148 (requestFocus): Post a FOCUS_GAINED event to the event queue.
6149 (gtkWidgetRequestFocus): New method.
6150 (gtkWidgetDispatchKeyEvent): Likewise.
6151 * java/awt/Component.java (requestFocus, requestFocus(boolean),
6152 requestFocusInWindow, requestFocusInWindow(boolean),
6153 getFocusCycleRootAncestor, nextFocus, transferFocus,
6154 transferFocusBackward, transferFocusUpCycle, hasFocus,
6155 isFocusOwner): Implement and document focus-handling methods.
6156 (setFocusTraversalKeys): Inherit focus traversal keys when
6157 keystrokes argument is null. Fix focus-handling documentation
6159 * java/awt/Container.java (setFocusTraversalKeys,
6160 getFocusTraversalKeys, areFocusTraversalKeysSet,
6161 isFocusCycleRoot, setFocusTraversalPolicy,
6162 getFocusTraversalPolicy, isFocusTraversalPolicySet,
6163 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
6164 Implement and document focus-handling methods.
6165 (transferFocusBackward): Remove method.
6166 (readObject, writeObject): Implement and document serialization
6168 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
6170 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
6172 * java/awt/DefaultKeyboardFocusManager.java: Implement and
6174 * java/awt/EventDispatchThread.java (run): Set default keyboard
6175 focus manager. Attempt to dispatch each event to the keyboard
6176 focus manager before normal dispatch.
6177 * java/awt/KeyboardFocusManager.java: Implement and partially
6179 * java/awt/Window.java (Window): Set focusCycleRoot to true.
6180 (show): Focus initial component when window is shown for the
6182 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6183 (pre_event_handler): Replace complex key press and key release
6184 logic with simple callbacks into GtkComponentPeer.
6185 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
6187 2004-04-21 Olga Rodimina <rodimina@redhat.com>
6189 * javax/swing/MenuSelectionManager.java
6190 (componentForPoint): Added new method.
6191 (defaultManager): New Method. Implemented.
6192 (getSelectedPath): Ditto.
6193 (isComponentPartOfCurrentMenu): Ditto.
6194 (processKeyEvent): Added new method.
6195 (processMouseEvent): New Method. Implemented.
6196 (setSelectedPath): Ditto.
6199 2004-04-19 Kim Ho <kho@redhat.com>
6201 * java/awt/Container.java:
6202 (remove): Set the component's parent to null.
6203 (getComponentAt): Implement.
6204 * javax/swing/JComponent.java:
6205 (JComponent): Initialize defaultLocale
6206 (getDefaultLocale): Implement.
6207 (setDefaultLocale): ditto.
6208 * javax/swing/JSlider.java:
6209 (JSlider): Fix calculation of value.
6210 * javax/swing/JSplitPane.java: Implement.
6211 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6212 Change SplitPane's default divider size.
6213 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6214 (paint): Remove unused code.
6215 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
6216 Added comments and ran through jalopy.
6217 (setBasicSplitPaneUI): Get reference to hidden divider
6218 and set up one touch buttons if necessary.
6219 (setBorder): Fire propertyChangeEvent only if
6220 borders are different.
6221 (getPreferredSize): Defer to layout manager.
6222 (propertyChange): Implement.
6223 (oneTouchExpandableChanged): ditto.
6224 (createLeftOneTouchButton): Use BasicArrowButton.
6225 (createRightOneTouchButton): ditto.
6226 (moveDividerTo): New method. Moves the divider
6227 to a set location based on the last divider location.
6228 (BasicSplitPaneDivider::MouseHandler): Implement.
6229 (BasicSplitPaneDivider::OneTouchButton): Removed.
6230 (BasicSplitPaneDivider::DragController): Implement.
6231 (BasicSplitPaneDivider::VerticalDragController):
6233 (BasicSplitPaneDivider::DividerLayout): ditto.
6234 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
6235 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
6236 (calculateLayoutInfo): Don't show component if it's
6238 (paintTab): Fix title paint logic.
6240 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
6243 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
6244 (setStartRule,setEndRule): Don't take abs of day number.
6245 (getOffset): Clarify docs. Add argument checks.
6246 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
6247 (equals,hasSameRules,toString,readObject): Use startTimeMode and
6249 * testsuite/libjava.mauve/xfails
6250 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
6252 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
6254 Layout interfaces during preparation, not initialization.
6255 * java/lang/natClass.cc (initializeClass): Move
6256 _Jv_LayoutInterfaceMethods call...
6257 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
6259 2004-05-19 Anthony Green <green@localhost.localdomain>
6261 * Makefile.am (awt_java_source_files): Remove javax.rmi and
6263 * Makefile.in: Rebuilt.
6264 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
6265 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
6266 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
6267 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
6268 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
6269 gnu/javax/rmi/CORBA/DelegateFactory.java,
6270 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
6271 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
6272 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
6273 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
6274 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
6275 gnu/javax/rmi/PortableServer.java: Remove files.
6277 2004-05-19 Anthony Green <green@redhat.com>
6279 * Makefile.am: Define JAVA_EXT_DIRS.
6280 * Makefile.in: Rebuilt.
6281 * java/lang/natRuntime.cc (insertSystemProperties): Set
6282 java.ext.dirs property.
6284 2004-05-16 Mark Wielaard <mark@klomp.org>
6286 * java/io/Writer.java (Writer(Object)): Check for null lock object.
6288 2004-05-15 Mark Wielaard <mark@klomp.org>
6290 * doc/cni.sgml: Removed, merged into gcj.texi.
6292 2004-05-15 Mark Wielaard <mark@klomp.org>
6294 * Makefile.am (ordinary_java_source_files): Add new javax.print
6296 * Makefile.in: Regenerated.
6298 2004-05-15 Michael Koch <konqueror@gmx.de>
6300 * javax/print/attribute/standard/DateTimeAtCompleted.java,
6301 javax/print/attribute/standard/DateTimeAtCreation.java,
6302 javax/print/attribute/standard/DateTimeAtProcessing.java,
6303 javax/print/attribute/standard/DocumentName.java,
6304 javax/print/attribute/standard/JobHoldUntil.java,
6305 javax/print/attribute/standard/JobImpressionsCompleted.java,
6306 javax/print/attribute/standard/JobMessageFromOperator.java,
6307 javax/print/attribute/standard/JobName.java,
6308 javax/print/attribute/standard/JobOriginatingUserName.java,
6309 javax/print/attribute/standard/JobPriority.java,
6310 javax/print/attribute/standard/JobPrioritySupported.java,
6311 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6312 javax/print/attribute/standard/OutputDeviceAssigned.java,
6313 javax/print/attribute/standard/PrinterInfo.java,
6314 javax/print/attribute/standard/PrinterLocation.java,
6315 javax/print/attribute/standard/PrinterMakeAndModel.java,
6316 javax/print/attribute/standard/PrinterMessageFromOperator.java,
6317 javax/print/attribute/standard/PrinterName.java,
6318 javax/print/attribute/standard/QueuedJobCount.java,
6319 javax/print/attribute/standard/RequestingUserName.java:
6320 Fixed javadocs all over.
6322 2004-05-15 Michael Koch <konqueror@gmx.de>
6324 * javax/print/DocFlavor.java,
6325 javax/print/attribute/standard/ColorSupported.java,
6326 javax/print/attribute/standard/Compression.java,
6327 javax/print/attribute/standard/CopiesSupported.java,
6328 javax/print/attribute/standard/Fidelity.java,
6329 javax/print/attribute/standard/Finishings.java,
6330 javax/print/attribute/standard/JobImpressionsSupported.java,
6331 javax/print/attribute/standard/JobKOctetsSupported.java,
6332 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6333 javax/print/attribute/standard/JobSheets.java,
6334 javax/print/attribute/standard/JobState.java,
6335 javax/print/attribute/standard/JobStateReason.java,
6336 javax/print/attribute/standard/JobStateReasons.java,
6337 javax/print/attribute/standard/Media.java,
6338 javax/print/attribute/standard/MediaSizeName.java,
6339 javax/print/attribute/standard/MultipleDocumentHandling.java,
6340 javax/print/attribute/standard/NumberUpSupported.java,
6341 javax/print/attribute/standard/OrientationRequested.java,
6342 javax/print/attribute/standard/PDLOverrideSupported.java,
6343 javax/print/attribute/standard/PageRanges.java,
6344 javax/print/attribute/standard/PresentationDirection.java,
6345 javax/print/attribute/standard/PrintQuality.java,
6346 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6347 javax/print/attribute/standard/PrinterMoreInfo.java,
6348 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6349 javax/print/attribute/standard/PrinterResolution.java,
6350 javax/print/attribute/standard/PrinterState.java,
6351 javax/print/attribute/standard/PrinterStateReason.java,
6352 javax/print/attribute/standard/PrinterStateReasons.java,
6353 javax/print/attribute/standard/PrinterURI.java,
6354 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6355 javax/print/attribute/standard/Severity.java,
6356 javax/print/attribute/standard/SheetCollate.java,
6357 javax/print/attribute/standard/Sides.java:
6358 Added serialVersionUID and removed final keyword where it doenst
6361 2004-05-15 Michael Koch <konqueror@gmx.de>
6363 * javax/print/PrintServiceLookup.java: New file.
6365 2004-05-15 Michael Koch <konqueror@gmx.de>
6367 * javax/print/DocFlavor.java:
6368 Implemented all flavor classes.
6370 2004-05-15 Michael Koch <konqueror@gmx.de>
6372 * javax/print/attribute/standard/ColorSupported.java,
6373 javax/print/attribute/standard/Compression.java,
6374 javax/print/attribute/standard/CopiesSupported.java,
6375 javax/print/attribute/standard/Fidelity.java,
6376 javax/print/attribute/standard/Finishings.java,
6377 javax/print/attribute/standard/JobImpressionsSupported.java,
6378 javax/print/attribute/standard/JobKOctetsSupported.java,
6379 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6380 javax/print/attribute/standard/JobSheets.java,
6381 javax/print/attribute/standard/JobState.java,
6382 javax/print/attribute/standard/JobStateReason.java,
6383 javax/print/attribute/standard/JobStateReasons.java,
6384 javax/print/attribute/standard/Media.java,
6385 javax/print/attribute/standard/MediaSizeName.java,
6386 javax/print/attribute/standard/MultipleDocumentHandling.java,
6387 javax/print/attribute/standard/NumberUpSupported.java,
6388 javax/print/attribute/standard/OrientationRequested.java,
6389 javax/print/attribute/standard/PDLOverrideSupported.java,
6390 javax/print/attribute/standard/PageRanges.java,
6391 javax/print/attribute/standard/PresentationDirection.java,
6392 javax/print/attribute/standard/PrintQuality.java,
6393 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6394 javax/print/attribute/standard/PrinterMoreInfo.java,
6395 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6396 javax/print/attribute/standard/PrinterResolution.java,
6397 javax/print/attribute/standard/PrinterState.java,
6398 javax/print/attribute/standard/PrinterStateReason.java,
6399 javax/print/attribute/standard/PrinterStateReasons.java,
6400 javax/print/attribute/standard/PrinterURI.java,
6401 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6402 javax/print/attribute/standard/Severity.java,
6403 javax/print/attribute/standard/SheetCollate.java,
6404 javax/print/attribute/standard/Sides.java: New files.
6406 2004-05-15 Michael Koch <konqueror@gmx.de>
6408 * javax/print/Doc.java
6409 (getPrintData): Throws IOException.
6410 (getReaderForText): Likewise.
6411 (getStreamForBytes): Likewise.
6412 * javax/print/DocFlavor.java:
6413 Fixed filename in copyright.
6414 (serialVersionUID): New field.
6415 * javax/print/ServiceUIFactory.java:
6416 Made all constants final.
6417 * javax/print/AttributeException.java
6418 javax/print/MultiDoc.java
6419 javax/print/MultiDocPrintJob.java
6420 javax/print/MultiDocPrintService.java
6421 javax/print/StreamPrintService.java
6422 javax/print/URIException.java: New files.
6423 * javax/print/Makefile.am
6424 (EXTRA_DIST): Added all new files.
6426 2004-05-15 Michael Koch <konqueror@gmx.de>
6428 * javax/print/attribute/standard/Copies.java,
6429 javax/print/attribute/standard/DateTimeAtCompleted.java,
6430 javax/print/attribute/standard/DateTimeAtCreation.java,
6431 javax/print/attribute/standard/DateTimeAtProcessing.java,
6432 javax/print/attribute/standard/DocumentName.java,
6433 javax/print/attribute/standard/JobHoldUntil.java,
6434 javax/print/attribute/standard/JobImpressions.java,
6435 javax/print/attribute/standard/JobImpressionsCompleted.java,
6436 javax/print/attribute/standard/JobKOctets.java,
6437 javax/print/attribute/standard/JobKOctetsProcessed.java,
6438 javax/print/attribute/standard/JobMediaSheets.java,
6439 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
6440 javax/print/attribute/standard/JobMessageFromOperator.java,
6441 javax/print/attribute/standard/JobName.java,
6442 javax/print/attribute/standard/JobOriginatingUserName.java,
6443 javax/print/attribute/standard/JobPriority.java,
6444 javax/print/attribute/standard/JobPrioritySupported.java,
6445 javax/print/attribute/standard/NumberOfDocuments.java,
6446 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6447 javax/print/attribute/standard/NumberUp.java,
6448 javax/print/attribute/standard/OutputDeviceAssigned.java,
6449 javax/print/attribute/standard/PagesPerMinute.java,
6450 javax/print/attribute/standard/PagesPerMinuteColor.java:
6451 Fixed @return tag all over.
6453 2004-05-15 Michael Koch <konqueror@gmx.de>
6455 * javax/print/attribute/AttributeSetUtilities.java
6456 (verifyCategoryForValue): Fixed typo in javadoc.
6457 * javax/print/attribute/HashAttributeSet.java
6458 (containsKey): Fixed @return tag.
6459 (comtainsValue): Likewise.
6461 * javax/print/attribute/IntegerSyntax.java
6463 * javax/print/attribute/ResolutionSyntax.java
6465 (getCrossFeedResolution): Removed unused code.
6466 (getFeedResolution): Likewise.
6467 * javax/print/attribute/SetOfIntegerSyntax.java
6468 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
6469 (equals): Fixed @return tag.
6470 * javax/print/attribute/TextSyntax.java
6471 (TextSyntax): Take locale into account.
6472 (hashCode): Better implementation.
6474 2004-05-15 Michael Koch <konqueror@gmx.de>
6476 * javax/print/CancelablePrintJob.java,
6477 javax/print/Doc.java,
6478 javax/print/DocFlavor.java,
6479 javax/print/DocPrintJob.java,
6480 javax/print/FlavorException.java,
6481 javax/print/PrintException.java,
6482 javax/print/PrintService.java,
6483 javax/print/ServiceUIFactory.java: New files.
6485 2004-05-15 Mark Wielaard <mark@klomp.org>
6487 * gnu/regexp/CharIndexedReader.java: Removed.
6488 * gnu/regexp/REFilterReader.java: Likewise.
6489 * gnu/regexp/RETokenLookAhead.java: Likewise.
6490 * Makefile.am (ordinary_java_source_files): Remove above classes.
6491 * Makefile.in: Regenerated.
6493 2004-05-14 Tom Tromey <tromey@redhat.com>
6495 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
6496 not `XGraphicsConfiguration.XOffScreenImage'.
6498 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
6500 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
6502 2004-05-14 Steven Augart <augart@watson.ibm.com>
6504 * include/jni.h (_Jv_func): Removed.
6505 (struct JNINativeInterface): Use `void *' for reserved slots.
6506 (struct JNIInvokeInterface): Likewise.
6508 2004-05-11 Michael Koch <konqueror@gmx.de>
6510 * gnu/java/net/natPlainSocketImplPosix.cc
6511 (read): Fixed typo in expression.
6513 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
6515 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
6516 ld_library_additions. Adjust all calls to libjava_invoke to match
6519 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
6520 path to cxxflagslist.
6521 Pass path of libstdc++ to libjava_invoke.
6523 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
6524 libjava_invoke arguments.
6526 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
6528 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
6531 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
6533 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
6534 main binary against the JNI shared library.
6536 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6538 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
6539 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
6540 (SimpleTimeZone): Tweak docs. Add new variation.
6541 (setStartRule,setEndRule): Add new variations. Use
6542 startTimeMode and endTimeMode.
6544 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6546 * java/util/Calendar.java (getActualMinimum,
6547 getActualMaximum): Remove abstract. Implement.
6549 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6551 Run the jni tests using the interpreter.
6552 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
6553 options_cxx to shared lib compile command.
6554 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
6555 they are used to link the shared lib, not the main binary.
6556 Use libjava_invoke to run gij.
6558 2004-05-06 Michael Koch <konqueror@gmx.de>
6560 * java/util/logging/Level.java
6561 (parse): Use == instead of String.equals().
6563 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6565 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
6566 verify_field_signature and verify_method_signature, not
6567 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
6568 (_Jv_ClassReader::handleField): Likewise.
6569 (_Jv_ClassReader::handleMethod): Likewise.
6571 2004-05-06 Michael Koch <konqueror@gmx.de>
6573 * javax/swing/table/TableColumn.java:
6576 2004-05-06 Michael Koch <konqueror@gmx.de>
6578 * javax/imageio/spi/ImageReaderWriterSpi.java
6579 (ImageReaderWriterSpi): Made it public.
6580 * javax/imageio/stream/ImageInputStream.java:
6583 2004-05-06 Michael Koch <konqueror@gmx.de>
6585 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6588 2004-05-06 Michael Koch <konqueror@gmx.de>
6590 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
6591 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
6593 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
6594 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
6595 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
6596 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
6597 their own source file.
6598 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6599 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
6600 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
6601 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
6602 (create): Define variable on top of function.
6603 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
6604 (menu_pos): Prototyped.
6605 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6606 (setTitle): Removed.
6607 * jni/gtk-peer/gthread-jni.c
6608 (gdk_threads_wake): Removed.
6609 * Makefile.am (gtk_c_source_files): Added new files
6610 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
6611 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
6612 * Makefile.in: Regenerated.
6614 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
6616 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
6619 2004-05-05 Mark Wielaard <mark@klomp.org>
6621 * javax/swing/AbstractButton.java: Replace special HTML entities with
6623 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
6624 * javax/swing/DefaultButtonModel.java: Likewise.
6625 * javax/swing/DefaultListModel.java: Likewise.
6626 * javax/swing/JList.java: Likewise.
6627 * javax/swing/JSlider.java: Likewise.
6628 * javax/swing/ListModel.java: Likewise.
6629 * javax/swing/Popup.java: Likewise.
6630 * javax/swing/SwingUtilities.java: Likewise.
6632 2004-05-05 Michael Koch <konqueror@gmx.de>
6634 * javax/swing/AbstractButton.java,
6635 javax/swing/ActionMap.java,
6636 javax/swing/DefaultButtonModel.java,
6637 javax/swing/DefaultListModel.java,
6638 javax/swing/ImageIcon.java,
6639 javax/swing/JComboBox.java,
6640 javax/swing/JComponent.java,
6641 javax/swing/JFrame.java,
6642 javax/swing/JInternalFrame.java,
6643 javax/swing/JMenuBar.java,
6644 javax/swing/JMenuItem.java,
6645 javax/swing/JOptionPane.java,
6646 javax/swing/JProgressBar.java,
6647 javax/swing/JRootPane.java,
6648 javax/swing/JScrollBar.java,
6649 javax/swing/JScrollPane.java,
6650 javax/swing/JSeparator.java,
6651 javax/swing/JSlider.java,
6652 javax/swing/JTabbedPane.java,
6653 javax/swing/JTable.java,
6654 javax/swing/JTextField.java,
6655 javax/swing/JToolBar.java,
6656 javax/swing/JToolTip.java,
6657 javax/swing/JTree.java,
6658 javax/swing/JViewport.java,
6659 javax/swing/JWindow.java,
6660 javax/swing/KeyStroke.java,
6661 javax/swing/LookAndFeel.java,
6662 javax/swing/SwingUtilities.java,
6663 javax/swing/Timer.java,
6664 javax/swing/ToolTipManager.java,
6665 javax/swing/UIDefaults.java,
6666 javax/swing/border/TitledBorder.java,
6667 javax/swing/filechooser/FileSystemView.java,
6668 javax/swing/plaf/basic/BasicButtonListener.java,
6669 javax/swing/plaf/basic/BasicButtonUI.java,
6670 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
6671 javax/swing/plaf/basic/BasicGraphicsUtils.java,
6672 javax/swing/plaf/basic/BasicLabelUI.java,
6673 javax/swing/plaf/basic/BasicMenuItemUI.java,
6674 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
6675 javax/swing/plaf/basic/BasicRootPaneUI.java,
6676 javax/swing/plaf/basic/BasicScrollBarUI.java,
6677 javax/swing/plaf/basic/BasicScrollPaneUI.java,
6678 javax/swing/plaf/basic/BasicSliderUI.java,
6679 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
6680 javax/swing/plaf/basic/BasicToggleButtonUI.java,
6681 javax/swing/table/JTableHeader.java,
6682 javax/swing/text/AbstractDocument.java,
6683 javax/swing/text/DefaultCaret.java,
6684 javax/swing/text/StyledEditorKit.java,
6685 javax/swing/tree/DefaultTreeCellEditor.java:
6688 2004-05-05 Michael Koch <konqueror@gmx.de>
6690 * java/util/prefs/AbstractPreferences.java
6691 (AbstractPreferences): Added parenthesis for clarity.
6692 Closes classpath bug #7940.
6694 2004-05-05 Tom Tromey <tromey@redhat.com>
6696 * javax/naming/CompoundName.java (endsWith): Look at correct
6697 element of source name.
6699 2004-05-05 Mark Wielaard <mark@klomp.org>
6701 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
6702 * java/util/HashMap.java (rehash): Add entry at start of bucket.
6704 2004-05-05 Tom Tromey <tromey@redhat.com>
6706 * java/io/BufferedReader.java (skip): Removed unused
6709 2004-05-05 Michael Koch <konqueror@gmx.de>
6711 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
6713 2004-05-05 Dalibor Topic <robilad@kaffe.org>
6715 * java/text/AttributedString.java,
6716 java/text/AttributedStringIterator.java,
6717 java/text/Collator.java,
6718 java/text/DecimalFormatSymbols.java,
6719 java/text/NumberFormat.java,
6720 java/text/RuleBasedCollator.java:
6723 2004-05-05 Tom Tromey <tromey@redhat.com>
6725 * java/text/Format.java: Cleaned up imports.
6726 * java/text/DecimalFormat.java: Cleaned up imports.
6727 * java/security/SecureRandom.java: Cleaned up imports.
6728 (SecureRandom): Removed unused variable.
6729 * java/security/UnresolvedPermission.java: Cleaned up imports.
6730 * java/util/Date.java (parse): Removed unused variable.
6731 * java/util/ResourceBundle.java: Cleaned up imports.
6732 (getBundle): Removed unused variable.
6733 (tryBundle): Likewise.
6734 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
6736 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6738 * java/text/SimpleDateFormat.java:
6739 (formatWithAttribute): New method. It implements
6740 the formatting process with attributes.
6741 (format): Use formatWithAttribute.
6742 (formatToCharacterIterator): New method. Use
6743 formatWithAttribute.
6745 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6747 * java/text/MessageFormat.java:
6748 (class Field): New class.
6749 (formatToCharacterIterator): New method.
6750 (format): Use formatInternal now.
6751 (formatInternal): New method. String formatter should
6752 be done here (with attributes). Attributes merging supported.
6753 (parse): More documentation.
6754 (getFormatsByArgumentIndex): New method.
6755 (setFormatByArgumentIndex): New method.
6756 (setFormatsByArgumentIndex): New method.
6758 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6760 * java/text/DecimalFormat.java
6761 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
6762 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
6763 (parse): Fixed handling of exponentiation notation and grouping.
6765 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6767 * java/text/DecimalFormat.java
6768 (scanFix): Build attribute array. Fixed error reporting.
6769 (applyPatternWithSymbols): Store attributes for the prefix and
6771 (formatInternal): New method. Changed the way the string is
6772 computed. Implemented attributes. Cleant up rounding in
6773 exponential notation.
6774 (format): Use formatInternal.
6775 (formatToCharacterIterator): New method.
6776 (exponentRound, negativePrefixRanges, positivePrefixRanges,
6777 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
6778 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
6781 2004-05-04 Dalibor Topic <robilad@kaffe.org>
6783 * java/security/interfaces/DSAKeyPairGenerator.java,
6784 java/security/interfaces/DSAPrivateKey.java,
6785 java/security/interfaces/DSAPublicKey.java,
6786 java/security/interfaces/RSAPrivateKey.java,
6787 java/security/interfaces/RSAPublicKey.java:
6790 2004-05-04 Michael Koch <konqueror@gmx.de>
6792 * java/nio/ByteBuffer.java,
6793 java/nio/CharBuffer.java,
6794 java/nio/DoubleBuffer.java,
6795 java/nio/FloatBuffer.java,
6796 java/nio/IntBuffer.java,
6797 java/nio/LongBuffer.java,
6798 java/nio/ShortBuffer.java:
6799 (compareTo): Fixed bogus implementation in all buffer classes.
6801 2004-05-04 Ingo Proetel <proetel@aicas.com>
6803 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
6804 32 bit pixels not 8 bit pixels.
6805 (isCompatibleRaster): Added javadoc comment.
6807 2004-05-04 Ingo Proetel <proetel@aicas.com>
6809 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
6812 2004-05-04 Ingo Proetel <proetel@aicas.com>
6814 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
6815 (getColorModel): Return the actual color model.
6816 (getRaster): Implemented.
6817 (ColorRaster): New inner class.
6818 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
6820 * java/awt/Color.java (<init>): Make exception more verbose.
6821 (createContext): Use ColorModel when creating a PaintContext.
6823 2004-05-04 Michael Koch <konqueror@gmx.de>
6825 * gnu/java/text/CharacterBreakIterator.java
6826 (previous): Removed unused variable.
6828 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
6830 * gnu/java/text/FormatBuffer.java,
6831 gnu/java/text/AttributedFormatBuffer.java,
6832 gnu/java/text/StringFormatBuffer.java: New classes to implement
6833 attributed iterators in java.text.
6834 * gnu/java/text/FormatCharacterIterator.java: Moved
6835 from java/text as it is an internal class.
6836 * java/text/FormatCharacterIterator.java: Removed.
6837 * java/text/Format.java:
6838 Import gnu.java.text.FormatCharacterIterator.
6839 * Makefile.am (java_source_files): Added new files.
6840 * Makefile.in: Regenerated.
6843 2004-05-04 Mark Wielaard <mark@klomp.org>
6845 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
6847 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
6849 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
6850 * Makefile.in: Rebuilt.
6852 2004-05-03 Mark Wielaard <mark@klomp.org>
6854 * gnu/java/security/der/DERReader.java: Call static methods staticly.
6855 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
6857 (set(String, String, int, String, String, String, String, String)):
6858 Assign this.file to path or path + "?" + query.
6859 * java/util/Arrays.java: Call static methods staticly.
6860 * java/util/zip/ZipEntry.java: Likewise.
6861 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
6862 dir to this.direction.
6863 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
6864 Assign static field only once.
6865 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
6867 2004-05-03 Mark Wielaard <mark@klomp.org>
6869 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
6870 unused variables hScrollbarHeight and vScrollbarWidth.
6871 (preferredSize): Likewise.
6872 * gnu/java/security/provider/DSAParameters.java (engineToString):
6873 Removed unused call to System.getProperty("line.seperator");
6874 * java/security/Security.java (loadProviders): Return result.
6876 2004-05-03 Tom Tromey <tromey@redhat.com>
6878 * java/net/URLStreamHandler.java (toExternalForm): Removed
6881 * java/math/BigDecimal.java (divide): Removed unused variable.
6882 * java/lang/Throwable.java: Cleaned up imports.
6883 * java/lang/ClassLoader.java: Cleaned up imports.
6884 * java/io/FilePermission.java (implies): Removed unused
6886 * java/awt/TextComponent.java: Removed unused import.
6887 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
6888 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
6889 * gnu/java/text/WordBreakIterator.java: Removed unused import.
6890 * gnu/java/text/SentenceBreakIterator.java: Removed unused
6892 * gnu/java/text/LineBreakIterator.java: Removed unused import.
6893 * gnu/java/text/CharacterBreakIterator.java: Removed
6895 * gnu/java/security/provider/DSAKeyPairGenerator.java:
6897 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
6898 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
6900 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
6901 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
6902 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
6903 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
6904 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
6905 (lookupProviders): Removed unused variable.
6906 (loadNextServiceProvider): Likewise.
6907 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
6909 2004-05-03 Michael Koch <konqueror@gmx.de>
6911 Fixes PR libgcj/14695:
6912 * java/net/NetworkInterface.java
6913 (getByName): Return null when no interface was found.
6915 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
6916 Tom Tromey <tromey@redhat.com>
6918 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
6919 additional option "-Wmissing-prototypes" for compiling C sources.
6920 Print actual filename for pass/fail rather than $name.c.
6921 * testsuite/libjava.jni/PR15133.java: New testcase file.
6922 * testsuite/libjava.jni/PR15133.c: Likewise.
6923 * testsuite/libjava.jni/PR15133.out: Likewise.
6925 2004-04-30 Roger Sayle <roger@eyesopen.com>
6927 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
6930 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
6932 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
6933 limit the maximum heap size to avoid unnecessary thrashing.
6935 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
6937 * java/text/CollationElementIterator.java (reset): Reset
6938 lookahead variables.
6940 2004-04-23 Mark Wielaard <mark@klomp.org>
6942 * jni/classpath/jcl.c: Changed C++ comments into C comments.
6944 2004-04-23 Dalibor Topic <robilad@kaffe.org>
6946 * java/sql/DriverManager.java:
6949 2004-04-23 Michael Koch <konqueror@gmx.de>
6952 (hashcode): Don't initialize with default value explicitely.
6953 (getContent): Removed redundant "final" keyword.
6954 (openStream): Likewise.
6955 (getURLStreamHandler): Fixed coding style.
6956 * java/net/URLConnection.java
6957 (defaultAllowUserInteraction): Don't initialize with default value
6959 (connected): Likewise.
6960 (doOutput): Likewise.
6961 (ifModifiedSince): Likewise.
6962 (dateformats_initialized): Likewise.
6963 (setURLStreamHander): Use StreamTokenizer where it belongs to.
6965 2004-04-23 Michael Koch <konqueror@gmx.de>
6967 * gnu/java/nio/channels/FileChannelImpl.java
6968 (SET, CUR): Unused, removed.
6969 (read): Implement here directly.
6970 (implRead): Removed.
6971 (write): Implement here directly.
6972 (implWrite): Removed.
6974 2004-04-23 Dalibor Topic <robilad@kaffe.org>
6976 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
6977 javax/rmi/CORBA/Stub.java,
6978 javax/rmi/CORBA/Util.java,
6979 javax/rmi/CORBA/ValueHandler.java,
6980 javax/rmi/CORBA/ValueHandler.java,
6981 javax/rmi/PortableRemoteObject.java:
6984 2004-04-23 Dalibor Topic <robilad@kaffe.org>
6986 * java/util/jar/JarFile.java,
6987 java/util/jar/JarInputStream.java,
6988 java/util/jar/JarOutputStream.java,
6989 java/util/jar/Manifest.java:
6992 2004-04-23 Dalibor Topic <robilad@kaffe.org>
6994 * java/util/ArrayList.java,
6995 java/util/Calendar.java,
6996 java/util/Currency.java,
6997 java/util/HashMap.java,
6998 java/util/HashSet.java,
6999 java/util/Hashtable.java,
7000 java/util/LinkedList.java,
7001 java/util/Properties.java,
7002 java/util/PropertyPermission.java,
7003 java/util/TimeZone.java,
7004 java/util/TreeMap.java,
7005 java/util/TreeSet.java,
7006 java/util/Vector.java,
7007 java/util/WeakHashMap.java:
7010 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7012 * java/util/logging/FileHandler.java,
7013 java/util/logging/Formatter.java,
7014 java/util/logging/Handler.java,
7015 java/util/logging/Logger.java,
7016 java/util/logging/SimpleFormatter.java,
7017 java/util/logging/XMLFormatter.java:
7020 2004-04-22 Mark Wielaard <mark@klomp.org>
7022 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
7023 -Wno-long-long flags variable.
7024 (gtk_c_files): Use PEDANTIC_CFLAGS.
7025 * Makefile.in: Regenerated.
7027 2004-04-22 Mark Wielaard <mark@klomp.org>
7029 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7030 Changed C++ comments into C comments.
7031 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
7034 2004-04-22 Michael Koch <konqueror@gmx.de>
7036 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
7037 Merged copyright year with GNU classpath.
7039 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7041 * javax/security/auth/x500/X500Principal.java:
7044 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7046 * javax/swing/JSlider.java:
7047 Fixed HTML tags in comments.
7049 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7051 * javax/accessibility/AccessibleText.java:
7054 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
7056 * java/net/URLStreamHandler.java
7057 (parseURL): Convert the file path to using '/' instead of native
7060 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
7063 (userInfo): New field.
7064 (URL): Set authority to the right value.
7065 (setURL): Fixed authority and file initialization.
7066 * java/net/URLStreamHandler.java
7067 (parseURL): Take care of the query tag. Build authority.
7068 (toExternalForm): Fixed URL building using authority.
7070 2004-04-22 Michael Koch <konqueror@gmx.de>
7072 * java/net/Socket.java
7073 (impl): Made package-private.
7074 * java/net/ServerSocket.java
7075 (implAccept): Access Socket.impl field directly.
7077 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7079 * java/util/prefs/Preferences.java,
7080 java/util/prefs/InvalidPreferencesFormatException.java,
7081 java/util/prefs/BackingStoreException.java,
7082 java/util/prefs/AbstractPreferences.java:
7085 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7087 * java/util/regex/Matcher.java,
7088 java/util/regex/Pattern.java:
7091 2004-04-22 Michael Koch <konqueror@gmx.de>
7093 * java/nio/charset/IllegalCharsetNameException.java
7094 (charsetName): Made private.
7095 (IllegalCharsetNameException): Added @param tag to javadoc.
7096 (getCharsetName): Added @return tag to javadoc.
7097 * java/nio/charset/MalformedInputException.java
7098 (MalformedInputException): Added @param tag to javadoc.
7099 (getInputLength): Revised method description, added @return tag.
7100 (getMessage): Added @return tag.
7102 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
7104 * java/awt/Font.java (deriveFont): Implement missing variants.
7105 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
7108 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
7110 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
7111 Set method->index values for interface methods to their itable index.
7112 (initializeClass): Call _Jv_LayoutInterfaceMethods.
7114 2004-04-21 Michael Koch <konqueror@gmx.de>
7116 * java/nio/DirectByteBufferImpl.java
7117 (shiftDown): Made static, give address as argument and
7118 provide a convenience method that overwrites shiftDown in
7119 ByteBufferImpl and calls the native shiftDown.
7120 * java/nio/MappedByteBufferImpl.java
7121 (): Use optimized method in DirectByteBufferImpl.
7122 * java/nio/natDirectByteBufferImpl.cc
7123 (shiftDown): Changed method signature. Removed usage of array_offset.
7125 2004-04-21 Michael Koch <konqueror@gmx.de>
7127 * gnu/java/net/natPlainSocketImplPosix.cc
7128 (SocketInputStream::read): Make sure returned data is a byte value.
7130 2004-04-21 Michael Koch <konqueror@gmx.de>
7132 * gnu/classpath/ServiceFactory.java,
7133 gnu/classpath/ServiceProviderLoadingAction.java,
7134 javax/imageio/ImageReader.java,
7135 javax/imageio/ImageTranscoder.java,
7136 javax/imageio/ImageWriter.java,
7137 javax/imageio/package.html,
7138 javax/imageio/spi/IIOServiceProvider.java,
7139 javax/imageio/spi/ImageInputStreamSpi.java,
7140 javax/imageio/spi/ImageOutputStreamSpi.java,
7141 javax/imageio/spi/ImageReaderWriterSpi.java,
7142 javax/imageio/spi/ImageTranscoderSpi.java,
7143 javax/imageio/spi/RegisterableService.java,
7144 javax/imageio/spi/ServiceRegistry.java,
7145 javax/imageio/spi/package.html,
7146 javax/imageio/stream/IIOByteBuffer.java,
7147 javax/imageio/stream/ImageInputStream.java,
7148 javax/imageio/stream/ImageOutputStream.java,
7149 javax/imageio/stream/package.html:
7152 (ordinary_java_source_files): Added
7153 gnu/classpath/ServiceFactory.java and
7154 gnu/classpath/ServiceProviderLoadingAction.java.
7155 (javax_source_files): Added
7156 javax/imageio/ImageReader.java,
7157 javax/imageio/ImageTranscoder.java,
7158 javax/imageio/ImageWriter.java,
7159 javax/imageio/spi/IIOServiceProvider.java,
7160 javax/imageio/spi/ImageInputStreamSpi.java,
7161 javax/imageio/spi/ImageOutputStreamSpi.java,
7162 javax/imageio/spi/ImageReaderWriterSpi.java,
7163 javax/imageio/spi/ImageTranscoderSpi.java,
7164 javax/imageio/spi/RegisterableService.java,
7165 javax/imageio/spi/ServiceRegistry.java,
7166 javax/imageio/stream/IIOByteBuffer.java,
7167 javax/imageio/stream/ImageInputStream.java and
7168 javax/imageio/stream/ImageOutputStream.java.
7169 * Makefile.in: Regenerated.
7171 2004-04-21 Michael Koch <konqueror@gmx.de>
7173 * java/util/Properties.java
7174 (load): Fix wrongly merged fix.
7176 2004-04-21 Mark Wielaard <mark@klomp.org>
7178 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
7179 malloc and free buf.
7181 2004-04-21 Dalibor Topic <robilad@kaffe.org>
7183 * javax/naming/AuthenticationException.java,
7184 javax/naming/AuthenticationNotSupportedException.java,
7185 javax/naming/CannotProceedException.java,
7186 javax/naming/CommunicationException.java,
7187 javax/naming/CompoundName.java,
7188 javax/naming/ConfigurationException.java,
7189 javax/naming/ContextNotEmptyException.java,
7190 javax/naming/InitialContext.java,
7191 javax/naming/InsufficientResourcesException.java,
7192 javax/naming/InterruptedNamingException.java,
7193 javax/naming/LimitExceededException.java,
7194 javax/naming/LinkException.java,
7195 javax/naming/LinkLoopException.java,
7196 javax/naming/LinkRef.java,
7197 javax/naming/MalformedLinkException.java,
7198 javax/naming/Name.java,
7199 javax/naming/NameAlreadyBoundException.java,
7200 javax/naming/NameNotFoundException.java,
7201 javax/naming/NamingSecurityException.java,
7202 javax/naming/NoInitialContextException.java,
7203 javax/naming/NoPermissionException.java,
7204 javax/naming/NotContextException.java,
7205 javax/naming/PartialResultException.java,
7206 javax/naming/ReferralException.java,
7207 javax/naming/ServiceUnavailableException.java,
7208 javax/naming/SizeLimitExceededException.java,
7209 javax/naming/TimeLimitExceededException.java,
7210 javax/naming/directory/Attribute.java,
7211 javax/naming/directory/Attributes.java,
7212 javax/naming/directory/SearchResult.java,
7213 javax/naming/event/NamingExceptionEvent.java,
7214 javax/naming/spi/ResolveResult.java:
7217 2004-04-21 Mark Wielaard <mark@klomp.org>
7219 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
7220 Changed C++ comments into C comments. Removed commented out code.
7221 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7223 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
7225 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
7227 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
7229 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
7231 * native/jni/gtk-peer/gthread-jni.c:
7234 2004-04-21 Mark Wielaard <mark@klomp.org>
7236 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
7237 static fields defined in interface.
7238 * javax/awt/JDialog.java: Likewise.
7239 (JDialog): Make constructors public.
7240 (getDefaultCloseOperation): Make public.
7241 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
7242 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
7243 * javax/swing/JViewport.java (JViewport): Make constructor public.
7245 2004-04-21 Michael Koch <konqueror@gmx.de>
7247 * java/util/Map.java
7248 (Entry): Removed redundant "static" modifier.
7249 * java/text/AttributedCharacterIterator.java:
7250 Updated copyright year.
7252 2004-04-20 Michael Koch <konqueror@gmx.de>
7254 * javax/naming/directory/SearchControls.java:
7255 Don't explicitely extend java.lang.Object.
7256 * javax/naming/spi/DirStateFactory.java:
7257 Merged copyright year with GNU classpath.
7259 2004-04-20 Michael Koch <konqueror@gmx.de>
7261 * java/nio/channels/Channels.java:
7262 Merged coding style with GNU classpath.
7264 2004-04-20 Michael Koch <konqueror@gmx.de>
7266 * java/net/ServerSocket.java
7267 Merged coding style from GNU classpath.
7269 2004-04-20 Michael Koch <konqueror@gmx.de>
7271 * java/io/BufferedWriter.java:
7272 Reordered variables to be at top of the class.
7273 (localFlush): Removed redundant final keyword.
7275 2004-04-20 Ingo Proetel <proetel@aicas.com>
7277 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
7279 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7281 * java/text/DecimalFormat.java (scanFix): Removed suffix check
7282 for percent and permill check.
7284 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7286 * java/text/FieldPosition.java
7287 (FieldPosition) Constructor now behaves as it should according
7288 to the java documentation.
7290 2004-04-20 Mark Wielaard <mark@klomp.org>
7292 * java/util/Properties.java: Use the word umlaut, not ä in api
7295 2004-04-20 Michael Koch <konqueror@gmx.de>
7297 * java/nio/Buffer.java,
7298 java/nio/channels/AlreadyConnectedException.java,
7299 java/nio/channels/AsynchronousCloseException.java,
7300 java/nio/channels/ByteChannel.java,
7301 java/nio/channels/CancelledKeyException.java,
7302 java/nio/channels/Channel.java,
7303 java/nio/channels/Channels.java,
7304 java/nio/channels/ClosedByInterruptException.java,
7305 java/nio/channels/ClosedChannelException.java,
7306 java/nio/channels/ClosedSelectorException.java,
7307 java/nio/channels/ConnectionPendingException.java,
7308 java/nio/channels/DatagramChannel.java,
7309 java/nio/channels/FileChannel.java,
7310 java/nio/channels/FileLock.java,
7311 java/nio/channels/FileLockInterruptionException.java,
7312 java/nio/channels/GatheringByteChannel.java,
7313 java/nio/channels/IllegalBlockingModeException.java,
7314 java/nio/channels/IllegalSelectorException.java,
7315 java/nio/channels/InterruptibleChannel.java,
7316 java/nio/channels/NoConnectionPendingException.java,
7317 java/nio/channels/NonReadableChannelException.java,
7318 java/nio/channels/NonWritableChannelException.java,
7319 java/nio/channels/NotYetBoundException.java,
7320 java/nio/channels/NotYetConnectedException.java,
7321 java/nio/channels/OverlappingFileLockException.java,
7322 java/nio/channels/Pipe.java,
7323 java/nio/channels/ReadableByteChannel.java,
7324 java/nio/channels/ScatteringByteChannel.java,
7325 java/nio/channels/SelectableChannel.java,
7326 java/nio/channels/SelectionKey.java,
7327 java/nio/channels/Selector.java,
7328 java/nio/channels/ServerSocketChannel.java,
7329 java/nio/channels/SocketChannel.java,
7330 java/nio/channels/UnresolvedAddressException.java,
7331 java/nio/channels/UnsupportedAddressTypeException.java,
7332 java/nio/channels/WritableByteChannel.java,
7333 java/nio/channels/spi/AbstractInterruptibleChannel.java,
7334 java/nio/channels/spi/AbstractSelectableChannel.java,
7335 java/nio/channels/spi/AbstractSelectionKey.java,
7336 java/nio/channels/spi/AbstractSelector.java,
7337 java/nio/channels/spi/SelectorProvider.java,
7338 java/nio/charset/spi/CharsetProvider.java:
7339 Fixed javadocs and jalopied all over java.nio.
7341 2004-04-20 Michael Koch <konqueror@gmx.de>
7343 * java/nio/ByteBufferImpl.java,
7344 java/nio/CharBufferImpl.java,
7345 java/nio/DirectByteBufferImpl.java,
7346 java/nio/DoubleBufferImpl.java,
7347 java/nio/DoubleViewBufferImpl.java,
7348 java/nio/FloatBufferImpl.java,
7349 java/nio/FloatViewBufferImpl.java,
7350 java/nio/IntBufferImpl.java,
7351 java/nio/IntViewBufferImpl.java,
7352 java/nio/LongBufferImpl.java,
7353 java/nio/LongViewBufferImpl.java,
7354 java/nio/MappedByteBufferImpl.java,
7355 java/nio/ShortBufferImpl.java,
7356 java/nio/ShortViewBufferImpl.java:
7357 Made sure all classes are final and removed final keyword from all
7360 2004-04-20 Michael Koch <konqueror@gmx.de>
7362 * java/rmi/MarshalledObject.java,
7363 java/rmi/Naming.java,
7364 java/rmi/RemoteException.java,
7365 java/rmi/activation/ActivationException.java,
7366 java/rmi/server/ServerCloneException.java,
7367 java/security/AccessController.java,
7368 java/security/AlgorithmParameterGenerator.java,
7369 java/security/AlgorithmParameters.java,
7370 java/security/CodeSource.java,
7371 java/security/Identity.java,
7372 java/security/IdentityScope.java,
7373 java/security/KeyPairGenerator.java,
7374 java/security/KeyStore.java,
7375 java/security/Security.java,
7376 java/security/Signature.java,
7377 java/security/SignatureSpi.java,
7378 java/security/SignedObject.java,
7379 java/security/spec/DSAParameterSpec.java,
7380 java/security/spec/DSAPrivateKeySpec.java,
7381 java/security/spec/DSAPublicKeySpec.java,
7382 java/sql/Array.java,
7383 java/sql/DatabaseMetaData.java,
7384 java/sql/ResultSet.java,
7385 java/text/ChoiceFormat.java,
7386 java/text/CollationElementIterator.java,
7387 java/text/CollationKey.java,
7388 java/text/Collator.java,
7389 java/text/DateFormat.java,
7390 java/text/DateFormatSymbols.java,
7391 java/text/DecimalFormatSymbols.java,
7392 java/text/Format.java,
7393 java/text/ParsePosition.java,
7394 java/text/RuleBasedCollator.java,
7395 java/text/SimpleDateFormat.java,
7396 java/text/StringCharacterIterator.java,
7397 java/util/Collections.java,
7398 java/util/PropertyResourceBundle.java,
7399 java/util/ResourceBundle.java,
7400 java/util/StringTokenizer.java,
7401 java/util/jar/Attributes.java,
7402 java/util/logging/ConsoleHandler.java,
7403 java/util/logging/LogManager.java,
7404 java/util/logging/MemoryHandler.java,
7405 java/util/logging/SocketHandler.java,
7406 javax/naming/NamingException.java:
7407 Fixed javadoc, coding style and argument names all over.
7409 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7411 * java/io/FileDescriptor.java: (FileDescriptor) Added public
7412 constructor. (valid) Added null check.
7414 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7416 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
7417 * java/io/FileOutputStream.java
7418 (FileOutputStream) Reorganized constructors. Constructors now
7419 check whether the given path is directory.
7421 2004-04-20 Michael Koch <konqueror@gmx.de>
7423 * java/net/Authenticator.java,
7424 java/net/BindException.java,
7425 java/net/ConnectException.java,
7426 java/net/ContentHandler.java,
7427 java/net/ContentHandlerFactory.java,
7428 java/net/DatagramPacket.java,
7429 java/net/DatagramSocket.java,
7430 java/net/DatagramSocketImpl.java,
7431 java/net/DatagramSocketImplFactory.java,
7432 java/net/FileNameMap.java,
7433 java/net/HttpURLConnection.java,
7434 java/net/Inet4Address.java,
7435 java/net/Inet6Address.java,
7436 java/net/InetAddress.java,
7437 java/net/InetSocketAddress.java,
7438 java/net/JarURLConnection.java,
7439 java/net/MalformedURLException.java,
7440 java/net/MulticastSocket.java,
7441 java/net/NetPermission.java,
7442 java/net/NetworkInterface.java,
7443 java/net/NoRouteToHostException.java,
7444 java/net/PasswordAuthentication.java,
7445 java/net/PortUnreachableException.java,
7446 java/net/ProtocolException.java,
7447 java/net/ServerSocket.java,
7448 java/net/Socket.java,
7449 java/net/SocketAddress.java,
7450 java/net/SocketException.java,
7451 java/net/SocketImpl.java,
7452 java/net/SocketImplFactory.java,
7453 java/net/SocketOptions.java,
7454 java/net/SocketPermission.java,
7455 java/net/SocketTimeoutException.java,
7457 java/net/URISyntaxException.java,
7459 java/net/URLClassLoader.java,
7460 java/net/URLConnection.java,
7461 java/net/URLDecoder.java,
7462 java/net/URLEncoder.java,
7463 java/net/URLStreamHandler.java,
7464 java/net/URLStreamHandlerFactory.java,
7465 java/net/UnknownHostException.java,
7466 java/net/UnknownServiceException.java:
7467 Fixed javadocs, coding style and argument names all over.
7469 2004-04-20 Michael Koch <konqueror@gmx.de>
7471 * java/lang/Byte.java,
7472 java/lang/CharSequence.java,
7473 java/lang/ClassLoader.java,
7474 java/lang/Compiler.java,
7475 java/lang/Double.java,
7476 java/lang/Float.java,
7477 java/lang/Integer.java,
7478 java/lang/Long.java,
7479 java/lang/Math.java,
7480 java/lang/Number.java,
7481 java/lang/Package.java,
7482 java/lang/Runtime.java,
7483 java/lang/RuntimePermission.java,
7484 java/lang/SecurityManager.java,
7485 java/lang/Short.java,
7486 java/lang/StringBuffer.java,
7487 java/lang/System.java,
7488 java/lang/ThreadGroup.java,
7489 java/lang/Throwable.java,
7490 java/lang/reflect/InvocationHandler.java,
7491 java/lang/reflect/Proxy.java:
7492 Fixed javadocs, coding style and argument names all over.
7494 2004-04-20 Michael Koch <konqueror@gmx.de>
7496 * java/io/BufferedWriter.java,
7497 java/io/ByteArrayInputStream.java,
7498 java/io/CharArrayWriter.java,
7499 java/io/DataInput.java,
7500 java/io/DataInputStream.java,
7502 java/io/FilterInputStream.java,
7503 java/io/InputStream.java,
7504 java/io/InputStreamReader.java,
7505 java/io/ObjectInputStream.java,
7506 java/io/ObjectStreamClass.java,
7507 java/io/PipedInputStream.java,
7508 java/io/PipedReader.java,
7509 java/io/PushbackInputStream.java,
7510 java/io/PushbackReader.java,
7511 java/io/RandomAccessFile.java,
7512 java/io/SerializablePermission.java,
7513 java/io/StreamTokenizer.java,
7514 java/io/StringWriter.java,
7515 java/io/WriteAbortedException.java,
7516 java/io/Writer.java:
7517 Fixed javadocs all over, rename arguments to match javadocs,
7520 2004-04-20 Ingo Proetel <proetel@aicas.com>
7522 * java/awt/FontMetrics.java:
7523 (charsWidth): fixed accumulation of total_width
7524 (getWidth): simple default implementation
7525 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
7526 in Rectangle constructor.
7527 * java/awt/image/Raster.java (toString): Added method.
7528 * java/awt/image/SampleModel.java (<init>): Added error cause
7529 information to thrown exception.
7530 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
7532 (setDataElements): New method.
7533 (setPixels): New method.
7534 (toString): New method.
7536 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7538 * java/awt/image/ComponentColorModel.java
7539 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
7540 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
7541 Mauve tests on this method. Improved documentation.
7543 2004-04-20 Michael Koch <konqueror@gmx.de>
7545 * javax/swing/JLayeredPane.java,
7546 javax/swing/plaf/BorderUIResource.java,
7547 javax/swing/plaf/ComponentUI.java,
7548 javax/swing/undo/CompoundEdit.java,
7549 javax/swing/undo/StateEdit.java:
7550 Fixed HTML tags in javadocs all over.
7552 2004-04-20 Michael Koch <konqueror@gmx.de>
7554 * javax/print/attribute/EnumSyntax.java
7555 (getOffset): Made protected.
7556 * javax/print/attribute/HashAttributeSet.java
7557 (HashAttributeSet): Likewise.
7558 * javax/print/attribute/ResolutionSyntax.java
7559 (getFeedResolution): Fixed typo in exception name.
7560 (getCrossFeedResolution): Likewise.
7561 * javax/print/attribute/SetOfIntegerSyntax.java
7562 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
7563 * javax/print/attribute/TextSyntax.java
7564 (TextSyntax): Handle locale correctly.
7565 (hashCode): Calc better hashcode value.
7566 (equals): Fixed @return tag.
7567 (toString): New method.
7569 2004-04-20 Michael Koch <konqueror@gmx.de>
7571 * gnu/java/nio/FileLockImpl.java
7572 (static): Removed, not needed anymore.
7573 * gnu/java/nio/channels/FileChannelImpl.java
7574 (FileChannelImpl): Made final.
7575 (mode): Made private.
7576 (READ, WRITE, APPEND): Made public.
7577 (EXCL, SYNC, DSYNC): Likewise.
7578 (static): Load native JNI library, when needed.
7579 (length): Unused, removed.
7580 (available): Made public.
7581 (implPosition): Throws IOException.
7583 (implTruncate): Likewise.
7587 2004-04-20 Michael Koch <konqueror@gmx.de>
7589 * java/awt/AWTPermission.java,
7590 java/awt/Component.java,
7591 java/awt/ComponentOrientation.java,,
7592 java/awt/Dialog.java,
7593 java/awt/FontMetrics.java,
7594 java/awt/Graphics.java,
7595 java/awt/datatransfer/DataFlavor.java,
7596 java/beans/Introspector.java,
7597 java/beans/PropertyEditor.java,
7598 java/beans/PropertyEditorManager.java,
7599 java/beans/beancontext/BeanContextServiceProvider.java:
7600 Fixed HTML tags in javadocs all over.
7602 2004-04-20 Mark Wielaard <mark@klomp.org>
7604 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
7605 MissingResourceException is thrown.
7606 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
7607 null when a MissingResourceException is thrown. Should never happen.
7609 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7611 * java/awt/image/DataBufferShort.java,
7612 java/awt/image/DataBufferFloat.java,
7613 java/awt/image/DataBufferDouble.java,
7614 java/awt/image/PixelInterleavedSampleModel.java: New files.
7615 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
7616 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
7618 2004-04-20 Michael Koch <konqueror@gmx.de>
7620 * Makefile.am (java_source_files): Added
7621 java/awt/image/DataBufferDouble.java,
7622 java/awt/image/DataBufferFloat.java,
7623 java/awt/image/DataBufferShort.java and
7624 java/awt/image/PixelInterleavedSampleModel.java.
7625 * Makefile.in: Regenerated.
7627 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
7629 * gcj/cni.h (JvAllocObject): Remove these obsolete,
7630 undocumented CNI calls.
7631 * include/java-interp.h (_Jv_InterpClass): No longer
7632 extends java.lang.Class.
7633 * java/lang/Class.h (Class): Add new field `aux_info'.
7634 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
7635 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
7636 Use Class->aux_info instead.
7637 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
7638 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
7639 Use Class->aux_info instead.
7640 * java/io/natObjectInputStream.cc (allocateObject): Use
7642 * java/lang/natClass.cc (newInstance): Likewise.
7643 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
7644 * java/lang/natObject.cc (clone): Likewise.
7645 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
7646 * java/lang/natVMClassLoader.cc (defineClass): Don't use
7647 JvAllocObject. Allocate klass->aux_info here for interpreted
7650 2004-04-17 Mark Wielaard <mark@klomp.org>
7652 * javax/swing/JToggleButton.java (ToggleButtonModel):
7653 Make public static inner class.
7654 * javax/swing/JTabbedPane.java (setComponentAt):
7655 Call Page.setComponent().
7656 (SCROLL_TAB_LAYOUT): Make public, value is 1.
7657 (WRAP_TAB_LAYOUT): Make public, value is 0.
7658 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
7659 Make private static inner class.
7661 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
7663 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
7664 arguments to match new signature. Remove FIXME comments.
7666 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
7668 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
7670 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
7673 2004-04-02 Olga Rodimina <rodimina@redhat.com>
7675 * Makefile.am: Added new file.
7676 * Makefile.in: Regenerate.
7677 * javax/swing/ImageIcon.java:
7678 (ImageIcon(file)): set description of the icon
7680 * javax/swing/JCheckBoxMenuItem.java:
7681 Mostly Implemented. Work in progress.
7682 * javax/swing/JRadioButtonMenuItem.java:
7683 Reimplement constructors to use JToggleButtonModel.
7684 * javax/swing/plaf/basic/BasicIconFactory.java:
7685 (getCheckBoxMenuItemIcon): return check box
7687 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7688 paint menu item selected only when it is armed and
7691 2004-04-02 David Jee <djee@redhat.com>
7693 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
7694 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
7695 * java/awt/Component.java
7696 (add): Set the parent of the popup as this component.
7697 * java/awt/PopupMenu.java
7698 (addNotify): Create popup menu when peer is null.
7699 (show): Call addNotify() if peer is null.
7700 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
7701 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
7702 argument for gtk_menu_popup() as zero. This causes the popup menu to
7703 respond to any mouse button.
7705 2004-03-31 Olga Rodimina <rodimina@redhat.com>
7707 * Makefile.am: Added new file.
7708 * Makefile.in: Regenerate.
7709 * javax/swing/JRadioButtonMenuItem.java:
7711 * javax/swing/plaf/basic/BasicIconFactory.java:
7712 (getRadioButtonMenuItemIcon): Return
7714 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7715 (getPreferredSize): Add size of checkIcon if it
7717 (installDefaults): Don't initialize checkIcon.
7718 It's value will be set in subclasses.
7719 (uninstallDefaults): remove uninstallation of
7721 (paint): Moved code to paintMenuItem().
7722 (paintMenuItem): Implemented.
7723 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
7724 UI delegate for JRadioButtonMenuItem.
7726 2004-03-29 Olga Rodimina <rodimina@redhat.com>
7728 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7729 Corrected position of the accelerator.
7731 2004-03-29 Olga Rodimina <rodimina@redhat.com>
7733 * Makefile.am: Added new file.
7734 * Makefile.in: Regenerate.
7735 * javax/swing/JMenuItem.java: Partly
7736 implemented. Work in progress
7737 * javax/swing/plaf/basic/BasicLookAndFeel.java:
7738 Changed default value of acceleratorDelimiter.
7739 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7740 New class. Partly implemented.
7742 2004-03-26 Mark Wielaard <mark@klomp.org>
7744 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
7745 (item_activate): Declare label before use.
7746 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7747 (gtkSetFont): Removed unused variable label.
7748 (addExposeFilter): Declare variables before use.
7749 (removeExposeFilter): Likewise.
7750 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
7751 (ok_clicked): Declare str_fileName before use.
7753 2004-03-26 David Jee <djee@redhat.com>
7755 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
7756 (addSeparator): Remove.
7757 * java/awt/Menu.java
7758 (separator): Remove static final MenuItem field.
7759 (separatorLabel): New static final String field.
7760 (addSeparator): Do not use peer method; use add(MenuItem) instead.
7761 Use separatorLabel to denote that it is a separator.
7762 (insertSeparator): Create a new MenuItem with separatorLabel, instead
7763 of reusing the static separator instance, because a MenuItem instance
7764 can't be added more than once without being cloned.
7765 * java/awt/peer/MenuPeer.java
7766 (addSeparator): Remove from interface.
7768 2004-03-26 David Jee <djee@redhat.com>
7770 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
7771 (connectSignals): New native method declaration.
7772 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
7773 * java/awt/MenuItem.java
7774 (getActionCommand): Return the label if the action command is not set.
7775 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
7776 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
7777 gtk_menu_shell_append().
7778 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
7779 (item_activate): Fix argument type.
7780 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
7782 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
7784 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
7785 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
7786 given. Add the menu widget's top-level GtkWindow to the global window
7787 group, so it can grab the pointer.
7788 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
7789 gtk_menu_shell_append().
7791 2004-03-23 Graydon Hoare <graydon@redhat.com>
7793 * java/text/AttributedString.java
7794 (addAttribute): Fix off-by-one.
7795 (getIterator): Likewise.
7796 * java/text/AttributedStringIterator.java
7797 (getRunLimit): Correct logic.
7798 (getRunStart): Likewise.
7799 (getAttribute): Fix inequality.
7800 (getAttributes): Likewise.
7801 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
7803 2004-03-23 Kim Ho <kho@redhat.com>
7805 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
7806 (calculateSizes): Return real width and height.
7808 2004-03-23 Kim Ho <kho@redhat.com>
7810 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
7811 (calculateTabRects): Set the selectedRun before
7812 trying to rotate tabs.
7814 2004-03-23 Kim Ho <kho@redhat.com>
7816 * Makefile.am: New file
7817 * Makefile.in: Regenerate
7818 * java/awt/Graphics.java: (drawRect):
7819 Draw to the correct point.
7820 * javax/swing/DefaultSingleSelectionModel.java
7821 (isSelected): Return true if the selected index
7823 * javax/swing/JLabel.java: Do not change mnemonic
7824 index if text is null.
7825 * javax/swing/JProgressBar.java: Use JComponent's
7827 * javax/swing/JScrollBar.java: Ditto.
7828 * javax/swing/JSlider.java: Ditto.
7829 * javax/swing/JTabbedPane.java: Reimplement.
7830 * javax/swing/plaf/basic/BasicLookAndFeel.java:
7831 Add defaults for TabbedPane.
7832 * javax/swing/plaf/basic/BasicArrowButton.java:
7834 * javax/swing/plaf/basic/BasicProgressBarUI.java:
7835 (paintDeterminate): Don't paint String if it's
7837 (paintIndeterminate): ditto.
7838 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
7841 2004-03-19 Michael Koch <konqueror@gmx.de>
7843 * java/awt/image/AffineTransformOp.java
7844 (AffineTransformOp): Made public.
7845 * javax/swing/JComponent.java
7846 (listenerList): Made protected.
7847 (accessibleContext): Likewise.
7848 * javax/swing/JList.java
7849 (valueChanged): Dont use internal fields of ListSelectionEvent.
7850 * javax/swing/JViewport.java
7851 (getView): Dont use internal fields of Component.
7852 (addImpl): Likewise.
7853 * javax/swing/Timer.java
7854 (isRunning): Made public.
7857 * javax/swing/UIDefaults.java
7858 (getInt): Made public.
7859 * javax/swing/plaf/basic/BasicListUI.java
7860 (mousePressed): Dont use internal fields of MouseEvent.
7861 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
7862 * javax/swing/plaf/basic/BasicScrollBarUI.java
7863 (arrowIcon): Made static.
7864 * javax/swing/plaf/basic/BasicViewportUI.java
7865 (stateChanged): Dont use internal field on ChangeEvent.
7866 * javax/swing/text/JTextComponent.java
7867 (getUI): Call UIManager.getUI().
7868 (updateUI): Use getUI().
7870 2004-03-19 Graydon Hoare <graydon@redhat.com>
7872 * javax/swing/JComponent.java: Turn off double buffer by default.
7873 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
7874 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
7875 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
7876 Use cairo to copy areas.
7877 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
7878 Initialize and set clip region.
7880 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
7882 * java/applet/Applet.java (preferredSize): Override deprecated
7883 variant of getPreferredSize.
7884 (minimumSize): Override deprecated variant of getMinimumSize.
7886 2004-03-15 Olga Rodimina <rodimina@redhat.com>
7888 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
7889 (drawImage(img,xform,bgcolor,obs)): New Method.
7890 Helper function that every drawImage method will
7892 (drawRaster): Added new parameter, bgcolor. All
7893 transparent pixels are changed to bgcolor before
7895 (drawRenderedImage): Fixed to use changed drawRaster().
7896 (drawImage(image,xform,obs): Fixed to use new helper function
7897 (drawImage(image,op,x,y)): Ditto.
7898 (drawImage (img,x,y,observer)): Ditto.
7899 ((PainterThread) bgcolor): New Field.
7900 ((PainterThread) (setPixels)): Changed all transparent pixels
7902 (drawImage(img,x,y,width,height,bgcolor,observer)):
7903 Fixed FIXME - all the transparent pixels are
7904 changed to the specified bgcolor.
7905 (drawImage(img, x, y, width, height, observer): Changed to
7907 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
7908 Fixed FIXME- changed all transparent pixels to bgcolor.
7909 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
7910 Changed to use function above.
7912 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
7914 * java/applet/Applet.java (dimensions): New field.
7915 (getDimensions): New method.
7916 (getPreferredSize): Call getDimensions.
7917 (getMinimumSize): Likewise.
7919 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
7921 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
7922 * jni/classpath/jnilink.c: Likewise.
7924 * java/applet/Applet.java (getPreferredSize): New method.
7925 (getMinimumSize): New method.
7927 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
7929 * prims.cc (_Jv_AllocObject): Remove `size' argument.
7930 (_Jv_AllocObjectNoFinalizer): Likewise.
7931 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
7932 (_Jv_AllocPtrFreeObject): Likewise.
7933 (_Jv_AllocString): Moved from natString.cc. Call collector interface
7934 directly even in the JVMPI case.
7935 * gcj/cni.h (JvAllocObject): Remove `size' argument from
7936 _Jv_AllocObject calls.
7937 * gcj/javaprims.h: Update prototypes.
7938 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
7939 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
7940 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
7942 2004-04-14 Andrew Haley <aph@redhat.com>
7943 Bryce McKinlay <mckinlay@redhat.com>
7945 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
7946 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
7947 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
7949 * testsuite/libjava.lang/InvokeInterface.java: New file.
7950 * testsuite/libjava.lang/InvokeInterface.out: New file.
7952 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
7954 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
7956 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
7957 StackTraceElement directly.
7958 (newElement): New native helper method to create StackTraceElement
7959 bypassing Java access control.
7960 (createStackTraceElement): Use newElement() instead of directly
7961 calling StackTraceElement's constructor.
7962 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
7964 2004-04-01 Michael Koch <konqueror@gmx.de>
7966 * java/lang/SecurityManager.java
7967 (checkAwtEventQueueAccess): Implemented.
7969 2004-04-01 Gary Benson <gbenson@redhat.com>
7971 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
7972 (_Jv_SearchMethodInClass): Likewise.
7974 2004-03-26 Peter Moon <peterm@miraculum.com>
7976 * java/text/NumberFormat.java: Fix spelling of setCurrency
7979 2004-03-21 Anthony Green <green@redhat.com>
7981 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
7982 recursion when searching for the system ClassLoader.
7984 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
7986 * java/net/ServerSocket.java
7987 (accept): Close the socket when error occured.
7989 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
7991 * java/net/URI.java (parseURI): Added unquoting.
7992 (unquote): New method.
7993 (quoteAuthority): Implemented.
7994 (quote(String,String)): New method.
7995 (quotePath): Implemented.
7996 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
7997 (getSchemeSpecificPart): Removed FIXME comment.
7998 (getRawAuthority): Return new rawAuthority field.
7999 (getAuthority): Removed FIXME comment.
8000 (getRawUserInfo): Return new rawUserInfo field.
8001 (getUserInfo): Removed FIXME comment.
8002 (getRawPath): Return new rawPath field.
8003 (getPath): Removed FIXME comment.
8004 (getRawQuery): Return new rawQuery field.
8005 (getQuery): Removed FIXME comment.
8006 (getRawFragment): Return new rawFragment field.
8007 (getFragment): Removed FIXME comment.
8009 2004-03-20 Michael Koch <konqueror@gmx.de>
8011 * java/net/URLConnection.java: Merged copyright year with classpath.
8013 2004-03-20 Norbert Frese <postfach@nfrese.net>
8015 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
8016 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
8017 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
8019 (getObjectInputStream): Return object reference, throw IOException if null.
8020 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
8021 (getObjectOutputStream): Return object reference, throw IOException if null.
8022 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
8023 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
8024 (UnicastConnectionManager): Throw RemoteException if port is not available.
8025 (getInstance): Throw RemoteException.
8026 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
8027 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
8028 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8029 Collect Exceptions which are returned by a rmi-call and fix void returns.
8030 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
8031 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8032 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
8033 (dispatch): Answer ping messages which are sent by other java implementions.
8034 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
8035 for every rmi-message and fix void return problems.
8036 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
8037 (UnicastServerRef): Throw RemoteException.
8038 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
8039 In some situations it is necessary to export a subclass of the class which has the _Stub.
8040 For instance when the class with has the _Stub is abstract.
8041 (findStubSkelClass): New method which looks for the class which has the _Stub.
8042 (getClientHost): Implementated.
8043 * gcc/libjava/java/rmi/server/RemoteServer.java
8044 (getClientHost): Implementated.
8045 * gcc/libjava/Makefile.am (rmi_java_source_files):
8046 Added gnu/java/rmi/server/RMIIncomingThread.java.
8047 * Makefile.in: Regenerated.
8049 2004-03-20 Michael Koch <konqueror@gmx.de>
8051 * java/net/InetAddress.java
8052 (getLocalHostname): Added javadoc.
8054 2004-03-19 Per Bothner <per@bothner.com>
8056 * configure.in: FILE variable overrides FLATFORM when linking
8057 natFileChannelXXX.cc.
8059 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
8060 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
8062 2004-03-19 Per Bothner <per@bothner.com>
8064 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
8065 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
8066 * Makefile.am: Update accordingly.
8067 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
8068 as aliases for UnicodeLittle and UnicodeBig.
8070 2004-03-20 Mark Wielaard <mark@klomp.org>
8072 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8073 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
8074 Don't access ws when it is null.
8075 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
8078 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
8080 * java/lang/ThreadGroup.java (list): Changed print to println.
8082 2004-03-19 Mark Wielaard <mark@klomp.org>
8084 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
8087 2004-02-10 Randolph Chung <tausq@debian.org>
8089 * configure.in: Build java for hppa target.
8090 * configure: Regenerate.
8091 * libjava/configure.host (hppa-*): Add target.
8092 * libjava/sysdeps/pa/lock.h: New file.
8094 2004-03-19 Mark Wielaard <mark@klomp.org>
8096 Reported by Stephen Crawley
8097 * java/io/FilePermission.java (implies): Use String.length() -1 to
8098 access last char of String.
8100 2004-03-19 Michael Koch <konqueror@gmx.de>
8102 * java/awt/image/AffineTransformOp.java
8103 (AffineTransformOp): Made public.
8104 * javax/swing/JComponent.java
8105 (listenerList): Made protected.
8106 (accessibleContext): Likewise.
8107 * javax/swing/JList.java
8108 (valueChanged): Dont use internal fields of ListSelectionEvent.
8109 * javax/swing/JViewport.java
8110 (getView): Dont use internal fields of Component.
8111 (addImpl): Likewise.
8112 * javax/swing/Timer.java
8113 (isRunning): Made public.
8116 * javax/swing/UIDefaults.java
8117 (getInt): Made public.
8118 * javax/swing/plaf/basic/BasicListUI.java
8119 (mousePressed): Dont use internal fields of MouseEvent.
8120 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
8121 * javax/swing/plaf/basic/BasicScrollBarUI.java
8122 (arrowIcon): Made static.
8123 * javax/swing/plaf/basic/BasicViewportUI.java
8124 (stateChanged): Dont use internal field on ChangeEvent.
8125 * javax/swing/text/JTextComponent.java
8126 (getUI): Call UIManager.getUI().
8127 (updateUI): Use getUI().
8129 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8131 * verify.cc: Undef PC.
8133 2004-03-18 Michael Koch <konqueror@gmx.de>
8135 * java/nio/channels/spi/AbstractSelectableChannel.java
8136 (keys): Initialize at declaration.
8137 (locate): keys cant be null.
8139 (addSelectionKey): New method.
8140 (removeSelectionKey): New method.
8141 * java/nio/channels/spi/AbstractSelectionKey.java
8142 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
8143 * java/nio/channels/spi/AbstractSelector.java
8144 (provider): Javadoc added.
8145 (cancelledKeys): Javadoc added.
8146 (cancelKey): Javadoc added, add key to cancelledKeys.
8147 (deregister): Implemented.
8149 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8151 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
8152 MAP_FAILED to void *.
8154 2004-03-12 Graydon Hoare <graydon@redhat.com>
8156 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
8157 * javax/swing/JComponent.java (paint): Use persistent double buffer.
8158 * javax/swing/JList.java (ListListener): Revalidate on changes.
8159 * javax/swing/JScrollPane.java: Reimplement.
8160 * javax/swing/JViewport.java: Reimplement.
8161 * javax/swing/ScrollPaneLayout.java: Reimplement.
8162 * javax/swing/ViewportLayout.java: Tidy up.
8163 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
8164 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
8165 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
8166 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
8169 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
8171 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8172 (window_wm_protocols_filter): New function.
8173 (window_focus_in_cb): Remove function.
8174 (window_focus_out_cb): Likewise.
8175 (window_focus_or_active_state_change_cb): New function.
8176 (create): Add filter that removes WM_TAKE_FOCUS client messages.
8177 (connectSignals): Don't attach handlers to focus-in-event or
8178 focus-out-event signals. Handle notify signal.
8180 2004-03-11 David Jee <djee@redhat.com>
8182 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8183 (gtkSetLabel): New native method declaration.
8184 (setLabel): Use gtkSetLabel.
8185 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8186 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
8188 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
8190 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
8191 black when color argument is null.
8193 2004-03-10 Kim Ho <kho@redhat.com>
8195 * java/awt/Container.java: Remove check
8198 2004-03-10 Kim Ho <kho@redhat.com>
8200 * java/awt/Container.java: (visitChild):
8201 Remove candidate clip. Use the component
8203 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8204 (handleEvent): Use the PaintEvent's clip.
8206 2004-03-10 Kim Ho <kho@redhat.com>
8208 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8209 (handleEvent): Don't set the clip for the
8212 2004-03-09 Graydon Hoare <graydon@redhat.com>
8214 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
8215 Fix double <-> fixed macros, reset font transform.
8216 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
8219 2004-03-09Â Kim Ho <kho@redhat.com>
8221 * java/awt/Container.java: (visitChild): Move
8222 the x and y coordinate of the component rectangle
8223 to correct position.
8224 (handleEvent): Forward drag events to the pressed
8226 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8228 (ArrowButtonListener::mousePressed): Stop the
8230 (mouseDragged): Implement.
8231 (TrackListener::mousePressed): Only react if
8232 the press doesn't occur on the thumb, otherwise
8233 just set the offset.
8234 (TrackListener::mouseReleased): Unset the isAdjusting
8236 (createIncreaseIcon): Switch icon.
8237 (createDecreaseIcon): Switch icon.
8238 (calculatePreferredSize): Use width.
8239 (getThumbBounds): Use the top as the lower value.
8240 (layoutVScrollBar): Switch the button locations.
8241 (paintIncreaseHighlight): Paint correct side of thumb.
8242 (paintDecreaseHighlight): ditto.
8243 (valueForYPosition): Use top as the lower value.
8244 * javax/swing/plaf/basic/BasicSliderUI.java:
8246 (mouseDragged): Implement.
8247 (mousePressed): Only react when the thumb isn't
8248 pressed, otherwise just set offset.
8249 (mouseReleased): Handle a release of the thumb.
8250 (scrollDueToClickInTrack): Stop the timer first.
8251 * javax/swing/JProgressBar.java:
8252 (setString): Fix change condition.
8253 * javax/swing/JSeparator.java:
8256 2004-03-08 David Jee <djee@redhat.com>
8258 * java/awt/image/AffineTransformOp.java:
8259 (filter): Use Graphics2D interface instead of directly using the
8262 2004-03-05 David Jee <djee@redhat.com>
8264 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
8265 (handleEvent): Action events are generated upon MOUSE_RELEASED.
8266 * java/awt/Container.java
8267 (acquireComponentForMouseEvent): Fixed.
8268 (handleEvent): Fixed.
8269 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8270 (state_to_awt_mods_with_button_states): New method.
8271 (pre_event_handler): Fixed mouse event generation.
8273 2004-03-05 Olga Rodimina <rodimina@redhat.com>
8275 gnu/java/awt/peer/gtk/GdkGraphics2D.java
8276 (GdkGraphics2D (BufferedImage)): Initialize
8277 pixmap associated with specified BufferedImage.
8278 (setPaint): Changed implementation of Texture
8279 Paint to use AffineTransformOp.
8280 * java/awt/image/AffineTransformOp.java
8281 (createCompatibleDestRaster): Throw RasterFormatException
8282 if resulting width or height of raster is 0.
8284 2004-03-04 Olga Rodimina <rodimina@redhat.com>
8286 * java/awt/image/AffineTransformOp.java:
8287 Removed unnecessary field interpolationType.
8288 Formatted some of the lines to be consistent with
8290 (AffineTransformOp): Create new RenderingHints
8291 containing specified interpolation type.
8292 (createCompatibleDestImage): Implemented.
8293 (createCompatibleDestRaster): Implemented.
8294 (filter): Implemented.
8295 (getBounds2D(BufferedImage)): Implemented.
8296 (getBounds2D(Raster)): Implemented.
8297 (getInterpolationType): Get interpolation value from
8300 2004-03-04 David Jee <djee@redhat.com>
8302 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8303 (setFont): Check if child peers are null.
8305 2004-03-04 Graydon Hoare <graydon@redhat.com>
8307 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
8309 (libjava_arguments): Add new libraries to argument list.
8311 2004-03-02 Olga Rodimina <rodimina@redhat.com>
8313 * Makefile.am: Added java/awt/image/AffineTransformOp.java
8314 * Makefile.in: Re-generated.
8315 * java/awt/image/AffineTransformOp.java: New Class.
8317 2004-03-01 Olga Rodimina <rodimina@redhat.com>
8319 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8320 (setPaint): Interpret correctly TexturePaint's
8322 (drawImage): Fixed scale factors of the affine
8325 2004-02-27 David Jee <djee@redhat.com>
8327 * gnu/java/awt/peer/gtk/GdkGraphics.java
8328 (GdkGraphics(Component)): Inherit font from component.
8329 (drawString): Use font style.
8330 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8331 (gtkSetFont): New native method declaration.
8332 (setFont): New method.
8333 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8334 (gtkSetFont): New native method declaration.
8335 (setFont): Call new native method gtkSetFont.
8336 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8337 (setFont): For all child components who do not their fonts set,
8338 set their peers' fonts with this container's font.
8339 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
8340 Move all native method declarations to the top for readability.
8341 (gtkSetFont): New native method declaration.
8342 (setFont): New method.
8343 * java/awt/Component.java
8344 (setFont): Invalidate after setting the font.
8345 * java/awt/Container.java
8346 (invalidateTree): New method.
8347 (setFont): Invalidate the container tree after setting the font.
8348 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
8349 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
8350 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8351 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
8352 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8353 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
8354 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
8355 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
8357 2004-02-27 Olga Rodimina <rodimina@redhat.com>
8359 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8360 (updateBufferedImage): New helper function.
8361 Updates BufferedImage in memory if it was changed.
8362 (draw): changed to update BufferedImage in memory after
8363 this drawing operation
8365 (draw3DRect): Ditto.
8366 (fill3DRect): Ditto.
8368 (drawRaster): Ditto.
8369 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
8370 no affine transformation.
8371 (drawGlyphVector): Ditto.
8373 2004-02-26 Olga Rodimina <rodimina@redhat.com>
8375 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8376 (isBufferedImageGraphics): New Helper function.
8377 Returns true if this graphics2d can be used to draw
8378 into buffered image and false otherwise.
8379 (updateImagePixels): New Helper function.
8380 Updates pixels in the BufferedImage.
8381 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8382 (getImagePixels): New function. Returns pixels
8383 of the buffered image associated with
8386 2004-02-26 David Jee <djee@redhat.com>
8388 * java/awt/BorderLayout.java
8389 (layoutContainer): Fix width and height calculations to ensure
8390 that they're non-negative.
8391 * java/awt/Component.java
8392 (setBackground): If c is null, inherit from closest ancestor whose
8393 background color is set.
8395 2004-02-26 Kim Ho <kho@redhat.com>
8397 * Makefile.am: Add new files.
8398 * Makefile.in: Re-generate.
8399 * javax/swing/JProgressBar.java:
8400 (JProgressBar(int, int int)): Throw
8401 IllegalArgumentException if orientation is
8403 (JProgressBar(BoundedRangeModel)): Create
8404 ChangeListener and register it. UpdateUI.
8405 (getChangeListeners): Implement.
8406 (setModel): Reset ChangeListener.
8407 * javax/swing/JScrollBar.java: Implement.
8408 * javax/swing/JSeparator.java: Implement.
8409 * javax/swing/JSlider.java:
8410 (JSlider(int, int, int, int)): Throw
8411 IllegalArgumentException if orientation
8413 (getChangeListeners): Fix method name.
8414 * javax/swing/SwingUtilities.java:
8415 (layoutCompoundLabel): If there is no text,
8416 set the text rectangle dimensions to 0.
8417 * javax/swing/plaf/basic/BasicButtonUI.java:
8418 (paint): If there is no text, don't paint it.
8419 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8421 * javax/swing/plaf/basic/BasicSeparatorUI.java:
8423 * javax/swing/plaf/basic/BasicSliderUI.java:
8424 (propertyChange): If the model changes, change
8425 the listeners accordingly.
8427 2004-02-25 Graydon Hoare <graydon@redhat.com>
8429 * javax/swing/AbstractButton.java: Add "final" qualifiers.
8430 * javax/swing/JList.java: Reimplement.
8431 * javax/swing/DefaultListSelectionModel.java: Reimplement.
8432 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
8433 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
8434 * javax/swing/ListModel.java: Javadoc.
8435 * javax/swing/ListSelectionModel.java: Add missing methods.
8436 * javax/swing/AbstractListModel.java: Javadoc and corrections.
8437 * javax/swing/DefaultListModel.java: Javadoc and corrections.
8438 * javax/swing/ListModel.java: Javadoc and corrections.
8439 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
8441 2004-02-25 David Jee <djee@redhat.com>
8443 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8444 (GtkFontPeer): Change default size to 12.
8445 * gnu/java/awt/peer/gtk/GtkToolkit.java
8446 (getFontPeer): Change default size to 12.
8447 (getClasspathFontPeer): Likewise. Set default name to "Default".
8448 * java/awt/Font.java
8449 (Font(Map)): Call Font(String,Map).
8450 (Font(String,Map)): If attrs is null, initialize it as an empty
8451 HashMap, which will ensure that the Font will get default attributes.
8453 2004-02-25 David Jee <djee@redhat.com>
8455 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8456 (GtkFontPeer(String,int)): Call the new constructor with size 1.
8457 (GtkFontPeer(String,int,int)): New constructor with size attribute.
8458 * gnu/java/awt/peer/gtk/GtkToolkit.java
8459 (getFontPeer(String,int)): Call the new overload method with size 1.
8460 (getFontPeer(String,int,int)): New method. Overloaded with size
8462 (getClasspathFontPeer): Set the size of the font.
8464 2004-02-24 Olga Rodimina <rodimina@redhat.com>
8466 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8467 (bimage): New field.
8468 (GdkGraphics2D): New Constructor. Constructs Graphics
8469 object that can be used to draw into the Buffered Image.
8470 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8471 (GdkGraphicsEnvironment): Fixed to include public
8473 (createGraphics): Implemented.
8474 * gnu/java/awt/peer/gtk/GtkToolkit.java
8475 (getLocalGraphicsEnvironment): Implemented.
8476 * java/awt/GraphicsEnvironment.java:
8477 (getLocalGraphicsEnvironment): Implemented.
8478 * java/awt/image/BufferedImage.java:
8479 (createGraphics): Implemented.
8481 2004-02-24 David Jee <djee@redhat.com>
8483 * java/awt/Component.java
8484 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
8485 * java/awt/Container.java
8486 (addNotifyContainerChildren): Fix event enabling.
8488 2004-02-23 Olga Rodimina <rodimina@redhat.com>
8490 * Makefile.am: Added
8491 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
8492 * Makefile.in: Re-generated.
8493 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8496 2004-02-19 Kim Ho <kho@redhat.com>
8498 * Makefile.am: Add BasicProgressBarUI
8499 * Makefile.in: Regenerate.
8500 * javax/swing/JProgressBar.java:
8502 * javax/swing/plaf/basic/BasicLookAndFeel.java
8503 Add constants for JProgressBar.
8504 * javax/swing/plaf/basic/BasicProgressBarUI.java
8506 * javax/swing/plaf/basic/BasicSliderUI.java
8508 (calculateGeometry): New method
8509 (paint): Remove unnecessary size calculations.
8511 2004-02-18 Olga Rodimina <rodimina@redhat.com>
8513 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8514 (drawRaster): Fixed small error that caused
8515 imageToUser transformation to be set incorrectly.
8516 (toString): Implemented.
8518 2004-02-18 David Jee <djee@redhat.com>
8520 * java/awt/CardLayout.java
8521 (addLayoutComponent): Show the first component added as the default.
8522 (removeLayoutComponent): After removing, show the next component.
8523 (gotoComponent): If there is only one component, show it and return.
8525 2004-02-18 Kim Ho <kho@redhat.com>
8527 * javax/swing/JSlider.java: Re-order
8529 * javax/swing/JLabel.java: Re-order
8531 * javax/swing/JComponent.java:
8532 (addPropertyChangeListener):
8534 (removePropertyChangeListener):
8536 (firePropertyChangeEvent):
8539 2004-02-17 David Jee <djee@redhat.com>
8541 * java/awt/Component.java
8542 (show): Dispatch ComponentEvent via system event queue.
8546 (reshape): Likewise.
8547 * java/awt/Window.java
8548 (setBoundsCallback): Likewise.
8550 2004-02-17 David Jee <djee@redhat.com>
8552 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8553 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
8554 Use gtk_widget_set_size_request() instead of the deprecated
8555 gtk_widget_set_usize().
8557 2004-02-17 Kim Ho <kho@redhat.com>
8559 * javax/swing/JSlider.java: Fix comments and
8560 make property strings constants.
8561 (createStandardLabels): Use the labels
8562 preferred size as bounds.
8563 * javax/swing/plaf/basic/BasicSliderUI.java
8565 (ScrollHandler::actionPerformed): Don't
8566 calculate the timer stop value. Let the
8567 MouseListeners find the stop location.
8568 (getPreferredHorizontalSize): Re-implement.
8569 (getPreferredVerticalSize): ditto.
8570 (getMinimumHorizontalSize): ditto.
8571 (getMinimumVerticalSize): ditto.
8572 (getPreferredSize): ditto.
8573 (getMinimumSize): ditto.
8574 (getMaximumSize): ditto.
8575 (paintTicks): Use doubles to find the
8577 (paintHorizontalLabel):Â Use preferredSize
8578 as initial width and height.
8579 (paintVerticalLabel): ditto.
8581 2004-02-17 Kim Ho <kho@redhat.com>
8583 * javax/swing/JLabel.java: Changed
8584 property strings to constants.
8585 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
8587 (setText): Change mnemonic index if
8589 (setDisplayedMnemonicIndex): Fire property
8591 (getDisplayedMnemonicIndex): Remove check
8594 2004-02-17 Olga Rodimina <rodimina@redhat.com>
8596 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8597 (drawImage(img,xform,obs)): Invert xform before
8598 passing the xform to cairo.
8599 (drawImage(img,x,y,bgcolor,obs)): Implemented.
8600 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
8602 (drawImage (img,x,y,w,h,obs)): Implemented.
8603 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
8604 bgcolor,obs)): Partly implemented.
8605 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
8607 * java/awt/image/BufferedImage.java:
8608 (copyData): if dest is null, create raster with same
8609 dimensions as the current image.
8611 2004-02-16 Graydon Hoare <graydon@redhat.com>
8613 * javax/swing/plaf/basic/BasicLabelUI.java
8614 (getPreferredSize): Use layoutCL.
8615 * javax/swing/plaf/basic/BasicGraphicsUtils.java
8616 (getPreferredButtonSize): Start with empty view rect, layout using
8617 component's preferred alignment.
8618 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
8621 2004-02-16 David Jee <djee@redhat.com>
8623 * java/awt/Component.java
8624 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
8625 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
8626 (move): Erase old bounds and repaint new bounds. Dispatch
8627 COMPONENT_MOVED ComponentEvent.
8628 (resize): Erase old bounds and repaint new bounds. Dispatch
8629 COMPONENT_RESIZED ComponentEvent.
8630 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8632 * java/awt/Window.java
8633 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8636 2004-02-16 Olga Rodimina <rodimina@redhat.com>
8638 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8639 (setRenderingHint): Added implementation of
8640 Interpolation rendering hints.
8641 (setRenderingHints): Ditto.
8642 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
8643 (drawPixels): fixed to allow user to choose type
8644 of filtering that should be used when displaying images.
8645 (cairoSurfaceSetFilter): New method. Sets filter type for
8646 interpolation of pixel values.
8648 2004-02-16 David Jee <djee@redhat.com>
8650 * java/awt/GridBagLayout.java
8651 (calcCellSizes): Rows or columns with zero sizes should still be
8652 considered for extra space distribution.
8654 2004-02-16 Kim Ho <kho@redhat.com>
8656 * javax/swing/JLabel.java: Re-implement.
8657 * javax/swing/plaf/basic/BasicLabelUI.java
8659 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8662 2004-02-16 Kim Ho <kho@redhat.com>
8664 * javax/swing/JSlider.java: Fix indentation and comments.
8665 (setModel): Remove null check to conform with Sun's.
8666 (setOrientation): Throw exception if not
8667 HORIZONTAL or VERTICAL.
8668 (getInverted): Use private variable instead of
8669 ComponentOrientation.
8670 (setInverted): ditto.
8671 * javax/swing/plaf/basic/BasicSliderUI.java:
8672 Fix indentation and comments.
8673 (propertyChange): Remove check for inverted slider, handle
8675 (getMinimumSize): Return preferred size.
8676 (getMaximumSize): ditto.
8677 (calculateFocusRect): Don't relocate rectangle.
8678 (drawInverted): Return XOR of the slider's inversion and
8679 the component's orientation.
8680 (paint): Update leftToRightCache
8682 2004-02-13 David Jee <djee@redhat.com>
8684 * java/awt/GridBagLayout.java
8685 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
8686 code to helper methods.
8687 (sortBySpan): New helper method.
8688 (distributeSizeAndWeight): Likewise.
8689 (calcCellWeights): Likewise.
8690 (calcCellSizes): Add comments.
8692 2004-02-13 David Jee <djee@redhat.com>
8694 * java/awt/Component.java
8695 (show): Only do something if component is invisible at the moment.
8696 (hide): Only do something if component is visible at the moment.
8697 (reshape): If lightweight, erase old bounds and repaint new bounds.
8699 2004-02-13 Kim Ho <kho@redhat.com>
8701 * Makefile.am: Updated for new file.
8702 * Makefile.in: Regenerated.
8703 * javax/swing/JSlider.java: Reimplement.
8704 * javax/swing/SwingUtilities.java
8705 (layoutCompoundLabel): Use icon height
8707 (paintComponent): Implement.
8708 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8709 Add JSlider defaults.
8710 * javax/swing/plaf/basic/BasicSliderUI.java:
8711 Implement. New file.
8713 2004-03-17 Michael Koch <konqueror@gmx.de>
8715 * gnu/java/net/PlainDatagramSocketImpl.java
8716 (RECEIVE_LOCK): New member field.
8717 (SEND_LOCK): New member field.
8718 (send0): New method.
8719 (send): Synchronize on SEND_LOCK.
8720 (receive0): New method.
8721 (receive): Synchronize on RECEIVE_LOCK.
8722 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
8723 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
8724 gnu/java/net/natPlainDatagramSocketImplWin32.cc
8725 (send0): Renamed from send.
8726 (receive0): Renamed from receive.
8727 2004-03-17 Michael Koch <konqueror@gmx.de>
8729 * gnu/java/net/natPlainSocketImplPosix.cc
8730 (write): Just call write(jbyteArray, offset, len).
8731 (read): Just call read(jbyteArray, offset, len).
8733 2004-03-16 Michael Koch <konqueror@gmx.de>
8735 * javax/swing/JTabbedPane.java
8736 (serialVersionUID): New field.
8738 2004-03-16 Norbert Frese <postfach@nfrese.net>
8740 * java/net/InetAddress.java
8741 (getByName): Handle hostname == "" case.
8743 2004-03-16 Dalibor Topic <robilad@kaffe.org>
8745 Reported by: Adam Heath <doogie@debian.org>
8746 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
8749 2004-03-15 Michael Koch <konqueror@gmx.de>
8751 * java/util/Locale.java: Reverting my last patch
8752 and add a comment why the original version was okay.
8754 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
8756 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
8757 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
8758 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
8759 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
8761 2004-03-12 Michael Koch <konqueror@gmx.de>
8763 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
8765 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
8767 * java/net/URI.java (toURL): Implemented.
8769 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
8772 (URI_REGEXP) updated to contain scheme specific part.
8773 (SCHEME_SPEC_PART_GROUP) new constant.
8774 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
8775 updated to make room for SCHEME_SPEC_PART_GROUP.
8776 (parseURI) parse scheme specific part.
8777 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
8778 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
8779 getQuery, getFragment) implemented.
8781 2004-03-12 Dalibor Topic <robilad@kaffe.org>
8783 * libraries/javalib/java/net/URI.java
8784 partially implemented using java.util.regex.
8785 (URI_REGEXP) new constant. Used to parse URIs.
8786 (SCHEME_GROUP) new constant representing index of scheme group
8788 (AUTHORITY_GROUP) new constant representing index of authority
8789 group in parsed URI.
8790 (PATH_GROUP) new constant representing index of path group in
8792 (QUERY_GROUP) new constant representing index of query group in
8794 (FRAGMENT_GROUP) new constant representing index of fragment
8795 group in parsed URI.
8796 (getURIGroup) new static utility method.
8797 (parseURI) implemented.
8798 (quote) stub for new static utility method.
8799 (quoteAuthority) stub for new static utility method.
8800 (quoteHost) stub for new static utility method.
8801 (quotePath) stub for new static utility method.
8802 (quoteUserInfo) stub for new static utility method.
8804 (create) don't throw URISyntaxException. Implemented.
8805 (toString) implemented.
8807 2004-03-12 Michael Koch <konqueror@gmx.de>
8809 * java/net/HttpURLConnection.java
8810 (getResponseCode): Fix another typo in javadoc.
8812 2004-03-11 Michael Koch <konqueror@gmx.de>
8814 * java/util/logging/Level.java
8815 (parse): Use String.equals() instead of ==.
8817 2004-03-11 Michael Koch <konqueror@gmx.de>
8819 * gnu/java/net/protocol/jar/Connection.java
8820 (getContentLength): New method.
8822 2004-03-11 Michael Koch <konqueror@gmx.de>
8824 * gnu/java/net/PlainSocketImpl.java:
8825 Reformated to merge better with classpath's version.
8827 2004-03-11 Michael Koch <konqueror@gmx.de>
8829 * java/util/Locale.java
8830 (getISO3Language): Use String.equals() instead of ==.
8831 (getISO3Country): Likewise.
8833 2004-03-11 Dalibor Topic <robilad@kaffe.org>
8835 * java/text/AttributedString.java
8836 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
8837 Use HashMap instead of Hashtable since value can be null, and
8838 you can not store a null value in a Hashtable.
8840 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
8842 * java/text/AttributedStringIterator.java
8843 (getAllAttributesKey): Return only keys concerned
8844 by the current iterator.
8845 (getAttributes): Use strict inequality for
8848 2004-03-11 Michael Koch <konqueror@gmx.de>
8850 * java/net/HttpURLConnection.java:
8851 Fixed typo in javadoc.
8853 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
8855 * java/io/BufferedInputStream.java (marktarget): New field for max
8857 (CHUNKSIZE): New constant for incremental mark buffer allocation.
8858 (mark): Use new fields.
8860 (read(byte[],int,int)): Likewise.
8864 2004-03-11 Mark Wielaard <mark@klomp.org>
8866 * java/beans/BeanDescriptor.java (BeanDescriptor):
8867 Set the FeatureDescriptor programmatic name.
8869 2004-03-11 Michael Koch <konqueror@gmx.de>
8871 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
8872 This file was was just copied form java/io/natFileDescriptorEcos.cc
8873 and never changed to compile correctly.
8875 2004-03-11 Michael Koch <konqueror@gmx.de>
8877 * gnu/java/nio/PipeImpl.java
8878 (SourceChannelImpl): Made final.
8879 (read): Implemented.
8880 (SinkChannelImpl): Made final.
8881 (write): Implemented.
8883 2004-03-11 Michael Koch <konqueror@gmx.de>
8885 * gnu/java/net/PlainDatagramSocketImpl.java:
8886 Reformated to match classpath's version more.
8888 2004-03-11 Michael Koch <konqueror@gmx.de>
8890 * gnu/java/awt/peer/ClasspathFontPeer.java:
8891 Fixed javadoc to be correct xhtml.
8892 * gnu/java/awt/peer/gtk/GtkArgList.java
8893 (add): Use Boolean.valueOf() instead of new Boolean().
8895 2004-03-09 Michael Koch <konqueror@gmx.de>
8897 * java/lang/Thread.java
8898 (runnable): Moved around.
8899 (daemon): Renamed from daemon_flag.
8900 (contextClassLoader): Renamed from context_class_loader.
8901 (Thread): Reordered constructors.
8902 (activeCount): Use group directly.
8903 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
8904 (holdsLock): Reworked javadoc.
8905 (setDaemon): Reworked.
8906 * java/lang/natThread.cc
8909 2004-03-08 Anthony Green <green@redhat.com>
8911 * Makefile.am: Build property resource files into libgcj.
8912 * Makefile.in: Rebuilt.
8913 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
8914 java/util/regex/PatternSyntaxException.java,
8915 gnu/regexp/CharIndexed.java,
8916 gnu/regexp/CharIndexedCharArray.java,
8917 gnu/regexp/CharIndexedInputStream.java,
8918 gnu/regexp/CharIndexedReader.java,
8919 gnu/regexp/CharIndexedString.java,
8920 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
8921 gnu/regexp/REException.java,
8922 gnu/regexp/REFilterInputStream.java,
8923 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
8924 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
8925 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
8926 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
8927 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
8928 gnu/regexp/RETokenLookAhead.java,
8929 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
8930 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
8931 gnu/regexp/RETokenStart.java,
8932 gnu/regexp/RETokenWordBoundary.java,
8933 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
8935 2004-03-03 Per Bothner <per@bothner.com>
8937 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
8938 Optimize when argument is a FileChannelImpl.
8939 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
8941 * java/nio/channels/natChannels.cc: New file for new native methods.
8942 * Makefile.am: Update accordingly.
8944 2004-03-02 Jan Hubicka <jh@suse.cz>
8946 * configure.host: Pass -fno-omit-frame-pointer for i386.
8947 * configure.in: Likewise.
8948 * configure: Regenerate.
8950 2004-03-01 Per Bothner <per@bothner.com>
8952 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
8954 2004-02-29 Per Bothner <per@bothner.com>
8956 * java/nio/channels/FileChannelImpl.java: Moved to package
8957 gnu/java/nio/channels, since we need to refer to it from java.io.
8958 * java/nio/channels/natFileChannelImpl.cc: Removed file.
8959 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
8960 from java/nio/channels. Don't depend on FileDescriptor.
8961 (in, out, err): New static fields.
8963 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
8964 from FileDescriptor.
8965 (by): Removed MappedByteBuffer field.
8966 (map): New working implementation.
8967 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
8968 some code "ported" from natFileDescriptoPosix.cc.
8969 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
8970 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
8971 * java/io/FileDescriptor.java: Implement on top of FileChannel.
8972 Remove native methods.
8973 * Makefile.am, configure.in: Updated accordingly.
8975 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
8976 (ch): New FileChannelImpl field. Update constructor to match.
8977 (releaseImpl): Remove native method. Instead ...
8978 (release): Call unlock on channel.
8979 * gnu/java/nio/natFileLockImpl.cc: Removed file.
8981 * java/io/natFileDescriptorEcos.cc: Remove file.
8982 * java/io/natFileDescriptorPosix.cc: Remove file.
8983 * java/io/natFileDescriptorWin32.cc: Remove file.
8984 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
8985 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
8986 (<init>(FileChannelImpl)): New package-private constructor.
8987 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
8988 (available, close, read, skip): Implement using FileChannelImpl.
8989 (getFD): Allocate FileDescriptor if needed.
8990 (getChannel): Is now trivial.
8991 * java/io/FileOutputStream.java: Corresponding changes.
8992 * java/io/RandomAccessFile.java: Corresponding changes.
8994 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
8995 unmapImpl): New dummy methods, to be overridden by subclass.
8996 (finalize, isLoaded, load, force): New methods.
8997 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
8998 Now works, at least for read mapping.
9000 * java/lang/natPosixProcess.cc (startProcess): Implement standard
9001 streams using FileChannelImpl, not FileDescriptor.
9002 * java/lang/natWin32Process.cc (startProcess): Likewise.
9004 2004-02-28 Michael Koch <konqueror@gmx.de>
9006 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
9009 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
9011 * java/io/ObjectInputStream.java
9012 (readClassDescriptor): Keep elements of the mapping non null.
9013 (checkTypeConsistency): New method.
9014 (readFields): Fixed main loop and base logic. Small reindentation.
9015 * java/io/ObjectStreamField.java
9016 (lookupField): New method to update the field reference.
9017 (checkFieldType): New method.
9018 * java/io/ObjectStreamClass.java
9019 (setClass, setFields): Call lookupField when building the field
9020 database. Check the real field type.
9022 2004-02-28 Michael Koch <konqueror@gmx.de>
9024 * java/nio/ByteOrder.java
9025 (nativeOrder): Use equals() to compare strings.
9027 2004-02-26 Michael Koch <konqueror@gmx.de>
9029 * gnu/java/nio/FileLockImpl.java
9030 (finalize): Made protected.
9031 * java/nio/channels/FileChannel.java
9032 (MapMode.READ_ONLY): Made final.
9033 (MapMode.READ_WRITE): Made final.
9034 (MapMode.PRIVATE): Made final.
9035 * java/nio/channels/SocketChannel.java
9036 (open): Simplified code.
9037 * java/nio/channels/spi/AbstractSelectableChannel.java
9038 (registered): Unused, removed.
9039 (keyFor): Check channel is open, only locate key
9040 and not add a new one.
9041 (register): Don't delete attachments.
9043 2004-02-26 Michael Koch <konqueror@gmx.de>
9045 * gnu/java/awt/ComponentDataBlitOp.java
9046 (INSTANCE): Made final.
9047 * gnu/java/awt/image/ImageDecoder.java:
9049 (cm): Unused, removed.
9051 2004-02-26 Michael Koch <konqueror@gmx.de>
9053 * gnu/java/nio/DatagramChannelImpl.java
9054 (send): Check if target address is resolved.
9056 2004-02-26 Michael Koch <konqueror@gmx.de>
9058 * Makefile.am: Generate and install headers for inner classes in
9059 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
9060 * Makefile.in: Regenerated.
9062 2004-02-24 Anthony Green <green@redhat.com>
9064 * java/lang/StringBuffer.java: No need to NULL out remainder of
9065 buffer since ensureCapacity_unsynchronized will have done this for
9068 2004-02-20 Michael Koch <konqueror@gmx.de>
9070 * gnu/java/net/protocol/jar/Handler.java
9071 (): Removed unneeded check for file != null. java.net.URL.getFile()
9072 returns an empty string but never null.
9074 2004-02-20 Michael Koch <konqueror@gmx.de>
9076 * gnu/gcj/convert/Convert.java
9077 (main): Use equals() to compare strings.
9079 2004-02-20 Michael Koch <konqueror@gmx.de>
9081 * javax/swing/AbstractButton.java: Made several constants final.
9082 (getRolloverSelectedIcon): Made public.
9083 (getSelectedIcon): Made public.
9085 2004-02-16 Per Bothner <per@bothner.com>
9087 * java/nio/CharBufferImpl.java: Inline super constructor.
9088 * java/nio/DoubleBufferImpl.java: Likewise.
9089 * java/nio/FloatBufferImpl.java: Likewise.
9090 * java/nio/IntBufferImpl.java: Likewise.
9091 * java/nio/LongBufferImpl.java: Likewise.
9092 * java/nio/ShortBufferImpl.java: Likewise.
9093 * java/nio/CharBuffer.java: Remove unused constructor.
9094 * java/nio/DoubleBuffer.java: Likewise.
9095 * java/nio/FloatBuffer.java: Likewise.
9096 * java/nio/IntBuffer.java: Likewise.
9097 * java/nio/LongBuffer.java: Likewise.
9098 * java/nio/ShortBuffer.java: Likewise.
9099 * java/nio/CharViewBufferImpl.java: New convenience constructor.
9100 Fix buggy call to super constructor.
9101 * java/nio/DoubleViewBufferImpl.java: Likewise.
9102 * java/nio/FloatViewBufferImpl.java: Likewise.
9103 * java/nio/IntViewBufferImpl.java: Likewise.
9104 * java/nio/LongViewBufferImpl.java: Likewise.
9105 * java/nio/ShortViewBufferImpl.java: Likewise.
9107 * java/nio/ByteBuffer.java (endian): Make non-private so other
9108 java.nio classes can inherit it.
9109 (<init>): Don't bother clearing array_offset.
9110 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
9111 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
9112 Remove redundant test.
9114 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
9115 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
9116 Use new XxxViewBufferImpl constructors.
9117 * java/nio/MappedByteBufferImpl.java: Likewise.
9118 * java/nio/DirectByteBufferImpl.java: Likewise.
9120 * java/nio/ByteBufferImpl.java: Remove one constructor.
9121 Inline super in remaining constructor.
9122 * java/nio/ByteBuffer.java: Remove unused constructor.
9124 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
9126 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
9127 * java/nio/DirectByteBufferImpl.java (owner): New field.
9128 (offset): Remove unused field.
9129 (<init>): Modify one and add another constructor. Change callers.
9130 (allocateDirect): Removed - not used.
9131 (getImpl, putImpl): Make static and pass address explicitly,
9132 to make them useful for MappedByteBufferImpl.
9133 (get, put): Check for underflow. Modify for new getImpl.
9134 (getImpl): New native method where target is array.
9135 (get(byte[],int,int)): Use the above.
9136 (adjustAddress): New static native method.
9137 (slice, duplicate, asReadOnly): New implementations.
9138 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
9139 adjustAddress): New or updated native methods.
9141 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
9143 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
9144 overflow of fieldmapping.
9146 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
9148 * javax/swing/undo/UndoManager.java: Re-written from scratch.
9150 2004-02-14 Per Bothner <per@bothner.com>
9152 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
9153 Set closed before calling implCloseChannel, as in the spec.
9155 2004-02-09 Graydon Hoare <graydon@redhat.com>
9157 * javax/swing/ToggleButtonModel.java: Remove dead class.
9158 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
9159 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
9160 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
9161 * Makefile.am: Update for new and removed files.
9162 * Makefile.in: Regenerate.
9164 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
9165 * javax/swing/AbstractButton.java
9166 (AbstractButton): Initialize fields correctly in ctor.
9167 * javax/swing/JCheckbox.java
9168 (JCheckBox): Override painting flags.
9169 * javax/swing/DefaultButtonModel.java: Conform to sun.
9170 * javax/swing/JComponent.java (paint): Fill with background color
9172 (processComponentKeyEvent)
9175 (processMouseMotionEvent): Remove event-consuming empty methods.
9176 (getUIClassID): Return "ComponentUI" not "JComponent"
9177 * javax/swing/JFrame.java: Remove some debugging chatter.
9178 (JFrame): Subscribe to window events.
9179 * javax/swing/JRadioButton.java
9180 (JRadioButton): Override painting flags.
9181 * javax/swing/JRootPane.java
9182 (JRootPane): Set background from UIDefaults.
9183 * javax/swing/JToggleButton.java
9184 (ToggleButtonModel): New inner class.
9185 (JToggleButton): Override layout alighment.
9186 * javax/swing/SwingUtilities.java:
9187 (getLocalBounds): Return width and height, not x and y.
9188 (calculateInnerArea): Use local bounds, not bounds.
9189 (layoutCompoundLabel): Provide overridden form.
9190 (layoutCompoundLabel): Correct bugs.
9191 * javax/swing/UIDefaults.java: Correct comment.
9192 * javax/swing/plaf/basic/BasicButtonUI.java:
9193 Move most logic into defaults, external listener.
9194 (paintIcon): Implement icon painting.
9195 (paint): Fix state painting to conform to changes in model.
9196 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
9197 Remove most dead/wrong methods.
9198 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
9199 * javax/swing/plaf/basic/BasicIconFactory.java:
9200 (DummyIcon): New class.
9201 (getMenuItemCheckIcon)
9202 (getMenuItemArrowIcon)
9204 (getCheckBoxMenuItemIcon)
9205 (getRadioButtonMenuItemIcon)
9206 (createEmptyFrameIcon): Return DummyIcons, not null.
9207 (getCheckBoxIcon): Implement an icon that looks like sun's.
9208 (getRadioButtonIcon): Implement an icon that looks like sun's.
9209 * javax/swing/plaf/basic/BasicLookAndFeel.java
9210 (initComponentDefaults): Fix impossible values, add some missing.
9211 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
9212 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
9213 Remove most dead/wrong methods.
9215 (getDefaultIcon): New method.
9216 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
9217 Remove most dead/wrong methods.
9218 * javax/swing/plaf/metal/MetalLookAndFeel.java
9219 (getDefaults): Return super.getDefaults(), not BasicDefaults.
9220 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
9221 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
9222 Implement "clearing" as drawing, when on pixmap drawables.
9224 * javax/swing/JButton.java (getUIClassID):
9225 * javax/swing/JCheckBox.java (getUIClassID):
9226 * javax/swing/JEditorPane.java (getUIClassID):
9227 * javax/swing/JLabel.java (getUIClassID):
9228 * javax/swing/JList.java (getUIClassID):
9229 * javax/swing/JOptionPane.java (getUIClassID):
9230 * javax/swing/JPanel.java (getUIClassID):
9231 * javax/swing/JPasswordField.java (uiClassID):
9232 * javax/swing/JRadioButton.java (getUIClassID):
9233 * javax/swing/JRootPane.java (getUIClassID):
9234 * javax/swing/JScrollPane.java (getUIClassID):
9235 * javax/swing/JTabbedPane.java (getUIClassID):
9236 * javax/swing/JToggleButton.java (getUIClassID):
9237 * javax/swing/JTree.java (getUIClassID):
9238 * javax/swing/JViewport.java (getUIClassID):
9239 * javax/swing/text/JTextComponent.java (getUIClassID):
9240 Return "fooUI" not "Jfoo"
9242 2004-02-11 Michael Koch <konqueror@gmx.de>
9244 * java/net/DatagramSocket.java
9245 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
9247 (setBroadcast): Likewise.
9248 * java/net/MulticastSocket.java
9249 (setLoopbackMode): Likewise.
9250 * java/net/ServerSocket.java
9251 (setReuseAddress): Likewise.
9252 * java/net/Socket.java
9253 (setTcpNoDelay): Likewise.
9254 (setSoLinger): Likewise.
9255 (setOOBInline): Likewise.
9256 (setKeepAlive): Likewise.
9257 (setReuseAddress): Likewise.
9258 * java/net/URLConnection.java
9259 (setContentHandler): Replace == with equals().
9260 * java/net/URLStreamHandler.java
9261 (hostSEquals): Fix checking host addresses.
9262 (toExternalForm): Dont check protocol for null. We know already its
9265 2004-02-10 David Jee <djee@redhat.com>
9267 * java/awt/BorderLayout.java
9268 (calcCompSize): Invisible components get zero dimensions.
9269 * java/awt/Button.java
9270 (setLabel): Set actionCommand.
9271 * java/awt/Component.java
9272 (show): Invalidate component and parent container.
9275 2004-02-10 David Jee <djee@redhat.com>
9277 * java/awt/GridBagLayout.java
9278 (GridBagLayout): New private field, internalcomptable.
9279 (lookupInternalConstraints): New method.
9280 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
9281 (GetLayoutInfo): Reimplement.
9282 (calcCellSizes): Ignore rows/columns with size 0.
9284 2004-02-10 Michael Koch <konqueror@gmx.de>
9286 * gnu/java/awt/EmbeddedWindow.java
9287 (setHandle): Use java.awt.Component.getPeer() instead of
9288 java.awt.Component.peer directly.
9290 2004-02-10 David Jee <djee@redhat.com>
9292 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
9293 (gtkSetLabel): New native method definition.
9294 (setLabel): Use gtkSetLabel.
9295 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
9296 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
9298 2004-02-10 Alan Modra <amodra@bigpond.net.au>
9300 * include/powerpc-signal.h: Revert 2004-01-21 change.
9301 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
9302 from syscall for ppc32 versions.
9304 2004-02-08 Per Bothner <per@bothner.com>
9306 * java/nio/ByteBuffer.java (shiftDown): New helper method.
9307 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
9308 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
9309 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
9310 Pass ByteOrder parameter to most methods, since the underlying
9311 ByteBuffer's order isn't always what we should use.
9312 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
9313 * java/nio/DirectByteBufferImpl.java: Likewise.
9314 Use ByteBufferHelper methods.
9315 * java/nio/MappedByteBufferImpl.java: Likewise.
9316 (compact): Use shiftDown.
9317 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
9318 (get, put): Use ByteBufferHelper.
9319 (compact): Use new shiftDown method.
9320 (duplicate(boolean)): New helper method.
9321 (duplicate, asReadOnlyBuffer): Use it.
9322 (order): Return endian field.
9323 * java/nio/DoubleViewBufferImpl.java: Likewise.
9324 * java/nio/FloatViewBufferImpl.java: Likewise.
9325 * java/nio/IntViewBufferImpl.java: Likewise.
9326 * java/nio/LongViewBufferImpl.java: Likewise.
9327 * java/nio/ShortViewBufferImpl.java: Likewise.
9328 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
9329 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
9330 (compact): Re-implement using shiftDown.
9332 2004-02-08 Andreas Jaeger <aj@suse.de>
9334 * include/x86_64-signal.h: Fix typo.
9336 2004-02-08 Diego Novillo <dnovillo@redhat.com>
9338 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
9340 (HANDLE_DIVIDE_OVERFLOW): Likewise.
9342 2004-02-06 Michael Koch <konqueror@gmx.de>
9344 * java/io/ObjectInputStream.java
9345 (currentClassLoader): Reverted to old version of this method.
9347 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
9349 * java/io/ObjectInputStream.java: Made all calls
9350 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
9351 use cached info from ObjectStreamClass. (readClassDescriptor):
9352 Cache more information in ObjectStreamClass. (processResolution,
9353 readFields): Use cached info from ObjectStreamClass.
9354 (newObject): Throw exception instead of returning null for failure.
9355 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
9356 setCharField, setDoubleField, setFloatField, setIntField,
9357 setLongField, setShortField, setObjectField, readObjectParams):
9358 Removed. (dumpElement, dumpElementln): Removed dump flag condition
9360 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
9361 (setClass): Added call to cacheMethods() (findMethod): New method.
9362 (cacheMethods): New method. (ObjectStreamClass): Added call to
9363 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
9364 AccessController.doPrivileged to invoke setAccessible.
9365 (readObjectMethod, readResolveMethod, realClassIsSerializable,
9366 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
9368 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
9369 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
9370 isPrimitive): Made safe for cases where type == null.
9371 (setBooleanField, setByteField, setCharField, setShortField,
9372 setIntField, setLongField, setFloatField, setDoubleField,
9373 setObjectField): New methods.
9375 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
9377 * java/awt/Component.java (getFont): Return a default font
9380 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
9381 (Scrollbar (int, int, int, int, int)): Make default page
9383 (setValues): Only call peer.setValues if one of the values has
9385 (generateName): New method.
9386 (getUniqueLong): New method.
9387 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
9388 (range_scrollbar): Remove structure.
9389 (post_adjustment_event): Remove function.
9390 (post_change_event): Accept jobject argument.
9391 (create): Cast jints to gdoubles. Round scrollbar values to the
9392 nearest integer. Clamp min, max and value settings.
9393 (connectJObject): Connect hook to widget->window.
9394 (connectSignals): Remove range_scrollbar structure variables.
9395 Remove "move-slider" connection. Pass global peer reference to
9396 "value-changed" callback.
9397 (setLineIncrement): Cast jint value to gdouble.
9398 (setPageIncrement): Likewise.
9399 (setValues): Likewise. Clamp min, max and value settings.
9401 2004-02-05 Michael Koch <konqueror@gmx.de>
9403 * javax/swing/AbstractCellEditor.java
9404 (getCellEditorValue): Removed.
9405 * javax/swing/Box.java: Reformated.
9406 (serialVersionUID): New field.
9407 * javax/swing/ButtonGroup.java:
9408 Removed some weird whitespace.
9409 * javax/swing/CellEditor.java: Reformated.
9410 * javax/swing/CellRendererPane.java
9411 (serialVersionUID): New field.
9412 (AccessibleCellRendererPaneserialVersionUID): New field.
9413 * javax/swing/DefaultListModel.java
9414 (serialVersionUID): New field.
9415 * javax/swing/JEditorPane.java
9416 (serialVersionUID): New field.
9417 (setPage): Throws IOException.
9418 (addHyperlinkListener): Implemented.
9419 (removeHyperlinkListener): Implemented.
9420 (getHyperlinkListener): New method.
9421 * javax/swing/JFileChooser.java
9422 (serialVersionUID): New field.
9423 (AccessibleJFileChooser.serialVersionUID): New field.
9424 (addActionListener): Implemented.
9425 (removeActionListener): Implemented.
9426 (getActionListeners): New method.
9427 * javax/swing/JFormattedTextField.java
9428 (serialVersionUID): New field.
9429 (AbstractFormatter.serialVersionUID): New field.
9430 (clone): Throws CloneNotSupportedException
9431 (setEditValid): Add missing argument.
9432 (stringToValue): Throws ParseExcpetion.
9433 (valueToString): Throws ParseException.
9434 (commitEdit): Throws ParseException.
9435 * javax/swing/JLabel.java
9436 (serialVersionUID): New field.
9437 * javax/swing/JList.java
9438 (serialVersionUID): New field.
9439 (addListSelectionListener): Reformated.
9440 (removeListSelectionListener): Reformated.
9441 (getListSelectionListeners): New method.
9442 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
9444 (serialVersionUID): New field.
9445 * javax/swing/table/AbstractTableModel.java
9446 (getValueAt): Removed.
9447 (getColumnCount): Removed.
9448 (getRowCount): Removed.
9450 2004-02-05 Michael Koch <konqueror@gmx.de>
9452 * java/awt/datatransfer/DataFlavor.java
9453 (imageFlavor): Javadoc added.
9454 (javaJVMLocalObjectType): Fixed.
9456 2004-02-05 Michael Koch <konqueror@gmx.de>
9458 * java/lang/Thread.java
9459 (Thread): Reordered.
9460 (setContextClassLoader): Fixed javadoc comment.
9461 (setPriority): Reordered.
9463 (initialize_native): Reordered.
9464 (gen_name): Reordered.
9466 2004-02-05 Michael Koch <konqueror@gmx.de>
9468 * java/lang/Thread.java: Reordered fields, reformated much code,
9469 no functional changes, some variables renamed, javadoc comments
9472 2004-02-05 Michael Koch <konqueror@gmx.de>
9474 * java/util/zip/Deflater.java,
9475 java/util/zip/DeflaterOutputStream.java,
9476 java/util/zip/GZIPInputStream.java:
9477 Reformated and javadoc comments merged from classpath.
9479 2004-02-05 Michael Koch <konqueror@gmx.de>
9481 * gnu/java/nio/NIOServerSocket.java
9482 (impl): Unused, removed.
9483 * gnu/java/nio/SocketChannelImpl.java
9484 (finnishConnect): Don't throw NoConnectionPendingException if not
9485 connected or no connection pending.
9487 2004-02-02 Graydon Hoare <graydon@redhat.com>
9489 * javax/swing/SwingUtilities.java: Many new functions.
9490 * java/awt/Container.java (LightweightDispatcher): Reimplement.
9491 * javax/swing/basic/BasicGraphicsUtils.java
9492 (getPreferredButtonSize): Start layout from top-left corner.
9494 2004-02-04 Olga Rodimina <rodimina@redhat.com>
9496 * java/awt/geom/AffineTransform.java:
9497 Corrected comments on the field definitions for
9499 (shear): Fixed few errors that caused shear
9500 transformation to be performed incorrectly.
9501 (createInverse): Fixed to return correct
9502 inverse of the given matrix.
9504 2004-02-03 Tom Tromey <tromey@redhat.com>
9506 * java/lang/natPosixProcess.cc (startProcess): Handle case where
9507 PATH or LD_LIBRARY_PATH is not set in parent environment.
9509 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
9511 * gnu/java/awt/peer/gtk/GtkListPeer.java,
9512 java/awt/BorderLayout.java, java/awt/CardLayout.java,
9513 java/awt/CheckboxGroup.java, java/awt/Choice.java,
9514 java/awt/Component.java, java/awt/Container.java,
9515 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
9516 java/awt/LayoutManager2.java, java/awt/List.java,
9517 java/awt/Menu.java, java/awt/MenuBar.java,
9518 java/awt/MenuItem.java, java/awt/Polygon.java,
9519 java/awt/Rectangle.java, java/awt/ScrollPane.java,
9520 java/awt/Scrollbar.java, java/awt/TextArea.java,
9521 java/awt/TextField.java,
9522 java/awt/image/renderable/RenderContext.java,
9523 javax/swing/JApplet.java: Fix handling of alias methods, where a
9524 method has been deprecated in favour of a new one with the same
9525 funtion but a different name. Put the method implementation in
9526 the deprecated method and have the new method call the
9527 deprecated one. Make all other code call the new method.
9529 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
9531 * gnu/java/nio/DatagramChannelImpl.java
9532 (inChannelOperation): New field.
9533 (isInChannelOperation): New accessor.
9534 (setInChannelOperation): New modifier.
9535 (receive): Use capacity() - position() of destination
9536 buffer instead of remaining(). Set and reset our "in
9537 channel operation indicator" before and after delegating
9538 the receive to our datagram socket. Removed testing code.
9539 Update destination buffer's current position if it is
9540 backed by a byte array (hasArray() is true).
9541 (send): Set and reset our "in channel operation indicator"
9542 before and after delegating the send to our datagram socket.
9543 Removed testing code. Update source buffer's current position
9544 if it is backed by a byte array (hasArray() is true).
9545 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
9546 Use capacity() - position() of destination buffer instead
9548 * java/net/DatagramSocket.java (receive): Don't throw an
9549 IllegalBlockingModeException if we have a non-blocking
9550 channel which initiated this operation.
9553 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
9555 * configure.in: Add pkgconfig check for glib and gthread.
9556 * configure: Regenerate.
9558 2004-02-01 Michael Koch <konqueror@gmx.de>
9560 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
9562 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
9563 * verify.cc (debug_print): Mark 'fmt' unused.
9565 2004-01-30 Michael Koch <konqueror@gmx.de>
9567 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
9568 * configure: Regenerated.
9569 * glib-2.0.m4: Removed.
9570 * gtk-2.0.m4: Removed.
9571 * libart.m4: Removed.
9574 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
9576 * gnu/java/net/PlainSocketImpl.java
9577 (inChannelOperation): New field.
9578 (isInChannelOperation): New accessor.
9579 (setInChannelOperation): New modifier.
9580 * gnu/java/nio/ServerSocketChannelImpl.java
9581 (accept): Set and reset our server socket's PlainSocketImpl's
9582 "in channel operation" indicator before and after delegating
9583 the accept to our server socket.
9584 * gnu/java/nio/SocketChannelImpl.java
9585 (connect): Set and reset our socket's PlainSocketImpl's "in channel
9586 operation" indicator before and after delegating the operation to
9590 * java/net/ServerSocket.java (implAccept): Don't throw an
9591 IllegalBlockingModeException if we have a non-blocking
9592 channel which initiated this accept operation.
9593 * java/net/Socket.java (connect): Don't throw an
9594 IllegalBlockingModeException if we have a non-blocking
9595 channel which initiated this connect operation.
9596 * java/nio/channels/spi/AbstractSelectableChannel.java
9597 (configureBlocking): Only call implConfigureBlocking() if
9598 the desired blocking mode is different from our current one.
9600 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
9602 * java/io/BufferedReader.java (sbuf): New field.
9603 (readLine): Use String.valueOf instead of new String() as per
9604 Per Bothner's suggestion. Use instance sbuf field instead of a
9605 local StringBuffer instance.
9606 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
9607 caller's buffer to refill().
9608 (read(void)): Pass our internal work buffer to refill if our
9609 input queue is empty.
9610 (refill): Changed return type to int. Use the specified buffer
9611 instead of our work buffer as per Bryce McKinlay's suggestion.
9612 Return the number of characters read or -1 for EOF.
9614 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9616 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
9618 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9620 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
9621 * Makefile.in: Re-generated.
9622 * gnu/awt/xlib/XFontPeer.java: New file.
9623 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
9624 (setClip): Commented out debug printout.
9625 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
9626 (getFontPeer): Return XFontPeer.
9627 (getLocalGraphicsEnvironment): New method.
9628 (getClasspathFontPeer): New method.
9629 (createFont): New method.
9631 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9633 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
9636 2004-01-29 Kim Ho <kho@redhat.com>
9638 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9639 (gtkLayoutSetVisible): New method
9640 (setMenuBar): Hide layout before setting MenuBar
9641 and reshow it after.
9642 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9643 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
9645 2004-01-28 Michael Koch <konqueror@gmx.de>
9647 * gnu/java/lang/ClassHelper.java
9648 (getPackagePortion): Removed.
9650 2004-01-28 Michael Koch <konqueror@gmx.de>
9652 * javax/swing/JComponent.java
9653 (listenerList): Initalize globally.
9654 (ancestor_list): Removed.
9655 (veto_list): Removed.
9656 (change_list): Removed.
9657 (get_veto_list): Removed.
9658 (get_change_list): Removed.
9659 (get_ancestor_list): Removed.
9660 (removeAncestorListener): Reimplemented.
9661 (removePropertyChangeListener): Likewise.
9662 (removeVetoableChangeListener): Likewise.
9663 (addAncestorListener): Likewise.
9664 (addPropertyChangeListener): Likewise.
9665 (addVetoableChangeListener): Likewise.
9666 (getListeners): New method.
9667 (getAncestorListeners): Likewise.
9668 (getVetoableChangeListeners): Likewise.
9669 (fireVetoableChange): Throws PropertyVetoException.
9670 * javax/swing/JEditorPane.java
9671 (JEditorPane): Throws IOException.
9673 2004-01-28 David Jee <djee@redhat.com>
9675 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9676 (create): Set the default foreground color to
9677 java.awt.SystemColor.windowText.
9679 2004-01-27 Michael Koch <konqueror@gmx.de>
9681 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
9682 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
9683 Reindented to merge with classpath.
9685 2004-01-27 David Jee <djee@redhat.com>
9687 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9688 (addExposeFilter): Handle GtkFramePeer separately.
9689 (removeExposeFilter): Likewise.
9691 2004-01-27 Michael Koch <konqueror@gmx.de>
9693 * gnu/java/net/protocol/http/Connection.java
9694 (getOutputStream): Fixed typo.
9696 2004-01-27 Michael Koch <konqueror@gmx.de>
9698 * java/lang/Class.java
9699 (getConstructor): Removed SecurityException from throws clause.
9700 (_getConstructors): Likewise.
9701 (getConstructors): Likewise.
9702 (getDeclaredConstructor): Likewise.
9703 (getDeclaredClasses): Likewise.
9704 (getDeclaredConstructors): Likewise.
9705 (getDeclaredField): Likewise.
9706 (getDeclaredMethod): Likewise.
9707 (getDeclaredMethods): Likewise.
9708 (getField): Likewise.
9709 (getMethod): Likewise.
9710 (getMethods): Likewise.
9712 2004-01-27 Kim Ho <kho@redhat.com>
9714 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9715 (removeMenuBarPeer): Remove MenuBarPeer argument.
9716 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
9717 (dispose): Call native method.
9718 * java/awt/Frame.java (setMenuBar): Create and remove
9719 MenuBar peers only if the Frame has a peer.
9720 (addNotify): Create the MenuBar peer if one exists.
9721 (removeNotify): Remove MenuBar peer if one exists.
9722 * java/awt/Menu.java: Fix imports.
9723 (addNotify): Don't use full class name.
9724 (removeNotify): Call removeNotify on all children.
9725 * java/awt/MenuBar.java (removeNotify): Call
9726 removeNotify on all children.
9727 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9728 (removeMenuBarPeer): Remove MenuBarPeer argument.
9729 Iterate through children to find the Frame's MenuBar.
9730 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
9732 (dispose): Remove references to the MenuComponent.
9734 2004-01-27 Michael Koch <konqueror@gmx.de>
9736 * javax/swing/AbstractCellEditor.java: Reformated.
9737 * javax/swing/DefaultListSelectionModel.java
9738 (listenerList): Made protected.
9739 (addListSelectionListener): Javadoc added.
9740 (removeListSelectionListener): Likewise.
9741 (getListeners): Likewise.
9742 (getListSelectionListeners): Likewise.
9743 * javax/swing/JComboBox.java: Merged copyright year.
9744 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
9746 2004-01-26 Andrew Haley <aph@redhat.com>
9748 * javax/swing/table/JTableHeader.java: Extend JComponent
9750 2004-01-26 Kim Ho <kho@redhat.com>
9752 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
9755 2004-01-26 Kim Ho <kho@redhat.com>
9757 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
9759 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
9760 height and let the Layout Managers readjust anything that
9762 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9763 (moveLayout): New method. Shift everything in the Gtk
9764 layout in the Y direction by an offset.
9766 2004-01-26 David Jee <djee@redhat.com>
9768 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
9769 (handleEvent): Implemented. Handles PaintEvents.
9770 (paint): Implemented. Use GTK native methods to queue updates
9771 for this heavyweight peer.
9772 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
9773 (handleEvent): Removed.
9774 * java/awt/Component.java
9775 (paint): Implemented. Explictly paint the heavyweight peer.
9776 (update): Clear the background for heavyweight components.
9777 (paintAll): No need to call peer.paint() anymore.
9778 (processEvent): Don't process PaintEvents here. It's now done in
9779 the peer's handleEvent().
9780 (processPaintEvent): Removed.
9781 * java/awt/Container.java
9782 (paint): No need to call super.paint(). Visit heavyweight
9784 (update): Don't clear the background here. It's done in
9786 (visitChildren): Added check to not recurse into Containers.
9787 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9788 (filter_expose_event_handler): New method. Filter unwanted
9789 expose events while painting heavyweight peers.
9790 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
9791 New method. Connect filter and block pre_event_handler.
9792 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
9793 New method. Disconnect filter and unblock pre_event_handler.
9794 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
9795 New method. Invalidate and update given area.
9796 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
9797 (pre_event_handler): Add checks for unwanted expose events.
9799 2004-01-26 David Jee <djee@redhat.com>
9801 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9802 (find_bg_color_widget): For GtkButton, return its child.
9804 2004-01-26 Kim Ho <kho@redhat.com>
9806 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
9808 (setMenuBar): Grab MenuBar height and change insets.
9809 (setBounds): Account for MenuBar height.
9810 (postInsetsChangedEvent): Ditto.
9811 (postSizeAllocateEvent): Remove.
9812 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9813 (menubar_resize_cb): Remove
9814 (setMenuBarPeer): Remove callback.
9815 (getMenuBarHeight): Use size requisition instead of
9818 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
9820 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
9821 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
9823 (setColumns): Remove FIXME -- peer will retrieve number of
9824 columns by calling getColumns.
9825 (setRows): Likewise for number of rows.
9826 (next_text_number): New field.
9827 (paramString): Fix param string.
9828 (generateName): New method.
9829 (getUniqueLong): New method.
9831 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
9833 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
9834 image observer of image loading status.
9835 (getImage (String)): Start image production.
9836 (getImage (URL)): Likewise.
9838 2004-01-25 Michael Koch <konqueror@gmx.de>
9840 * java/lang/Class.java: Imports reworked, reformated.
9841 (Class): Javadoc added.
9842 (forName): Likewise.
9843 (getClasses): Likewise.
9844 (getClassLoader): Likewise.
9845 (getComponentType): Likewise.
9846 (getConstructor): Likewise.
9847 (getConstructors): Likewise.
9848 (getDeclaredConstructor): Likewise.
9849 (getDeclaredClasses): Likewise.
9850 (getDeclaredConstructors): Likewise.
9851 (getDeclaredField): Likewise.
9852 (getDeclaredMethod): Likewise.
9853 (getDeclaredMethods): Likewise.
9854 (getDeclaringClass): Likewise.
9855 (getField): Likewise.
9856 (getInterfaces): Likewise.
9857 (getMethod): Likewise.
9858 (getMethods): Likewise.
9859 (getModifiers): Likewise.
9860 (getName): Likewise.
9861 (getResource): Likewise.
9862 (getResourceAsStream): Likewise.
9863 (getSigners): Likewise.
9864 (setSigners): Likewise.
9865 (getSuperclass): Likewise.
9866 (isArray): Likewise.
9867 (isAssignableFrom): Likewise.
9868 (isInstance): Likewise.
9869 (isInterface): Likewise.
9870 (isPrimitive): Likewise.
9871 (newInstance): Likewise.
9872 (getProtectionDomain): Likewise.
9873 (toString): Likewise.
9875 (initializeClass): Likewise.
9876 (finalize): Likewise.
9878 2004-01-24 Michael Koch <konqueror@gmx.de>
9880 * gnu/java/net/protocol/jar/Connection.java
9883 (gotHeaders): Removed.
9884 (getHeaderField): Removed.
9885 (getHeaderFields): Removed.
9886 (getHeaderFieldKey): Removed.
9888 (getField): Removed.
9889 (getHeaders): Removed.
9891 2004-01-24 Michael Koch <konqueror@gmx.de>
9893 * Makefile.am: Added library version to gtk peer lib.
9894 * Makefile.in: Regenerated.
9896 2004-01-24 Michael Koch <konqueror@gmx.de>
9898 * java/util/zip/InflaterInputStream.java: Merged class documentation
9901 2004-01-21 Jakub Jelinek <jakub@redhat.com>
9903 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
9904 header. For __powerpc64__ provide the default-signal.h definitions
9906 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
9907 instead of the dummy definitions.
9908 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
9909 (powerpc64*-*): Remove with_libffi_default.
9910 Only add -mminimal-toc for 64-bit compilations.
9911 * configure.in: Use powerpc-signal.h on powerpc64 as well.
9912 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
9913 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
9914 * configure: Rebuilt.
9916 2004-01-23 Michael Koch <konqueror@gmx.de>
9918 * gnu/java/nio/FileLockImpl.java: Compile fixes.
9920 2004-01-23 Michael Koch <konqueror@gmx.de>
9922 * java/lang/VMClassLoader.java: Reworked imports.
9924 2004-01-23 Michael Koch <konqueror@gmx.de>
9926 * javax/swing/AbstractAction.java: Reformated.
9928 2004-01-23 Michael Koch <konqueror@gmx.de>
9930 * java/text/CollationElementIterator.java:
9931 (setText): New method.
9933 2004-01-23 Michael Koch <konqueror@gmx.de>
9935 * gnu/java/nio/FileLockImpl.java:
9936 Fixed filename in copyright.
9937 (released): Removed.
9938 (finalize): New method.
9939 * gnu/java/nio/natFileLockImpl.cc
9940 (releaseImpl): Implemented.
9941 * java/nio/channels/FileChannelImpl.java:
9943 (lock): Implemented.
9944 (lockImpl): New method.
9945 (tryLock): Implemented.
9946 (tryLockImpl): New method.
9947 * java/nio/channels/natFileChannelImpl.cc
9948 (lockImpl): New method.
9949 (tryLockImpl): New method.
9951 2004-01-23 Michael Koch <konqueror@gmx.de>
9953 * java/io/FileDescriptor.java
9955 (tryLock): New method.
9956 (unlock): New method.
9957 * java/io/natFileDescriptorEcos.cc
9959 (tryLock): New method.
9960 (unlock): New method.
9961 * java/io/natFileDescriptorPosix.cc
9963 (tryLock): New method.
9964 (unlock): New method.
9965 * java/io/natFileDescriptorWin32.cc
9967 (tryLock): New method.
9968 (unlock): New method.
9970 2004-01-23 Michael Koch <konqueror@gmx.de>
9972 * java/io/FileDescriptor.java
9973 (sync): Moved around, added javadoc.
9978 (setLength): Likewise.
9980 (getLength): Likewise.
9981 (getFilePointer): Likewise.
9983 (available): Likewise.
9984 (finalize): Likewise.
9986 2004-01-23 Michael Koch <konqueror@gmx.de>
9988 * javax/swing/AbstractAction.java: Reformated.
9989 (getPropertyChangeListeners): New method.
9990 * javax/swing/AbstractCellEditor.java: Reformated.
9991 (getCellEditorListeners): New method.
9992 * javax/swing/DefaultListSelectionModel.java
9993 (listenerList): New field.
9994 (listeners): Removed.
9995 (get_listeners): Removed.
9996 (addListSelectionListener): Rewritten.
9997 (removeListSelectionListener): Rewritten.
9998 (getListSelectionListeners): New method.
9999 (getListeners): New method.
10000 * javax/swing/JComboBox.java: Imports reworked.
10001 (addActionListener): Implemented.
10002 (removeActionListener): Implemented.
10003 (addItemListener): Implemented.
10004 (removeItemListener): Implemented.
10005 (addPopupMenuListener): Implemented.
10006 (removePopupMenuListener): Implemented.
10007 (getActionListeners): New method.
10008 (getItemListeners): New method.
10009 (getPopupMenuListeners): New method.
10011 2004-01-23 Michael Koch <konqueror@gmx.de>
10013 * gnu/java/net/protocol/http/Connection.java
10014 (connect): Don't initialize bufferedOutputStream if not needed.
10015 (sendRequest): Set property for content length if content is present.
10016 Write content only if present.
10017 (getOutputStream): Check if already connected, dont connect,
10018 initalize bufferedOutputStream if needed.
10020 2004-01-23 Michael Koch <konqueror@gmx.de>
10022 * java/io/FileDescriptor.java
10023 (in, out, err): Added javadoc.
10024 (static): Merged loading code.
10025 (fd, position): Moved around.
10027 2004-01-23 Michael Koch <konqueror@gmx.de>
10029 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
10032 2004-01-23 Michael Koch <konqueror@gmx.de>
10034 * java/lang/Class.java,
10035 java/lang/Object.java,
10036 java/lang/Thread.java: Merged copyright with classpath.
10038 2004-01-23 Michael Koch <konqueror@gmx.de>
10040 * java/io/FileDescriptor.java: Merged copyright with classpath to
10041 start merging this class.
10043 2004-01-22 Tom Tromey <tromey@redhat.com>
10046 * testsuite/libjava.lang/pr13107_2.xfail: New file.
10047 * testsuite/libjava.lang/pr13107_3.xfail: New file.
10048 * testsuite/libjava.lang/pr13107_3.java: New file.
10049 * testsuite/libjava.lang/pr13107_3.out: New file.
10050 * testsuite/libjava.lang/pr13107_2.java: New file.
10051 * testsuite/libjava.lang/pr13107_2.out: New file.
10052 * testsuite/libjava.lang/pr13107.java: New file.
10053 * testsuite/libjava.lang/pr13107.out: New file.
10054 * verify.cc (jsr_ptrs): Removed.
10055 (entry_points): Likewise.
10056 (struct subr_info): Likewise.
10057 (struct subr_entry_info): Likewise.
10058 (type_val::unused_by_subroutine_type): Likewise.
10059 (type::merge): Don't handle unused_by_subroutine_type.
10060 (type::print): Likewise.
10061 (state::flags): Removed.
10062 (state::subroutine): Likewise.
10063 (state::seen_subrs): Likewise.
10064 (state::NO_STACK): Likewise.
10065 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
10066 (state): Updated all methods.
10067 (state::clean_subrs): Removed.
10068 (state::state): Removed `ret_semantics' flag.
10069 (state::copy): Likewise.
10070 (state::add_subr): Removed.
10071 (state::enter_subroutine): Likewise.
10072 (type::set_return_address): New method.
10073 (handle_jsr_insn): Set return address on the type. Always
10074 invalidate PC after call.
10075 (check_nonrecursive_call): Removed.
10076 (~_Jv_BytecodeVerifier): Updated.
10077 (branch_prepass): Removed special handling of jsr.
10078 (note_branch_target): Likewise.
10079 (get_subroutine): Removed.
10080 (state::merge): Don't merge subroutines and don't handle
10081 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
10082 (state::note_variable): Removed.
10083 (state::is_unmerged_ret_state): Likewise.
10084 (state::print): Updated.
10085 (set_variable): Likewise.
10086 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
10087 and jsr_semantics arguments. Updated for new reverification
10089 (pop_jump): Rewrote.
10090 (construct_primitive_array_type): Updated.
10091 (state::next): Removed.
10092 (INVALID_STATE): New define.
10093 (state::INVALID): Removed.
10094 (state::NO_NEXT): New value.
10095 (state::pc, state::next): New fields.
10096 (state::get_pc): New method.
10097 (next_verify_pc): Removed.
10098 (next_verify_state): New field.
10099 (verify_instructions_0): Always check for falling off end.
10100 (linked): New type.
10101 (linked_utf8): Removed.
10102 (states): Changed type.
10103 (type::state_mergeable_p): New method.
10104 (state::state_mergeable_p): Likewise.
10105 (handle_ret_insn): Removed most code.
10106 (state::reverify): New method.
10107 (add_new_state): Likewise.
10108 (state::set_pc): Likewise.
10110 2004-01-22 Jeff Sturm <jsturm@one-point.com>
10113 * testsuite/libjava.compile/PR13733.java: New file.
10114 * testsuite/libjava.compile/PR13733.xfail: New file.
10116 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
10117 Michael Koch <konqueror@gmx.de>
10119 * javax/swing/table/DefaultTableCellRenderer.java
10120 (DefaultTableCellRenderer): Added javadoc for the class and for
10121 the constructor, Border instance, create an EmptyBorder.
10122 (UIResource): Removed the comment at the end of the class
10123 (setForeground): New method.
10124 (setBackground): New method.
10125 (updateUI): New method.
10126 (getTableCellRendererComponent): Rewritten with the help of
10127 dvholten and Stephane Meslin-Weber.
10128 (validate): New method.
10129 (repaint): New method.
10130 (firePropertyChange): New method.
10131 (setValue): New method.
10133 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
10135 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10136 (connectJObject): Replace printf calls with g_assert statements.
10137 Move property-notify-event signal connection to ...
10138 (connectSignals): Connect property-notify-event signal. Iterate
10139 through the vbox's children to find layout.
10141 2004-01-22 Graydon Hoare <graydon@redhat.com>
10143 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
10144 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
10145 Predicate static initialization on GtkToolkit.useGraphics2D().
10146 * java/awt/Component.java (processPaintEvent): Consume event.
10147 * javax/swing/AbstractButton.java: Reimplement, document.
10148 * javax/swing/DefaultButtonModel.java: Reimplement, document.
10149 * javax/swing/JComponent.java (paint): Use double buffer.
10150 (listenerList): Enable member.
10151 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
10152 * javax/swing/JToggleButton.java
10153 (JToggleButton): Modify model constructor.
10154 * javax/swing/SwingUtilities.java
10155 (layoutCompoundLabel): Adjust arithmetic.
10156 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
10157 * javax/swing/plaf/basic/BasicGraphicsUtils.java
10158 (getPreferredButtonSize): Include margins in calculation.
10159 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10160 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
10161 Receive up events from subordinate layout component.
10163 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
10165 * java/awt/Component.java (show): Set visible to true before
10168 2004-01-21 Kim Ho <kho@redhat.com>
10170 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
10172 (removeMenuBarPeer): Make package private.
10173 (setMenuBarPeer): Make package private.
10174 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10175 (menubar_resize_cb): Mark attributes unused.
10176 (getMenuBarHeight): ditto.
10178 2004-01-21 David Jee <djee@redhat.com>
10180 * java/awt/Container.java
10181 (LightweightDispatcher.handleEvent): Add an extra check to avoid
10182 dispatching MOUSE_ENTERED event twice. Translate the point for
10183 the mouse event target before dispatching the event.
10185 2004-01-20 Jakub Jelinek <jakub@redhat.com>
10187 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
10188 lib_org_w3c_dom_la_LDFLAGS): New.
10189 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
10190 * Makefile.in: Rebuilt.
10192 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
10194 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
10195 Calculate proper offsets for heavyweight components packed in
10196 lightweight containers.
10198 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
10199 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
10200 (native create): Add width parameter.
10201 (create): Calculate text entry width based on current font's
10202 metrics and number of columns. Set TextField's font if not
10203 already set. Call native create.
10204 (gtkEntryGetBorderWidth): New native method.
10205 (gtkEntryGetSize): Remove method.
10206 (getMinimumSize): Call minimumSize.
10207 (getPreferredSize): Call preferredSize.
10208 (minimumSize): Calculate minimum size based on backing
10209 GtkEntry's borders, font metrics and number of columns.
10210 (preferredSize): Likewise for preferred size.
10211 (get_border_width): New static function.
10213 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
10214 Override GtkWindowPeer's setResizable method to account for menu
10215 bar height when setting the frame's size.
10217 2004-01-19 Matthias Klose <doko@debian.org>
10219 * libtool-version: Increased `current' to 6.
10221 2004-01-19 Kim Ho <kho@redhat.com>
10223 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10224 (connectJObject): Iterate through the vbox's children to find layout.
10226 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10228 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
10229 isDispatchThread method to replace wrong test condition.
10231 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10233 * java/awt/EventQueue.java (pop): Prevent racing condition to add
10234 events to the queue out of order by acquiring locks in the proper
10235 order and not by releasing one before acquiring the other.
10237 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10239 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
10240 visible so that dialog can be reused.
10242 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10244 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
10245 events may be handled by any queue in the stack.
10247 2004-01-19 Kim Ho <kho@redhat.com>
10249 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
10250 MenuBarPeer parameter.
10251 (removeMenuBarPeer): New native method.
10252 (setMenuBar): Call remove if menu bar is null. Adjust insets
10254 (postSizeAllocateEvent): New method. Called when menu bar size is
10255 allocated. Adjust insets and redo layout.
10256 (GtkFramePeer): Set menu bar during frame creation.
10257 (postConfigureEvent): Adjust position and size to accomodate
10259 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
10260 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
10261 (addNotify): Create the peer if it doesn't exist and call addNotify
10262 for the menu's items.
10263 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
10264 * java/awt/MenuItem.java (addNotify): Create the peer if it
10266 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10267 (removeMenuBarPeer): New method. Remove menu bar on the current
10269 (setMenuBarPeer): Add the menu bar to the current frame and the
10270 callback for size-allocate events on the menu bar.
10271 (getMenuBarHeight): Add menu bar parameter.
10272 (menubar_resize_cb): New callback method for postSizeAllocate events.
10274 Also: Fix indentation on last ChangeLog entry.
10276 2004-01-16 Kim Ho <kho@redhat.com>
10278 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10279 (gtkWidgetGetDimensions): Remove.
10280 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10281 (gtkWidgetGetDimensions): Remove.
10283 2004-01-16 Tom Tromey <tromey@redhat.com>
10285 * java/awt/Container.java: Typo and indentation fixes.
10287 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
10288 * java/lang/natVMClassLoader.cc: ...here. New file.
10289 * Makefile.in: Rebuilt.
10290 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
10292 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10294 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
10295 Discard GDK_ENTER_NOTIFY related to ungrabs.
10297 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10299 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
10300 is called for an intermediate queue.
10302 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
10304 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10305 (window_property_changed_cb): Set id_set.
10307 2004-01-16 Kim Ho <kho@redhat.com>
10309 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
10310 it is a FileDialog and has dimensions of 0 by 0, then the initial
10311 size is set to size request plus insets.
10312 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10313 (gtkWidgetGetDimensions): Override method.
10314 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10315 (gtkWidgetGetDimensions): Override method. Returns size request plus
10318 2004-01-16 Andrew Haley <aph@redhat.com>
10320 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
10321 * sysdep/i386/locks.h: Likewise.
10323 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10325 * java/awt/EventDispatchThread.java (run): Stop running when
10327 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
10328 Reset the queue after transferring its contents.
10329 (push): Start a new dispatch thread if none is running.
10331 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
10333 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10334 (doPolygon): set fill rule of polygon to
10335 WIND_EVEN_ODD by default.
10337 2004-01-15 Olga Rodimina <rodimina@redhat.com>
10339 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10340 Implemented rendering hints related methods.
10341 (getDefaultHints): New helper method. Returns
10342 default rendering hints.
10343 (walkPath): changed to normalize path if
10344 the KEY_STROKE_CONTROL key is in "normalize" mode.
10345 (draw3DRect): changed coordinates of rectangle by +0.5
10346 if in "normalize" mode.
10348 2004-01-15 Tom Tromey <tromey@redhat.com>
10350 * Makefile.in: Rebuilt.
10351 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
10352 (%.lo: %.java) Filter out StackTrace.lo.
10354 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
10356 * configure.in: Add in AC_PREREQ(2.13)
10357 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
10360 2004-01-14 Nathan Bryant <nbryant@optonline.net>
10361 Tom Tromey <tromey@redhat.com>
10364 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
10365 array to superclass.
10366 (init): Changed interface; add URLs here.
10367 (initialize): New static method.
10368 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
10369 (_Jv_RunMain): ... not here.
10371 2004-01-14 Michael Koch <konqueror@gmx.de>
10373 * java/text/MessageFormat.java:
10374 Added descriptions to exceptions.
10375 This fixes PR libgcj/2429.
10377 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10379 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
10380 (push): Make sure push is performed at the top of the thread stack.
10382 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10384 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
10385 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
10386 (native create): Add width and height parameters. Set text
10387 view's size request according to new parameters.
10388 (create): Calculate text view size based on current font's
10389 metrics and number of rows and columns. Set TextArea's font if
10390 not already set. Call native create.
10391 (getMinimumSize): Call minimumSize.
10392 (getPreferredSize): Call preferredSize.
10393 (getHScrollbarHeight): New method.
10394 (getVScrollbarWidth): New method.
10395 (minimumSize): Calculate minimum size based on scrollbar
10396 visibility, scrollbar sizes, font metrics and number of rows and
10398 (preferredSize): Likewise for preferred size.
10399 (gtkTextGetSize): Remove method.
10401 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10403 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10404 (initializeInsets): Remove method.
10405 (GtkComponentPeer): Initialize insets field. Remove call to
10407 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
10409 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
10411 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
10412 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
10413 (latestInsets): Remove field.
10414 (native create): Add insets parameter. Call
10415 window_get_frame_extents. Set the window's default size and
10416 size request based on its frame extents.
10417 (create): Initialize insets.
10418 (postInsetsChangedEvent): New method.
10419 (postConfigureEvent): Remove parameters top, left, bottom,
10420 right. Remove insets-related logic.
10421 (connectJObject): Handle property-notify-event.
10422 (window_get_frame_extents, request_frame_extents,
10423 property_notify_predicate, window_property_changed_cb): New
10425 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10426 (pre_event_handler): Remove insets-related logic for configure
10428 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
10429 Update postConfigureEvent signature.
10431 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10433 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
10434 to handle Window "Closing" events.
10436 2004-01-13 David Jee <djee@redhat.com>
10438 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10439 (setBackground): New method. Children with no explicitly-set
10440 background will be repainted with the parent container's new
10443 2004-01-13 David Jee <djee@redhat.com>
10445 * Makefile.am: Add BitwiseXORComposite.java.
10446 * Makefile.in: Regenerated.
10447 * gcj/Makefile.in: Regenerated.
10448 * include/Makefile.in: Regenerated.
10449 * testsuite/Makefile.in: Regenerated.
10451 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10453 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
10454 not show modal dialogs twice and so that it allows showing a modal
10455 dialog from another modal dialog.
10457 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10459 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
10460 and run secondary dispatch thread to process event queue while this
10463 2004-01-12 Graydon Hoare <graydon@redhat.com>
10465 * gnu/java/awt/gtk/GdkGraphics2D.java
10466 (static): Check GtkToolkit before initializing static state.
10467 (Graphics2D): Don't construct transform with 0.5 unit offset.
10469 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
10471 * gnu/java/awt/BitwiseXORComposite.java: Add.
10472 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
10473 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
10474 (BitwiseXORComposite): Remove inner class.
10476 2004-01-11 Michael Koch <konqueror@gmx.de>
10478 * gnu/java/lang/reflect/TypeSignature.java
10479 (getEncodingOfClass): Documentation fixed.
10480 (getClassForEncoding): Give class loader to Class.forName().
10481 Documentation fixed.
10483 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
10485 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
10487 2004-01-11 Michael Koch <konqueror@gmx.de>
10489 * javax/swing/undo/StateEditable.java
10490 (RCSID): Removed redundant modifiers.
10492 2004-01-10 Michael Koch <konqueror@gmx.de>
10494 * javax/print/attribute/EnumSyntax.java
10495 (getStringTable): Made protected.
10496 (getEnumValueTable): Likewise.
10497 * javax/print/attribute/standard/JobKOctetsProcessed.java
10498 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
10499 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
10500 (JobMediaSheetsCompleted): Made class final.
10501 * javax/print/attribute/standard/OutputDeviceAssigned.java
10502 (getName): Fixed typo.
10503 * javax/print/attribute/standard/RequestingUserName.java
10504 (serialVersionUID): Fixed value.
10506 2004-01-10 Michael Koch <konqueror@gmx.de>
10508 * javax/swing/plaf/basic/BasicButtonUI.java,
10509 javax/swing/plaf/basic/BasicCheckBoxUI.java,
10510 javax/swing/plaf/basic/BasicListUI.java,
10511 javax/swing/plaf/basic/BasicOptionPaneUI.java,
10512 javax/swing/plaf/basic/BasicPanelUI.java,
10513 javax/swing/plaf/basic/BasicRadioButtonUI.java,
10514 javax/swing/plaf/basic/BasicScrollPaneUI.java,
10515 javax/swing/plaf/basic/BasicToggleButtonUI.java,
10516 javax/swing/plaf/basic/BasicViewportUI.java:
10517 Fixed import statements.
10519 2004-01-10 Michael Koch <konqueror@gmx.de>
10521 * gnu/java/awt/image/ImageDecoder.java
10522 (produce): Made public.
10523 * gnu/java/awt/peer/GLightweightPeer.java,
10524 gnu/java/awt/peer/gtk/GtkToolkit.java:
10527 2004-01-10 Michael Koch <konqueror@gmx.de>
10529 * javax/swing/JRadioButtonMenuItem.java,
10530 javax/swing/JSeparator.java,
10531 javax/swing/JSplitPane.java,
10532 javax/swing/JTextPane.java,
10533 javax/swing/JToolBar.java,
10534 javax/swing/ListCellRenderer.java,
10535 javax/swing/ListModel.java,
10536 javax/swing/MenuElement.java,
10537 javax/swing/OverlayLayout.java,
10538 javax/swing/ProgressMonitor.java,
10539 javax/swing/ProgressMonitorInputStream.java,
10540 javax/swing/Renderer.java,
10541 javax/swing/RootPaneContainer.java,
10542 javax/swing/Scrollable.java,
10543 javax/swing/SingleSelectionModel.java,
10544 javax/swing/ToolTipManager.java,
10545 javax/swing/ViewportLayout.java,
10546 javax/swing/event/DocumentEvent.java,
10547 javax/swing/event/SwingPropertyChangeSupport.java,
10548 javax/swing/event/TreeSelectionEvent.java,
10549 javax/swing/event/UndoableEditEvent.java,
10550 javax/swing/text/AbstractDocument.java,
10551 javax/swing/text/AttributeSet.java,
10552 javax/swing/text/Caret.java,
10553 javax/swing/text/ComponentView.java,
10554 javax/swing/text/DefaultCaret.java,
10555 javax/swing/text/DefaultEditorKit.java,
10556 javax/swing/text/Document.java,
10557 javax/swing/text/EditorKit.java,
10558 javax/swing/text/GapContent.java,
10559 javax/swing/text/Keymap.java,
10560 javax/swing/text/MutableAttributeSet.java,
10561 javax/swing/text/PlainEditorKit.java,
10562 javax/swing/text/Segment.java,
10563 javax/swing/text/Style.java,
10564 javax/swing/text/StyledDocument.java,
10565 javax/swing/text/StyledEditorKit.java,
10566 javax/swing/text/TextAction.java,
10567 javax/swing/text/View.java: Fixed import statements.
10569 2004-01-08 Graydon Hoare <graydon@redhat.com>
10571 * javax/swing/JLayeredPane.java: Rewrite to accomodate
10572 djee@redhat.com's recent inverse ordering of Container elements.
10574 2004-01-09 Michael Koch <konqueror@gmx.de>
10576 * gnu/java/lang/ArrayHelper.java
10577 (equalsArray): Removed.
10579 2004-01-09 Andrew Haley <aph@redhat.com>
10581 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
10582 a Utf8Const field before looking at its class.
10584 2004-01-09 Michael Koch <konqueror@gmx.de>
10586 * javax/print/attribute/standard/DocumentName.java,
10587 javax/print/attribute/standard/JobHoldUntil.java,
10588 javax/print/attribute/standard/JobMessageFromOperator.java,
10589 javax/print/attribute/standard/JobName.java,
10590 javax/print/attribute/standard/JobOriginatingUserName.java,
10591 javax/print/attribute/standard/OutputDeviceAssigned.java,
10592 javax/print/attribute/standard/PrinterInfo.java,
10593 javax/print/attribute/standard/PrinterLocation.java,
10594 javax/print/attribute/standard/PrinterMakeAndModel.java,
10595 javax/print/attribute/standard/PrinterMessageFromOperator.java,
10596 javax/print/attribute/standard/PrinterName.java,
10597 javax/print/attribute/standard/RequestingUserName.java: New files.
10598 * Makefile.am (javax_source_files): Added new files.
10599 * Makefile.in: Regenerated.
10601 2004-01-09 Michael Koch <konqueror@gmx.de>
10603 * javax/swing/AbstractAction.java,
10604 javax/swing/AbstractSet.java,
10605 javax/swing/Action.java,
10606 javax/swing/ActionMap.java,
10607 javax/swing/BoundedRangeModel.java,
10608 javax/swing/ButtonModel.java,
10609 javax/swing/CellEditor.java,
10610 javax/swing/CellRendererPane.java,
10611 javax/swing/ComboBoxEditor.java,
10612 javax/swing/DebugGraphics.java,
10613 javax/swing/DefaultCellEditor.java,
10614 javax/swing/DefaultCellRenderer.java,
10615 javax/swing/DefaultComboBoxModel.java,
10616 javax/swing/DefaultDesktopManager.java,
10617 javax/swing/DefaultFocusManager.java,
10618 javax/swing/DefaultListCellRenderer.java,
10619 javax/swing/Icon.java,
10620 javax/swing/JButton.java,
10621 javax/swing/JCheckBoxMenuItem.java,
10622 javax/swing/JDesktopPane.java,
10623 javax/swing/JEditorPane.java,
10624 javax/swing/JMenu.java,
10625 javax/swing/JPanel.java,
10626 javax/swing/JPasswordField.java,
10627 javax/swing/JPopupMenu.java,
10628 javax/swing/JProgressBar.java: Reworked imports.
10630 2004-01-09 Michael Koch <konqueror@gmx.de>
10632 * java/awt/geom/PathIterator.java
10633 (WIND_EVEN_ODD): Removed redundant modifiers.
10634 (WIND_NON_ZERO): Likewise.
10635 (SEG_MOVETO): Likewise.
10636 (SEG_LINETO): Likewise.
10637 (SEG_QUADTO): Likewise.
10638 (SEG_CUBICTO): Likewise.
10639 (SEG_CLOSE): Likewise.
10640 * java/awt/image/SinglePixelPackedSampleModel.java:
10641 Removed redundant semicolon.
10642 * java/io/ObjectInputStream.java
10643 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
10644 * java/util/logging/Filter.java
10645 (isLoggable): Removed redundant modifier.
10646 * java/util/logging/LogManager.java:
10647 Removed redundant semicolon.
10648 * java/util/logging/XMLFormatter.java
10649 (format): Removed unused variable "key".
10651 2004-01-08 Fernando Nasser <fnasser@redhat.com>
10653 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
10654 New name for the former setFile native method.
10655 (setFile): New method.
10656 (setDirectory): Implemented.
10657 (connectSignals): New native method.
10658 (setFilenameFilter): Improve comment.
10659 (getGraphics): Comment.
10660 (gtkHideFileDialog): New method.
10661 (gtkDisposeFileDialog): New method.
10662 (gtkSetFilename): New method.
10663 * java/awt/Dialog.java (show): Block on modal dialogs, but only
10664 for FileDialog for now.
10665 (hide): New method.
10666 (dispose): New method.
10667 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
10668 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
10669 deprecated creation functions. Make dialog modal. Add it to the
10671 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
10673 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
10675 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
10677 (window_closed): New function.
10678 (ok_clicked): New function.
10679 (cancel_clicked): New function.
10681 2004-01-08 Michael Koch <konqueror@gmx.de>
10683 * javax/swing/JLayeredPane.java: Revert changes to standard
10684 boilerplate, reworked imports.
10686 2004-01-07 Tom Tromey <tromey@redhat.com>
10689 * verify.cc (state::merge): Copy changed locals out of subroutine
10691 (state::FLAG_CHANGED): New const.
10692 (state::FLAG_UNUSED): Likewise.
10693 (state::local_changed): Removed. Updated all users.
10694 (state::flags): New field.
10695 (state::merge): Added jsr_semantics argument, more logic.
10696 (push_jump_merge): Added jsr_semantics argument.
10697 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
10698 merging through the jsr instruction.
10700 2004-01-07 Tom Tromey <tromey@redhat.com>
10702 * scripts/MakeDefaultMimeTypes.java: Use \n, not
10705 2004-01-07 Graydon Hoare <graydon@redhat.com>
10707 * java/awt/Container.java (LightweightDispatcher): Implement.
10708 (visitChild): Reuse graphics object.
10709 (dispatchEventImpl): Optionally dispatch to lightweight.
10710 (addNotifyContainerChildren): Build LightweightDispatcher.
10712 2004-01-07 David Jee <djee@redhat.com>
10714 * java/awt/Container.java
10715 (update): Clear only the clipped region, instead of clearing the
10717 (visitChildren): Visit children in descending order.
10719 2004-01-07 Michael Koch <konqueror@gmx.de>
10721 * java/lang/reflect/Array.java: Merged documentation with classpath.
10723 2004-01-07 Michael Koch <konqueror@gmx.de>
10725 * java/text/CollationElementIterator.java
10726 (textIndex): Renamed from index.
10727 * java/text/CollationKey.java
10728 (collator): New member.
10729 (CollationKey): New argument for parent collator.
10730 (equals): Check for same collator, source string and key array.
10731 * java/text/RuleBasedCollator.java:
10733 (RuleBasedCollator): Don't re-initialize frenchAccents with default
10735 (getCollationElementIterator): Rewritten.
10736 (getCollationKey): Added new argument to CollationKey constructor.
10738 2004-01-07 Michael Koch <konqueror@gmx.de>
10740 * gnu/java/nio/DatagramChannelImpl.java
10741 (blocking): Removed.
10742 (DatagramChannelImpl): Call configureBlocking().
10743 (implConfigureBlocking): Dont initialize blocking.
10744 * gnu/java/nio/ServerSocketChannelImpl.java
10745 (blocking): Removed.
10746 (ServerSocketChannelImpl): Call configureBlocking().
10747 (implConfigureBlocking): Dont initialize blocking.
10748 * gnu/java/nio/SocketChannelImpl.java
10749 (blocking): Removed.
10750 (SocketChannelImpl): Call configureBlocking().
10751 (implConfigureBlocking): Dont initialize blocking.
10752 (connect): Use isBlocking().
10753 * java/nio/channels/spi/AbstractSelectableChannel.java
10754 (configureBlocking): Use blockingLock() instead of LOCK.
10755 Set blocking after successfully called implConfigureBlocking().
10756 (register): Use blockingLock() instead of LOCK.
10758 2004-01-07 Michael Koch <konqueror@gmx.de>
10760 * java/net/ServerSocket.java (isBound): Fixed documentation.
10762 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
10764 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
10765 (changeEvent): Create event object on demand.
10766 (DefaultBoundedRangeModel, toString, setValue, setExtent,
10767 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
10768 fireStateChanged): Re-written.
10769 * javax/swing/event/EventListenerList.java: Reformatted, document
10771 (toString): Implemented.
10772 (getListeners): Re-written.
10773 (remove): Re-written.
10775 (NO_LISTENERS): New singleton field.
10776 (listenerList): Declare as transient; document.
10777 (serialVersionUID): Document.
10778 (getListenerCount(Class)): More efficient implementation,
10779 also accepts null argument. Improve Javadoc.
10780 (getListenerCount()): Remove unnecessary cast; docfix.
10781 * javax/swing/undo/UndoableEditSupport.java:
10782 Re-format, document.
10783 (UndoableEditSupport): Set realSource field. Improve documentation.
10784 (_postEdit): Iterate over cloned listener vector.
10785 (toString): Don't emit realSource.
10786 (beginUpdate, endUpdate): Support nested updates.
10787 (postEdit): Use compound edit if present.
10789 2004-01-06 Graydon Hoare <graydon@redhat.com>
10791 * java/awt/Container.java (swapComponents): Add forgotten
10792 function, required for JLayeredPane change.
10794 2004-01-06 Michael Koch <konqueror@gmx.de>
10796 * java/text/CollationElementIterator.java: Reformated.
10797 (CollationElementIterator): Changed order of arguments.
10798 * java/text/RuleBasedCollator.java
10799 (RuleBasedCollator): Merged class documentation.
10800 (CollationElement): Added documentation.
10801 (compare): Reformated, renamed arguments.
10802 (equals): Likewise.
10803 (getCollationElementIterator): Likewise.
10804 (getCollationKey): Likewise.
10806 2004-01-06 Graydon Hoare <graydon@redhat.com>
10808 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
10810 2004-01-06 Michael Koch <konqueror@gmx.de>
10812 * gnu/java/net/protocol/file/Connection.java:
10813 Reformated copyright.
10814 (hdrHash): Removed.
10816 (gotHeaders): Removed.
10817 (getHeaderField): Removed.
10818 (getHeaderField): Removed.
10819 (getHeaderFieldKey): Removed.
10821 (getField): Removed.
10822 (getHeaders): Removed.
10824 2004-01-06 Michael Koch <konqueror@gmx.de>
10826 * javax/print/attribute/standard/DateTimeAtCompleted.java,
10827 javax/print/attribute/standard/DateTimeAtCreation.java,
10828 javax/print/attribute/standard/DateTimeAtProcessing.java,
10829 javax/print/attribute/standard/JobImpressionsCompleted.java,
10830 javax/print/attribute/standard/JobKOctets.java,
10831 javax/print/attribute/standard/JobKOctetsProcessed.java,
10832 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
10833 javax/print/attribute/standard/JobPrioritySupported.java: New files.
10834 * Makefile.am (javax_source_files): Added new files.
10835 * Makefile.in: Regenerated.
10837 2004-01-06 Michael Koch <konqueror@gmx.de>
10839 * java/net/URLConnection.java
10840 (contentHandler): Removed.
10842 (getHeaderFields): Return an empty map instead of null.
10843 (getContent): Connect if needed, renamed "cType" to "type" and
10844 "contentHandler" to "ch" and made it a local variable.
10845 (getPermission): Don't use package in class name.
10846 (setDefaultRequestProperty): Fixed typo in documentation.
10847 (initializeDateFormats): Made locale a local variable.
10849 2004-01-06 Michael Koch <konqueror@gmx.de>
10851 * java/lang/Package.java
10852 (getPackage): Get the current class loader directly.
10853 * java/lang/SecurityManager.java
10854 (currentLoadedClass): Dont iterate over class contexts.
10855 (classLoaderDepth): Don't check class loaders if everything is allowed.
10857 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
10859 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10860 (pre_event_handler): Set all insets to 0 when a Configure event
10861 is received for a GtkPlug.
10862 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
10863 Make handle long, not int.
10864 (EmbeddedWindow()): New constructor.
10865 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
10867 (setHandle): New method.
10868 (getHandle): Return long, not int.
10869 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
10871 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
10872 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
10873 (create(long)): Take long parameter, not int. Cast gtk_plug_new
10874 argument to GdkNativeWindow.
10875 (construct): New method.
10876 (embed): New method.
10878 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
10879 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
10880 (create(int, int)): New method.
10881 (create): Call new create method.
10882 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
10884 (childResized): Remove native implementation. Implement in
10886 (getHScrollbarHeight, getVScrollbarWidth): Call
10887 gtk_widget_size_request to get scrollbar dimensions.
10888 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
10889 call getVScrollbarWidth and getHScrollbarHeight when vertical
10890 and horizontal scrollbars respectively are needed.
10891 (doLayout): Enlarge child if it is smaller than the viewport.
10893 2004-01-05 Fernando Nasser <fnasser@redhat.com>
10895 * java/awt/Dialog.java (constructor): Accept null title as per spec.
10896 * java/awt/FileDialog.java (constructor): Throw exception on invalid
10897 argument as per spec.
10899 2004-01-05 Fernando Nasser <fnasser@redhat.com>
10901 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
10903 (remove): Ditto. Also, Check for valid argument.
10904 (removeAll): Use peer interface method.
10905 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
10906 native add function.
10907 (nativeRemove): New name for native remove function.
10908 (getHistory): New native function.
10909 (constructor): Generate ItemEvent.
10910 (add): Ditto, if selection is changed.
10911 (remove): Ditto, ditto.
10912 (removeAll): Add implementation.
10913 (handleEvent): Remove. Dead code.
10914 (choicePostItemEvent): Add comment.
10915 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
10916 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
10917 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
10918 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
10919 comments and fix condition to change selection.
10920 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
10921 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
10922 remove all capability.
10923 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
10924 (item_activate): Add cast to remove compiler warning.
10926 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
10928 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
10929 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10930 (getPreferredSize): Call preferredSize.
10931 (preferredSize): Call gtkWidgetGetPreferredDimensions.
10932 (getMinimumSize): Call minimumSize.
10933 (minimumSize): Call gtkWidgetGetPreferredDimensions.
10934 (gtkWidgetGetDimensions): Return the peer widget's current size
10936 (gtkWidgetGetPreferredDimensions): Return the peer widget's
10937 natural size request.
10939 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
10941 Thanks to Brian Gough <bjg@network-theory.com>
10942 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
10943 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
10945 2004-01-04 Matthias Klose <doko@debian.org>
10947 * aclocal.m4: Rebuilt using "aclocal -I .".
10948 * configure: Rebuilt.
10950 2004-01-03 Per Bothner <per@bothner.com>
10952 * java/util/Date.java (parse): Fix a number of problems.
10953 (skipParens): Remove no-longer-needed method.