1 2004-11-24 Michael Koch <konqueror@gmx.de>
3 * java/util/ResourceBundle.java: Reformatted.
4 (tryBundle): Fixed javadoc.
6 2004-11-24 Jeroen Frijters <jeroen@frijters.net>
8 * java/text/MessageFormat.java
9 (formatInternal): Made private.
11 2004-11-24 Michael Koch <konqueror@gmx.de>
13 * java/nio/DirectByteBufferImpl.java
14 (ReadWrite.ReadWrite): New constructor.
15 (DirectByteBufferImpl): Likewise.
16 * jni.cc (_Jv_JNI_NewDirectByteBuffer):
17 Use DirectByteBufferImpl.ReadWrite.
19 Generate java/nio/DirectByteBufferImpl$ReadWrite.h.
20 * Makefile.in: Rgenerated.
22 2004-11-24 Jeroen Frijters <address@bogus.example.com>
24 * java/nio/DirectByteBufferImpl.java
25 (ReadOnly): New inner subclass.
26 (ReadWrite): New inner subclass.
27 (owner): Made final and private.
28 (address): Made final.
29 (DirectByteBufferImpl(int)): New constructor.
30 (DirectByteBufferImpl(Object,RawData,int,int,int)): New constructor.
31 (DirectByteBufferImpl(Object,RawData,int,int,int,boolean)): Removed.
32 (allocate): Modified to instantiate ReadWrite subclass.
33 (finalize): Fixed to only free the buffer, if we own it.
34 (put): Removed read-only check.
35 (slice, duplicate): Modified to instantiate appropriate subclass.
36 (isReadOnly): Removed.
37 * java/nio/MappedByteBufferImpl.java
38 (slice, duplicate): Modified to instantiate appropriate
39 DirectByteBufferImpl subclass.
41 2004-11-24 Michael Koch <konqueror@gmx.de>
43 * gnu/java/nio/NIOServerSocket.java: Added email to @author tag.
44 * java/nio/DirectByteBufferImpl.java:
45 Moved native methods to java.nio.VMDirectByteBuffer class.
46 * java/nio/MappedByteBufferImpl.java:
47 Use native methods from java.nio.VMDirectByteBuffer class.
48 * java/nio/VMDirectByteBuffer.java: New file,
49 * java/nio/natDirectByteBufferImpl.cc:
50 Moved all methods into java.nio.VMDirectByteBuffer class.
51 * java/nio/channels/spi/AbstractSelectableChannel.java
52 (register): Only re-use valid keys.
53 * Makefile.am: Added java/nio/VMDirectByteBuffer.java.
54 * Makefile.in: Regenerated.
56 2004-11-24 Michael Koch <konqueror@gmx.de>
58 * java/nio/DirectByteBufferImpl.java,
59 java/nio/MappedByteBufferImpl.java:
62 2004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
64 * testsuite/lib/libjava.exp,
65 testsuite/libjava.jacks/jacks.exp: Use new procs in target-libpath.exp.
67 2004-11-23 Richard Sandiford <rsandifo@redhat.com>
69 * configure.host: Enable the interpreter for mips*-*-linux*.
71 2004-11-23 Michael Koch <konqueror@gmx.de>
73 * java/lang/String.java (rehash): Removed.
74 * java/lang/natString.cc (rehash): Made static.
75 (_Jv_NewStringUtf8Const): Use static rehash method.
77 2004-11-23 Michael Koch <konqueror@gmx.de>
79 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
80 include/Makefile.in, testsuite/Makefile.in: Regenerated.
82 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
85 * configure.ac (threading): Accept 'posix95'.
86 * configure: Regenerate.
88 2004-11-22 Michael Koch <konqueror@gmx.de>
90 * gnu/java/nio/SocketChannelImpl.java
91 (read): Made check for blocking un-ambiguous.
92 Removed wrong check for data array length.
94 2004-11-21 Michael Koch <konqueror@gmx.de>
96 * gnu/java/nio/SocketChannelImpl.java
97 (read): Only return 0 when no bytes for reading available in
99 * java/nio/channels/SocketChannel.java:
100 Added some missing @return tags.
102 2004-11-21 Michael Koch <konqueror@gmx.de>
104 * java/beans/PropertyChangeSupport.java
105 (propertyChangeSupportSerializedDataVersion): Made static.
106 * java/beans/VetoableChangeSupport.java
107 (propertyChangeSupportSerializedDataVersion): Likewise.
109 2004-11-18 Jeroen Frijters <jeroen@frijters.net>
111 * java/net/URLStreamHandler.java
112 (parseURL): Fixed file path canonicalisation.
114 2004-11-18 Jeroen Frijters <jeroen@frijters.net>
116 * java/net/URLStreamHandler.java
117 (parseURL): Fixed file path canonicalisation.
119 2004-11-18 Michael Koch <konqueror@gmx.de>
121 * java/net/URLClassLoader.java: Whitespace cleanup.
123 2004-11-18 Robert Schuster <address@bogus.example.com>
126 * java/beans/PropertyDescriptor.java:
127 (setReadMethod): New method
128 (setWriteMethod): New method
129 (equals): Implemented (1.4)
130 (checkMethods): operates on arguments now (private)
133 2004-11-18 Mattias Rehnberg <Mattias.Rehnberg@home.se>
135 * java/net/Inet6Address.java (getHostAddress): Fix textual
136 representation of IPv6 address with embedded zeroes
137 to conform to RFC 2373.
139 2004-11-18 Jeroen Frijters <address@bogus.example.com>
141 * java/lang/StackTraceElement.java: Made final.
142 * java/nio/channels/Channels.java: Added private constructor.
143 * java/rmi/Naming.java: Added private constructor.
144 * java/rmi/registry/LocateRegistry.java: Added private constructor.
145 * java/rmi/server/RMIClassLoader.java: Added private constructor.
146 * java/security/KeyPairGeneratorSpi.java
147 (clone): Made protected and simplified implementation.
148 * java/text/DateFormat.java
149 (allFields): Made package accessible.
150 * java/text/DecimalFormat.java
151 (formatInternal): Made private.
152 * java/text/Format.java
153 (formatInternal): Made private.
154 * java/util/logging/Handler.java: Made constructor protected.
155 * java/util/regex/Matcher.java: Made final.
156 * java/util/regex/Pattern.java: Made final.
157 * javax/crypto/CipherInputStream.java
158 (mark): Corrected mark parameter type (from long to int).
159 * javax/crypto/ExemptionMechanism.java
161 * javax/crypto/Mac.java
162 (getMacLength): Made final.
164 * javax/imageio/ImageIO.java: Added private constructor.
165 * javax/imageio/stream/ImageInputStreamImpl.java
166 (checkClosed): Made final.
167 * javax/net/ssl/SSLPermission.java: Made final.
168 * javax/print/DocFlavor.java
169 (hostEncoding): Added work-around to prevent the field from being
170 a compile time constant.
171 * javax/print/attribute/AttributeSetUtilities.java: Added private
173 (UnmodifiableDocAttributeSet): Made private.
174 (UnmodifiablePrintJobAttributeSet): Made private.
175 (UnmodifiablePrintRequestAttributeSet): Made private.
176 (UnmodifiablePrintServiceAttributeSet): Made private.
177 (SynchronizedAttributeSet): Made private.
178 (SynchronizedDocAttributeSet): Made private.
179 (SynchronizedPrintJobAttributeSet): Made private.
180 (SynchronizedPrintRequestAttributeSet): Made private.
181 (SynchronizedPrintServiceAttributeSet): Made private.
182 * javax/security/auth/PrivateCredentialPermission.java: Made final.
184 2004-11-18 Craig Black <craig.black@aonix.com>
186 * gnu/java/beans/BeanInfoEmbryo.java: Use TreeMap for proper sorting.
188 2004-11-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
190 * Makefile.am: Correct friend function declaration.
191 * Makefile.in: Regenerated.
192 * include/boehm-gc.h (JV_MARKOBJ_DECL, JV_MARKARRAY_DECL): Add
193 scope to function names. Declare functions directly.
194 * libjava/java/lang/Class.h
195 (java::lang::Class): Correct friend class declaration.
196 (_Jv_InitClass, _Jv_GetArrayClass): Move definition to global
198 * libjava/java/lang/Class.h
199 (java::lang::Object): Correct friend class declaration.
201 2004-11-17 David Daney <ddaney@avtrex.com>
203 * java/io/BufferedInputStream.java (skip): Return zero on EOF.
205 2004-11-17 Michael Koch <konqueror@gmx.de>
207 * java/net/Socket.java (getPort): Return 0 in error case.
209 2004-11-17 Michael Koch <konqueror@gmx.de>
211 * java/nio/DirectByteBufferImpl.java
212 (owner): Updated comment.
213 (allocate): New method.
215 2004-11-17 Michael Koch <konqueror@gmx.de>
217 * java/net/URL.java (URL): Handle case when argument is null.
219 2004-11-17 Michael Koch <konqueror@gmx.de>
221 * java/beans/Beans.java,
222 java/beans/PropertyChangeEvent.java,
223 java/beans/PropertyEditorSupport.java:
226 2004-11-17 Michael Koch <konqueror@gmx.de>
228 * java/util/Timer.java (DEFAULT_SIZE): Made static.
230 2004-11-17 Michael Koch <konqueror@gmx.de>
232 * java/net/InetAddress.java (getCanonicalHostName):
233 Support IPv6 addresses.
235 2004-11-16 Michael Koch <konqueror@gmx.de>
237 * java/lang/Object.java: Added javadocs all over (merged from GNU
240 2004-11-16 Andreas Tobler <a.tobler@schweiz.ch>
242 * java/security/Security.java (Security): Silence the warning about no
243 providers found in the no debug case.
245 2004-11-16 Michael Koch <konqueror@gmx.de>
247 * java/net/InetAddress.java
248 (toString): Merged from GNU classpath.
250 2004-11-16 Michael Koch <konqueror@gmx.de>
252 * java/awt/geom/doc-files/Area-1.png,
253 java/awt/geom/doc-files/Ellipse-1.png,
254 java/awt/geom/doc-files/GeneralPath-1.png:
257 2004-11-16 Michael Koch <konqueror@gmx.de>
259 * java/util/Currency.java (cache): Fix modifier order.
261 2004-11-16 Michael Koch <konqueror@gmx.de>
263 * java/io/BufferedReader.java,
264 java/io/FileInputStream.java,
265 java/io/FileOutputStream.java,
266 java/io/FileWriter.java,
267 java/io/OutputStreamWriter.java,
268 java/io/PipedInputStream.java,
269 java/io/PipedOutputStream.java,
270 java/io/PipedReader.java,
271 java/io/PipedWriter.java,
272 java/io/PrintStream.java,
273 java/io/PushbackInputStream.java,
274 java/io/RandomAccessFile.java,
276 java/io/StreamTokenizer.java,
277 java/io/StringReader.java,
278 java/net/NetworkInterface.java,
279 java/net/URLClassLoader.java,
280 java/nio/ByteOrder.java,
281 java/nio/channels/Channel.java:
282 Fixed javadocs all over.
284 2004-11-16 Andreas Tobler <a.tobler@schweiz.ch>
286 * Makefile.am: Add imported files.
287 * Makefile.in: Regenerate.
289 2004-10-24 Casey Marshall <csm@gnu.org>
291 * javax/security/auth/login/LoginContext.java: Implemented.
292 * javax/security/auth/login/Configuration.java (getConfig): New method.
293 * javax/security/auth/spi/LoginModule.java,
294 * gnu/java/security/action/GetSecurityPropertyAction.java: New files.
296 2004-11-15 Andreas Tobler <a.tobler@schweiz.ch>
298 Import/Merge the X.509 certificate code from Classpath.
300 * Makefile.am: Add imported files.
301 * Makefile.in: Regenerate.
303 2004-11-07 Casey Marshall <csm@gnu.org>
305 * gnu/java/security/provider/Gnu.java(<init>): Add entries in a
306 priviliged action. Add new algorithms.
307 * gnu/java/security/provider/X509CertificateFactory.java
308 (engineGenerateCertificate): Chain exceptions.
309 (engineGenerateCertificates): Likewise.
310 (engineGenerateCRL): Likewise.
311 (engineGenerateCRLs): Likewise.
312 (engineGenerateCertPath): New methods.
313 (generateCert): Throw exception if 'inStream' is null.
314 (generateCRL): Likewise.
315 * gnu/java/security/x509/X500DistinguishedName.java: Replaced with
316 version from GNU Crypto CVS.
317 * gnu/java/security/x509/X509CRL.java: Likewise.
318 * gnu/java/security/x509/X509CRLEntry.java: Likewise.
319 * gnu/java/security/x509/X509Certificate.java: Likewise.
320 * java/security/cert/TrustAnchor.java: Call 'toString' and not
322 * gnu/java/security/provider/CollectionCertStoreImpl.java,
323 * gnu/java/security/provider/EncodedKeyFactory.java,
324 * gnu/java/security/provider/GnuDHPublicKey.java,
325 * gnu/java/security/provider/GnuRSAPrivateKey.java,
326 * gnu/java/security/provider/GnuRSAPublicKey.java,
327 * gnu/java/security/provider/MD2withRSA.java,
328 * gnu/java/security/provider/MD4withRSA.java,
329 * gnu/java/security/provider/MD5withRSA.java,
330 * gnu/java/security/provider/PKIXCertPathValidatorImpl.java,
331 * gnu/java/security/provider/RSA.java,
332 * gnu/java/security/provider/RSAKeyFactory.java,
333 * gnu/java/security/provider/SHA1withRSA.java,
334 * gnu/java/security/x509/GnuPKIExtension.java,
335 * gnu/java/security/x509/PolicyNodeImpl.java,
336 * gnu/java/security/x509/Util.java,
337 * gnu/java/security/x509/X509CRLSelectorImpl.java,
338 * gnu/java/security/x509/X509CertPath.java,
339 * gnu/java/security/x509/X509CertSelectorImpl.java,
340 * gnu/java/security/x509/ext/AuthorityKeyIdentifier.java,
341 * gnu/java/security/x509/ext/BasicConstraints.java,
342 * gnu/java/security/x509/ext/CRLNumber.java,
343 * gnu/java/security/x509/ext/CertificatePolicies.java,
344 * gnu/java/security/x509/ext/ExtendedKeyUsage.java,
345 * gnu/java/security/x509/ext/Extension.java,
346 * gnu/java/security/x509/ext/GeneralNames.java,
347 * gnu/java/security/x509/ext/IssuerAlternativeNames.java,
348 * gnu/java/security/x509/ext/KeyUsage.java,
349 * gnu/java/security/x509/ext/PolicyConstraint.java,
350 * gnu/java/security/x509/ext/PolicyMappings.java,
351 * gnu/java/security/x509/ext/PrivateKeyUsagePeriod.java,
352 * gnu/java/security/x509/ext/ReasonCode.java,
353 * gnu/java/security/x509/ext/SubjectAlternativeNames.java,
354 * gnu/java/security/x509/ext/SubjectKeyIdentifier.java: New files.
356 2004-11-07 Casey Marshall <csm@gnu.org>
358 * gnu/java/security/x509/X509CRL.java:
359 Missed import statements in previous checkin.
361 2004-11-07 Casey Marshall <csm@gnu.org>
363 * gnu/java/security/x509/X509CertPath.java (parse): Fixed reference
364 to 'X509CertificateImpl' from previous checkin.
366 2004-11-12 Andrew Pinski <pinskia@physics.uc.edu>
369 * testsuite/lib/libjava.exp: Set LC_ALL and LANG to C.
371 2004-11-11 Casey Marshall <csm@gnu.org>
373 * gnu/java/nio/FileLock.java (isValid): locks are valid if the
375 * gnu/java/nio/channels/natFileChannelPosix.cc (lock): use
376 'F_RDLCK' for shared locks, 'F_WRLCK' for exclusive locks.
378 2004-11-11 Robert Schuster <thebohemian@gmx.net>
381 * gnu/java/beans/IntrospectionIncubator.java:
382 (addMethod): Corrected classification of normal and property methods.
383 (capitalize): Added documentation.
384 (DoubleKey): [class] Added documentation.
386 2004-11-09 Tom Tromey <tromey@redhat.com>
388 * include/jni.h: Added FIXME.
390 2004-11-08 Tom Tromey <tromey@redhat.com>
392 * java/util/GregorianCalendar.java: Removed unused imports.
393 * java/util/Vector.java: Removed unused import.
395 2004-11-07 Michael Koch <konqueror@gmx.de>
397 * java/lang/Process.java:
400 2004-11-07 Jeroen Frijters <jeroen@frijters.net>
402 * java/util/zip/ZipEntry.java
403 (KNOWN_SIZE, KNOWN_CSIZE, KNOWN_CRC, KNOWN_TIME): Made final.
405 2004-11-07 Robert Schuster <theBohemian@gmx.net>
408 * gnu/java/beans/IntrospectionIncubator.java:
409 (addMethod): static methods are discarded now, too.
411 2004-11-07 Andrew John Hughes <gnu_andrew@member.fsf.org>
413 * java/util/GregorianCalendar.java
414 Added/amended documentation.
416 2004-11-07 Andrew John Hughes <gnu_andrew@member.fsf.org>
418 * java/util/Collections.java
420 * java/util/SortedMap.java
421 Clarified some method examples.
422 * java/util/SortedSet.java
423 Clarified some method examples.
425 2004-11-07 Andrew John Hughes <gnu_andrew@member.fsf.org>
427 * java/util/Currency.java
428 Documented variables and methods more fully.
429 Caches the currency instances, so that a request
430 for a locale, l, only ever returns the same
431 instance (i.e. successive calls to getInstance(l)
432 are reference equivalent (==)).
434 2004-11-07 Andrew John Hughes <gnu_andrew@member.fsf.org>
436 * java/util/Date.java
437 Added missing documentation.
439 2004-11-06 Michael Koch <konqueror@gmx.de>
441 * java/util/zip/CheckedInputStream.java,
442 java/util/zip/InflaterInputStream.java,
443 java/util/zip/ZipFile.java,
444 java/util/zip/ZipInputStream.java:
447 2004-11-06 Tom Tromey <tromey@redhat.com>
449 * gnu/java/rmi/server/UnicastConnectionManager.java (clients): Now
451 (connections): Likewise.
452 (scavenger): Likewise.
453 * gnu/java/rmi/server/ConnectionRunnerPool.java (freelist): Now
455 * gnu/java/rmi/server/UnicastRemoteCall.java (vec): Now
458 * gnu/classpath/ServiceFactory.java (log): Now package-private.
460 2004-11-06 Tom Tromey <tromey@redhat.com>
462 * javax/naming/directory/BasicAttributes.java (attributes): Now
464 * javax/imageio/spi/ServiceRegistry.java (categories): Now
467 2004-11-06 Tom Tromey <tromey@redhat.com>
469 * java/net/URLClassLoader.java (URLClassLoader): Now
471 * java/nio/charset/CoderResult.java (CoderResult): Now
474 (Cache): Likewise. Don't synchronize on `this'.
475 * java/rmi/server/RMIClassLoader.java (MyClassLoader): Now
477 * java/util/TimeZone.java (timezones): Now package-private.
479 2004-11-06 Tom Tromey <tromey@redhat.com>
481 * java/security/Permissions.java (perms): Now package-private.
482 * java/security/UnresolvedPermission.java (permissions): Now
485 2004-11-06 Tom Tromey <tromey@redhat.com>
487 * java/io/FilePermission.java: Reindented.
489 2004-11-06 Tom Tromey <tromey@redhat.com>
491 * java/io/ObjectOutputStream.java (currentObjectStreamClass): Now
493 (setBlockDataMode): Likewise.
495 2004-11-06 Tom Tromey <tromey@redhat.com>
497 * gnu/java/nio/charset/ISO_8859_1.java (Decoder): Now
500 * gnu/java/nio/charset/UTF_8.java (Decoder): Now package-private.
502 * gnu/java/nio/charset/US_ASCII.java (Decoder): Now
506 2004-11-06 Mark Wielaard <mark@klomp.org>
508 * Makefile.am: Add new javax.imageio files.
509 * Makefile.in: Regenerated.
511 2004-11-06 Michael Koch <konqueror@gmx.de>
513 * javax/imageio/event/IIOReadProgressListener.java,
514 javax/imageio/event/IIOReadUpdateListener.java,
515 javax/imageio/event/IIOReadWarningListener.java,
516 javax/imageio/event/IIOWriteProgressListener.java,
517 javax/imageio/event/IIOWriteWarningListener.java,
518 javax/imageio/metadata/IIOMetadataFormat.java,
519 javax/imageio/stream/FileCacheImageInputStream.java,
520 javax/imageio/stream/FileCacheImageOutputStream.java,
521 javax/imageio/stream/ImageInputStreamImpl.java:
523 * javax/imageio/metadata/package.html: New file.
525 2004-11-06 Michael Koch <konqueror@gmx.de>
527 * javax/imageio/spi/ImageReaderSpi.java
528 (isOwnReader): New method.
529 * javax/imageio/spi/ImageWriterSpi.java
530 (isOwnWriter): Likewise.
532 2004-11-06 Michael Koch <konqueror@gmx.de>
534 * javax/imageio/ImageWriter.java
535 (convertImageMetadata): New abstract method.
536 (convertStreamMetadata): Likewise.
538 * javax/imageio/stream/FileCacheImageInputStream.java
539 (close): Fixed setting of stream to null.
540 (checkStreamClosed): Throws IOException.
542 2004-11-06 Michael Koch <konqueror@gmx.de>
544 * javax/imageio/stream/FileCacheImageInputStream.java,
545 javax/imageio/stream/FileCacheImageOutputStream.java,
546 javax/imageio/stream/FileImageInputStream.java,
547 javax/imageio/stream/FileImageOutputStream.java,
548 javax/imageio/stream/MemoryCacheImageInputStream.java,
549 javax/imageio/stream/MemoryCacheImageOutputStream.java:
552 2004-11-06 Michael Koch <konqueror@gmx.de>
554 * javax/imageio/metadata/IIOInvalidTreeException.java,
555 javax/imageio/metadata/IIOMetadataFormatImpl.java,
556 javax/imageio/metadata/IIOMetadataNode.java:
559 2004-11-06 Michael Koch <konqueror@gmx.de>
561 * javax/imageio/stream/ImageInputStreamImpl.java,
562 javax/imageio/stream/ImageOutputStreamImpl.java:
565 2004-11-06 Michael Koch <konqueror@gmx.de>
567 * javax/imageio/ImageIO.java:
568 Added much new methods.
570 2004-11-06 Michael Koch <konqueror@gmx.de>
572 * javax/imageio/ImageReader.java,
573 javax/imageio/ImageWriter.java,
574 javax/imageio/spi/ImageWriterSpi.java:
575 Add SOME new methods.
577 2004-11-06 Michael Koch <konqueror@gmx.de>
579 * javax/imageio/IIOParam.java,
580 javax/imageio/ImageReadParam.java,
581 javax/imageio/ImageReader.java,
582 javax/imageio/ImageWriter.java:
584 * javax/imageio/spi/ImageReaderSpi.java,
585 javax/imageio/spi/ImageWriterSpi.java:
588 2004-11-06 Michael Koch <konqueror@gmx.de>
590 * javax/imageio/ImageWriteParam.java,
591 javax/imageio/metadata/IIOMetadataFormat.java:
594 2004-11-06 Michael Koch <konqueror@gmx.de>
596 * javax/imageio/ImageTypeSpecifier.java:
599 2004-11-06 Michael Koch <konqueror@gmx.de>
601 * javax/imageio/metadata/IIOMetadata.java:
604 2004-11-06 Michael Koch <konqueror@gmx.de>
606 * javax/imageio/IIOImage.java,
607 javax/imageio/ImageReadParam.java,
608 javax/imageio/metadata/IIOMetadataController.java,
609 javax/imageio/metadata/IIOMetadataFormat.java:
611 * javax/imageio/stream/ImageOutputStream.java:
614 2004-11-06 Michael Koch <konqueror@gmx.de>
616 * javax/imageio/IIOParam.java,
617 javax/imageio/IIOParamController.java,
618 javax/imageio/ImageTypeSpecifier.java,
619 javax/imageio/ImageWriteParam.java,
620 javax/imageio/metadata/IIOMetadata.java:
622 * javax/imageio/ImageTranscoder.java:
625 2004-11-06 Michael Koch <konqueror@gmx.de>
627 * javax/imageio/spi/ImageInputStreamSpi.java,
628 javax/imageio/spi/ImageOutputStreamSpi.java:
629 Reworked import startments.
630 * javax/imageio/spi/ServiceRegistry.java:
631 Reworked import startments. Fixed XHTML in javadocs.
632 (ServiceRegistry): Added @param tag to javadoc.
633 * javax/imageio/stream/ImageInputStream.java
634 (mark): Doesn't throws IOException;
636 2004-11-06 Michael Koch <konqueror@gmx.de>
638 * javax/imageio/ImageIO.java:
641 2004-11-06 Michael Koch <konqueror@gmx.de>
643 * javax/imageio/spi/IIORegistry.java
644 (static): Don't register ImageReaderSpi.class and
645 ImageWriterSpi.class yet.
647 2004-11-06 Michael Koch <konqueror@gmx.de>
649 * javax/imageio/spi/IIORegistry.java:
652 2004-11-06 Noa Resare <noa@resare.com>
654 * java/net/Socket.java (getPort): Return 0 instead of -1 on
657 2004-11-06 Michael Koch <konqueror@gmx.de>
659 * java/lang/StringBuffer.java,
660 java/lang/Throwable.java,
661 java/security/spec/DSAParameterSpec.java,
662 java/util/zip/ZipEntry.java,
663 java/util/zip/ZipFile.java,
664 java/util/zip/ZipInputStream.java,
665 java/util/zip/ZipOutputStream.java:
666 Removed redundant and reordered modifiers.
668 2004-11-06 Mattias Rehnberg <Mattias.Rehnberg@home.se>
670 * java/io/Vector.java
671 (writeObject): New function to serialized output thread safe.
673 * java/io/ObjectOutputStream.java
674 (writeObject): Move the assignment of the class handle to after
675 the assignment of class descriptor handle.
677 2004-11-06 Robert Schuster <thebohemian@gmx.net>
679 Fixes documentation and indentation
680 * java/beans/PropertyEditorSupport.java:
681 reworked initial API doc
682 (value): changed name from val
684 2004-11-06 Robert Schuster <thebohemian@gmx.net>
687 * java/beans/PropertyEditorSupport.java
688 (PropertyEditorSupport()): Changed modifier to public
689 (PropertyEditorSupport(Object): Changed modifier to public
690 (setSource): New method
691 (getSource): New method
693 2004-11-06 Robert Schuster <thebohemian@gmx.net>
696 * java/beans/PropertyEditorSupport.java
697 (setValue): Fire property change event
699 2004-11-03 Tom Tromey <tromey@redhat.com>
701 * jni.cc (_Jv_JNI_NewObjectArray): Fixed return type.
702 * include/jni.h (struct JNINativeInterface) <NewObjectArray>: Now
703 returns jobjectArray.
704 (_Jv_JNIEnv::NewObjectArray): Likewise.
706 2004-11-01 Tom Tromey <tromey@redhat.com>
708 * verify.cc (state::check_no_uninitialized_objects): Removed.
709 (push_jump): Updated.
710 (push_exception_jump): Likewise.
711 (handle_ret_insn): Likewise.
712 (handle_jsr_insn): Likewise.
714 2004-10-30 Mark Wielaard <mark@klomp.org>
717 * java/lang/Runtime.java (static): Call init().
718 (Runtime): Remove call to init().
721 2004-10-28 David Daney <ddaney@avtrex.com>
723 * gnu/gcj/convert/Output_UnicodeLittleUnmarked.java: New file.
724 * Makefile.am: Build it.
725 * Makefile.in: Regenerate.
727 2004-10-27 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
730 * Makefile.am (CLASSPATH_SEPARATOR): Use instead of a
732 * Makefile.in: Regenerate.
733 * configure: Regenerate.
734 * configure.ac (CLASSPATH_SEPARATOR): Define.
735 * gcj/Makefile.in: Regenerate.
736 * include/Makefile.in: Regenerate.
737 * testsuite/Makefile.in: Regenerate.
738 * testsuite/lib/libjava.exp (libjava_arguments): Fix
739 CLASSPATH separator handling for Windows.
741 2004-10-26 Michael Koch <konqueror@gmx.de>
743 * gnu/java/net/protocol/http/Connection.java
744 (getOutputStream): Implicitely switch to POST method.
746 2004-10-26 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
748 * libjava/java/lang/Class.h
749 (java::lang::Class): Correct friend class declaration.
751 2004-10-25 Geoffrey Keating <geoffk@apple.com>
753 * Makefile.am (DARWIN_CRT_SRC): New.
754 (libgcj_la_SOURCES): Use it.
755 * configure.ac: Define USING_DARWIN_CRT when on Darwin.
756 * darwin.cc: New file.
757 * include/jvm.h (_Jv_RegisterClasses): Constify.
758 (_Jv_RegisterClasses_Counted): New prototype.
759 * java/lang/Class.h: Include stddef.h.
760 (_Jv_RegisterClasses): Constify.
761 (_Jv_RegisterClasses_Counted): New prototype.
762 (Object): Make '_Jv_RegisterClasses_Counted' a friend.
763 * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Constify.
764 (_Jv_RegisterClasses_Counted): New function.
765 * configure: Regenerate.
766 * Makefile.in: Regenerate.
767 * gcj/Makefile.in: Regenerate.
768 * include/Makefile.in: Regenerate.
769 * testsuite/Makefile.in: Regenerate.
771 2004-10-25 Tom Tromey <tromey@redhat.com>
773 * java/util/ResourceBundle.java (tryBundle): Use
774 Class.isAssignableFrom rather than catching ClassCastException.
776 2004-10-25 Tom Tromey <tromey@redhat.com>
778 * gnu/java/text/WordBreakIterator.java (WordBreakIterator): Don't
780 * gnu/java/text/SentenceBreakIterator.java
781 (SentenceBreakIterator): Don't initialize `iter'.
782 * gnu/java/text/LineBreakIterator.java (LineBreakIterator): Don't
784 * gnu/java/text/CharacterBreakIterator.java
785 (CharacterBreakIterator): Don't initialize `iter'.
786 * gnu/java/text/BaseBreakIterator.java (BaseBreakIterator): New
788 * java/text/BreakIterator.java: Updated documentation.
790 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
793 * testsuite/lib/libjava.exp: Accept more than one multilib libgcc.
795 2004-10-23 Michael Koch <konqueror@gmx.de>
797 * javax/print/DocFlavor.java,
798 javax/print/attribute/standard/JobStateReason.java,
799 javax/print/attribute/standard/MultipleDocumentHandling.java:
800 Added missing constants.
802 2004-10-22 Tom Tromey <tromey@redhat.com>
804 * gnu/java/net/protocol/http/Connection.java (sendRequest): Fix
807 2004-10-22 Michael Koch <konqueror@gmx.de>
810 * gnu/java/net/protocol/http/Connection.java
811 (sendRequest): Handle case when url.getFile() returns an empty string.
813 2004-10-22 Michael Koch <konqueror@gmx.de>
815 * java/lang/Math.java,
816 java/lang/StackTraceElement.java,
817 java/nio/Buffer.java,
818 java/nio/ByteBuffer.java,
819 java/nio/CharBuffer.java,
820 java/nio/DoubleBuffer.java,
821 java/nio/FloatBuffer.java,
822 java/nio/IntBuffer.java,
823 java/nio/LongBuffer.java,
824 java/nio/ShortBuffer.java,
825 java/nio/charset/Charset.java,
826 java/rmi/server/RMIClassLoader.java,
827 java/rmi/server/RMISocketFactory.java,
828 java/security/Policy.java,
829 java/text/ChoiceFormat.java,
830 java/text/CollationElementIterator.java,
831 java/text/DateFormat.java,
832 java/text/DecimalFormat.java,
833 java/text/DecimalFormatSymbols.java,
834 java/text/MessageFormat.java,
835 java/text/NumberFormat.java,
836 java/text/RuleBasedCollator.java,
837 java/text/SimpleDateFormat.java,
838 java/util/BitSet.java,
839 java/util/Calendar.java,
840 java/util/Collections.java,
841 java/util/IdentityHashMap.java,
842 java/util/Locale.java,
843 java/util/TreeMap.java,
844 java/util/logging/LogRecord.java,
845 java/util/logging/XMLFormatter.java,
846 java/util/prefs/AbstractPreferences.java,
847 java/util/prefs/Preferences.java,
848 javax/crypto/interfaces/DHPrivateKey.java,
849 javax/crypto/interfaces/DHPublicKey.java,
850 javax/crypto/interfaces/PBEKey.java,
851 javax/net/ssl/HandshakeCompletedEvent.java,
852 javax/security/auth/Subject.java:
853 Removed redundant and reordered modifiers.
855 2004-10-22 Ulrich Weigand <uweigand@de.ibm.com>
857 * gnu/java/net/natPlainSocketImplPosix.cc
858 (gnu::java::net::PlainSocketImpl::available): Call FIONREAD ioctl
859 with 'int *' argument instead of 'long *'.
861 2004-10-21 Michael Koch <konqueror@gmx.de>
863 * java/net/NetworkInterface.java,
864 java/text/Format.java,
865 javax/security/auth/x500/X500Principal.java,
866 javax/security/auth/x500/X500PrivateCredential.java,
867 javax/security/cert/X509CertBridge.java,
868 javax/security/sasl/Sasl.java,
869 javax/sql/XAConnection.java:
872 2004-10-21 Michael Koch <konqueror@gmx.de>
874 * javax/net/ssl/HandshakeCompletedEvent.java,
875 javax/net/ssl/KeyManagerFactory.java,
876 javax/net/ssl/SSLContext.java,
877 javax/net/ssl/SSLServerSocketFactory.java,
878 javax/net/ssl/SSLSession.java,
879 javax/net/ssl/SSLSocketFactory.java,
880 javax/net/ssl/TrustManagerFactory.java:
883 2004-10-21 Michael Koch <konqueror@gmx.de>
885 * javax/naming/directory/BasicAttribute.java,
886 javax/naming/directory/BasicAttributes.java,
887 javax/naming/directory/InitialDirContext.java,
888 javax/naming/event/NamingEvent.java,
889 javax/naming/ldap/ControlFactory.java,
890 javax/naming/ldap/ExtendedRequest.java,
891 javax/naming/ldap/InitialLdapContext.java,
892 javax/naming/ldap/LdapReferralException.java,
893 javax/naming/spi/DirObjectFactory.java,
894 javax/naming/spi/DirStateFactory.java,
895 javax/naming/spi/DirectoryManager.java,
896 javax/naming/spi/InitialContextFactory.java,
897 javax/naming/spi/InitialContextFactoryBuilder.java,
898 javax/naming/spi/NamingManager.java,
899 javax/naming/spi/ObjectFactory.java,
900 javax/naming/spi/ObjectFactoryBuilder.java,
901 javax/naming/spi/StateFactory.java:
904 2004-10-21 Michael Koch <konqueror@gmx.de>
906 * javax/crypto/Cipher.java,
907 javax/crypto/EncryptedPrivateKeyInfo.java,
908 javax/crypto/ExemptionMechanism.java,
909 javax/crypto/KeyAgreement.java,
910 javax/crypto/KeyGenerator.java,
911 javax/crypto/Mac.java,
912 javax/crypto/SecretKeyFactory.java,
913 javax/crypto/SecretKeyFactorySpi.java,
914 javax/crypto/spec/SecretKeySpec.java:
917 2004-10-21 Michael Koch <konqueror@gmx.de>
919 * java/security/AlgorithmParameterGenerator.java,
920 java/security/AlgorithmParameters.java,
921 java/security/AlgorithmParametersSpi.java,
922 java/security/AllPermission.java,
923 java/security/BasicPermission.java,
924 java/security/Certificate.java,
925 java/security/CodeSource.java,
926 java/security/DigestInputStream.java,
927 java/security/DigestOutputStream.java,
928 java/security/GuardedObject.java,
929 java/security/KeyFactory.java,
930 java/security/KeyFactorySpi.java,
931 java/security/KeyPairGenerator.java,
932 java/security/KeyStore.java,
933 java/security/KeyStoreSpi.java,
934 java/security/Permissions.java,
935 java/security/Security.java,
936 java/security/Signature.java,
937 java/security/UnresolvedPermission.java,
938 java/security/cert/CertPathBuilder.java,
939 java/security/cert/CertPathValidator.java,
940 java/security/cert/CertStore.java,
941 java/security/cert/Certificate.java,
942 java/security/cert/CertificateFactory.java,
943 java/security/cert/PolicyQualifierInfo.java,
944 java/security/cert/TrustAnchor.java,
945 java/security/cert/X509CRL.java,
946 java/security/cert/X509CRLSelector.java,
947 java/security/cert/X509CertSelector.java:
950 2004-10-21 Michael Koch <konqueror@gmx.de>
952 * java/rmi/MarshalledObject.java,
953 java/rmi/Naming.java,
954 java/rmi/activation/Activatable.java,
955 java/rmi/activation/ActivationGroup.java,
956 java/rmi/activation/ActivationGroupDesc.java,
957 java/rmi/activation/ActivationInstantiator.java,
958 java/rmi/activation/ActivationMonitor.java,
959 java/rmi/activation/ActivationSystem.java,
960 java/rmi/activation/Activator.java,
961 java/rmi/registry/LocateRegistry.java,
962 java/rmi/registry/Registry.java,
963 java/rmi/server/LogStream.java,
964 java/rmi/server/ObjID.java,
965 java/rmi/server/RMIClientSocketFactory.java,
966 java/rmi/server/RMIServerSocketFactory.java,
967 java/rmi/server/RMISocketFactory.java,
968 java/rmi/server/RemoteCall.java,
969 java/rmi/server/RemoteServer.java,
970 java/rmi/server/ServerRef.java,
971 java/rmi/server/UID.java,
972 java/rmi/server/UnicastRemoteObject.java:
975 2004-10-21 Tom Tromey <tromey@redhat.com>
977 * java/util/zip/InflaterInputStream.java (fill): Don't throw an
978 exception if we hit EOF of `in'.
979 (read): Handle case where inflating returns -1.
981 2004-10-21 Ulrich Weigand <uweigand@de.ibm.com>
983 * gnu/java/nio/channels/natFileChannelPosix.cc
984 (FileChannelImpl::available): Call FIONREAD ioctl with 'int *'
985 argument instead of 'long *'.
987 2004-10-21 Tom Tromey <tromey@redhat.com>
989 * java/util/ResourceBundle.java (tryBundle): Also ignore
992 2004-10-21 Kaz Kojima <kkojima@gcc.gnu.org>
994 * configure.ac (SIGNAL_HANDLER): Set to include/sh-signal.h
995 for all sh*-*-linux* targets.
996 * configure: Regenerate.
997 * include/sh-signal.h: New file.
999 2004-10-21 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1001 * java/lang/ieeefp.h: Add m32r support.
1003 2004-10-20 Andreas Schwab <schwab@suse.de>
1005 * java/lang/natClass.cc (_Jv_LayoutVTableMethods): Cast pointers
1007 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
1010 2004-10-20 Michael Koch <konqueror@gmx.de>
1012 * javax/print/attribute/standard/ColorSupported.java,
1013 javax/print/attribute/standard/Compression.java,
1014 javax/print/attribute/standard/Copies.java,
1015 javax/print/attribute/standard/CopiesSupported.java,
1016 javax/print/attribute/standard/DateTimeAtCompleted.java,
1017 javax/print/attribute/standard/DateTimeAtCreation.java,
1018 javax/print/attribute/standard/DateTimeAtProcessing.java,
1019 javax/print/attribute/standard/DocumentName.java,
1020 javax/print/attribute/standard/Fidelity.java,
1021 javax/print/attribute/standard/Finishings.java,
1022 javax/print/attribute/standard/JobHoldUntil.java,
1023 javax/print/attribute/standard/JobImpressions.java,
1024 javax/print/attribute/standard/JobImpressionsCompleted.java,
1025 javax/print/attribute/standard/JobImpressionsSupported.java,
1026 javax/print/attribute/standard/JobKOctets.java,
1027 javax/print/attribute/standard/JobKOctetsProcessed.java,
1028 javax/print/attribute/standard/JobKOctetsSupported.java,
1029 javax/print/attribute/standard/JobMediaSheets.java,
1030 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
1031 javax/print/attribute/standard/JobMediaSheetsSupported.java,
1032 javax/print/attribute/standard/JobMessageFromOperator.java,
1033 javax/print/attribute/standard/JobName.java,
1034 javax/print/attribute/standard/JobOriginatingUserName.java,
1035 javax/print/attribute/standard/JobPriority.java,
1036 javax/print/attribute/standard/JobPrioritySupported.java,
1037 javax/print/attribute/standard/JobSheets.java,
1038 javax/print/attribute/standard/JobState.java,
1039 javax/print/attribute/standard/JobStateReason.java,
1040 javax/print/attribute/standard/JobStateReasons.java,
1041 javax/print/attribute/standard/Media.java,
1042 javax/print/attribute/standard/MultipleDocumentHandling.java,
1043 javax/print/attribute/standard/NumberOfDocuments.java,
1044 javax/print/attribute/standard/NumberOfInterveningJobs.java,
1045 javax/print/attribute/standard/NumberUp.java,
1046 javax/print/attribute/standard/NumberUpSupported.java,
1047 javax/print/attribute/standard/OrientationRequested.java,
1048 javax/print/attribute/standard/OutputDeviceAssigned.java,
1049 javax/print/attribute/standard/PDLOverrideSupported.java,
1050 javax/print/attribute/standard/PageRanges.java,
1051 javax/print/attribute/standard/PagesPerMinute.java,
1052 javax/print/attribute/standard/PagesPerMinuteColor.java,
1053 javax/print/attribute/standard/PrintQuality.java,
1054 javax/print/attribute/standard/PrinterInfo.java,
1055 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
1056 javax/print/attribute/standard/PrinterLocation.java,
1057 javax/print/attribute/standard/PrinterMakeAndModel.java,
1058 javax/print/attribute/standard/PrinterMessageFromOperator.java,
1059 javax/print/attribute/standard/PrinterMoreInfo.java,
1060 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
1061 javax/print/attribute/standard/PrinterName.java,
1062 javax/print/attribute/standard/PrinterStateReason.java,
1063 javax/print/attribute/standard/PrinterStateReasons.java,
1064 javax/print/attribute/standard/PrinterURI.java,
1065 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
1066 javax/print/attribute/standard/RequestingUserName.java:
1067 Reorganized imports and removed redundant final modifiers.
1069 2004-10-20 Michael Koch <konqueror@gmx.de>
1071 * javax/security/sasl/SaslClient.java,
1072 javax/security/sasl/SaslClientFactory.java,
1073 javax/security/sasl/SaslException.java,
1074 javax/security/sasl/SaslServer.java,
1075 javax/security/sasl/SaslServerFactory.java:
1078 2004-10-20 Michael Koch <konqueror@gmx.de>
1080 * javax/security/auth/login/NullConfiguration.java,
1081 javax/security/auth/x500/X500Principal.java,
1082 javax/security/cert/X509Certificate.java,
1083 javax/security/sasl/AuthenticationException.java,
1084 javax/security/sasl/AuthorizeCallback.java,
1085 javax/security/sasl/RealmCallback.java,
1086 javax/security/sasl/RealmChoiceCallback.java,
1087 javax/security/sasl/Sasl.java,
1088 javax/security/sasl/SaslClient.java,
1089 javax/security/sasl/SaslClientFactory.java,
1090 javax/security/sasl/SaslException.java,
1091 javax/security/sasl/SaslServer.java,
1092 javax/security/sasl/SaslServerFactory.java:
1093 Cleaned up import statements and copyright notices.
1095 2004-10-20 Michael Koch <konqueror@gmx.de>
1097 * gnu/java/rmi/rmic/RMIC.java: Reformatted.
1099 2004-10-20 Michael Koch <konqueror@gmx.de>
1101 * java/sql/Timestamp.java,
1102 java/text/AttributedCharacterIterator.java,
1103 java/text/AttributedString.java,
1104 java/util/zip/CheckedOutputStream.java,
1105 java/util/zip/DeflaterOutputStream.java,
1106 java/util/zip/ZipFile.java,
1107 javax/crypto/Cipher.java,
1108 javax/crypto/ExemptionMechanismException.java,
1109 javax/crypto/SecretKey.java,
1110 javax/crypto/SecretKeyFactory.java,
1111 javax/naming/directory/ModificationItem.java,
1112 javax/naming/directory/SearchControls.java,
1113 javax/naming/event/NamingListener.java,
1114 javax/naming/ldap/Control.java,
1115 javax/naming/ldap/ExtendedResponse.java,
1116 javax/net/ssl/SSLSocketFactory.java:
1117 Reorganized imports and fixed copyright headers.
1119 2004-10-20 Michael Koch <konqueror@gmx.de>
1121 * java/util/logging/ConsoleHandler.java,
1122 java/util/logging/ErrorManager.java,
1123 java/util/logging/FileHandler.java,
1124 java/util/logging/Filter.java,
1125 java/util/logging/Formatter.java,
1126 java/util/logging/Handler.java,
1127 java/util/logging/Level.java,
1128 java/util/logging/LogManager.java,
1129 java/util/logging/LogRecord.java,
1130 java/util/logging/Logger.java,
1131 java/util/logging/LoggingPermission.java,
1132 java/util/logging/MemoryHandler.java,
1133 java/util/logging/SimpleFormatter.java,
1134 java/util/logging/SocketHandler.java,
1135 java/util/logging/StreamHandler.java,
1136 java/util/logging/XMLFormatter.java:
1137 Standardized copyrigth header.
1139 2004-10-20 Michael Koch <konqueror@gmx.de>
1141 * java/security/AlgorithmParameterGenerator.java,
1142 java/security/AlgorithmParameters.java,
1143 java/security/DigestInputStream.java,
1144 java/security/Identity.java,
1145 java/security/KeyFactory.java,
1146 java/security/KeyPairGenerator.java,
1147 java/security/KeyStore.java,
1148 java/security/MessageDigest.java,
1149 java/security/MessageDigestSpi.java,
1150 java/security/Policy.java,
1151 java/security/SecureRandom.java,
1152 java/security/Security.java,
1153 java/security/Signature.java,
1154 java/security/SignatureSpi.java,
1155 java/security/cert/CertPathBuilder.java,
1156 java/security/cert/CertPathValidator.java,
1157 java/security/cert/CertStore.java,
1158 java/security/cert/Certificate.java,
1159 java/security/cert/CertificateFactory.java,
1160 java/security/cert/PolicyQualifierInfo.java,
1161 java/security/cert/TrustAnchor.java,
1162 java/security/cert/X509CRL.java,
1163 java/security/cert/X509CRLEntry.java,
1164 java/security/cert/X509Certificate.java,
1165 java/security/spec/RSAMultiPrimePrivateCrtKeySpec.java:
1166 Import statements reorganized, some little formatting issues,
1167 used java-style array declarations, added comments in empty catch
1170 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
1172 * java/security/Security.java
1173 (static): Use AccessController.doPrivileged to get system property.
1175 2004-10-18 Sven de Marothy <sven@physto.se>
1177 * java/nio/ByteBufferHelper.java
1178 (putDouble): Use Double.toRawLongBits instead.
1180 2004-10-18 Mark Wielaard <mark@klomp.org>
1181 Andrew Haley <aph@redhat.com>
1183 * testsuite/libjava.lang/ExtraClassLoader.java: New.
1185 2004-10-18 Andrew Haley <aph@redhat.com>
1188 * gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Reorganize
1189 and correct logic used to find interpreter.
1191 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
1193 * java/util/logging/LogManager.java
1194 (findAncestor): Fixed IndexOutOfBoundsException.
1196 2004-10-18 Michael Koch <konqueror@gmx.de>
1198 * java/io/BufferedInputStream.java: Fixed @author tag.
1199 (read): Simplified expression.
1200 (read): Merged javadoc a bit more.
1201 (read): Renamed 'remain' to 'totalBytesRead'.
1202 * java/io/DataInputStream.java,
1203 java/io/DataOutputStream.java,
1204 java/io/ObjectInputStream.java,
1205 java/io/ObjectOutputStream.java:
1206 Reworked modifier order.
1208 2004-10-18 Michael Koch <konqueror@gmx.de>
1210 * java/net/Inet4Address.java: Merged file header and javadocs.
1211 * java/net/Inet6Address.java: Likewise.
1212 * java/net/InetAddress.java
1213 (getCanonicalHostName): Create Inet4Address object instead of
1214 InetAddress and add comment regarding IPv6.
1215 (toString): Simplified.
1217 2004-10-18 Michael Koch <konqueror@gmx.de>
1219 * gnu/java/net/protocol/http/Connection.java,
1220 java/nio/MappedByteBufferImpl.java,
1221 java/text/RuleBasedCollator.java,
1222 java/util/ResourceBundle.java:
1223 Reworked import statements.
1225 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
1227 * java/security/IdentityScope.java
1228 (systemScope): Removed useless initializer.
1229 * java/security/Policy.java
1230 (currentPolicy): Likewise.
1232 2004-10-18 Michael Koch <konqueror@gmx.de>
1234 * java/lang/System.java: Revert accidential change.
1236 2004-10-18 Michael Koch <konqueror@gmx.de>
1238 * java/lang/Math.java,
1239 java/lang/Package.java,
1240 java/lang/Runtime.java,
1241 java/lang/StrictMath.java,
1242 java/lang/System.java,
1243 java/lang/Thread.java,
1244 java/lang/ThreadLocal.java,
1245 java/lang/Void.java:
1246 Reworked import statements, HTML in javadocs and modifier orders.
1248 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
1250 * java/util/Timer.java
1251 (nr): Removed useless initializer.
1252 * java/util/logging/LogRecord.java
1253 (lastSeqNum): Likewise.
1254 * javax/naming/spi/NamingManager.java
1255 (icfb, ofb): Likewise.
1257 2004-10-18 Michael Koch <konqueror@gmx.de>
1259 * gnu/java/net/PlainDatagramSocketImpl.java:
1260 Reworked import statements.
1261 * gnu/java/security/provider/DSAParameters.java:
1262 Fixed copyrigth years.
1263 * java/net/JarURLConnection.java:
1264 Fixed HTML in @author tags.
1267 2004-10-18 Michael Koch <konqueror@gmx.de>
1269 * java/rmi/activation/ActivationSystem.java
1270 (SYSTEM_PORT): Initialize with correct port number.
1272 2004-10-18 Michael Koch <konqueror@gmx.de>
1274 * java/lang/reflect/Proxy.java: Improved javadocs.
1276 2004-10-18 Michael Koch <konqueror@gmx.de>
1278 * java/lang/reflect/AccessibleObject.java
1279 (checkPermission): Removed redundant final modifier.
1280 (secureSetAccessible): Likewise.
1281 * java/lang/reflect/Proxy.java:
1282 Reworked import statements.
1283 (generate): Removed redundant final modifier.
1284 * java/lang/reflect/ReflectPermission.java:
1285 Reorder package declaration and import statement.
1287 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
1289 * java/lang/reflect/Proxy.java
1290 (count): Removed useless initializer.
1292 2004-10-17 Michael Koch <konqueror@gmx.de>
1294 * java/net/BindException.java,
1295 java/net/ConnectException.java,
1296 java/net/ContentHandler.java,
1297 java/net/ContentHandlerFactory.java,
1298 java/net/DatagramPacket.java,
1299 java/net/DatagramSocket.java,
1300 java/net/DatagramSocketImpl.java,
1301 java/net/DatagramSocketImplFactory.java,
1302 java/net/FileNameMap.java,
1303 java/net/HttpURLConnection.java,
1304 java/net/MalformedURLException.java,
1305 java/net/MulticastSocket.java,
1306 java/net/NetworkInterface.java,
1307 java/net/NoRouteToHostException.java,
1308 java/net/PasswordAuthentication.java,
1309 java/net/PortUnreachableException.java,
1310 java/net/ProtocolException.java,
1311 java/net/ServerSocket.java,
1312 java/net/Socket.java,
1313 java/net/SocketException.java,
1314 java/net/SocketImpl.java,
1315 java/net/SocketImplFactory.java,
1316 java/net/SocketOptions.java,
1317 java/net/SocketPermission.java,
1318 java/net/SocketTimeoutException.java,
1320 java/net/URISyntaxException.java,
1322 java/net/URLDecoder.java,
1323 java/net/URLEncoder.java,
1324 java/net/URLStreamHandler.java,
1325 java/net/URLStreamHandlerFactory.java,
1326 java/net/UnknownHostException.java,
1327 java/net/UnknownServiceException.java:
1328 Big import statement and @author tag cleanup.
1330 2004-10-17 Michael Koch <konqueror@gmx.de>
1332 * gnu/java/security/OID.java,
1333 gnu/java/security/provider/DSAParameters.java,
1334 gnu/java/security/provider/DSASignature.java,
1335 gnu/java/security/x509/X500DistinguishedName.java,
1336 gnu/java/security/x509/X509CRL.java:
1337 Import statements cleaned up.
1339 2004-10-16 Michael Koch <konqueror@gmx.de>
1341 * gnu/java/nio/NIODatagramSocket.java,
1342 gnu/java/nio/ServerSocketChannelImpl.java:
1343 Reorganized import statements.
1345 2004-10-16 Michael Koch <konqueror@gmx.de>
1347 * gnu/java/rmi/RMIMarshalledObjectOutputStream.java
1348 gnu/java/rmi/rmic/RMIC.java,
1349 gnu/java/rmi/server/RMIHashes.java,
1350 gnu/java/rmi/server/RMIObjectInputStream.java,
1351 gnu/java/rmi/server/RMIObjectOutputStream.java,
1352 gnu/java/rmi/server/UnicastConnection.java,
1353 gnu/java/rmi/server/UnicastConnectionManager.java,
1354 gnu/java/rmi/server/UnicastRemoteCall.java,
1355 gnu/java/rmi/server/UnicastServer.java,
1356 gnu/java/rmi/server/UnicastServerRef.java,
1357 java/rmi/MarshalledObject.java,
1358 java/rmi/Naming.java,
1359 java/rmi/RMISecurityManager.java,
1360 java/rmi/Remote.java,
1361 java/rmi/activation/Activatable.java,
1362 java/rmi/activation/ActivationDesc.java,
1363 java/rmi/activation/ActivationGroup.java,
1364 java/rmi/activation/ActivationGroupDesc.java,
1365 java/rmi/activation/ActivationGroupID.java,
1366 java/rmi/activation/ActivationID.java,
1367 java/rmi/activation/ActivationInstantiator.java,
1368 java/rmi/activation/ActivationMonitor.java,
1369 java/rmi/activation/ActivationSystem.java,
1370 java/rmi/activation/Activator.java,
1371 java/rmi/dgc/DGC.java,
1372 java/rmi/dgc/Lease.java,
1373 java/rmi/dgc/VMID.java,
1374 java/rmi/registry/LocateRegistry.java,
1375 java/rmi/registry/Registry.java,
1376 java/rmi/registry/RegistryHandler.java,
1377 java/rmi/server/LoaderHandler.java,
1378 java/rmi/server/LogStream.java,
1379 java/rmi/server/ObjID.java,
1380 java/rmi/server/Operation.java,
1381 java/rmi/server/RMIClassLoader.java,
1382 java/rmi/server/RMIClassLoaderSpi.java,
1383 java/rmi/server/RMIClientSocketFactory.java,
1384 java/rmi/server/RMIFailureHandler.java,
1385 java/rmi/server/RMIServerSocketFactory.java,
1386 java/rmi/server/RMISocketFactory.java,
1387 java/rmi/server/RemoteCall.java,
1388 java/rmi/server/RemoteObject.java,
1389 java/rmi/server/RemoteRef.java,
1390 java/rmi/server/RemoteServer.java,
1391 java/rmi/server/RemoteStub.java,
1392 java/rmi/server/ServerRef.java,
1393 java/rmi/server/Skeleton.java,
1394 java/rmi/server/SkeletonMismatchException.java,
1395 java/rmi/server/UID.java,
1396 java/rmi/server/UnicastRemoteObject.java,
1397 java/rmi/server/Unreferenced.java:
1398 File headers and import statements cleaned up.
1400 2004-10-16 Michael Koch <konqueror@gmx.de>
1402 * libjava/gnu/java/nio/charset/UTF_16.java,
1403 libjava/gnu/java/nio/charset/UTF_16BE.java,
1404 libjava/gnu/java/nio/charset/UTF_16LE.java,
1405 libjava/java/nio/ByteOrder.java,
1406 libjava/java/nio/MappedByteBuffer.java,
1407 libjava/java/nio/channels/Channels.java,
1408 libjava/java/nio/channels/spi/SelectorProvider.java,
1409 libjava/java/nio/charset/Charset.java:
1412 2004-10-16 Michael Koch <konqueror@gmx.de>
1414 * gnu/java/nio/charset/UTF_16Encoder.java
1415 (UTF_16Encoder): Fixed maxBytesPerChar handling.
1417 2004-10-16 Michael Koch <konqueror@gmx.de>
1419 * java/math/BigDecimal.java, java/math/BigInteger.java:
1420 Reorganized import statements, removed redundant and
1421 reorganized modifiers.
1423 2004-10-16 Michael Koch <konqueror@gmx.de>
1425 * gnu/java/beans/ExplicitBeanInfo.java:
1426 Explicitely import java.awt.Image.
1427 (getIcon): Fixed off-by-one error.
1429 2004-10-15 Andrew Haley <aph@redhat.com>
1431 * Makefile.am (nat_files, xlib_nat_files): New.
1432 * Makefile.in: Regenerate.
1434 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
1436 * jni.cc (_Jv_JNIMethod::call): Use ffi_java_raw_call instead of
1437 ffi_raw_call if FFI_NATIVE_RAW_API is not defined.
1439 2004-10-13 Andrew Haley <aph@redhat.com>
1441 * interpret.cc (_Jv_InterpMethod::run): Initialize
1442 _Jv_StartOfInterpreter.
1443 (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): Functions removed.
1444 (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): New variables.
1445 * gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Use
1446 _Unwind_FindEnclosingFunction to discover whether PC is within the
1449 2004-10-12 Rutger Ovidius <ovidr@users.sourceforge.net>
1452 * testsuite/libjava.lang/md5test.java: New file.
1453 * testsuite/libjava.lang/md5test.out: Likewise.
1454 * testsuite/libjava.lang/shatest.java: Likewise.
1455 * testsuite/libjava.lang/shatest.out: Likewise.
1457 2004-10-11 Richard Henderson <rth@redhat.com>
1459 * include/posix-threads.h <__alpha__> (_Jv_ThreadId_t): Use void*.
1460 (_Jv_ThreadSelf): Use __builtin_thread_pointer.
1462 2004-10-08 Bryce McKinlay <mckinlay@redhat.com>
1464 * java/util/Calendar.java (set): Invalidate DST_OFFSET
1465 field as a DST boundary may have been crossed.
1466 * java/util/GregorianCalendar.java (add): Throw
1467 IllegalArgumentException on attempt to add to DST_OFFSET or
1468 ZONE_OFFSET fields. Update javadoc.
1470 2004-10-09 Michael Koch <konqueror@gmx.de>
1472 * java/io/CharArrayWriter.java
1473 (resize): Removed redundant 'final' modifier.
1474 * java/io/DataInputStream.java
1475 (readFully): Throw IndexOutOfBoundsException of len < 0.
1476 * java/io/FileDescriptor.java,
1477 java/io/FileInputStream.java,
1478 java/io/FileOutputStream.java,
1479 java/io/ObjectOutputStream.java,
1480 java/io/ObjectStreamClass.java,
1481 java/io/PipedInputStream.java,
1482 java/io/RandomAccessFile.java:
1483 Reorganized import statements.
1485 2004-10-09 Michael Koch <konqueror@gmx.de>
1487 * gnu/java/rmi/rmic/RMIC.java,
1488 gnu/java/rmi/server/RMIHashes.java,
1489 gnu/java/rmi/server/RMIObjectInputStream.java,
1490 gnu/java/rmi/server/UnicastConnection.java,
1491 gnu/java/rmi/server/UnicastConnectionManager.java,
1492 gnu/java/rmi/server/UnicastRemoteCall.java,
1493 gnu/java/rmi/server/UnicastServerRef.java:
1494 Reworked import statements and fixed file headers.
1496 2004-10-04 Loren J. Rittle <ljrittle@acm.org>
1498 * configure.ac (*-*-freebsd[[1234]]*): Refine error message
1500 * configure: Rebuilt.
1502 2004-09-30 Tom Tromey <tromey@redhat.com>
1504 * java/text/MessageFormat.java (Field): Constructor now
1507 2004-09-30 Tom Tromey <tromey@redhat.com>
1509 * javax/crypto/MacSpi.java: Fixed typo.
1511 2004-09-30 Michael Koch <konqueror@gmx.de>
1513 * java/net/InetAddress.java: Reformatted.
1514 (loopback): Initialize with Inet4Address object.
1515 (static): Initialize ANY_IF with Inet4Address object.
1516 (InetAddress): Removed unused package-private constructor.
1518 2004-09-30 Michael Koch <konqueror@gmx.de>
1520 * java/beans/Beans.java,
1521 java/beans/EventHandler.java,
1522 java/beans/EventSetDescriptor.java,
1523 java/beans/Introspector.java,
1524 java/beans/PropertyEditorManager.java,
1525 java/beans/beancontext/BeanContext.java,
1526 java/beans/beancontext/BeanContextChild.java,
1527 java/beans/beancontext/BeanContextChildSupport.java,
1528 java/beans/beancontext/BeanContextMembershipEvent.java:
1529 Reordered import statements and removed redundant modifiers.
1531 2004-09-29 Tom Tromey <tromey@redhat.com>
1534 * Makefile.in: Rebuilt.
1535 * Makefile.am (libgcj-@gcc_version@.jar): Include properties
1537 (all_property_files): New macro.
1539 * Makefile.in: Rebuilt.
1540 * Makefile.am (ordinary_java_source_files): Re-sorted.
1541 (libgcj.la): Moved to old location near lib-gnu-awt-xlib.la.
1543 2004-09-28 Tom Tromey <tromey@redhat.com>
1545 * jni.cc (_Jv_JNI_RegisterNatives): Formatting fixlets.
1548 * Makefile.am (libgcj.la): Restored.
1549 * Makefile.in: Rebuilt.
1551 2004-09-28 Michael Koch <konqueror@gmx.de>
1553 * java/net/URLConnection.java: Reformatted.
1554 * java/net/URLClassLoader.java: Reformatted.
1555 (getContent): Reordered return of content.
1556 (getContentHandler): Don't check for null explicitely.
1558 2004-09-27 Michael Koch <konqueror@gmx.de>
1560 * java/io/BufferedInputStream.java
1561 (BufferedInputStream): Added Jeroen Frijters to authors.
1562 (count): Don't explicitely initialize with default value.
1564 (marklimit): Likewise.
1565 (read): Changed boolean expression to match GNU classpath' version.
1566 (reset): Add proper message to exception.
1567 (skip): Check for closed stream.
1570 2004-09-26 Per Bothner <per@bothner.com>
1572 * prims.cc (unblock_signal): Annotate signum with __unused__ to
1573 avoid warnings in the non-POSIX_VERSION case.
1574 Also, we only need this function if either HANDLE_SEGV or HANDLE_FPE,
1575 so place it inside an #if block.
1576 * include/default-signal.h (SIGNAL_HANDLER): Parameters are __unused__.
1577 * include/i386-signal.h (SIGNAL_HANDLER): Likewise
1578 * include/mips-signal.h (SIGNAL_HANDLER): Likewise
1579 * include/sparc-signal.h (SIGNAL_HANDLER): Likewise
1581 2004-09-26 Per Bothner <per@bothner.com>
1583 * prims.cc (process_gcj_properties): Optimization.
1585 2004-09-26 Per Bothner <per@bothner.com>
1587 * java/util/Collections.java (sort): Copy from array in forwards
1588 order, rather than reverse order which may be much less efficient.
1590 2004-09-26 Mark Wielaard <mark@klomp.org>
1592 * java/lang/System.java (properties): Make package private.
1593 * java/lang/Throwable.java (StaticData.nl): Initialize through
1594 directly accessing System.properties.getProperty().
1596 * java/lang/Throwable.java (nl): Remove static field.
1597 (StaticData): New private static inner class.
1598 (stackTraceStringBuffer): Use StaticData.nl.
1600 2004-09-26 Casey Marshall <csm@gnu.org>
1602 * java/security/ProtectionDomain.java
1603 (<init>(CodeSource,PermissionCollection)): set `staticBinding' to
1606 * java/security/SecureClassLoader.java
1607 (defineClass): make protection domain dynamically bound.
1608 (getPermissions): call `getCurrentPolicy' to avoid permission
1611 2004-09-25 Mark Wielaard <mark@klomp.org>
1613 * Makefile.am (core_java_source_files): Add VMTimeZone.java.
1614 (nat_source_files): Rename natTimeZone.cc to natVMTimeZone.cc.
1615 * Makefile.in: Regenerated.
1617 * gcj/javaprims.h: Regenerated.
1619 * java/util/TimeZone.java (defaultZone): Use VMTimeZone.
1620 (getDefaultTimeZone): Make package private. Check that GMToffset
1621 contains at least one digit.
1622 (getDefaultTimeZoneId, readTimeZoneFile, readtzFile): (Re)Moved to
1624 * util/VMTimeZone.java: New file with above methods.
1626 * java/util/natTimeZone.cc: Removed (renamed).
1627 * java/util/natVMTimeZone.cc: Added (renamed).
1629 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
1631 * java/util/TimeZone.java
1632 (getDefaultTimeZone): Fixed test to distinguish between hours and
1633 minutes in specified timezone.
1635 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
1637 * java/lang/reflect/Proxy.java (getPackage, ClassFactory): Fixed
1638 handling of default package. (generate): Removed confused comments
1639 and code about making Method and Field accessible.
1641 2004-09-25 Tom Tromey <tromey@redhat.com>
1644 * testsuite/libjava.compile/pr17500.java: New file.
1646 2004-09-25 Shashank Bapat <shashankbapat@yahoo.com>
1647 Mark Wielaard <mark@klomp.org>
1649 * gnu/regexp/RE.java (initialize): Add RETokenLookAhead support.
1650 * gnu/regexp/RETokenLookAhead.java: New file.
1652 * Makefile.am (ordinary_java_source_files): Add RETokenLookAhead.java.
1653 * Makefile.in: Regenerated.
1655 2004-09-25 Michael Koch <konqueror@gmx.de>
1657 * java/io/ObjectStreamField.java:
1658 Removed unused import statement.
1660 2004-09-24 Tom Tromey <tromey@redhat.com>
1663 * testsuite/libjava.compile/pr15656.xfail: New file.
1664 * testsuite/libjava.compile/pr15656.java: new file.
1667 * testsuite/libjava.lang/pr16789.out: New file.
1668 * testsuite/libjava.lang/pr16789.java: New file.
1670 2004-09-24 Andrew Haley <aph@redhat.com>
1673 * testsuite/libjava.compile/AssertBug.java: New file.
1675 2004-09-24 Casey Marshall <csm@gnu.org>
1677 * java/util/PropertyPermissionCollection.java
1678 (implies): avoid infinite loop.
1680 2004-09-24 Andrew John Hughes <gnu_andrew@member.fsf.org>
1682 * javax/security/auth/PrivateCredentialPermission.java
1683 (PrivateCredentialPermission): added serialization UID
1686 2004-09-24 Ilya Perminov <iperminov@logicalsoft.com>
1688 * gnu/java/rmi/server/UnicastServer.java
1689 (incomingMessageCall): Added code to handle Errors.
1690 * gnu/java/rmi/server/UnicastServerRef.java
1691 (incomingMessageCall): Added code to handle Errors.
1694 2004-09-24 Tom Tromey <tromey@redhat.com>
1696 * java/lang/ClassLoader.java (loadedClasses): Declare as HashMap.
1697 (definedPackages): Likewise.
1699 2004-09-24 Michael Koch <konqueror@gmx.de>
1701 * java/io/ObjectInputStream.java:
1704 2004-09-24 Casey Marshall <csm@gnu.org>
1706 * java/io/ObjectInputStream.java (callReadMethod): re-throw
1707 `ClassNotFoundException'.
1709 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
1711 * java/io/ObjectInputStream.java (readObject): Delegate instantation
1712 of Externalizable classes to ObjectStreamClass.
1713 * java/io/ObjectStreamClass.java (newInstance): New method to
1714 instantiate Externalizable (while ignoring the accessibility of
1715 the constructor). (constructor): New field to cache the constructor.
1717 2004-09-24 Mark Wielaard <mark@klomp.org>
1719 * java/net/URL.java (systemClassLoader): New static field.
1720 (getURLStreamHandler): Always use system/application classloader
1721 for finding URLStreamhandler. Remove unecessary instanceof checks.
1723 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
1726 (set): This method now matches the behaviour of the JDK.
1727 (DEFAULT_SEARCH_PATH): Added "gnu.inet".
1729 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
1731 * java/net/URL.java (URL): Delete whitespaces in the protocol string.
1733 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
1735 * java/net/URL.java (URL(String,String,int,String,URLStreamHandler):
1736 Don't set authority if host isn't specified.
1738 2004-09-24 Michael Koch <konqueror@gmx.de>
1740 * gnu/java/nio/PipeImpl.java: Use VMPipe for native stuff.
1741 * gnu/java/nio/SelectorImpl.java: Use VMSelector for native stuff.
1742 * gnu/java/nio/VMPipe.java,
1743 gnu/java/nio/VMSelector.java:
1745 * gnu/java/nio/natPipeImplEcos.cc,
1746 gnu/java/nio/natPipeImplPosix.cc,
1747 gnu/java/nio/natPipeImplWin32.cc:
1749 * gnu/java/nio/natSelectorImplEcos.cc,
1750 gnu/java/nio/natSelectorImplPosix.cc,
1751 gnu/java/nio/natSelectorImplWin32.cc:
1752 Ported to VMSelector.
1753 * Makefile.am: Added new files gnu/java/nio/VMPipe.java and
1754 gnu/java/nio/VMSelector.java.
1755 * Makefile.in: Regenerated.
1757 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
1759 * java/lang/StackTraceElement.java
1760 (className): Renamed field to declaringClass to be compatible
1761 with Sun serialization format.
1763 2004-09-23 Michael Koch <konqueror@gmx.de>
1765 * java/applet/AppletContext.java,
1766 java/applet/Applet.java,
1767 java/applet/AppletStub.java,
1768 java/applet/AudioClip.java:
1769 Jalopied and checkstyle clean.
1771 2004-09-23 Mark Wielaard <mark@klomp.org>
1773 * java/util/Collections.java
1774 (binarySearch(List, Object, Comparator)): Explicitly
1775 reverse direction in list iterator.
1776 (rotate): Just return when list is empty.
1778 2004-09-23 Tom Tromey <tromey@redhat.com>
1781 * testsuite/libjava.compile/pr17329.java: New file.
1784 * testsuite/libjava.jacks/jacks.xfail: Added 9.2-implicit-6 and
1787 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
1789 * Makefile.am: Run aclocal with -I ../config
1790 * acinclude.m4: Delete macros picked up from ../config and tidy.
1791 (AM_ICONV,AM_LC_MESSAGES, PKG_CHECK_MODULES): Delete.
1792 * aclocal.m4, configure, Makefile.in, gcj/Makefile.in: Regenerate.
1793 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
1795 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
1797 * aclocal.m4: Regenerate with aclocal 1.9.2.
1798 * configure: Regenerate.
1799 * Makefile.in, gcj/Makefile.in: Regenerate with automake 1.9.2.
1800 * include/Makefile.in, testsuite/Makefile.in: Likewise.
1802 2004-09-22 David Daney <ddaney@avtrex.com>
1805 * java/net/URL.java (URL): Copy userInfo from context.
1806 (getUserInfo): Return cached userInfo if present.
1808 2004-09-22 Tom Tromey <tromey@redhat.com>
1811 * mauve-libgcj: Enable java.lang.Character tests.
1813 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
1815 * Makefile.am (lib_org_ietf_jgss_la_DEPENDENCIES): Add missing
1817 (lib_org_ietf_jgss_la_LIBADD): Likewise.
1818 * Makefile.in: Regenerated.
1820 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
1822 * configure.ac: Introduce AC_C_BIGENDIAN_CROSS for WORDS_BIGENDIAN.
1823 * configure: Regenerate.
1824 * include/config.h.in: Likewise.
1825 * jni/gtk-peer/gtkpeer.h (SWAPU32): Introduce macro to swap pixels.
1826 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c: Moved SWAPU32
1828 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
1829 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_getImagePixels): Convert
1830 pixels from 0xBBGGRRAA to 0xAARRGGBB only on Little Endian
1832 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c (area_updated):
1835 2004-09-22 Tom Tromey <tromey@redhat.com>
1838 * java/util/zip/GZIPInputStream.java (read): Avoid sign extension
1839 when comparing CRCs.
1840 * java/util/zip/InflaterInputStream.java (onebytebuffer): New
1842 (read()): New overload.
1844 2004-09-21 Tom Tromey <tromey@redhat.com>
1846 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
1849 2004-09-21 Michael Koch <konqueror@gmx.de>
1851 * java/net/Socket.java
1852 (getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
1854 2004-09-21 Casey Marshall <csm@gnu.org>
1856 * javax/crypto/MacSpi.java (clone): Provide meaningful
1859 2004-09-21 Tom Tromey <tromey@redhat.com>
1862 * Makefile.in: Rebuilt.
1863 * Makefile.am (MOSTLYCLEANFILES): Removed.
1864 (mostlyclean-local): Remove header files.
1866 2004-09-21 Casey Marshall <csm@gnu.org>
1868 * java/security/cert/X509CRLSelector.java:
1869 (match): remove unreachable try-catch clauses.
1870 Reported by: Dalibor Topic <robilad@kaffe.org>
1872 2004-09-21 Mark Wielaard <mark@klomp.org>
1874 * java/util/TreeMap.java (root): Don't initialize.
1875 (TreeMap(Comparator)): Call fabricateTree(0).
1876 (fabricateTree): Initialize root and size when count is 0.
1878 2004-09-21 Sven de Marothy <sven@physto.se>
1880 * java/nio/ByteBuffer.java (hashCode): Implemented.
1881 * java/nio/CharBuffer.java: Likewise.
1882 * java/nio/DoubleBuffer.java: Likewise.
1883 * java/nio/FloatBuffer.java: Likewise.
1884 * java/nio/LongBuffer.java: Likewise.
1885 * java/nio/IntBuffer.java: Likewise.
1886 * java/nio/ShortBuffer.java: Likewise.
1888 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
1890 * javax/security/auth/x500/X500Principal.java: Fix some merge glitches.
1892 2004-09-21 Michael Koch <konqueror@gmx.de>
1894 * javax/net/ssl/SSLServerSocket.java:
1895 Removed comment about "Do not edit this file, it's generated.".
1897 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
1899 Import the big Crypto/Jessie/Security merge from Classpath.
1901 * Makefile.am: Add imported files.
1902 * Makefile.in: Regenerate.
1904 2004-08-14 Casey Marshall <csm@gnu.org>
1906 The Big Crypto Merge of 2004.
1908 * javax/security/auth/x500/X500Principal.java: Replaced with GNU
1911 Files imported from GNU Crypto.
1912 * javax/crypto/BadPaddingException.java
1913 * javax/crypto/Cipher.java
1914 * javax/crypto/CipherInputStream.java
1915 * javax/crypto/CipherOutputStream.java
1916 * javax/crypto/CipherSpi.java
1917 * javax/crypto/EncryptedPrivateKeyInfo.java
1918 * javax/crypto/ExemptionMechanism.java
1919 * javax/crypto/ExemptionMechanismException.java
1920 * javax/crypto/ExemptionMechanismSpi.java
1921 * javax/crypto/IllegalBlockSizeException.java
1922 * javax/crypto/KeyAgreement.java
1923 * javax/crypto/KeyAgreementSpi.java
1924 * javax/crypto/KeyGenerator.java
1925 * javax/crypto/KeyGeneratorSpi.java
1926 * javax/crypto/Mac.java
1927 * javax/crypto/MacSpi.java
1928 * javax/crypto/Makefile.am
1929 * javax/crypto/NoSuchPaddingException.java
1930 * javax/crypto/NullCipher.java
1931 * javax/crypto/NullCipherImpl.java
1932 * javax/crypto/SealedObject.java
1933 * javax/crypto/SecretKey.java
1934 * javax/crypto/SecretKeyFactory.java
1935 * javax/crypto/SecretKeyFactorySpi.java
1936 * javax/crypto/ShortBufferException.java
1937 * javax/crypto/interfaces/DHKey.java
1938 * javax/crypto/interfaces/DHPrivateKey.java
1939 * javax/crypto/interfaces/DHPublicKey.java
1940 * javax/crypto/interfaces/PBEKey.java
1941 * javax/crypto/spec/DESKeySpec.java
1942 * javax/crypto/spec/DESedeKeySpec.java
1943 * javax/crypto/spec/DHGenParameterSpec.java
1944 * javax/crypto/spec/DHParameterSpec.java
1945 * javax/crypto/spec/DHPrivateKeySpec.java
1946 * javax/crypto/spec/DHPublicKeySpec.java
1947 * javax/crypto/spec/IvParameterSpec.java
1948 * javax/crypto/spec/PBEKeySpec.java
1949 * javax/crypto/spec/PBEParameterSpec.java
1950 * javax/crypto/spec/RC2ParameterSpec.java
1951 * javax/crypto/spec/RC5ParameterSpec.java
1952 * javax/crypto/spec/SecretKeySpec.java
1953 * javax/security/auth/AuthPermission.java
1954 * javax/security/auth/DestroyFailedException.java
1955 * javax/security/auth/Destroyable.java
1956 * javax/security/auth/Policy.java
1957 * javax/security/auth/PrivateCredentialPermission.java
1958 * javax/security/auth/RefreshFailedException.java
1959 * javax/security/auth/Refreshable.java
1960 * javax/security/auth/Subject.java
1961 * javax/security/auth/SubjectDomainCombiner.java
1962 * javax/security/auth/callback/Callback.java
1963 * javax/security/auth/callback/CallbackHandler.java
1964 * javax/security/auth/callback/ChoiceCallback.java
1965 * javax/security/auth/callback/ConfirmationCallback.java
1966 * javax/security/auth/callback/LanguageCallback.java
1967 * javax/security/auth/callback/NameCallback.java
1968 * javax/security/auth/callback/PasswordCallback.java
1969 * javax/security/auth/callback/TextInputCallback.java
1970 * javax/security/auth/callback/TextOutputCallback.java
1971 * javax/security/auth/callback/UnsupportedCallbackException.java
1972 * javax/security/auth/login/AccountExpiredException.java
1973 * javax/security/auth/login/AppConfigurationEntry.java
1974 * javax/security/auth/login/Configuration.java
1975 * javax/security/auth/login/CredentialExpiredException.java
1976 * javax/security/auth/login/FailedLoginException.java
1977 * javax/security/auth/login/LoginContext.java
1978 * javax/security/auth/login/LoginException.java
1979 * javax/security/auth/login/NullConfiguration.java
1980 * javax/security/auth/x500/X500PrivateCredential.java
1981 * javax/security/sasl/AuthenticationException.java
1982 * javax/security/sasl/AuthorizeCallback.java
1983 * javax/security/sasl/RealmCallback.java
1984 * javax/security/sasl/RealmChoiceCallback.java
1985 * javax/security/sasl/Sasl.java
1986 * javax/security/sasl/SaslClient.java
1987 * javax/security/sasl/SaslClientFactory.java
1988 * javax/security/sasl/SaslException.java
1989 * javax/security/sasl/SaslServer.java
1990 * javax/security/sasl/SaslServerFactory.java
1991 * org/ietf/jgss/ChannelBinding.java
1992 * org/ietf/jgss/GSSContext.java
1993 * org/ietf/jgss/GSSCredential.java
1994 * org/ietf/jgss/GSSException.java
1995 * org/ietf/jgss/GSSManager.java
1996 * org/ietf/jgss/GSSName.java
1997 * org/ietf/jgss/MessageProp.java
1998 * org/ietf/jgss/Oid.java
1999 * org/ietf/jgss/MessagesBundle.properties
2001 Files imported from Jessie <http://www.nongnu.org/jessie/>
2002 * javax/net/ServerSocketFactory.java
2003 * javax/net/SocketFactory.java
2004 * javax/net/VanillaServerSocketFactory.java
2005 * javax/net/VanillaSocketFactory.java
2006 * javax/net/ssl/HandshakeCompletedEvent.java
2007 * javax/net/ssl/HandshakeCompletedListener.java
2008 * javax/net/ssl/HostnameVerifier.java
2009 * javax/net/ssl/HttpsURLConnection.java
2010 * javax/net/ssl/KeyManager.java
2011 * javax/net/ssl/KeyManagerFactory.java
2012 * javax/net/ssl/KeyManagerFactorySpi.java
2013 * javax/net/ssl/ManagerFactoryParameters.java
2014 * javax/net/ssl/SSLContext.java
2015 * javax/net/ssl/SSLContextSpi.java
2016 * javax/net/ssl/SSLException.java
2017 * javax/net/ssl/SSLHandshakeException.java
2018 * javax/net/ssl/SSLKeyException.java
2019 * javax/net/ssl/SSLPeerUnverifiedException.java
2020 * javax/net/ssl/SSLPermission.java
2021 * javax/net/ssl/SSLProtocolException.java
2022 * javax/net/ssl/SSLServerSocket.java
2023 * javax/net/ssl/SSLServerSocketFactory.java
2024 * javax/net/ssl/SSLSession.java
2025 * javax/net/ssl/SSLSessionBindingEvent.java
2026 * javax/net/ssl/SSLSessionBindingListener.java
2027 * javax/net/ssl/SSLSessionContext.java
2028 * javax/net/ssl/SSLSocket.java
2029 * javax/net/ssl/SSLSocketFactory.java
2030 * javax/net/ssl/TrivialHostnameVerifier.java
2031 * javax/net/ssl/TrustManager.java
2032 * javax/net/ssl/TrustManagerFactory.java
2033 * javax/net/ssl/TrustManagerFactorySpi.java
2034 * javax/net/ssl/X509KeyManager.java
2035 * javax/net/ssl/X509TrustManager.java
2036 * javax/security/cert/Certificate.java
2037 * javax/security/cert/CertificateEncodingException.java
2038 * javax/security/cert/CertificateException.java
2039 * javax/security/cert/CertificateExpiredException.java
2040 * javax/security/cert/CertificateNotYetValidException.java
2041 * javax/security/cert/CertificateParsingException.java
2042 * javax/security/cert/X509CertBridge.java
2043 * javax/security/cert/X509Certificate.java
2045 2004-08-20 Casey Marshall <csm@gnu.org>
2047 * java/security/cert/X509CRLSelector.java: New file.
2048 * java/security/cert/X509CertSelector.java: New file.
2050 2004-09-15 Michael Koch <konqueror@gmx.de>
2052 * gnu/java/net/protocol/file/Handler.java
2053 (openConnection): Don't throw exception if host part for file: URI is
2054 present. setURL() keeps file: protocol if ftp: protocol is not
2057 2004-09-14 Richard Henderson <rth@redhat.com>
2059 * java/lang/natPosixProcess.cc (waitForSignal): Ignore return
2060 value of sigsuspend.
2062 2004-09-12 Tom Tromey <tromey@redhat.com>
2064 * javax/naming/CompoundName.java (CompoundName): Don't check for
2065 separator in "flat" case.
2067 2004-09-12 Michael Koch <konqueror@gmx.de>
2069 * libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces
2070 AM_CONFIG_HEADER by AC_CONFIG_FILES.
2071 * libltdl/Makefile.in, libltdl/aclocal.m4, libltdl/configure:
2074 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
2077 * win32-threads.cc (_Jv_ThreadInitData): Zero out thread
2078 handle in newly-allocated _Jv_Thread_t.
2079 (_Jv_ThreadDestroyData): Close thread handle.
2080 (_Jv_ThreadStart): Remove obsolete comment.
2081 Store handle of newly-created thread in _Jv_Thread_t.
2082 * include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
2083 before including <windows.h>
2084 #define _Jv_HaveCondDestroy
2086 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
2088 * java/lang/natThread.cc (finalize_native): Destroy
2089 join conditional variable and mutex if these destroy
2090 operations are supported.
2092 2004-09-10 Dalibor Topic <robilad@kaffe.org>
2094 * gnu/java/net/protocol/file/Connection.java (permission): New field.
2095 (DEFAULT_PERMISSION): New constant.
2096 (Connection): Create a FilePermission with permission to read file.
2098 2004-09-10 Michael Koch <konqueror@gmx.de>
2100 * gnu/java/net/protocol/file/Connection.java
2101 (getLastModified): Moved around.
2102 (getPermission): Return stored permission.
2104 2004-09-10 Michael Koch <konqueror@gmx.de>
2106 * Makefile.in: Regenerate.
2108 2004-09-10 Michael Koch <konqueror@gmx.de>
2110 * Makefile.am: Reverted accidently commited stuff.
2111 * configure: Regenerated.
2113 2004-09-10 Michael Koch <konqueror@gmx.de>
2115 * gnu/java/net/protocol/file/Connection.java
2116 (lineSeparator): Made non-final.
2118 (connect): Initialize lineSeparator lazily. Use ByteArrayInputStream
2119 instead of StringBufferInputStream.
2121 2004-09-10 Michael Koch <konqueror@gmx.de>
2123 * gnu/java/net/protocol/file/Connection.java
2124 (connect): Handle file is a directory case.
2126 2004-09-10 Michael Koch <konqueror@gmx.de>
2129 (xlib_includes): Removed.
2130 (AM_CPPFLAGS): Renamed from INCLUDES.
2131 (lib_gnu_awt_xlib_la_CPPFLAGS): New automake variable.
2132 * Makefile.in: Regenerate.
2134 2004-09-09 Michael Koch <konqueror@gmx.de>
2136 * java/security/ProtectionDomain.java,
2137 * java/util/PropertyPermissionCollection.java:
2138 Fixed javadocs all over.
2140 2004-09-09 Sven de Marothy <sven@physto.se>
2142 Patch from David Gilbert <david.gilbert@object-refinery.com>
2143 * java/lang/Comparable.java: Fixed documentation errors.
2144 * java/util/Arrays.java: Likewise.
2146 2004-09-09 Andrew John Hughes <gnu_andrew@member.fsf.org>
2148 * java/net/Inet4Address.java
2149 (Inet4Address): Added comment to serialization UID.
2150 * java/text/Format.java
2151 (Format): Added comment to serialization UID.
2153 2004-09-09 Michael Koch <konqueror@gmx.de>
2155 * java/lang/System.java
2156 (err): Fixed javadoci to point to setErr() and not setOut().
2158 2004-09-09 Jeroen Frijters <jeroen@frijters.net>
2160 (normalizePath): Added special case for windows systems.
2162 2004-09-09 Michael Koch <konqueror@gmx.de>
2165 (dupSeparator): Made private.
2166 (File(URI)): New constructor.
2167 (getParentFile): Fixed javadoc.
2168 (createTempFile): Reformated.
2169 (setReadOnly): Added comment.
2170 (deleteOnExit): Merged javadoc with classpath version.
2172 2004-09-09 Michael Koch <konqueror@gmx.de>
2174 * Makefile.am: Don't try to include deps.mk.
2175 * Makefile.in: Regenerated.
2177 2004-09-08 Bryce McKinlay <mckinlay@redhat.com>
2179 * configure.ac (AC_CONFIG_COMMANDS): Don't create subdirectories and
2181 * configure: Rebuilt.
2183 2004-09-04 Mohan Embar <gnustuff@thisiscool.com>
2185 * java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces):
2186 Changed pfn from static local to local.
2188 2004-09-03 Bryce McKinlay <mckinlay@redhat.com>
2189 H.J. Lu <hongjiu.lu@intel.com>
2192 * Makefile.am (GCJCOMPILE): Remove definition.
2193 (AM_CFLAGS): Add -fclasspath and -fbootclasspath flags.
2194 Use LTGCJCOMPILE, not GCJCOMPILE, to build .lo targets.
2195 * Makefile.in: Rebuilt.
2197 2004-09-03 Kelley Cook <kcook@gcc.gnu.org>
2199 * configure.ac (enable-gc-debug): Update help for new syntax.
2200 * configure: Regenerate.
2202 2004-09-03 David Daney <ddaney@avtrex.com>
2204 * include/mips-signal.h: Update copyright.
2206 2004-09-03 David Daney <ddaney@avtrex.com>
2208 * configure.host: Use -fno-use-divide-subroutine for mips*-*-linux*.
2209 * include/mips-signal.h: Added HANDLE_FPE support.
2211 2004-08-31 Michael Koch <konqueror@gmx.de>
2213 * javax/swing/plaf/basic/BasicTextAreaUI.java
2214 (create): New method.
2215 * javax/swing/text/DefaultHighlighter.java
2216 (DefaultHighlightPainter.debugRect): Removed.
2217 * javax/swing/text/StyleContext.java
2218 (DEFAULT_STYLE): New field.
2220 2004-08-31 Michael Koch <konqueror@gmx.de>
2222 * javax/swing/plaf/basic/BasicLookAndFeel.java
2223 (initComponentDefaults): Add keybindings for selection.backward and
2224 selection-forward for text components.
2225 * javax/swing/plaf/basic/BasicTextUI.java
2226 (paintSafely): Paint highlight only when something is actually
2228 * javax/swing/text/DefaultCaret.java
2229 (handleHighlight): New method.
2230 (setSelectionVisible): Don't do anything when nothing changes.
2232 (moveDot): Reimplemented. Handle highlight.
2233 (setDot): Set mark too. Handle highlight.
2234 (getSelectionPainter): New method.
2235 * javax/swing/text/DefaultEditorKit.java
2236 (defaultActions): Added new actions for text selection.
2237 * javax/swing/text/DefaultHighlighter.java
2238 (DefaultHighlightPainter): New inner class.
2239 (DefaultPainter): New field.
2240 (paint): Implemented.
2241 * javax/swing/text/PlainView.java
2242 (paint): Don't draw background here again.
2243 * javax/swing/text/Utilities.java
2244 (getTabbedTextWidth): Use width of ' ' instead of 'm' for tabsize.
2245 (drawTabbedText): Likewise.
2247 2004-08-31 Graydon Hoare <graydon@redhat.com>
2249 * javax/swing/JComponent.java
2250 (resetKeyboardActions): Add null checks.
2252 2004-08-31 Graydon Hoare <graydon@redhat.com>
2254 * javax/swing/DefaultButtonModel.java:
2255 Skip group notification when no group is set.
2257 2004-08-31 Graydon Hoare <graydon@redhat.com>
2259 * javax/swing/JColorChooser.java:
2260 Make a couple inner classes static, for jikes.
2262 2004-08-31 Michael Koch <konqueror@gmx.de>
2264 * javax/swing/plaf/basic/BasicTextUI.java
2265 (RottView.modelToView): New method.
2266 (UpdateHandler): Renamed from EventHandler.
2267 (updateHandler): Renamed from eventHandler.
2268 (modelToView): Implemented.
2269 * javax/swing/text/AbstractDocument.java
2270 (BranchElement.getElement): Return null for non-existing indeces.
2271 (BranchElement.getElementIndex): Return 0 in some corner cases.
2272 * javax/swing/text/FieldView.java
2273 (modelToView): New method.
2274 * javax/swing/text/PlainView.java
2275 (modelToView): Made public.
2277 2004-08-31 Kim Ho <kho@redhat.com>
2279 * Makefile.am: New files.
2280 * Makefile.in: Regenerate.
2281 * gcj/Makefile.in: Regenerate.
2282 * include/Makefile.in: Regenerate.
2283 * java/awt/Color.java: Fix documentation.
2284 (RGBtoHSB): Use floats for conversions.
2285 * javax/swing/ButtonGroup.java: Run Jalopy.
2286 (setSelected): Reimplement.
2287 * javax/swing/DefaultButtonModel.java: Run Jalopy.
2288 (changeState): Let ButtonGroup know that the button
2290 * javax/swing/JColorChooser.java: Implement.
2291 * javax/swing/JLabel.java: Run Jalopy.
2292 * javax/swing/JSpinner.java: Run Jalopy.
2293 (setValue): New method.
2294 * javax/swing/JTabbedPane.java: Run Jalopy.
2295 (removeTabAt): Call correct remove method.
2296 * javax/swing/SpinnerNumberModel.java: Run Jalopy.
2297 (getPreviousValue): Compare minimum value.
2298 * javax/swing/Timer.java: Run Jalopy.
2299 (run): Comment out println.
2300 * javax/swing/ToolTipManager.java:
2301 (mouseMoved): Get new tooltip text for location.
2302 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
2304 * javax/swing/colorchooser/ColorChooserComponentFactory.java:
2306 * javax/swing/colorchooser/DefaultColorSelectionModel.java:
2308 (setSelectedColor): Fire ChangeEvent.
2309 * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
2310 New file. Implement.
2311 * javax/swing/colorchooser/DefaultPreviewPanel.java:
2313 * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
2315 * javax/swing/colorchooser/DefaultSwatchChooserPanel.java:
2317 * javax/swing/plaf/basic/BasicArrowButton.java:
2318 (getArrow): Fix size of upward pointing button.
2319 * javax/swing/plaf/basic/BasicColorChooserUI.java:
2321 * javax/swing/plaf/basic/BasicSliderUI.java:
2322 (getWidthOfWidestLabel): Use preferred dimensions.
2323 (getHeightOfTallestLabel): Ditto.
2324 * javax/swing/plaf/basic/BasicSpinnerUI.java:
2326 (mousePressed): Disable changes to spinner if it is not enabled.
2327 * testsuite/Makefile.in: Regenerate.
2330 2004-08-31 Michael Koch <konqueror@gmx.de>
2332 * javax/swing/plaf/basic/BasicTableHeaderUI.java,
2333 javax/swing/plaf/basic/BasicTableUI.java:
2334 Added copyright notice.
2336 2004-08-31 Olga Rodimina <rodimina@redhat.com>
2338 * Makefile.am: Added new files.
2339 * Makefile.in: Regenerate.
2340 * javax/swing/ComboBoxEditor.java: Added javadocs.
2341 * javax/swing/ComboBoxModel.java: Likewise.
2342 * javax/swing/DefaultComboBoxModel.java: Implemented.
2343 * javax/swing/DefaultListCellRenderer.java: Added javadocs
2344 and ran through jalopy to fix formatting style.
2345 (getListCellRendererComponent): Use appropriate border
2346 if renderer has focus and use noFocusBorder when it doesn't.
2347 * javax/swing/JComboBox.java: Implemented.
2348 * javax/swing/JList.java:
2349 (locationToIndex): New Method. Implemented.
2350 (indexToLocation): New Method.
2351 * javax/swing/JPopupMenu.java:
2352 (visible): New field.
2353 (isVisible): Changed to use new field above.
2354 (setVisible): Likewise.
2355 * javax/swing/MutableComboBoxModel.java: Added javadocs.
2356 * javax/swing/plaf/basic/BasicArrowButton.java:
2357 (shadow): Changed default color to Color.gray.
2358 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
2359 UI delegate for JComboBox.
2360 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
2361 Popup menu containing list of JComboBox's items.
2362 * javax/swing/plaf/basic/BasicComboBoxEditor.java: New File.
2363 * javax/swing/plaf/basic/BasicComboBoxRenderer.java: New File.
2364 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
2365 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
2366 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2367 (popupMenuWillBecomeVisible): Set selected path to the first
2368 element only if it is of type MenuElement. Also fix formatting
2370 * javax/swing/plaf/basic/ComboPopup.java: Added javadocs and missing
2373 2004-08-31 Michael Koch <konqueror@gmx.de>
2375 * javax/swing/text/AbstractDocument.java
2376 (createBranchElement): Use new constructor of BranchElement.
2377 (createLeafElement): Renamed arguments.
2378 (getRootElements): Implemented.
2379 (BranchElement.start): Removed.
2380 (BranchElement.end): Likewise.
2381 (BranchElement.BranchElement): Fixed arguments.
2382 (BranchElement.getEndOffset): Reimplemented.
2383 (BranchElement.getStartOffset): Likewis.
2384 * javax/swing/text/DefaultCaret.java
2385 (paint): Draw simple vertical line as caret instead of a rectangle.
2386 * javax/swing/text/JTextComponent.java
2387 (setText): Use doc directly.
2388 * javax/swing/text/PlainView.java
2389 (nextTabStop): Implemented.
2390 * javax/swing/text/Utilities.java
2391 (drawTabbedText): nextTabStop() returns an absolute x position.
2392 (getTabbedTextWidth): Likewise.
2394 2004-08-31 Graydon Hoare <graydon@redhat.com>
2396 * java/awt/Component.java
2397 (isFocusTraversable): Predicate on isLightweight()
2398 (setFocusable): Set isFocusTraversableOverridden.
2399 (requestFocus): Predicate peer dispatch on !isLightweight()
2400 (requestFocusInWindow): Likewise.
2401 (dispatchEventImpl): Coordinate with KeyboardFocusManager.
2402 * java/awt/Container.java
2403 (dispatchEventImpl): Predicate on event mask.
2404 (LightweightDispatcher): Remove focus machinery.
2405 * java/awt/DefaultFocusTraversalPolicy.java
2406 (accept): Expand predicate to include isFocusable().
2407 * java/awt/DefaultKeyboardFocusManager.java:
2408 Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
2409 * java/awt/KeyboardFocusManager.java
2410 (redispatchEvent): Synchronize on event to prevent feedback.
2411 * javax/swing/AbstractButton.java
2412 (ButtonFocusListener): Remove class.
2413 (init): Set focusPainted, focusable.
2414 * javax/swing/ActionMap.java (get): Check parent for null.
2415 * javax/swing/InputMap.java (get): Likewise.
2416 * javax/swing/JComponent.java
2417 (inputMap_whenFocused): New InputMap.
2418 (inputMap_whenAncestorOfFocused): Likewise.
2419 (inputMap_whenInFocusedWindow): Likewise.
2420 (getActionForKeyStroke): Rewrite.
2421 (getConditionForKeystroke): Likewise.
2422 (ActionListenerProxy): New private class.
2423 (setInputMap): Implement.
2424 (getInputMap): Likewise.
2425 (setActionMap): Likewise.
2426 (getActionMap): Likewise.
2427 (processComponentKeyEvent): New empty method.
2428 (processKeyEvent): Implement.
2429 (processKeyBinding): Likewise.
2430 (resetKeyboardActions): Rewrite.
2431 * javax/swing/KeyStroke.java: Rewrite.
2432 * javax/swing/SwingUtilities.java
2433 (notifyAction): Implement.
2434 (replaceUIActionMap): Likewise.
2435 (replaceUIInputMap): Likewise.
2436 * javax/swing/plaf/basic/BasicButtonListener.java
2437 (focusGained): Implement.
2438 (focusLost): Repaint if focusPainted().
2439 (installKeyboardActions): Install pressed / released actions.
2440 (uninstallKeyboardActions): Implement.
2441 * javax/swing/plaf/basic/BasicButtonUI.java
2442 (focusColor): New field.
2443 (installDefaults): Load focus color, install input map.
2444 (installKeyboardActions): Implement.
2445 (uninstallKeyboardActions): Likewise.
2446 (paintFocus): Rewrite.
2447 * javax/swing/plaf/basic/BasicLookAndFeel.java
2448 (Button.focus): New default, midPurple.
2449 * javax/swing/plaf/basic/BasicTextUI.java
2451 (installUI): Get doc from kit, load defaults.
2452 (getKeymapName): Implement.
2453 (createKeymap): Likewise.
2454 (installKeyboardActions): Likewise.
2455 (getInputMap): Likewise.
2456 (getActionMap): Likewise.
2457 (createActionMap): Likewise.
2458 * javax/swing/text/AbstractDocument.java
2459 (getStartPosition): Implement.
2460 (getEndPosition): Likewise.
2461 * javax/swing/text/DefaultEditorKit.java
2462 (CopyAction): New class.
2463 (CutAction): Likewise.
2464 (DefaultKeyTypedAction): Likewise.
2465 (InsertBreakAction): Likewise.
2466 (InsertContentAction): Likewise.
2467 (InsertTabAction): Likewise.
2468 (PasteAction): Likewise.
2469 (defaultActions): New static table.
2470 (createCaret): Implement.
2471 (getActions): Likewise.
2472 * javax/swing/text/JTextComponent.java
2473 (KeymapWrapper): New private class.
2474 (KeymapActionMap): Likewise.
2475 (DefaultKeymap): New class.
2476 (keymaps): New static table.
2477 (keymap): New field.
2478 (getKeymap): Implement.
2479 (removeKeymap): Likewise.
2480 (addKeymap): Likewise.
2481 (setKeymap): Likewise.
2482 (loadKeymap): Likewise.
2483 (getActions): Likewise.
2484 (margin): New field.
2485 (JTextComponent): Build and install default keymap.
2486 * javax/swing/text/TextAction.java
2487 (textAction): Call super properly.
2488 (getTextComponent): Implement.
2489 * javax/swing/text/Utilities.java
2490 (drawTabbedText): Adjust position by ascent.
2492 2004-08-31 David Jee <djee@redhat.com>
2496 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
2497 (setEnabled): Make it a native method.
2498 * java/awt/DefaultKeyboardFocusManager.java
2499 (postProcessKeyEvent): Only post event if the menu item
2501 * java/awt/MenuItem.java:
2502 Private field 'enabled' should be true by default.
2503 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
2504 (setEnabled): New function.
2506 2004-08-31 David Jee <djee@redhat.com>
2510 * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
2511 (nativeSetHelpMenu): New native method declaration.
2512 (addHelpMenu): Call nativeSetHelpMenu().
2514 * java/awt/MenuBar.java
2515 (setHelpMenu): Call addNotify() on the new help menu.
2516 (add): Call addNotify() on the new menu.
2517 (addNotify): Set the help menu if one exists.
2518 * java/awt/peer/MenuBarPeer.java
2520 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
2521 (nativeSetHelpMenu): New method.
2523 2004-08-31 Graydon Hoare <graydon@redhat.com>
2525 * Makefile.am: Add new files.
2526 * Makefile.in: Regenerate.
2527 * javax/swing/Box.java: Fix setting of layout in ctor.
2528 * javax/swing/JScrollPane.java: Scroll headers as well.
2529 * javax/swing/JTable.java: Reimplement.
2530 * javax/swing/JViewPort.java: Only add non-null children.
2531 * javax/swing/ScrollPaneLayout.java: Correct header calculations.
2532 * javax/swing/Timer.java: Fix stopping null waker.
2533 * javax/swing/plaf/basic/BasicTableHeaderUI.java: New file.
2534 * javax/swing/plaf/basic/BasicTableUI.java: New file.
2535 * javax/swing/table/DefaultTableCellRenderer.java: Configure.
2536 * javax/swing/table/DefaultTableColumnModel.java: Flesh out.
2537 * javax/swing/table/DefaultTableModel.java: Clean up.
2538 * javax/swing/table/JTableHeader.java: Implement.
2540 2004-08-31 Mark Wielaard <mark@klomp.org>
2542 * javax/swing/JSpinner.java (getChangeListeners): Remove double
2545 2004-08-31 Mark Wielaard <mark@klomp.org>
2547 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
2548 Declare variables at top of functions/block.
2549 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Likewise.
2551 2004-08-31 Mark Wielaard <mark@klomp.org>
2553 * java/lang/Rectangle.java (intersects): Check r.width and r.height
2556 2004-08-31 Michael Koch <konqueror@gmx.de>
2558 * javax/swing/text/PlainView.java
2559 (selectedColor): New field.
2560 (unselectedColor): Likewise.
2562 (updateMetrics): New method.
2563 (lineToRect): Likewise.
2564 (modelToView): Likewise.
2565 (drawSelectedText): Use color from JTextComponent ad draw with
2567 (drawUnselectedText): Likewise.
2568 (paint): Initialize helper fields.
2569 * javax/swing/text/View.java
2570 (getChildAllocation): New method.
2571 (getViewIndex): Likewise.
2572 (getToolTipText): Likewise.
2574 2004-08-31 Michael Koch <konqueror@gmx.de>
2576 * javax/swing/text/Utilities.java
2577 (drawTabbedText): Reimplemented.
2578 (getTabbedTextWidth): Likewise.
2580 2004-08-31 Michael Koch <konqueror@gmx.de>
2582 * javax/swing/plaf/basic/BasicTextUI.java
2583 (installDefaults): Install caret and highlighter.
2584 (modelToView): Use Bias.Forward when calling sibling.
2585 * javax/swing/text/AbstractDocument.java
2586 (ElementEdit): Implements DocumentEvent.ElementChange.
2587 (ElementEdit.ElementEdit): New method.
2588 (ElementEdit.getChildrenAdded): Likewise.
2589 (ElementEdit.getChildrenRemoved): Likewise.
2590 (ElementEdit.getElement): Likewise.
2591 (ElementEdit.getIndex): Likewise.
2592 * javax/swing/text/DefaultCaret.java
2594 (textComponent): Renamed from parent, made private.
2595 (selectionVisible): Renamed from vis_sel, made private.
2596 (blinkRate): Renamed from blink, made private.
2597 (magicCaretPosition): Renamed from magic, made private.
2598 (visible): Renamed from vis, made private.
2599 (dot): Made private.
2601 (deinstall): Remove as MouseMotionListener.
2602 (install): Initialize textComponent first. Add as MouseMotionListener.
2603 (paint): Reimplemented.
2604 * javax/swing/text/JTextComponent.java
2605 (setCaret): Deinstall old caret, install new one and fire property
2606 change after setting property.
2607 (setHighlighter): Deinstall old highlighter, install new one and fire
2608 property change after setting property.
2609 (setCaretColor): Fire property change after setting property.
2610 (setDisabledTextColor): Likewise.
2611 (setSelectedTextColor): Likewise.
2612 (setSelectionColor): Likewise.
2613 (modelToView): New method.
2615 2004-08-31 Michael Koch <konqueror@gmx.de>
2617 * javax/swing/text/AbstractDocument.java
2618 (getText): Simplified.
2619 * javax/swing/text/Segment.java
2620 (current): New field.
2621 (current): Reimplemented.
2623 (getIndex): Likewise.
2626 (previous): Likewise.
2627 (setIndex): Likewise.
2629 2004-08-31 Michael Koch <konqueror@gmx.de>
2631 * javax/swing/plaf/basic/BasicButtonUI.java
2632 (defaultTextIconGap): Made protected.
2633 (defaultTextShiftOffset): Likewise.
2634 (textShiftOffset): New field.
2635 (clearTextShiftOffset): New method.
2636 (getTextShiftOffset): Likewise.
2637 (setTextShiftOffset): Likewise.
2639 2004-08-31 Michael Koch <konqueror@gmx.de>
2641 * javax/swing/plaf/basic/BasicTextUI.java
2642 (installUI): Add eventHandler as property listener.
2643 (uninstallUI): remove eventHandler as propert listener.
2644 (installDefaults): Added comment.
2645 (installListeners): Likewise.
2646 (installKeyboardActions): Likewise.
2647 (uninstallDefaults): Likewise.
2648 (uninstallListeners): Likewise.
2649 (uninstallKeyboardActions): Likewise.
2651 2004-08-31 Michael Koch <konqueror@gmx.de>
2653 * javax/swing/text/AbstractDocument.java:
2654 Fixed some typos in comments.
2655 (insertString): Reimplemented.
2657 (replace): New method.
2658 (children): Dont use fully qualified class name.
2659 (DefaultDocumentEvent.offset): Renamed from off.
2660 (DefaultDocumentEvent.length): Renamed from len.
2661 (DefaultDocumentEvent.type): New field.
2662 (DefaultDocumentEvent.DefaultDocumentEvent): New constructor.
2663 (DefaultDocumentEvent.getType): Implemented.
2665 2004-08-31 Michael Koch <konqueror@gmx.de>
2667 * javax/swing/plaf/basic/BasicTextUI.java
2668 (RootView.textComponent): Removed.
2669 (RootView.RootView): Don't initialize textComponent.
2670 (RootView.getViewFactory): New method.
2671 (EventHandler): New inner class.
2672 (rootView): Initialize at instance creation.
2673 (eventHandler): New field.
2674 (installUI): Don't create view hierarchy directly,
2675 call modelChanged() instead.
2676 (modelChanged): New method.
2677 * javax/swing/text/JTextComponent.java
2678 (setDocument): Fire property change event.
2680 2004-08-31 Michael Koch <konqueror@gmx.de>
2682 * javax/swing/plaf/basic/BasicTextUI.java
2683 (RootView.paint): Removed debug output.
2684 (paintSafely): Draw highlighter before text.
2685 (paintBackground): Use background color of text component.
2686 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
2689 2004-08-31 Michael Koch <konqueror@gmx.de>
2691 * javax/swing/plaf/basic/BasicToolBarUI.java
2692 (BasicToolBarUI): Fixed arguments for constructor.
2693 (createUI): Fixed creation of object.
2695 2004-08-31 Michael Koch <konqueror@gmx.de>
2697 * javax/swing/DefaultListSelectionModel.java
2698 (fireValueChanged): Renamed from fireSelectionValueChanged,
2701 2004-08-31 Michael Koch <konqueror@gmx.de>
2703 * javax/swing/text/TabSet.java
2704 (TabSet): Implements java.io.Serializable.
2705 * javax/swing/text/TabStop.java
2706 (TabStop): Implements java.io.Serializable.
2707 (TabStop): Made public.
2709 2004-08-31 Michael Koch <konqueror@gmx.de>
2711 * javax/swing/JComponent.java
2712 (setUI): Fire PropertyChange.
2713 * javax/swing/JLabel.java
2714 (text): Renamed from labelText.
2715 (horizontalAlignment): New default vlaue.
2716 (icon): Renamed from activeIcon.
2717 (displayedMnemonic): Renamed from mnemonicKey, added default value.
2718 (displayedMnemonicIndex): Renamed from underlineChar.
2719 (setDisplayedMnemonic): Reimplemented.
2720 * javax/swing/JRadioButton.java
2721 (JRadioButton): New constructors.
2722 * javax/swing/JTextField.java
2723 (JTextField): Throw exception if colums < 0, initialitialz
2724 this.columns directly and initialize document with text conditionally.
2726 2004-08-31 Michael Koch <konqueror@gmx.de>
2728 * javax/swing/plaf/basic/BasicFormattedTextFieldUI.java,
2729 javax/swing/plaf/basic/BasicPasswordFieldUI.java,
2730 javax/swing/plaf/basic/BasicTextAreaUI.java: New files.
2731 * javax/swing/text/FieldView.java
2732 (paint): Just call super method for now.
2733 * Makefile.am: Added new files.
2734 * Makefile.in: Regenerated.
2736 2004-08-31 Ka-Hing Cheung <kahing@javabsp.org>
2738 * javax/swing/AbstractSpinnerModel.java,
2739 javax/swing/JSpinner.java,
2740 javax/swing/SpinnerNumberModel.java,
2741 javax/swing/plaf/basic/BasicSpinnerUI.java:
2743 * javax/swing/plaf/basic/BasicLookAndFeel.java
2744 (initClassDefaults): Added defaults for BasicSpinnerUI.
2746 2004-08-31 Michael Koch <konqueror@gmx.de>
2748 * Makefile.am: Added new files.
2749 * Makefile.in: Regenerated.
2751 2004-08-31 Michael Koch <konqueror@gmx.de>
2753 * javax/swing/TransferHandler.java,
2754 javax/swing/plaf/basic/ComboPopup.java: New files
2755 * Makefile.am: Added javax/swing/TransferHandler.java and
2756 javax/swing/plaf/basic/ComboPopup.java
2757 * Makefile.in: Regenerated.
2759 2004-08-31 Roman Kennke <roman@ontographics.com>
2761 * javax/swing/text/Utilities.java: New file.
2763 2004-08-31 Michael Koch <konqueror@gmx.de>
2765 * Makefile.am: Added javax/swing/text/Utilities.java.
2766 * Makefile.in: Regenerated.
2768 2004-08-31 Graydon Hoare <graydon@redhat.com>
2770 * javax/swing/text/SimpleAttributeSet.java: New file.
2771 * javax/swing/text/StyleConstants.java: New file.
2772 * javax/swing/text/StyleContext.java: New file.
2773 * javax/swing/text/TabSet.java: New file.
2774 * javax/swing/text/TabStop.java: New file.
2775 * javax/swing/text/AbstactDocument.java:
2776 (AbstractElement): Implement attribute support.
2777 * javax/swing/text/AttributeSet.java
2778 (NameAttribute): New static field.
2779 (ResolveAttribute): New static field.
2780 * Makefile.am: Update for new files.
2781 * Makefile.in: Regenerate.
2783 2004-08-31 Craig Black <craig.black@aonix.com>
2785 * gnu/java/awt/peer/gtk/GdkGraphics.java
2786 (drawImage): Add support for scaling pixmaps.
2787 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
2788 (copyAndScalePixmap): New native method.
2790 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
2793 * jni/gtk-peer/gthread-jni.c: Include stdio.h. Eliminate
2794 type-punning compiler warnings using unions.
2795 (throw): Replace bzero with memset.
2797 2004-08-31 Andreas Tobler <a.tobler@schweiz.ch>
2798 Thomas Fitzsimmons <fitzsim@redhat.com>
2800 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: Move
2801 NSA_PB macros to gtkpeer.h. Include gtkpeer.h.
2802 * jni/gtk-peer/gtkpeer.h: Move NSA_PB macros here.
2803 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2804 (nativeSetIconImageFromDecoder): Use NSA_GET_PB_PTR macro.
2806 2004-08-31 Mark Wielaard <mark@klomp.org>
2808 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
2809 #include gdk.h, not gtk.h. #include jni.h, native_state.h, string.h
2810 and stdlib.h, not gtkpeer.h.
2811 (*vm): New static variable.
2812 (areaPreparedID): Make static.
2813 (areaUpdatedID): Likewise.
2814 (area_prepared): Get and use JNIEnv through stored JavaVM *vm.
2815 (area_prepared): Likewise.
2816 (area_updated): Likewise.
2818 (initStaticState): Initialize *vm javaVM.
2819 (pumpBytes): Use given env, not global gdk_env.
2821 2004-08-31 Mark Wielaard <mark@klomp.org>
2823 * java/awt/geom/CubicCurve2D.java (solveCubic): Removed duplicate
2826 2004-08-31 Sven de Marothy <sven@physto.se>
2828 * java/awt/geom/CubicCurve2D.java: Reindent.
2829 (contains): Implemented.
2830 (intersects): Implemented.
2831 * java/awt/geom/QuadCurve2D.java: Likewise.
2832 * java/awt/geom/GeneralPath.java: Reindent and document.
2833 Fully (re)implemented using separate xpoints and ypoints
2835 * java/awt/geom/RoundRectangle2D.java: Several bugfixes (Bug #6007).
2837 2004-08-31 Michael Koch <konqueror@gmx.de>
2839 * javax/swing/JMenuItem.java
2840 (getMenuDragMouseListeners): New method.
2841 (getMenuKeyListeners): Likewise.
2843 2004-08-31 Michael Koch <konqueror@gmx.de>
2845 * javax/swing/AbstractButton.java
2846 (model): Made protected.
2847 (actionListener): Likewise.
2848 (changeListener): Likewise.
2849 (itemListener): Likewise.
2850 (multiClickThreshhold): New field.
2851 (getActionListeners): New method.
2852 (getChangeListeners): Likewise.
2853 (getItemListeners): Likewise.
2854 (fireItemStateChanged): Simplified implementation.
2855 (fireActionPerformed): Likewise.
2856 (fireStateChanged): Likewise.
2857 (getMultiClickThreshhold): New method.
2858 (setMultiClickThreshhold): Likewise.
2860 2004-08-31 Tom Tromey <tromey@redhat.com>
2862 * java/awt/image/Kernel.java (clone): Use super.clone().
2864 2004-08-31 David Jee <djee@redhat.com>
2867 * gnu/java/awt/peer/gtk/GtkFramePeer.java
2868 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
2869 (nativeSetIconImageFromData): New native method declaration.
2870 (setIconImage): Handle images not produced from GdkPixbufDecoder.
2871 * gnu/java/awt/peer/gtk/GtkImage.java
2872 (getPixelCache): New method.
2873 (getColorModel): New method.
2874 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2875 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
2876 (free_pixbuf_data): New helper function.
2877 (nativeSetIconImageFromData): New function.
2879 2004-08-31 Graydon Hoare <graydon@redhat.com>
2882 * javax/swing/JLayeredPane.java
2883 (setLayer): Permit changing layer after addition.
2884 (setPosition): Permit over-length positions.
2885 (layerToRange): Compare intValue()s.
2886 * javax/swing/Box.java (createHorizontalBox): Implement.
2887 (createRigidArea): Likewise.
2888 (createVerticalBox): Likewise.
2890 2004-08-31 Kim Ho <kho@redhat.com>
2892 * java/awt/Component.java:
2893 (processMouseEvent): Consume event after
2894 listeners process it.
2895 (processMouseMotionEvent): ditto.
2896 (processMouseWheelEvent): ditto.
2897 * java/awt/Container.java:
2898 (acquireComponentForMouseEvent):
2899 Do not dispatch to events that have been
2900 removed from the Container.
2901 (handleEvent): Consume the MouseEvents.
2902 * javax/swing/RepaintManager.java:
2903 (paintDirtyRegions): Do not add to list of
2904 damaged areas if the component has no root.
2906 2004-08-31 Michael Koch <konqueror@gmx.de>
2908 * javax/swing/plaf/basic/BasicMenuItemUI.java: Clean ip imports.
2910 2004-08-31 Mark Wielaard <mark@klomp.org>
2912 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
2913 null when a MissingResourceException is thrown. Should never happen.
2915 2004-08-31 Mark Wielaard <mark@klomp.org>
2917 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
2918 when argument is null.
2920 2004-08-31 Mark Wielaard <mark@klomp.org>
2922 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2923 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
2924 Define hid at start of function.
2925 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
2928 2004-08-31 Mark Wielaard <mark@klomp.org>
2930 * gnu/java/awt/EmbeddedWindow.java: Reindent.
2931 * javax/swing/JButton.java: Reindent.
2932 * javax/swing/JCheckBox.java: Reindent.
2934 2004-08-31 Mark Wielaard <mark@klomp.org>
2936 * Makefile.am (gtk_c_source_files): Added
2937 jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c.
2938 (gtk_awt_peer_sources): Added
2939 gnu/java/awt/peer/gtk/GThreadMutex.java and
2940 gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java.
2941 * Makefile.in: Regenerated.
2943 2004-08-31 Archie Cobbs <archie@dellroad.org>
2945 * jni/gtk-peer/gthread-jni.c: don't #include nonexistent files
2947 2004-08-31 Steven Augart <augart@watson.ibm.com>
2949 * jni/gtk-peer/gthread-jni.c (c-font-lock-extra-types):
2950 Added jfieldID, jmethodID.
2952 2004-08-31 Mark Wielaard <mark@klomp.org>
2954 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
2955 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): Initialize
2956 gdk_env before calling any gdk or gtk function.
2958 * gnu/java/awt/peer/gtk/GtkMainThread.java (gtkInitCalled): New field.
2959 (GtkMainThread): Call wait() in while loop waiting for gtkInitCalled.
2960 (run): Set gtkInitCalled.
2962 2004-08-31 Steven Augart <augart@watson.ibm.com>
2964 * gnu/java/awt/peer/gtk/GtkMainThread.java (run): Pass the value of
2965 the gnu.classpath.awt.gtk.portable.native.sync system property to C.
2967 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
2968 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): New argument,
2969 portableNativeSync. Delegate PORTABLE_NATIVE_SYNC work to
2971 (init_glib_threads): New function.
2973 2004-08-31 Mark Wielaard <mark@klomp.org>
2975 * jni/gtk-peer/gthread-jni.c: Define MIN_, MAX_ and NORM_
2976 PRIORITY when not already defined in header file.
2978 2004-08-31 Mark Wielaard <mark@klomp.org>
2980 * jni/gtk-peer/gthread-jni.c (setup_cache): Call
2981 ExceptionOccurred, not ExceptionCheck, when we don't have JNI 1.2.
2983 2004-08-31 Steven Augart <augart@watson.ibm.com>
2985 * gnu/native/jni/gtk-peer/gthread-jni.c: Indentation fixes.
2986 Implemented missing functions for GTK2.
2987 Added error handling.
2988 Renamed static functions out of the g_ namespace.
2989 Added TRACE_API_CALLS, EXPLAIN_TROUBLE, EXPLAIN_BROKEN,
2990 EXPLAIN_BADLY_BROKEN, and DELETE_LOCAL_REFS options.
2991 Rewrote global-reference code.
2992 Eliminated cascading errors.
2993 (mutex_trylock_jni_impl) Fully implemented.
2994 (cond_timed_wait_jni_impl) Went from millisecond to microsecond
2996 (setup_cache) New function.
2997 (mutex_cond_wait_jni_impl, mutex_cond_timed_wait_jni_impl) Fixed
2998 bug where they were not unlocking the GMutex associated with the
2999 condition variable during the wait on that condition variable.
3001 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
3002 native/jni/gtk-peer/gthread-jni.c,
3003 native/jni/gtk-peer/gthread-jni.h
3004 (g_thread_jni_functions): Renamed to ...
3005 (portable_native_sync_jni_functions): this name.
3006 (gdk_vm): Renamed to...
3007 (the_vm): this name.
3009 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3010 (gdk_vm): Removed duplicate definition.
3011 (gtkInit): Removed stray message to stdout.
3012 (gtkInit): Use g_malloc and g_free instead of malloc and free.
3013 (gtkInit): Fix a const assignment bug.
3014 (gtkInit): Simplified code.
3016 * gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
3017 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
3018 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h,
3019 gnu/java/awt/peer/gtk/GThreadMutex.java:
3022 2004-08-31 Mark Wielaard <mark@klomp.org>
3024 * javax/swing/Box.java: Put FIXME comment above class declaration.
3025 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
3026 * javax/swing/JCheckBox.java: Likewise.
3027 * javax/swing/JDialog.java: Likewise.
3028 * javax/swing/JRadioButton.java: Likewise.
3029 * javax/swing/JToggleButton.java: Likewise.
3030 * javax/swing/UIManager.java: Likewise.
3031 * javax/swing/border/TitledBorder.java: Likewise.
3032 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3033 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
3034 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
3035 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3036 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
3037 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3038 * javax/swing/text/JTextComponent.java: Likewise.
3040 2004-08-31 David Jee <djee@redhat.com>
3043 * gnu/java/awt/peer/gtk/GtkFramePeer.java
3044 (setIconImage): Add a FIXME for unhandled cases.
3046 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
3049 * gnu/awt/LightweightRedirector.java: Call getModifiersEx, not
3050 getModifiers. Replace old button masks with new ones.
3051 * gnu/awt/xlib/XEventLoop.java: Likewise.
3052 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Likewise.
3053 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3054 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3055 * gnu/java/awt/peer/gtk/GtkListPeer.java: Likewise.
3056 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
3057 * java/awt/AWTKeyStroke.java: Remove old modifier masks.
3058 * java/awt/Component.java: Replace old modifier masks with new
3060 * java/awt/Container.java: Call getModifiersEx, not
3062 * java/awt/DefaultKeyboardFocusManager.java: Likewise. Remove
3064 * javax/swing/JMenuItem.java: Replace old button masks with new
3066 * javax/swing/KeyStroke.java: Call getModifiersEx, not
3068 * javax/swing/SwingUtilities.java: Likewise.
3069 * javax/swing/plaf/basic/BasicButtonListener.java: Likewise.
3070 * javax/swing/plaf/basic/BasicInternalFrameUI.java: Likewise.
3071 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Replace old
3072 mask macros with new ones.
3073 * jni/gtk-peer/gtkpeer.h: Replace old button and modifier mask
3074 macros with new ones representing new masks.
3076 2004-08-31 Craig Black <craig.black@aonix.com>
3078 * gnu/java/awt/peer/gtk/GdkGraphics.java
3079 (drawRoundRect): Implemented.
3080 (fillRoundRect): Implemented.
3081 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
3082 (drawRoundRect): Reimplemented to match GdkGraphics.
3083 (fillRoundRect): Reimplemented to match GdkGraphics.
3085 2004-08-31 Mark Wielaard <mark@klomp.org>
3087 * Makefile.in: Regenerated.
3089 2004-08-31 Michael Koch <konqueror@gmx.de>
3091 * gnu/java/awt/EmbeddedWindow.java
3092 (addNotify): Use AccessController to allow execution of privileged
3095 2004-08-31 Michael Koch <konqueror@gmx.de>
3097 * gnu/java/awt/EmbeddedWindow.java
3099 (addNotify): Set peer via reflection.
3100 (setWindowPeer): Removed.
3101 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
3102 * Makefile.am (nat_source_files):
3103 Removed gnu/java/awt/natEmbeddedWindow.cc.
3105 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
3107 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
3108 and gnu/java/security/action/SetAccessibleAction.java.
3110 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
3112 * gnu/java/security/action/GetPropertyAction.java (setParameters):
3113 Renamed from 'setName'. New 2-argument form with default value.
3114 (run): Pass default 'value' parameter to System.getProperty().
3115 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
3118 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
3120 * gnu/java/security/action/GetPropertyAction.java: New class.
3121 * gnu/java/security/action/SetAccessibleAction.java: New class.
3123 2004-08-31 David Jee <djee@redhat.com>
3125 * gnu/java/awt/peer/gtk/GtkFramePeer.java
3126 (setIconImage): Check if image is null.
3128 2004-08-31 David Jee <djee@redhat.com>
3130 * gnu/java/awt/peer/gtk/GtkFramePeer.java
3131 (create): Set the icon image.
3132 (nativeSetIconImage): New native method declaration.
3133 (setIconImage): Implement.
3134 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3135 (nativeSetIconImage): New function.
3137 2004-08-31 Dalibor Topic <robilad@kaffe.org>
3139 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
3140 (filenameFilterCallback): Declare local variable accepted before use.
3142 2004-08-31 Dalibor Topic <robilad@kaffe.org>
3144 * gnu/java/awt/ComponentDataBlitOp.java:
3147 2004-08-31 Tom Tromey <tromey@redhat.com>
3149 * gnu/java/awt/peer/GLightweightPeer.java,
3150 gnu/java/awt/peer/gtk/GdkGraphics2D.java,
3151 gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3152 javax/swing/JScrollPane.java: Removed
3155 2004-08-31 David Jee <djee@redhat.com>
3157 * java/awt/DefaultKeyboardFocusManager.java
3158 (postProcessKeyEvent): Only activate MenuShortcuts on KEY_PRESSED
3159 event. Fix shift modifier checking.
3160 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
3161 (accel_attach): Remove.
3162 (setupAccelGroup): Remove calls to accel_attach.
3164 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
3166 * gnu/java/awt/peer/gtk/GtkArg.java: Remove file.
3167 * gnu/java/awt/peer/gtk/GtkArgList.java: Remove file.
3169 * Makefile.am (gtk_awt_peer_sources): Remove GtkArg.java and
3171 (gtk_c_files): Use CAIRO_CFLAGS and PANGOFT2_CFLAGS, not _LIBS.
3172 * Makefile.in: Regenerate.
3173 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
3174 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3175 (create(String)): New method.
3176 (create): Call new create method.
3177 (getArgs): Remove method.
3178 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
3179 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
3180 (nativeCreate): Rename to create.
3181 (gtkSetLabel): Rename to gtkButtonSetLabel.
3182 (gtkToggleButtonSetActive): New method.
3183 (create): Call gtkToggleButtonSetActive and gtkButtonSetLabel.
3184 (setState): Replace set call with gtkToggleButtonSetActive.
3185 (setLabel): Replace gtkSetLabel call with gtkButtonSetLabel.
3186 (getArgs): Remove method.
3187 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3188 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3189 (gtkWidgetSetSensitive): New method.
3190 (gtkWidgetSetParent): Likewise.
3191 (GtkComponentPeer): Call setParent, setComponentBounds and
3192 setVisibleAndEnabled.
3193 (setParent): New method.
3194 (setComponentBounds): New method.
3195 (setVisibleAndEnabled): New method.
3196 (setEnabled): Call gtkWidgetSetSensitive.
3197 (getArgs): Remove method.
3198 Remove all set methods.
3199 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Call
3200 gtkWindowSetModal, setTitle and setResizable.
3201 (getArgs): Remove method.
3202 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
3203 (setComponentBounds): New method.
3204 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
3205 Replace set call with gtkWindowSetResizable.
3206 (getArgs): Remove method.
3207 (create): Call setTitle and setResizable.
3208 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
3209 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3210 (gtkWindowSetTitle): New method.
3211 (gtkWindowSetResizable): New method.
3212 (gtkWindowSetModal): New method.
3213 (setParent): New method.
3214 (setVisibleAndEnabled): New method.
3215 (getArgs): Remove method.
3216 (setTitle): Call gtkWindowSetTitle.
3217 (setResizable): Call gtkWindowSetResizable.
3218 * jni/gtk-peer/gtkpeer.h [DEBUG_LOCKING]: New define to turn on
3219 and off locking instrumentation.
3221 2004-08-31 Kim Ho <kho@redhat.com>
3223 * Makefile.am: Add new file.
3224 * Makefile.in: Regenerate.
3225 * gcj/Makefile.in: Regenerate
3226 * include/Makefile.in:
3227 * java/awt/Container.java:
3228 (acquireComponentForMouseEvent): Respect
3229 the event mask when looking for candidate.
3230 * javax/swing/JComponent.java:
3231 Remove toolTip field.
3232 (createToolTip): Create a tooltip on demand.
3233 (setToolTipText): Register with the ToolTipManager.
3234 (getToolTipText(MouseEvent)): Return getToolTipText().
3235 * javax/swing/JToolTip.java: Implement.
3236 * javax/swing/Timer.java: Jalopy.
3237 (restart): Call stop, then start.
3238 (stop): Interrupt the timer rather than wait for
3239 the timer to come to a stop naturally.
3240 * javax/swing/ToolTipManager.java: Implement.
3241 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3242 Change ToolTip.background color.
3243 * javax/swing/plaf/basic/BasicToolTipUI.java:
3245 * testsuite/Makefile.in: Regenerate
3247 2004-08-31 Jerry Quinn <jlquinn@optonline.net>
3249 * java/awt/image/DirectColorModel.java (DirectColorModel): Fix
3250 constructor param comments.
3252 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
3254 * java/awt/Component.java: Document AWT 1.0 event handler
3257 2004-08-31 Roman Kennke <roman@ontographics.com>
3259 * javax/swing/Box.java:
3260 (createGlue): Implemented
3261 (createHorizontalGlue): Implemented
3262 (createHorizontalStrut): Implemented
3263 (createVerticalGlue): Implemented
3264 (createVerticalStrut): Implemented
3266 2004-08-31 David Jee <djee@redhat.com>
3268 * gnu/java/awt/peer/gtk/GtkChoicePeer.java
3269 (GtkChoicePeer): Do not automatically select first item.
3270 (getHistory): Remove.
3271 (nativeGetSelected): New method.
3272 (nativeRemoveAll): New method.
3273 (add): Use nativeGetSelected() instead of getHistory().
3275 (removeAll): Call nativeRemoveAll().
3276 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
3277 (create): Migrate to GtkComboBox.
3279 (nativeAdd): Likewise.
3280 (nativeRemove): Likewise.
3282 (nativeRemoveAll): New method.
3283 (nativeGetSelected): New method.
3284 (selection_changed): New method.
3285 (getHistory): Remove.
3286 (item_activate): Remove.
3287 (item_removed): Remove.
3288 (connect_choice_item_selectable_hook): Remove.
3290 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
3292 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create): Use tf
3293 variable in setEditable call.
3295 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
3296 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
3297 (gtkWidgetSetBackground): New method.
3298 (gtkWidgetSetForeground): Likewise.
3299 (create): Set peer's editable state based on awtComponent's.
3301 * java/awt/Button.java (Button()): Use empty string rather than
3302 null in no-label constructor.
3304 2004-08-31 Roman Kennke <roman@ontographics.com>
3306 * javax/swing/BoxLayout.java: Reimplement.
3308 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
3310 * gnu/java/awt/peer/gtk/GdkGraphics.java,
3311 gnu_java_awt_peer_gtk_GdkGraphics.c
3312 (initState(GtkComponentPeer)): Don't return array of colour
3314 (GdkGraphics(int,int)): Set default font to size 12.
3315 (GdkGraphics(GtkComponentPeer)): Set graphics colour to
3316 component's foreground colour.
3317 * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
3318 gnu_java_awt_peer_gtk_GdkGraphics2D.c
3319 (initState(GtkComponentPeer)): Don't return array of colour
3321 (GdkGraphics2D(GtkComponentPeer)): Set foreground and background
3322 colours to component's colours.
3323 (current_colors_of_widget): Remove function.
3324 * gnu/java/awt/peer/gtk/GtkOffScreenImage.java (getGraphics):
3325 Return a new graphics object.
3326 * java/awt/Font.java (toString): Fix format.
3327 * java/awt/Graphics.java (toString): Likewise.
3329 2004-08-31 Craig Black <craig.black@aonix.com>
3331 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
3332 (addTearOff): New function.
3333 * gnu/java/awt/peer/gtk/GtkMenuPeer.java (addTearOff):
3335 (init): Call addTearOff() when menu.isTearOff().
3337 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
3339 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
3340 Default implementation.
3341 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
3342 Implement using GdkPixbufDecoder.
3344 2004-08-31 David Jee <djee@redhat.com>
3346 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3347 (GtkComponentPeer): Use gtkWidgetGetPreferredDimensions() for
3348 setting the size of GtkFileDialogPeers.
3349 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3350 (gtkWidgetGetPreferredDimensions): For widgets extending GtkWindow,
3351 use their default sizes rather than their natural requisitions.
3353 2004-08-31 Michael Koch <konqueror@gmx.de>
3355 * javax/swing/JFormattedTextField.java
3356 (JFormattedTextField): Implemented.
3357 * javax/swing/text/DefaultEditorKit.java
3358 (BeepAction): New inner class.
3359 * javax/swing/text/Segment.java
3360 (partialReturn): New field.
3361 (setPartialReturn): New method.
3362 (isPartialReturn): Likewise.
3363 * javax/swing/text/View.java
3364 (createFragment): Fixed typo.
3365 (getStartOffset): New method.
3366 (getEndOffset): Likewise.
3368 2004-08-31 Michael Koch <konqueror@gmx.de>
3370 * javax/swing/table/DefaultTableColumnModel.java
3371 (serialVersionUID): Made private.
3372 (listenerList): Initialize.
3373 (changeEvent): Initialize.
3374 * javax/swing/table/JTableHeader.java
3375 (JTableHeader): New constructors.
3376 (createDefaultColumnModel): New method.
3377 * javax/swing/table/TableColumn.java
3378 (setHeaderRenderer): Simplified code.
3379 (setCellRenderer): Likewise.
3380 (setWidth): Likewise.
3382 2004-08-31 Tom Tromey <tromey@redhat.com>
3384 * java/text/AttributedString.java (AttributedString): Use
3385 ArrayList to build array of attribute ranges. Don't use
3386 `attribs' before it is set.
3388 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
3390 * HACKING: Remove reference to special automake. No longer needed.
3392 2004-08-30 Tom Tromey <tromey@redhat.com>
3394 * gnu/java/security/util/Prime.java (generateRandomPrime): Use
3395 return result from `add'.
3397 2004-08-30 Tom Tromey <tromey@redhat.com>
3399 * java/rmi/server/UID.java (UID): Read `nextCount', not count.
3401 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
3403 * gnu/java/security/der/DEREncodingException.java: Remove whitespaces.
3405 2004-08-30 Jeroen Frijters <jeroen@frijters.net>
3407 * java/io/File.java File(String,String): Fixed handling of empty
3410 2004-08-30 Casey Marshall <csm@gnu.org>
3412 Author e-mail updated for all files.
3413 * gnu/java/security/OID.java (equals): Test if the aurgment is an
3415 (compareTo): Use `equals'.
3416 * gnu/java/security/der/BitString.java (equals): Test if the
3417 argument is an instance of BitString.
3418 * gnu/java/security/der/DERReader.java: Removed NIO imports. Made
3419 class final. Made fields private.
3420 (<init>): New constructor.
3422 (makeString): Made static; don't use NIO.
3423 (fromIso88591, fromUtf16Be, fromUtf8): New methods.
3424 * gnu/java/security/der/DERWriter.java: Fixed imports.
3425 (writeString): Don't use NIO.
3426 (toIso88591, toUtf16Be, toUtf8): New methods.
3427 * gnu/java/security/der/DERValue.java: Formatting changes only.
3428 * gnu/java/security/der/DER.java: Likewise.
3430 2004-08-30 Tom Tromey <tromey@redhat.com>
3432 * java/nio/CharBuffer.java (put): Fix typo.
3433 * java/nio/DoubleBuffer.java (put): Fix typo.
3434 * java/nio/FloatBuffer.java (put): Fix typo.
3435 * java/nio/IntBuffer.java (put): Fix typo.
3436 * java/nio/LongBuffer.java (put): Fix typo.
3437 * java/nio/ShortBuffer.java (put): Fix typo.
3439 2004-08-30 Florian Weimer <fw@deneb.enyo.de>
3441 * java/nio/ByteBuffer.java (put): Fix typo.
3443 2004-08-30 Casey Marshall <csm@gnu.org>
3445 * java/security/DummyKeyPairGenerator.java (clone): Removed
3446 useless instanceof check.
3447 * java/security/DummyMessageDigest.java (clone): Likewise.
3448 * java/security/DummySignature.java (clone): Likewise.
3449 * java/security/MessageDigest.java (clone): Remove useless
3451 * java/security/MessageDigestSpi.java (clone): Likewise.
3452 * java/security/Signature.java (clone): Provide meaningful
3454 * java/security/SignatureSpi.java (clone): Likewise.
3456 2004-08-29 Mark Wielaard <mark@klomp.org>
3458 * java/util/Arrays.java
3459 (sort(byte[], int, int)): Check fromIndex < 0.
3460 (sort(char[], int, int)): Likewise.
3461 (sort(short[], int, int)): Likewise.
3462 (sort(int[], int, int)): Likewise.
3463 (sort(long[], int, int)): Likewise.
3464 (sort(float[], int, int)): Likewise.
3465 (sort(double[], int, int)): Likewise.
3466 (sort(Object[], int, int, Comparator)): Likewise.
3467 (qsort(byte[], int, int)): Honor lower bound from in insertion sort.
3468 (qsort(char[], int, int)): Likewise.
3469 (qsort(short[], int, int)): Likewise.
3470 (qsort(int[], int, int)): Likewise.
3471 (qsort(long[], int, int)): Likewise.
3472 (qsort(float[], int, int)): Likewise.
3473 (qsort(double[], int, int)): Likewise.
3475 2004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
3477 * java/util/AbstractCollection.java, java/util/AbstractList.java,
3478 java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
3479 java/util/ArrayList.java, java/util/Arrays.java,
3480 java/util/BitSet.java, java/util/Calendar.java,
3481 java/util/Collection.java, java/util/ListIterator.java,
3482 java/util/Map.java, java/util/SortedSet.java:
3483 Added additional exceptions to documentation, along
3484 with some additions and corrections.
3486 2004-08-27 Hans Boehm <Hans.Boehm@hp.com>
3488 * configure.ac: Handle --enable-gc-debug.
3489 * configure: Regenerate.
3490 * include/config.h.in (LIBGCJ_GC_DEBUG): Add.
3491 * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files.
3492 Rearrange include file order.
3493 (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set.
3494 (GC_finalize_all, GC_debug_generic_malloc): Don't declare.
3495 (disable_gc_mutex): Delete along with all references.
3496 (_Jv_MarkObj, _Jv_MarkArray): Use public types,
3497 adjust for debug header size.
3498 (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for
3500 (_Jv_AllocArray): Declare min_heap_addr only if needed.
3501 (gcj_describe_type_fn): New.
3502 (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind.
3503 Register gcj_describe_type_fn.
3504 * include/boehm-gc.h:
3505 (_Jv_AllocObj, _Jv_allocPtrFreeObj):
3506 Don't define, but declare, for debug case.
3507 * java/lang/natObject.cc:
3508 (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set.
3510 2004-08-26 Mark Wielaard <mark@klomp.org>
3512 Fixes PR libgcj/17002:
3513 * java/util/TimeZone.java (defaultZone): Try a couple of ways to get
3514 a TimeZoneId string and then try to convert that to a TimeZone with
3515 getDefaultSystemTimeZone(String).
3516 (timezones0): Changed type from Hashtable to HashMap.
3517 (timezones): Create HashMap, not Hashtable.
3518 (getDefaultTimeZone): New method, rewritten from CNI version.
3519 (readTimeZoneFile): New method.
3520 (readtzFile): Likewise.
3521 (skipFully): Likewise.
3522 * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
3523 getDefaultTimeZoneId and rewritten.
3524 (getDefaultTimeZoneId): Rewritten in java.
3526 2004-08-25 David Daney <daney@avtrex.com>
3528 * Makefile.am (AM_GCJFLAGS): Add LIBGCJ_JAVAFLAGS.
3529 * Makefile.in: Regenerated.
3531 2004-08-23 Bryce McKinlay <mckinlay@redhat.com>
3533 * prims.cc (JVMPI_NOTIFY_ALLOC): New macro. Call jvmpi_notify_alloc
3534 only if jvmpi is enabled.
3535 (jvmpi_notify_alloc): Don't check if jvmpi is enabled here.
3536 (_Jv_AllocObjectNoFinalizer): Use JVMPI_NOTIFY_ALLOC.
3537 (_Jv_AllocString): Likewise.
3538 (_Jv_AllocPtrFreeObject): Likewise.
3540 2004-08-23 Hans Boehm <Hans.Boehm@hp.com>
3542 * defineclass.cc: Include <stdio.h>.
3543 * java/lang/natClassLoader.cc: Include <stdio.h>.
3545 2004-08-21 Andreas Tobler <a.tobler@schweiz.ch>
3546 Michael Koch <konqueror@gmx.de>
3548 * Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.
3549 * Makefile.in: Regenerated.
3551 2004-08-20 Michael Koch <konqueror@gmx.de>
3553 * configure.ac: Replaced all AC_TRY_COMPILE macros with
3554 AC_COMPILE_IFELSE macros.
3556 2004-08-20 Michael Koch <konqueror@gmx.de>
3558 * configure.in: Renamed to configure.ac.
3559 * configure.ac: New file.
3560 * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
3561 include/config.h.in, testsuite/Makefile.in: Regenerated.
3563 2004-08-20 Michael Koch <konqueror@gmx.de>
3565 * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
3566 * aclocal.m4, configure: Regenerated.
3568 2004-08-19 Thomas Fitzsimmons <fitzsim@redhat.com>
3569 Michael Koch <konqueror@gmx.de>
3571 * configure.in, Makefile.am: Ported to automake 1.9.
3572 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
3573 include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
3576 2004-08-19 Tom Tromey <tromey@redhat.com>
3578 * java/net/DatagramSocket.java: Fixed typo.
3580 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
3583 * java/net/URI.java (string): New field. Make all other fields
3585 (readObject): Implemented.
3586 (writeObject): Implemented.
3587 (URI): Set 'string'.
3589 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
3592 * java/util/logging/Handler.java (isLoggable): Accept record if its
3593 log level equals the threshold level. From Robin Green.
3595 2004-08-18 David Daney <ddaney@avtrex.com>
3597 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
3600 2004-08-17 Michael Koch <konqueror@gmx.de>
3602 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
3603 * Makefile.in: Regenerated.
3605 2004-08-16 Tom Tromey <tromey@redhat.com>
3608 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
3610 2004-08-16 Michael Koch <konqueror@gmx.de>
3613 (math_c_files): Renamed from c_files.
3614 (math_c_source_files): Renamed from c_source_files.
3617 include/Makefile.in,
3618 testsuite/Makefile.in: Regenerated.
3620 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
3622 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
3623 to avoid autoconf warning.
3624 * configure: Rebuilt.
3626 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
3628 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
3629 localhostAddress to loopbackAddress.
3630 * java/net/natInetAddressWin32.cc (lookup): Likewise.
3632 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
3634 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
3635 boehm-gc's include dirs.
3636 * configure: Rebuilt.
3637 * include/boehm-gc.h: Include gc_config.h.
3639 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
3641 * java/net/InetAddress.java (loopbackAddress): Renamed from
3643 (getByName): Return loopback address for null hostname, without
3644 security check. Use lookup(), not getAllByName.
3645 (getAllByName): Return loopback address for null hostname, without
3647 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
3650 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
3653 Reported by Robin Green.
3654 * defineclass.cc (handleField): Don't throw exception on unrecognised
3655 modifier. Add FIXME comments for spec compliance.
3656 (handleMethod): Likewise.
3658 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
3661 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
3662 (Almost everywhere): add LOG calls, fix, add comments.
3663 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
3664 Add explicit check for LOCKED bit in slow case (PR 16662).
3665 (_Jv_MonitorExit): Add casts in debug-only code.
3666 Always release LOCKED bit before throwing exception.
3667 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
3668 isn't. Handle easy cases without lock acquisition.
3669 (Object::wait): Use NotifyAll for lock inflation.
3671 2004-08-12 David Daney <ddaney@avtrex.com>
3673 * testsuite/libjava.lang/Process_1.java: New test.
3674 * testsuite/libjava.lang/Process_2.java: New test.
3675 * testsuite/libjava.lang/Process_3.java: New test.
3676 * testsuite/libjava.lang/Process_4.java: New test.
3677 * testsuite/libjava.lang/Process_5.java: New test.
3678 * testsuite/libjava.lang/Process_6.java: New test.
3679 * testsuite/libjava.lang/Process_1.out: Expected result.
3680 * testsuite/libjava.lang/Process_2.out: Expected result.
3681 * testsuite/libjava.lang/Process_3.out: Expected result.
3682 * testsuite/libjava.lang/Process_4.out: Expected result.
3683 * testsuite/libjava.lang/Process_5.out: Expected result.
3684 * testsuite/libjava.lang/Process_6.out: Expected result.
3686 2004-08-12 David Daney <ddaney@avtrex.com>
3689 * java/lang/PosixProcess.java: Rewrote.
3690 * java/lang/natPosixProcess.cc: Rewrote.
3691 * java/lang/Runtime.java (execInternal): Declare throws IOException.
3692 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
3693 * posix-threads.cc (block_sigchld) New function.
3694 (_Jv_ThreadRegister) Use it.
3695 (_Jv_ThreadStart) Use it.
3696 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
3697 * Makefile.am: ... to specify extra native headers.
3698 * configure: Regenerated.
3699 * include/config.h: Regenerated.
3700 * Makefile.in: Regenerated.
3701 * gcj/Makefile.in: Regenerated.
3702 * include/Makefile.in: Regenerated.
3703 * testsuite/Makefile.in: Regenerated.
3705 2004-08-12 Diego Novillo <dnovillo@redhat.com>
3707 PR tree-optimization/16867
3708 * testsuite/libjava.lang/PR16867.java: New test.
3710 2004-08-09 Per Bothner <per@bothner.com>
3712 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
3713 with private fields and access methods.
3714 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
3715 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
3716 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
3717 ( _Jv_makeUtf8Const): Rewrite using new constructors.
3718 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
3719 * defineclass.cc: Use new _Utf8Const access/convenience methods.
3721 * resolve.cc: Likewise.
3722 * gcj/field.h: Likewise.
3723 * include/jvm.h: Likewise.
3724 * java/lang/Class.h: Likewise.
3725 * java/lang/natClass.cc: Likwise.
3726 * java/lang/natClassLoader.cc: Likewise
3727 * java/lang/reflect/natMethod.cc: Likewise
3728 * verify.cc: Likewise.
3729 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
3730 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
3732 2004-08-10 Andrew Haley <aph@redhat.com>
3734 * testsuite/libjava.lang/err14.java: New file.
3735 * testsuite/libjava.lang/err14.out: New file.
3737 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
3739 * Makefile.am: Fix missing rename from x_nat_headers to
3741 * Makefile.in: Regenerated.
3743 2004-08-04 Andrew Haley <aph@redhat.com>
3745 * java/security/BasicPermission.java: Don't check wildcards.
3747 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
3748 Michael Koch <konqueror@gmx.de>
3750 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
3751 * configure.in: Replaced all usages of AC_LINK_FILES by
3754 configure: Regenerated.
3756 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
3757 Michael Koch <konqueror@gmx.de>
3759 * acconfig.h: Removed.
3760 * Makefile.am: Rename variables for xlib peer to include xlib and
3761 gtk_c_headers to gtk_jni_headers.
3762 * Makefile.in: Regenerated.
3764 2004-08-04 Andrew Haley <aph@redhat.com>
3766 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
3769 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
3771 * configure.in: Eliminate uses of changequote (mostly by quoting []).
3772 Replace most top level 'dnl' comments with '#' comments, conforming
3773 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
3775 * configure: Rebuilt.
3777 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
3779 * acinclude.m4: Include no-executables.m4.
3780 * aclocal.m4: Rebuild.
3781 * configure.in: Convert to the autoconf 2.59 version of
3782 of the no-executables hack, and also of the nonstandard CXX
3783 hack and the multilibbed CC and CXX hack. Change prerequisite
3785 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
3786 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3787 testsuite/Makefile.in: Regenerate.
3789 2004-08-03 Tom Tromey <tromey@redhat.com>
3791 * jni.cc: Reindented.
3793 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
3795 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
3797 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
3799 * testsuite/libjava.compile/PR16701.java: New test.
3801 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
3803 * java/util/Collection.java, java/util/List.java,
3804 java/util/Map.java, java/util/Set.java,
3805 java/util/SortedMap.java, java/util/SortedSet.java:
3806 Added additional exceptions to documentation.
3808 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
3811 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
3812 * configure. Regenerate.
3813 * include/win32.h: Explicitly include winsock2.h
3814 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
3817 2004-07-30 Michael Koch <konqueror@gmx.de>
3819 * java/util/zip/GZIPInputStream.java
3820 (GZIPInputStream): Increase buffer size to 4k.
3821 * java/util/zip/GZIPOutputStream.java
3822 (GZIPOutputStream): Likewise.
3823 * java/util/zip/Inflater.java
3824 (setInput): Merged formating with GNU classpath.
3825 * java/util/zip/InflaterInputStream.java
3826 (InflaterInputStream): Increase buffer size to 4k.
3827 (fill): Throw exception if stream ends early.
3828 (read): Merged endless-loop with GNU classpath.
3829 (skip): Increase buffer size to 2k.
3831 2004-07-30 Michael Koch <konqueror@gmx.de>
3833 * gnu/java/awt/EmbeddedWindow.java
3834 (addNotify): Use AccessController to allow execution of privileged
3837 2004-07-29 Michael Koch <konqueror@gmx.de>
3839 * gnu/java/lang/MainThread.java:
3840 Explicitely import used classes.
3841 (args): Make it type String[].
3843 2004-07-29 Dalibor Topic <robilad@kaffe.org>
3845 * gnu/java/awt/ComponentDataBlitOp.java,
3846 gnu/java/beans/ExplicitBeanInfo.java,
3847 gnu/java/beans/IntrospectionIncubator.java,
3848 gnu/java/beans/editors/ColorEditor.java,
3849 gnu/java/beans/editors/FontEditor.java,
3850 gnu/java/beans/editors/NativeBooleanEditor.java,
3851 gnu/java/beans/editors/NativeByteEditor.java,
3852 gnu/java/beans/editors/NativeDoubleEditor.java,
3853 gnu/java/beans/editors/NativeFloatEditor.java,
3854 gnu/java/beans/editors/NativeIntEditor.java,
3855 gnu/java/beans/editors/NativeLongEditor.java,
3856 gnu/java/beans/editors/NativeShortEditor.java,
3857 gnu/java/beans/editors/StringEditor.java,
3858 gnu/java/io/ClassLoaderObjectInputStream.java,
3859 gnu/java/io/decode/Decoder.java,
3860 gnu/java/io/encode/Encoder.java,
3861 gnu/java/lang/ClassHelper.java,
3862 gnu/java/locale/Calendar.java,
3863 gnu/java/locale/Calendar_de.java,
3864 gnu/java/locale/Calendar_en.java,
3865 gnu/java/locale/Calendar_nl.java,
3866 gnu/java/locale/LocaleInformation_de.java,
3867 gnu/java/locale/LocaleInformation_en.java,
3868 gnu/java/locale/LocaleInformation_nl.java:
3871 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
3873 * README: Remove obsolete info. Update bug URL.
3875 * NEWS: Updated with news up to GCC 3.4 release.
3877 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
3879 * gnu/java/security/action/GetPropertyAction.java (setParameters):
3880 Renamed from 'setName'. New 2-argument form with default value.
3881 (run): Pass default 'value' parameter to System.getProperty().
3882 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
3884 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
3887 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
3889 * configure.in: Check for minimum GTK version 2.4 requirement.
3890 * configure: Rebuilt.
3892 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
3894 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
3895 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
3897 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
3899 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
3900 address. Reduce sleep times. Synchronize with target threads before
3901 attempting to interrupt them. Don't try to calibrate yeild count,
3902 instead, always loop for a fixed time.
3903 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
3904 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
3905 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
3906 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
3907 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
3908 * testsuite/libjava.lang/pr179.java: Likewise.
3909 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
3910 time. Remove upper bounds check on sleep time.
3912 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
3914 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
3915 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
3917 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
3919 * java/io/File.java (toURI): Throw RuntimeException, not
3921 * java/lang/Runtime.java (exit): Qualify static sleep() call with
3922 class name, not instance.
3924 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
3926 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
3927 and gnu/java/security/action/SetAccessibleAction.java.
3928 * Makefile.in: Rebuilt.
3930 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
3932 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
3933 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
3935 (DECLARE_PRIM_TYPE): Don't declare array vtables.
3936 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
3937 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
3939 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
3941 * Makefile.am: Replace jar, rmic and rmiregistry references with
3942 gjar, grmic and grmiregistry.
3943 * configure.in: Likewise.
3944 * Makefile.in: Regenerate.
3945 * configure: Likewise.
3946 * gcj/Makefile.in: Likewise.
3947 * include/Makefile.in: Likewise.
3948 * testsuite/Makefile.in: Likewise.
3950 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
3952 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
3953 for privileged getProperty calls.
3954 * java/io/ObjectOutputStream.java (getField): No longer static. Use
3955 SetAccessibleAction instead of anonymous class for doPrivileged call.
3956 (getMethod): Likewise.
3957 (setAccessible): New field. PrivilegedAction object to use when
3958 calling setAccessible.
3959 * java/io/ObjectStreamClass.java (calculateOffsets): Use
3960 SetAccessibleAction instead of anonymous class for diPrivileged call.
3961 (setFields): Likewise.
3962 (getClassUID): Likewise.
3963 (findMethod): Likewise.
3964 * gnu/java/security/action/GetPropertyAction.java: New class.
3965 * gnu/java/security/action/SetAccessibleAction.java: New class.
3967 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
3969 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
3971 * testsuite/libjava.lang/Serialization.java: New test.
3972 * testsuite/libjava.lang/Serialization.out: New.
3974 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
3976 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
3977 missed in last commit.
3979 2004-07-23 Mark Wielaard <mark@klomp.org>
3981 * java/lang/System.java (static): Set http.agent system property when
3983 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
3984 from system property inside AccessController.doPrivileged() call.
3985 (proxyPort): Made package private.
3986 (proxyInUse): Likewise.
3987 (proxyHost): Likewise.
3988 (userAgent): Likewise.
3990 2004-07-23 Mark Wielaard <mark@klomp.org>
3992 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
3995 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
3997 * Makefile.am (ordinary_java_source_files): Add
3998 DefaultContentHandlerFactory.java.
3999 * Makefile.in: Rebuilt.
4000 * java/net/URLConnection.java (defaultFactory): New field.
4002 (getContentHandler): Renamed from 'setContentHandler'. Try
4003 defaultFactory after user-set factory, if any. Search for content
4004 handler implementations in gnu.java.net.content, not gnu.gcj.content.
4005 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
4007 (getLastModified): Implemented.
4008 (getPermission): Create file permission here, instead of in
4010 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
4012 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
4014 (getLastModified): Implemented.
4015 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
4016 Default implementation.
4017 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
4018 Implement using GdkPixbufDecoder.
4020 2004-07-21 Michael Koch <konqueror@gmx.de>
4022 * javax/swing/JTextArea.java
4023 (setLineWrap): Fire property change event after new value is set.
4024 (setTabSize): Likewise.
4026 2004-07-21 Michael Koch <konqueror@gmx.de>
4028 * javax/swing/JTable.java
4029 (autoCreateColumnsFromModel): New field.
4030 (autoResizeMode): Likewise.
4031 (cellEditor): Likewise.
4032 (cellSelectionEnabled): Likewise.
4033 (columnModel): Likewise.
4034 (dataModel): Likewise.
4035 (defaultEditorsByColumnClass): Likewise.
4036 (defaultRenderersByColumnClass): Likewise.
4037 (editingColumn): Likewise.
4038 (editingRow): Likewise.
4039 (gridColor): Likewise.
4040 (preferredViewportSize): Likewise.
4041 (rowHeight): Likewise.
4042 (rowMargin): Likewise.
4043 (rowSelectionAllowed): Likewise.
4044 (selectionBackground): Likewise.
4045 (selectionForeground): Likewise.
4046 (selectionModel): Likewise.
4047 (showHorizontalLines): Likewise.
4048 (showVerticalLines): Likewise.
4049 (tableHeader): Likewise.
4050 (JTable): Implemented.
4051 (getColumnModel): Likewise.
4052 (getSelectedRow): Likewise.
4053 (getSelectionModel): Likewise.
4054 (setModel): Likewise.
4055 (setSelectionModel): Likewise.
4056 (createScrollPaneForTable): New method.
4057 (createDefaultDataModel): Likewise.
4058 (createDefaultListSelectionModel): Likewise.
4059 (getModel): Likewise.
4060 (getTableHeader): Likewise.
4061 (setTableHeader): Likewise.
4062 (getColumnSelectionAllowed): Likewise.
4063 (setColumnSelectionAllowed): Likewise.
4064 (getRowSelectionAllowed): Likewise.
4065 (setRowSelectionAllowed): Likewise.
4066 (getAutoResizeMode): Likewise.
4067 (setAutoResizeMode): Likewise.
4068 (getColumnCount): Likewise.
4069 (getRowCount): Likewise.
4070 (getCellRenderer): Likewise.
4071 * javax/swing/JTree.java
4072 (cellRenderer): New field.
4073 (editable): Likewise.
4074 (rootVisible): Likewise.
4075 (showsRootHandles): Likewise.
4076 (getModel): New method.
4077 (setModel): Likewise.
4078 (isEditable): Likewise.
4079 (setEditable): Likewise.
4080 (isRootVisbile): Likewise.
4081 (setRootVisible): Likewise.
4082 (getShowsRootHandles): Likewise.
4083 (setShowRootHandles): Likewise.
4084 (getCellRenderer): Likewise.
4085 (setCellRenderer): Likewise.
4087 2004-07-21 Michael Koch <konqueror@gmx.de>
4089 * javax/swing/JFormattedTextField.java
4090 (setDocument): Implemented.
4091 * javax/swing/JRootPane.java:
4093 * javax/swing/JTable.java
4094 (getDefaultRenderer): New method.
4095 * javax/swing/JTextField.java
4096 (setFont): Likewise.
4097 (getPreferredSize): Likewise.
4098 * javax/swing/JToggleButton.java
4099 (getAccessibleContext): Fix javadoc.
4100 * javax/swing/JTree.java:
4102 * javax/swing/JViewport.java:
4105 2004-07-21 David Jee <djee@redhat.com>
4107 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
4108 Collect all native method declaration at the top.
4109 (create): Set the filename filter if necessary.
4110 (setDirectory): Call nativeSetDirectory().
4111 (setFilenameFilter): Implement.
4112 (filenameFilterCallback): New method.
4113 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
4114 (create): Configure dialog to show hidden files.
4115 (filenameFilterCallback): New function.
4116 (nativeSetFilenameFilter): New function.
4117 (nativeSetDirectory): New function.
4119 2004-07-21 Kim Ho <kho@redhat.com>
4121 * javax/swing/plaf/basic/BasicSliderUI.java:
4123 (paintTrack): Fill the track before painting
4126 2004-07-21 Graydon Hoare <graydon@redhat.com>
4128 patch from Roman Kennke <roman@ontographics.com>
4129 * javax/swing/Spring.java: New file.
4130 * javax/swing/SpringLayout.java: New file.
4131 * Makefile.am: Add new files.
4132 * Makefile.in: Regenerate.
4134 2004-07-21 Graydon Hoare <graydon@redhat.com>
4136 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
4137 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
4138 * javax/swing/ScrollPaneLayout.java: Likewise.
4140 2004-07-21 Kim Ho <kho@redhat.com>
4142 * javax/swing/DefaultDesktopManager.java:
4143 (findMinimum): Removed.
4144 (resizeFrame): Trust the UI to pass valid
4146 * javax/swing/JOptionPane.java:
4147 Implemented showInternalXXXDialog methods.
4148 (startModal): New method.
4149 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
4150 (BorderListener::mouseDragged): Verify that the new
4151 bounds are valid before passing them to the DesktopManager.
4152 (preferredLayoutSize): Delegate
4154 (minimumLayoutSize): Ditto.
4155 (getSize): New method.
4156 (GlassPaneDispatcher): Reimplemented by copying
4157 a stripped down LightweightDispatcher from Container.
4158 (getMinimumSize): Call minimumLayoutSize.
4159 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
4161 (mousePressed): Add ability to properly close
4163 * javax/swing/plaf/basic/BasicToolBarUI.java:
4164 (DragWindow): Set owner for DragWindow.
4166 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
4168 * java/awt/image/ShortLookupTable.java: New file.
4169 * java/awt/image/ByteLookupTable.java: New file.
4170 * Makefile.am: Added new files.
4171 * Makefile.in: Regenerated.
4173 2004-07-21 David Jee <djee@redhat.com>
4175 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
4176 (create(GtkContainerPeer)): New native method.
4177 (create()): Call native create(), passing in the parent frame
4178 as the paramter. Natively set the current file and directory.
4179 (setFile): Construct an absolute filename before passing it to
4181 (nativeGetDirectory): New method.
4182 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
4183 (window_closed): Removed.
4184 (ok_clicked): Likewise.
4185 (cancel_clicked): Likewise.
4186 (handle_response): New method.
4187 (create): Use GtkFileChooserDialog.
4188 (connectSignals): Connect to handle_response.
4189 (nativeGetDirectory): New method.
4190 (nativeSetFile): Use GtkFileChooserDialog.
4192 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
4194 * java/awt/image/LookupTable.java: New file.
4195 * Makefile.am: Added new file.
4196 * Makefile.in: Regenerated.
4198 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
4200 * java/awt/image/Kernel.java: New file.
4201 * Makefile.am: Added new file.
4202 * Makefile.in: Regenerated.
4204 2004-07-21 Olga Rodimina <rodimina@redhat.com>
4206 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
4207 * javax/swing/JMenu.java: Likewise.
4208 * javax/swing/JMenuBar.java: Likewise.
4209 (MARGIN_CHANGED_PROPERTY): New property.
4210 (setMargin): Implemented.
4211 * javax/swing/JMenuItem.java: Fixed javadocs.
4212 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
4213 (LABEL_CHANGED_PROPERTY): New property.
4214 (add): changed to use createActionComponent.
4215 (createActionComponent): Implemented.
4216 (setLabel): Fire PropertyChangeEvent if label property
4218 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
4219 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
4220 (ContainerHandler): Repaint if margin property has changed.
4221 * javax/swing/plaf/basic/BasicMenuItemUI.java:
4222 (installUI): Call installComponents().
4223 (uninstallUI): Call uinstallComponents().
4224 * javax/swing/plaf/basic/BasicMenuUI.java:
4226 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
4229 2004-07-21 Kim Ho <kho@redhat.com>
4231 * javax/swing/plaf/basic/BasicToolBarUI.java:
4232 (DragWindow): Use the right constructor.
4234 2004-07-21 Kim Ho <kho@redhat.com>
4236 * javax/swing/JToolBar.java:
4237 (layoutContainer): Use getComponents.
4238 * javax/swing/plaf/basic/BasicToolBarUI.java:
4239 (DragWindow): Don't use SwingUtilities'
4241 (ToolBarDialog): ditto.
4243 2004-07-21 Kim Ho <kho@redhat.com>
4245 * javax/swing/JRootPane.java:
4247 (layoutContainer): Set the glasspane's size to
4248 be the same as the content pane.
4249 (createGlassPane): Set opaque property to false.
4251 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
4253 * java/awt/Component.java (requestFocus()): Don't handle Panels
4255 (requestFocus(boolean)): Likewise.
4256 (requestFocusInWindow(boolean)): Likewise.
4257 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
4258 Set GTK_CAN_FOCUS flag.
4260 2004-07-21 Kim Ho <kho@redhat.com>
4262 * Makefile.am: Added new file.
4263 * Makefile.in: Regenerated.
4264 * gcj/Makefile.in: Regenerated.
4265 * include/Makefile.in: Regenerated.
4266 * javax/swing/AbstractButton.java:
4267 Add rollOverEnabled property.
4268 (setRolloverEnabled): Use new property.
4269 (isRolloverEnabled): Use new property.
4270 * javax/swing/JTabbedPane.java:
4271 (setComponent): Remove useless JTabbedPane.this.
4272 * javax/swing/JToolBar.java: Finish implementation.
4273 * javax/swing/plaf/basic/BasicArrowButton.java:
4274 (paint): Moved border painting to a border.
4275 * javax/swing/plaf/basic/BasicLookAndFeel.java:
4276 Change JToolBar look and feel defaults.
4277 * javax/swing/plaf/basic/BasicOptionPaneUI.java
4278 (actionPerformed): Return Integer index instead of name.
4279 (addButtonComponents): Check to see if component is
4281 (createMessageArea): Don't use components that are not
4283 (getIconForType): Use temporary icons.
4284 * javax/swing/plaf/basic/BasicSliderUI.java:
4285 (mousePressed): Do not return if it's on thumb.
4286 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
4287 (paintMinorTickForVertSlider): ditto.
4288 (paintMajorTickForHorizSlider): ditto.
4289 (paintMajorTickForVertSlider): ditto.
4290 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
4291 Add a border around the SplitPaneDivider.
4292 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
4294 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
4295 New file. Implemented.
4296 * javax/swing/plaf/basic/BasicToolBarUI.java:
4298 * testsuite/Makefile.in: Regenerated.
4300 2004-07-21 Graydon Hoare <graydon@redhat.com>
4302 * javax/swing/Timer.java (run): Queue events each time cycle.
4304 2004-07-21 David Jee <djee@redhat.com>
4306 * gnu/java/awt/peer/gtk/GtkImagePainter.java
4307 (imageComplete): Call image.imageComplete().
4308 * java/awt/image/MemoryImageSource.java:
4309 Reimplement consumers as a Vector instead of a Hashtable. This is
4310 because enumeration on a Hashtable is not thread-safe.
4311 (addConsumer): Adapt to Vector consumers.
4312 (isConsumer): Adapt to Vector consumers.
4313 (removeConsumer): Adapt to Vector consumers.
4314 (startProduction): Adapt to Vector consumers. Call imageComplete()
4315 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
4316 (newPixels): Adapt to Vector consumers.
4317 (sendPicture): Set the color model of the image consumer.
4318 (newPixels(IIII)): Adapt to Vector consumers.
4319 (newPixels(IIIIB)): Adapt to Vector consumers.
4321 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
4323 * java/awt/Component.java (deliverEvent): Implement.
4324 (postEvent): Implement.
4325 (handleEvent): Implement.
4326 (translateEvent): New method.
4327 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
4328 * java/awt/Container.java (deliverEvent): Implement.
4329 * java/awt/Event.java (paramString): Fix formatting.
4330 * java/awt/Font.java (toString): Likewise.
4331 * java/awt/Window.java (postEvent): Implement.
4333 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
4335 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
4336 Set window's focus owner upon receiving a FOCUS_LOST event.
4337 * java/awt/Window.java (Window()): Refocus the previously
4338 focused component within the window when the window regains the
4340 (setFocusOwner): New method.
4341 * java/awt/Component.java (requestFocus): Add FIXME.
4343 * libgcj.pc.in: Remove library flags.
4345 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
4347 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
4348 MOUSE_PRESSED event.
4349 * java/awt/Component.java (requestFocus()): Handle Panel
4350 specially. Post FOCUS_LOST event on opposite component.
4351 (requestFocus(boolean)): Likewise.
4352 (requestFocusInWindow(boolean)): Likewise.
4353 (paramString): Reorder dimension fields.
4354 * java/awt/Container.java (paramString): Fix string format.
4355 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
4356 Handle FOCUS_LOST events. Don't handle Windows specially. Only
4357 process key events if the focus owner is non-null.
4358 (dispatchKeyEvent): Likewise.
4359 * java/awt/Frame.java (paramString): Fix formatting.
4360 (generateName): New method.
4361 (getUniqueLong): Likewise.
4362 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
4363 the temporary focus owner is null. If so, return the permanent
4365 * java/awt/Panel.java (generateName): New method.
4366 (getUniqueLong): Likewise.
4367 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
4368 signal handling to make callbacks more specific.
4370 2004-07-21 Michael Koch <konqueror@gmx.de>
4372 * javax/swing/text/Position.java
4373 (Bias): Implemented.
4375 2004-07-21 Michael Koch <konqueror@gmx.de>
4377 * javax/swing/LookAndFeel.java
4378 (provideErrorFeedback): New method.
4380 2004-07-21 Michael Koch <konqueror@gmx.de>
4382 * javax/swing/JTextArea.java
4383 (tabSize): New field.
4384 (getTabSize): New method.
4385 (setTabSize): Likewise.
4387 2004-07-21 Michael Koch <konqueror@gmx.de>
4389 * javax/swing/ActionMap.java:
4390 Fixed javadocs all over.
4391 (serialVersionUID): Made private.
4392 (parent): Don't explicitely initialize with default value.
4394 (keys): Reimplemented.
4395 (allKeys): Likewise.
4396 (convertSet): Removed.
4397 * javax/swing/ComponentInputMap.java:
4398 Fixed javadocs all over.
4399 (ComponentInputMap): Implemented.
4403 (SetParent): Likewise.
4404 (getComponent): Likewise.
4405 * javax/swing/InputMap.java:
4406 Fixed javadocs all over.
4407 (serialVersionUID): Made private.
4408 (parent): Don't explicitely initialize with default value.
4410 (keys): Reimplemented.
4411 (allKeys): Likewise.
4412 (convertSet): Removed.
4414 2004-07-21 Michael Koch <konqueror@gmx.de>
4416 * javax/swing/ActionMap.java,
4417 javax/swing/ComponentInputMap.java,
4418 javax/swing/InputMap.java,
4419 javax/swing/table/DefaultTableColumnModel.java,
4420 javax/swing/table/TableColumn.java,
4421 javax/swing/table/TableColumnModel.java,
4422 javax/swing/table/TableModel.java,
4423 javax/swing/text/AbstractDocument.java,
4424 javax/swing/text/TextAction.java:
4427 2004-07-21 Graydon Hoare <graydon@redhat.com>
4429 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
4430 Make method non-static.
4431 * javax/swing/AbstractButton.java:
4432 Rename fields to match property names where possible.
4433 (iconTextGap): New property.
4434 * javax/swing/JCheckBox.java: Match AbstractButton changes.
4435 (init) New method, call from after various constructors.
4436 * javax/swing/JComponent.java (revalidate):
4437 Invalidate before queueing repair.
4438 * javax/swing/JList.java (getPreferredScrollableViewportSize):
4439 Reimplement in terms of visibleRowCount property.
4440 * javax/swing/JMenuButton.java: Match AbstractButton changes.
4441 * javax/swing/JScrollPane.java (createScrollListener):
4442 Remove tracing chatter.
4443 * javax/swing/JToggleButton.java: Match AbstractButton changes.
4444 * javax/swing/RepaintManager.java (addInvalidComponent):
4446 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
4448 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
4449 Mimic sun behavior on top left/right positioning.
4450 * javax/swing/ViewportLayout.java (preferredLayoutSize):
4451 Remove mistaken use of preferredScrollableViewportSize here.
4452 (layoutContainer): Use view's preferred size as basis.
4453 * javax/swing/plaf/basic/BasicButtonUI.java:
4454 Set, get, and use textIconGap property.
4455 (paint) Paint text returned from layout (with ellipsis).
4456 * javax/swing/plaf/basic/BasicListUI.java:
4457 Remove tracing chatter, correct various minor calculations.
4458 (getCellBounds): Update layout state before calculating.
4459 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
4460 Use margin default similar to sun's.
4461 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
4462 (createIncreaseIcon): Center icon, minimize margins.
4463 (createDecreaseIcon): Likewise.
4464 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
4466 (installUI): Call it.
4467 (uninstallDefaults): Implement.
4468 (uninstallUI): Call it.
4469 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
4470 Call existing Window constructor.
4471 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
4472 Set clip before painting.
4474 2004-07-21 Olga Rodimina <rodimina@redhat.com>
4476 * javax/swing/JMenuItem.java:
4477 (processMouseEvent): Reimplemented to deal with
4479 (createMenuDragMouseEvent): New private helper method.
4480 Creates MenuDragMouseEvent.
4481 * javax/swing/MenuSelectionManager.java
4482 (componentForPoint): Implemented.
4483 (isComponentPartOfCurrentMenu): Made public.
4484 (processMouseEvent): Reimplemented to deal with
4486 (setSelectedPath): Corrected small mistake that caused
4487 path to be set incorrectly.
4488 (getPath): If given component is JMenu then also add this
4489 menu's popup menu to the selected path.
4490 * javax/swing/plaf/basic/BasicMenuItemUI.java:
4492 (getPreferredSize): Call getPreferredMenuItemSize().
4493 (getPreferredItemSize): Moved code from getPreferredSize to here.
4494 (installListeners): Install MouseMotionListeners.
4495 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
4496 if mouse wasn't released in the bounds of this menu item.
4497 (MenuDragMouseHandler): Implemented.
4498 * javax/swing/plaf/basic/BasicMenuUI.java:
4499 (installListeners): Install MouseMotionListener and
4500 MenuDrageMouseListener.
4501 (MenuDragMouseHandler): Implemented.
4502 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
4503 (uninstallListeners): Implemented.
4505 2004-07-21 Michael Koch <konqueror@gmx.de>
4507 * javax/swing/JCheckBox.java: Reformated.
4508 (JCheckBox): Fixed all constructors.
4509 (isBorderPaintedFlat): New method.
4510 (setBorderPaintedFlat): New method.
4511 * javax/swing/JEditorPane.java
4512 (createEditorKitForContentType): Made public.
4513 (scrollToReference): Likewise.
4514 * javax/swing/JTextArea.java
4515 (setLineWrap): Fire property change.
4516 * javax/swing/JToggleButton.java
4517 (JToggleButton): New constructor.
4518 (JToggleButton): Simplified.
4519 * javax/swing/text/AttributeSet.java
4520 (FontAttribute): Renamed from FontCharacterAttribute.
4521 * javax/swing/text/JTextComponent.java
4522 (KeyBinBinding): Added javadoc.
4523 (JTextComponent): Likewise.
4524 (getAccessibleContext): Fixed javadoc.
4525 * javax/swing/text/View.java
4526 (View): Added javadoc.
4527 * javax/swing/text/TabableView.java: New file.
4528 * Makefile.am: Added javax/swing/text/TabableView.java.
4529 * Makefile.in: Regenerated.
4531 2004-07-21 Graydon Hoare <graydon@redhat.com>
4533 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
4534 * gnu/java/awt/peer/gtk/GtkToolkit.java
4535 (GtkErrorImage): New helper class.
4536 (bufferedImageOrError): New helper method.
4537 (createImage): Use it.
4539 2004-07-21 David Jee <djee@redhat.com>
4541 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
4542 (setCaretPosition): Scroll the text view so the new caret position
4543 is visible on screen.
4545 2004-07-21 David Jee <djee@redhat.com>
4547 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
4548 (setBounds): Do not validate awtComponent here.
4549 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
4550 (getPreferredSize): New method.
4551 * java/awt/ScrollPane.java
4552 (ScrollPane): Set default size to 100x100.
4553 (addNotify): If child is not a Panel, wrap it with a new Panel.
4554 (paramString): Implement.
4556 2004-07-21 Olga Rodimina <rodimina@redhat.com>
4558 * javax/swing/JMenu.java:
4559 (setSelected): Display popup menu only if this menu
4560 is showing on the screen.
4561 * javax/swing/JPopupMenu.java:
4562 (processMouseEvent): Added comment.
4563 (processKeyEvent): Likewise.
4564 * javax/swing/MenuSelectionManager.java:
4565 (clearSelectedPath): Only fireStateChanged() after
4566 selected path was changed, not before.
4567 (setSelectedPath): Likewise.
4568 * javax/swing/plaf/basic/BasicMenuItemUI.java:
4569 (paintMenuItem): Corrected position of menu item's
4571 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
4572 (installUI): Correct setDefaultLightWeightPopupEnabled call.
4573 (popupMenuCanceled): Reimplemented.
4574 (popupMenuWillBecomeVisible): Select first menu item by default
4575 when displaying free floating popup menus.
4576 (TopWindowListener): Reimplemented.
4578 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
4580 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
4581 Panel from being painted twice when it is first shown.
4583 2004-07-21 Olga Rodimina <rodimina@redhat.com>
4585 * java/awt/Window.java: Reverted changes from my
4586 previous patch for creating window without an owner.
4587 * javax/swing/SwingUtilities.java:
4588 (SwingUtilities.OwnerFrame): made static.
4589 (OwnerFrame.setVisible): New method. Overridden with
4590 empty implementation.
4591 (OwnerFrame.isShowing): New method. Ovverridden
4592 to return always true.
4594 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
4596 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
4597 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4598 (GtkComponentPeer): Remove temporary try/catch block.
4599 (setVisible): Call show and hide.
4600 (show): Make native.
4602 (getArgs): Don't add "visible" argument.
4603 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4604 (property_notify_predicate): Return Bool instead of int.
4605 (find_layout): New function.
4606 (connectJObject): Call find_layout.
4607 (connectSignals): Likewise.
4608 (moveLayout): Likewise.
4609 (gtkLayoutSetVisible): Likewise.
4611 2004-07-21 Mark Wielaard <mark@klomp.org>
4613 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
4614 on notifier object before calling notifyAll().
4616 2004-07-21 Olga Rodimina <rodimina@redhat.com>
4618 * java/awt/Window.java: Changed constructors to use new
4619 method that is described below. Constructors call this
4620 methods only if newly created window should have an owner.
4621 (setWindowOwner): New method. Implementation for
4622 this method is moved from this(owner,configuration).
4623 * javax/swing/JWindow.java:
4624 (JWindow): Reimplement to use SwingUtilities.ownerFrame
4626 * javax/swing/SwingUtilities.java:
4627 (ownerFrame): Change type of this field to OwnerFrame.
4628 (getOwnerFrame): Changed to return object of type OwnerFrame.
4629 (SwingUtilities.OwnerFrame): New class. Represents owner
4630 of a Window that is not provided with one.
4632 2004-07-21 Olga Rodimina <rodimina@redhat.com>
4634 * javax/swing/AbstractButton.java:
4635 (configurePropertiesFromAction): Set action command
4636 to button's text by default if action command is not
4637 explicitely specified.
4638 * javax/swing/JMenu.java: Remove unnecessary listener
4639 and methods relevant to it.
4640 (setSelected): Reimplemented.
4641 (menuSelectionChanged): Moved most part of implementation to
4642 setSelected() and call it instead.
4643 * javax/swing/JMenuItem.java:
4644 (init): Comment out statement that sets paint_border to false.
4645 (configurePropertiesFromAction): Do not set accelerator
4647 (menuSelectionChanged): Change selected index in the selection
4648 model of menu item's parent.
4649 * javax/swing/JPopupMenu.java:
4650 (remove): Set constraints.fill field to GridBagConstraints.BOTH
4651 instead of GridBagConstraints.HORIZONTAL.
4653 (createActionChangeListener): Implemented.
4654 (setVisible): Correct location of HeavyWeightMenu and
4655 don't firePopupMenuCanceled().
4656 (menuSelectionChanged): Implemented.
4657 (ActionChangeListener): New Listener. Implemented.
4658 * javax/swing/plaf/basic/BasicMenuBarUI.java:
4659 (BasicMenuBarUI.ContainerHandler): Implemented.
4660 * javax/swing/plaf/basic/BasicMenuItemUI.java:
4661 (paintMenuItem): Uncommented out code that paints
4662 icon, now that icons are working properly.
4663 (PropertyChangeListener): Implemented.
4664 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
4666 (topWindowListener): New field.
4667 (Constructor): initialize topWindowListener.
4668 (BasicPopupMenuUI.TopWindowListener): Implemented.
4669 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
4670 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
4673 2004-07-21 Michael Koch <konqueror@gmx.de>
4675 * javax/swing/plaf/basic/BasicButtonUI.java
4676 (paintFocus): Fixed method signature.
4677 (paintButtonPressed): Likewise.
4678 (paintButtonNormal): Likewise.
4679 (paintText): New method.
4680 * javax/swing/plaf/basic/BasicLabelUI.java
4681 (paint): Re-indented.
4682 * javax/swing/plaf/basic/BasicTextUI.java
4683 (installUI): Set parent textComponent to opaque.
4684 * javax/swing/text/DefaultHighlighter.java
4685 (checkPositions): New helper method.
4686 (addHighlight): Throws BadLocationException, check positions.
4687 (changeHighlight): Likewise.
4688 * javax/swing/text/EditorKit.java
4689 (EditorKit): Implements Serializable.
4690 * javax/swing/text/JTextComponent.java
4691 (getUI): Added javadoc.
4693 (upadteUI): Added javadoc, don't revalidate and repaint.
4695 2004-07-21 David Jee <djee@redhat.com>
4697 * java/awt/GridBagLayout.java
4698 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
4699 * javax/swing/AbstractButton.java
4700 (setText): Reindent.
4701 * javax/swing/RepaintManager.java
4702 (addInvalidComponent): Find the first ancestor that isValidateRoot().
4704 2004-07-21 Michael Koch <konqueror@gmx.de>
4706 * javax/swing/JFormattedTextField.java
4708 (JFormattedTextField): Implemented.
4709 (getValue): Likewise.
4710 (setValue): Likewise.
4711 * javax/swing/LookAndFeel.java
4712 (getSupportsWindowDecorations): New method.
4713 * javax/swing/UIDefaults.java:
4714 Use java.beans.PropertyChangeSupport instead of doing all ourself.
4715 (addPropertyChangeListener): Made public.
4716 (addResourceBundle): Likewise.
4717 (removeResourceBundle): Likewise.
4718 (setDefaultLocale): Likewise.
4719 * javax/swing/plaf/basic/BasicRootPaneUI.java
4720 (BasicRootPaneUI): Implements PropertyChangeListener.
4721 (propertyChange): New method.
4722 * javax/swing/plaf/basic/BasicTextUI.java
4723 (BasicHighlighter): New inner class.
4724 (createHighlighter): New method.
4725 * javax/swing/plaf/basic/BasicToolBarUI.java
4726 (DragWindow): Extends java.awt.Window.
4727 * javax/swing/text/JTextComponent.java
4728 (getDocument): Removed debug output.
4729 * javax/swing/plaf/basic/BasicTextFieldUI.java,
4730 javax/swing/text/DefaultHighlighter.java,
4731 javax/swing/text/FieldView.java,
4732 javax/swing/text/PlainView.java: New files.
4733 * Makefile.am: Added new files.
4734 * Makefile.in: Regenerated.
4736 2004-07-21 Michael Koch <konqueror@gmx.de>
4738 * javax/swing/JEditorPane.java
4739 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
4740 (createEditorKitForContentType): Likewise.
4741 * javax/swing/text/DefaultEditorKit.java
4742 (serialVersionUID): Added constant field.
4743 (EndOfLineStringPropery): Fixed typo.
4744 (DefaultEditorKit): New constructor.
4745 * javax/swing/text/Segment.java:
4746 Import java.text.CharacterIterator.
4747 * javax/swing/text/CharacterIterator.java,
4748 javax/swing/text/PlainEditorKit.java: Removed.
4749 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
4750 javax/swing/text/PlainEditorKit.java.
4751 * Makefile.in: Regenerated.
4753 2004-07-21 Michael Koch <konqueror@gmx.de>
4755 * javax/swing/JButton.java,
4756 javax/swing/text/DefaultEditorKit.java,
4757 javax/swing/text/EditorKit.java,
4758 javax/swing/text/Segment.java,
4759 javax/swing/text/StyledEditorKit.java:
4762 2004-07-21 Michael Koch <konqueror@gmx.de>
4764 * javax/swing/ImageIcon.java
4766 (description): Renamed from descr.
4767 (ImageIcon): Added missing constructors.
4768 (setParent): Removed.
4769 (setImageObserver): New method.
4770 (getImageObserver): New method.
4771 (paintIcon): Handle observer = null.
4772 * javax/swing/JButton.java
4773 (removeNotify): Fixed javadoc.
4774 (updateUI): Simplified.
4775 * javax/swing/JRootPane.java
4776 (serialVersionUID): New constant field.
4777 * javax/swing/UIManager.java:
4778 Fixed javadocs all over.
4779 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
4780 * javax/swing/text/AbstractDocument.java
4781 (createPosition): Throws BadLocationException.
4782 (getText): Likewise.
4784 * javax/swing/text/ComponentView.java
4785 (modelToView): Likewise.
4786 * javax/swing/text/DefaultEditorKit.java:
4787 Made all public methods public.
4788 (read): Throws BadLocationException and IOException.
4790 * javax/swing/text/EditorKit.java:
4791 Made all public methods public.
4792 (serialVersionUID): New constant field.
4793 (clone): New method.
4794 (read): Throws BadLocationException and IOException.
4796 * javax/swing/text/Segment.java
4797 (array): Made public.
4800 (Segment): New constructors.
4801 (clone): Reimplemented.
4802 * javax/swing/text/StyledEditorKit.java
4803 (serialVersionUID): New constant field.
4805 2004-07-21 Graydon Hoare <graydon@redhat.com>
4807 * java/awt/image/BufferedImage.java
4808 (getSource): Implement.
4809 * javax/swing/ImageIcon.java
4810 (ImageIcon): Implement ctor.
4811 * javax/swing/ScrollPaneLayout.java
4812 (preferredLayoutSize): Be more careful about nulls.
4814 2004-07-21 Michael Koch <konqueror@gmx.de>
4816 * javax/swing/text/AttributeSet.java
4817 (CharacterAttribute): New interface
4818 (ColorAttribute): Likewise.
4819 (FontCharacterAttribute): Likewise.
4820 (ParagraphAttribute): Likewise.
4821 * javax/swing/text/DefaultCaret.java
4822 (moveCaret): New method.
4823 (positionCaret): Likewise.
4824 (repaint): Made protected.
4825 * javax/swing/text/JTextComponent.java
4826 (KeyBinding): Made it static.
4827 * javax/swing/text/View.java
4828 (getContainer): Honor parent == null.
4830 2004-07-21 Michael Koch <konqueror@gmx.de>
4832 * javax/swing/text/AbstractDocument.java:
4835 2004-07-21 Michael Koch <konqueror@gmx.de>
4837 * javax/swing/plaf/basic/BasicRootPaneUI.java:
4838 Import javax.swing.UIManager explicitely.
4839 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
4840 (ScrollingButton): Made it static.
4842 2004-07-21 Michael Koch <konqueror@gmx.de>
4844 * javax/swing/UIDefaults.java
4845 (ActiveValue): Made public.
4846 (LazyValue): Likewise.
4847 * javax/swing/plaf/basic/BasicTextUI.java
4848 (RootView): Reintroduced.
4850 (rootView): New field.
4851 (installUI): Create document if needed, initialize rootView.
4852 (uninstallUI): Hanle rootView.
4854 (getRootView): Likewise.
4855 (setView): Likewise.
4856 * javax/swing/text/DefaultCaret.java:
4857 Renamed all "evt" variables to "event".
4859 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
4861 * libgcj.spec.in: Add -l-java-util-logging.
4863 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
4865 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
4866 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
4867 gtk-xft-dpi can no calculate the right value.
4868 (dpi_changed_cb): Mark *pspec as unsused.
4870 2004-07-21 David Jee <djee@redhat.com>
4872 * java/awt/Component.java
4873 (move): Delegate to setBounds().
4875 (reshape): Fix so it repaints parent and self only when necessary.
4877 2004-07-21 David Jee <djee@redhat.com>
4879 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
4880 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4881 (GtkComponentPeer): Revert previous patch from 2004-06-22.
4882 (setVisible): Likewise.
4885 (getArgs): Likewise.
4886 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4887 (property_notify_predicate): Likewise.
4888 (find_layout): Likewise.
4889 (connectJObject): Likewise.
4890 (connectSignals): Likewise.
4891 (moveLayout): Likewise.
4892 (gtkLayoutSetVisible): Likewise.
4894 2004-07-21 Graydon Hoare <graydon@redhat.com>
4900 (rmiregistry_LDADD): Add lib-java-util-logging.la
4901 * Makefile.in: Regenerate.
4903 2004-07-21 Michael Koch <konqueror@gmx.de>
4905 * javax/swing/text/AbstractDocument.java
4906 (replace): Dont use protected method of java.util.Vector directly.
4908 2004-07-21 Michael Koch <konqueror@gmx.de>
4910 * javax/swing/plaf/basic/BasicTextUI.java
4911 (installUI): Call specialized install methods.
4912 (installDefaults): New method.
4913 (installListeners): Likewise.
4914 (installKeyboardActions): Likewise.
4915 (uninstallUI): Likewise.
4916 (uninstallDefaults): New method.
4917 (uninstallListeners): Likewise.
4918 (uninstallKeyboardActions): Likewise.
4919 (getPropertyPrefix): New abstract method.
4920 (paint): Made final, just call paintSafely().
4921 (paintSavely): New method.
4922 (paintBackground): Likewise.
4923 (getVisibleEditorRect): Likewise.
4924 * javax/swing/text/LayeredHighlighter.java,
4925 javax/swing/text/TabExpander.java: New files.
4926 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
4927 and javax/swing/text/TabExpander.java.
4928 * Makefile.in: Regenerated.
4930 2004-07-21 Michael Koch <konqueror@gmx.de>
4932 * javax/swing/plaf/basic/BasicTextUI.java
4933 (BasicTextUI): Made abstract.
4934 (BasicCaret): New inner class.
4935 (view): Don't explicitely initialize with "null".
4936 (textComponent): New field.
4937 (textColor): Removed.
4938 (disabledTextColor): Removed.
4939 (normalBackgroundColor): Removed.
4940 (RootView): Removed commented out inner class.
4941 (createUI): Removed.
4942 (createCaret): New method.
4943 (getComponent): Likewise.
4944 (installUI): Initialize textComponent only.
4945 (getPreferredSize): Use installed JTextComponent.
4946 (setView): New method.
4948 * javax/swing/text/JTextComponent.java
4949 (highlighter): New field.
4950 (caretColor): Likewise.
4951 (disabledTextColor): Likewise.
4952 (seletedTextColor): Likewise.
4953 (selectionColor): Likewise.
4954 (setUI): New method.
4955 (getCaretColor): Likewise.
4956 (setCaretColor): Likewise.
4957 (getDisabledColor): Likewise.
4958 (setDisabledColor): Likewise.
4959 (getSelectedTextColor): Likewise.
4960 (setSelectedTextColor): Likewise.
4961 (getSelectionColor): Likewise.
4962 (setSelectionColor): Likewise.
4963 (getHighlighter): Likewise.
4964 (setHighlighter): Likewise.
4965 (replaceSelection): Likewise.
4967 2004-07-21 Michael Koch <konqueror@gmx.de>
4969 * javax/swing/plaf/basic/BasicScrollPaneUI.java
4970 (BasicScrollPaneUI): Implements ScrollPaneConstants.
4971 * javax/swing/plaf/basic/BasicToolBarUI.java
4972 (BasicToolBarUI): Implements SwingConstants.
4974 2004-07-21 Michael Koch <konqueror@gmx.de>
4976 * javax/swing/JPopupMenu.java: Removed CVS tags.
4977 * javax/swing/UIDefaults.java: Reformatted.
4978 * javax/swing/plaf/basic/BasicRootPaneUI.java:
4979 Explicitely import used classes.
4981 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
4983 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
4984 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4985 (GtkComponentPeer): Remove temporary try/catch block.
4986 (setVisible): Call show and hide.
4987 (show): Make native.
4989 (getArgs): Don't add "visible" argument.
4990 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4991 (property_notify_predicate): Return Bool instead of int.
4992 (find_layout): New function.
4993 (connectJObject): Call find_layout.
4994 (connectSignals): Likewise.
4995 (moveLayout): Likewise.
4996 (gtkLayoutSetVisible): Likewise.
4998 2004-07-21 Olga Rodimina <rodimina@redhat.com>
5000 * javax/swing/AbstractButton.java:
5001 (setDisplayedMnemonicIndex): Check if button
5002 text is not null before checking its length.
5003 * javax/swing/JMenuItem.java:
5004 (processMouseEvent): Disarm menu item if mouse has
5006 * javax/swing/plaf/basic/BasicMenuUI.java:
5007 (MouseInputHandler.mouseEntered): Do not raise
5008 popup menu if this menu is already selected.
5009 (MouseInputHandler.mousePressed): Do not fire
5011 (MenuHandler): Implemented.
5013 2004-07-21 Olga Rodimina <rodimina@redhat.com>
5015 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
5016 (getSelectedObjects): Implemented.
5017 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
5018 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
5019 Added javadoc for few methods.
5020 (processMouseEvent): Made public.
5021 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
5022 (processMouseEvent): Likewise.
5024 2004-07-21 Olga Rodimina <rodimina@redhat.com>
5026 * javax/swing/AbstractButton.java:
5027 (init): Set display mnemonic index to -1.
5028 (setMnemonic(char)): Use setMnemonic(int).
5029 (setMnemonic(int)): Set display mnemonic index.
5030 (getDisplayedMnemonicIndex): Change method signature
5031 by removing 'index' parameter.
5032 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5033 Added default for Menu.selectionBackground.
5034 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5035 (paintMenuItem): Change background color of the selected
5037 (paintText): Paint differently when menu item is disabled.
5038 Also paint mnemonic if it appears in the menu item's label.
5039 (paintAccelerator): Paint accelerator differently
5040 if menu item is disabled.
5041 * javax/swing/plaf/basic/BasicMenuUI.java:
5042 (installDefaults): Install defaults for
5043 selectionForeground and selectionBackground.
5044 (uninstallDefaults): Uninstall defauls for
5045 selectionForeground and selectionBackground.
5047 2004-07-21 Michael Koch <konqueror@gmx.de>
5049 * javax/swing/text/AbstractDocument.java
5050 (BranchElement): Implemented.
5051 (LeafElement): Implemented.
5052 * javax/swing/text/DefaultCaret.java:
5053 Import used classes.
5054 (serialVersionUID): New constant.
5055 * javax/swing/text/JTextComponent.java
5056 (AccessibleJTextComponent): Removed dead declaration.
5057 (caretPos): Removed.
5058 (setCaret): New method.
5059 * javax/swing/text/PlainDocument.java
5060 (rootElement): New field.
5061 (PlainDocument): Initialize rootElement.
5062 (createDefaultRoot): New method.
5063 (getDefaultRootElement): Implemented.
5064 * javax/swing/text/View.java: Reformatted.
5065 * javax/swing/text/ViewFactory.java
5066 (create): Added javadoc.
5068 2004-07-21 Michael Koch <konqueror@gmx.de>
5070 * javax/swing/ToolTipManager.java: Reformatted.
5072 2004-07-21 Rodimina Olga <rodimina@redhat.com>
5074 * javax/swing/AbstractButton.java
5075 (changeEvent): New field.
5076 (fireItemStateChanged): Change source of the event
5077 to 'this' before firing it to button listeners.
5078 (fireActionPerformed): Likewise.
5079 (fireStateChanged): Likewise.
5080 (createActionListener): Do not set source
5081 of the event to AbstractButton.
5082 * javax/swing/plaf/basic/BasicMenuBarUI.java:
5083 (ContainerHandler.componentAdded): Removed
5084 print out statement.
5085 (ContainerHandler.componentRemoved): Likewise.
5087 2004-07-21 Michael Koch <konqueror@gmx.de>
5089 * javax/swing/text/Highlighter.java: New file.
5090 * Makefile.am: Added javax/swing/text/Highlighter.java.
5091 * Makefile.in: Regenerated.
5093 2004-07-21 Michael Koch <konqueror@gmx.de>
5095 * javax/swing/ToolTipManager.java
5096 (stillInsideTimerAction): Fixed constructor arguments.
5097 (outsideTimerAction): Likewise.
5098 (insideTimerAction): Likewise.
5100 2004-07-21 Michael Koch <konqueror@gmx.de>
5102 * javax/swing/JButton.java: Reformatted.
5103 * javax/swing/JFormattedTextField.java
5104 (getUIClassID): Implemented.
5105 * javax/swing/JRootPane.java
5106 (serialVersionUID): New constant.
5107 * javax/swing/JTextField.java
5109 (JTextField): Simplified.
5110 (getUIClassID): New method.
5111 (getActionListeners): Added @since tag.
5112 (setColumns): Invalidate layout and repaint.
5113 (getHorizontalAlignment): New method.
5114 (setHorizontalAlignment): New method.
5115 (selectAll): Removed.
5116 * javax/swing/SwingUtilities.java
5117 (getAncestorOfClass): Removed redundant @see tag.
5118 (isLeftMouseButton): Fixed implementation.
5119 (isMiddleMouseButton): Likewise.
5120 (isRightMouseButton): Likewise.
5121 * javax/swing/text/AbstractDocument.java
5122 (AttributeContext.addAttribute): New method.
5123 (AttributeContext.addAttributes): New method.
5124 (AttributeContext.getEmptySet): New method.
5125 (AttributeContext.reclaim): New method.
5126 (AttributeContext.removeAttribute): New method.
5127 (AttributeContext.removeAttributes): New method.
5128 * javax/swing/text/Document.java
5129 (createPosition): Throws BadLocationException.
5130 (getText): Likewise.
5132 * javax/swing/text/JTextComponent.java
5133 (getText): Return null if no document is set. Catch
5134 BadLocationException.
5136 (updateUI): Simplified.
5138 2004-07-21 Michael Koch <konqueror@gmx.de>
5140 * javax/swing/JButton.java
5141 (removeNotify): Fixed javadoc.
5142 (updateUI): Simplified.
5144 2004-07-21 David Jee <djee@redhat.com>
5146 * gnu/java/awt/image/ImageDecoder.java
5147 (startProduction): Only add consumer if it's not added yet.
5148 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
5149 (GdkPixbufDecoder): Don't call initState() here.
5150 (produce): Call initState() here, to ensure area_prepared and
5151 area_updated signals are properly connected.
5152 * gnu/java/awt/peer/gtk/GtkImage.java
5153 (setColorModel): Use equals() to compare ColorModel objects.
5154 (setPixels): Likewise.
5155 * java/awt/image/ColorModel.java
5156 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
5157 * java/awt/image/RGBImageFilter.java
5158 (setColorModel): Set consumer's color model.
5159 (setPixels): Use equals() to compare ColorModel objects.
5161 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
5163 * java/net/URLConnection.java (position): New field.
5164 (dateFormat1, dateFormat2, dateFormat3): Removed.
5165 (dateFormats): New field.
5166 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
5167 each time instead of re-allocating.
5168 (initializeDateFormats): Initialize 'dateFormats'.
5170 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
5173 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
5176 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
5178 * java/net/Socket.java (getImpl): Now private. Remove comment.
5180 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
5182 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
5183 of chained Writer when calling super-constructor.
5184 * java/io/FilterWriter.java (FilterWriter): Likewise.
5185 * java/io/PrintWriter.java (PrintWriter): Likewise.
5187 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
5189 * prims.cc (process_gcj_properties): Don't increment i within LHS
5192 2004-07-19 Per Bothner <per@bothner.com>
5194 Print -verbose:message on "loading", not initialization.
5195 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
5196 * defineclass.cc (_Jv_ClassReader::parse): Print message if
5197 gcj::verbose_class_flag.
5198 * java/lang/natClass.cc (initializeClass): Don't print message here.
5199 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
5200 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
5201 (_Jv_PrepareCompiledClass): Likewise.
5203 2004-07-18 Matthias Klose <doko@debian.org>
5205 * configure.in: Substitute target_noncanonical.
5206 * configure: Regenerate
5208 2004-07-17 Michael Koch <konqueror@gmx.de>
5210 * java/lang/String.java: Fixed javadocs all over.
5212 2004-07-17 Mark Wielaard <mark@klomp.org>
5214 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
5215 when size is smaller.
5216 * java/io/RandomAccessFile.java (setLength): Use truncate for
5217 shrinking the file and seek plus write for expanding the file.
5219 2004-07-17 Michael Koch <konqueror@gmx.de>
5221 * gnu/java/nio/channels/natFileChannelPosix.cc
5222 (implTruncate): Always save current position. Only reposition file
5223 pointer to where we started if not beyond new lenght. Reposition file
5224 pointer to file length if it points beyond the end of file.
5226 2004-07-17 Mark Wielaard <mark@klomp.org>
5228 * javax/swing/Box.java: Put FIXME comment above class declaration.
5229 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
5230 * javax/swing/JCheckBox.java: Likewise.
5231 * javax/swing/JDialog.java: Likewise.
5232 * javax/swing/JRadioButton.java: Likewise.
5233 * javax/swing/JToggleButton.java: Likewise.
5234 * javax/swing/UIManager.java: Likewise.
5235 * javax/swing/border/TitledBorder.java: Likewise.
5236 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
5237 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
5238 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
5239 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
5240 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
5241 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
5242 * javax/swing/text/JTextComponent.java: Likewise.
5244 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
5246 * java/net/DatagramPacket.java (setAddress): Removed check for
5249 2004-07-17 Michael Koch <konqueror@gmx.de>
5251 * java/net/DatagramSocket.java
5252 (getLocalAddress): Check if socket is bound or not.
5253 * java/net/Socket.java
5254 (getLocalAddrss): Check if socket is bound or not.
5255 (getPort): Return -1 when not connected. Dont check getImpl() for
5257 (setReuseAddress): Check if socket is closed.
5258 (isConnected): Check if getImpl() returns null.
5260 2004-07-17 Mark Wielaard <mark@klomp.org>
5262 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
5263 on notifier object before calling notifyAll().
5265 2004-07-17 Michael Koch <konqueror@gmx.de>
5267 * gnu/java/nio/channels/FileChannelImpl.java
5268 (finalize): Added javadoc.
5270 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
5272 * java/text/CollationElementIterator.java
5273 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
5274 (setText): Use ArrayList instead of Vector.
5276 2004-07-17 Michael Koch <konqueror@gmx.de>
5278 * java/nio/ByteOrder.java
5279 (static): Removed. Not needed.
5280 Thanks to Patrick Reali for noticing.
5281 * java/nio/charset/CharsetDecoder.java
5282 (decode): Fix for classpath bug #9177: Reset state before flipping.
5284 2004-07-17 Michael Koch <konqueror@gmx.de>
5286 * java/security/Security.java: Fixed javadocs all over.
5288 2004-07-17 Michael Koch <konqueror@gmx.de>
5290 * gnu/java/awt/EmbeddedWindow.java
5292 (addNotify): Set peer via reflection.
5293 (setWindowPeer): Removed.
5294 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
5295 * Makefile.am (nat_source_files):
5296 Removed gnu/java/awt/natEmbeddedWindow.cc.
5297 * Makefile.in: Regenerated.
5299 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
5301 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
5303 * configure: Regenerated.
5305 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
5307 * configure.in: Use build_noncanonical rather than build_alias.
5308 * configure: Rebuild.
5310 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
5311 by logic refactoring. Move default definition of NATIVE closer
5312 to first alternate definition.
5313 * configure: Regenerate.
5315 * Makefile.am: Set ZIP and GCJH directly using autoconf.
5316 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
5317 gcj/Makefile.in: Regenerate.
5318 * configure.in: Set ZIP and GCJH. Remove redundant condition
5319 in AM_CONDITIONAL(NATIVE,...)
5320 * configure: Regenerate.
5322 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
5324 * configure.in: Use target_noncanonical rather than
5325 target_alias for forward-compatibility with autoconf 2.59.
5326 * configure: Regenerate.
5327 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
5328 testsuite/Makefile.am: Substitute target_noncanonical.
5329 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
5330 testsuite/Makefile.in: Regenerate.
5332 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
5333 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
5334 * acinclude.m4: Include acx.m4.
5335 * aclocal.m4: Regenerate.
5336 * configure: Regenerate.
5338 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
5341 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
5342 (decimalFormat): New static variable.
5344 (getTime): New. Override Date.getTime().
5345 (toString): Synchronize. Use decimalFormat to format nanos value
5346 correctly. Truncate extra zeros.
5347 (before): Compare getNanos() only if getTime() is equal.
5350 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
5352 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
5353 * configure.in: ...here.
5354 * aclocal.m4: Regenerate.
5355 * configure: Regenerate.
5357 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
5358 * configure: Rebuilt with autoconf 2.13.
5359 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
5360 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
5362 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
5365 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
5367 * Makefile.in: Rebuilt.
5368 * testsuite/libjava.lang/LargeFile.java: New test case.
5369 * testsuite/libjava.lang/LargeFile.out: New file.
5371 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
5373 * java/beans/EventHandler.java: Remove debugging statements.
5375 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
5377 * java/beans/EventHandler.java: New file.
5378 * Makefile.am (awt_java_source_files): Add EventHandler.java.
5379 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
5380 testsuite/Makefile.in: Regenerate.
5382 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
5384 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
5385 flag to the gcj_setup.
5386 (gcj_jacks_run): Check tclsh version and launch jacks directly with
5388 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
5389 deprecation flag change. 58 XFAILS removed.
5391 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
5393 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
5394 -fno-use-divide-subroutine.
5395 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
5396 (HANDLE_FPE): Define.
5397 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
5398 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
5399 (HANDLE_DIVIDE_OVERFLOW): Define.
5401 2004-07-14 Michael Koch <konqueror@gmx.de>
5402 Matthias Klose <doko@debian.org>
5404 * java/awt/im/InputContext.java: Initialize in, line.
5406 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
5408 * interpret.cc (run): Correctly access libffi return values of
5409 integral smaller-than-int type; these are implicitly promoted.
5411 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
5414 * interpret.cc (compile_mutex): New.
5415 (_Jv_InitInterpreter): New. Initialize compile_mutex.
5416 (run): Lock compile_mutex before calling compile() if compilation is
5418 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
5419 * include/java-interp.h (_Jv_InitInterpreter): Declare.
5421 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
5424 * include/jvm.h (_Jv_value): New union type.
5425 * gcj/field.h (_Jv_Field): Add new _addr union field variants
5426 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
5429 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
5431 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
5432 * gnu/awt/xlib/XOffScreenImage.java
5433 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
5434 constructor argument. Add constructor using ImageProducer.
5435 (getSource): Implement.
5436 (imageComplete): New method.
5437 (setColorModel): New method.
5438 (setDimensions): New method.
5439 (setHints): New method.
5440 (setPixels): New method.
5441 (setProperties): New method.
5442 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
5443 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
5445 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
5448 * prims.cc (_Jv_CreateJavaVM): Fix comment.
5449 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
5450 (finalizerReady): Now native.
5452 (runFinalizers): Removed.
5453 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
5454 a primitive lock, and don't hold it while running the finalizers.
5455 (runFinalizers): Implement. Don't aquire any Java lock.
5456 (finalizerReady): Use lock primitives to signal finalizer thread.
5458 2004-07-11 Mark Wielaard <mark@klomp.org>
5460 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
5461 * java/net/URLStreamHandler.java (parseURL): When url file part
5462 doesn't contain a '/' just ignore context.
5464 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
5466 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
5467 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
5468 (MAKE_THROW_FRAME): Do not modify PSW address.
5469 (INIT_SEGV): Install SIGINFO-style signal handler.
5470 (INIT_FPE): Likewise.
5472 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
5474 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
5475 status. 21 xfail's removed, 1 added.
5477 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
5479 * gcj/javaprims.h: Regenerate CNI namespace definitions.
5481 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
5483 * java/text/MessageFormat.java
5484 (formatInternal): Append "{n}" if argument n is unavailable.
5485 (format(Object, StringBuffer, FieldPosition)): This
5486 should be equivalent to format(Object[],
5487 StringBuffer, FieldPosition).
5489 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
5491 * java.util.Calendar.java (cache): New private static field. Cached
5492 mappings of locales->calendar classes.
5493 (ctorArgTypes): New private static field. Singleton argument for
5494 calendar class constructor lookup.
5495 (getInstance): Cache Locale->Calendar class mappings using HashMap.
5496 Optimize by bypassing reflection instantiation for the
5497 GregorianCalendar case.
5499 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
5501 * java/util/Calendar.java: Use getSystemClassLoader as argument for
5502 ResourceBundle.getBundle() calls.
5503 * java/util/GregorianCalendar.java: Likewise.
5504 * java/util/Currency.java: Likewise.
5505 * java/text/BreakIterator.java: Likewise.
5506 * java/text/Collator.java: Likewise.
5507 * java/text/DateFormat.java: Likewise.
5508 * java/text/DateFormatSymbols.java: Likewise.
5509 * java/text/DecimalFormatSymbols.java: Likewise.
5510 * java/text/NumberFormat.java: Likewise.
5511 * java/awt/Window.java: Likewise.
5513 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
5515 * java/util/ResourceBundle.java (bundleCache): Renamed from
5516 resourceBundleCache. Update comments.
5517 (getObject): Don't catch MissingResourceException.
5518 (getBundle(String)): Remove 'final'. Use system classloader if
5519 getCallingClassLoader returned null.
5520 (getBundle(String, Locale)): Likewise.
5521 (BundleKey): New private class. HashMap key for bundle cache lookup.
5522 (lookupKey): New. Singleton instance of BundleKey.
5523 (nullEntry): New. Cache entry to represent failed lookups.
5524 (getBundle(String, Locale, ClassLoader)): Re-written to use new
5525 caching strategy, no-allocation lookup, and new tryBundle methods.
5526 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
5527 name using given classloader.
5528 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
5529 baseName for given Locale and attempt to load bundle.
5531 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
5533 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
5534 illegal protected method calls.
5536 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
5538 Fix or remove some bogus test cases.
5539 * testsuite/libjava.compile/pr10459_2.java: Removed.
5540 * testsuite/libjava.compile/pr10459.java: Test using its own method,
5542 * testsuite/libjava.compile/inner_data.java: Test against its own
5545 2004-07-09 Michael Koch <konqueror@gmx.de>
5547 * scripts/unicode-muncher.pl: Updated to version 2.1
5548 from GNU classpath. Added some clarifications on where to find the
5549 needed files from www.unicode.org.
5550 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
5551 gnu/gcj/convert/UnicodeData-3.0.0.txt:
5552 Removed, these can directly be downloaded from www.unicode.org if
5554 * gnu/java/lang/CharData.java: Regenerated.
5555 * include/java-chartables.h: Regenerated.
5556 * Makefile.am (ordinary_java_source_files):
5557 Removed gnu/java/lang/CharData.java.
5558 * Makefile.in: Regenerated.
5560 2004-07-09 Michael Koch <konqueror@gmx.de>
5562 * java/security/AccessControlContext.java,
5563 java/security/SecureClassLoader.java:
5566 2004-07-09 Michael Koch <konqueror@gmx.de>
5568 * java/io/ObjectInputStream.java (readFields): Use long datatype
5569 when shifting byte values more then 24 bits left.
5571 2004-07-09 Michael Koch <konqueror@gmx.de>
5573 * java/util/zip/DeflaterOutputStream.java,
5574 java/util/zip/GZIPInputStream.java,
5575 java/util/zip/GZIPOutputStream.java,
5576 java/util/zip/InflaterInputStream.java:
5577 Reformatted. Added javadocs. Reordered all stuff.
5578 Renamed variables to be more clear.
5580 2004-07-09 Michael Koch <konqueror@gmx.de>
5582 * javax/imageio/IIOException.java,
5583 javax/imageio/event/IIOReadProgressListener.java,
5584 javax/imageio/event/IIOReadUpdateListener.java,
5585 javax/imageio/event/IIOReadWarningListener.java,
5586 javax/imageio/event/IIOWriteProgressListener.java,
5587 javax/imageio/event/IIOWriteWarningListener.java:
5589 * Makefile.am: Added new files.
5590 * Makefile.in: Regenerated.
5592 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
5594 * java/text/RuleBasedCollator.java
5595 (mergeRules): Use ArrayList instead of Vector.
5596 (subParseString): likewise.
5597 (parseString): likewise.
5598 (buildCollationVector): likewise.
5599 (getCollationKey): likewise.
5601 2004-07-09 Dalibor Topic <robilad@kaffe.org>
5603 * java/text/DateFormat.java (parse):
5604 Improved javadoc. Improved exception message.
5606 2004-07-09 Mark Wielaard <mark@klomp.org>
5608 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
5609 interrupted() method to clear interupt flag of our Thread.
5611 2004-07-09 Dalibor Topic <robilad@kaffe.org>
5613 * java/nio/Buffer.java,
5614 java/nio/ByteBuffer.java,
5615 java/nio/ByteBufferHelper.java,
5616 java/nio/ByteBufferImpl.java,
5617 java/nio/CharBuffer.java,
5618 java/nio/CharBufferImpl.java,
5619 java/nio/CharViewBufferImpl.java,
5620 java/nio/DirectByteBufferImpl.java,
5621 java/nio/DoubleBuffer.java,
5622 java/nio/DoubleBufferImpl.java,
5623 java/nio/DoubleViewBufferImpl.java,
5624 java/nio/FloatBuffer.java,
5625 java/nio/FloatBufferImpl.java,
5626 java/nio/FloatViewBufferImpl.java,
5627 java/nio/IntBuffer.java,
5628 java/nio/IntBufferImpl.java,
5629 java/nio/IntViewBufferImpl.java,
5630 java/nio/LongBuffer.java,
5631 java/nio/LongBufferImpl.java,
5632 java/nio/LongViewBufferImpl.java,
5633 java/nio/MappedByteBufferImpl.java,
5634 java/nio/ShortBuffer.java,
5635 java/nio/ShortBufferImpl.java,
5636 java/nio/ShortViewBufferImpl.java:
5637 Fixed javadocs all over. Improved input error
5640 * java/nio/Buffer.java
5641 (checkForUnderflow, checkForOverflow, checkIndex,
5642 checkIfReadOnly, checkArraySize): New helper methods
5645 * java/nio/ByteBufferHelper.java
5646 (checkRemainingForRead, checkRemainingForWrite,
5647 checkAvailableForRead, checkAvailableForWrite): Removed
5648 no longer needed methods.
5650 2004-07-09 Michael Koch <konqueror@gmx.de>
5652 * gnu/regexp/CharIndexedInputStream.java:
5653 Reordered imports to match classpath.
5655 2004-07-09 Michael Koch <konqueror@gmx.de>
5657 * gnu/java/awt/EmbeddedWindow.java:
5658 Load native library for setWindowPeer method.
5660 2004-07-08 Randolph Chung <tausq@debian.org>
5662 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
5663 * configure: Regenerate.
5664 * configure.host: Set can_unwind_signal for hppa*-linux.
5665 * include/pa-signal.h: New file.
5667 2004-07-07 Per Bothner <per@bothner.com>
5669 * Makefile.am: Add rules to build libgij from just gij.cc.
5671 * include/jvm.h (namespace jcj): Declare verbose_class_flag
5672 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
5673 (initializeClass): If verbose_class_flag, print message.
5674 * gij.cc (main): Handle -verbose:class flag.
5676 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
5678 * configure.host: Enable hash synchronization on Darwin.
5679 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
5680 ';', since this is a comment on Darwin.
5681 (compare_and_swap_release): Likewise.
5683 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
5685 * java/net/URLStreamHandler.java (parseURL): Canonicalize
5686 file portion of URL in addition to spec for file: protocol.
5688 2004-07-05 Anthony Green <green@redhat.com>
5690 * java/io/File.java (toURI): Merge from Classpath.
5692 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
5694 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
5695 before passing to URL constructor. Rethrow any MalformedURLException
5696 as a RuntimeException. Catch MalformedURLException specifically, not
5699 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
5701 * java/util/Locale.java (readObject): Intern strings read from object
5704 2004-07-04 Michael Koch <konqueror@gmx.de>
5706 * gnu/gcj/runtime/FirstThread.java,
5707 gnu/gcj/runtime/natFirstThread.cc: Removed.
5708 * gnu/java/lang/MainThread.java,
5709 gnu/java/lang/natMainThread.cc: New files.
5710 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
5711 * Makefile.am: Added new files and removed deleted ones.
5712 * Makefile.in: Regenerated.
5714 2004-07-03 Mark Wielaard <mark@klomp.org>
5715 Anthony Green <green@redhat.com>
5717 * java/net/URL.java (getFile): Clarify return value doc.
5718 (getPath): Return null if file is empty - not empty String.
5719 (set): Convert protocol to lower case before doing anything.
5720 Only change the protocol handler if it's different.
5722 2004-07-03 Anthony Green <green@redhat.com>
5724 * java/net/URL.java (URL): Convert protocol to lower case before
5725 doing anything, so we getURLStreamHandler() with the proper value.
5727 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
5729 * java/util/Locale.java (hashcode): Made transient.
5730 (hashCode): No longer synchronized.
5731 (equals): Remove comment.
5732 (writeObject): No longer synchronized. Implement using writeObject
5733 calls instead of tweaking hashCode field. Update doc.
5734 (readObject): Implement using readObject calls.
5736 2004-06-26 Geoffrey Keating <geoffk@apple.com>
5737 Andreas Tobler <a.tobler@schweiz.ch>
5739 * configure.host (powerpc-*-darwin*): New case, define
5741 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
5742 * configure: Regenerate.
5743 * include/darwin-signal.h: New.
5745 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
5747 * java/beans/Statement.java (doExecute): Fix formatting.
5749 2004-06-29 Per Bothner <per@bothner.com>
5751 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
5752 etc etc): Remove needless parenthesis, which causes __stdcall__
5753 attribute on MinGW to get ignored.
5755 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
5757 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
5759 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
5761 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
5763 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
5765 * java/beans/Expression.java: New file.
5766 * java/beans/Statement.java: New file.
5767 * Makefile.am: Added new files.
5768 * Makefile.in: Re-generate.
5770 2004-06-27 Mark Wielaard <mark@klomp.org>
5772 * java/io/FilePermission.java (usingPerms): Removed.
5773 (actionsString): Made final.
5774 (cachePerms): Renamed to checkPerms.
5775 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
5777 (FilePermission): Check arguments, call checkPerms().
5778 (equals): Remove cachePerms() call.
5779 (implies): Likewise.
5781 2004-06-27 Mark Wielaard <mark@klomp.org>
5783 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
5785 (sendRequest): Use new field in user-agent http agent.
5787 2004-06-27 Mark Wielaard <mark@klomp.org>
5789 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
5790 when argument is null.
5792 2004-06-26 Mark Wielaard <mark@klomp.org>
5794 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
5795 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
5797 (cancel_clicked): Likewise.
5799 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
5801 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
5802 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
5803 can not calculate the right value.
5804 (dpi_changed_cb): Likewise. Mark *pspec as unused.
5806 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
5808 * testsuite/libjava.jacks/jacks.xfail: Remove
5809 15.9.1-qualified-concrete-20.
5811 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
5813 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
5814 encoding name to iconv.
5815 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
5817 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
5820 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
5821 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
5822 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
5824 2004-06-21 Andrew Haley <aph@redhat.com>
5826 * java/io/ObjectOutputStream.java: Add DEBUG statements
5828 (dumpElementln): New method.
5830 * java/io/ObjectInputStream.java
5831 (currentClassLoader): Make native.
5832 (callersClassLoader): New field.
5834 (readObject): ENDBLOCKDATA is generated if the class has a write
5835 method, not if it has a read method.
5836 (readObject): Save and restore this.currentObject and
5837 this.currentObjectStreamClass around calls to callReadMethod().
5838 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
5841 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
5843 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
5846 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
5848 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
5849 if desired, before the default class loader is initialised.
5850 Call INIT_SEGV only if HANDLE_SEGV is defined.
5852 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
5854 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
5855 directory only if it actually exists.
5857 2004-06-18 Graydon Hoare <graydon@redhat.com>
5859 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5860 Fix up non-ansi comments.
5862 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
5864 * javax/swing/text/AbstractDocument.java: Adding missing import
5865 for javax.swing.event.EventListenerList.
5866 * javax/swing/text/DefaultCaret.java: Likewise.
5868 2004-06-17 Michael Koch <konqueror@gmx.de>
5870 * javax/swing/JToolBar.java
5872 (JToolBar): Use Component.setName(String) instead of doing it all
5874 * javax/swing/Timer.java
5875 (queueEvent): Added missing modifier.
5877 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
5879 * Makefile.am: Added new file.
5880 * Makefile.in: Re-generate.
5881 * javax/swing/JMenu.java:
5882 (insertSeparator): Implemented.
5883 * javax/swing/JPopupMenu.java:
5884 (JPopupMenu.Separator): Implemented.
5885 * javax/swing/MenuSelectionManager.java:
5886 (processMouseEvent): Use java.awt.Component
5887 for event source instead of javax.swing.JComponent.
5888 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
5889 New File. Implemented.
5891 2004-06-16 David Jee <djee@redhat.com>
5893 * java/awt/GridBagLayout.java
5894 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
5895 Make sure pos_x and pos_y are never negative.
5897 2004-04-16 Andrew Overholt <overholt@redhat.com>
5899 * Makefile.am: Add new file.
5900 * Makefile.in: Re-generate.
5901 * javax/swing/JToolBar.java
5902 Partially implemented.
5903 * javax/swing/plaf/basic/BasicToolBarUI.java
5904 New file. Partially implemented.
5906 2004-06-16 Graydon Hoare <graydon@redhat.com>
5908 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5909 (setComposite): Accept AlphaComposite arguments.
5910 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
5911 (createBufferedImage): Add new overloads.
5912 * gnu/java/awt/peer/gtk/GtkToolkit.java
5913 (createImage): Use GdkPixbufDecoder.createBufferedImage
5914 when useGraphics2D() is true.
5915 (getImage): Delegate to createImage.
5916 * javax/swing/JList.java
5918 (getFirstVisibleIndex):
5919 (getLastVisibleIndex):
5921 (ensureIndexIsVisible): New methods.
5922 * javax/swing/Timer.java: Reimplement.
5924 2004-06-16 Michael Koch <konqueror@gmx.de>
5926 * javax/swing/text/AbstractDocument.java
5927 (AbstracElement): Made public, implements java.io.Serializable.
5928 (AttributeContext): Made public.
5929 (BranchElement): Likewise.
5930 (Content): Likewise.
5931 (DefaultDocumentEvent): Made public, extends
5932 javax.swing.undo.CompoundEdit.
5933 (ElementEdit): Made public, extends
5934 javax.swing.undo.AbstractUndoableEdit.
5935 (LeafElement): Made public.
5936 (LeafElement.LeafElement): Made public.
5938 2004-06-16 Michael Koch <konqueror@gmx.de>
5940 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
5941 methods (that were obviously never be intended to get included hi this
5942 class. Added some methods too.
5944 2004-06-16 Michael Koch <konqueror@gmx.de>
5946 * javax/swing/text/PlainDocument.java
5947 (serialVersionUID): New constant.
5948 (lineLimitAttribute): Likewise.
5949 (tabSizeAttribute): Likewise.
5950 (tabSize): New field.
5951 (PlainDocument): Made public.
5952 (PlainDocument): New constructor.
5954 2004-06-16 Michael Koch <konqueror@gmx.de>
5956 * javax/swing/text/AbstractDocument.java
5957 (insertString): Throws BadLocationException.
5958 * javax/swing/text/Document.java
5959 (insertString): Likewise.
5960 * javax/swing/text/JTextComponent.java:
5961 Javadocs and comments cleaned up.
5963 2004-06-16 Michael Koch <konqueror@gmx.de>
5965 * javax/swing/event/UndoableEditListener.java: Reformatted.
5966 * javax/swing/text/AbstractDocument.java
5967 (AbstractDocument): Implements java.io.Serializable.
5968 (doc_list): Removed.
5969 (undo_list): Removed.
5970 (AbstractElement.serialVerionUID): New field.
5971 (BranchElement.serialVerionUID): Likewise.
5972 (DefaultDocumentEvent.serialVerionUID): Likewise.
5973 (ElementEdit.serialVerionUID): Likewise.
5974 (LeafElement.serialVerionUID): Likewise.
5975 (serialVerionUID): Likewise.
5976 (BAD_LOCATION): New constant.
5977 (BidiElementName): Likewise.
5978 (ContentElementName): Likewise.
5979 (ParagraphElementName): Likewise.
5980 (SectionElementName): Likewise.
5981 (ElementNameAttribute): Likewise.
5982 (AbstractDocument): Made protected.
5983 (AbstractDocument): New construtor.
5984 (listenerList): New field.
5985 (fireChangedUpdate): Implemented.
5986 (fireInsertUpdate): Likewise.
5987 (fireRemoveUpdate): Likewise.
5988 (fireUndoableEditUpdate): Likewise.
5989 (getListeners): Likewise.
5990 (addDocumentListener): Likewise.
5991 (removeDocumentListener): Likewise.
5992 (addUndoableEditListener): Likewise.
5993 (removeUndoableEditListener): Likewise.
5994 (getDocumentListeners): New method.
5995 (getUndoableEditListeners): Likewise.
5996 (getAsynchronousLoadPriority): Made public.
5997 (getBidiRootElement): Likewise.
5998 (setAsynchronousLoadPriority): Likewise.
5999 (setDocumentProperties): Likewise.
6000 * javax/swing/text/BadLocationException.java
6001 (serialVerionUID): New field.
6002 * javax/swing/text/DefaultCaret.java
6003 (changeEvent): New field.
6004 (listenerList): Likewise.
6006 (addChangeListener): Reimplemented.
6007 (removeChangeListener): Likewise.
6008 (getListeners): New method.
6009 (getChangeListeners): Likwise.
6010 (getComponent): Likewise.
6011 * javax/swing/text/GapContent.java
6012 (GapContent): Implements java.io.Serializable.
6013 (serialVerionUID): New field.
6015 2004-06-16 Michael Koch <konqueror@gmx.de>
6017 * javax/swing/JTree.java
6018 (treeModel): New field.
6019 (JTree): New constructors, one existing one made public.
6020 (createTreeModel): New method.
6021 (addTreeExpansionListener): Likewise.
6022 (removeTreeExpansionListener): Likewise.
6023 (getTreeExpansionListeners): Likewise.
6024 (fireTreeCollapsed): Likewise.
6025 (fireTreeExpanded): Likewise.
6026 (addTreeSelectionListener): Likewise.
6027 (removeTreeSelectionListener): Likewise.
6028 (getTreeSelectionListeners): Likewise.
6029 (fireValueChanged): Likewise.
6030 (addTreeWillExpandListener): Likewise.
6031 (removeTreeWillExpandListener): Likewise.
6032 (getTreeWillExpandListeners): Likewise.
6033 (fireTreeWillCollapse): Likewise.
6034 (fireTreeWillExpand): Likewise.
6036 2004-06-16 Michael Koch <konqueror@gmx.de>
6038 * javax/swing/JTree.java: Reformatted.
6040 2004-06-16 Michael Koch <konqueror@gmx.de>
6042 * javax/swing/JTextArea.java: New file.
6043 * javax/swing/JTextField.java
6045 (notifyAction): New constant.
6046 (columns): New field.
6047 (JTextField): New constructors.
6048 (createDefaultModel): New method.
6049 (addActionListener): Reimplmemented.
6050 (removeActionListener): Reimplemented.
6051 (getActionListeners): New method.
6052 (fireActionPerformed): New method.
6053 (getColumns): New method.
6054 (setColumne): New method.
6055 * javax/swing/text/JTextComponent.java
6056 (AccessibleJTextComponent.serialVersionUID): New field.
6057 (serialVersionUID): Likewise.
6058 (DEFAULT_KEYMAP): Likewise.
6059 (FOCUS_ACCELERATOR_KEY): Likewise.
6060 (doc): Made private.
6061 (icon_gap): Likewise.
6064 (JTextComponent): Some constructors removed.
6065 (getScrollableTracksViewportHeight): New method.
6066 (getScrollableTracksViewportWidth): Likewise.
6067 * Makefile.am: Added javax/swing/JTextArea.java.
6068 * Makefile.in: Regenerated.
6070 2004-06-15 Graydon Hoare <graydon@redhat.com>
6072 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
6073 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
6074 * javax/swing/JViewport.java
6075 (getExtentSize): Return size rather than preferred size.
6076 (toViewCoordinates): New methods.
6077 (getViewSize): Return size rather than preferred size.
6078 (setViewSize): Note view size as set.
6079 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
6080 * javax/swing/plaf/basic/BasicScrollBarUI.java
6081 (getPreferredSize): Don't redo layout.
6082 * javax/swing/plaf/basic/BasicViewportUI.java
6083 (paint): Translate image properly and eat exceptions.
6085 2004-06-15 Kim Ho <kho@redhat.com>
6087 * javax/swing/JTabbedPane.java
6088 (setComponent): Remove old component and
6090 (setSelectedIndex): Don't operate on the
6091 components if they're null. Don't set index
6092 on the model if the index is the same.
6093 (insertTab): Don't add or hide the component
6094 if it's null. Repaint the container.
6095 * javax/swing/plaf/basic/BasicLookAndFeel.java
6096 Change colors for TabbedPane.
6097 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
6098 (mousePressed): Re-layout and paint the component.
6099 (layoutContainer): Don't set location on the view.
6100 (ScrollingViewport::paint): Remove.
6102 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
6104 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6105 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
6107 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
6108 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
6109 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
6111 (drawLine): Call gdk_flush before leaving GDK critical region.
6112 (fillRect): Likewise.
6113 (drawRect): Likewise.
6114 (copyArea): Likewise.
6115 (copyPixmap): Likewise.
6116 (clearRect): Likewise.
6117 (drawArc): Likewise.
6118 (drawPolyline): Likewise.
6119 (drawPolygon): Likewise.
6120 (fillPolygon): Likewise.
6121 (fillArc): Likewise.
6122 (drawOval): Likewise.
6123 (fillOval): Likewise.
6125 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
6127 (GdkFontMetrics): Add style argument to initState call.
6128 (stringWidth(String,int,int,String)): Add style parameter.
6129 (stringWidth(String)): Add style argument to stringWidth call.
6130 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
6131 (initState): Set pango font style and weight based on AWT style
6132 parameter. Pass default GTK language to
6133 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
6134 simply dividing by PANGO_SCALE.
6135 (stringWidth): Set pango font style and weight based on AWT style
6138 * java/awt/Button.java (next_button_number): New field.
6139 (paramString): Change output.
6140 (generateName): New method.
6141 (getUniqueLong): New method.
6143 2004-06-14 Kim Ho <kho@redhat.com>
6145 * javax/swing/JTabbedPane.java:
6146 (setComponentAt): Set the component, not
6148 * javax/swing/plaf/basic/BasicDesktopIconUI.java
6149 (actionPerformed): Let deiconize catch exception.
6151 2004-06-14 Olga Rodimina <rodimina@redhat.com>
6153 * javax/swing/JPopupMenu.java:
6154 (setVisible): Corrected location of a
6155 heavyweight popup menu.
6157 2004-06-14 Olga Rodimina <rodimina@redhat.com>
6159 * javax/swing/MenuSelectionManager.java:
6160 Ran through jalopy to fix formatting style.
6162 2004-06-14 Olga Rodimina <rodimina@redhat.com>
6164 * javax/swing/JLayeredPane.java:
6165 (remove): Revalidate and repaint layered pane after
6166 the component was removed.
6167 javax/swing/JMenu.java:
6168 (setVisible): Display popup menu at the user location,
6169 if one was set by the user.
6170 (setMenuLocation): Reimplemented. Fixed javadoc.
6171 * javax/swing/JMenuBar.java: Added javadoc.
6172 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
6173 (MODEL_CHANGED_PROPERTY): New Property.
6174 (isSelected): Implemented.
6175 (setBorderPainted): Fire PropertyChangeEvent
6176 if paintBorder property changes.
6177 (setSelected): Implemented.
6178 (setSelectionModel): Implemented.
6179 * javax/swing/JPopupMenu.java: Added Javadoc
6180 (pack): Implemented.
6181 (setVisible): Reimplemented.
6182 (show): Fixed location.
6183 (JPopupMenu.LigthWeightPopup): Reimplemented to use
6184 Container instead of JPanel.
6185 * javax/swing/MenuSelectionManager.java: Added Javadocs.
6186 (clearSelectedPath): Reimplemented to clear selectedPath
6188 (processMouseEvent): Reimplemented.
6189 (setSelectedPath): Fire stateChange event indicating that
6190 selected menu path has changed.
6191 (getPath): Change to use ArrayList instead of Vector.
6192 * javax/swing/plaf/basic/BasicMenuBarUI.java:
6193 (installUI): call installKeyboardActions().
6194 (uninstallUI): call uninstallKeyboardActions().
6196 2004-06-13 Michael Koch <konqueror@gmx.de>
6198 * javax/swing/text/DefaultCaret.java,
6199 javax/swing/text/BadLocationException.java:
6202 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
6204 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
6205 DEFAULT_COLS): New variables.
6206 (create): Don't allow 0 rows or 0 columns. Instead, set the
6207 values to DEFAULT_ROWS or DEFAULT_COLS.
6208 (getMinimumSize): Likewise.
6209 (getPreferredSize): Likewise.
6210 (minimumSize): Likewise.
6211 (preferredSize): Likewise.
6212 (create): Set peer's editable state.
6213 * java/awt/TextArea.java (TextArea()): Set rows and columns to
6214 zero. Update javadocs.
6215 (TextArea(String)): Likewise.
6216 (TextArea(int,int)): Fix javadocs.
6217 (TextArea(String,int,int,int)): Only throw exception if one of
6218 rows or columns is zero. Fix javadocs.
6220 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
6222 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
6223 addition to Components.
6225 * java/awt/MenuItem.java (dispatchEventImpl): If the event
6226 wasn't consumed by normal processing, send it to the parent
6229 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6230 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
6233 2004-06-11 David Jee <djee@redhat.com>
6235 * java/awt/MediaTracker.java
6236 (addImage(Image,int)): Call imageUpdate() to udpate image status.
6237 (addImage(Image,int,int,int)): Likewise.
6239 2004-06-11 Michael Koch <konqueror@gmx.de>
6241 * javax/swing/text/AbstractDocument.java,
6242 javax/swing/text/Document.java,
6243 javax/swing/text/GapContent.java,
6244 javax/swing/text/JTextComponent.java,
6245 javax/swing/text/PlainDocument.java:
6248 2004-06-11 Michael Koch <konqueror@gmx.de>
6250 * javax/swing/JRootPane.java
6251 (AccessibleJRootPane.serialVersionUID): New field.
6252 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
6253 (AccessibleJRootPane.getAccessibleRole): New method.
6254 (RootLayout): Implements Serializable.
6255 (RootLayout.serialVersionUID): New field.
6256 (RootLayout.RootLayout): New constructor.
6257 (setJMenuBar): Made public.
6258 (getJMenuBar): Likewise.
6259 (JRootPane): Likewise.
6260 (createContentPane): Likewise.
6261 (createGlassPane): Likewise.
6262 (createLayeredPane): Likewise.
6264 2004-06-11 Michael Koch <konqueror@gmx.de>
6266 * javax/swing/SwingUtilities.java
6267 (isLeftMouseButton): Fixed javadoc.
6268 (isMiddleMouseButton): Likewise.
6269 (isRightMouseButton): Likewise.
6271 2004-06-11 Michael Koch <konqueror@gmx.de>
6273 * javax/swing/JScrollPane.java
6274 (serialVersionUID): New field.
6275 (columnHeader): Made protected.
6276 (rowHeader): Likewise.
6277 (lowerLeft): Likewise.
6278 (lowerRight): Likewise.
6279 (upperLeft): Likewise.
6280 (upperRight): Likewise.
6281 (horizontalScrollBar): Likewise.
6282 (horizontalScrollBarPolicy): Likewise.
6283 (verticalScrollBar): Likewise.
6284 (verticalScrollBarPolicy): Likewise.
6285 (viewport): Likewise.
6287 2004-06-11 Michael Koch <konqueror@gmx.de>
6289 * javax/swing/LookAndFeel.java: Fixed javadocs.
6291 2004-06-11 Michael Koch <konqueror@gmx.de>
6293 * javax/swing/JEditorPane.java: Fixed javadocs.
6294 (JEditorPane): Removed redundant call to to this().
6295 (fireHyperlinkUpdate): Implemented.
6297 2004-06-10 Olga Rodimina <rodimina@redhat.com>
6299 * javax/swing/JMenu.java: Fixed file name
6300 in the file comment.
6302 2004-06-10 Olga Rodimina <rodimina@redhat.com>
6304 * javax/swing/JMenu.java: Added javadoc.
6305 (JMenu): Added MenuChangeListener to listen to
6306 ChangeEvents occuring in menu's model.
6307 (insert): Throw IllegalArgumentException if
6308 index is less than 0
6309 (setSelected): Reimplement.
6310 (setPopupMenuVisible): Call menu's model isEnabled()
6311 (setDelay): Throw IllegalArgumentException if
6312 given amount of delay is less than 0.
6313 (createActionComponent): Implemented.
6314 (createActionChangeListener): Implemented.
6315 (addSeparator): Implemented.
6316 (getItem): Throw IllegalArgumentException if index is
6318 (getItemCount): Implemented.
6319 (fireMenuSelected): Changed to use menuEvent.
6320 (fireMenuDeselected): Likewise.
6321 (fireMenuCanceled): Likewise.
6322 (setAccelerator): Changed to throw an error if this
6324 (doClick): Implemented.
6325 (JMenu.ActionChangedListener): New inner class to handle
6326 PropertyChangeEvents occuring in the actions associated with menu.
6327 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
6328 (BasicMenuUI): Added PropertyChangeListener to the menu.
6329 (createChangeListener): Implemented.
6330 (createMenuDragMouseListener): Likewise.
6331 (createMenuKeyListener): Likewise.
6332 (createPropertyChangeListener): Likewise.
6333 (uninstallListeners): Likewise.
6334 (BasicMenuUI.MouseInputHandler): Reimplemented.
6335 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
6336 (BasicMenuUI.ChangeHandler): Likewise.
6337 (BasicMenuUI.MenuDragMouseHandler): Likewise.
6338 (BasicMenuUI.MenuKeyHandler): Likewise.
6340 2004-06-10 David Jee <djee@redhat.com>
6342 * java/awt/MediaTracker.java
6343 (imageUpdate): Only do notifyAll() if the image is complete.
6345 2004-06-10 Olga Rodimina <rodimina@redhat.com>
6347 * javax/swing/JApplet.java:
6348 (getJMenuBar): Made public.
6349 (setJMenuBar): Likewise.
6350 * javax/swing/JFrame.java:
6351 (getJMenuBar): Made public.
6352 (setJMenuBar): Likewise.
6353 * javax/swing/JWindow.java:
6354 (getJMenuBar): Removed.
6355 (setJMenuBar): Removed.
6357 2004-06-10 Michael Koch <konqueror@gmx.de>
6359 * javax/swing/JEditorPane.java
6360 (createEditorKitForContentType): Fixed visibility.
6361 (fireHyperlinkUpdate): Likewise.
6362 (getContentType): Likewise.
6363 (getEditorKit): Likewise.
6364 (getEditorKitForContentType): Likewise.
6365 (getPage): Likewise.
6367 (registerEditorKitForContentTyoe): Likewise.
6368 (replaceSelection): Likewise.
6369 (setContentType): Likewise.
6370 (setEditorKit): Likewise.
6371 (setPage): Likewise.
6373 2004-06-10 Michael Koch <konqueror@gmx.de>
6375 * javax/swing/Timer.java
6376 (Timer): New constructor.
6377 * javax/swing/plaf/basic/BasicProgressBarUI.java
6378 (animationTimer): Don't initialize at construction.
6379 (startAnimationTimer): Added since tag.
6380 (stopAnimationTimer): Likewise.
6381 (installUI): Use new Timer constructor.
6382 * javax/swing/plaf/basic/BasicScrollBarUI.java
6383 (installUI): Likewise.
6384 * javax/swing/plaf/basic/BasicSliderUI.java
6385 (installUI): Likewise.
6387 2004-06-10 Michael Koch <konqueror@gmx.de>
6389 * javax/swing/ButtonGroup.java
6390 (serialVersionUID): Made private.
6391 (buttons): Renamed from v, added javadoc.
6392 (sel): Added javadoc.
6393 (ButtonGroup): Likewise.
6396 (getElements): Likewise.
6397 (getSelection): Likewise.
6398 (setSelected): Likewise.
6399 (isSelected): Likewise.
6400 (getButtonCount): Likewise.
6402 2004-06-10 Michael Koch <konqueror@gmx.de>
6404 * javax/swing/ButtonGroup.java,
6405 javax/swing/ImageIcon.java,
6406 javax/swing/JEditorPane.java,
6407 javax/swing/JRootPane.java,
6408 javax/swing/JTextField.java,
6409 javax/swing/LookAndFeel.java,
6410 javax/swing/plaf/basic/BasicTextUI.java:
6413 2004-06-10 Michael Koch <konqueror@gmx.de>
6415 * javax/swing/text/Style.java: Added javadocs.
6417 2004-06-10 Michael Koch <konqueror@gmx.de>
6419 * javax/swing/JComponent.java
6420 (fireVetoableChange): Removed redundant cast.
6421 * javax/swing/JLabel.java
6422 (getDisabledIcon): Save icon for next call.
6424 2004-06-10 Michael Koch <konqueror@gmx.de>
6426 * javax/swing/KeyStroke.java
6427 (getKeyStroke(char,boolean)): Marked deprecated.
6429 2004-06-10 Michael Koch <konqueror@gmx.de>
6431 * javax/swing/DefaultCellEditor.java,
6432 javax/swing/GrayFilter.java,
6433 javax/swing/event/DocumentEvent.java,
6434 javax/swing/text/JTextComponent.java,
6435 javax/swing/text/MutableAttributeSet.java:
6438 2004-06-10 Michael Koch <konqueror@gmx.de>
6440 * javax/swing/plaf/BorderUIResource.java:
6441 Added serialVersionUID all over.
6443 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
6445 * javax/swing/undo/UndoManager.java: Re-written from scratch.
6447 2004-06-10 Michael Koch <konqueror@gmx.de>
6449 * javax/swing/table/DefaultTableCellRenderer.java
6450 (noFocusBorder): Initialize directly.
6452 2004-06-10 Michael Koch <konqueror@gmx.de>
6454 * javax/swing/plaf/basic/BasicArrowButton.java
6455 (setDirection): Use method argument.
6457 2004-06-10 Michael Koch <konqueror@gmx.de>
6459 * javax/swing/plaf/BorderUIResource.java,
6460 javax/swing/plaf/ComponentUI.java,
6461 javax/swing/undo/CompoundEdit.java,
6462 javax/swing/undo/StateEdit.java:
6463 Fixed javadocs all over.
6465 2004-06-10 Michael Koch <konqueror@gmx.de>
6467 * javax/swing/DefaultButtonModel.java
6468 (ARMED): Made public final, fixed value.
6469 (ENABLED): Likewise.
6470 (PRESSED): Likewise.
6471 (ROLLOVER): Likewise.
6472 (SELECTED): Likewise.
6473 (stateMask): Initialize directly.
6474 (listenerList): Likewise.
6475 (mnemonic): Likewise.
6476 (fireStateChanged): Removed argument, use changeEvent as event.
6477 All places where this method is called are fixed too.
6478 (getActionCommant): Fixed javadoc.
6479 (setGroup): Fixed javadoc.
6480 (getGroup): New method.
6482 2004-06-09 Olga Rodimina <rodimina@redhat.com>
6484 * javax/swing/AbstractButton.java
6485 (AbstractButton): Use init() to initialize the button.
6486 (init): New Method. Initializes AbstractButton.
6487 * javax/swing/JMenuItem.java: Documented.
6488 (JMenuItem): Reimplemented.
6489 (init): Implemented.
6490 (setEnabled): Changed to call super.setEnabled()
6491 (processMouseEvent): Reimplemented.
6492 (fireMenuKeyPressed): Implemented.
6493 (fireMenuKeyReleased): Implemented.
6494 (fireMenuKeyTyped): Implemented.
6495 (menuSelectionChanged): disarm the model if the menu item was
6497 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
6498 (getPath): Change to use ArrayList instead of Vector.
6499 (getPreferredSize): Renamed variable.
6500 (paintMenuItem): Paint margin area of menu item.
6501 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
6502 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
6503 menu item's bounds before clearing the selection.
6505 2004-06-09 David Jee <djee@redhat.com>
6507 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
6508 (GtkTextComponentPeer): Set caret position to 0.
6509 * java/awt/TextComponent.java
6510 (setText): Set caret position to 0.
6511 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6512 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
6513 Handle GtkScrolledWindow separately. Fix signal handler blocking.
6514 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
6516 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6517 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
6520 2004-06-09 Kim Ho <kho@redhat.com>
6522 * Makefile.am: New files
6523 * Makefile.in: Regenerated
6524 * java/awt/Container.java
6525 (getComponentAt): Removed.
6526 * javax/swing/AbstractAction.java
6527 (ENABLED_PROPERTY): New property.
6528 (putValue): Fire PropertyChangeEvents.
6529 (setEnabled): ditto.
6530 (firePropertyChange): Javadoc and implement
6532 * javax/swing/AbstractButton.java
6533 (setAction): Don't create PropertyChangeListener
6534 if new Action is null.
6535 (setIcon): Don't set icon till after comparing
6537 (configurePropertiesFromAction): Check mnemonic
6538 key before calling intValue().
6539 (createActionPropertyChangeListener): Check
6540 properties rather than bulk change.
6541 * javax/swing/DefaultDesktopManager.java:
6543 * javax/swing/DesktopManager.java:
6545 * javax/swing/JComponent.java
6546 (fireVetoableChange): Implement.
6547 (paintImmediately): Use root component.
6548 * javax/swing/JDesktopPane.java: Implement
6549 * javax/swing/JInternalFrame.java: Implement
6550 * javax/swing/JLabel.java
6551 (getDisabledIcon): Return grayscaled icon if
6552 no disabled icon specified.
6553 * javax/swing/JMenuBar.java
6554 (getComponentAtIndex): Use getComponent
6555 * javax/swing/JOptionPane.java
6556 (getDesktopPaneForComponent): Use SwingUtilities'
6558 (getFrameForComponent): ditto.
6559 * javax/swing/JSplitPane.java
6560 (remove): Use getComponent.
6561 * javax/swing/SwingUtilities.java
6562 (convertPoint): Implement.
6563 * javax/swing/plaf/basic/BasicButtonUI.java
6564 (paintButtonNormal): Check opaqueness before
6566 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
6568 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
6570 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
6572 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
6574 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6575 Change InternalFrame and Desktop colors.
6577 2004-06-09 David Jee <djee@redhat.com>
6579 * java/awt/Container.java
6580 (remove): Do not set component to invisible.
6582 2004-06-09 Michael Koch <konqueror@gmx.de>
6584 * javax/swing/tree/DefaultMutableTreeNode.java
6585 (getLeafCount): Renamed enum to e.
6587 2004-06-09 Michael Koch <konqueror@gmx.de>
6589 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
6590 (positionForMouseEvent): Removed redundant semicolon.
6591 (continueDrag): Use method arguments.
6593 2004-06-09 Michael Koch <konqueror@gmx.de>
6595 * javax/swing/border/TitledBorder.java,
6596 javax/swing/filechooser/FileSystemView.java,
6597 javax/swing/plaf/basic/BasicButtonListener.java,
6598 javax/swing/plaf/basic/BasicGraphicsUtils.java,
6599 javax/swing/plaf/basic/BasicLabelUI.java,
6600 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
6601 javax/swing/plaf/basic/BasicScrollBarUI.java,
6602 javax/swing/plaf/basic/BasicScrollPaneUI.java,
6603 javax/swing/plaf/basic/BasicSliderUI.java,
6604 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
6605 javax/swing/plaf/basic/BasicToggleButtonUI.java,
6606 javax/swing/table/JTableHeader.java,
6607 javax/swing/text/AbstractDocument.java,
6608 javax/swing/text/DefaultCaret.java,
6609 javax/swing/text/StyledEditorKit.java,
6610 javax/swing/tree/DefaultTreeCellEditor.java:
6611 Reworked import statements.
6613 2004-06-08 Graydon Hoare <graydon@redhat.com>
6615 * javax/swing/Box.java: Temporarily comment out code
6616 broken due to visibility bug.
6618 2004-06-09 Michael Koch <konqueror@gmx.de>
6620 * javax/swing/ImageIcon.java
6621 (ImageIcon): Added missing constructor.
6623 2004-06-08 Michael Koch <konqueror@gmx.de>
6625 * javax/swing/JToggleButton.java
6626 (JToggleButton): New constructor.
6627 (getAccessibleContext): Moved documentation into javadoc.
6628 (getUIClassID): Likewise.
6630 2004-06-08 Michael Koch <konqueror@gmx.de>
6632 * javax/swing/AbstractButton.java
6633 (getDisabledIcon): Create disabled icon if none exists yet.
6635 2004-06-08 Michael Koch <konqueror@gmx.de>
6637 * javax/swing/plaf/basic/BasicLookAndFeel.java
6638 (initClassDefaults): Added FormattedTextFieldUI.
6639 (loadResourceBundle): Renamed enum to e.
6641 2004-06-08 Michael Koch <konqueror@gmx.de>
6643 * javax/swing/plaf/basic/BasicButtonUI.java
6644 (paintIcon): Simplified.
6645 (paintText): Paint disabled button correctly.
6647 2004-06-08 Michael Koch <konqueror@gmx.de>
6649 * javax/swing/JComponent.java
6650 (createToolTip): Use official JToolTip API.
6652 2004-06-08 Michael Koch <konqueror@gmx.de>
6654 * javax/swing/JToolTip.java
6655 (JToolTip): No arguments in API.
6656 (setTipText): New method.
6658 2004-06-08 Michael Koch <konqueror@gmx.de>
6660 * javax/swing/SwingUtilities.java
6661 (isLeftMouseButton): New method.
6662 (isMiddleMouseButton): New method.
6663 (isRightMouseButton): New method.
6665 2004-06-08 Michael Koch <konqueror@gmx.de>
6667 * javax/swing/AbstractButton.java,
6668 javax/swing/CellRendererPane.java,
6669 javax/swing/JCheckBoxMenuItem.java,
6670 javax/swing/JColorChooser.java,
6671 javax/swing/JComboBox.java,
6672 javax/swing/JComponent.java,
6673 javax/swing/JDesktopPane.java,
6674 javax/swing/JFileChooser.java,
6675 javax/swing/JMenu.java,
6676 javax/swing/JMenuItem.java,
6677 javax/swing/JOptionPane.java,
6678 javax/swing/JPasswordField.java,
6679 javax/swing/JPopupMenu.java,
6680 javax/swing/JProgressBar.java,
6681 javax/swing/JRadioButtonMenuItem.java,
6682 javax/swing/JScrollBar.java,
6683 javax/swing/JSeparator.java,
6684 javax/swing/JSlider.java,
6685 javax/swing/JSplitPane.java,
6686 javax/swing/JTabbedPane.java,
6687 javax/swing/JTextField.java,
6688 javax/swing/JToolBar.java,
6689 javax/swing/text/JTextComponent.java:
6690 Fixed all constructors of accessibility classes.
6692 2004-06-08 Michael Koch <konqueror@gmx.de>
6694 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
6697 2004-06-08 Michael Koch <konqueror@gmx.de>
6699 * javax/swing/Box.java
6700 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
6701 (AccessibleBoxFiller.serialVersionUID): New member variable.
6702 * javax/swing/DefaultButtonModel.java
6703 (stateMask): Made protected.
6704 (listenerList): Likewise.
6705 (changeEvent): Likewise.
6707 (mnemonic): Likewise.
6708 (actionCommand): Likewise.
6709 (getListeners): New method.
6710 (getActionListeners): New method.
6711 (getItemListeners): New method.
6712 (getChangeListeners): New method.
6713 (fireItemStateChanged): Simplified.
6714 (fireActionPerformed): Simplified.
6715 (fireStateChanged): Simplified.
6716 * javax/swing/JFrame.java
6717 (JFrame): Implements WindowContants.
6718 (HIDE_ON_CLOSE): Removed.
6719 (EXIT_ON_CLOSE): Removed.
6720 (DISPOSE_ON_CLOSE): Removed.
6721 (DO_NOTHING_ON_CLOSE): Removed.
6722 (processWindowEvent): Exit with code 0.
6723 (setDefaultCloseOperation): Do security check before setting value.
6724 * javax/swing/JOptionPane.java
6725 (message): Initialize only in constructor.
6726 * javax/swing/JToolTip.java: Removed unused imports.
6727 * javax/swing/JViewport.java
6728 (serialVersionUID): New member variable.
6729 (SIMPLE_SCROLL_MODE): Made final, fixed value.
6730 (BLIT_SCROLL_MODE): Likewise.
6731 (BACKINGSTORE_SCROLL_MODE): Likewise.
6732 (scrollUnderway): Made protected.
6733 (isViewSizeSet): Likewise.
6734 * javax/swing/ListModel.java: Fixed javadoc.
6735 * javax/swing/Popup.java: Likewise.
6736 * javax/swing/RepaintManager.java
6737 (paintDirtyRegions): Don't use internal classes of
6738 java.util.AbstractMap.
6739 * javax/swing/ScrollPaneConstants.java: Reindented.
6740 * javax/swing/ScrollPaneLayout.java
6741 (viewport): Made protected.
6742 (verticalScrollBar): Made protected, renamed to vsb.
6743 (horizontalScrollBar): Made protected, renamed to hsb.
6744 (rowHeader): Made protected, renamed to rowHead.
6745 (columnHeader): Made protected, renamed to colHead.
6746 (lowerLeft): Made protected.
6747 (lowerRight): Made protected.
6748 (upperLeft): Made protected.
6749 (upperRight): Made protected.
6750 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
6751 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
6753 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
6755 * java/awt/MediaTracker.java (imageUpdate): Only set status to
6756 LOADING if flags has SOMEBITS set.
6758 2004-06-07 Michael Koch <konqueror@gmx.de>
6760 * javax/swing/AbstractButton.java: Reorganized imports.
6761 * javax/swing/ActionMap.java: Likewise.
6762 * javax/swing/DefaultButtonModel.java: Likewise.
6763 * javax/swing/DefaultListModel.java: Likewise.
6764 * javax/swing/ImageIcon.java: Likewise.
6765 (serialVersionUID): New member variable.
6766 * javax/swing/JComboBox.java: Reorganized imports.
6767 * javax/swing/JComponent.java: Likewise.
6768 (ui): Made protected.
6769 (listenerList): Made protected.
6770 (TOOL_TIP_TEXT_KEY): New constant.
6771 (scrollRectToVisible): Removed redundant null check.
6772 * javax/swing/JFrame.java: Reorganized imports.
6773 * javax/swing/JInternalFrame.java: Reorganized imports.
6774 * javax/swing/JProgressBar.java: Likewise.
6775 * javax/swing/JRootPane.java: Likewise.
6776 * javax/swing/JScrollBar.java: Likewise.
6777 * javax/swing/JSeparator.java: Likewise.
6778 * javax/swing/JSlider.java: Likewise.
6779 * javax/swing/JTabbedPane.java: Likewise.
6780 * javax/swing/JTextField.java: Likewise.
6781 * javax/swing/JToolBar.java: Likewise.
6782 * javax/swing/JTree.java: Likewise.
6783 * javax/swing/JViewport.java: Likewise.
6784 * javax/swing/JWindow.java: Likewise.
6785 * javax/swing/KeyStroke.java: Likewise.
6786 * javax/swing/LookAndFeel.java: Likewise.
6787 * javax/swing/MenuSelectionManager.java: Likewise.
6788 * javax/swing/SwingUtilities.java: Likewise.
6789 * javax/swing/Timer.java: Likewise.
6790 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
6791 * javax/swing/JList.java
6792 (HORIZONTAL_WRAP): Made final, fixed value.
6793 (VERTICAL): Likewise.
6794 (VERTICAL_WRAP): Likewise.
6796 2004-06-07 Michael Koch <konqueror@gmx.de>
6798 * javax/swing/AbstractButton.java
6799 (serialVersionUID): New member variable.
6800 (AccessibleAbstractButton.serialVersionUID): Likewise.
6801 (AbstractButton): Made public.
6802 * javax/swing/Box.java
6803 (AccessibleBox.serialVersionUID): New member variable.
6804 (Filler.serialVersionUID): Likewise.
6805 * javax/swing/DefaultListSelectionModel.java
6806 (serialVersionUID): Likewise.
6807 * javax/swing/JApplet.java
6808 (serialVersionUID): Likewise.
6809 * javax/swing/JCheckBox.java
6810 (serialVersionUID): Likewise.
6811 * javax/swing/JCheckBoxMenuItem.java
6812 (serialVersionUID): Likewise.
6813 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
6814 * javax/swing/JColorChooser.java
6815 (serialVersionUID): Likewise.
6816 (AccessibleJColorChooser.serialVersionUID): Likewise.
6817 * javax/swing/JComponent.java
6818 (serialVersionUID): Made private.
6819 (AccessibleJComponent.serialVersionUID): New member variable.
6820 * javax/swing/JDesktopPane.java
6821 (serialVersionUID): Likewise.
6822 * javax/swing/JDialog.java
6823 (serialVersionUID): Likewise.
6824 * javax/swing/JFormattedTextField.java
6825 (serialVersionUID): Fixed value.
6826 * javax/swing/JFrame.java
6827 (serialVersionUID): New member variable.
6828 (getDefaultCloseOpertation): Made public.
6829 * javax/swing/JLayeredPane.java
6830 (serialVersionUID): Likewise.
6831 (LAYER_PROPERTY): Made final, fixed value.
6832 (JLayeredPane): Made public.
6833 * javax/swing/JMenu.java
6834 (AccessibleJMenu.serialVersionUID): New member variable.
6835 (WinListener.serialVersionUID): Likewise.
6836 * javax/swing/JMenuBar.java
6837 (serialVersionUID): Likewise.
6838 (getComponentAtIndex): Added @deprecated tag.
6839 * javax/swing/JMenuItem.java
6840 (serialVersionUID): New member variable.
6841 (AccessibleJMenuItem.serialVersionUID): Likewise.
6842 * javax/swing/JOptionPane.java
6843 (serialVersionUID): Likewise.
6844 (AccessibleJOptionPane.serialVersionUID): Likewise.
6845 * javax/swing/JPopupMenu.java
6846 (serialVersionUID): Likewise.
6847 (AccessibleJPopupMenu.serialVersionUID): Likewise.
6848 (getPopupMenuListeners): New method.
6849 (getComponentAtIndex): Added @deprecated tag.
6850 * javax/swing/JProgressBar.java
6851 (serialVersionUID): New member variable.
6852 (AccessibleJProgressBar.serialVersionUID): Likewise.
6853 * javax/swing/JRadioButton.java
6854 (serialVersionUID): Likewise.
6855 * javax/swing/JRadioButtonMenuItem.java
6856 (serialVersionUID): Likewise.
6857 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
6858 * javax/swing/JScrollBar.java
6859 (serialVersionUID): Likewise.
6860 (AccessibleJScrollBar.serialVersionUID): Likewise.
6861 * javax/swing/JSeparator.java
6862 (serialVersionUID): Likewise.
6863 (AccessibleJSeparator.serialVersionUID): Likewise.
6864 * javax/swing/JSlider.java: Fixed javadocs.
6865 (AccessibleJSlider.serialVersionUID): New member variable.
6866 * javax/swing/JSplitPane.java: Added copyright statement.
6867 (serialVersionUID): New member variable.
6868 (AccessibleJSplitPane.serialVersionUID): Likewise.
6869 * javax/swing/JTabbedPane.java
6870 (serialVersionUID): Likewise.
6871 (AccessibleJTabbedPane.serialVersionUID): Likewise.
6872 (ModelListener.serialVersionUID): Likewise.
6873 (ModelListener.ModelListener): New constructor.
6874 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
6875 (WRAP_TAB_LAYOUT): Likewise.
6876 * javax/swing/JTable.java
6877 (serialVersionUID): New member variable.
6878 * javax/swing/JToggleButton.java
6879 (serialVersionUID): Likewise.
6880 (ToggleButtonModel): Made static.
6881 (ToggleButtonModel.serialVersionUID): New member variable.
6882 * javax/swing/JToolTip.java
6883 (serialVersionUID): Likewise.
6884 * javax/swing/JTree.java
6885 (serialVersionUID): Likewise.
6886 * javax/swing/JWindow.java
6887 (serialVersionUID): Likewise.
6888 * javax/swing/Timer.java
6889 (serialVersionUID): Likewise.
6891 2004-06-06 Michael Koch <konqueror@gmx.de>
6893 * javax/swing/SwingConstants.java
6894 (NEXT): New constant.
6895 (PREVIOUS): Likewise.
6896 * javax/swing/UIManager.java
6897 (LookAndFeel): Made public.
6898 (LookAndFeel.getClassName): Likewise.
6899 (LookAndFeel.getName): Likewise.
6901 2004-06-02 Olga Rodimina <rodimina@redhat.com>
6903 * javax/swing/JCheckBoxMenuItem.java:
6905 * javax/swing/JMenu.java: Likewise.
6906 * javax/swing/JMenuBar.java: Likewise.
6907 * javax/swing/JMenuItem.java: Likewise.
6908 * javax/swing/JPopupMenu.java: Likewise.
6909 * javax/swing/JRadioButtonMenuItem.java: Likewise.
6910 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
6911 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
6912 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
6913 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
6914 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
6915 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
6917 2004-05-31 Olga Rodimina <rodimina@redhat.com>
6919 * javax/swing/plaf/basic/BasicMenuUI.java:
6920 (MouseEntered): Do not call getPath() from MenuSelectionManager.
6921 Call getPath() from super class instead.
6923 2004-05-31 David Jee <djee@redhat.com>
6925 * java/awt/Container.java
6926 (remove): Set component visibility to false after removing it.
6928 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
6930 * java/awt/Component.java (getForeground): Return SystemColor if
6932 (getBackground): Likewise.
6934 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
6935 (item_highlighted): New function.
6936 (connectSignals): Set item_highlighted as list's select
6939 * java/applet/Applet.java: Revert changes from 2004-04-29,
6940 2004-03-15 and 2004-03-14.
6942 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
6943 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
6946 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
6947 "Dialog" as the default font.
6948 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
6950 * java/awt/Component.java (getFont): Return "Dialog" font by
6952 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
6953 Multiply size argument to pango_font_description_set_size by the
6954 DPI conversion factor rather than by PANGO_SCALE.
6955 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
6956 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
6957 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
6958 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
6959 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
6960 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
6961 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
6962 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
6963 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
6964 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
6965 Divide baseline y coordinate by DPI conversion factor rather
6966 than by PANGO_SCALE.
6967 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
6968 (area_prepared): Fix typo.
6969 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
6970 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
6971 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
6972 (dpi_conversion_factor): New global variable.
6973 (init_dpi_conversion_factor): New function to calculate and
6974 track DPI conversion factor.
6975 (dpi_changed_cb): New callback.
6976 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
6978 2004-05-27 David Jee <djee@redhat.com>
6980 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6981 (getGraphics): Return a new GdkGraphics instance.
6982 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6983 (getGraphics): Call super.getGraphics().
6985 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
6987 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6988 (setNativeBounds): Clamp width and height values to >= 0.
6990 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6991 (find_fg_color_widget): Handle GtkOptionMenu specially.
6993 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6994 (pre_event_handler): Only post configure events to visible
6997 2004-05-26 David Jee <djee@redhat.com>
6999 * java/awt/BorderLayout.java
7000 (layoutContainer): Fix size calculations.
7002 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
7004 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7005 (window_wm_protocols_filter): Remove function.
7006 (create): Remove filter that removes WM_TAKE_FOCUS client
7009 2004-06-17 Anthony Green <green@redhat.com>
7011 * java/util/zip/ZipFile.java (getInputStream): Return null if
7014 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
7015 directory contents to the class path.
7017 2004-06-15 Andrew Haley <aph@redhat.com>
7019 * java/lang/natSystem.cc (getenv0): Don't assume environment
7020 variable is Latin 1 coded.
7022 2004-06-14 Andreas Jaeger <aj@suse.de>
7024 * configure.in: Support --enable-version-specific-runtime-libs.
7025 * configure: Regenerated.
7027 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
7029 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
7030 to pass ClassLoader argument.
7031 * java/util/GregorianCalendar.java: Likewise.
7032 * java/util/Currency.java: Likewise.
7033 * java/text/BreakIterator.java: Likewise.
7034 * java/text/Collator.java: Likewise.
7035 * java/text/DateFormat.java: Likewise.
7036 * java/text/DateFormatSymbols.java: Likewise.
7037 * java/text/DecimalFormatSymbols.java: Likewise.
7038 * java/text/NumberFormat.java: Likewise.
7039 * java/awt/Window.java: Likewise.
7041 2004-06-14 Andrew Haley <aph@redhat.com>
7043 * java/lang/System.java: (getenv0): New method.
7044 (getenv): Add security check. Do the right thing.
7045 * java/lang/natSystem.cc (getenv0): New method.
7047 2004-06-12 Mark Wielaard <mark@klomp.org>
7049 * javax/swing/RepaintManager.java
7050 (paintDirtyRegions): Use entrySet(), not values().
7052 2004-06-10 Mark Wielaard <mark@klomp.org>
7054 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
7057 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
7059 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
7060 when we already know the answer.
7061 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
7062 (setStartRule,setEndRule): Don't take abs of day number.
7063 (getOffset): Clarify docs. Add argument checks.
7064 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
7065 (equals,hasSameRules,toString,readObject): Use startTimeMode and
7068 2004-06-10 Tom Tromey <tromey@redhat.com>
7070 * interpret.cc (run): Handle wide fload.
7072 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
7074 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
7076 2004-06-05 Michael Koch <konqueror@gmx.de>
7078 * javax/swing/SwingConstants.java
7079 (NEXT): New constant.
7080 (PREVIOUS): Likewise.
7082 2004-06-05 Michael Koch <konqueror@gmx.de>
7084 * javax/swing/UIManager.java
7085 (LookAndFeel): Made public.
7086 (LookAndFeel.getName): Likewise.
7087 (LookAndFeel.getClassName): Likewise.
7089 2004-06-03 Michael Koch <konqueror@gmx.de>
7091 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
7092 (requestFocus): Revert last changes.
7093 (gtkRequestFocus): Removed.
7094 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7095 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
7097 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
7098 Reverted last patch.
7099 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
7100 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
7101 Reverted comment change.
7103 2004-06-02 Olga Rodimina <rodimina@redhat.com>
7105 * javax/swing/JCheckBoxMenuItem.java:
7107 * javax/swing/JMenu.java: Likewise.
7108 * javax/swing/JMenuBar.java: Likewise.
7109 * javax/swing/JMenuItem.java: Likewise.
7110 * javax/swing/JPopupMenu.java: Likewise.
7111 * javax/swing/JRadioButtonMenuItem.java: Likewise.
7112 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
7113 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
7114 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
7115 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
7116 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
7117 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
7119 2004-06-01 Tom Tromey <tromey@redhat.com>
7121 * java/io/ObjectStreamField.java: Cleaned up imports.
7123 2004-06-01 Michael Koch <konqueror@gmx.de>
7125 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
7127 2004-06-01 Mark Wielaard <mark@klomp.org>
7129 * java/io/Writer.java (Writer(Object)): Fixed API doc.
7131 2004-06-01 Michael Koch <konqueror@gmx.de>
7133 * java/security/Security.java
7134 (insertProviderAt): Use equals() instead of ==.
7135 (removeProvicer): Likewise.
7136 (getProvider): Likewise.
7137 * java/security/Signature.java
7138 (sign): Don't set state to UNINITIALIZED.
7141 2004-06-01 Mark Wielaard <mark@klomp.org>
7143 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
7144 Implement by calling gtkRequestFocus.
7145 (gtkRequestFocus): New native method.
7146 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7147 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
7149 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
7151 (filter_expose_event_handler):
7153 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
7154 (menu_pos): Mark static.
7156 2004-06-01 Michael Koch <konqueror@gmx.de>
7158 * java/text/CollationElementIterator.java,
7159 java/text/CollationKey.java,
7160 java/text/RuleBasedCollator.java: New versions from GNU classpath.
7161 * testsuite/libjava.mauve/xfails: Removed all
7162 java.text.CollationElementIterator tests.
7164 2004-06-01 Michael Koch <konqueror@gmx.de>
7166 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
7168 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
7169 Java 1.5 keyword usage.
7171 2004-05-31 Olga Rodimina <rodimina@redhat.com>
7173 * javax/swing/plaf/basic/BasicMenuUI.java:
7174 (MouseEntered): Do not call getPath() from MenuSelectionManager.
7175 Call getPath() from super class instead.
7177 2004-05-31 Michael Koch <konqueror@gmx.de>
7179 * java/io/SequenceInputStream.java:
7180 Rename enum to e because enum is a keyword in Java 1.5.
7182 2004-05-31 Michael Koch <konqueror@gmx.de>
7184 * gnu/java/rmi/rmic/CompilerProcess.java:
7185 Fixed javadoc to by XHTML compliant.
7187 2004-05-30 Mark Wielaard <mark@klomp.org>
7189 * java/awt/Toolkit.java (loadSystemColors): Implement.
7191 2004-05-30 Michael Koch <konqueror@gmx.de>
7193 * java/lang/System.java: Reordered imports.
7195 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
7197 * java/text/DecimalFormat.java
7198 (parse): Fixed parsing of decimal strings. Number of maximum
7199 digits to be read should now work.
7200 * java/text/SimpleDateFormat.java
7201 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
7202 formatter. This fixes DateFormatTest.
7204 2004-05-30 Michael Koch <konqueror@gmx.de>
7206 * java/nio/Buffer.java
7207 (limit): Fixed off by one error.
7208 * java/nio/CharBuffer.java
7209 (wrap): Fixed arguments, added javadocs.
7211 2004-05-30 Michael Koch <konqueror@gmx.de>
7213 * gnu/java/beans/BeanInfoEmbryo.java,
7214 java/awt/im/InputContext.java,
7215 javax/swing/tree/DefaultMutableTreeNode.java:
7216 Rename enum to e because enum is a keyword in Java 1.5.
7218 2004-05-30 Michael Koch <konqueror@gmx.de>
7220 * gnu/java/math/MPN.java,
7221 java/awt/geom/Arc2D.java:
7222 Fixed javadocs all over.
7224 2004-05-30 Michael Koch <konqueror@gmx.de>
7226 * java/awt/DefaultKeyboardFocusManager.java
7227 (dispatchEvent): Call method to get key event dispatchers.
7228 (dispatchKeyEvent): Call method to get key event post processors.
7229 * javax/swing/JComponent.java
7230 (listenerList): Made protected.
7231 * javax/swing/JOptionPane.java
7232 (message): Don't initialize.
7233 (JOptionPane): Set message text.
7234 * javax/swing/JPopupMenu.java
7235 (show): Fixed typo in argument name.
7236 * javax/swing/RepaintManager.java
7237 (paintDirtyRegions): Use public API of java.util.Map.
7238 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
7239 (positionForMouseEvent): Removed redundant ';'.
7240 (continueDrag): Use method arguments.
7242 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
7244 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
7247 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
7249 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
7251 * gnu/gcj/RawDataManaged.java: New file.
7252 * java/lang/Thread.java (data): Declare as RawDataManaged.
7253 * java/lang/natThread.cc (init_native): Cast natThread data to
7254 RawDataManaged, not jobject.
7255 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
7256 * Makefile.in: Rebuilt.
7258 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
7260 * java/util/SimpleTimeZone.java: Reverting my last change until I
7261 can fix it properly.
7263 2004-05-27 Michael Koch <konqueror@gmx.de>
7265 * javax/swing/JPopupMenu.java
7266 (isVisible): Do not use visible directly.
7267 (setVisible): Likewise.
7268 * javax/swing/JWindow.java
7269 (JWindow): call accessible constructor.
7270 * javax/swing/RepaintManager.java
7271 (paintDirtyRegions): Use public methods to obtain iterator.
7273 2004-05-25 David Jee <djee@redhat.com>
7275 * java/awt/Container.java
7276 (remove): Set component's parent to null only after we removed the
7277 component from its parent's layout manager.
7279 2004-05-25 David Jee <djee@redhat.com>
7281 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
7282 (GtkComponentPeer): Set bounds regardless of whether awtComponent
7284 * gnu/java/awt/peer/gtk/GtkListPeer.java
7285 (getSize): Change native method declaration.
7286 (minimumSize): Pass visible row count into getSize().
7287 (preferredSize): Likewise.
7288 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
7289 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
7290 natural size. Use visible row count to determine the final height
7293 2004-05-21 Graydon Hoare <graydon@redhat.com>
7295 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
7296 (setClip): Minor correction to order of operations.
7298 * javax/swing/JScrollPane.java: Extend sketchy implementation.
7299 * javax/swing/ScrollPaneLayout.java: Likewise.
7300 * javax/swing/JViewPort.java: Likewise.
7301 * javax/swing/ViewportLayout.java: Likewise.
7303 * javax/swing/JComponent.java: Rewrite.
7304 * javax/swing/RepaintManager.java: Likewise.
7306 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
7307 * javax/swing/JList.java
7308 (setSelectedIndices):
7309 (getSelectedIndices):
7310 (getSelectedValues): New functions.
7311 (getPreferredScrollableViewportSize): Return preferred size.
7312 (getScrollableUnitIncrement):
7313 (getScrollableBlockIncrement): Initial implementations.
7314 * javax/swing/JRootPane.java: Clean up slightly.
7319 (isValidateRoot): Add overrides from JComponent.
7320 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
7321 * javax/swing/UIManager.java (getDimension): Return the dimension.
7323 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
7324 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
7325 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
7326 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
7327 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
7328 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
7329 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
7330 * javax/swing/plaf/basic/BasicRootPaneUI.java:
7331 Likewise, and set background.
7332 * javax/swing/plaf/basic/BasicListUI.java:
7333 Likewise, and improve a bit.
7334 * javax/swing/plaf/basic/BasicScrollBarUI.java:
7335 Likewise, and adjust calculations.
7336 * javax/swing/plaf/basic/BasicViewportUI.java:
7337 Likewise, and improve a bit.
7338 * javax/swing/plaf/basic/BasicLookAndFeel.java
7339 (Button.margin): Shrink.
7341 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
7342 Hack to set horizontal always, workaround pango.
7344 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
7345 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
7346 Synchronize more often, check cairo status after ops,
7347 handle changes to cairo pattern API, check for disposal.
7349 2004-05-21 Olga Rodimina <rodimina@redhat.com>
7351 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7352 (BasicMenuItemUI): Create propertyChangeListener.
7353 (getPath):Implemented.
7354 (installListeners): Add propertyChangeListener to menuItem.
7355 (uninstallListeners): Remove propertyChangeListener from menuItem.
7356 (update): Implemented.
7357 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
7358 (mouseEntered): Take insets of popup menu into account when
7359 calculating position of popup menu.
7361 2004-05-18 Olga Rodimina <rodimina@redhat.com>
7363 * Makefile.am: Added new file.
7364 * Makefile.in: Regenerate.
7365 * javax/swing/JMenuBar.java:
7366 Started implementation.
7367 * javax/swing/JPopupMenu.java:
7368 (setVisible): Fixed location of lightweight/mediumweight
7370 (show): Fixed location of PopupMenu.
7371 * javax/swing/plaf/basic/BasicMenuBarUI.java:
7372 New file. UI Delegate for JMenuBar.
7373 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
7374 (mouseEntered): Corrected position of the submenu.
7376 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
7378 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
7379 to _gtk_accel_group_attach.
7380 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
7383 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
7384 package access. Don't override setFont.
7385 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
7386 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
7387 gtkWidgetRequestFocus package access.
7388 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
7390 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
7391 Give gtkWidgetRequestFocus package access.
7392 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
7393 gtkWidgetRequestFocus package access. Don't override setFont.
7394 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
7396 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
7397 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
7399 (gtkSetFont): Likewise.
7400 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
7402 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
7403 (gtkSetFont): Whitespace fix.
7405 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7406 (gtkWidgetSetUsize): Remove method.
7408 2004-05-18 David Jee <djee@redhat.com>
7410 * java/awt/image/MemoryImageSource.java
7411 (newPixels(int,int,int,int,boolean)): Set only the specified
7412 rectangle of pixels.
7413 (newPixels(byte[],ColorModel,int,int)): Implement.
7414 (newPixels(int[],ColorModel,int,int)): Implement.
7416 2004-05-18 Olga Rodimina <rodimina@redhat.com>
7418 * Makefile.am: Added new file.
7419 * Makefile.in: Regenerate.
7420 * javax/swing/JMenu.java: Started
7422 * javax/swing/JPopupMenu.java:
7423 (insert): If specified index is -1, then
7424 add component at the end.
7425 (isPopupTrigger): Reimplemented.
7426 (JPopupMenu.LightWeightPopup): setBounds
7427 of the lightWeightPopup before adding it
7429 (javax/swing/plaf/basic/BasicIconFactory.java):
7430 (getMenuArrowIcon): Implemented.
7431 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7432 (getPreferredSize): Add size of the arrow icon
7433 if this menu item is instance of JMenu.
7434 (paintMenuItem): Paint arrow icon if this
7435 menu item is a submenu.
7436 * javax/swing/plaf/basic/BasicMenuUI.java:
7437 New File. UI Delegate for JMenu.
7439 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
7441 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
7442 Post KEY_TYPED events.
7443 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
7444 (generates_key_typed_event): Remove function.
7446 2004-05-17 Olga Rodimina <rodimina@redhat.com>
7448 * javax/swing/JRootPane.java
7449 (JRootPane.RootLayout): Reimplemented to
7450 set bounds of contentPane and menuBar.
7451 (setJMenuBar): Add menu bar to the layered pane.
7452 (createLayeredPane): Set layout of layeredPane
7454 * javax/swing/JLayeredPane.java:
7455 (addImpl): Calculate index of the component in the
7456 layeredPane according to the specified position within
7459 2004-05-17 David Jee <djee@redhat.com>
7461 * gnu/java/awt/peer/gtk/GtkImagePainter.java
7462 (setPixels): Change color model to the default model after
7464 * java/awt/image/MemoryImageSource.java
7465 (newPixels): Set only the specified rectangle of pixels.
7467 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
7469 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
7470 -l-java-beans -l-javax-accessibility -l-javax-swing.
7472 * java/awt/AWTEvent.java (toString): Print source's name rather
7473 than the source itself.
7475 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
7477 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
7479 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
7480 (gdk_color_to_java_color): New function.
7481 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
7483 2004-05-12 David Jee <djee@redhat.com>
7485 * java/awt/image/RGBImageFilter.java:
7486 Initialize origmodel as null.
7487 (makeColor): Fix pixel component order.
7488 (filterRGBPixels): Fix pixel iteration.
7489 (setPixels): Add extra checks for index color model. Convert pixels
7490 to default color model if necessary.
7491 (convertColorModelToDefault): New override method for byte pixels.
7492 (convertColorModelToDefault): For int pixels, fix pixel iteration.
7493 (makeColorbyDefaultCM): New override method for byte pixels.
7494 (makeColorbyDefaultCM): For int pixel, add color model as argument.
7495 (makeColor): Fix pixel component order.
7497 2004-05-11 Kim Ho <kho@redhat.com>
7499 * javax/swing/Box.java:
7500 Comment out more parts of Box.Filler.
7502 2004-05-11 Kim Ho <kho@redhat.com>
7504 * javax/swing/Box.java:
7505 Remove reference to AccessibleAWTComponent so
7508 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
7510 * gnu/java/awt/peer/gtk/GtkListPeer.java,
7511 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
7512 implementation of list peer to use GtkTreeView instead of
7513 deprecated GtkCList.
7515 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
7517 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
7518 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
7519 (handleEvent): Remove keyChar argument to
7520 gtkWidgetDispatchKeyEvent calls.
7521 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
7523 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
7524 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
7525 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
7528 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
7530 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
7531 (gtkWidgetRequestFocus): Mark protected.
7532 (GtkComponentPeer): Only set the peer's bounds if its component
7534 * java/awt/Component.java (static): Set the default keyboard
7536 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
7537 requestFocusInWindow(temporary)): Don't request focus if the
7538 component is not showing. Get tree lock before traversing
7539 component hierarchy.
7540 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
7541 Only set the global focus owner if it is not a Window.
7542 (processKeyEvent): Consume keystrokes associated with the focus
7543 traversal keystroke.
7544 (focusPreviousComponent, focusNextComponent, upFocusCycle,
7545 downFocusCycle): Call requestFocusInWindow instead of
7547 * java/awt/EventDispatchThread.java (run): Move setting of
7548 default keyboard focus manager to Component.java.
7549 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7550 (awt_keycode_to_keysym): New function.
7551 (gtkWidgetDispatchKeyEvent): Finish implementation.
7552 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
7553 (pre_event_handler): Add FIXME comment.
7555 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
7556 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
7557 (gtkWidgetRequestFocus): New method.
7558 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
7559 disable Tab and Shift-Tab keystrokes.
7560 (addNotify, appendText, insertText, replaceText): Simplify peer
7562 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
7563 (connectSignals): Remove connections to "commit" signals.
7564 Remove C++-style comments.
7566 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
7567 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
7568 (handleEvent): Activate GTK button when the space bar key is
7570 (gtkActivate): New method.
7572 2004-05-06 David Jee <djee@redhat.com>
7574 * java/awt/image/CropImageFilter.java
7575 (setPixels): Implement for byte array pixels.
7576 * java/awt/image/ReplicateScaleFilter.java
7577 (setPixels): Implement for byte array pixels.
7578 (replicatePixels): Overload for byte array pixels.
7580 2004-05-06 Kim Ho <kho@redhat.com>
7582 * javax/swing/Box.java:
7583 (getAccessibleContext): Return an instance of the
7586 2004-05-05 David Jee <djee@redhat.com>
7588 * gnu/java/awt/peer/gtk/GdkGraphics.java
7589 (drawImage): When component is null, use SystemColor.window as
7590 the default bgcolor.
7591 * gnu/java/awt/peer/gtk/GtkImage.java
7592 (setPixels): We can avoid iterating through the pixel rows only
7594 * java/awt/Image.java
7595 (getScaledInstance): Partially implement.
7596 * java/awt/image/CropImageFilter.java
7597 (setProperties): Fix "filter" property.
7598 (setPixels): Implement.
7599 * java/awt/image/ReplicateScaleFilter.java
7600 (setDimensions): Use scaled dimensions.
7601 (setPixels): Implement.
7602 (replicatePixels): New method.
7604 2004-05-05 David Jee <djee@redhat.com>
7606 * gnu/java/awt/peer/gtk/GtkImagePainter.java
7607 (convertPixels): If either pixels or model is null, return null.
7608 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
7609 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
7610 is null, do nothing and return.
7612 2004-05-03 Kim Ho <kho@redhat.com>
7614 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
7615 (getGraphics): Like GtkFramePeer, the Graphics
7616 object needs to be translate to account for
7618 (postMouseEvent): New method. Account for
7620 (postExposeEvent): ditto.
7621 * javax/swing/Box.java: Stubbed.
7622 * javax/swing/JDialog.java: Ran through jalopy
7624 (JDialog): Call SwingUtilities' getOwnerFrame
7626 (setLayout): Check isRootPaneCheckingEnabled
7627 * javax/swing/JOptionPane.java: Re-implemented.
7628 * javax/swing/SwingUtilities.java:
7629 (getOwnerFrame): Static method to grab a default
7630 owner frame for Dialogs that don't specify owners.
7631 * javax/swing/event/SwingPropertyChangeSupport.java:
7632 (firePropertyChange): Fix early exit condition.
7633 * javax/swing/plaf/basic/BasicLabelUI.java:
7634 (paint): Avoid painting text if it is null
7636 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
7639 2004-05-03 Olga Rodimina <rodimina@redhat.com>
7641 * Makefile.am: Added new file.
7642 * Makefile.in: Regenerate.
7643 * javax/swing/JPopupMenu.java:
7644 Started implementation.
7645 * javax/swing/JWindow.java
7646 (JWindow): call super() if parent for window
7648 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
7649 New File. UI Delegate for JPopupMenu.
7651 2004-04-30 Olga Rodimina <rodimina@redhat.com>
7653 * javax/swing/JApplet.java: Indicated that JApplet
7654 implements RootPaneContainer and made method of this
7656 * javax/swing/JFrame.java: Ditto.
7657 * javax/swing/JWindow.java: Ditto.
7659 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
7661 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7662 (nativeSetBounds): Call gdk_window_move in addition to
7665 * java/applet/Applet.java (preferredSize): Call parent's
7666 preferredSize if the applet stub is null.
7667 (minimumSize): Likewise for parent's minimumSize.
7669 2004-04-27 Olga Rodimina <rodimina@redhat.com>
7671 * javax/swing/JMenuItem.java
7672 (createActionPropertyChangeListener): Implemented.
7673 (processMouseEvent): Ditto.
7674 (fireMenuDragMouseEntered): Ditto.
7675 (fireMenuDragMouseExited): Ditto.
7676 (fireMenuDragMouseDragged): Ditto.
7677 (fireMenuDragMouseReleased): Ditto.
7678 (menuSelectionChanged): Ditto.
7679 (getSubElements): Ditto.
7680 (getComponent): Ditto.
7681 (addMenuDragMouseListener): Ditto.
7682 (removeMenuDragMouseListener):Ditto.
7683 (addMenuKeyListener): Ditto.
7684 (removeMenuKeyListener): Ditto.
7685 * javax/swing/plaf/basic/BasicMenuItemUI.java
7686 (doClick): Imlemented.
7687 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
7688 Don't handle mouse events here. Pass them to
7689 MenuSelectionManager.
7691 2004-04-26 Olga Rodimina <rodimina@redhat.com>
7692 Used correct version of jalopy configuration
7693 file to fix style in the files below.
7695 2004-04-26 Olga Rodimina <rodimina@redhat.com>
7697 * javax/swing/JCheckBoxMenuItem.java:
7698 Fixed style and removed unnecessary comments.
7699 * javax/swing/JMenuItem.java: Ditto.
7700 * javax/swing/JRadioButtonMenuItem.java: Ditto.
7701 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
7702 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
7703 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
7705 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
7707 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
7710 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
7712 * java/awt/ContainerOrderFocusTraversalPolicy.java
7713 (getComponentAfter): Start from current component and work up
7714 the component hierarchy until an acceptable component is found.
7715 Synchronize on tree lock.
7716 (getComponentBefore): Likewise.
7718 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
7720 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
7721 focus-related debugging messages.
7722 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
7723 * java/awt/EventDispatchThread.java: Likewise.
7724 * java/awt/KeyboardFocusManager.java: Likewise.
7725 * java/awt/Window.java: Likewise.
7726 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
7727 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
7729 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
7730 new C++-style comments to C-style comments.
7731 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
7733 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
7734 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7735 (handleEvent): Dispatch key press and key release events to
7737 (requestFocus): Post a FOCUS_GAINED event to the event queue.
7738 (gtkWidgetRequestFocus): New method.
7739 (gtkWidgetDispatchKeyEvent): Likewise.
7740 * java/awt/Component.java (requestFocus, requestFocus(boolean),
7741 requestFocusInWindow, requestFocusInWindow(boolean),
7742 getFocusCycleRootAncestor, nextFocus, transferFocus,
7743 transferFocusBackward, transferFocusUpCycle, hasFocus,
7744 isFocusOwner): Implement and document focus-handling methods.
7745 (setFocusTraversalKeys): Inherit focus traversal keys when
7746 keystrokes argument is null. Fix focus-handling documentation
7748 * java/awt/Container.java (setFocusTraversalKeys,
7749 getFocusTraversalKeys, areFocusTraversalKeysSet,
7750 isFocusCycleRoot, setFocusTraversalPolicy,
7751 getFocusTraversalPolicy, isFocusTraversalPolicySet,
7752 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
7753 Implement and document focus-handling methods.
7754 (transferFocusBackward): Remove method.
7755 (readObject, writeObject): Implement and document serialization
7757 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
7759 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
7761 * java/awt/DefaultKeyboardFocusManager.java: Implement and
7763 * java/awt/EventDispatchThread.java (run): Set default keyboard
7764 focus manager. Attempt to dispatch each event to the keyboard
7765 focus manager before normal dispatch.
7766 * java/awt/KeyboardFocusManager.java: Implement and partially
7768 * java/awt/Window.java (Window): Set focusCycleRoot to true.
7769 (show): Focus initial component when window is shown for the
7771 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
7772 (pre_event_handler): Replace complex key press and key release
7773 logic with simple callbacks into GtkComponentPeer.
7774 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
7776 2004-04-21 Olga Rodimina <rodimina@redhat.com>
7778 * javax/swing/MenuSelectionManager.java
7779 (componentForPoint): Added new method.
7780 (defaultManager): New Method. Implemented.
7781 (getSelectedPath): Ditto.
7782 (isComponentPartOfCurrentMenu): Ditto.
7783 (processKeyEvent): Added new method.
7784 (processMouseEvent): New Method. Implemented.
7785 (setSelectedPath): Ditto.
7788 2004-04-19 Kim Ho <kho@redhat.com>
7790 * java/awt/Container.java:
7791 (remove): Set the component's parent to null.
7792 (getComponentAt): Implement.
7793 * javax/swing/JComponent.java:
7794 (JComponent): Initialize defaultLocale
7795 (getDefaultLocale): Implement.
7796 (setDefaultLocale): ditto.
7797 * javax/swing/JSlider.java:
7798 (JSlider): Fix calculation of value.
7799 * javax/swing/JSplitPane.java: Implement.
7800 * javax/swing/plaf/basic/BasicLookAndFeel.java:
7801 Change SplitPane's default divider size.
7802 * javax/swing/plaf/basic/BasicScrollBarUI.java:
7803 (paint): Remove unused code.
7804 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
7805 Added comments and ran through jalopy.
7806 (setBasicSplitPaneUI): Get reference to hidden divider
7807 and set up one touch buttons if necessary.
7808 (setBorder): Fire propertyChangeEvent only if
7809 borders are different.
7810 (getPreferredSize): Defer to layout manager.
7811 (propertyChange): Implement.
7812 (oneTouchExpandableChanged): ditto.
7813 (createLeftOneTouchButton): Use BasicArrowButton.
7814 (createRightOneTouchButton): ditto.
7815 (moveDividerTo): New method. Moves the divider
7816 to a set location based on the last divider location.
7817 (BasicSplitPaneDivider::MouseHandler): Implement.
7818 (BasicSplitPaneDivider::OneTouchButton): Removed.
7819 (BasicSplitPaneDivider::DragController): Implement.
7820 (BasicSplitPaneDivider::VerticalDragController):
7822 (BasicSplitPaneDivider::DividerLayout): ditto.
7823 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
7824 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
7825 (calculateLayoutInfo): Don't show component if it's
7827 (paintTab): Fix title paint logic.
7829 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
7832 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
7833 (setStartRule,setEndRule): Don't take abs of day number.
7834 (getOffset): Clarify docs. Add argument checks.
7835 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
7836 (equals,hasSameRules,toString,readObject): Use startTimeMode and
7838 * testsuite/libjava.mauve/xfails
7839 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
7841 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
7843 Layout interfaces during preparation, not initialization.
7844 * java/lang/natClass.cc (initializeClass): Move
7845 _Jv_LayoutInterfaceMethods call...
7846 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
7848 2004-05-19 Anthony Green <green@localhost.localdomain>
7850 * Makefile.am (awt_java_source_files): Remove javax.rmi and
7852 * Makefile.in: Rebuilt.
7853 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
7854 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
7855 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
7856 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
7857 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
7858 gnu/javax/rmi/CORBA/DelegateFactory.java,
7859 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
7860 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
7861 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
7862 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
7863 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
7864 gnu/javax/rmi/PortableServer.java: Remove files.
7866 2004-05-19 Anthony Green <green@redhat.com>
7868 * Makefile.am: Define JAVA_EXT_DIRS.
7869 * Makefile.in: Rebuilt.
7870 * java/lang/natRuntime.cc (insertSystemProperties): Set
7871 java.ext.dirs property.
7873 2004-05-16 Mark Wielaard <mark@klomp.org>
7875 * java/io/Writer.java (Writer(Object)): Check for null lock object.
7877 2004-05-15 Mark Wielaard <mark@klomp.org>
7879 * doc/cni.sgml: Removed, merged into gcj.texi.
7881 2004-05-15 Mark Wielaard <mark@klomp.org>
7883 * Makefile.am (ordinary_java_source_files): Add new javax.print
7885 * Makefile.in: Regenerated.
7887 2004-05-15 Michael Koch <konqueror@gmx.de>
7889 * javax/print/attribute/standard/DateTimeAtCompleted.java,
7890 javax/print/attribute/standard/DateTimeAtCreation.java,
7891 javax/print/attribute/standard/DateTimeAtProcessing.java,
7892 javax/print/attribute/standard/DocumentName.java,
7893 javax/print/attribute/standard/JobHoldUntil.java,
7894 javax/print/attribute/standard/JobImpressionsCompleted.java,
7895 javax/print/attribute/standard/JobMessageFromOperator.java,
7896 javax/print/attribute/standard/JobName.java,
7897 javax/print/attribute/standard/JobOriginatingUserName.java,
7898 javax/print/attribute/standard/JobPriority.java,
7899 javax/print/attribute/standard/JobPrioritySupported.java,
7900 javax/print/attribute/standard/NumberOfInterveningJobs.java,
7901 javax/print/attribute/standard/OutputDeviceAssigned.java,
7902 javax/print/attribute/standard/PrinterInfo.java,
7903 javax/print/attribute/standard/PrinterLocation.java,
7904 javax/print/attribute/standard/PrinterMakeAndModel.java,
7905 javax/print/attribute/standard/PrinterMessageFromOperator.java,
7906 javax/print/attribute/standard/PrinterName.java,
7907 javax/print/attribute/standard/QueuedJobCount.java,
7908 javax/print/attribute/standard/RequestingUserName.java:
7909 Fixed javadocs all over.
7911 2004-05-15 Michael Koch <konqueror@gmx.de>
7913 * javax/print/DocFlavor.java,
7914 javax/print/attribute/standard/ColorSupported.java,
7915 javax/print/attribute/standard/Compression.java,
7916 javax/print/attribute/standard/CopiesSupported.java,
7917 javax/print/attribute/standard/Fidelity.java,
7918 javax/print/attribute/standard/Finishings.java,
7919 javax/print/attribute/standard/JobImpressionsSupported.java,
7920 javax/print/attribute/standard/JobKOctetsSupported.java,
7921 javax/print/attribute/standard/JobMediaSheetsSupported.java,
7922 javax/print/attribute/standard/JobSheets.java,
7923 javax/print/attribute/standard/JobState.java,
7924 javax/print/attribute/standard/JobStateReason.java,
7925 javax/print/attribute/standard/JobStateReasons.java,
7926 javax/print/attribute/standard/Media.java,
7927 javax/print/attribute/standard/MediaSizeName.java,
7928 javax/print/attribute/standard/MultipleDocumentHandling.java,
7929 javax/print/attribute/standard/NumberUpSupported.java,
7930 javax/print/attribute/standard/OrientationRequested.java,
7931 javax/print/attribute/standard/PDLOverrideSupported.java,
7932 javax/print/attribute/standard/PageRanges.java,
7933 javax/print/attribute/standard/PresentationDirection.java,
7934 javax/print/attribute/standard/PrintQuality.java,
7935 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
7936 javax/print/attribute/standard/PrinterMoreInfo.java,
7937 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
7938 javax/print/attribute/standard/PrinterResolution.java,
7939 javax/print/attribute/standard/PrinterState.java,
7940 javax/print/attribute/standard/PrinterStateReason.java,
7941 javax/print/attribute/standard/PrinterStateReasons.java,
7942 javax/print/attribute/standard/PrinterURI.java,
7943 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
7944 javax/print/attribute/standard/Severity.java,
7945 javax/print/attribute/standard/SheetCollate.java,
7946 javax/print/attribute/standard/Sides.java:
7947 Added serialVersionUID and removed final keyword where it doenst
7950 2004-05-15 Michael Koch <konqueror@gmx.de>
7952 * javax/print/PrintServiceLookup.java: New file.
7954 2004-05-15 Michael Koch <konqueror@gmx.de>
7956 * javax/print/DocFlavor.java:
7957 Implemented all flavor classes.
7959 2004-05-15 Michael Koch <konqueror@gmx.de>
7961 * javax/print/attribute/standard/ColorSupported.java,
7962 javax/print/attribute/standard/Compression.java,
7963 javax/print/attribute/standard/CopiesSupported.java,
7964 javax/print/attribute/standard/Fidelity.java,
7965 javax/print/attribute/standard/Finishings.java,
7966 javax/print/attribute/standard/JobImpressionsSupported.java,
7967 javax/print/attribute/standard/JobKOctetsSupported.java,
7968 javax/print/attribute/standard/JobMediaSheetsSupported.java,
7969 javax/print/attribute/standard/JobSheets.java,
7970 javax/print/attribute/standard/JobState.java,
7971 javax/print/attribute/standard/JobStateReason.java,
7972 javax/print/attribute/standard/JobStateReasons.java,
7973 javax/print/attribute/standard/Media.java,
7974 javax/print/attribute/standard/MediaSizeName.java,
7975 javax/print/attribute/standard/MultipleDocumentHandling.java,
7976 javax/print/attribute/standard/NumberUpSupported.java,
7977 javax/print/attribute/standard/OrientationRequested.java,
7978 javax/print/attribute/standard/PDLOverrideSupported.java,
7979 javax/print/attribute/standard/PageRanges.java,
7980 javax/print/attribute/standard/PresentationDirection.java,
7981 javax/print/attribute/standard/PrintQuality.java,
7982 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
7983 javax/print/attribute/standard/PrinterMoreInfo.java,
7984 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
7985 javax/print/attribute/standard/PrinterResolution.java,
7986 javax/print/attribute/standard/PrinterState.java,
7987 javax/print/attribute/standard/PrinterStateReason.java,
7988 javax/print/attribute/standard/PrinterStateReasons.java,
7989 javax/print/attribute/standard/PrinterURI.java,
7990 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
7991 javax/print/attribute/standard/Severity.java,
7992 javax/print/attribute/standard/SheetCollate.java,
7993 javax/print/attribute/standard/Sides.java: New files.
7995 2004-05-15 Michael Koch <konqueror@gmx.de>
7997 * javax/print/Doc.java
7998 (getPrintData): Throws IOException.
7999 (getReaderForText): Likewise.
8000 (getStreamForBytes): Likewise.
8001 * javax/print/DocFlavor.java:
8002 Fixed filename in copyright.
8003 (serialVersionUID): New field.
8004 * javax/print/ServiceUIFactory.java:
8005 Made all constants final.
8006 * javax/print/AttributeException.java
8007 javax/print/MultiDoc.java
8008 javax/print/MultiDocPrintJob.java
8009 javax/print/MultiDocPrintService.java
8010 javax/print/StreamPrintService.java
8011 javax/print/URIException.java: New files.
8012 * javax/print/Makefile.am
8013 (EXTRA_DIST): Added all new files.
8015 2004-05-15 Michael Koch <konqueror@gmx.de>
8017 * javax/print/attribute/standard/Copies.java,
8018 javax/print/attribute/standard/DateTimeAtCompleted.java,
8019 javax/print/attribute/standard/DateTimeAtCreation.java,
8020 javax/print/attribute/standard/DateTimeAtProcessing.java,
8021 javax/print/attribute/standard/DocumentName.java,
8022 javax/print/attribute/standard/JobHoldUntil.java,
8023 javax/print/attribute/standard/JobImpressions.java,
8024 javax/print/attribute/standard/JobImpressionsCompleted.java,
8025 javax/print/attribute/standard/JobKOctets.java,
8026 javax/print/attribute/standard/JobKOctetsProcessed.java,
8027 javax/print/attribute/standard/JobMediaSheets.java,
8028 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
8029 javax/print/attribute/standard/JobMessageFromOperator.java,
8030 javax/print/attribute/standard/JobName.java,
8031 javax/print/attribute/standard/JobOriginatingUserName.java,
8032 javax/print/attribute/standard/JobPriority.java,
8033 javax/print/attribute/standard/JobPrioritySupported.java,
8034 javax/print/attribute/standard/NumberOfDocuments.java,
8035 javax/print/attribute/standard/NumberOfInterveningJobs.java,
8036 javax/print/attribute/standard/NumberUp.java,
8037 javax/print/attribute/standard/OutputDeviceAssigned.java,
8038 javax/print/attribute/standard/PagesPerMinute.java,
8039 javax/print/attribute/standard/PagesPerMinuteColor.java:
8040 Fixed @return tag all over.
8042 2004-05-15 Michael Koch <konqueror@gmx.de>
8044 * javax/print/attribute/AttributeSetUtilities.java
8045 (verifyCategoryForValue): Fixed typo in javadoc.
8046 * javax/print/attribute/HashAttributeSet.java
8047 (containsKey): Fixed @return tag.
8048 (comtainsValue): Likewise.
8050 * javax/print/attribute/IntegerSyntax.java
8052 * javax/print/attribute/ResolutionSyntax.java
8054 (getCrossFeedResolution): Removed unused code.
8055 (getFeedResolution): Likewise.
8056 * javax/print/attribute/SetOfIntegerSyntax.java
8057 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
8058 (equals): Fixed @return tag.
8059 * javax/print/attribute/TextSyntax.java
8060 (TextSyntax): Take locale into account.
8061 (hashCode): Better implementation.
8063 2004-05-15 Michael Koch <konqueror@gmx.de>
8065 * javax/print/CancelablePrintJob.java,
8066 javax/print/Doc.java,
8067 javax/print/DocFlavor.java,
8068 javax/print/DocPrintJob.java,
8069 javax/print/FlavorException.java,
8070 javax/print/PrintException.java,
8071 javax/print/PrintService.java,
8072 javax/print/ServiceUIFactory.java: New files.
8074 2004-05-15 Mark Wielaard <mark@klomp.org>
8076 * gnu/regexp/CharIndexedReader.java: Removed.
8077 * gnu/regexp/REFilterReader.java: Likewise.
8078 * gnu/regexp/RETokenLookAhead.java: Likewise.
8079 * Makefile.am (ordinary_java_source_files): Remove above classes.
8080 * Makefile.in: Regenerated.
8082 2004-05-14 Tom Tromey <tromey@redhat.com>
8084 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
8085 not `XGraphicsConfiguration.XOffScreenImage'.
8087 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
8089 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
8091 2004-05-14 Steven Augart <augart@watson.ibm.com>
8093 * include/jni.h (_Jv_func): Removed.
8094 (struct JNINativeInterface): Use `void *' for reserved slots.
8095 (struct JNIInvokeInterface): Likewise.
8097 2004-05-11 Michael Koch <konqueror@gmx.de>
8099 * gnu/java/net/natPlainSocketImplPosix.cc
8100 (read): Fixed typo in expression.
8102 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
8104 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
8105 ld_library_additions. Adjust all calls to libjava_invoke to match
8108 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
8109 path to cxxflagslist.
8110 Pass path of libstdc++ to libjava_invoke.
8112 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
8113 libjava_invoke arguments.
8115 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
8117 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
8120 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
8122 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
8123 main binary against the JNI shared library.
8125 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
8127 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
8128 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
8129 (SimpleTimeZone): Tweak docs. Add new variation.
8130 (setStartRule,setEndRule): Add new variations. Use
8131 startTimeMode and endTimeMode.
8133 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
8135 * java/util/Calendar.java (getActualMinimum,
8136 getActualMaximum): Remove abstract. Implement.
8138 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
8140 Run the jni tests using the interpreter.
8141 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
8142 options_cxx to shared lib compile command.
8143 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
8144 they are used to link the shared lib, not the main binary.
8145 Use libjava_invoke to run gij.
8147 2004-05-06 Michael Koch <konqueror@gmx.de>
8149 * java/util/logging/Level.java
8150 (parse): Use == instead of String.equals().
8152 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
8154 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
8155 verify_field_signature and verify_method_signature, not
8156 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
8157 (_Jv_ClassReader::handleField): Likewise.
8158 (_Jv_ClassReader::handleMethod): Likewise.
8160 2004-05-06 Michael Koch <konqueror@gmx.de>
8162 * javax/swing/table/TableColumn.java:
8165 2004-05-06 Michael Koch <konqueror@gmx.de>
8167 * javax/imageio/spi/ImageReaderWriterSpi.java
8168 (ImageReaderWriterSpi): Made it public.
8169 * javax/imageio/stream/ImageInputStream.java:
8172 2004-05-06 Michael Koch <konqueror@gmx.de>
8174 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
8177 2004-05-06 Michael Koch <konqueror@gmx.de>
8179 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
8180 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
8182 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
8183 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
8184 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
8185 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
8186 their own source file.
8187 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
8188 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
8189 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
8190 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
8191 (create): Define variable on top of function.
8192 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
8193 (menu_pos): Prototyped.
8194 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8195 (setTitle): Removed.
8196 * jni/gtk-peer/gthread-jni.c
8197 (gdk_threads_wake): Removed.
8198 * Makefile.am (gtk_c_source_files): Added new files
8199 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
8200 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
8201 * Makefile.in: Regenerated.
8203 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
8205 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
8208 2004-05-05 Mark Wielaard <mark@klomp.org>
8210 * javax/swing/AbstractButton.java: Replace special HTML entities with
8212 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
8213 * javax/swing/DefaultButtonModel.java: Likewise.
8214 * javax/swing/DefaultListModel.java: Likewise.
8215 * javax/swing/JList.java: Likewise.
8216 * javax/swing/JSlider.java: Likewise.
8217 * javax/swing/ListModel.java: Likewise.
8218 * javax/swing/Popup.java: Likewise.
8219 * javax/swing/SwingUtilities.java: Likewise.
8221 2004-05-05 Michael Koch <konqueror@gmx.de>
8223 * javax/swing/AbstractButton.java,
8224 javax/swing/ActionMap.java,
8225 javax/swing/DefaultButtonModel.java,
8226 javax/swing/DefaultListModel.java,
8227 javax/swing/ImageIcon.java,
8228 javax/swing/JComboBox.java,
8229 javax/swing/JComponent.java,
8230 javax/swing/JFrame.java,
8231 javax/swing/JInternalFrame.java,
8232 javax/swing/JMenuBar.java,
8233 javax/swing/JMenuItem.java,
8234 javax/swing/JOptionPane.java,
8235 javax/swing/JProgressBar.java,
8236 javax/swing/JRootPane.java,
8237 javax/swing/JScrollBar.java,
8238 javax/swing/JScrollPane.java,
8239 javax/swing/JSeparator.java,
8240 javax/swing/JSlider.java,
8241 javax/swing/JTabbedPane.java,
8242 javax/swing/JTable.java,
8243 javax/swing/JTextField.java,
8244 javax/swing/JToolBar.java,
8245 javax/swing/JToolTip.java,
8246 javax/swing/JTree.java,
8247 javax/swing/JViewport.java,
8248 javax/swing/JWindow.java,
8249 javax/swing/KeyStroke.java,
8250 javax/swing/LookAndFeel.java,
8251 javax/swing/SwingUtilities.java,
8252 javax/swing/Timer.java,
8253 javax/swing/ToolTipManager.java,
8254 javax/swing/UIDefaults.java,
8255 javax/swing/border/TitledBorder.java,
8256 javax/swing/filechooser/FileSystemView.java,
8257 javax/swing/plaf/basic/BasicButtonListener.java,
8258 javax/swing/plaf/basic/BasicButtonUI.java,
8259 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
8260 javax/swing/plaf/basic/BasicGraphicsUtils.java,
8261 javax/swing/plaf/basic/BasicLabelUI.java,
8262 javax/swing/plaf/basic/BasicMenuItemUI.java,
8263 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
8264 javax/swing/plaf/basic/BasicRootPaneUI.java,
8265 javax/swing/plaf/basic/BasicScrollBarUI.java,
8266 javax/swing/plaf/basic/BasicScrollPaneUI.java,
8267 javax/swing/plaf/basic/BasicSliderUI.java,
8268 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
8269 javax/swing/plaf/basic/BasicToggleButtonUI.java,
8270 javax/swing/table/JTableHeader.java,
8271 javax/swing/text/AbstractDocument.java,
8272 javax/swing/text/DefaultCaret.java,
8273 javax/swing/text/StyledEditorKit.java,
8274 javax/swing/tree/DefaultTreeCellEditor.java:
8277 2004-05-05 Michael Koch <konqueror@gmx.de>
8279 * java/util/prefs/AbstractPreferences.java
8280 (AbstractPreferences): Added parenthesis for clarity.
8281 Closes classpath bug #7940.
8283 2004-05-05 Tom Tromey <tromey@redhat.com>
8285 * javax/naming/CompoundName.java (endsWith): Look at correct
8286 element of source name.
8288 2004-05-05 Mark Wielaard <mark@klomp.org>
8290 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
8291 * java/util/HashMap.java (rehash): Add entry at start of bucket.
8293 2004-05-05 Tom Tromey <tromey@redhat.com>
8295 * java/io/BufferedReader.java (skip): Removed unused
8298 2004-05-05 Michael Koch <konqueror@gmx.de>
8300 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
8302 2004-05-05 Dalibor Topic <robilad@kaffe.org>
8304 * java/text/AttributedString.java,
8305 java/text/AttributedStringIterator.java,
8306 java/text/Collator.java,
8307 java/text/DecimalFormatSymbols.java,
8308 java/text/NumberFormat.java,
8309 java/text/RuleBasedCollator.java:
8312 2004-05-05 Tom Tromey <tromey@redhat.com>
8314 * java/text/Format.java: Cleaned up imports.
8315 * java/text/DecimalFormat.java: Cleaned up imports.
8316 * java/security/SecureRandom.java: Cleaned up imports.
8317 (SecureRandom): Removed unused variable.
8318 * java/security/UnresolvedPermission.java: Cleaned up imports.
8319 * java/util/Date.java (parse): Removed unused variable.
8320 * java/util/ResourceBundle.java: Cleaned up imports.
8321 (getBundle): Removed unused variable.
8322 (tryBundle): Likewise.
8323 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
8325 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
8327 * java/text/SimpleDateFormat.java:
8328 (formatWithAttribute): New method. It implements
8329 the formatting process with attributes.
8330 (format): Use formatWithAttribute.
8331 (formatToCharacterIterator): New method. Use
8332 formatWithAttribute.
8334 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
8336 * java/text/MessageFormat.java:
8337 (class Field): New class.
8338 (formatToCharacterIterator): New method.
8339 (format): Use formatInternal now.
8340 (formatInternal): New method. String formatter should
8341 be done here (with attributes). Attributes merging supported.
8342 (parse): More documentation.
8343 (getFormatsByArgumentIndex): New method.
8344 (setFormatByArgumentIndex): New method.
8345 (setFormatsByArgumentIndex): New method.
8347 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
8349 * java/text/DecimalFormat.java
8350 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
8351 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
8352 (parse): Fixed handling of exponentiation notation and grouping.
8354 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
8356 * java/text/DecimalFormat.java
8357 (scanFix): Build attribute array. Fixed error reporting.
8358 (applyPatternWithSymbols): Store attributes for the prefix and
8360 (formatInternal): New method. Changed the way the string is
8361 computed. Implemented attributes. Cleant up rounding in
8362 exponential notation.
8363 (format): Use formatInternal.
8364 (formatToCharacterIterator): New method.
8365 (exponentRound, negativePrefixRanges, positivePrefixRanges,
8366 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
8367 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
8370 2004-05-04 Dalibor Topic <robilad@kaffe.org>
8372 * java/security/interfaces/DSAKeyPairGenerator.java,
8373 java/security/interfaces/DSAPrivateKey.java,
8374 java/security/interfaces/DSAPublicKey.java,
8375 java/security/interfaces/RSAPrivateKey.java,
8376 java/security/interfaces/RSAPublicKey.java:
8379 2004-05-04 Michael Koch <konqueror@gmx.de>
8381 * java/nio/ByteBuffer.java,
8382 java/nio/CharBuffer.java,
8383 java/nio/DoubleBuffer.java,
8384 java/nio/FloatBuffer.java,
8385 java/nio/IntBuffer.java,
8386 java/nio/LongBuffer.java,
8387 java/nio/ShortBuffer.java:
8388 (compareTo): Fixed bogus implementation in all buffer classes.
8390 2004-05-04 Ingo Proetel <proetel@aicas.com>
8392 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
8393 32 bit pixels not 8 bit pixels.
8394 (isCompatibleRaster): Added javadoc comment.
8396 2004-05-04 Ingo Proetel <proetel@aicas.com>
8398 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
8401 2004-05-04 Ingo Proetel <proetel@aicas.com>
8403 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
8404 (getColorModel): Return the actual color model.
8405 (getRaster): Implemented.
8406 (ColorRaster): New inner class.
8407 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
8409 * java/awt/Color.java (<init>): Make exception more verbose.
8410 (createContext): Use ColorModel when creating a PaintContext.
8412 2004-05-04 Michael Koch <konqueror@gmx.de>
8414 * gnu/java/text/CharacterBreakIterator.java
8415 (previous): Removed unused variable.
8417 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
8419 * gnu/java/text/FormatBuffer.java,
8420 gnu/java/text/AttributedFormatBuffer.java,
8421 gnu/java/text/StringFormatBuffer.java: New classes to implement
8422 attributed iterators in java.text.
8423 * gnu/java/text/FormatCharacterIterator.java: Moved
8424 from java/text as it is an internal class.
8425 * java/text/FormatCharacterIterator.java: Removed.
8426 * java/text/Format.java:
8427 Import gnu.java.text.FormatCharacterIterator.
8428 * Makefile.am (java_source_files): Added new files.
8429 * Makefile.in: Regenerated.
8432 2004-05-04 Mark Wielaard <mark@klomp.org>
8434 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
8436 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
8438 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
8439 * Makefile.in: Rebuilt.
8441 2004-05-03 Mark Wielaard <mark@klomp.org>
8443 * gnu/java/security/der/DERReader.java: Call static methods staticly.
8444 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
8446 (set(String, String, int, String, String, String, String, String)):
8447 Assign this.file to path or path + "?" + query.
8448 * java/util/Arrays.java: Call static methods staticly.
8449 * java/util/zip/ZipEntry.java: Likewise.
8450 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
8451 dir to this.direction.
8452 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
8453 Assign static field only once.
8454 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
8456 2004-05-03 Mark Wielaard <mark@klomp.org>
8458 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
8459 unused variables hScrollbarHeight and vScrollbarWidth.
8460 (preferredSize): Likewise.
8461 * gnu/java/security/provider/DSAParameters.java (engineToString):
8462 Removed unused call to System.getProperty("line.seperator");
8463 * java/security/Security.java (loadProviders): Return result.
8465 2004-05-03 Tom Tromey <tromey@redhat.com>
8467 * java/net/URLStreamHandler.java (toExternalForm): Removed
8470 * java/math/BigDecimal.java (divide): Removed unused variable.
8471 * java/lang/Throwable.java: Cleaned up imports.
8472 * java/lang/ClassLoader.java: Cleaned up imports.
8473 * java/io/FilePermission.java (implies): Removed unused
8475 * java/awt/TextComponent.java: Removed unused import.
8476 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
8477 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
8478 * gnu/java/text/WordBreakIterator.java: Removed unused import.
8479 * gnu/java/text/SentenceBreakIterator.java: Removed unused
8481 * gnu/java/text/LineBreakIterator.java: Removed unused import.
8482 * gnu/java/text/CharacterBreakIterator.java: Removed
8484 * gnu/java/security/provider/DSAKeyPairGenerator.java:
8486 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
8487 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
8489 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
8490 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
8491 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
8492 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
8493 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
8494 (lookupProviders): Removed unused variable.
8495 (loadNextServiceProvider): Likewise.
8496 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
8498 2004-05-03 Michael Koch <konqueror@gmx.de>
8500 Fixes PR libgcj/14695:
8501 * java/net/NetworkInterface.java
8502 (getByName): Return null when no interface was found.
8504 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
8505 Tom Tromey <tromey@redhat.com>
8507 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
8508 additional option "-Wmissing-prototypes" for compiling C sources.
8509 Print actual filename for pass/fail rather than $name.c.
8510 * testsuite/libjava.jni/PR15133.java: New testcase file.
8511 * testsuite/libjava.jni/PR15133.c: Likewise.
8512 * testsuite/libjava.jni/PR15133.out: Likewise.
8514 2004-04-30 Roger Sayle <roger@eyesopen.com>
8516 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
8519 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
8521 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
8522 limit the maximum heap size to avoid unnecessary thrashing.
8524 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
8526 * java/text/CollationElementIterator.java (reset): Reset
8527 lookahead variables.
8529 2004-04-23 Mark Wielaard <mark@klomp.org>
8531 * jni/classpath/jcl.c: Changed C++ comments into C comments.
8533 2004-04-23 Dalibor Topic <robilad@kaffe.org>
8535 * java/sql/DriverManager.java:
8538 2004-04-23 Michael Koch <konqueror@gmx.de>
8541 (hashcode): Don't initialize with default value explicitely.
8542 (getContent): Removed redundant "final" keyword.
8543 (openStream): Likewise.
8544 (getURLStreamHandler): Fixed coding style.
8545 * java/net/URLConnection.java
8546 (defaultAllowUserInteraction): Don't initialize with default value
8548 (connected): Likewise.
8549 (doOutput): Likewise.
8550 (ifModifiedSince): Likewise.
8551 (dateformats_initialized): Likewise.
8552 (setURLStreamHander): Use StreamTokenizer where it belongs to.
8554 2004-04-23 Michael Koch <konqueror@gmx.de>
8556 * gnu/java/nio/channels/FileChannelImpl.java
8557 (SET, CUR): Unused, removed.
8558 (read): Implement here directly.
8559 (implRead): Removed.
8560 (write): Implement here directly.
8561 (implWrite): Removed.
8563 2004-04-23 Dalibor Topic <robilad@kaffe.org>
8565 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
8566 javax/rmi/CORBA/Stub.java,
8567 javax/rmi/CORBA/Util.java,
8568 javax/rmi/CORBA/ValueHandler.java,
8569 javax/rmi/CORBA/ValueHandler.java,
8570 javax/rmi/PortableRemoteObject.java:
8573 2004-04-23 Dalibor Topic <robilad@kaffe.org>
8575 * java/util/jar/JarFile.java,
8576 java/util/jar/JarInputStream.java,
8577 java/util/jar/JarOutputStream.java,
8578 java/util/jar/Manifest.java:
8581 2004-04-23 Dalibor Topic <robilad@kaffe.org>
8583 * java/util/ArrayList.java,
8584 java/util/Calendar.java,
8585 java/util/Currency.java,
8586 java/util/HashMap.java,
8587 java/util/HashSet.java,
8588 java/util/Hashtable.java,
8589 java/util/LinkedList.java,
8590 java/util/Properties.java,
8591 java/util/PropertyPermission.java,
8592 java/util/TimeZone.java,
8593 java/util/TreeMap.java,
8594 java/util/TreeSet.java,
8595 java/util/Vector.java,
8596 java/util/WeakHashMap.java:
8599 2004-04-23 Dalibor Topic <robilad@kaffe.org>
8601 * java/util/logging/FileHandler.java,
8602 java/util/logging/Formatter.java,
8603 java/util/logging/Handler.java,
8604 java/util/logging/Logger.java,
8605 java/util/logging/SimpleFormatter.java,
8606 java/util/logging/XMLFormatter.java:
8609 2004-04-22 Mark Wielaard <mark@klomp.org>
8611 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
8612 -Wno-long-long flags variable.
8613 (gtk_c_files): Use PEDANTIC_CFLAGS.
8614 * Makefile.in: Regenerated.
8616 2004-04-22 Mark Wielaard <mark@klomp.org>
8618 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
8619 Changed C++ comments into C comments.
8620 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
8623 2004-04-22 Michael Koch <konqueror@gmx.de>
8625 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
8626 Merged copyright year with GNU classpath.
8628 2004-04-22 Dalibor Topic <robilad@kaffe.org>
8630 * javax/security/auth/x500/X500Principal.java:
8633 2004-04-22 Dalibor Topic <robilad@kaffe.org>
8635 * javax/swing/JSlider.java:
8636 Fixed HTML tags in comments.
8638 2004-04-22 Dalibor Topic <robilad@kaffe.org>
8640 * javax/accessibility/AccessibleText.java:
8643 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
8645 * java/net/URLStreamHandler.java
8646 (parseURL): Convert the file path to using '/' instead of native
8649 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
8652 (userInfo): New field.
8653 (URL): Set authority to the right value.
8654 (setURL): Fixed authority and file initialization.
8655 * java/net/URLStreamHandler.java
8656 (parseURL): Take care of the query tag. Build authority.
8657 (toExternalForm): Fixed URL building using authority.
8659 2004-04-22 Michael Koch <konqueror@gmx.de>
8661 * java/net/Socket.java
8662 (impl): Made package-private.
8663 * java/net/ServerSocket.java
8664 (implAccept): Access Socket.impl field directly.
8666 2004-04-22 Dalibor Topic <robilad@kaffe.org>
8668 * java/util/prefs/Preferences.java,
8669 java/util/prefs/InvalidPreferencesFormatException.java,
8670 java/util/prefs/BackingStoreException.java,
8671 java/util/prefs/AbstractPreferences.java:
8674 2004-04-22 Dalibor Topic <robilad@kaffe.org>
8676 * java/util/regex/Matcher.java,
8677 java/util/regex/Pattern.java:
8680 2004-04-22 Michael Koch <konqueror@gmx.de>
8682 * java/nio/charset/IllegalCharsetNameException.java
8683 (charsetName): Made private.
8684 (IllegalCharsetNameException): Added @param tag to javadoc.
8685 (getCharsetName): Added @return tag to javadoc.
8686 * java/nio/charset/MalformedInputException.java
8687 (MalformedInputException): Added @param tag to javadoc.
8688 (getInputLength): Revised method description, added @return tag.
8689 (getMessage): Added @return tag.
8691 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
8693 * java/awt/Font.java (deriveFont): Implement missing variants.
8694 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
8697 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
8699 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
8700 Set method->index values for interface methods to their itable index.
8701 (initializeClass): Call _Jv_LayoutInterfaceMethods.
8703 2004-04-21 Michael Koch <konqueror@gmx.de>
8705 * java/nio/DirectByteBufferImpl.java
8706 (shiftDown): Made static, give address as argument and
8707 provide a convenience method that overwrites shiftDown in
8708 ByteBufferImpl and calls the native shiftDown.
8709 * java/nio/MappedByteBufferImpl.java
8710 (): Use optimized method in DirectByteBufferImpl.
8711 * java/nio/natDirectByteBufferImpl.cc
8712 (shiftDown): Changed method signature. Removed usage of array_offset.
8714 2004-04-21 Michael Koch <konqueror@gmx.de>
8716 * gnu/java/net/natPlainSocketImplPosix.cc
8717 (SocketInputStream::read): Make sure returned data is a byte value.
8719 2004-04-21 Michael Koch <konqueror@gmx.de>
8721 * gnu/classpath/ServiceFactory.java,
8722 gnu/classpath/ServiceProviderLoadingAction.java,
8723 javax/imageio/ImageReader.java,
8724 javax/imageio/ImageTranscoder.java,
8725 javax/imageio/ImageWriter.java,
8726 javax/imageio/package.html,
8727 javax/imageio/spi/IIOServiceProvider.java,
8728 javax/imageio/spi/ImageInputStreamSpi.java,
8729 javax/imageio/spi/ImageOutputStreamSpi.java,
8730 javax/imageio/spi/ImageReaderWriterSpi.java,
8731 javax/imageio/spi/ImageTranscoderSpi.java,
8732 javax/imageio/spi/RegisterableService.java,
8733 javax/imageio/spi/ServiceRegistry.java,
8734 javax/imageio/spi/package.html,
8735 javax/imageio/stream/IIOByteBuffer.java,
8736 javax/imageio/stream/ImageInputStream.java,
8737 javax/imageio/stream/ImageOutputStream.java,
8738 javax/imageio/stream/package.html:
8741 (ordinary_java_source_files): Added
8742 gnu/classpath/ServiceFactory.java and
8743 gnu/classpath/ServiceProviderLoadingAction.java.
8744 (javax_source_files): Added
8745 javax/imageio/ImageReader.java,
8746 javax/imageio/ImageTranscoder.java,
8747 javax/imageio/ImageWriter.java,
8748 javax/imageio/spi/IIOServiceProvider.java,
8749 javax/imageio/spi/ImageInputStreamSpi.java,
8750 javax/imageio/spi/ImageOutputStreamSpi.java,
8751 javax/imageio/spi/ImageReaderWriterSpi.java,
8752 javax/imageio/spi/ImageTranscoderSpi.java,
8753 javax/imageio/spi/RegisterableService.java,
8754 javax/imageio/spi/ServiceRegistry.java,
8755 javax/imageio/stream/IIOByteBuffer.java,
8756 javax/imageio/stream/ImageInputStream.java and
8757 javax/imageio/stream/ImageOutputStream.java.
8758 * Makefile.in: Regenerated.
8760 2004-04-21 Michael Koch <konqueror@gmx.de>
8762 * java/util/Properties.java
8763 (load): Fix wrongly merged fix.
8765 2004-04-21 Mark Wielaard <mark@klomp.org>
8767 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
8768 malloc and free buf.
8770 2004-04-21 Dalibor Topic <robilad@kaffe.org>
8772 * javax/naming/AuthenticationException.java,
8773 javax/naming/AuthenticationNotSupportedException.java,
8774 javax/naming/CannotProceedException.java,
8775 javax/naming/CommunicationException.java,
8776 javax/naming/CompoundName.java,
8777 javax/naming/ConfigurationException.java,
8778 javax/naming/ContextNotEmptyException.java,
8779 javax/naming/InitialContext.java,
8780 javax/naming/InsufficientResourcesException.java,
8781 javax/naming/InterruptedNamingException.java,
8782 javax/naming/LimitExceededException.java,
8783 javax/naming/LinkException.java,
8784 javax/naming/LinkLoopException.java,
8785 javax/naming/LinkRef.java,
8786 javax/naming/MalformedLinkException.java,
8787 javax/naming/Name.java,
8788 javax/naming/NameAlreadyBoundException.java,
8789 javax/naming/NameNotFoundException.java,
8790 javax/naming/NamingSecurityException.java,
8791 javax/naming/NoInitialContextException.java,
8792 javax/naming/NoPermissionException.java,
8793 javax/naming/NotContextException.java,
8794 javax/naming/PartialResultException.java,
8795 javax/naming/ReferralException.java,
8796 javax/naming/ServiceUnavailableException.java,
8797 javax/naming/SizeLimitExceededException.java,
8798 javax/naming/TimeLimitExceededException.java,
8799 javax/naming/directory/Attribute.java,
8800 javax/naming/directory/Attributes.java,
8801 javax/naming/directory/SearchResult.java,
8802 javax/naming/event/NamingExceptionEvent.java,
8803 javax/naming/spi/ResolveResult.java:
8806 2004-04-21 Mark Wielaard <mark@klomp.org>
8808 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
8809 Changed C++ comments into C comments. Removed commented out code.
8810 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
8812 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
8814 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
8816 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
8818 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
8820 * native/jni/gtk-peer/gthread-jni.c:
8823 2004-04-21 Mark Wielaard <mark@klomp.org>
8825 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
8826 static fields defined in interface.
8827 * javax/awt/JDialog.java: Likewise.
8828 (JDialog): Make constructors public.
8829 (getDefaultCloseOperation): Make public.
8830 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
8831 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
8832 * javax/swing/JViewport.java (JViewport): Make constructor public.
8834 2004-04-21 Michael Koch <konqueror@gmx.de>
8836 * java/util/Map.java
8837 (Entry): Removed redundant "static" modifier.
8838 * java/text/AttributedCharacterIterator.java:
8839 Updated copyright year.
8841 2004-04-20 Michael Koch <konqueror@gmx.de>
8843 * javax/naming/directory/SearchControls.java:
8844 Don't explicitely extend java.lang.Object.
8845 * javax/naming/spi/DirStateFactory.java:
8846 Merged copyright year with GNU classpath.
8848 2004-04-20 Michael Koch <konqueror@gmx.de>
8850 * java/nio/channels/Channels.java:
8851 Merged coding style with GNU classpath.
8853 2004-04-20 Michael Koch <konqueror@gmx.de>
8855 * java/net/ServerSocket.java
8856 Merged coding style from GNU classpath.
8858 2004-04-20 Michael Koch <konqueror@gmx.de>
8860 * java/io/BufferedWriter.java:
8861 Reordered variables to be at top of the class.
8862 (localFlush): Removed redundant final keyword.
8864 2004-04-20 Ingo Proetel <proetel@aicas.com>
8866 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
8868 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
8870 * java/text/DecimalFormat.java (scanFix): Removed suffix check
8871 for percent and permill check.
8873 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
8875 * java/text/FieldPosition.java
8876 (FieldPosition) Constructor now behaves as it should according
8877 to the java documentation.
8879 2004-04-20 Mark Wielaard <mark@klomp.org>
8881 * java/util/Properties.java: Use the word umlaut, not ä in api
8884 2004-04-20 Michael Koch <konqueror@gmx.de>
8886 * java/nio/Buffer.java,
8887 java/nio/channels/AlreadyConnectedException.java,
8888 java/nio/channels/AsynchronousCloseException.java,
8889 java/nio/channels/ByteChannel.java,
8890 java/nio/channels/CancelledKeyException.java,
8891 java/nio/channels/Channel.java,
8892 java/nio/channels/Channels.java,
8893 java/nio/channels/ClosedByInterruptException.java,
8894 java/nio/channels/ClosedChannelException.java,
8895 java/nio/channels/ClosedSelectorException.java,
8896 java/nio/channels/ConnectionPendingException.java,
8897 java/nio/channels/DatagramChannel.java,
8898 java/nio/channels/FileChannel.java,
8899 java/nio/channels/FileLock.java,
8900 java/nio/channels/FileLockInterruptionException.java,
8901 java/nio/channels/GatheringByteChannel.java,
8902 java/nio/channels/IllegalBlockingModeException.java,
8903 java/nio/channels/IllegalSelectorException.java,
8904 java/nio/channels/InterruptibleChannel.java,
8905 java/nio/channels/NoConnectionPendingException.java,
8906 java/nio/channels/NonReadableChannelException.java,
8907 java/nio/channels/NonWritableChannelException.java,
8908 java/nio/channels/NotYetBoundException.java,
8909 java/nio/channels/NotYetConnectedException.java,
8910 java/nio/channels/OverlappingFileLockException.java,
8911 java/nio/channels/Pipe.java,
8912 java/nio/channels/ReadableByteChannel.java,
8913 java/nio/channels/ScatteringByteChannel.java,
8914 java/nio/channels/SelectableChannel.java,
8915 java/nio/channels/SelectionKey.java,
8916 java/nio/channels/Selector.java,
8917 java/nio/channels/ServerSocketChannel.java,
8918 java/nio/channels/SocketChannel.java,
8919 java/nio/channels/UnresolvedAddressException.java,
8920 java/nio/channels/UnsupportedAddressTypeException.java,
8921 java/nio/channels/WritableByteChannel.java,
8922 java/nio/channels/spi/AbstractInterruptibleChannel.java,
8923 java/nio/channels/spi/AbstractSelectableChannel.java,
8924 java/nio/channels/spi/AbstractSelectionKey.java,
8925 java/nio/channels/spi/AbstractSelector.java,
8926 java/nio/channels/spi/SelectorProvider.java,
8927 java/nio/charset/spi/CharsetProvider.java:
8928 Fixed javadocs and jalopied all over java.nio.
8930 2004-04-20 Michael Koch <konqueror@gmx.de>
8932 * java/nio/ByteBufferImpl.java,
8933 java/nio/CharBufferImpl.java,
8934 java/nio/DirectByteBufferImpl.java,
8935 java/nio/DoubleBufferImpl.java,
8936 java/nio/DoubleViewBufferImpl.java,
8937 java/nio/FloatBufferImpl.java,
8938 java/nio/FloatViewBufferImpl.java,
8939 java/nio/IntBufferImpl.java,
8940 java/nio/IntViewBufferImpl.java,
8941 java/nio/LongBufferImpl.java,
8942 java/nio/LongViewBufferImpl.java,
8943 java/nio/MappedByteBufferImpl.java,
8944 java/nio/ShortBufferImpl.java,
8945 java/nio/ShortViewBufferImpl.java:
8946 Made sure all classes are final and removed final keyword from all
8949 2004-04-20 Michael Koch <konqueror@gmx.de>
8951 * java/rmi/MarshalledObject.java,
8952 java/rmi/Naming.java,
8953 java/rmi/RemoteException.java,
8954 java/rmi/activation/ActivationException.java,
8955 java/rmi/server/ServerCloneException.java,
8956 java/security/AccessController.java,
8957 java/security/AlgorithmParameterGenerator.java,
8958 java/security/AlgorithmParameters.java,
8959 java/security/CodeSource.java,
8960 java/security/Identity.java,
8961 java/security/IdentityScope.java,
8962 java/security/KeyPairGenerator.java,
8963 java/security/KeyStore.java,
8964 java/security/Security.java,
8965 java/security/Signature.java,
8966 java/security/SignatureSpi.java,
8967 java/security/SignedObject.java,
8968 java/security/spec/DSAParameterSpec.java,
8969 java/security/spec/DSAPrivateKeySpec.java,
8970 java/security/spec/DSAPublicKeySpec.java,
8971 java/sql/Array.java,
8972 java/sql/DatabaseMetaData.java,
8973 java/sql/ResultSet.java,
8974 java/text/ChoiceFormat.java,
8975 java/text/CollationElementIterator.java,
8976 java/text/CollationKey.java,
8977 java/text/Collator.java,
8978 java/text/DateFormat.java,
8979 java/text/DateFormatSymbols.java,
8980 java/text/DecimalFormatSymbols.java,
8981 java/text/Format.java,
8982 java/text/ParsePosition.java,
8983 java/text/RuleBasedCollator.java,
8984 java/text/SimpleDateFormat.java,
8985 java/text/StringCharacterIterator.java,
8986 java/util/Collections.java,
8987 java/util/PropertyResourceBundle.java,
8988 java/util/ResourceBundle.java,
8989 java/util/StringTokenizer.java,
8990 java/util/jar/Attributes.java,
8991 java/util/logging/ConsoleHandler.java,
8992 java/util/logging/LogManager.java,
8993 java/util/logging/MemoryHandler.java,
8994 java/util/logging/SocketHandler.java,
8995 javax/naming/NamingException.java:
8996 Fixed javadoc, coding style and argument names all over.
8998 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
9000 * java/io/FileDescriptor.java: (FileDescriptor) Added public
9001 constructor. (valid) Added null check.
9003 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
9005 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
9006 * java/io/FileOutputStream.java
9007 (FileOutputStream) Reorganized constructors. Constructors now
9008 check whether the given path is directory.
9010 2004-04-20 Michael Koch <konqueror@gmx.de>
9012 * java/net/Authenticator.java,
9013 java/net/BindException.java,
9014 java/net/ConnectException.java,
9015 java/net/ContentHandler.java,
9016 java/net/ContentHandlerFactory.java,
9017 java/net/DatagramPacket.java,
9018 java/net/DatagramSocket.java,
9019 java/net/DatagramSocketImpl.java,
9020 java/net/DatagramSocketImplFactory.java,
9021 java/net/FileNameMap.java,
9022 java/net/HttpURLConnection.java,
9023 java/net/Inet4Address.java,
9024 java/net/Inet6Address.java,
9025 java/net/InetAddress.java,
9026 java/net/InetSocketAddress.java,
9027 java/net/JarURLConnection.java,
9028 java/net/MalformedURLException.java,
9029 java/net/MulticastSocket.java,
9030 java/net/NetPermission.java,
9031 java/net/NetworkInterface.java,
9032 java/net/NoRouteToHostException.java,
9033 java/net/PasswordAuthentication.java,
9034 java/net/PortUnreachableException.java,
9035 java/net/ProtocolException.java,
9036 java/net/ServerSocket.java,
9037 java/net/Socket.java,
9038 java/net/SocketAddress.java,
9039 java/net/SocketException.java,
9040 java/net/SocketImpl.java,
9041 java/net/SocketImplFactory.java,
9042 java/net/SocketOptions.java,
9043 java/net/SocketPermission.java,
9044 java/net/SocketTimeoutException.java,
9046 java/net/URISyntaxException.java,
9048 java/net/URLClassLoader.java,
9049 java/net/URLConnection.java,
9050 java/net/URLDecoder.java,
9051 java/net/URLEncoder.java,
9052 java/net/URLStreamHandler.java,
9053 java/net/URLStreamHandlerFactory.java,
9054 java/net/UnknownHostException.java,
9055 java/net/UnknownServiceException.java:
9056 Fixed javadocs, coding style and argument names all over.
9058 2004-04-20 Michael Koch <konqueror@gmx.de>
9060 * java/lang/Byte.java,
9061 java/lang/CharSequence.java,
9062 java/lang/ClassLoader.java,
9063 java/lang/Compiler.java,
9064 java/lang/Double.java,
9065 java/lang/Float.java,
9066 java/lang/Integer.java,
9067 java/lang/Long.java,
9068 java/lang/Math.java,
9069 java/lang/Number.java,
9070 java/lang/Package.java,
9071 java/lang/Runtime.java,
9072 java/lang/RuntimePermission.java,
9073 java/lang/SecurityManager.java,
9074 java/lang/Short.java,
9075 java/lang/StringBuffer.java,
9076 java/lang/System.java,
9077 java/lang/ThreadGroup.java,
9078 java/lang/Throwable.java,
9079 java/lang/reflect/InvocationHandler.java,
9080 java/lang/reflect/Proxy.java:
9081 Fixed javadocs, coding style and argument names all over.
9083 2004-04-20 Michael Koch <konqueror@gmx.de>
9085 * java/io/BufferedWriter.java,
9086 java/io/ByteArrayInputStream.java,
9087 java/io/CharArrayWriter.java,
9088 java/io/DataInput.java,
9089 java/io/DataInputStream.java,
9091 java/io/FilterInputStream.java,
9092 java/io/InputStream.java,
9093 java/io/InputStreamReader.java,
9094 java/io/ObjectInputStream.java,
9095 java/io/ObjectStreamClass.java,
9096 java/io/PipedInputStream.java,
9097 java/io/PipedReader.java,
9098 java/io/PushbackInputStream.java,
9099 java/io/PushbackReader.java,
9100 java/io/RandomAccessFile.java,
9101 java/io/SerializablePermission.java,
9102 java/io/StreamTokenizer.java,
9103 java/io/StringWriter.java,
9104 java/io/WriteAbortedException.java,
9105 java/io/Writer.java:
9106 Fixed javadocs all over, rename arguments to match javadocs,
9109 2004-04-20 Ingo Proetel <proetel@aicas.com>
9111 * java/awt/FontMetrics.java:
9112 (charsWidth): fixed accumulation of total_width
9113 (getWidth): simple default implementation
9114 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
9115 in Rectangle constructor.
9116 * java/awt/image/Raster.java (toString): Added method.
9117 * java/awt/image/SampleModel.java (<init>): Added error cause
9118 information to thrown exception.
9119 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
9121 (setDataElements): New method.
9122 (setPixels): New method.
9123 (toString): New method.
9125 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
9127 * java/awt/image/ComponentColorModel.java
9128 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
9129 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
9130 Mauve tests on this method. Improved documentation.
9132 2004-04-20 Michael Koch <konqueror@gmx.de>
9134 * javax/swing/JLayeredPane.java,
9135 javax/swing/plaf/BorderUIResource.java,
9136 javax/swing/plaf/ComponentUI.java,
9137 javax/swing/undo/CompoundEdit.java,
9138 javax/swing/undo/StateEdit.java:
9139 Fixed HTML tags in javadocs all over.
9141 2004-04-20 Michael Koch <konqueror@gmx.de>
9143 * javax/print/attribute/EnumSyntax.java
9144 (getOffset): Made protected.
9145 * javax/print/attribute/HashAttributeSet.java
9146 (HashAttributeSet): Likewise.
9147 * javax/print/attribute/ResolutionSyntax.java
9148 (getFeedResolution): Fixed typo in exception name.
9149 (getCrossFeedResolution): Likewise.
9150 * javax/print/attribute/SetOfIntegerSyntax.java
9151 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
9152 * javax/print/attribute/TextSyntax.java
9153 (TextSyntax): Handle locale correctly.
9154 (hashCode): Calc better hashcode value.
9155 (equals): Fixed @return tag.
9156 (toString): New method.
9158 2004-04-20 Michael Koch <konqueror@gmx.de>
9160 * gnu/java/nio/FileLockImpl.java
9161 (static): Removed, not needed anymore.
9162 * gnu/java/nio/channels/FileChannelImpl.java
9163 (FileChannelImpl): Made final.
9164 (mode): Made private.
9165 (READ, WRITE, APPEND): Made public.
9166 (EXCL, SYNC, DSYNC): Likewise.
9167 (static): Load native JNI library, when needed.
9168 (length): Unused, removed.
9169 (available): Made public.
9170 (implPosition): Throws IOException.
9172 (implTruncate): Likewise.
9176 2004-04-20 Michael Koch <konqueror@gmx.de>
9178 * java/awt/AWTPermission.java,
9179 java/awt/Component.java,
9180 java/awt/ComponentOrientation.java,,
9181 java/awt/Dialog.java,
9182 java/awt/FontMetrics.java,
9183 java/awt/Graphics.java,
9184 java/awt/datatransfer/DataFlavor.java,
9185 java/beans/Introspector.java,
9186 java/beans/PropertyEditor.java,
9187 java/beans/PropertyEditorManager.java,
9188 java/beans/beancontext/BeanContextServiceProvider.java:
9189 Fixed HTML tags in javadocs all over.
9191 2004-04-20 Mark Wielaard <mark@klomp.org>
9193 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
9194 MissingResourceException is thrown.
9195 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
9196 null when a MissingResourceException is thrown. Should never happen.
9198 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
9200 * java/awt/image/DataBufferShort.java,
9201 java/awt/image/DataBufferFloat.java,
9202 java/awt/image/DataBufferDouble.java,
9203 java/awt/image/PixelInterleavedSampleModel.java: New files.
9204 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
9205 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
9207 2004-04-20 Michael Koch <konqueror@gmx.de>
9209 * Makefile.am (java_source_files): Added
9210 java/awt/image/DataBufferDouble.java,
9211 java/awt/image/DataBufferFloat.java,
9212 java/awt/image/DataBufferShort.java and
9213 java/awt/image/PixelInterleavedSampleModel.java.
9214 * Makefile.in: Regenerated.
9216 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
9218 * gcj/cni.h (JvAllocObject): Remove these obsolete,
9219 undocumented CNI calls.
9220 * include/java-interp.h (_Jv_InterpClass): No longer
9221 extends java.lang.Class.
9222 * java/lang/Class.h (Class): Add new field `aux_info'.
9223 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
9224 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
9225 Use Class->aux_info instead.
9226 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
9227 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
9228 Use Class->aux_info instead.
9229 * java/io/natObjectInputStream.cc (allocateObject): Use
9231 * java/lang/natClass.cc (newInstance): Likewise.
9232 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
9233 * java/lang/natObject.cc (clone): Likewise.
9234 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
9235 * java/lang/natVMClassLoader.cc (defineClass): Don't use
9236 JvAllocObject. Allocate klass->aux_info here for interpreted
9239 2004-04-17 Mark Wielaard <mark@klomp.org>
9241 * javax/swing/JToggleButton.java (ToggleButtonModel):
9242 Make public static inner class.
9243 * javax/swing/JTabbedPane.java (setComponentAt):
9244 Call Page.setComponent().
9245 (SCROLL_TAB_LAYOUT): Make public, value is 1.
9246 (WRAP_TAB_LAYOUT): Make public, value is 0.
9247 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
9248 Make private static inner class.
9250 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
9252 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
9253 arguments to match new signature. Remove FIXME comments.
9255 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
9257 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
9259 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
9262 2004-04-02 Olga Rodimina <rodimina@redhat.com>
9264 * Makefile.am: Added new file.
9265 * Makefile.in: Regenerate.
9266 * javax/swing/ImageIcon.java:
9267 (ImageIcon(file)): set description of the icon
9269 * javax/swing/JCheckBoxMenuItem.java:
9270 Mostly Implemented. Work in progress.
9271 * javax/swing/JRadioButtonMenuItem.java:
9272 Reimplement constructors to use JToggleButtonModel.
9273 * javax/swing/plaf/basic/BasicIconFactory.java:
9274 (getCheckBoxMenuItemIcon): return check box
9276 * javax/swing/plaf/basic/BasicMenuItemUI.java:
9277 paint menu item selected only when it is armed and
9280 2004-04-02 David Jee <djee@redhat.com>
9282 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
9283 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
9284 * java/awt/Component.java
9285 (add): Set the parent of the popup as this component.
9286 * java/awt/PopupMenu.java
9287 (addNotify): Create popup menu when peer is null.
9288 (show): Call addNotify() if peer is null.
9289 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
9290 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
9291 argument for gtk_menu_popup() as zero. This causes the popup menu to
9292 respond to any mouse button.
9294 2004-03-31 Olga Rodimina <rodimina@redhat.com>
9296 * Makefile.am: Added new file.
9297 * Makefile.in: Regenerate.
9298 * javax/swing/JRadioButtonMenuItem.java:
9300 * javax/swing/plaf/basic/BasicIconFactory.java:
9301 (getRadioButtonMenuItemIcon): Return
9303 * javax/swing/plaf/basic/BasicMenuItemUI.java:
9304 (getPreferredSize): Add size of checkIcon if it
9306 (installDefaults): Don't initialize checkIcon.
9307 It's value will be set in subclasses.
9308 (uninstallDefaults): remove uninstallation of
9310 (paint): Moved code to paintMenuItem().
9311 (paintMenuItem): Implemented.
9312 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
9313 UI delegate for JRadioButtonMenuItem.
9315 2004-03-29 Olga Rodimina <rodimina@redhat.com>
9317 * javax/swing/plaf/basic/BasicMenuItemUI.java:
9318 Corrected position of the accelerator.
9320 2004-03-29 Olga Rodimina <rodimina@redhat.com>
9322 * Makefile.am: Added new file.
9323 * Makefile.in: Regenerate.
9324 * javax/swing/JMenuItem.java: Partly
9325 implemented. Work in progress
9326 * javax/swing/plaf/basic/BasicLookAndFeel.java:
9327 Changed default value of acceleratorDelimiter.
9328 * javax/swing/plaf/basic/BasicMenuItemUI.java:
9329 New class. Partly implemented.
9331 2004-03-26 Mark Wielaard <mark@klomp.org>
9333 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
9334 (item_activate): Declare label before use.
9335 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9336 (gtkSetFont): Removed unused variable label.
9337 (addExposeFilter): Declare variables before use.
9338 (removeExposeFilter): Likewise.
9339 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
9340 (ok_clicked): Declare str_fileName before use.
9342 2004-03-26 David Jee <djee@redhat.com>
9344 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
9345 (addSeparator): Remove.
9346 * java/awt/Menu.java
9347 (separator): Remove static final MenuItem field.
9348 (separatorLabel): New static final String field.
9349 (addSeparator): Do not use peer method; use add(MenuItem) instead.
9350 Use separatorLabel to denote that it is a separator.
9351 (insertSeparator): Create a new MenuItem with separatorLabel, instead
9352 of reusing the static separator instance, because a MenuItem instance
9353 can't be added more than once without being cloned.
9354 * java/awt/peer/MenuPeer.java
9355 (addSeparator): Remove from interface.
9357 2004-03-26 David Jee <djee@redhat.com>
9359 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
9360 (connectSignals): New native method declaration.
9361 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
9362 * java/awt/MenuItem.java
9363 (getActionCommand): Return the label if the action command is not set.
9364 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
9365 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
9366 gtk_menu_shell_append().
9367 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
9368 (item_activate): Fix argument type.
9369 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
9371 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
9373 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
9374 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
9375 given. Add the menu widget's top-level GtkWindow to the global window
9376 group, so it can grab the pointer.
9377 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
9378 gtk_menu_shell_append().
9380 2004-03-23 Graydon Hoare <graydon@redhat.com>
9382 * java/text/AttributedString.java
9383 (addAttribute): Fix off-by-one.
9384 (getIterator): Likewise.
9385 * java/text/AttributedStringIterator.java
9386 (getRunLimit): Correct logic.
9387 (getRunStart): Likewise.
9388 (getAttribute): Fix inequality.
9389 (getAttributes): Likewise.
9390 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
9392 2004-03-23 Kim Ho <kho@redhat.com>
9394 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
9395 (calculateSizes): Return real width and height.
9397 2004-03-23 Kim Ho <kho@redhat.com>
9399 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
9400 (calculateTabRects): Set the selectedRun before
9401 trying to rotate tabs.
9403 2004-03-23 Kim Ho <kho@redhat.com>
9405 * Makefile.am: New file
9406 * Makefile.in: Regenerate
9407 * java/awt/Graphics.java: (drawRect):
9408 Draw to the correct point.
9409 * javax/swing/DefaultSingleSelectionModel.java
9410 (isSelected): Return true if the selected index
9412 * javax/swing/JLabel.java: Do not change mnemonic
9413 index if text is null.
9414 * javax/swing/JProgressBar.java: Use JComponent's
9416 * javax/swing/JScrollBar.java: Ditto.
9417 * javax/swing/JSlider.java: Ditto.
9418 * javax/swing/JTabbedPane.java: Reimplement.
9419 * javax/swing/plaf/basic/BasicLookAndFeel.java:
9420 Add defaults for TabbedPane.
9421 * javax/swing/plaf/basic/BasicArrowButton.java:
9423 * javax/swing/plaf/basic/BasicProgressBarUI.java:
9424 (paintDeterminate): Don't paint String if it's
9426 (paintIndeterminate): ditto.
9427 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
9430 2004-03-19 Michael Koch <konqueror@gmx.de>
9432 * java/awt/image/AffineTransformOp.java
9433 (AffineTransformOp): Made public.
9434 * javax/swing/JComponent.java
9435 (listenerList): Made protected.
9436 (accessibleContext): Likewise.
9437 * javax/swing/JList.java
9438 (valueChanged): Dont use internal fields of ListSelectionEvent.
9439 * javax/swing/JViewport.java
9440 (getView): Dont use internal fields of Component.
9441 (addImpl): Likewise.
9442 * javax/swing/Timer.java
9443 (isRunning): Made public.
9446 * javax/swing/UIDefaults.java
9447 (getInt): Made public.
9448 * javax/swing/plaf/basic/BasicListUI.java
9449 (mousePressed): Dont use internal fields of MouseEvent.
9450 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
9451 * javax/swing/plaf/basic/BasicScrollBarUI.java
9452 (arrowIcon): Made static.
9453 * javax/swing/plaf/basic/BasicViewportUI.java
9454 (stateChanged): Dont use internal field on ChangeEvent.
9455 * javax/swing/text/JTextComponent.java
9456 (getUI): Call UIManager.getUI().
9457 (updateUI): Use getUI().
9459 2004-03-19 Graydon Hoare <graydon@redhat.com>
9461 * javax/swing/JComponent.java: Turn off double buffer by default.
9462 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
9463 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
9464 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
9465 Use cairo to copy areas.
9466 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
9467 Initialize and set clip region.
9469 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
9471 * java/applet/Applet.java (preferredSize): Override deprecated
9472 variant of getPreferredSize.
9473 (minimumSize): Override deprecated variant of getMinimumSize.
9475 2004-03-15 Olga Rodimina <rodimina@redhat.com>
9477 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
9478 (drawImage(img,xform,bgcolor,obs)): New Method.
9479 Helper function that every drawImage method will
9481 (drawRaster): Added new parameter, bgcolor. All
9482 transparent pixels are changed to bgcolor before
9484 (drawRenderedImage): Fixed to use changed drawRaster().
9485 (drawImage(image,xform,obs): Fixed to use new helper function
9486 (drawImage(image,op,x,y)): Ditto.
9487 (drawImage (img,x,y,observer)): Ditto.
9488 ((PainterThread) bgcolor): New Field.
9489 ((PainterThread) (setPixels)): Changed all transparent pixels
9491 (drawImage(img,x,y,width,height,bgcolor,observer)):
9492 Fixed FIXME - all the transparent pixels are
9493 changed to the specified bgcolor.
9494 (drawImage(img, x, y, width, height, observer): Changed to
9496 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
9497 Fixed FIXME- changed all transparent pixels to bgcolor.
9498 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
9499 Changed to use function above.
9501 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
9503 * java/applet/Applet.java (dimensions): New field.
9504 (getDimensions): New method.
9505 (getPreferredSize): Call getDimensions.
9506 (getMinimumSize): Likewise.
9508 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
9510 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
9511 * jni/classpath/jnilink.c: Likewise.
9513 * java/applet/Applet.java (getPreferredSize): New method.
9514 (getMinimumSize): New method.
9516 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
9518 * prims.cc (_Jv_AllocObject): Remove `size' argument.
9519 (_Jv_AllocObjectNoFinalizer): Likewise.
9520 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
9521 (_Jv_AllocPtrFreeObject): Likewise.
9522 (_Jv_AllocString): Moved from natString.cc. Call collector interface
9523 directly even in the JVMPI case.
9524 * gcj/cni.h (JvAllocObject): Remove `size' argument from
9525 _Jv_AllocObject calls.
9526 * gcj/javaprims.h: Update prototypes.
9527 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
9528 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
9529 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
9531 2004-04-14 Andrew Haley <aph@redhat.com>
9532 Bryce McKinlay <mckinlay@redhat.com>
9534 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
9535 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
9536 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
9538 * testsuite/libjava.lang/InvokeInterface.java: New file.
9539 * testsuite/libjava.lang/InvokeInterface.out: New file.
9541 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
9543 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
9545 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
9546 StackTraceElement directly.
9547 (newElement): New native helper method to create StackTraceElement
9548 bypassing Java access control.
9549 (createStackTraceElement): Use newElement() instead of directly
9550 calling StackTraceElement's constructor.
9551 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
9553 2004-04-01 Michael Koch <konqueror@gmx.de>
9555 * java/lang/SecurityManager.java
9556 (checkAwtEventQueueAccess): Implemented.
9558 2004-04-01 Gary Benson <gbenson@redhat.com>
9560 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
9561 (_Jv_SearchMethodInClass): Likewise.
9563 2004-03-26 Peter Moon <peterm@miraculum.com>
9565 * java/text/NumberFormat.java: Fix spelling of setCurrency
9568 2004-03-21 Anthony Green <green@redhat.com>
9570 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
9571 recursion when searching for the system ClassLoader.
9573 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
9575 * java/net/ServerSocket.java
9576 (accept): Close the socket when error occured.
9578 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
9580 * java/net/URI.java (parseURI): Added unquoting.
9581 (unquote): New method.
9582 (quoteAuthority): Implemented.
9583 (quote(String,String)): New method.
9584 (quotePath): Implemented.
9585 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
9586 (getSchemeSpecificPart): Removed FIXME comment.
9587 (getRawAuthority): Return new rawAuthority field.
9588 (getAuthority): Removed FIXME comment.
9589 (getRawUserInfo): Return new rawUserInfo field.
9590 (getUserInfo): Removed FIXME comment.
9591 (getRawPath): Return new rawPath field.
9592 (getPath): Removed FIXME comment.
9593 (getRawQuery): Return new rawQuery field.
9594 (getQuery): Removed FIXME comment.
9595 (getRawFragment): Return new rawFragment field.
9596 (getFragment): Removed FIXME comment.
9598 2004-03-20 Michael Koch <konqueror@gmx.de>
9600 * java/net/URLConnection.java: Merged copyright year with classpath.
9602 2004-03-20 Norbert Frese <postfach@nfrese.net>
9604 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
9605 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
9606 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
9608 (getObjectInputStream): Return object reference, throw IOException if null.
9609 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
9610 (getObjectOutputStream): Return object reference, throw IOException if null.
9611 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
9612 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
9613 (UnicastConnectionManager): Throw RemoteException if port is not available.
9614 (getInstance): Throw RemoteException.
9615 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
9616 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
9617 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
9618 Collect Exceptions which are returned by a rmi-call and fix void returns.
9619 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
9620 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
9621 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
9622 (dispatch): Answer ping messages which are sent by other java implementions.
9623 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
9624 for every rmi-message and fix void return problems.
9625 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
9626 (UnicastServerRef): Throw RemoteException.
9627 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
9628 In some situations it is necessary to export a subclass of the class which has the _Stub.
9629 For instance when the class with has the _Stub is abstract.
9630 (findStubSkelClass): New method which looks for the class which has the _Stub.
9631 (getClientHost): Implementated.
9632 * gcc/libjava/java/rmi/server/RemoteServer.java
9633 (getClientHost): Implementated.
9634 * gcc/libjava/Makefile.am (rmi_java_source_files):
9635 Added gnu/java/rmi/server/RMIIncomingThread.java.
9636 * Makefile.in: Regenerated.
9638 2004-03-20 Michael Koch <konqueror@gmx.de>
9640 * java/net/InetAddress.java
9641 (getLocalHostname): Added javadoc.
9643 2004-03-19 Per Bothner <per@bothner.com>
9645 * configure.in: FILE variable overrides FLATFORM when linking
9646 natFileChannelXXX.cc.
9648 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
9649 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
9651 2004-03-19 Per Bothner <per@bothner.com>
9653 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
9654 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
9655 * Makefile.am: Update accordingly.
9656 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
9657 as aliases for UnicodeLittle and UnicodeBig.
9659 2004-03-20 Mark Wielaard <mark@klomp.org>
9661 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
9662 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
9663 Don't access ws when it is null.
9664 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
9667 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
9669 * java/lang/ThreadGroup.java (list): Changed print to println.
9671 2004-03-19 Mark Wielaard <mark@klomp.org>
9673 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
9676 2004-02-10 Randolph Chung <tausq@debian.org>
9678 * configure.in: Build java for hppa target.
9679 * configure: Regenerate.
9680 * libjava/configure.host (hppa-*): Add target.
9681 * libjava/sysdeps/pa/lock.h: New file.
9683 2004-03-19 Mark Wielaard <mark@klomp.org>
9685 Reported by Stephen Crawley
9686 * java/io/FilePermission.java (implies): Use String.length() -1 to
9687 access last char of String.
9689 2004-03-19 Michael Koch <konqueror@gmx.de>
9691 * java/awt/image/AffineTransformOp.java
9692 (AffineTransformOp): Made public.
9693 * javax/swing/JComponent.java
9694 (listenerList): Made protected.
9695 (accessibleContext): Likewise.
9696 * javax/swing/JList.java
9697 (valueChanged): Dont use internal fields of ListSelectionEvent.
9698 * javax/swing/JViewport.java
9699 (getView): Dont use internal fields of Component.
9700 (addImpl): Likewise.
9701 * javax/swing/Timer.java
9702 (isRunning): Made public.
9705 * javax/swing/UIDefaults.java
9706 (getInt): Made public.
9707 * javax/swing/plaf/basic/BasicListUI.java
9708 (mousePressed): Dont use internal fields of MouseEvent.
9709 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
9710 * javax/swing/plaf/basic/BasicScrollBarUI.java
9711 (arrowIcon): Made static.
9712 * javax/swing/plaf/basic/BasicViewportUI.java
9713 (stateChanged): Dont use internal field on ChangeEvent.
9714 * javax/swing/text/JTextComponent.java
9715 (getUI): Call UIManager.getUI().
9716 (updateUI): Use getUI().
9718 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9720 * verify.cc: Undef PC.
9722 2004-03-18 Michael Koch <konqueror@gmx.de>
9724 * java/nio/channels/spi/AbstractSelectableChannel.java
9725 (keys): Initialize at declaration.
9726 (locate): keys cant be null.
9728 (addSelectionKey): New method.
9729 (removeSelectionKey): New method.
9730 * java/nio/channels/spi/AbstractSelectionKey.java
9731 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
9732 * java/nio/channels/spi/AbstractSelector.java
9733 (provider): Javadoc added.
9734 (cancelledKeys): Javadoc added.
9735 (cancelKey): Javadoc added, add key to cancelledKeys.
9736 (deregister): Implemented.
9738 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9740 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
9741 MAP_FAILED to void *.
9743 2004-03-12 Graydon Hoare <graydon@redhat.com>
9745 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
9746 * javax/swing/JComponent.java (paint): Use persistent double buffer.
9747 * javax/swing/JList.java (ListListener): Revalidate on changes.
9748 * javax/swing/JScrollPane.java: Reimplement.
9749 * javax/swing/JViewport.java: Reimplement.
9750 * javax/swing/ScrollPaneLayout.java: Reimplement.
9751 * javax/swing/ViewportLayout.java: Tidy up.
9752 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
9753 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
9754 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
9755 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
9758 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
9760 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9761 (window_wm_protocols_filter): New function.
9762 (window_focus_in_cb): Remove function.
9763 (window_focus_out_cb): Likewise.
9764 (window_focus_or_active_state_change_cb): New function.
9765 (create): Add filter that removes WM_TAKE_FOCUS client messages.
9766 (connectSignals): Don't attach handlers to focus-in-event or
9767 focus-out-event signals. Handle notify signal.
9769 2004-03-11 David Jee <djee@redhat.com>
9771 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
9772 (gtkSetLabel): New native method declaration.
9773 (setLabel): Use gtkSetLabel.
9774 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
9775 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
9777 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
9779 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
9780 black when color argument is null.
9782 2004-03-10 Kim Ho <kho@redhat.com>
9784 * java/awt/Container.java: Remove check
9787 2004-03-10 Kim Ho <kho@redhat.com>
9789 * java/awt/Container.java: (visitChild):
9790 Remove candidate clip. Use the component
9792 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
9793 (handleEvent): Use the PaintEvent's clip.
9795 2004-03-10 Kim Ho <kho@redhat.com>
9797 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
9798 (handleEvent): Don't set the clip for the
9801 2004-03-09 Graydon Hoare <graydon@redhat.com>
9803 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
9804 Fix double <-> fixed macros, reset font transform.
9805 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
9808 2004-03-09Â Kim Ho <kho@redhat.com>
9810 * java/awt/Container.java: (visitChild): Move
9811 the x and y coordinate of the component rectangle
9812 to correct position.
9813 (handleEvent): Forward drag events to the pressed
9815 * javax/swing/plaf/basic/BasicScrollBarUI.java:
9817 (ArrowButtonListener::mousePressed): Stop the
9819 (mouseDragged): Implement.
9820 (TrackListener::mousePressed): Only react if
9821 the press doesn't occur on the thumb, otherwise
9822 just set the offset.
9823 (TrackListener::mouseReleased): Unset the isAdjusting
9825 (createIncreaseIcon): Switch icon.
9826 (createDecreaseIcon): Switch icon.
9827 (calculatePreferredSize): Use width.
9828 (getThumbBounds): Use the top as the lower value.
9829 (layoutVScrollBar): Switch the button locations.
9830 (paintIncreaseHighlight): Paint correct side of thumb.
9831 (paintDecreaseHighlight): ditto.
9832 (valueForYPosition): Use top as the lower value.
9833 * javax/swing/plaf/basic/BasicSliderUI.java:
9835 (mouseDragged): Implement.
9836 (mousePressed): Only react when the thumb isn't
9837 pressed, otherwise just set offset.
9838 (mouseReleased): Handle a release of the thumb.
9839 (scrollDueToClickInTrack): Stop the timer first.
9840 * javax/swing/JProgressBar.java:
9841 (setString): Fix change condition.
9842 * javax/swing/JSeparator.java:
9845 2004-03-08 David Jee <djee@redhat.com>
9847 * java/awt/image/AffineTransformOp.java:
9848 (filter): Use Graphics2D interface instead of directly using the
9851 2004-03-05 David Jee <djee@redhat.com>
9853 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
9854 (handleEvent): Action events are generated upon MOUSE_RELEASED.
9855 * java/awt/Container.java
9856 (acquireComponentForMouseEvent): Fixed.
9857 (handleEvent): Fixed.
9858 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
9859 (state_to_awt_mods_with_button_states): New method.
9860 (pre_event_handler): Fixed mouse event generation.
9862 2004-03-05 Olga Rodimina <rodimina@redhat.com>
9864 gnu/java/awt/peer/gtk/GdkGraphics2D.java
9865 (GdkGraphics2D (BufferedImage)): Initialize
9866 pixmap associated with specified BufferedImage.
9867 (setPaint): Changed implementation of Texture
9868 Paint to use AffineTransformOp.
9869 * java/awt/image/AffineTransformOp.java
9870 (createCompatibleDestRaster): Throw RasterFormatException
9871 if resulting width or height of raster is 0.
9873 2004-03-04 Olga Rodimina <rodimina@redhat.com>
9875 * java/awt/image/AffineTransformOp.java:
9876 Removed unnecessary field interpolationType.
9877 Formatted some of the lines to be consistent with
9879 (AffineTransformOp): Create new RenderingHints
9880 containing specified interpolation type.
9881 (createCompatibleDestImage): Implemented.
9882 (createCompatibleDestRaster): Implemented.
9883 (filter): Implemented.
9884 (getBounds2D(BufferedImage)): Implemented.
9885 (getBounds2D(Raster)): Implemented.
9886 (getInterpolationType): Get interpolation value from
9889 2004-03-04 David Jee <djee@redhat.com>
9891 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
9892 (setFont): Check if child peers are null.
9894 2004-03-04 Graydon Hoare <graydon@redhat.com>
9896 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
9898 (libjava_arguments): Add new libraries to argument list.
9900 2004-03-02 Olga Rodimina <rodimina@redhat.com>
9902 * Makefile.am: Added java/awt/image/AffineTransformOp.java
9903 * Makefile.in: Re-generated.
9904 * java/awt/image/AffineTransformOp.java: New Class.
9906 2004-03-01 Olga Rodimina <rodimina@redhat.com>
9908 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
9909 (setPaint): Interpret correctly TexturePaint's
9911 (drawImage): Fixed scale factors of the affine
9914 2004-02-27 David Jee <djee@redhat.com>
9916 * gnu/java/awt/peer/gtk/GdkGraphics.java
9917 (GdkGraphics(Component)): Inherit font from component.
9918 (drawString): Use font style.
9919 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
9920 (gtkSetFont): New native method declaration.
9921 (setFont): New method.
9922 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
9923 (gtkSetFont): New native method declaration.
9924 (setFont): Call new native method gtkSetFont.
9925 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
9926 (setFont): For all child components who do not their fonts set,
9927 set their peers' fonts with this container's font.
9928 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
9929 Move all native method declarations to the top for readability.
9930 (gtkSetFont): New native method declaration.
9931 (setFont): New method.
9932 * java/awt/Component.java
9933 (setFont): Invalidate after setting the font.
9934 * java/awt/Container.java
9935 (invalidateTree): New method.
9936 (setFont): Invalidate the container tree after setting the font.
9937 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
9938 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
9939 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
9940 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
9941 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9942 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
9943 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
9944 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
9946 2004-02-27 Olga Rodimina <rodimina@redhat.com>
9948 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
9949 (updateBufferedImage): New helper function.
9950 Updates BufferedImage in memory if it was changed.
9951 (draw): changed to update BufferedImage in memory after
9952 this drawing operation
9954 (draw3DRect): Ditto.
9955 (fill3DRect): Ditto.
9957 (drawRaster): Ditto.
9958 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
9959 no affine transformation.
9960 (drawGlyphVector): Ditto.
9962 2004-02-26 Olga Rodimina <rodimina@redhat.com>
9964 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
9965 (isBufferedImageGraphics): New Helper function.
9966 Returns true if this graphics2d can be used to draw
9967 into buffered image and false otherwise.
9968 (updateImagePixels): New Helper function.
9969 Updates pixels in the BufferedImage.
9970 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
9971 (getImagePixels): New function. Returns pixels
9972 of the buffered image associated with
9975 2004-02-26 David Jee <djee@redhat.com>
9977 * java/awt/BorderLayout.java
9978 (layoutContainer): Fix width and height calculations to ensure
9979 that they're non-negative.
9980 * java/awt/Component.java
9981 (setBackground): If c is null, inherit from closest ancestor whose
9982 background color is set.
9984 2004-02-26 Kim Ho <kho@redhat.com>
9986 * Makefile.am: Add new files.
9987 * Makefile.in: Re-generate.
9988 * javax/swing/JProgressBar.java:
9989 (JProgressBar(int, int int)): Throw
9990 IllegalArgumentException if orientation is
9992 (JProgressBar(BoundedRangeModel)): Create
9993 ChangeListener and register it. UpdateUI.
9994 (getChangeListeners): Implement.
9995 (setModel): Reset ChangeListener.
9996 * javax/swing/JScrollBar.java: Implement.
9997 * javax/swing/JSeparator.java: Implement.
9998 * javax/swing/JSlider.java:
9999 (JSlider(int, int, int, int)): Throw
10000 IllegalArgumentException if orientation
10002 (getChangeListeners): Fix method name.
10003 * javax/swing/SwingUtilities.java:
10004 (layoutCompoundLabel): If there is no text,
10005 set the text rectangle dimensions to 0.
10006 * javax/swing/plaf/basic/BasicButtonUI.java:
10007 (paint): If there is no text, don't paint it.
10008 * javax/swing/plaf/basic/BasicScrollBarUI.java:
10010 * javax/swing/plaf/basic/BasicSeparatorUI.java:
10012 * javax/swing/plaf/basic/BasicSliderUI.java:
10013 (propertyChange): If the model changes, change
10014 the listeners accordingly.
10016 2004-02-25 Graydon Hoare <graydon@redhat.com>
10018 * javax/swing/AbstractButton.java: Add "final" qualifiers.
10019 * javax/swing/JList.java: Reimplement.
10020 * javax/swing/DefaultListSelectionModel.java: Reimplement.
10021 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
10022 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
10023 * javax/swing/ListModel.java: Javadoc.
10024 * javax/swing/ListSelectionModel.java: Add missing methods.
10025 * javax/swing/AbstractListModel.java: Javadoc and corrections.
10026 * javax/swing/DefaultListModel.java: Javadoc and corrections.
10027 * javax/swing/ListModel.java: Javadoc and corrections.
10028 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
10030 2004-02-25 David Jee <djee@redhat.com>
10032 * gnu/java/awt/peer/gtk/GtkFontPeer.java
10033 (GtkFontPeer): Change default size to 12.
10034 * gnu/java/awt/peer/gtk/GtkToolkit.java
10035 (getFontPeer): Change default size to 12.
10036 (getClasspathFontPeer): Likewise. Set default name to "Default".
10037 * java/awt/Font.java
10038 (Font(Map)): Call Font(String,Map).
10039 (Font(String,Map)): If attrs is null, initialize it as an empty
10040 HashMap, which will ensure that the Font will get default attributes.
10042 2004-02-25 David Jee <djee@redhat.com>
10044 * gnu/java/awt/peer/gtk/GtkFontPeer.java
10045 (GtkFontPeer(String,int)): Call the new constructor with size 1.
10046 (GtkFontPeer(String,int,int)): New constructor with size attribute.
10047 * gnu/java/awt/peer/gtk/GtkToolkit.java
10048 (getFontPeer(String,int)): Call the new overload method with size 1.
10049 (getFontPeer(String,int,int)): New method. Overloaded with size
10051 (getClasspathFontPeer): Set the size of the font.
10053 2004-02-24 Olga Rodimina <rodimina@redhat.com>
10055 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
10056 (bimage): New field.
10057 (GdkGraphics2D): New Constructor. Constructs Graphics
10058 object that can be used to draw into the Buffered Image.
10059 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
10060 (GdkGraphicsEnvironment): Fixed to include public
10062 (createGraphics): Implemented.
10063 * gnu/java/awt/peer/gtk/GtkToolkit.java
10064 (getLocalGraphicsEnvironment): Implemented.
10065 * java/awt/GraphicsEnvironment.java:
10066 (getLocalGraphicsEnvironment): Implemented.
10067 * java/awt/image/BufferedImage.java:
10068 (createGraphics): Implemented.
10070 2004-02-24 David Jee <djee@redhat.com>
10072 * java/awt/Component.java
10073 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
10074 * java/awt/Container.java
10075 (addNotifyContainerChildren): Fix event enabling.
10077 2004-02-23 Olga Rodimina <rodimina@redhat.com>
10079 * Makefile.am: Added
10080 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
10081 * Makefile.in: Re-generated.
10082 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
10085 2004-02-19 Kim Ho <kho@redhat.com>
10087 * Makefile.am: Add BasicProgressBarUI
10088 * Makefile.in: Regenerate.
10089 * javax/swing/JProgressBar.java:
10091 * javax/swing/plaf/basic/BasicLookAndFeel.java
10092 Add constants for JProgressBar.
10093 * javax/swing/plaf/basic/BasicProgressBarUI.java
10095 * javax/swing/plaf/basic/BasicSliderUI.java
10097 (calculateGeometry): New method
10098 (paint): Remove unnecessary size calculations.
10100 2004-02-18 Olga Rodimina <rodimina@redhat.com>
10102 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
10103 (drawRaster): Fixed small error that caused
10104 imageToUser transformation to be set incorrectly.
10105 (toString): Implemented.
10107 2004-02-18 David Jee <djee@redhat.com>
10109 * java/awt/CardLayout.java
10110 (addLayoutComponent): Show the first component added as the default.
10111 (removeLayoutComponent): After removing, show the next component.
10112 (gotoComponent): If there is only one component, show it and return.
10114 2004-02-18 Kim Ho <kho@redhat.com>
10116 * javax/swing/JSlider.java: Re-order
10118 * javax/swing/JLabel.java: Re-order
10120 * javax/swing/JComponent.java:
10121 (addPropertyChangeListener):
10123 (removePropertyChangeListener):
10125 (firePropertyChangeEvent):
10128 2004-02-17 David Jee <djee@redhat.com>
10130 * java/awt/Component.java
10131 (show): Dispatch ComponentEvent via system event queue.
10134 (resize): Likewise.
10135 (reshape): Likewise.
10136 * java/awt/Window.java
10137 (setBoundsCallback): Likewise.
10139 2004-02-17 David Jee <djee@redhat.com>
10141 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10142 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
10143 Use gtk_widget_set_size_request() instead of the deprecated
10144 gtk_widget_set_usize().
10146 2004-02-17 Kim Ho <kho@redhat.com>
10148 * javax/swing/JSlider.java: Fix comments and
10149 make property strings constants.
10150 (createStandardLabels): Use the labels
10151 preferred size as bounds.
10152 * javax/swing/plaf/basic/BasicSliderUI.java
10154 (ScrollHandler::actionPerformed): Don't
10155 calculate the timer stop value. Let the
10156 MouseListeners find the stop location.
10157 (getPreferredHorizontalSize): Re-implement.
10158 (getPreferredVerticalSize): ditto.
10159 (getMinimumHorizontalSize): ditto.
10160 (getMinimumVerticalSize): ditto.
10161 (getPreferredSize): ditto.
10162 (getMinimumSize): ditto.
10163 (getMaximumSize): ditto.
10164 (paintTicks): Use doubles to find the
10166 (paintHorizontalLabel):Â Use preferredSize
10167 as initial width and height.
10168 (paintVerticalLabel): ditto.
10170 2004-02-17 Kim Ho <kho@redhat.com>
10172 * javax/swing/JLabel.java: Changed
10173 property strings to constants.
10174 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
10176 (setText): Change mnemonic index if
10178 (setDisplayedMnemonicIndex): Fire property
10180 (getDisplayedMnemonicIndex): Remove check
10181 against short text.
10183 2004-02-17 Olga Rodimina <rodimina@redhat.com>
10185 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10186 (drawImage(img,xform,obs)): Invert xform before
10187 passing the xform to cairo.
10188 (drawImage(img,x,y,bgcolor,obs)): Implemented.
10189 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
10191 (drawImage (img,x,y,w,h,obs)): Implemented.
10192 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
10193 bgcolor,obs)): Partly implemented.
10194 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
10196 * java/awt/image/BufferedImage.java:
10197 (copyData): if dest is null, create raster with same
10198 dimensions as the current image.
10200 2004-02-16 Graydon Hoare <graydon@redhat.com>
10202 * javax/swing/plaf/basic/BasicLabelUI.java
10203 (getPreferredSize): Use layoutCL.
10204 * javax/swing/plaf/basic/BasicGraphicsUtils.java
10205 (getPreferredButtonSize): Start with empty view rect, layout using
10206 component's preferred alignment.
10207 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
10210 2004-02-16 David Jee <djee@redhat.com>
10212 * java/awt/Component.java
10213 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
10214 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
10215 (move): Erase old bounds and repaint new bounds. Dispatch
10216 COMPONENT_MOVED ComponentEvent.
10217 (resize): Erase old bounds and repaint new bounds. Dispatch
10218 COMPONENT_RESIZED ComponentEvent.
10219 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
10221 * java/awt/Window.java
10222 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
10225 2004-02-16 Olga Rodimina <rodimina@redhat.com>
10227 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10228 (setRenderingHint): Added implementation of
10229 Interpolation rendering hints.
10230 (setRenderingHints): Ditto.
10231 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
10232 (drawPixels): fixed to allow user to choose type
10233 of filtering that should be used when displaying images.
10234 (cairoSurfaceSetFilter): New method. Sets filter type for
10235 interpolation of pixel values.
10237 2004-02-16 David Jee <djee@redhat.com>
10239 * java/awt/GridBagLayout.java
10240 (calcCellSizes): Rows or columns with zero sizes should still be
10241 considered for extra space distribution.
10243 2004-02-16 Kim Ho <kho@redhat.com>
10245 * javax/swing/JLabel.java: Re-implement.
10246 * javax/swing/plaf/basic/BasicLabelUI.java
10248 * javax/swing/plaf/basic/BasicLookAndFeel.java:
10251 2004-02-16 Kim Ho <kho@redhat.com>
10253 * javax/swing/JSlider.java: Fix indentation and comments.
10254 (setModel): Remove null check to conform with Sun's.
10255 (setOrientation): Throw exception if not
10256 HORIZONTAL or VERTICAL.
10257 (getInverted): Use private variable instead of
10258 ComponentOrientation.
10259 (setInverted): ditto.
10260 * javax/swing/plaf/basic/BasicSliderUI.java:
10261 Fix indentation and comments.
10262 (propertyChange): Remove check for inverted slider, handle
10264 (getMinimumSize): Return preferred size.
10265 (getMaximumSize): ditto.
10266 (calculateFocusRect): Don't relocate rectangle.
10267 (drawInverted): Return XOR of the slider's inversion and
10268 the component's orientation.
10269 (paint): Update leftToRightCache
10271 2004-02-13 David Jee <djee@redhat.com>
10273 * java/awt/GridBagLayout.java
10274 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
10275 code to helper methods.
10276 (sortBySpan): New helper method.
10277 (distributeSizeAndWeight): Likewise.
10278 (calcCellWeights): Likewise.
10279 (calcCellSizes): Add comments.
10281 2004-02-13 David Jee <djee@redhat.com>
10283 * java/awt/Component.java
10284 (show): Only do something if component is invisible at the moment.
10285 (hide): Only do something if component is visible at the moment.
10286 (reshape): If lightweight, erase old bounds and repaint new bounds.
10288 2004-02-13 Kim Ho <kho@redhat.com>
10290 * Makefile.am: Updated for new file.
10291 * Makefile.in: Regenerated.
10292 * javax/swing/JSlider.java: Reimplement.
10293 * javax/swing/SwingUtilities.java
10294 (layoutCompoundLabel): Use icon height
10296 (paintComponent): Implement.
10297 * javax/swing/plaf/basic/BasicLookAndFeel.java:
10298 Add JSlider defaults.
10299 * javax/swing/plaf/basic/BasicSliderUI.java:
10300 Implement. New file.
10302 2004-03-17 Michael Koch <konqueror@gmx.de>
10304 * gnu/java/net/PlainDatagramSocketImpl.java
10305 (RECEIVE_LOCK): New member field.
10306 (SEND_LOCK): New member field.
10307 (send0): New method.
10308 (send): Synchronize on SEND_LOCK.
10309 (receive0): New method.
10310 (receive): Synchronize on RECEIVE_LOCK.
10311 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
10312 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
10313 gnu/java/net/natPlainDatagramSocketImplWin32.cc
10314 (send0): Renamed from send.
10315 (receive0): Renamed from receive.
10316 2004-03-17 Michael Koch <konqueror@gmx.de>
10318 * gnu/java/net/natPlainSocketImplPosix.cc
10319 (write): Just call write(jbyteArray, offset, len).
10320 (read): Just call read(jbyteArray, offset, len).
10322 2004-03-16 Michael Koch <konqueror@gmx.de>
10324 * javax/swing/JTabbedPane.java
10325 (serialVersionUID): New field.
10327 2004-03-16 Norbert Frese <postfach@nfrese.net>
10329 * java/net/InetAddress.java
10330 (getByName): Handle hostname == "" case.
10332 2004-03-16 Dalibor Topic <robilad@kaffe.org>
10334 Reported by: Adam Heath <doogie@debian.org>
10335 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
10338 2004-03-15 Michael Koch <konqueror@gmx.de>
10340 * java/util/Locale.java: Reverting my last patch
10341 and add a comment why the original version was okay.
10343 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
10345 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
10346 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
10347 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
10348 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
10350 2004-03-12 Michael Koch <konqueror@gmx.de>
10352 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
10354 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
10356 * java/net/URI.java (toURL): Implemented.
10358 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
10360 * java/net/URI.java
10361 (URI_REGEXP) updated to contain scheme specific part.
10362 (SCHEME_SPEC_PART_GROUP) new constant.
10363 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
10364 updated to make room for SCHEME_SPEC_PART_GROUP.
10365 (parseURI) parse scheme specific part.
10366 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
10367 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
10368 getQuery, getFragment) implemented.
10370 2004-03-12 Dalibor Topic <robilad@kaffe.org>
10372 * libraries/javalib/java/net/URI.java
10373 partially implemented using java.util.regex.
10374 (URI_REGEXP) new constant. Used to parse URIs.
10375 (SCHEME_GROUP) new constant representing index of scheme group
10377 (AUTHORITY_GROUP) new constant representing index of authority
10378 group in parsed URI.
10379 (PATH_GROUP) new constant representing index of path group in
10381 (QUERY_GROUP) new constant representing index of query group in
10383 (FRAGMENT_GROUP) new constant representing index of fragment
10384 group in parsed URI.
10385 (getURIGroup) new static utility method.
10386 (parseURI) implemented.
10387 (quote) stub for new static utility method.
10388 (quoteAuthority) stub for new static utility method.
10389 (quoteHost) stub for new static utility method.
10390 (quotePath) stub for new static utility method.
10391 (quoteUserInfo) stub for new static utility method.
10393 (create) don't throw URISyntaxException. Implemented.
10394 (toString) implemented.
10396 2004-03-12 Michael Koch <konqueror@gmx.de>
10398 * java/net/HttpURLConnection.java
10399 (getResponseCode): Fix another typo in javadoc.
10401 2004-03-11 Michael Koch <konqueror@gmx.de>
10403 * java/util/logging/Level.java
10404 (parse): Use String.equals() instead of ==.
10406 2004-03-11 Michael Koch <konqueror@gmx.de>
10408 * gnu/java/net/protocol/jar/Connection.java
10409 (getContentLength): New method.
10411 2004-03-11 Michael Koch <konqueror@gmx.de>
10413 * gnu/java/net/PlainSocketImpl.java:
10414 Reformated to merge better with classpath's version.
10416 2004-03-11 Michael Koch <konqueror@gmx.de>
10418 * java/util/Locale.java
10419 (getISO3Language): Use String.equals() instead of ==.
10420 (getISO3Country): Likewise.
10422 2004-03-11 Dalibor Topic <robilad@kaffe.org>
10424 * java/text/AttributedString.java
10425 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
10426 Use HashMap instead of Hashtable since value can be null, and
10427 you can not store a null value in a Hashtable.
10429 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
10431 * java/text/AttributedStringIterator.java
10432 (getAllAttributesKey): Return only keys concerned
10433 by the current iterator.
10434 (getAttributes): Use strict inequality for
10437 2004-03-11 Michael Koch <konqueror@gmx.de>
10439 * java/net/HttpURLConnection.java:
10440 Fixed typo in javadoc.
10442 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
10444 * java/io/BufferedInputStream.java (marktarget): New field for max
10446 (CHUNKSIZE): New constant for incremental mark buffer allocation.
10447 (mark): Use new fields.
10449 (read(byte[],int,int)): Likewise.
10451 (refill): Likewise.
10453 2004-03-11 Mark Wielaard <mark@klomp.org>
10455 * java/beans/BeanDescriptor.java (BeanDescriptor):
10456 Set the FeatureDescriptor programmatic name.
10458 2004-03-11 Michael Koch <konqueror@gmx.de>
10460 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
10461 This file was was just copied form java/io/natFileDescriptorEcos.cc
10462 and never changed to compile correctly.
10464 2004-03-11 Michael Koch <konqueror@gmx.de>
10466 * gnu/java/nio/PipeImpl.java
10467 (SourceChannelImpl): Made final.
10468 (read): Implemented.
10469 (SinkChannelImpl): Made final.
10470 (write): Implemented.
10472 2004-03-11 Michael Koch <konqueror@gmx.de>
10474 * gnu/java/net/PlainDatagramSocketImpl.java:
10475 Reformated to match classpath's version more.
10477 2004-03-11 Michael Koch <konqueror@gmx.de>
10479 * gnu/java/awt/peer/ClasspathFontPeer.java:
10480 Fixed javadoc to be correct xhtml.
10481 * gnu/java/awt/peer/gtk/GtkArgList.java
10482 (add): Use Boolean.valueOf() instead of new Boolean().
10484 2004-03-09 Michael Koch <konqueror@gmx.de>
10486 * java/lang/Thread.java
10487 (runnable): Moved around.
10488 (daemon): Renamed from daemon_flag.
10489 (contextClassLoader): Renamed from context_class_loader.
10490 (Thread): Reordered constructors.
10491 (activeCount): Use group directly.
10492 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
10493 (holdsLock): Reworked javadoc.
10494 (setDaemon): Reworked.
10495 * java/lang/natThread.cc
10496 (destroy): Removed.
10498 2004-03-08 Anthony Green <green@redhat.com>
10500 * Makefile.am: Build property resource files into libgcj.
10501 * Makefile.in: Rebuilt.
10502 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
10503 java/util/regex/PatternSyntaxException.java,
10504 gnu/regexp/CharIndexed.java,
10505 gnu/regexp/CharIndexedCharArray.java,
10506 gnu/regexp/CharIndexedInputStream.java,
10507 gnu/regexp/CharIndexedReader.java,
10508 gnu/regexp/CharIndexedString.java,
10509 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
10510 gnu/regexp/REException.java,
10511 gnu/regexp/REFilterInputStream.java,
10512 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
10513 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
10514 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
10515 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
10516 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
10517 gnu/regexp/RETokenLookAhead.java,
10518 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
10519 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
10520 gnu/regexp/RETokenStart.java,
10521 gnu/regexp/RETokenWordBoundary.java,
10522 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
10524 2004-03-03 Per Bothner <per@bothner.com>
10526 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
10527 Optimize when argument is a FileChannelImpl.
10528 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
10529 New native methods.
10530 * java/nio/channels/natChannels.cc: New file for new native methods.
10531 * Makefile.am: Update accordingly.
10533 2004-03-02 Jan Hubicka <jh@suse.cz>
10535 * configure.host: Pass -fno-omit-frame-pointer for i386.
10536 * configure.in: Likewise.
10537 * configure: Regenerate.
10539 2004-03-01 Per Bothner <per@bothner.com>
10541 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
10543 2004-02-29 Per Bothner <per@bothner.com>
10545 * java/nio/channels/FileChannelImpl.java: Moved to package
10546 gnu/java/nio/channels, since we need to refer to it from java.io.
10547 * java/nio/channels/natFileChannelImpl.cc: Removed file.
10548 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
10549 from java/nio/channels. Don't depend on FileDescriptor.
10550 (in, out, err): New static fields.
10552 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
10553 from FileDescriptor.
10554 (by): Removed MappedByteBuffer field.
10555 (map): New working implementation.
10556 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
10557 some code "ported" from natFileDescriptoPosix.cc.
10558 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
10559 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
10560 * java/io/FileDescriptor.java: Implement on top of FileChannel.
10561 Remove native methods.
10562 * Makefile.am, configure.in: Updated accordingly.
10564 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
10565 (ch): New FileChannelImpl field. Update constructor to match.
10566 (releaseImpl): Remove native method. Instead ...
10567 (release): Call unlock on channel.
10568 * gnu/java/nio/natFileLockImpl.cc: Removed file.
10570 * java/io/natFileDescriptorEcos.cc: Remove file.
10571 * java/io/natFileDescriptorPosix.cc: Remove file.
10572 * java/io/natFileDescriptorWin32.cc: Remove file.
10573 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
10574 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
10575 (<init>(FileChannelImpl)): New package-private constructor.
10576 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
10577 (available, close, read, skip): Implement using FileChannelImpl.
10578 (getFD): Allocate FileDescriptor if needed.
10579 (getChannel): Is now trivial.
10580 * java/io/FileOutputStream.java: Corresponding changes.
10581 * java/io/RandomAccessFile.java: Corresponding changes.
10583 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
10584 unmapImpl): New dummy methods, to be overridden by subclass.
10585 (finalize, isLoaded, load, force): New methods.
10586 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
10587 Now works, at least for read mapping.
10589 * java/lang/natPosixProcess.cc (startProcess): Implement standard
10590 streams using FileChannelImpl, not FileDescriptor.
10591 * java/lang/natWin32Process.cc (startProcess): Likewise.
10593 2004-02-28 Michael Koch <konqueror@gmx.de>
10595 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
10598 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
10600 * java/io/ObjectInputStream.java
10601 (readClassDescriptor): Keep elements of the mapping non null.
10602 (checkTypeConsistency): New method.
10603 (readFields): Fixed main loop and base logic. Small reindentation.
10604 * java/io/ObjectStreamField.java
10605 (lookupField): New method to update the field reference.
10606 (checkFieldType): New method.
10607 * java/io/ObjectStreamClass.java
10608 (setClass, setFields): Call lookupField when building the field
10609 database. Check the real field type.
10611 2004-02-28 Michael Koch <konqueror@gmx.de>
10613 * java/nio/ByteOrder.java
10614 (nativeOrder): Use equals() to compare strings.
10616 2004-02-26 Michael Koch <konqueror@gmx.de>
10618 * gnu/java/nio/FileLockImpl.java
10619 (finalize): Made protected.
10620 * java/nio/channels/FileChannel.java
10621 (MapMode.READ_ONLY): Made final.
10622 (MapMode.READ_WRITE): Made final.
10623 (MapMode.PRIVATE): Made final.
10624 * java/nio/channels/SocketChannel.java
10625 (open): Simplified code.
10626 * java/nio/channels/spi/AbstractSelectableChannel.java
10627 (registered): Unused, removed.
10628 (keyFor): Check channel is open, only locate key
10629 and not add a new one.
10630 (register): Don't delete attachments.
10632 2004-02-26 Michael Koch <konqueror@gmx.de>
10634 * gnu/java/awt/ComponentDataBlitOp.java
10635 (INSTANCE): Made final.
10636 * gnu/java/awt/image/ImageDecoder.java:
10638 (cm): Unused, removed.
10640 2004-02-26 Michael Koch <konqueror@gmx.de>
10642 * gnu/java/nio/DatagramChannelImpl.java
10643 (send): Check if target address is resolved.
10645 2004-02-26 Michael Koch <konqueror@gmx.de>
10647 * Makefile.am: Generate and install headers for inner classes in
10648 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
10649 * Makefile.in: Regenerated.
10651 2004-02-24 Anthony Green <green@redhat.com>
10653 * java/lang/StringBuffer.java: No need to NULL out remainder of
10654 buffer since ensureCapacity_unsynchronized will have done this for
10657 2004-02-20 Michael Koch <konqueror@gmx.de>
10659 * gnu/java/net/protocol/jar/Handler.java
10660 (): Removed unneeded check for file != null. java.net.URL.getFile()
10661 returns an empty string but never null.
10663 2004-02-20 Michael Koch <konqueror@gmx.de>
10665 * gnu/gcj/convert/Convert.java
10666 (main): Use equals() to compare strings.
10668 2004-02-20 Michael Koch <konqueror@gmx.de>
10670 * javax/swing/AbstractButton.java: Made several constants final.
10671 (getRolloverSelectedIcon): Made public.
10672 (getSelectedIcon): Made public.
10674 2004-02-16 Per Bothner <per@bothner.com>
10676 * java/nio/CharBufferImpl.java: Inline super constructor.
10677 * java/nio/DoubleBufferImpl.java: Likewise.
10678 * java/nio/FloatBufferImpl.java: Likewise.
10679 * java/nio/IntBufferImpl.java: Likewise.
10680 * java/nio/LongBufferImpl.java: Likewise.
10681 * java/nio/ShortBufferImpl.java: Likewise.
10682 * java/nio/CharBuffer.java: Remove unused constructor.
10683 * java/nio/DoubleBuffer.java: Likewise.
10684 * java/nio/FloatBuffer.java: Likewise.
10685 * java/nio/IntBuffer.java: Likewise.
10686 * java/nio/LongBuffer.java: Likewise.
10687 * java/nio/ShortBuffer.java: Likewise.
10688 * java/nio/CharViewBufferImpl.java: New convenience constructor.
10689 Fix buggy call to super constructor.
10690 * java/nio/DoubleViewBufferImpl.java: Likewise.
10691 * java/nio/FloatViewBufferImpl.java: Likewise.
10692 * java/nio/IntViewBufferImpl.java: Likewise.
10693 * java/nio/LongViewBufferImpl.java: Likewise.
10694 * java/nio/ShortViewBufferImpl.java: Likewise.
10696 * java/nio/ByteBuffer.java (endian): Make non-private so other
10697 java.nio classes can inherit it.
10698 (<init>): Don't bother clearing array_offset.
10699 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
10700 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
10701 Remove redundant test.
10703 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
10704 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
10705 Use new XxxViewBufferImpl constructors.
10706 * java/nio/MappedByteBufferImpl.java: Likewise.
10707 * java/nio/DirectByteBufferImpl.java: Likewise.
10709 * java/nio/ByteBufferImpl.java: Remove one constructor.
10710 Inline super in remaining constructor.
10711 * java/nio/ByteBuffer.java: Remove unused constructor.
10713 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
10715 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
10716 * java/nio/DirectByteBufferImpl.java (owner): New field.
10717 (offset): Remove unused field.
10718 (<init>): Modify one and add another constructor. Change callers.
10719 (allocateDirect): Removed - not used.
10720 (getImpl, putImpl): Make static and pass address explicitly,
10721 to make them useful for MappedByteBufferImpl.
10722 (get, put): Check for underflow. Modify for new getImpl.
10723 (getImpl): New native method where target is array.
10724 (get(byte[],int,int)): Use the above.
10725 (adjustAddress): New static native method.
10726 (slice, duplicate, asReadOnly): New implementations.
10727 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
10728 adjustAddress): New or updated native methods.
10730 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
10732 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
10733 overflow of fieldmapping.
10735 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
10737 * javax/swing/undo/UndoManager.java: Re-written from scratch.
10739 2004-02-14 Per Bothner <per@bothner.com>
10741 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
10742 Set closed before calling implCloseChannel, as in the spec.
10744 2004-02-09 Graydon Hoare <graydon@redhat.com>
10746 * javax/swing/ToggleButtonModel.java: Remove dead class.
10747 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
10748 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
10749 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
10750 * Makefile.am: Update for new and removed files.
10751 * Makefile.in: Regenerate.
10753 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
10754 * javax/swing/AbstractButton.java
10755 (AbstractButton): Initialize fields correctly in ctor.
10756 * javax/swing/JCheckbox.java
10757 (JCheckBox): Override painting flags.
10758 * javax/swing/DefaultButtonModel.java: Conform to sun.
10759 * javax/swing/JComponent.java (paint): Fill with background color
10761 (processComponentKeyEvent)
10762 (processFocusEvent)
10764 (processMouseMotionEvent): Remove event-consuming empty methods.
10765 (getUIClassID): Return "ComponentUI" not "JComponent"
10766 * javax/swing/JFrame.java: Remove some debugging chatter.
10767 (JFrame): Subscribe to window events.
10768 * javax/swing/JRadioButton.java
10769 (JRadioButton): Override painting flags.
10770 * javax/swing/JRootPane.java
10771 (JRootPane): Set background from UIDefaults.
10772 * javax/swing/JToggleButton.java
10773 (ToggleButtonModel): New inner class.
10774 (JToggleButton): Override layout alighment.
10775 * javax/swing/SwingUtilities.java:
10776 (getLocalBounds): Return width and height, not x and y.
10777 (calculateInnerArea): Use local bounds, not bounds.
10778 (layoutCompoundLabel): Provide overridden form.
10779 (layoutCompoundLabel): Correct bugs.
10780 * javax/swing/UIDefaults.java: Correct comment.
10781 * javax/swing/plaf/basic/BasicButtonUI.java:
10782 Move most logic into defaults, external listener.
10783 (paintIcon): Implement icon painting.
10784 (paint): Fix state painting to conform to changes in model.
10785 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
10786 Remove most dead/wrong methods.
10787 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
10788 * javax/swing/plaf/basic/BasicIconFactory.java:
10789 (DummyIcon): New class.
10790 (getMenuItemCheckIcon)
10791 (getMenuItemArrowIcon)
10793 (getCheckBoxMenuItemIcon)
10794 (getRadioButtonMenuItemIcon)
10795 (createEmptyFrameIcon): Return DummyIcons, not null.
10796 (getCheckBoxIcon): Implement an icon that looks like sun's.
10797 (getRadioButtonIcon): Implement an icon that looks like sun's.
10798 * javax/swing/plaf/basic/BasicLookAndFeel.java
10799 (initComponentDefaults): Fix impossible values, add some missing.
10800 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
10801 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
10802 Remove most dead/wrong methods.
10804 (getDefaultIcon): New method.
10805 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
10806 Remove most dead/wrong methods.
10807 * javax/swing/plaf/metal/MetalLookAndFeel.java
10808 (getDefaults): Return super.getDefaults(), not BasicDefaults.
10809 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
10810 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
10811 Implement "clearing" as drawing, when on pixmap drawables.
10813 * javax/swing/JButton.java (getUIClassID):
10814 * javax/swing/JCheckBox.java (getUIClassID):
10815 * javax/swing/JEditorPane.java (getUIClassID):
10816 * javax/swing/JLabel.java (getUIClassID):
10817 * javax/swing/JList.java (getUIClassID):
10818 * javax/swing/JOptionPane.java (getUIClassID):
10819 * javax/swing/JPanel.java (getUIClassID):
10820 * javax/swing/JPasswordField.java (uiClassID):
10821 * javax/swing/JRadioButton.java (getUIClassID):
10822 * javax/swing/JRootPane.java (getUIClassID):
10823 * javax/swing/JScrollPane.java (getUIClassID):
10824 * javax/swing/JTabbedPane.java (getUIClassID):
10825 * javax/swing/JToggleButton.java (getUIClassID):
10826 * javax/swing/JTree.java (getUIClassID):
10827 * javax/swing/JViewport.java (getUIClassID):
10828 * javax/swing/text/JTextComponent.java (getUIClassID):
10829 Return "fooUI" not "Jfoo"
10831 2004-02-11 Michael Koch <konqueror@gmx.de>
10833 * java/net/DatagramSocket.java
10834 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
10836 (setBroadcast): Likewise.
10837 * java/net/MulticastSocket.java
10838 (setLoopbackMode): Likewise.
10839 * java/net/ServerSocket.java
10840 (setReuseAddress): Likewise.
10841 * java/net/Socket.java
10842 (setTcpNoDelay): Likewise.
10843 (setSoLinger): Likewise.
10844 (setOOBInline): Likewise.
10845 (setKeepAlive): Likewise.
10846 (setReuseAddress): Likewise.
10847 * java/net/URLConnection.java
10848 (setContentHandler): Replace == with equals().
10849 * java/net/URLStreamHandler.java
10850 (hostSEquals): Fix checking host addresses.
10851 (toExternalForm): Dont check protocol for null. We know already its
10854 2004-02-10 David Jee <djee@redhat.com>
10856 * java/awt/BorderLayout.java
10857 (calcCompSize): Invisible components get zero dimensions.
10858 * java/awt/Button.java
10859 (setLabel): Set actionCommand.
10860 * java/awt/Component.java
10861 (show): Invalidate component and parent container.
10864 2004-02-10 David Jee <djee@redhat.com>
10866 * java/awt/GridBagLayout.java
10867 (GridBagLayout): New private field, internalcomptable.
10868 (lookupInternalConstraints): New method.
10869 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
10870 (GetLayoutInfo): Reimplement.
10871 (calcCellSizes): Ignore rows/columns with size 0.
10873 2004-02-10 Michael Koch <konqueror@gmx.de>
10875 * gnu/java/awt/EmbeddedWindow.java
10876 (setHandle): Use java.awt.Component.getPeer() instead of
10877 java.awt.Component.peer directly.
10879 2004-02-10 David Jee <djee@redhat.com>
10881 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
10882 (gtkSetLabel): New native method definition.
10883 (setLabel): Use gtkSetLabel.
10884 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
10885 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
10887 2004-02-10 Alan Modra <amodra@bigpond.net.au>
10889 * include/powerpc-signal.h: Revert 2004-01-21 change.
10890 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
10891 from syscall for ppc32 versions.
10893 2004-02-08 Per Bothner <per@bothner.com>
10895 * java/nio/ByteBuffer.java (shiftDown): New helper method.
10896 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
10897 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
10898 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
10899 Pass ByteOrder parameter to most methods, since the underlying
10900 ByteBuffer's order isn't always what we should use.
10901 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
10902 * java/nio/DirectByteBufferImpl.java: Likewise.
10903 Use ByteBufferHelper methods.
10904 * java/nio/MappedByteBufferImpl.java: Likewise.
10905 (compact): Use shiftDown.
10906 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
10907 (get, put): Use ByteBufferHelper.
10908 (compact): Use new shiftDown method.
10909 (duplicate(boolean)): New helper method.
10910 (duplicate, asReadOnlyBuffer): Use it.
10911 (order): Return endian field.
10912 * java/nio/DoubleViewBufferImpl.java: Likewise.
10913 * java/nio/FloatViewBufferImpl.java: Likewise.
10914 * java/nio/IntViewBufferImpl.java: Likewise.
10915 * java/nio/LongViewBufferImpl.java: Likewise.
10916 * java/nio/ShortViewBufferImpl.java: Likewise.
10917 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
10918 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
10919 (compact): Re-implement using shiftDown.
10921 2004-02-08 Andreas Jaeger <aj@suse.de>
10923 * include/x86_64-signal.h: Fix typo.
10925 2004-02-08 Diego Novillo <dnovillo@redhat.com>
10927 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
10928 qualifier to _regs.
10929 (HANDLE_DIVIDE_OVERFLOW): Likewise.
10931 2004-02-06 Michael Koch <konqueror@gmx.de>
10933 * java/io/ObjectInputStream.java
10934 (currentClassLoader): Reverted to old version of this method.
10936 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
10938 * java/io/ObjectInputStream.java: Made all calls
10939 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
10940 use cached info from ObjectStreamClass. (readClassDescriptor):
10941 Cache more information in ObjectStreamClass. (processResolution,
10942 readFields): Use cached info from ObjectStreamClass.
10943 (newObject): Throw exception instead of returning null for failure.
10944 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
10945 setCharField, setDoubleField, setFloatField, setIntField,
10946 setLongField, setShortField, setObjectField, readObjectParams):
10947 Removed. (dumpElement, dumpElementln): Removed dump flag condition
10949 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
10950 (setClass): Added call to cacheMethods() (findMethod): New method.
10951 (cacheMethods): New method. (ObjectStreamClass): Added call to
10952 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
10953 AccessController.doPrivileged to invoke setAccessible.
10954 (readObjectMethod, readResolveMethod, realClassIsSerializable,
10955 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
10957 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
10958 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
10959 isPrimitive): Made safe for cases where type == null.
10960 (setBooleanField, setByteField, setCharField, setShortField,
10961 setIntField, setLongField, setFloatField, setDoubleField,
10962 setObjectField): New methods.
10964 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
10966 * java/awt/Component.java (getFont): Return a default font
10969 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
10970 (Scrollbar (int, int, int, int, int)): Make default page
10972 (setValues): Only call peer.setValues if one of the values has
10974 (generateName): New method.
10975 (getUniqueLong): New method.
10976 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
10977 (range_scrollbar): Remove structure.
10978 (post_adjustment_event): Remove function.
10979 (post_change_event): Accept jobject argument.
10980 (create): Cast jints to gdoubles. Round scrollbar values to the
10981 nearest integer. Clamp min, max and value settings.
10982 (connectJObject): Connect hook to widget->window.
10983 (connectSignals): Remove range_scrollbar structure variables.
10984 Remove "move-slider" connection. Pass global peer reference to
10985 "value-changed" callback.
10986 (setLineIncrement): Cast jint value to gdouble.
10987 (setPageIncrement): Likewise.
10988 (setValues): Likewise. Clamp min, max and value settings.
10990 2004-02-05 Michael Koch <konqueror@gmx.de>
10992 * javax/swing/AbstractCellEditor.java
10993 (getCellEditorValue): Removed.
10994 * javax/swing/Box.java: Reformated.
10995 (serialVersionUID): New field.
10996 * javax/swing/ButtonGroup.java:
10997 Removed some weird whitespace.
10998 * javax/swing/CellEditor.java: Reformated.
10999 * javax/swing/CellRendererPane.java
11000 (serialVersionUID): New field.
11001 (AccessibleCellRendererPaneserialVersionUID): New field.
11002 * javax/swing/DefaultListModel.java
11003 (serialVersionUID): New field.
11004 * javax/swing/JEditorPane.java
11005 (serialVersionUID): New field.
11006 (setPage): Throws IOException.
11007 (addHyperlinkListener): Implemented.
11008 (removeHyperlinkListener): Implemented.
11009 (getHyperlinkListener): New method.
11010 * javax/swing/JFileChooser.java
11011 (serialVersionUID): New field.
11012 (AccessibleJFileChooser.serialVersionUID): New field.
11013 (addActionListener): Implemented.
11014 (removeActionListener): Implemented.
11015 (getActionListeners): New method.
11016 * javax/swing/JFormattedTextField.java
11017 (serialVersionUID): New field.
11018 (AbstractFormatter.serialVersionUID): New field.
11019 (clone): Throws CloneNotSupportedException
11020 (setEditValid): Add missing argument.
11021 (stringToValue): Throws ParseExcpetion.
11022 (valueToString): Throws ParseException.
11023 (commitEdit): Throws ParseException.
11024 * javax/swing/JLabel.java
11025 (serialVersionUID): New field.
11026 * javax/swing/JList.java
11027 (serialVersionUID): New field.
11028 (addListSelectionListener): Reformated.
11029 (removeListSelectionListener): Reformated.
11030 (getListSelectionListeners): New method.
11031 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
11033 (serialVersionUID): New field.
11034 * javax/swing/table/AbstractTableModel.java
11035 (getValueAt): Removed.
11036 (getColumnCount): Removed.
11037 (getRowCount): Removed.
11039 2004-02-05 Michael Koch <konqueror@gmx.de>
11041 * java/awt/datatransfer/DataFlavor.java
11042 (imageFlavor): Javadoc added.
11043 (javaJVMLocalObjectType): Fixed.
11045 2004-02-05 Michael Koch <konqueror@gmx.de>
11047 * java/lang/Thread.java
11048 (Thread): Reordered.
11049 (setContextClassLoader): Fixed javadoc comment.
11050 (setPriority): Reordered.
11051 (yield): Reordered.
11052 (initialize_native): Reordered.
11053 (gen_name): Reordered.
11055 2004-02-05 Michael Koch <konqueror@gmx.de>
11057 * java/lang/Thread.java: Reordered fields, reformated much code,
11058 no functional changes, some variables renamed, javadoc comments
11061 2004-02-05 Michael Koch <konqueror@gmx.de>
11063 * java/util/zip/Deflater.java,
11064 java/util/zip/DeflaterOutputStream.java,
11065 java/util/zip/GZIPInputStream.java:
11066 Reformated and javadoc comments merged from classpath.
11068 2004-02-05 Michael Koch <konqueror@gmx.de>
11070 * gnu/java/nio/NIOServerSocket.java
11071 (impl): Unused, removed.
11072 * gnu/java/nio/SocketChannelImpl.java
11073 (finnishConnect): Don't throw NoConnectionPendingException if not
11074 connected or no connection pending.
11076 2004-02-02 Graydon Hoare <graydon@redhat.com>
11078 * javax/swing/SwingUtilities.java: Many new functions.
11079 * java/awt/Container.java (LightweightDispatcher): Reimplement.
11080 * javax/swing/basic/BasicGraphicsUtils.java
11081 (getPreferredButtonSize): Start layout from top-left corner.
11083 2004-02-04 Olga Rodimina <rodimina@redhat.com>
11085 * java/awt/geom/AffineTransform.java:
11086 Corrected comments on the field definitions for
11088 (shear): Fixed few errors that caused shear
11089 transformation to be performed incorrectly.
11090 (createInverse): Fixed to return correct
11091 inverse of the given matrix.
11093 2004-02-03 Tom Tromey <tromey@redhat.com>
11095 * java/lang/natPosixProcess.cc (startProcess): Handle case where
11096 PATH or LD_LIBRARY_PATH is not set in parent environment.
11098 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
11100 * gnu/java/awt/peer/gtk/GtkListPeer.java,
11101 java/awt/BorderLayout.java, java/awt/CardLayout.java,
11102 java/awt/CheckboxGroup.java, java/awt/Choice.java,
11103 java/awt/Component.java, java/awt/Container.java,
11104 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
11105 java/awt/LayoutManager2.java, java/awt/List.java,
11106 java/awt/Menu.java, java/awt/MenuBar.java,
11107 java/awt/MenuItem.java, java/awt/Polygon.java,
11108 java/awt/Rectangle.java, java/awt/ScrollPane.java,
11109 java/awt/Scrollbar.java, java/awt/TextArea.java,
11110 java/awt/TextField.java,
11111 java/awt/image/renderable/RenderContext.java,
11112 javax/swing/JApplet.java: Fix handling of alias methods, where a
11113 method has been deprecated in favour of a new one with the same
11114 funtion but a different name. Put the method implementation in
11115 the deprecated method and have the new method call the
11116 deprecated one. Make all other code call the new method.
11118 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
11120 * gnu/java/nio/DatagramChannelImpl.java
11121 (inChannelOperation): New field.
11122 (isInChannelOperation): New accessor.
11123 (setInChannelOperation): New modifier.
11124 (receive): Use capacity() - position() of destination
11125 buffer instead of remaining(). Set and reset our "in
11126 channel operation indicator" before and after delegating
11127 the receive to our datagram socket. Removed testing code.
11128 Update destination buffer's current position if it is
11129 backed by a byte array (hasArray() is true).
11130 (send): Set and reset our "in channel operation indicator"
11131 before and after delegating the send to our datagram socket.
11132 Removed testing code. Update source buffer's current position
11133 if it is backed by a byte array (hasArray() is true).
11134 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
11135 Use capacity() - position() of destination buffer instead
11137 * java/net/DatagramSocket.java (receive): Don't throw an
11138 IllegalBlockingModeException if we have a non-blocking
11139 channel which initiated this operation.
11142 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
11144 * configure.in: Add pkgconfig check for glib and gthread.
11145 * configure: Regenerate.
11147 2004-02-01 Michael Koch <konqueror@gmx.de>
11149 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
11151 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
11152 * verify.cc (debug_print): Mark 'fmt' unused.
11154 2004-01-30 Michael Koch <konqueror@gmx.de>
11156 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
11157 * configure: Regenerated.
11158 * glib-2.0.m4: Removed.
11159 * gtk-2.0.m4: Removed.
11160 * libart.m4: Removed.
11161 * pkg.m4: New file.
11163 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
11165 * gnu/java/net/PlainSocketImpl.java
11166 (inChannelOperation): New field.
11167 (isInChannelOperation): New accessor.
11168 (setInChannelOperation): New modifier.
11169 * gnu/java/nio/ServerSocketChannelImpl.java
11170 (accept): Set and reset our server socket's PlainSocketImpl's
11171 "in channel operation" indicator before and after delegating
11172 the accept to our server socket.
11173 * gnu/java/nio/SocketChannelImpl.java
11174 (connect): Set and reset our socket's PlainSocketImpl's "in channel
11175 operation" indicator before and after delegating the operation to
11179 * java/net/ServerSocket.java (implAccept): Don't throw an
11180 IllegalBlockingModeException if we have a non-blocking
11181 channel which initiated this accept operation.
11182 * java/net/Socket.java (connect): Don't throw an
11183 IllegalBlockingModeException if we have a non-blocking
11184 channel which initiated this connect operation.
11185 * java/nio/channels/spi/AbstractSelectableChannel.java
11186 (configureBlocking): Only call implConfigureBlocking() if
11187 the desired blocking mode is different from our current one.
11189 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
11191 * java/io/BufferedReader.java (sbuf): New field.
11192 (readLine): Use String.valueOf instead of new String() as per
11193 Per Bothner's suggestion. Use instance sbuf field instead of a
11194 local StringBuffer instance.
11195 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
11196 caller's buffer to refill().
11197 (read(void)): Pass our internal work buffer to refill if our
11198 input queue is empty.
11199 (refill): Changed return type to int. Use the specified buffer
11200 instead of our work buffer as per Bryce McKinlay's suggestion.
11201 Return the number of characters read or -1 for EOF.
11203 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
11205 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
11207 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
11209 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
11210 * Makefile.in: Re-generated.
11211 * gnu/awt/xlib/XFontPeer.java: New file.
11212 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
11213 (setClip): Commented out debug printout.
11214 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
11215 (getFontPeer): Return XFontPeer.
11216 (getLocalGraphicsEnvironment): New method.
11217 (getClasspathFontPeer): New method.
11218 (createFont): New method.
11220 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
11222 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
11225 2004-01-29 Kim Ho <kho@redhat.com>
11227 * gnu/java/awt/peer/gtk/GtkFramePeer.java
11228 (gtkLayoutSetVisible): New method
11229 (setMenuBar): Hide layout before setting MenuBar
11230 and reshow it after.
11231 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
11232 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
11234 2004-01-28 Michael Koch <konqueror@gmx.de>
11236 * gnu/java/lang/ClassHelper.java
11237 (getPackagePortion): Removed.
11239 2004-01-28 Michael Koch <konqueror@gmx.de>
11241 * javax/swing/JComponent.java
11242 (listenerList): Initalize globally.
11243 (ancestor_list): Removed.
11244 (veto_list): Removed.
11245 (change_list): Removed.
11246 (get_veto_list): Removed.
11247 (get_change_list): Removed.
11248 (get_ancestor_list): Removed.
11249 (removeAncestorListener): Reimplemented.
11250 (removePropertyChangeListener): Likewise.
11251 (removeVetoableChangeListener): Likewise.
11252 (addAncestorListener): Likewise.
11253 (addPropertyChangeListener): Likewise.
11254 (addVetoableChangeListener): Likewise.
11255 (getListeners): New method.
11256 (getAncestorListeners): Likewise.
11257 (getVetoableChangeListeners): Likewise.
11258 (fireVetoableChange): Throws PropertyVetoException.
11259 * javax/swing/JEditorPane.java
11260 (JEditorPane): Throws IOException.
11262 2004-01-28 David Jee <djee@redhat.com>
11264 * gnu/java/awt/peer/gtk/GtkFramePeer.java
11265 (create): Set the default foreground color to
11266 java.awt.SystemColor.windowText.
11268 2004-01-27 Michael Koch <konqueror@gmx.de>
11270 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
11271 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
11272 Reindented to merge with classpath.
11274 2004-01-27 David Jee <djee@redhat.com>
11276 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
11277 (addExposeFilter): Handle GtkFramePeer separately.
11278 (removeExposeFilter): Likewise.
11280 2004-01-27 Michael Koch <konqueror@gmx.de>
11282 * gnu/java/net/protocol/http/Connection.java
11283 (getOutputStream): Fixed typo.
11285 2004-01-27 Michael Koch <konqueror@gmx.de>
11287 * java/lang/Class.java
11288 (getConstructor): Removed SecurityException from throws clause.
11289 (_getConstructors): Likewise.
11290 (getConstructors): Likewise.
11291 (getDeclaredConstructor): Likewise.
11292 (getDeclaredClasses): Likewise.
11293 (getDeclaredConstructors): Likewise.
11294 (getDeclaredField): Likewise.
11295 (getDeclaredMethod): Likewise.
11296 (getDeclaredMethods): Likewise.
11297 (getField): Likewise.
11298 (getMethod): Likewise.
11299 (getMethods): Likewise.
11301 2004-01-27 Kim Ho <kho@redhat.com>
11303 * gnu/java/awt/peer/gtk/GtkFramePeer.java
11304 (removeMenuBarPeer): Remove MenuBarPeer argument.
11305 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
11306 (dispose): Call native method.
11307 * java/awt/Frame.java (setMenuBar): Create and remove
11308 MenuBar peers only if the Frame has a peer.
11309 (addNotify): Create the MenuBar peer if one exists.
11310 (removeNotify): Remove MenuBar peer if one exists.
11311 * java/awt/Menu.java: Fix imports.
11312 (addNotify): Don't use full class name.
11313 (removeNotify): Call removeNotify on all children.
11314 * java/awt/MenuBar.java (removeNotify): Call
11315 removeNotify on all children.
11316 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
11317 (removeMenuBarPeer): Remove MenuBarPeer argument.
11318 Iterate through children to find the Frame's MenuBar.
11319 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
11321 (dispose): Remove references to the MenuComponent.
11323 2004-01-27 Michael Koch <konqueror@gmx.de>
11325 * javax/swing/AbstractCellEditor.java: Reformated.
11326 * javax/swing/DefaultListSelectionModel.java
11327 (listenerList): Made protected.
11328 (addListSelectionListener): Javadoc added.
11329 (removeListSelectionListener): Likewise.
11330 (getListeners): Likewise.
11331 (getListSelectionListeners): Likewise.
11332 * javax/swing/JComboBox.java: Merged copyright year.
11333 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
11335 2004-01-26 Andrew Haley <aph@redhat.com>
11337 * javax/swing/table/JTableHeader.java: Extend JComponent
11339 2004-01-26 Kim Ho <kho@redhat.com>
11341 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
11344 2004-01-26 Kim Ho <kho@redhat.com>
11346 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
11348 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
11349 height and let the Layout Managers readjust anything that
11351 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
11352 (moveLayout): New method. Shift everything in the Gtk
11353 layout in the Y direction by an offset.
11355 2004-01-26 David Jee <djee@redhat.com>
11357 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
11358 (handleEvent): Implemented. Handles PaintEvents.
11359 (paint): Implemented. Use GTK native methods to queue updates
11360 for this heavyweight peer.
11361 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
11362 (handleEvent): Removed.
11363 * java/awt/Component.java
11364 (paint): Implemented. Explictly paint the heavyweight peer.
11365 (update): Clear the background for heavyweight components.
11366 (paintAll): No need to call peer.paint() anymore.
11367 (processEvent): Don't process PaintEvents here. It's now done in
11368 the peer's handleEvent().
11369 (processPaintEvent): Removed.
11370 * java/awt/Container.java
11371 (paint): No need to call super.paint(). Visit heavyweight
11373 (update): Don't clear the background here. It's done in
11374 Component.update().
11375 (visitChildren): Added check to not recurse into Containers.
11376 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
11377 (filter_expose_event_handler): New method. Filter unwanted
11378 expose events while painting heavyweight peers.
11379 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
11380 New method. Connect filter and block pre_event_handler.
11381 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
11382 New method. Disconnect filter and unblock pre_event_handler.
11383 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
11384 New method. Invalidate and update given area.
11385 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
11386 (pre_event_handler): Add checks for unwanted expose events.
11388 2004-01-26 David Jee <djee@redhat.com>
11390 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
11391 (find_bg_color_widget): For GtkButton, return its child.
11393 2004-01-26 Kim Ho <kho@redhat.com>
11395 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
11397 (setMenuBar): Grab MenuBar height and change insets.
11398 (setBounds): Account for MenuBar height.
11399 (postInsetsChangedEvent): Ditto.
11400 (postSizeAllocateEvent): Remove.
11401 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
11402 (menubar_resize_cb): Remove
11403 (setMenuBarPeer): Remove callback.
11404 (getMenuBarHeight): Use size requisition instead of
11407 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
11409 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
11410 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
11412 (setColumns): Remove FIXME -- peer will retrieve number of
11413 columns by calling getColumns.
11414 (setRows): Likewise for number of rows.
11415 (next_text_number): New field.
11416 (paramString): Fix param string.
11417 (generateName): New method.
11418 (getUniqueLong): New method.
11420 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
11422 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
11423 image observer of image loading status.
11424 (getImage (String)): Start image production.
11425 (getImage (URL)): Likewise.
11427 2004-01-25 Michael Koch <konqueror@gmx.de>
11429 * java/lang/Class.java: Imports reworked, reformated.
11430 (Class): Javadoc added.
11431 (forName): Likewise.
11432 (getClasses): Likewise.
11433 (getClassLoader): Likewise.
11434 (getComponentType): Likewise.
11435 (getConstructor): Likewise.
11436 (getConstructors): Likewise.
11437 (getDeclaredConstructor): Likewise.
11438 (getDeclaredClasses): Likewise.
11439 (getDeclaredConstructors): Likewise.
11440 (getDeclaredField): Likewise.
11441 (getDeclaredMethod): Likewise.
11442 (getDeclaredMethods): Likewise.
11443 (getDeclaringClass): Likewise.
11444 (getField): Likewise.
11445 (getInterfaces): Likewise.
11446 (getMethod): Likewise.
11447 (getMethods): Likewise.
11448 (getModifiers): Likewise.
11449 (getName): Likewise.
11450 (getResource): Likewise.
11451 (getResourceAsStream): Likewise.
11452 (getSigners): Likewise.
11453 (setSigners): Likewise.
11454 (getSuperclass): Likewise.
11455 (isArray): Likewise.
11456 (isAssignableFrom): Likewise.
11457 (isInstance): Likewise.
11458 (isInterface): Likewise.
11459 (isPrimitive): Likewise.
11460 (newInstance): Likewise.
11461 (getProtectionDomain): Likewise.
11462 (toString): Likewise.
11464 (initializeClass): Likewise.
11465 (finalize): Likewise.
11467 2004-01-24 Michael Koch <konqueror@gmx.de>
11469 * gnu/java/net/protocol/jar/Connection.java
11470 (hdrHash): Removed.
11472 (gotHeaders): Removed.
11473 (getHeaderField): Removed.
11474 (getHeaderFields): Removed.
11475 (getHeaderFieldKey): Removed.
11477 (getField): Removed.
11478 (getHeaders): Removed.
11480 2004-01-24 Michael Koch <konqueror@gmx.de>
11482 * Makefile.am: Added library version to gtk peer lib.
11483 * Makefile.in: Regenerated.
11485 2004-01-24 Michael Koch <konqueror@gmx.de>
11487 * java/util/zip/InflaterInputStream.java: Merged class documentation
11490 2004-01-21 Jakub Jelinek <jakub@redhat.com>
11492 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
11493 header. For __powerpc64__ provide the default-signal.h definitions
11495 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
11496 instead of the dummy definitions.
11497 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
11498 (powerpc64*-*): Remove with_libffi_default.
11499 Only add -mminimal-toc for 64-bit compilations.
11500 * configure.in: Use powerpc-signal.h on powerpc64 as well.
11501 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
11502 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
11503 * configure: Rebuilt.
11505 2004-01-23 Michael Koch <konqueror@gmx.de>
11507 * gnu/java/nio/FileLockImpl.java: Compile fixes.
11509 2004-01-23 Michael Koch <konqueror@gmx.de>
11511 * java/lang/VMClassLoader.java: Reworked imports.
11513 2004-01-23 Michael Koch <konqueror@gmx.de>
11515 * javax/swing/AbstractAction.java: Reformated.
11517 2004-01-23 Michael Koch <konqueror@gmx.de>
11519 * java/text/CollationElementIterator.java:
11520 (setText): New method.
11522 2004-01-23 Michael Koch <konqueror@gmx.de>
11524 * gnu/java/nio/FileLockImpl.java:
11525 Fixed filename in copyright.
11526 (released): Removed.
11527 (finalize): New method.
11528 * gnu/java/nio/natFileLockImpl.cc
11529 (releaseImpl): Implemented.
11530 * java/nio/channels/FileChannelImpl.java:
11532 (lock): Implemented.
11533 (lockImpl): New method.
11534 (tryLock): Implemented.
11535 (tryLockImpl): New method.
11536 * java/nio/channels/natFileChannelImpl.cc
11537 (lockImpl): New method.
11538 (tryLockImpl): New method.
11540 2004-01-23 Michael Koch <konqueror@gmx.de>
11542 * java/io/FileDescriptor.java
11543 (lock): New method.
11544 (tryLock): New method.
11545 (unlock): New method.
11546 * java/io/natFileDescriptorEcos.cc
11547 (lock): New method.
11548 (tryLock): New method.
11549 (unlock): New method.
11550 * java/io/natFileDescriptorPosix.cc
11551 (lock): New method.
11552 (tryLock): New method.
11553 (unlock): New method.
11554 * java/io/natFileDescriptorWin32.cc
11555 (lock): New method.
11556 (tryLock): New method.
11557 (unlock): New method.
11559 2004-01-23 Michael Koch <konqueror@gmx.de>
11561 * java/io/FileDescriptor.java
11562 (sync): Moved around, added javadoc.
11567 (setLength): Likewise.
11569 (getLength): Likewise.
11570 (getFilePointer): Likewise.
11572 (available): Likewise.
11573 (finalize): Likewise.
11575 2004-01-23 Michael Koch <konqueror@gmx.de>
11577 * javax/swing/AbstractAction.java: Reformated.
11578 (getPropertyChangeListeners): New method.
11579 * javax/swing/AbstractCellEditor.java: Reformated.
11580 (getCellEditorListeners): New method.
11581 * javax/swing/DefaultListSelectionModel.java
11582 (listenerList): New field.
11583 (listeners): Removed.
11584 (get_listeners): Removed.
11585 (addListSelectionListener): Rewritten.
11586 (removeListSelectionListener): Rewritten.
11587 (getListSelectionListeners): New method.
11588 (getListeners): New method.
11589 * javax/swing/JComboBox.java: Imports reworked.
11590 (addActionListener): Implemented.
11591 (removeActionListener): Implemented.
11592 (addItemListener): Implemented.
11593 (removeItemListener): Implemented.
11594 (addPopupMenuListener): Implemented.
11595 (removePopupMenuListener): Implemented.
11596 (getActionListeners): New method.
11597 (getItemListeners): New method.
11598 (getPopupMenuListeners): New method.
11600 2004-01-23 Michael Koch <konqueror@gmx.de>
11602 * gnu/java/net/protocol/http/Connection.java
11603 (connect): Don't initialize bufferedOutputStream if not needed.
11604 (sendRequest): Set property for content length if content is present.
11605 Write content only if present.
11606 (getOutputStream): Check if already connected, dont connect,
11607 initalize bufferedOutputStream if needed.
11609 2004-01-23 Michael Koch <konqueror@gmx.de>
11611 * java/io/FileDescriptor.java
11612 (in, out, err): Added javadoc.
11613 (static): Merged loading code.
11614 (fd, position): Moved around.
11616 2004-01-23 Michael Koch <konqueror@gmx.de>
11618 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
11621 2004-01-23 Michael Koch <konqueror@gmx.de>
11623 * java/lang/Class.java,
11624 java/lang/Object.java,
11625 java/lang/Thread.java: Merged copyright with classpath.
11627 2004-01-23 Michael Koch <konqueror@gmx.de>
11629 * java/io/FileDescriptor.java: Merged copyright with classpath to
11630 start merging this class.
11632 2004-01-22 Tom Tromey <tromey@redhat.com>
11635 * testsuite/libjava.lang/pr13107_2.xfail: New file.
11636 * testsuite/libjava.lang/pr13107_3.xfail: New file.
11637 * testsuite/libjava.lang/pr13107_3.java: New file.
11638 * testsuite/libjava.lang/pr13107_3.out: New file.
11639 * testsuite/libjava.lang/pr13107_2.java: New file.
11640 * testsuite/libjava.lang/pr13107_2.out: New file.
11641 * testsuite/libjava.lang/pr13107.java: New file.
11642 * testsuite/libjava.lang/pr13107.out: New file.
11643 * verify.cc (jsr_ptrs): Removed.
11644 (entry_points): Likewise.
11645 (struct subr_info): Likewise.
11646 (struct subr_entry_info): Likewise.
11647 (type_val::unused_by_subroutine_type): Likewise.
11648 (type::merge): Don't handle unused_by_subroutine_type.
11649 (type::print): Likewise.
11650 (state::flags): Removed.
11651 (state::subroutine): Likewise.
11652 (state::seen_subrs): Likewise.
11653 (state::NO_STACK): Likewise.
11654 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
11655 (state): Updated all methods.
11656 (state::clean_subrs): Removed.
11657 (state::state): Removed `ret_semantics' flag.
11658 (state::copy): Likewise.
11659 (state::add_subr): Removed.
11660 (state::enter_subroutine): Likewise.
11661 (type::set_return_address): New method.
11662 (handle_jsr_insn): Set return address on the type. Always
11663 invalidate PC after call.
11664 (check_nonrecursive_call): Removed.
11665 (~_Jv_BytecodeVerifier): Updated.
11666 (branch_prepass): Removed special handling of jsr.
11667 (note_branch_target): Likewise.
11668 (get_subroutine): Removed.
11669 (state::merge): Don't merge subroutines and don't handle
11670 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
11671 (state::note_variable): Removed.
11672 (state::is_unmerged_ret_state): Likewise.
11673 (state::print): Updated.
11674 (set_variable): Likewise.
11675 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
11676 and jsr_semantics arguments. Updated for new reverification
11678 (pop_jump): Rewrote.
11679 (construct_primitive_array_type): Updated.
11680 (state::next): Removed.
11681 (INVALID_STATE): New define.
11682 (state::INVALID): Removed.
11683 (state::NO_NEXT): New value.
11684 (state::pc, state::next): New fields.
11685 (state::get_pc): New method.
11686 (next_verify_pc): Removed.
11687 (next_verify_state): New field.
11688 (verify_instructions_0): Always check for falling off end.
11689 (linked): New type.
11690 (linked_utf8): Removed.
11691 (states): Changed type.
11692 (type::state_mergeable_p): New method.
11693 (state::state_mergeable_p): Likewise.
11694 (handle_ret_insn): Removed most code.
11695 (state::reverify): New method.
11696 (add_new_state): Likewise.
11697 (state::set_pc): Likewise.
11699 2004-01-22 Jeff Sturm <jsturm@one-point.com>
11702 * testsuite/libjava.compile/PR13733.java: New file.
11703 * testsuite/libjava.compile/PR13733.xfail: New file.
11705 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
11706 Michael Koch <konqueror@gmx.de>
11708 * javax/swing/table/DefaultTableCellRenderer.java
11709 (DefaultTableCellRenderer): Added javadoc for the class and for
11710 the constructor, Border instance, create an EmptyBorder.
11711 (UIResource): Removed the comment at the end of the class
11712 (setForeground): New method.
11713 (setBackground): New method.
11714 (updateUI): New method.
11715 (getTableCellRendererComponent): Rewritten with the help of
11716 dvholten and Stephane Meslin-Weber.
11717 (validate): New method.
11718 (repaint): New method.
11719 (firePropertyChange): New method.
11720 (setValue): New method.
11722 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
11724 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
11725 (connectJObject): Replace printf calls with g_assert statements.
11726 Move property-notify-event signal connection to ...
11727 (connectSignals): Connect property-notify-event signal. Iterate
11728 through the vbox's children to find layout.
11730 2004-01-22 Graydon Hoare <graydon@redhat.com>
11732 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
11733 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
11734 Predicate static initialization on GtkToolkit.useGraphics2D().
11735 * java/awt/Component.java (processPaintEvent): Consume event.
11736 * javax/swing/AbstractButton.java: Reimplement, document.
11737 * javax/swing/DefaultButtonModel.java: Reimplement, document.
11738 * javax/swing/JComponent.java (paint): Use double buffer.
11739 (listenerList): Enable member.
11740 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
11741 * javax/swing/JToggleButton.java
11742 (JToggleButton): Modify model constructor.
11743 * javax/swing/SwingUtilities.java
11744 (layoutCompoundLabel): Adjust arithmetic.
11745 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
11746 * javax/swing/plaf/basic/BasicGraphicsUtils.java
11747 (getPreferredButtonSize): Include margins in calculation.
11748 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
11749 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
11750 Receive up events from subordinate layout component.
11752 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
11754 * java/awt/Component.java (show): Set visible to true before
11757 2004-01-21 Kim Ho <kho@redhat.com>
11759 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
11761 (removeMenuBarPeer): Make package private.
11762 (setMenuBarPeer): Make package private.
11763 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
11764 (menubar_resize_cb): Mark attributes unused.
11765 (getMenuBarHeight): ditto.
11767 2004-01-21 David Jee <djee@redhat.com>
11769 * java/awt/Container.java
11770 (LightweightDispatcher.handleEvent): Add an extra check to avoid
11771 dispatching MOUSE_ENTERED event twice. Translate the point for
11772 the mouse event target before dispatching the event.
11774 2004-01-20 Jakub Jelinek <jakub@redhat.com>
11776 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
11777 lib_org_w3c_dom_la_LDFLAGS): New.
11778 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
11779 * Makefile.in: Rebuilt.
11781 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
11783 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
11784 Calculate proper offsets for heavyweight components packed in
11785 lightweight containers.
11787 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
11788 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
11789 (native create): Add width parameter.
11790 (create): Calculate text entry width based on current font's
11791 metrics and number of columns. Set TextField's font if not
11792 already set. Call native create.
11793 (gtkEntryGetBorderWidth): New native method.
11794 (gtkEntryGetSize): Remove method.
11795 (getMinimumSize): Call minimumSize.
11796 (getPreferredSize): Call preferredSize.
11797 (minimumSize): Calculate minimum size based on backing
11798 GtkEntry's borders, font metrics and number of columns.
11799 (preferredSize): Likewise for preferred size.
11800 (get_border_width): New static function.
11802 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
11803 Override GtkWindowPeer's setResizable method to account for menu
11804 bar height when setting the frame's size.
11806 2004-01-19 Matthias Klose <doko@debian.org>
11808 * libtool-version: Increased `current' to 6.
11810 2004-01-19 Kim Ho <kho@redhat.com>
11812 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
11813 (connectJObject): Iterate through the vbox's children to find layout.
11815 2004-01-19 Fernando Nasser <fnasser@redhat.com>
11817 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
11818 isDispatchThread method to replace wrong test condition.
11820 2004-01-19 Fernando Nasser <fnasser@redhat.com>
11822 * java/awt/EventQueue.java (pop): Prevent racing condition to add
11823 events to the queue out of order by acquiring locks in the proper
11824 order and not by releasing one before acquiring the other.
11826 2004-01-19 Fernando Nasser <fnasser@redhat.com>
11828 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
11829 visible so that dialog can be reused.
11831 2004-01-19 Fernando Nasser <fnasser@redhat.com>
11833 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
11834 events may be handled by any queue in the stack.
11836 2004-01-19 Kim Ho <kho@redhat.com>
11838 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
11839 MenuBarPeer parameter.
11840 (removeMenuBarPeer): New native method.
11841 (setMenuBar): Call remove if menu bar is null. Adjust insets
11843 (postSizeAllocateEvent): New method. Called when menu bar size is
11844 allocated. Adjust insets and redo layout.
11845 (GtkFramePeer): Set menu bar during frame creation.
11846 (postConfigureEvent): Adjust position and size to accomodate
11848 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
11849 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
11850 (addNotify): Create the peer if it doesn't exist and call addNotify
11851 for the menu's items.
11852 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
11853 * java/awt/MenuItem.java (addNotify): Create the peer if it
11855 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
11856 (removeMenuBarPeer): New method. Remove menu bar on the current
11858 (setMenuBarPeer): Add the menu bar to the current frame and the
11859 callback for size-allocate events on the menu bar.
11860 (getMenuBarHeight): Add menu bar parameter.
11861 (menubar_resize_cb): New callback method for postSizeAllocate events.
11863 Also: Fix indentation on last ChangeLog entry.
11865 2004-01-16 Kim Ho <kho@redhat.com>
11867 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
11868 (gtkWidgetGetDimensions): Remove.
11869 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
11870 (gtkWidgetGetDimensions): Remove.
11872 2004-01-16 Tom Tromey <tromey@redhat.com>
11874 * java/awt/Container.java: Typo and indentation fixes.
11876 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
11877 * java/lang/natVMClassLoader.cc: ...here. New file.
11878 * Makefile.in: Rebuilt.
11879 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
11881 2004-01-16 Fernando Nasser <fnasser@redhat.com>
11883 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
11884 Discard GDK_ENTER_NOTIFY related to ungrabs.
11886 2004-01-16 Fernando Nasser <fnasser@redhat.com>
11888 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
11889 is called for an intermediate queue.
11891 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
11893 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
11894 (window_property_changed_cb): Set id_set.
11896 2004-01-16 Kim Ho <kho@redhat.com>
11898 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
11899 it is a FileDialog and has dimensions of 0 by 0, then the initial
11900 size is set to size request plus insets.
11901 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
11902 (gtkWidgetGetDimensions): Override method.
11903 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
11904 (gtkWidgetGetDimensions): Override method. Returns size request plus
11907 2004-01-16 Andrew Haley <aph@redhat.com>
11909 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
11910 * sysdep/i386/locks.h: Likewise.
11912 2004-01-16 Fernando Nasser <fnasser@redhat.com>
11914 * java/awt/EventDispatchThread.java (run): Stop running when
11916 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
11917 Reset the queue after transferring its contents.
11918 (push): Start a new dispatch thread if none is running.
11920 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
11922 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
11923 (doPolygon): set fill rule of polygon to
11924 WIND_EVEN_ODD by default.
11926 2004-01-15 Olga Rodimina <rodimina@redhat.com>
11928 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
11929 Implemented rendering hints related methods.
11930 (getDefaultHints): New helper method. Returns
11931 default rendering hints.
11932 (walkPath): changed to normalize path if
11933 the KEY_STROKE_CONTROL key is in "normalize" mode.
11934 (draw3DRect): changed coordinates of rectangle by +0.5
11935 if in "normalize" mode.
11937 2004-01-15 Tom Tromey <tromey@redhat.com>
11939 * Makefile.in: Rebuilt.
11940 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
11941 (%.lo: %.java) Filter out StackTrace.lo.
11943 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
11945 * configure.in: Add in AC_PREREQ(2.13)
11946 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
11949 2004-01-14 Nathan Bryant <nbryant@optonline.net>
11950 Tom Tromey <tromey@redhat.com>
11953 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
11954 array to superclass.
11955 (init): Changed interface; add URLs here.
11956 (initialize): New static method.
11957 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
11958 (_Jv_RunMain): ... not here.
11960 2004-01-14 Michael Koch <konqueror@gmx.de>
11962 * java/text/MessageFormat.java:
11963 Added descriptions to exceptions.
11964 This fixes PR libgcj/2429.
11966 2004-01-13 Fernando Nasser <fnasser@redhat.com>
11968 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
11969 (push): Make sure push is performed at the top of the thread stack.
11971 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
11973 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
11974 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
11975 (native create): Add width and height parameters. Set text
11976 view's size request according to new parameters.
11977 (create): Calculate text view size based on current font's
11978 metrics and number of rows and columns. Set TextArea's font if
11979 not already set. Call native create.
11980 (getMinimumSize): Call minimumSize.
11981 (getPreferredSize): Call preferredSize.
11982 (getHScrollbarHeight): New method.
11983 (getVScrollbarWidth): New method.
11984 (minimumSize): Calculate minimum size based on scrollbar
11985 visibility, scrollbar sizes, font metrics and number of rows and
11987 (preferredSize): Likewise for preferred size.
11988 (gtkTextGetSize): Remove method.
11990 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
11992 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
11993 (initializeInsets): Remove method.
11994 (GtkComponentPeer): Initialize insets field. Remove call to
11996 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
11998 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
12000 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
12001 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
12002 (latestInsets): Remove field.
12003 (native create): Add insets parameter. Call
12004 window_get_frame_extents. Set the window's default size and
12005 size request based on its frame extents.
12006 (create): Initialize insets.
12007 (postInsetsChangedEvent): New method.
12008 (postConfigureEvent): Remove parameters top, left, bottom,
12009 right. Remove insets-related logic.
12010 (connectJObject): Handle property-notify-event.
12011 (window_get_frame_extents, request_frame_extents,
12012 property_notify_predicate, window_property_changed_cb): New
12014 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
12015 (pre_event_handler): Remove insets-related logic for configure
12017 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
12018 Update postConfigureEvent signature.
12020 2004-01-13 Fernando Nasser <fnasser@redhat.com>
12022 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
12023 to handle Window "Closing" events.
12025 2004-01-13 David Jee <djee@redhat.com>
12027 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
12028 (setBackground): New method. Children with no explicitly-set
12029 background will be repainted with the parent container's new
12032 2004-01-13 David Jee <djee@redhat.com>
12034 * Makefile.am: Add BitwiseXORComposite.java.
12035 * Makefile.in: Regenerated.
12036 * gcj/Makefile.in: Regenerated.
12037 * include/Makefile.in: Regenerated.
12038 * testsuite/Makefile.in: Regenerated.
12040 2004-01-12 Fernando Nasser <fnasser@redhat.com>
12042 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
12043 not show modal dialogs twice and so that it allows showing a modal
12044 dialog from another modal dialog.
12046 2004-01-12 Fernando Nasser <fnasser@redhat.com>
12048 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
12049 and run secondary dispatch thread to process event queue while this
12052 2004-01-12 Graydon Hoare <graydon@redhat.com>
12054 * gnu/java/awt/gtk/GdkGraphics2D.java
12055 (static): Check GtkToolkit before initializing static state.
12056 (Graphics2D): Don't construct transform with 0.5 unit offset.
12058 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
12060 * gnu/java/awt/BitwiseXORComposite.java: Add.
12061 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
12062 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
12063 (BitwiseXORComposite): Remove inner class.
12065 2004-01-11 Michael Koch <konqueror@gmx.de>
12067 * gnu/java/lang/reflect/TypeSignature.java
12068 (getEncodingOfClass): Documentation fixed.
12069 (getClassForEncoding): Give class loader to Class.forName().
12070 Documentation fixed.
12072 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
12074 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
12076 2004-01-11 Michael Koch <konqueror@gmx.de>
12078 * javax/swing/undo/StateEditable.java
12079 (RCSID): Removed redundant modifiers.
12081 2004-01-10 Michael Koch <konqueror@gmx.de>
12083 * javax/print/attribute/EnumSyntax.java
12084 (getStringTable): Made protected.
12085 (getEnumValueTable): Likewise.
12086 * javax/print/attribute/standard/JobKOctetsProcessed.java
12087 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
12088 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
12089 (JobMediaSheetsCompleted): Made class final.
12090 * javax/print/attribute/standard/OutputDeviceAssigned.java
12091 (getName): Fixed typo.
12092 * javax/print/attribute/standard/RequestingUserName.java
12093 (serialVersionUID): Fixed value.
12095 2004-01-10 Michael Koch <konqueror@gmx.de>
12097 * javax/swing/plaf/basic/BasicButtonUI.java,
12098 javax/swing/plaf/basic/BasicCheckBoxUI.java,
12099 javax/swing/plaf/basic/BasicListUI.java,
12100 javax/swing/plaf/basic/BasicOptionPaneUI.java,
12101 javax/swing/plaf/basic/BasicPanelUI.java,
12102 javax/swing/plaf/basic/BasicRadioButtonUI.java,
12103 javax/swing/plaf/basic/BasicScrollPaneUI.java,
12104 javax/swing/plaf/basic/BasicToggleButtonUI.java,
12105 javax/swing/plaf/basic/BasicViewportUI.java:
12106 Fixed import statements.
12108 2004-01-10 Michael Koch <konqueror@gmx.de>
12110 * gnu/java/awt/image/ImageDecoder.java
12111 (produce): Made public.
12112 * gnu/java/awt/peer/GLightweightPeer.java,
12113 gnu/java/awt/peer/gtk/GtkToolkit.java:
12116 2004-01-10 Michael Koch <konqueror@gmx.de>
12118 * javax/swing/JRadioButtonMenuItem.java,
12119 javax/swing/JSeparator.java,
12120 javax/swing/JSplitPane.java,
12121 javax/swing/JTextPane.java,
12122 javax/swing/JToolBar.java,
12123 javax/swing/ListCellRenderer.java,
12124 javax/swing/ListModel.java,
12125 javax/swing/MenuElement.java,
12126 javax/swing/OverlayLayout.java,
12127 javax/swing/ProgressMonitor.java,
12128 javax/swing/ProgressMonitorInputStream.java,
12129 javax/swing/Renderer.java,
12130 javax/swing/RootPaneContainer.java,
12131 javax/swing/Scrollable.java,
12132 javax/swing/SingleSelectionModel.java,
12133 javax/swing/ToolTipManager.java,
12134 javax/swing/ViewportLayout.java,
12135 javax/swing/event/DocumentEvent.java,
12136 javax/swing/event/SwingPropertyChangeSupport.java,
12137 javax/swing/event/TreeSelectionEvent.java,
12138 javax/swing/event/UndoableEditEvent.java,
12139 javax/swing/text/AbstractDocument.java,
12140 javax/swing/text/AttributeSet.java,
12141 javax/swing/text/Caret.java,
12142 javax/swing/text/ComponentView.java,
12143 javax/swing/text/DefaultCaret.java,
12144 javax/swing/text/DefaultEditorKit.java,
12145 javax/swing/text/Document.java,
12146 javax/swing/text/EditorKit.java,
12147 javax/swing/text/GapContent.java,
12148 javax/swing/text/Keymap.java,
12149 javax/swing/text/MutableAttributeSet.java,
12150 javax/swing/text/PlainEditorKit.java,
12151 javax/swing/text/Segment.java,
12152 javax/swing/text/Style.java,
12153 javax/swing/text/StyledDocument.java,
12154 javax/swing/text/StyledEditorKit.java,
12155 javax/swing/text/TextAction.java,
12156 javax/swing/text/View.java: Fixed import statements.
12158 2004-01-08 Graydon Hoare <graydon@redhat.com>
12160 * javax/swing/JLayeredPane.java: Rewrite to accomodate
12161 djee@redhat.com's recent inverse ordering of Container elements.
12163 2004-01-09 Michael Koch <konqueror@gmx.de>
12165 * gnu/java/lang/ArrayHelper.java
12166 (equalsArray): Removed.
12168 2004-01-09 Andrew Haley <aph@redhat.com>
12170 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
12171 a Utf8Const field before looking at its class.
12173 2004-01-09 Michael Koch <konqueror@gmx.de>
12175 * javax/print/attribute/standard/DocumentName.java,
12176 javax/print/attribute/standard/JobHoldUntil.java,
12177 javax/print/attribute/standard/JobMessageFromOperator.java,
12178 javax/print/attribute/standard/JobName.java,
12179 javax/print/attribute/standard/JobOriginatingUserName.java,
12180 javax/print/attribute/standard/OutputDeviceAssigned.java,
12181 javax/print/attribute/standard/PrinterInfo.java,
12182 javax/print/attribute/standard/PrinterLocation.java,
12183 javax/print/attribute/standard/PrinterMakeAndModel.java,
12184 javax/print/attribute/standard/PrinterMessageFromOperator.java,
12185 javax/print/attribute/standard/PrinterName.java,
12186 javax/print/attribute/standard/RequestingUserName.java: New files.
12187 * Makefile.am (javax_source_files): Added new files.
12188 * Makefile.in: Regenerated.
12190 2004-01-09 Michael Koch <konqueror@gmx.de>
12192 * javax/swing/AbstractAction.java,
12193 javax/swing/AbstractSet.java,
12194 javax/swing/Action.java,
12195 javax/swing/ActionMap.java,
12196 javax/swing/BoundedRangeModel.java,
12197 javax/swing/ButtonModel.java,
12198 javax/swing/CellEditor.java,
12199 javax/swing/CellRendererPane.java,
12200 javax/swing/ComboBoxEditor.java,
12201 javax/swing/DebugGraphics.java,
12202 javax/swing/DefaultCellEditor.java,
12203 javax/swing/DefaultCellRenderer.java,
12204 javax/swing/DefaultComboBoxModel.java,
12205 javax/swing/DefaultDesktopManager.java,
12206 javax/swing/DefaultFocusManager.java,
12207 javax/swing/DefaultListCellRenderer.java,
12208 javax/swing/Icon.java,
12209 javax/swing/JButton.java,
12210 javax/swing/JCheckBoxMenuItem.java,
12211 javax/swing/JDesktopPane.java,
12212 javax/swing/JEditorPane.java,
12213 javax/swing/JMenu.java,
12214 javax/swing/JPanel.java,
12215 javax/swing/JPasswordField.java,
12216 javax/swing/JPopupMenu.java,
12217 javax/swing/JProgressBar.java: Reworked imports.
12219 2004-01-09 Michael Koch <konqueror@gmx.de>
12221 * java/awt/geom/PathIterator.java
12222 (WIND_EVEN_ODD): Removed redundant modifiers.
12223 (WIND_NON_ZERO): Likewise.
12224 (SEG_MOVETO): Likewise.
12225 (SEG_LINETO): Likewise.
12226 (SEG_QUADTO): Likewise.
12227 (SEG_CUBICTO): Likewise.
12228 (SEG_CLOSE): Likewise.
12229 * java/awt/image/SinglePixelPackedSampleModel.java:
12230 Removed redundant semicolon.
12231 * java/io/ObjectInputStream.java
12232 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
12233 * java/util/logging/Filter.java
12234 (isLoggable): Removed redundant modifier.
12235 * java/util/logging/LogManager.java:
12236 Removed redundant semicolon.
12237 * java/util/logging/XMLFormatter.java
12238 (format): Removed unused variable "key".
12240 2004-01-08 Fernando Nasser <fnasser@redhat.com>
12242 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
12243 New name for the former setFile native method.
12244 (setFile): New method.
12245 (setDirectory): Implemented.
12246 (connectSignals): New native method.
12247 (setFilenameFilter): Improve comment.
12248 (getGraphics): Comment.
12249 (gtkHideFileDialog): New method.
12250 (gtkDisposeFileDialog): New method.
12251 (gtkSetFilename): New method.
12252 * java/awt/Dialog.java (show): Block on modal dialogs, but only
12253 for FileDialog for now.
12254 (hide): New method.
12255 (dispose): New method.
12256 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
12257 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
12258 deprecated creation functions. Make dialog modal. Add it to the
12260 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
12262 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
12264 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
12266 (window_closed): New function.
12267 (ok_clicked): New function.
12268 (cancel_clicked): New function.
12270 2004-01-08 Michael Koch <konqueror@gmx.de>
12272 * javax/swing/JLayeredPane.java: Revert changes to standard
12273 boilerplate, reworked imports.
12275 2004-01-07 Tom Tromey <tromey@redhat.com>
12278 * verify.cc (state::merge): Copy changed locals out of subroutine
12280 (state::FLAG_CHANGED): New const.
12281 (state::FLAG_UNUSED): Likewise.
12282 (state::local_changed): Removed. Updated all users.
12283 (state::flags): New field.
12284 (state::merge): Added jsr_semantics argument, more logic.
12285 (push_jump_merge): Added jsr_semantics argument.
12286 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
12287 merging through the jsr instruction.
12289 2004-01-07 Tom Tromey <tromey@redhat.com>
12291 * scripts/MakeDefaultMimeTypes.java: Use \n, not
12294 2004-01-07 Graydon Hoare <graydon@redhat.com>
12296 * java/awt/Container.java (LightweightDispatcher): Implement.
12297 (visitChild): Reuse graphics object.
12298 (dispatchEventImpl): Optionally dispatch to lightweight.
12299 (addNotifyContainerChildren): Build LightweightDispatcher.
12301 2004-01-07 David Jee <djee@redhat.com>
12303 * java/awt/Container.java
12304 (update): Clear only the clipped region, instead of clearing the
12306 (visitChildren): Visit children in descending order.
12308 2004-01-07 Michael Koch <konqueror@gmx.de>
12310 * java/lang/reflect/Array.java: Merged documentation with classpath.
12312 2004-01-07 Michael Koch <konqueror@gmx.de>
12314 * java/text/CollationElementIterator.java
12315 (textIndex): Renamed from index.
12316 * java/text/CollationKey.java
12317 (collator): New member.
12318 (CollationKey): New argument for parent collator.
12319 (equals): Check for same collator, source string and key array.
12320 * java/text/RuleBasedCollator.java:
12322 (RuleBasedCollator): Don't re-initialize frenchAccents with default
12324 (getCollationElementIterator): Rewritten.
12325 (getCollationKey): Added new argument to CollationKey constructor.
12327 2004-01-07 Michael Koch <konqueror@gmx.de>
12329 * gnu/java/nio/DatagramChannelImpl.java
12330 (blocking): Removed.
12331 (DatagramChannelImpl): Call configureBlocking().
12332 (implConfigureBlocking): Dont initialize blocking.
12333 * gnu/java/nio/ServerSocketChannelImpl.java
12334 (blocking): Removed.
12335 (ServerSocketChannelImpl): Call configureBlocking().
12336 (implConfigureBlocking): Dont initialize blocking.
12337 * gnu/java/nio/SocketChannelImpl.java
12338 (blocking): Removed.
12339 (SocketChannelImpl): Call configureBlocking().
12340 (implConfigureBlocking): Dont initialize blocking.
12341 (connect): Use isBlocking().
12342 * java/nio/channels/spi/AbstractSelectableChannel.java
12343 (configureBlocking): Use blockingLock() instead of LOCK.
12344 Set blocking after successfully called implConfigureBlocking().
12345 (register): Use blockingLock() instead of LOCK.
12347 2004-01-07 Michael Koch <konqueror@gmx.de>
12349 * java/net/ServerSocket.java (isBound): Fixed documentation.
12351 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
12353 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
12354 (changeEvent): Create event object on demand.
12355 (DefaultBoundedRangeModel, toString, setValue, setExtent,
12356 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
12357 fireStateChanged): Re-written.
12358 * javax/swing/event/EventListenerList.java: Reformatted, document
12360 (toString): Implemented.
12361 (getListeners): Re-written.
12362 (remove): Re-written.
12364 (NO_LISTENERS): New singleton field.
12365 (listenerList): Declare as transient; document.
12366 (serialVersionUID): Document.
12367 (getListenerCount(Class)): More efficient implementation,
12368 also accepts null argument. Improve Javadoc.
12369 (getListenerCount()): Remove unnecessary cast; docfix.
12370 * javax/swing/undo/UndoableEditSupport.java:
12371 Re-format, document.
12372 (UndoableEditSupport): Set realSource field. Improve documentation.
12373 (_postEdit): Iterate over cloned listener vector.
12374 (toString): Don't emit realSource.
12375 (beginUpdate, endUpdate): Support nested updates.
12376 (postEdit): Use compound edit if present.
12378 2004-01-06 Graydon Hoare <graydon@redhat.com>
12380 * java/awt/Container.java (swapComponents): Add forgotten
12381 function, required for JLayeredPane change.
12383 2004-01-06 Michael Koch <konqueror@gmx.de>
12385 * java/text/CollationElementIterator.java: Reformated.
12386 (CollationElementIterator): Changed order of arguments.
12387 * java/text/RuleBasedCollator.java
12388 (RuleBasedCollator): Merged class documentation.
12389 (CollationElement): Added documentation.
12390 (compare): Reformated, renamed arguments.
12391 (equals): Likewise.
12392 (getCollationElementIterator): Likewise.
12393 (getCollationKey): Likewise.
12395 2004-01-06 Graydon Hoare <graydon@redhat.com>
12397 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
12399 2004-01-06 Michael Koch <konqueror@gmx.de>
12401 * gnu/java/net/protocol/file/Connection.java:
12402 Reformated copyright.
12403 (hdrHash): Removed.
12405 (gotHeaders): Removed.
12406 (getHeaderField): Removed.
12407 (getHeaderField): Removed.
12408 (getHeaderFieldKey): Removed.
12410 (getField): Removed.
12411 (getHeaders): Removed.
12413 2004-01-06 Michael Koch <konqueror@gmx.de>
12415 * javax/print/attribute/standard/DateTimeAtCompleted.java,
12416 javax/print/attribute/standard/DateTimeAtCreation.java,
12417 javax/print/attribute/standard/DateTimeAtProcessing.java,
12418 javax/print/attribute/standard/JobImpressionsCompleted.java,
12419 javax/print/attribute/standard/JobKOctets.java,
12420 javax/print/attribute/standard/JobKOctetsProcessed.java,
12421 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
12422 javax/print/attribute/standard/JobPrioritySupported.java: New files.
12423 * Makefile.am (javax_source_files): Added new files.
12424 * Makefile.in: Regenerated.
12426 2004-01-06 Michael Koch <konqueror@gmx.de>
12428 * java/net/URLConnection.java
12429 (contentHandler): Removed.
12431 (getHeaderFields): Return an empty map instead of null.
12432 (getContent): Connect if needed, renamed "cType" to "type" and
12433 "contentHandler" to "ch" and made it a local variable.
12434 (getPermission): Don't use package in class name.
12435 (setDefaultRequestProperty): Fixed typo in documentation.
12436 (initializeDateFormats): Made locale a local variable.
12438 2004-01-06 Michael Koch <konqueror@gmx.de>
12440 * java/lang/Package.java
12441 (getPackage): Get the current class loader directly.
12442 * java/lang/SecurityManager.java
12443 (currentLoadedClass): Dont iterate over class contexts.
12444 (classLoaderDepth): Don't check class loaders if everything is allowed.
12446 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
12448 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
12449 (pre_event_handler): Set all insets to 0 when a Configure event
12450 is received for a GtkPlug.
12451 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
12452 Make handle long, not int.
12453 (EmbeddedWindow()): New constructor.
12454 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
12456 (setHandle): New method.
12457 (getHandle): Return long, not int.
12458 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
12460 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
12461 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
12462 (create(long)): Take long parameter, not int. Cast gtk_plug_new
12463 argument to GdkNativeWindow.
12464 (construct): New method.
12465 (embed): New method.
12467 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
12468 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
12469 (create(int, int)): New method.
12470 (create): Call new create method.
12471 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
12473 (childResized): Remove native implementation. Implement in
12475 (getHScrollbarHeight, getVScrollbarWidth): Call
12476 gtk_widget_size_request to get scrollbar dimensions.
12477 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
12478 call getVScrollbarWidth and getHScrollbarHeight when vertical
12479 and horizontal scrollbars respectively are needed.
12480 (doLayout): Enlarge child if it is smaller than the viewport.
12482 2004-01-05 Fernando Nasser <fnasser@redhat.com>
12484 * java/awt/Dialog.java (constructor): Accept null title as per spec.
12485 * java/awt/FileDialog.java (constructor): Throw exception on invalid
12486 argument as per spec.
12488 2004-01-05 Fernando Nasser <fnasser@redhat.com>
12490 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
12492 (remove): Ditto. Also, Check for valid argument.
12493 (removeAll): Use peer interface method.
12494 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
12495 native add function.
12496 (nativeRemove): New name for native remove function.
12497 (getHistory): New native function.
12498 (constructor): Generate ItemEvent.
12499 (add): Ditto, if selection is changed.
12500 (remove): Ditto, ditto.
12501 (removeAll): Add implementation.
12502 (handleEvent): Remove. Dead code.
12503 (choicePostItemEvent): Add comment.
12504 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
12505 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
12506 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
12507 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
12508 comments and fix condition to change selection.
12509 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
12510 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
12511 remove all capability.
12512 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
12513 (item_activate): Add cast to remove compiler warning.
12515 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
12517 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
12518 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
12519 (getPreferredSize): Call preferredSize.
12520 (preferredSize): Call gtkWidgetGetPreferredDimensions.
12521 (getMinimumSize): Call minimumSize.
12522 (minimumSize): Call gtkWidgetGetPreferredDimensions.
12523 (gtkWidgetGetDimensions): Return the peer widget's current size
12525 (gtkWidgetGetPreferredDimensions): Return the peer widget's
12526 natural size request.
12528 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
12530 Thanks to Brian Gough <bjg@network-theory.com>
12531 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
12532 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
12534 2004-01-04 Matthias Klose <doko@debian.org>
12536 * aclocal.m4: Rebuilt using "aclocal -I .".
12537 * configure: Rebuilt.
12539 2004-01-03 Per Bothner <per@bothner.com>
12541 * java/util/Date.java (parse): Fix a number of problems.
12542 (skipParens): Remove no-longer-needed method.