1 2004-10-20 Michael Koch <konqueror@gmx.de>
3 * java/security/AlgorithmParameterGenerator.java,
4 java/security/AlgorithmParameters.java,
5 java/security/DigestInputStream.java,
6 java/security/Identity.java,
7 java/security/KeyFactory.java,
8 java/security/KeyPairGenerator.java,
9 java/security/KeyStore.java,
10 java/security/MessageDigest.java,
11 java/security/MessageDigestSpi.java,
12 java/security/Policy.java,
13 java/security/SecureRandom.java,
14 java/security/Security.java,
15 java/security/Signature.java,
16 java/security/SignatureSpi.java,
17 java/security/cert/CertPathBuilder.java,
18 java/security/cert/CertPathValidator.java,
19 java/security/cert/CertStore.java,
20 java/security/cert/Certificate.java,
21 java/security/cert/CertificateFactory.java,
22 java/security/cert/PolicyQualifierInfo.java,
23 java/security/cert/TrustAnchor.java,
24 java/security/cert/X509CRL.java,
25 java/security/cert/X509CRLEntry.java,
26 java/security/cert/X509Certificate.java,
27 java/security/spec/RSAMultiPrimePrivateCrtKeySpec.java:
28 Import statements reorganized, some little formatting issues,
29 used java-style array declarations, added comments in empty catch
32 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
34 * java/security/Security.java
35 (static): Use AccessController.doPrivileged to get system property.
37 2004-10-18 Sven de Marothy <sven@physto.se>
39 * java/nio/ByteBufferHelper.java
40 (putDouble): Use Double.toRawLongBits instead.
42 2004-10-18 Mark Wielaard <mark@klomp.org>
43 Andrew Haley <aph@redhat.com>
45 * testsuite/libjava.lang/ExtraClassLoader.java: New.
47 2004-10-18 Andrew Haley <aph@redhat.com>
50 * gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Reorganize
51 and correct logic used to find interpreter.
53 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
55 * java/util/logging/LogManager.java
56 (findAncestor): Fixed IndexOutOfBoundsException.
58 2004-10-18 Michael Koch <konqueror@gmx.de>
60 * java/io/BufferedInputStream.java: Fixed @author tag.
61 (read): Simplified expression.
62 (read): Merged javadoc a bit more.
63 (read): Renamed 'remain' to 'totalBytesRead'.
64 * java/io/DataInputStream.java,
65 java/io/DataOutputStream.java,
66 java/io/ObjectInputStream.java,
67 java/io/ObjectOutputStream.java:
68 Reworked modifier order.
70 2004-10-18 Michael Koch <konqueror@gmx.de>
72 * java/net/Inet4Address.java: Merged file header and javadocs.
73 * java/net/Inet6Address.java: Likewise.
74 * java/net/InetAddress.java
75 (getCanonicalHostName): Create Inet4Address object instead of
76 InetAddress and add comment regarding IPv6.
77 (toString): Simplified.
79 2004-10-18 Michael Koch <konqueror@gmx.de>
81 * gnu/java/net/protocol/http/Connection.java,
82 java/nio/MappedByteBufferImpl.java,
83 java/text/RuleBasedCollator.java,
84 java/util/ResourceBundle.java:
85 Reworked import statements.
87 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
89 * java/security/IdentityScope.java
90 (systemScope): Removed useless initializer.
91 * java/security/Policy.java
92 (currentPolicy): Likewise.
94 2004-10-18 Michael Koch <konqueror@gmx.de>
96 * java/lang/System.java: Revert accidential change.
98 2004-10-18 Michael Koch <konqueror@gmx.de>
100 * java/lang/Math.java,
101 java/lang/Package.java,
102 java/lang/Runtime.java,
103 java/lang/StrictMath.java,
104 java/lang/System.java,
105 java/lang/Thread.java,
106 java/lang/ThreadLocal.java,
108 Reworked import statements, HTML in javadocs and modifier orders.
110 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
112 * java/util/Timer.java
113 (nr): Removed useless initializer.
114 * java/util/logging/LogRecord.java
115 (lastSeqNum): Likewise.
116 * javax/naming/spi/NamingManager.java
117 (icfb, ofb): Likewise.
119 2004-10-18 Michael Koch <konqueror@gmx.de>
121 * gnu/java/net/PlainDatagramSocketImpl.java:
122 Reworked import statements.
123 * gnu/java/security/provider/DSAParameters.java:
124 Fixed copyrigth years.
125 * java/net/JarURLConnection.java:
126 Fixed HTML in @author tags.
129 2004-10-18 Michael Koch <konqueror@gmx.de>
131 * java/rmi/activation/ActivationSystem.java
132 (SYSTEM_PORT): Initialize with correct port number.
134 2004-10-18 Michael Koch <konqueror@gmx.de>
136 * java/lang/reflect/Proxy.java: Improved javadocs.
138 2004-10-18 Michael Koch <konqueror@gmx.de>
140 * java/lang/reflect/AccessibleObject.java
141 (checkPermission): Removed redundant final modifier.
142 (secureSetAccessible): Likewise.
143 * java/lang/reflect/Proxy.java:
144 Reworked import statements.
145 (generate): Removed redundant final modifier.
146 * java/lang/reflect/ReflectPermission.java:
147 Reorder package declaration and import statement.
149 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
151 * java/lang/reflect/Proxy.java
152 (count): Removed useless initializer.
154 2004-10-17 Michael Koch <konqueror@gmx.de>
156 * java/net/BindException.java,
157 java/net/ConnectException.java,
158 java/net/ContentHandler.java,
159 java/net/ContentHandlerFactory.java,
160 java/net/DatagramPacket.java,
161 java/net/DatagramSocket.java,
162 java/net/DatagramSocketImpl.java,
163 java/net/DatagramSocketImplFactory.java,
164 java/net/FileNameMap.java,
165 java/net/HttpURLConnection.java,
166 java/net/MalformedURLException.java,
167 java/net/MulticastSocket.java,
168 java/net/NetworkInterface.java,
169 java/net/NoRouteToHostException.java,
170 java/net/PasswordAuthentication.java,
171 java/net/PortUnreachableException.java,
172 java/net/ProtocolException.java,
173 java/net/ServerSocket.java,
174 java/net/Socket.java,
175 java/net/SocketException.java,
176 java/net/SocketImpl.java,
177 java/net/SocketImplFactory.java,
178 java/net/SocketOptions.java,
179 java/net/SocketPermission.java,
180 java/net/SocketTimeoutException.java,
182 java/net/URISyntaxException.java,
184 java/net/URLDecoder.java,
185 java/net/URLEncoder.java,
186 java/net/URLStreamHandler.java,
187 java/net/URLStreamHandlerFactory.java,
188 java/net/UnknownHostException.java,
189 java/net/UnknownServiceException.java:
190 Big import statement and @author tag cleanup.
192 2004-10-17 Michael Koch <konqueror@gmx.de>
194 * gnu/java/security/OID.java,
195 gnu/java/security/provider/DSAParameters.java,
196 gnu/java/security/provider/DSASignature.java,
197 gnu/java/security/x509/X500DistinguishedName.java,
198 gnu/java/security/x509/X509CRL.java:
199 Import statements cleaned up.
201 2004-10-16 Michael Koch <konqueror@gmx.de>
203 * gnu/java/nio/NIODatagramSocket.java,
204 gnu/java/nio/ServerSocketChannelImpl.java:
205 Reorganized import statements.
207 2004-10-16 Michael Koch <konqueror@gmx.de>
209 * gnu/java/rmi/RMIMarshalledObjectOutputStream.java
210 gnu/java/rmi/rmic/RMIC.java,
211 gnu/java/rmi/server/RMIHashes.java,
212 gnu/java/rmi/server/RMIObjectInputStream.java,
213 gnu/java/rmi/server/RMIObjectOutputStream.java,
214 gnu/java/rmi/server/UnicastConnection.java,
215 gnu/java/rmi/server/UnicastConnectionManager.java,
216 gnu/java/rmi/server/UnicastRemoteCall.java,
217 gnu/java/rmi/server/UnicastServer.java,
218 gnu/java/rmi/server/UnicastServerRef.java,
219 java/rmi/MarshalledObject.java,
220 java/rmi/Naming.java,
221 java/rmi/RMISecurityManager.java,
222 java/rmi/Remote.java,
223 java/rmi/activation/Activatable.java,
224 java/rmi/activation/ActivationDesc.java,
225 java/rmi/activation/ActivationGroup.java,
226 java/rmi/activation/ActivationGroupDesc.java,
227 java/rmi/activation/ActivationGroupID.java,
228 java/rmi/activation/ActivationID.java,
229 java/rmi/activation/ActivationInstantiator.java,
230 java/rmi/activation/ActivationMonitor.java,
231 java/rmi/activation/ActivationSystem.java,
232 java/rmi/activation/Activator.java,
233 java/rmi/dgc/DGC.java,
234 java/rmi/dgc/Lease.java,
235 java/rmi/dgc/VMID.java,
236 java/rmi/registry/LocateRegistry.java,
237 java/rmi/registry/Registry.java,
238 java/rmi/registry/RegistryHandler.java,
239 java/rmi/server/LoaderHandler.java,
240 java/rmi/server/LogStream.java,
241 java/rmi/server/ObjID.java,
242 java/rmi/server/Operation.java,
243 java/rmi/server/RMIClassLoader.java,
244 java/rmi/server/RMIClassLoaderSpi.java,
245 java/rmi/server/RMIClientSocketFactory.java,
246 java/rmi/server/RMIFailureHandler.java,
247 java/rmi/server/RMIServerSocketFactory.java,
248 java/rmi/server/RMISocketFactory.java,
249 java/rmi/server/RemoteCall.java,
250 java/rmi/server/RemoteObject.java,
251 java/rmi/server/RemoteRef.java,
252 java/rmi/server/RemoteServer.java,
253 java/rmi/server/RemoteStub.java,
254 java/rmi/server/ServerRef.java,
255 java/rmi/server/Skeleton.java,
256 java/rmi/server/SkeletonMismatchException.java,
257 java/rmi/server/UID.java,
258 java/rmi/server/UnicastRemoteObject.java,
259 java/rmi/server/Unreferenced.java:
260 File headers and import statements cleaned up.
262 2004-10-16 Michael Koch <konqueror@gmx.de>
264 * libjava/gnu/java/nio/charset/UTF_16.java,
265 libjava/gnu/java/nio/charset/UTF_16BE.java,
266 libjava/gnu/java/nio/charset/UTF_16LE.java,
267 libjava/java/nio/ByteOrder.java,
268 libjava/java/nio/MappedByteBuffer.java,
269 libjava/java/nio/channels/Channels.java,
270 libjava/java/nio/channels/spi/SelectorProvider.java,
271 libjava/java/nio/charset/Charset.java:
274 2004-10-16 Michael Koch <konqueror@gmx.de>
276 * gnu/java/nio/charset/UTF_16Encoder.java
277 (UTF_16Encoder): Fixed maxBytesPerChar handling.
279 2004-10-16 Michael Koch <konqueror@gmx.de>
281 * java/math/BigDecimal.java, java/math/BigInteger.java:
282 Reorganized import statements, removed redundant and
283 reorganized modifiers.
285 2004-10-16 Michael Koch <konqueror@gmx.de>
287 * gnu/java/beans/ExplicitBeanInfo.java:
288 Explicitely import java.awt.Image.
289 (getIcon): Fixed off-by-one error.
291 2004-10-15 Andrew Haley <aph@redhat.com>
293 * Makefile.am (nat_files, xlib_nat_files): New.
294 * Makefile.in: Regenerate.
296 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
298 * jni.cc (_Jv_JNIMethod::call): Use ffi_java_raw_call instead of
299 ffi_raw_call if FFI_NATIVE_RAW_API is not defined.
301 2004-10-13 Andrew Haley <aph@redhat.com>
303 * interpret.cc (_Jv_InterpMethod::run): Initialize
304 _Jv_StartOfInterpreter.
305 (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): Functions removed.
306 (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): New variables.
307 * gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Use
308 _Unwind_FindEnclosingFunction to discover whether PC is within the
311 2004-10-12 Rutger Ovidius <ovidr@users.sourceforge.net>
314 * testsuite/libjava.lang/md5test.java: New file.
315 * testsuite/libjava.lang/md5test.out: Likewise.
316 * testsuite/libjava.lang/shatest.java: Likewise.
317 * testsuite/libjava.lang/shatest.out: Likewise.
319 2004-10-11 Richard Henderson <rth@redhat.com>
321 * include/posix-threads.h <__alpha__> (_Jv_ThreadId_t): Use void*.
322 (_Jv_ThreadSelf): Use __builtin_thread_pointer.
324 2004-10-08 Bryce McKinlay <mckinlay@redhat.com>
326 * java/util/Calendar.java (set): Invalidate DST_OFFSET
327 field as a DST boundary may have been crossed.
328 * java/util/GregorianCalendar.java (add): Throw
329 IllegalArgumentException on attempt to add to DST_OFFSET or
330 ZONE_OFFSET fields. Update javadoc.
332 2004-10-09 Michael Koch <konqueror@gmx.de>
334 * java/io/CharArrayWriter.java
335 (resize): Removed redundant 'final' modifier.
336 * java/io/DataInputStream.java
337 (readFully): Throw IndexOutOfBoundsException of len < 0.
338 * java/io/FileDescriptor.java,
339 java/io/FileInputStream.java,
340 java/io/FileOutputStream.java,
341 java/io/ObjectOutputStream.java,
342 java/io/ObjectStreamClass.java,
343 java/io/PipedInputStream.java,
344 java/io/RandomAccessFile.java:
345 Reorganized import statements.
347 2004-10-09 Michael Koch <konqueror@gmx.de>
349 * gnu/java/rmi/rmic/RMIC.java,
350 gnu/java/rmi/server/RMIHashes.java,
351 gnu/java/rmi/server/RMIObjectInputStream.java,
352 gnu/java/rmi/server/UnicastConnection.java,
353 gnu/java/rmi/server/UnicastConnectionManager.java,
354 gnu/java/rmi/server/UnicastRemoteCall.java,
355 gnu/java/rmi/server/UnicastServerRef.java:
356 Reworked import statements and fixed file headers.
358 2004-10-04 Loren J. Rittle <ljrittle@acm.org>
360 * configure.ac (*-*-freebsd[[1234]]*): Refine error message
362 * configure: Rebuilt.
364 2004-09-30 Tom Tromey <tromey@redhat.com>
366 * java/text/MessageFormat.java (Field): Constructor now
369 2004-09-30 Tom Tromey <tromey@redhat.com>
371 * javax/crypto/MacSpi.java: Fixed typo.
373 2004-09-30 Michael Koch <konqueror@gmx.de>
375 * java/net/InetAddress.java: Reformatted.
376 (loopback): Initialize with Inet4Address object.
377 (static): Initialize ANY_IF with Inet4Address object.
378 (InetAddress): Removed unused package-private constructor.
380 2004-09-30 Michael Koch <konqueror@gmx.de>
382 * java/beans/Beans.java,
383 java/beans/EventHandler.java,
384 java/beans/EventSetDescriptor.java,
385 java/beans/Introspector.java,
386 java/beans/PropertyEditorManager.java,
387 java/beans/beancontext/BeanContext.java,
388 java/beans/beancontext/BeanContextChild.java,
389 java/beans/beancontext/BeanContextChildSupport.java,
390 java/beans/beancontext/BeanContextMembershipEvent.java:
391 Reordered import statements and removed redundant modifiers.
393 2004-09-29 Tom Tromey <tromey@redhat.com>
396 * Makefile.in: Rebuilt.
397 * Makefile.am (libgcj-@gcc_version@.jar): Include properties
399 (all_property_files): New macro.
401 * Makefile.in: Rebuilt.
402 * Makefile.am (ordinary_java_source_files): Re-sorted.
403 (libgcj.la): Moved to old location near lib-gnu-awt-xlib.la.
405 2004-09-28 Tom Tromey <tromey@redhat.com>
407 * jni.cc (_Jv_JNI_RegisterNatives): Formatting fixlets.
410 * Makefile.am (libgcj.la): Restored.
411 * Makefile.in: Rebuilt.
413 2004-09-28 Michael Koch <konqueror@gmx.de>
415 * java/net/URLConnection.java: Reformatted.
416 * java/net/URLClassLoader.java: Reformatted.
417 (getContent): Reordered return of content.
418 (getContentHandler): Don't check for null explicitely.
420 2004-09-27 Michael Koch <konqueror@gmx.de>
422 * java/io/BufferedInputStream.java
423 (BufferedInputStream): Added Jeroen Frijters to authors.
424 (count): Don't explicitely initialize with default value.
426 (marklimit): Likewise.
427 (read): Changed boolean expression to match GNU classpath' version.
428 (reset): Add proper message to exception.
429 (skip): Check for closed stream.
432 2004-09-26 Per Bothner <per@bothner.com>
434 * prims.cc (unblock_signal): Annotate signum with __unused__ to
435 avoid warnings in the non-POSIX_VERSION case.
436 Also, we only need this function if either HANDLE_SEGV or HANDLE_FPE,
437 so place it inside an #if block.
438 * include/default-signal.h (SIGNAL_HANDLER): Parameters are __unused__.
439 * include/i386-signal.h (SIGNAL_HANDLER): Likewise
440 * include/mips-signal.h (SIGNAL_HANDLER): Likewise
441 * include/sparc-signal.h (SIGNAL_HANDLER): Likewise
443 2004-09-26 Per Bothner <per@bothner.com>
445 * prims.cc (process_gcj_properties): Optimization.
447 2004-09-26 Per Bothner <per@bothner.com>
449 * java/util/Collections.java (sort): Copy from array in forwards
450 order, rather than reverse order which may be much less efficient.
452 2004-09-26 Mark Wielaard <mark@klomp.org>
454 * java/lang/System.java (properties): Make package private.
455 * java/lang/Throwable.java (StaticData.nl): Initialize through
456 directly accessing System.properties.getProperty().
458 * java/lang/Throwable.java (nl): Remove static field.
459 (StaticData): New private static inner class.
460 (stackTraceStringBuffer): Use StaticData.nl.
462 2004-09-26 Casey Marshall <csm@gnu.org>
464 * java/security/ProtectionDomain.java
465 (<init>(CodeSource,PermissionCollection)): set `staticBinding' to
468 * java/security/SecureClassLoader.java
469 (defineClass): make protection domain dynamically bound.
470 (getPermissions): call `getCurrentPolicy' to avoid permission
473 2004-09-25 Mark Wielaard <mark@klomp.org>
475 * Makefile.am (core_java_source_files): Add VMTimeZone.java.
476 (nat_source_files): Rename natTimeZone.cc to natVMTimeZone.cc.
477 * Makefile.in: Regenerated.
479 * gcj/javaprims.h: Regenerated.
481 * java/util/TimeZone.java (defaultZone): Use VMTimeZone.
482 (getDefaultTimeZone): Make package private. Check that GMToffset
483 contains at least one digit.
484 (getDefaultTimeZoneId, readTimeZoneFile, readtzFile): (Re)Moved to
486 * util/VMTimeZone.java: New file with above methods.
488 * java/util/natTimeZone.cc: Removed (renamed).
489 * java/util/natVMTimeZone.cc: Added (renamed).
491 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
493 * java/util/TimeZone.java
494 (getDefaultTimeZone): Fixed test to distinguish between hours and
495 minutes in specified timezone.
497 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
499 * java/lang/reflect/Proxy.java (getPackage, ClassFactory): Fixed
500 handling of default package. (generate): Removed confused comments
501 and code about making Method and Field accessible.
503 2004-09-25 Tom Tromey <tromey@redhat.com>
506 * testsuite/libjava.compile/pr17500.java: New file.
508 2004-09-25 Shashank Bapat <shashankbapat@yahoo.com>
509 Mark Wielaard <mark@klomp.org>
511 * gnu/regexp/RE.java (initialize): Add RETokenLookAhead support.
512 * gnu/regexp/RETokenLookAhead.java: New file.
514 * Makefile.am (ordinary_java_source_files): Add RETokenLookAhead.java.
515 * Makefile.in: Regenerated.
517 2004-09-25 Michael Koch <konqueror@gmx.de>
519 * java/io/ObjectStreamField.java:
520 Removed unused import statement.
522 2004-09-24 Tom Tromey <tromey@redhat.com>
525 * testsuite/libjava.compile/pr15656.xfail: New file.
526 * testsuite/libjava.compile/pr15656.java: new file.
529 * testsuite/libjava.lang/pr16789.out: New file.
530 * testsuite/libjava.lang/pr16789.java: New file.
532 2004-09-24 Andrew Haley <aph@redhat.com>
535 * testsuite/libjava.compile/AssertBug.java: New file.
537 2004-09-24 Casey Marshall <csm@gnu.org>
539 * java/util/PropertyPermissionCollection.java
540 (implies): avoid infinite loop.
542 2004-09-24 Andrew John Hughes <gnu_andrew@member.fsf.org>
544 * javax/security/auth/PrivateCredentialPermission.java
545 (PrivateCredentialPermission): added serialization UID
548 2004-09-24 Ilya Perminov <iperminov@logicalsoft.com>
550 * gnu/java/rmi/server/UnicastServer.java
551 (incomingMessageCall): Added code to handle Errors.
552 * gnu/java/rmi/server/UnicastServerRef.java
553 (incomingMessageCall): Added code to handle Errors.
556 2004-09-24 Tom Tromey <tromey@redhat.com>
558 * java/lang/ClassLoader.java (loadedClasses): Declare as HashMap.
559 (definedPackages): Likewise.
561 2004-09-24 Michael Koch <konqueror@gmx.de>
563 * java/io/ObjectInputStream.java:
566 2004-09-24 Casey Marshall <csm@gnu.org>
568 * java/io/ObjectInputStream.java (callReadMethod): re-throw
569 `ClassNotFoundException'.
571 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
573 * java/io/ObjectInputStream.java (readObject): Delegate instantation
574 of Externalizable classes to ObjectStreamClass.
575 * java/io/ObjectStreamClass.java (newInstance): New method to
576 instantiate Externalizable (while ignoring the accessibility of
577 the constructor). (constructor): New field to cache the constructor.
579 2004-09-24 Mark Wielaard <mark@klomp.org>
581 * java/net/URL.java (systemClassLoader): New static field.
582 (getURLStreamHandler): Always use system/application classloader
583 for finding URLStreamhandler. Remove unecessary instanceof checks.
585 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
588 (set): This method now matches the behaviour of the JDK.
589 (DEFAULT_SEARCH_PATH): Added "gnu.inet".
591 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
593 * java/net/URL.java (URL): Delete whitespaces in the protocol string.
595 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
597 * java/net/URL.java (URL(String,String,int,String,URLStreamHandler):
598 Don't set authority if host isn't specified.
600 2004-09-24 Michael Koch <konqueror@gmx.de>
602 * gnu/java/nio/PipeImpl.java: Use VMPipe for native stuff.
603 * gnu/java/nio/SelectorImpl.java: Use VMSelector for native stuff.
604 * gnu/java/nio/VMPipe.java,
605 gnu/java/nio/VMSelector.java:
607 * gnu/java/nio/natPipeImplEcos.cc,
608 gnu/java/nio/natPipeImplPosix.cc,
609 gnu/java/nio/natPipeImplWin32.cc:
611 * gnu/java/nio/natSelectorImplEcos.cc,
612 gnu/java/nio/natSelectorImplPosix.cc,
613 gnu/java/nio/natSelectorImplWin32.cc:
614 Ported to VMSelector.
615 * Makefile.am: Added new files gnu/java/nio/VMPipe.java and
616 gnu/java/nio/VMSelector.java.
617 * Makefile.in: Regenerated.
619 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
621 * java/lang/StackTraceElement.java
622 (className): Renamed field to declaringClass to be compatible
623 with Sun serialization format.
625 2004-09-23 Michael Koch <konqueror@gmx.de>
627 * java/applet/AppletContext.java,
628 java/applet/Applet.java,
629 java/applet/AppletStub.java,
630 java/applet/AudioClip.java:
631 Jalopied and checkstyle clean.
633 2004-09-23 Mark Wielaard <mark@klomp.org>
635 * java/util/Collections.java
636 (binarySearch(List, Object, Comparator)): Explicitly
637 reverse direction in list iterator.
638 (rotate): Just return when list is empty.
640 2004-09-23 Tom Tromey <tromey@redhat.com>
643 * testsuite/libjava.compile/pr17329.java: New file.
646 * testsuite/libjava.jacks/jacks.xfail: Added 9.2-implicit-6 and
649 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
651 * Makefile.am: Run aclocal with -I ../config
652 * acinclude.m4: Delete macros picked up from ../config and tidy.
653 (AM_ICONV,AM_LC_MESSAGES, PKG_CHECK_MODULES): Delete.
654 * aclocal.m4, configure, Makefile.in, gcj/Makefile.in: Regenerate.
655 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
657 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
659 * aclocal.m4: Regenerate with aclocal 1.9.2.
660 * configure: Regenerate.
661 * Makefile.in, gcj/Makefile.in: Regenerate with automake 1.9.2.
662 * include/Makefile.in, testsuite/Makefile.in: Likewise.
664 2004-09-22 David Daney <ddaney@avtrex.com>
667 * java/net/URL.java (URL): Copy userInfo from context.
668 (getUserInfo): Return cached userInfo if present.
670 2004-09-22 Tom Tromey <tromey@redhat.com>
673 * mauve-libgcj: Enable java.lang.Character tests.
675 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
677 * Makefile.am (lib_org_ietf_jgss_la_DEPENDENCIES): Add missing
679 (lib_org_ietf_jgss_la_LIBADD): Likewise.
680 * Makefile.in: Regenerated.
682 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
684 * configure.ac: Introduce AC_C_BIGENDIAN_CROSS for WORDS_BIGENDIAN.
685 * configure: Regenerate.
686 * include/config.h.in: Likewise.
687 * jni/gtk-peer/gtkpeer.h (SWAPU32): Introduce macro to swap pixels.
688 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c: Moved SWAPU32
690 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
691 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_getImagePixels): Convert
692 pixels from 0xBBGGRRAA to 0xAARRGGBB only on Little Endian
694 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c (area_updated):
697 2004-09-22 Tom Tromey <tromey@redhat.com>
700 * java/util/zip/GZIPInputStream.java (read): Avoid sign extension
702 * java/util/zip/InflaterInputStream.java (onebytebuffer): New
704 (read()): New overload.
706 2004-09-21 Tom Tromey <tromey@redhat.com>
708 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
711 2004-09-21 Michael Koch <konqueror@gmx.de>
713 * java/net/Socket.java
714 (getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
716 2004-09-21 Casey Marshall <csm@gnu.org>
718 * javax/crypto/MacSpi.java (clone): Provide meaningful
721 2004-09-21 Tom Tromey <tromey@redhat.com>
724 * Makefile.in: Rebuilt.
725 * Makefile.am (MOSTLYCLEANFILES): Removed.
726 (mostlyclean-local): Remove header files.
728 2004-09-21 Casey Marshall <csm@gnu.org>
730 * java/security/cert/X509CRLSelector.java:
731 (match): remove unreachable try-catch clauses.
732 Reported by: Dalibor Topic <robilad@kaffe.org>
734 2004-09-21 Mark Wielaard <mark@klomp.org>
736 * java/util/TreeMap.java (root): Don't initialize.
737 (TreeMap(Comparator)): Call fabricateTree(0).
738 (fabricateTree): Initialize root and size when count is 0.
740 2004-09-21 Sven de Marothy <sven@physto.se>
742 * java/nio/ByteBuffer.java (hashCode): Implemented.
743 * java/nio/CharBuffer.java: Likewise.
744 * java/nio/DoubleBuffer.java: Likewise.
745 * java/nio/FloatBuffer.java: Likewise.
746 * java/nio/LongBuffer.java: Likewise.
747 * java/nio/IntBuffer.java: Likewise.
748 * java/nio/ShortBuffer.java: Likewise.
750 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
752 * javax/security/auth/x500/X500Principal.java: Fix some merge glitches.
754 2004-09-21 Michael Koch <konqueror@gmx.de>
756 * javax/net/ssl/SSLServerSocket.java:
757 Removed comment about "Do not edit this file, it's generated.".
759 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
761 Import the big Crypto/Jessie/Security merge from Classpath.
763 * Makefile.am: Add imported files.
764 * Makefile.in: Regenerate.
766 2004-08-14 Casey Marshall <csm@gnu.org>
768 The Big Crypto Merge of 2004.
770 * javax/security/auth/x500/X500Principal.java: Replaced with GNU
773 Files imported from GNU Crypto.
774 * javax/crypto/BadPaddingException.java
775 * javax/crypto/Cipher.java
776 * javax/crypto/CipherInputStream.java
777 * javax/crypto/CipherOutputStream.java
778 * javax/crypto/CipherSpi.java
779 * javax/crypto/EncryptedPrivateKeyInfo.java
780 * javax/crypto/ExemptionMechanism.java
781 * javax/crypto/ExemptionMechanismException.java
782 * javax/crypto/ExemptionMechanismSpi.java
783 * javax/crypto/IllegalBlockSizeException.java
784 * javax/crypto/KeyAgreement.java
785 * javax/crypto/KeyAgreementSpi.java
786 * javax/crypto/KeyGenerator.java
787 * javax/crypto/KeyGeneratorSpi.java
788 * javax/crypto/Mac.java
789 * javax/crypto/MacSpi.java
790 * javax/crypto/Makefile.am
791 * javax/crypto/NoSuchPaddingException.java
792 * javax/crypto/NullCipher.java
793 * javax/crypto/NullCipherImpl.java
794 * javax/crypto/SealedObject.java
795 * javax/crypto/SecretKey.java
796 * javax/crypto/SecretKeyFactory.java
797 * javax/crypto/SecretKeyFactorySpi.java
798 * javax/crypto/ShortBufferException.java
799 * javax/crypto/interfaces/DHKey.java
800 * javax/crypto/interfaces/DHPrivateKey.java
801 * javax/crypto/interfaces/DHPublicKey.java
802 * javax/crypto/interfaces/PBEKey.java
803 * javax/crypto/spec/DESKeySpec.java
804 * javax/crypto/spec/DESedeKeySpec.java
805 * javax/crypto/spec/DHGenParameterSpec.java
806 * javax/crypto/spec/DHParameterSpec.java
807 * javax/crypto/spec/DHPrivateKeySpec.java
808 * javax/crypto/spec/DHPublicKeySpec.java
809 * javax/crypto/spec/IvParameterSpec.java
810 * javax/crypto/spec/PBEKeySpec.java
811 * javax/crypto/spec/PBEParameterSpec.java
812 * javax/crypto/spec/RC2ParameterSpec.java
813 * javax/crypto/spec/RC5ParameterSpec.java
814 * javax/crypto/spec/SecretKeySpec.java
815 * javax/security/auth/AuthPermission.java
816 * javax/security/auth/DestroyFailedException.java
817 * javax/security/auth/Destroyable.java
818 * javax/security/auth/Policy.java
819 * javax/security/auth/PrivateCredentialPermission.java
820 * javax/security/auth/RefreshFailedException.java
821 * javax/security/auth/Refreshable.java
822 * javax/security/auth/Subject.java
823 * javax/security/auth/SubjectDomainCombiner.java
824 * javax/security/auth/callback/Callback.java
825 * javax/security/auth/callback/CallbackHandler.java
826 * javax/security/auth/callback/ChoiceCallback.java
827 * javax/security/auth/callback/ConfirmationCallback.java
828 * javax/security/auth/callback/LanguageCallback.java
829 * javax/security/auth/callback/NameCallback.java
830 * javax/security/auth/callback/PasswordCallback.java
831 * javax/security/auth/callback/TextInputCallback.java
832 * javax/security/auth/callback/TextOutputCallback.java
833 * javax/security/auth/callback/UnsupportedCallbackException.java
834 * javax/security/auth/login/AccountExpiredException.java
835 * javax/security/auth/login/AppConfigurationEntry.java
836 * javax/security/auth/login/Configuration.java
837 * javax/security/auth/login/CredentialExpiredException.java
838 * javax/security/auth/login/FailedLoginException.java
839 * javax/security/auth/login/LoginContext.java
840 * javax/security/auth/login/LoginException.java
841 * javax/security/auth/login/NullConfiguration.java
842 * javax/security/auth/x500/X500PrivateCredential.java
843 * javax/security/sasl/AuthenticationException.java
844 * javax/security/sasl/AuthorizeCallback.java
845 * javax/security/sasl/RealmCallback.java
846 * javax/security/sasl/RealmChoiceCallback.java
847 * javax/security/sasl/Sasl.java
848 * javax/security/sasl/SaslClient.java
849 * javax/security/sasl/SaslClientFactory.java
850 * javax/security/sasl/SaslException.java
851 * javax/security/sasl/SaslServer.java
852 * javax/security/sasl/SaslServerFactory.java
853 * org/ietf/jgss/ChannelBinding.java
854 * org/ietf/jgss/GSSContext.java
855 * org/ietf/jgss/GSSCredential.java
856 * org/ietf/jgss/GSSException.java
857 * org/ietf/jgss/GSSManager.java
858 * org/ietf/jgss/GSSName.java
859 * org/ietf/jgss/MessageProp.java
860 * org/ietf/jgss/Oid.java
861 * org/ietf/jgss/MessagesBundle.properties
863 Files imported from Jessie <http://www.nongnu.org/jessie/>
864 * javax/net/ServerSocketFactory.java
865 * javax/net/SocketFactory.java
866 * javax/net/VanillaServerSocketFactory.java
867 * javax/net/VanillaSocketFactory.java
868 * javax/net/ssl/HandshakeCompletedEvent.java
869 * javax/net/ssl/HandshakeCompletedListener.java
870 * javax/net/ssl/HostnameVerifier.java
871 * javax/net/ssl/HttpsURLConnection.java
872 * javax/net/ssl/KeyManager.java
873 * javax/net/ssl/KeyManagerFactory.java
874 * javax/net/ssl/KeyManagerFactorySpi.java
875 * javax/net/ssl/ManagerFactoryParameters.java
876 * javax/net/ssl/SSLContext.java
877 * javax/net/ssl/SSLContextSpi.java
878 * javax/net/ssl/SSLException.java
879 * javax/net/ssl/SSLHandshakeException.java
880 * javax/net/ssl/SSLKeyException.java
881 * javax/net/ssl/SSLPeerUnverifiedException.java
882 * javax/net/ssl/SSLPermission.java
883 * javax/net/ssl/SSLProtocolException.java
884 * javax/net/ssl/SSLServerSocket.java
885 * javax/net/ssl/SSLServerSocketFactory.java
886 * javax/net/ssl/SSLSession.java
887 * javax/net/ssl/SSLSessionBindingEvent.java
888 * javax/net/ssl/SSLSessionBindingListener.java
889 * javax/net/ssl/SSLSessionContext.java
890 * javax/net/ssl/SSLSocket.java
891 * javax/net/ssl/SSLSocketFactory.java
892 * javax/net/ssl/TrivialHostnameVerifier.java
893 * javax/net/ssl/TrustManager.java
894 * javax/net/ssl/TrustManagerFactory.java
895 * javax/net/ssl/TrustManagerFactorySpi.java
896 * javax/net/ssl/X509KeyManager.java
897 * javax/net/ssl/X509TrustManager.java
898 * javax/security/cert/Certificate.java
899 * javax/security/cert/CertificateEncodingException.java
900 * javax/security/cert/CertificateException.java
901 * javax/security/cert/CertificateExpiredException.java
902 * javax/security/cert/CertificateNotYetValidException.java
903 * javax/security/cert/CertificateParsingException.java
904 * javax/security/cert/X509CertBridge.java
905 * javax/security/cert/X509Certificate.java
907 2004-08-20 Casey Marshall <csm@gnu.org>
909 * java/security/cert/X509CRLSelector.java: New file.
910 * java/security/cert/X509CertSelector.java: New file.
912 2004-09-15 Michael Koch <konqueror@gmx.de>
914 * gnu/java/net/protocol/file/Handler.java
915 (openConnection): Don't throw exception if host part for file: URI is
916 present. setURL() keeps file: protocol if ftp: protocol is not
919 2004-09-14 Richard Henderson <rth@redhat.com>
921 * java/lang/natPosixProcess.cc (waitForSignal): Ignore return
924 2004-09-12 Tom Tromey <tromey@redhat.com>
926 * javax/naming/CompoundName.java (CompoundName): Don't check for
927 separator in "flat" case.
929 2004-09-12 Michael Koch <konqueror@gmx.de>
931 * libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces
932 AM_CONFIG_HEADER by AC_CONFIG_FILES.
933 * libltdl/Makefile.in, libltdl/aclocal.m4, libltdl/configure:
936 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
939 * win32-threads.cc (_Jv_ThreadInitData): Zero out thread
940 handle in newly-allocated _Jv_Thread_t.
941 (_Jv_ThreadDestroyData): Close thread handle.
942 (_Jv_ThreadStart): Remove obsolete comment.
943 Store handle of newly-created thread in _Jv_Thread_t.
944 * include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
945 before including <windows.h>
946 #define _Jv_HaveCondDestroy
948 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
950 * java/lang/natThread.cc (finalize_native): Destroy
951 join conditional variable and mutex if these destroy
952 operations are supported.
954 2004-09-10 Dalibor Topic <robilad@kaffe.org>
956 * gnu/java/net/protocol/file/Connection.java (permission): New field.
957 (DEFAULT_PERMISSION): New constant.
958 (Connection): Create a FilePermission with permission to read file.
960 2004-09-10 Michael Koch <konqueror@gmx.de>
962 * gnu/java/net/protocol/file/Connection.java
963 (getLastModified): Moved around.
964 (getPermission): Return stored permission.
966 2004-09-10 Michael Koch <konqueror@gmx.de>
968 * Makefile.in: Regenerate.
970 2004-09-10 Michael Koch <konqueror@gmx.de>
972 * Makefile.am: Reverted accidently commited stuff.
973 * configure: Regenerated.
975 2004-09-10 Michael Koch <konqueror@gmx.de>
977 * gnu/java/net/protocol/file/Connection.java
978 (lineSeparator): Made non-final.
980 (connect): Initialize lineSeparator lazily. Use ByteArrayInputStream
981 instead of StringBufferInputStream.
983 2004-09-10 Michael Koch <konqueror@gmx.de>
985 * gnu/java/net/protocol/file/Connection.java
986 (connect): Handle file is a directory case.
988 2004-09-10 Michael Koch <konqueror@gmx.de>
991 (xlib_includes): Removed.
992 (AM_CPPFLAGS): Renamed from INCLUDES.
993 (lib_gnu_awt_xlib_la_CPPFLAGS): New automake variable.
994 * Makefile.in: Regenerate.
996 2004-09-09 Michael Koch <konqueror@gmx.de>
998 * java/security/ProtectionDomain.java,
999 * java/util/PropertyPermissionCollection.java:
1000 Fixed javadocs all over.
1002 2004-09-09 Sven de Marothy <sven@physto.se>
1004 Patch from David Gilbert <david.gilbert@object-refinery.com>
1005 * java/lang/Comparable.java: Fixed documentation errors.
1006 * java/util/Arrays.java: Likewise.
1008 2004-09-09 Andrew John Hughes <gnu_andrew@member.fsf.org>
1010 * java/net/Inet4Address.java
1011 (Inet4Address): Added comment to serialization UID.
1012 * java/text/Format.java
1013 (Format): Added comment to serialization UID.
1015 2004-09-09 Michael Koch <konqueror@gmx.de>
1017 * java/lang/System.java
1018 (err): Fixed javadoci to point to setErr() and not setOut().
1020 2004-09-09 Jeroen Frijters <jeroen@frijters.net>
1022 (normalizePath): Added special case for windows systems.
1024 2004-09-09 Michael Koch <konqueror@gmx.de>
1027 (dupSeparator): Made private.
1028 (File(URI)): New constructor.
1029 (getParentFile): Fixed javadoc.
1030 (createTempFile): Reformated.
1031 (setReadOnly): Added comment.
1032 (deleteOnExit): Merged javadoc with classpath version.
1034 2004-09-09 Michael Koch <konqueror@gmx.de>
1036 * Makefile.am: Don't try to include deps.mk.
1037 * Makefile.in: Regenerated.
1039 2004-09-08 Bryce McKinlay <mckinlay@redhat.com>
1041 * configure.ac (AC_CONFIG_COMMANDS): Don't create subdirectories and
1043 * configure: Rebuilt.
1045 2004-09-04 Mohan Embar <gnustuff@thisiscool.com>
1047 * java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces):
1048 Changed pfn from static local to local.
1050 2004-09-03 Bryce McKinlay <mckinlay@redhat.com>
1051 H.J. Lu <hongjiu.lu@intel.com>
1054 * Makefile.am (GCJCOMPILE): Remove definition.
1055 (AM_CFLAGS): Add -fclasspath and -fbootclasspath flags.
1056 Use LTGCJCOMPILE, not GCJCOMPILE, to build .lo targets.
1057 * Makefile.in: Rebuilt.
1059 2004-09-03 Kelley Cook <kcook@gcc.gnu.org>
1061 * configure.ac (enable-gc-debug): Update help for new syntax.
1062 * configure: Regenerate.
1064 2004-09-03 David Daney <ddaney@avtrex.com>
1066 * include/mips-signal.h: Update copyright.
1068 2004-09-03 David Daney <ddaney@avtrex.com>
1070 * configure.host: Use -fno-use-divide-subroutine for mips*-*-linux*.
1071 * include/mips-signal.h: Added HANDLE_FPE support.
1073 2004-08-31 Michael Koch <konqueror@gmx.de>
1075 * javax/swing/plaf/basic/BasicTextAreaUI.java
1076 (create): New method.
1077 * javax/swing/text/DefaultHighlighter.java
1078 (DefaultHighlightPainter.debugRect): Removed.
1079 * javax/swing/text/StyleContext.java
1080 (DEFAULT_STYLE): New field.
1082 2004-08-31 Michael Koch <konqueror@gmx.de>
1084 * javax/swing/plaf/basic/BasicLookAndFeel.java
1085 (initComponentDefaults): Add keybindings for selection.backward and
1086 selection-forward for text components.
1087 * javax/swing/plaf/basic/BasicTextUI.java
1088 (paintSafely): Paint highlight only when something is actually
1090 * javax/swing/text/DefaultCaret.java
1091 (handleHighlight): New method.
1092 (setSelectionVisible): Don't do anything when nothing changes.
1094 (moveDot): Reimplemented. Handle highlight.
1095 (setDot): Set mark too. Handle highlight.
1096 (getSelectionPainter): New method.
1097 * javax/swing/text/DefaultEditorKit.java
1098 (defaultActions): Added new actions for text selection.
1099 * javax/swing/text/DefaultHighlighter.java
1100 (DefaultHighlightPainter): New inner class.
1101 (DefaultPainter): New field.
1102 (paint): Implemented.
1103 * javax/swing/text/PlainView.java
1104 (paint): Don't draw background here again.
1105 * javax/swing/text/Utilities.java
1106 (getTabbedTextWidth): Use width of ' ' instead of 'm' for tabsize.
1107 (drawTabbedText): Likewise.
1109 2004-08-31 Graydon Hoare <graydon@redhat.com>
1111 * javax/swing/JComponent.java
1112 (resetKeyboardActions): Add null checks.
1114 2004-08-31 Graydon Hoare <graydon@redhat.com>
1116 * javax/swing/DefaultButtonModel.java:
1117 Skip group notification when no group is set.
1119 2004-08-31 Graydon Hoare <graydon@redhat.com>
1121 * javax/swing/JColorChooser.java:
1122 Make a couple inner classes static, for jikes.
1124 2004-08-31 Michael Koch <konqueror@gmx.de>
1126 * javax/swing/plaf/basic/BasicTextUI.java
1127 (RottView.modelToView): New method.
1128 (UpdateHandler): Renamed from EventHandler.
1129 (updateHandler): Renamed from eventHandler.
1130 (modelToView): Implemented.
1131 * javax/swing/text/AbstractDocument.java
1132 (BranchElement.getElement): Return null for non-existing indeces.
1133 (BranchElement.getElementIndex): Return 0 in some corner cases.
1134 * javax/swing/text/FieldView.java
1135 (modelToView): New method.
1136 * javax/swing/text/PlainView.java
1137 (modelToView): Made public.
1139 2004-08-31 Kim Ho <kho@redhat.com>
1141 * Makefile.am: New files.
1142 * Makefile.in: Regenerate.
1143 * gcj/Makefile.in: Regenerate.
1144 * include/Makefile.in: Regenerate.
1145 * java/awt/Color.java: Fix documentation.
1146 (RGBtoHSB): Use floats for conversions.
1147 * javax/swing/ButtonGroup.java: Run Jalopy.
1148 (setSelected): Reimplement.
1149 * javax/swing/DefaultButtonModel.java: Run Jalopy.
1150 (changeState): Let ButtonGroup know that the button
1152 * javax/swing/JColorChooser.java: Implement.
1153 * javax/swing/JLabel.java: Run Jalopy.
1154 * javax/swing/JSpinner.java: Run Jalopy.
1155 (setValue): New method.
1156 * javax/swing/JTabbedPane.java: Run Jalopy.
1157 (removeTabAt): Call correct remove method.
1158 * javax/swing/SpinnerNumberModel.java: Run Jalopy.
1159 (getPreviousValue): Compare minimum value.
1160 * javax/swing/Timer.java: Run Jalopy.
1161 (run): Comment out println.
1162 * javax/swing/ToolTipManager.java:
1163 (mouseMoved): Get new tooltip text for location.
1164 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
1166 * javax/swing/colorchooser/ColorChooserComponentFactory.java:
1168 * javax/swing/colorchooser/DefaultColorSelectionModel.java:
1170 (setSelectedColor): Fire ChangeEvent.
1171 * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
1172 New file. Implement.
1173 * javax/swing/colorchooser/DefaultPreviewPanel.java:
1175 * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
1177 * javax/swing/colorchooser/DefaultSwatchChooserPanel.java:
1179 * javax/swing/plaf/basic/BasicArrowButton.java:
1180 (getArrow): Fix size of upward pointing button.
1181 * javax/swing/plaf/basic/BasicColorChooserUI.java:
1183 * javax/swing/plaf/basic/BasicSliderUI.java:
1184 (getWidthOfWidestLabel): Use preferred dimensions.
1185 (getHeightOfTallestLabel): Ditto.
1186 * javax/swing/plaf/basic/BasicSpinnerUI.java:
1188 (mousePressed): Disable changes to spinner if it is not enabled.
1189 * testsuite/Makefile.in: Regenerate.
1192 2004-08-31 Michael Koch <konqueror@gmx.de>
1194 * javax/swing/plaf/basic/BasicTableHeaderUI.java,
1195 javax/swing/plaf/basic/BasicTableUI.java:
1196 Added copyright notice.
1198 2004-08-31 Olga Rodimina <rodimina@redhat.com>
1200 * Makefile.am: Added new files.
1201 * Makefile.in: Regenerate.
1202 * javax/swing/ComboBoxEditor.java: Added javadocs.
1203 * javax/swing/ComboBoxModel.java: Likewise.
1204 * javax/swing/DefaultComboBoxModel.java: Implemented.
1205 * javax/swing/DefaultListCellRenderer.java: Added javadocs
1206 and ran through jalopy to fix formatting style.
1207 (getListCellRendererComponent): Use appropriate border
1208 if renderer has focus and use noFocusBorder when it doesn't.
1209 * javax/swing/JComboBox.java: Implemented.
1210 * javax/swing/JList.java:
1211 (locationToIndex): New Method. Implemented.
1212 (indexToLocation): New Method.
1213 * javax/swing/JPopupMenu.java:
1214 (visible): New field.
1215 (isVisible): Changed to use new field above.
1216 (setVisible): Likewise.
1217 * javax/swing/MutableComboBoxModel.java: Added javadocs.
1218 * javax/swing/plaf/basic/BasicArrowButton.java:
1219 (shadow): Changed default color to Color.gray.
1220 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
1221 UI delegate for JComboBox.
1222 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
1223 Popup menu containing list of JComboBox's items.
1224 * javax/swing/plaf/basic/BasicComboBoxEditor.java: New File.
1225 * javax/swing/plaf/basic/BasicComboBoxRenderer.java: New File.
1226 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
1227 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
1228 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
1229 (popupMenuWillBecomeVisible): Set selected path to the first
1230 element only if it is of type MenuElement. Also fix formatting
1232 * javax/swing/plaf/basic/ComboPopup.java: Added javadocs and missing
1235 2004-08-31 Michael Koch <konqueror@gmx.de>
1237 * javax/swing/text/AbstractDocument.java
1238 (createBranchElement): Use new constructor of BranchElement.
1239 (createLeafElement): Renamed arguments.
1240 (getRootElements): Implemented.
1241 (BranchElement.start): Removed.
1242 (BranchElement.end): Likewise.
1243 (BranchElement.BranchElement): Fixed arguments.
1244 (BranchElement.getEndOffset): Reimplemented.
1245 (BranchElement.getStartOffset): Likewis.
1246 * javax/swing/text/DefaultCaret.java
1247 (paint): Draw simple vertical line as caret instead of a rectangle.
1248 * javax/swing/text/JTextComponent.java
1249 (setText): Use doc directly.
1250 * javax/swing/text/PlainView.java
1251 (nextTabStop): Implemented.
1252 * javax/swing/text/Utilities.java
1253 (drawTabbedText): nextTabStop() returns an absolute x position.
1254 (getTabbedTextWidth): Likewise.
1256 2004-08-31 Graydon Hoare <graydon@redhat.com>
1258 * java/awt/Component.java
1259 (isFocusTraversable): Predicate on isLightweight()
1260 (setFocusable): Set isFocusTraversableOverridden.
1261 (requestFocus): Predicate peer dispatch on !isLightweight()
1262 (requestFocusInWindow): Likewise.
1263 (dispatchEventImpl): Coordinate with KeyboardFocusManager.
1264 * java/awt/Container.java
1265 (dispatchEventImpl): Predicate on event mask.
1266 (LightweightDispatcher): Remove focus machinery.
1267 * java/awt/DefaultFocusTraversalPolicy.java
1268 (accept): Expand predicate to include isFocusable().
1269 * java/awt/DefaultKeyboardFocusManager.java:
1270 Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
1271 * java/awt/KeyboardFocusManager.java
1272 (redispatchEvent): Synchronize on event to prevent feedback.
1273 * javax/swing/AbstractButton.java
1274 (ButtonFocusListener): Remove class.
1275 (init): Set focusPainted, focusable.
1276 * javax/swing/ActionMap.java (get): Check parent for null.
1277 * javax/swing/InputMap.java (get): Likewise.
1278 * javax/swing/JComponent.java
1279 (inputMap_whenFocused): New InputMap.
1280 (inputMap_whenAncestorOfFocused): Likewise.
1281 (inputMap_whenInFocusedWindow): Likewise.
1282 (getActionForKeyStroke): Rewrite.
1283 (getConditionForKeystroke): Likewise.
1284 (ActionListenerProxy): New private class.
1285 (setInputMap): Implement.
1286 (getInputMap): Likewise.
1287 (setActionMap): Likewise.
1288 (getActionMap): Likewise.
1289 (processComponentKeyEvent): New empty method.
1290 (processKeyEvent): Implement.
1291 (processKeyBinding): Likewise.
1292 (resetKeyboardActions): Rewrite.
1293 * javax/swing/KeyStroke.java: Rewrite.
1294 * javax/swing/SwingUtilities.java
1295 (notifyAction): Implement.
1296 (replaceUIActionMap): Likewise.
1297 (replaceUIInputMap): Likewise.
1298 * javax/swing/plaf/basic/BasicButtonListener.java
1299 (focusGained): Implement.
1300 (focusLost): Repaint if focusPainted().
1301 (installKeyboardActions): Install pressed / released actions.
1302 (uninstallKeyboardActions): Implement.
1303 * javax/swing/plaf/basic/BasicButtonUI.java
1304 (focusColor): New field.
1305 (installDefaults): Load focus color, install input map.
1306 (installKeyboardActions): Implement.
1307 (uninstallKeyboardActions): Likewise.
1308 (paintFocus): Rewrite.
1309 * javax/swing/plaf/basic/BasicLookAndFeel.java
1310 (Button.focus): New default, midPurple.
1311 * javax/swing/plaf/basic/BasicTextUI.java
1313 (installUI): Get doc from kit, load defaults.
1314 (getKeymapName): Implement.
1315 (createKeymap): Likewise.
1316 (installKeyboardActions): Likewise.
1317 (getInputMap): Likewise.
1318 (getActionMap): Likewise.
1319 (createActionMap): Likewise.
1320 * javax/swing/text/AbstractDocument.java
1321 (getStartPosition): Implement.
1322 (getEndPosition): Likewise.
1323 * javax/swing/text/DefaultEditorKit.java
1324 (CopyAction): New class.
1325 (CutAction): Likewise.
1326 (DefaultKeyTypedAction): Likewise.
1327 (InsertBreakAction): Likewise.
1328 (InsertContentAction): Likewise.
1329 (InsertTabAction): Likewise.
1330 (PasteAction): Likewise.
1331 (defaultActions): New static table.
1332 (createCaret): Implement.
1333 (getActions): Likewise.
1334 * javax/swing/text/JTextComponent.java
1335 (KeymapWrapper): New private class.
1336 (KeymapActionMap): Likewise.
1337 (DefaultKeymap): New class.
1338 (keymaps): New static table.
1339 (keymap): New field.
1340 (getKeymap): Implement.
1341 (removeKeymap): Likewise.
1342 (addKeymap): Likewise.
1343 (setKeymap): Likewise.
1344 (loadKeymap): Likewise.
1345 (getActions): Likewise.
1346 (margin): New field.
1347 (JTextComponent): Build and install default keymap.
1348 * javax/swing/text/TextAction.java
1349 (textAction): Call super properly.
1350 (getTextComponent): Implement.
1351 * javax/swing/text/Utilities.java
1352 (drawTabbedText): Adjust position by ascent.
1354 2004-08-31 David Jee <djee@redhat.com>
1358 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
1359 (setEnabled): Make it a native method.
1360 * java/awt/DefaultKeyboardFocusManager.java
1361 (postProcessKeyEvent): Only post event if the menu item
1363 * java/awt/MenuItem.java:
1364 Private field 'enabled' should be true by default.
1365 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
1366 (setEnabled): New function.
1368 2004-08-31 David Jee <djee@redhat.com>
1372 * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
1373 (nativeSetHelpMenu): New native method declaration.
1374 (addHelpMenu): Call nativeSetHelpMenu().
1376 * java/awt/MenuBar.java
1377 (setHelpMenu): Call addNotify() on the new help menu.
1378 (add): Call addNotify() on the new menu.
1379 (addNotify): Set the help menu if one exists.
1380 * java/awt/peer/MenuBarPeer.java
1382 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
1383 (nativeSetHelpMenu): New method.
1385 2004-08-31 Graydon Hoare <graydon@redhat.com>
1387 * Makefile.am: Add new files.
1388 * Makefile.in: Regenerate.
1389 * javax/swing/Box.java: Fix setting of layout in ctor.
1390 * javax/swing/JScrollPane.java: Scroll headers as well.
1391 * javax/swing/JTable.java: Reimplement.
1392 * javax/swing/JViewPort.java: Only add non-null children.
1393 * javax/swing/ScrollPaneLayout.java: Correct header calculations.
1394 * javax/swing/Timer.java: Fix stopping null waker.
1395 * javax/swing/plaf/basic/BasicTableHeaderUI.java: New file.
1396 * javax/swing/plaf/basic/BasicTableUI.java: New file.
1397 * javax/swing/table/DefaultTableCellRenderer.java: Configure.
1398 * javax/swing/table/DefaultTableColumnModel.java: Flesh out.
1399 * javax/swing/table/DefaultTableModel.java: Clean up.
1400 * javax/swing/table/JTableHeader.java: Implement.
1402 2004-08-31 Mark Wielaard <mark@klomp.org>
1404 * javax/swing/JSpinner.java (getChangeListeners): Remove double
1407 2004-08-31 Mark Wielaard <mark@klomp.org>
1409 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
1410 Declare variables at top of functions/block.
1411 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Likewise.
1413 2004-08-31 Mark Wielaard <mark@klomp.org>
1415 * java/lang/Rectangle.java (intersects): Check r.width and r.height
1418 2004-08-31 Michael Koch <konqueror@gmx.de>
1420 * javax/swing/text/PlainView.java
1421 (selectedColor): New field.
1422 (unselectedColor): Likewise.
1424 (updateMetrics): New method.
1425 (lineToRect): Likewise.
1426 (modelToView): Likewise.
1427 (drawSelectedText): Use color from JTextComponent ad draw with
1429 (drawUnselectedText): Likewise.
1430 (paint): Initialize helper fields.
1431 * javax/swing/text/View.java
1432 (getChildAllocation): New method.
1433 (getViewIndex): Likewise.
1434 (getToolTipText): Likewise.
1436 2004-08-31 Michael Koch <konqueror@gmx.de>
1438 * javax/swing/text/Utilities.java
1439 (drawTabbedText): Reimplemented.
1440 (getTabbedTextWidth): Likewise.
1442 2004-08-31 Michael Koch <konqueror@gmx.de>
1444 * javax/swing/plaf/basic/BasicTextUI.java
1445 (installDefaults): Install caret and highlighter.
1446 (modelToView): Use Bias.Forward when calling sibling.
1447 * javax/swing/text/AbstractDocument.java
1448 (ElementEdit): Implements DocumentEvent.ElementChange.
1449 (ElementEdit.ElementEdit): New method.
1450 (ElementEdit.getChildrenAdded): Likewise.
1451 (ElementEdit.getChildrenRemoved): Likewise.
1452 (ElementEdit.getElement): Likewise.
1453 (ElementEdit.getIndex): Likewise.
1454 * javax/swing/text/DefaultCaret.java
1456 (textComponent): Renamed from parent, made private.
1457 (selectionVisible): Renamed from vis_sel, made private.
1458 (blinkRate): Renamed from blink, made private.
1459 (magicCaretPosition): Renamed from magic, made private.
1460 (visible): Renamed from vis, made private.
1461 (dot): Made private.
1463 (deinstall): Remove as MouseMotionListener.
1464 (install): Initialize textComponent first. Add as MouseMotionListener.
1465 (paint): Reimplemented.
1466 * javax/swing/text/JTextComponent.java
1467 (setCaret): Deinstall old caret, install new one and fire property
1468 change after setting property.
1469 (setHighlighter): Deinstall old highlighter, install new one and fire
1470 property change after setting property.
1471 (setCaretColor): Fire property change after setting property.
1472 (setDisabledTextColor): Likewise.
1473 (setSelectedTextColor): Likewise.
1474 (setSelectionColor): Likewise.
1475 (modelToView): New method.
1477 2004-08-31 Michael Koch <konqueror@gmx.de>
1479 * javax/swing/text/AbstractDocument.java
1480 (getText): Simplified.
1481 * javax/swing/text/Segment.java
1482 (current): New field.
1483 (current): Reimplemented.
1485 (getIndex): Likewise.
1488 (previous): Likewise.
1489 (setIndex): Likewise.
1491 2004-08-31 Michael Koch <konqueror@gmx.de>
1493 * javax/swing/plaf/basic/BasicButtonUI.java
1494 (defaultTextIconGap): Made protected.
1495 (defaultTextShiftOffset): Likewise.
1496 (textShiftOffset): New field.
1497 (clearTextShiftOffset): New method.
1498 (getTextShiftOffset): Likewise.
1499 (setTextShiftOffset): Likewise.
1501 2004-08-31 Michael Koch <konqueror@gmx.de>
1503 * javax/swing/plaf/basic/BasicTextUI.java
1504 (installUI): Add eventHandler as property listener.
1505 (uninstallUI): remove eventHandler as propert listener.
1506 (installDefaults): Added comment.
1507 (installListeners): Likewise.
1508 (installKeyboardActions): Likewise.
1509 (uninstallDefaults): Likewise.
1510 (uninstallListeners): Likewise.
1511 (uninstallKeyboardActions): Likewise.
1513 2004-08-31 Michael Koch <konqueror@gmx.de>
1515 * javax/swing/text/AbstractDocument.java:
1516 Fixed some typos in comments.
1517 (insertString): Reimplemented.
1519 (replace): New method.
1520 (children): Dont use fully qualified class name.
1521 (DefaultDocumentEvent.offset): Renamed from off.
1522 (DefaultDocumentEvent.length): Renamed from len.
1523 (DefaultDocumentEvent.type): New field.
1524 (DefaultDocumentEvent.DefaultDocumentEvent): New constructor.
1525 (DefaultDocumentEvent.getType): Implemented.
1527 2004-08-31 Michael Koch <konqueror@gmx.de>
1529 * javax/swing/plaf/basic/BasicTextUI.java
1530 (RootView.textComponent): Removed.
1531 (RootView.RootView): Don't initialize textComponent.
1532 (RootView.getViewFactory): New method.
1533 (EventHandler): New inner class.
1534 (rootView): Initialize at instance creation.
1535 (eventHandler): New field.
1536 (installUI): Don't create view hierarchy directly,
1537 call modelChanged() instead.
1538 (modelChanged): New method.
1539 * javax/swing/text/JTextComponent.java
1540 (setDocument): Fire property change event.
1542 2004-08-31 Michael Koch <konqueror@gmx.de>
1544 * javax/swing/plaf/basic/BasicTextUI.java
1545 (RootView.paint): Removed debug output.
1546 (paintSafely): Draw highlighter before text.
1547 (paintBackground): Use background color of text component.
1548 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
1551 2004-08-31 Michael Koch <konqueror@gmx.de>
1553 * javax/swing/plaf/basic/BasicToolBarUI.java
1554 (BasicToolBarUI): Fixed arguments for constructor.
1555 (createUI): Fixed creation of object.
1557 2004-08-31 Michael Koch <konqueror@gmx.de>
1559 * javax/swing/DefaultListSelectionModel.java
1560 (fireValueChanged): Renamed from fireSelectionValueChanged,
1563 2004-08-31 Michael Koch <konqueror@gmx.de>
1565 * javax/swing/text/TabSet.java
1566 (TabSet): Implements java.io.Serializable.
1567 * javax/swing/text/TabStop.java
1568 (TabStop): Implements java.io.Serializable.
1569 (TabStop): Made public.
1571 2004-08-31 Michael Koch <konqueror@gmx.de>
1573 * javax/swing/JComponent.java
1574 (setUI): Fire PropertyChange.
1575 * javax/swing/JLabel.java
1576 (text): Renamed from labelText.
1577 (horizontalAlignment): New default vlaue.
1578 (icon): Renamed from activeIcon.
1579 (displayedMnemonic): Renamed from mnemonicKey, added default value.
1580 (displayedMnemonicIndex): Renamed from underlineChar.
1581 (setDisplayedMnemonic): Reimplemented.
1582 * javax/swing/JRadioButton.java
1583 (JRadioButton): New constructors.
1584 * javax/swing/JTextField.java
1585 (JTextField): Throw exception if colums < 0, initialitialz
1586 this.columns directly and initialize document with text conditionally.
1588 2004-08-31 Michael Koch <konqueror@gmx.de>
1590 * javax/swing/plaf/basic/BasicFormattedTextFieldUI.java,
1591 javax/swing/plaf/basic/BasicPasswordFieldUI.java,
1592 javax/swing/plaf/basic/BasicTextAreaUI.java: New files.
1593 * javax/swing/text/FieldView.java
1594 (paint): Just call super method for now.
1595 * Makefile.am: Added new files.
1596 * Makefile.in: Regenerated.
1598 2004-08-31 Ka-Hing Cheung <kahing@javabsp.org>
1600 * javax/swing/AbstractSpinnerModel.java,
1601 javax/swing/JSpinner.java,
1602 javax/swing/SpinnerNumberModel.java,
1603 javax/swing/plaf/basic/BasicSpinnerUI.java:
1605 * javax/swing/plaf/basic/BasicLookAndFeel.java
1606 (initClassDefaults): Added defaults for BasicSpinnerUI.
1608 2004-08-31 Michael Koch <konqueror@gmx.de>
1610 * Makefile.am: Added new files.
1611 * Makefile.in: Regenerated.
1613 2004-08-31 Michael Koch <konqueror@gmx.de>
1615 * javax/swing/TransferHandler.java,
1616 javax/swing/plaf/basic/ComboPopup.java: New files
1617 * Makefile.am: Added javax/swing/TransferHandler.java and
1618 javax/swing/plaf/basic/ComboPopup.java
1619 * Makefile.in: Regenerated.
1621 2004-08-31 Roman Kennke <roman@ontographics.com>
1623 * javax/swing/text/Utilities.java: New file.
1625 2004-08-31 Michael Koch <konqueror@gmx.de>
1627 * Makefile.am: Added javax/swing/text/Utilities.java.
1628 * Makefile.in: Regenerated.
1630 2004-08-31 Graydon Hoare <graydon@redhat.com>
1632 * javax/swing/text/SimpleAttributeSet.java: New file.
1633 * javax/swing/text/StyleConstants.java: New file.
1634 * javax/swing/text/StyleContext.java: New file.
1635 * javax/swing/text/TabSet.java: New file.
1636 * javax/swing/text/TabStop.java: New file.
1637 * javax/swing/text/AbstactDocument.java:
1638 (AbstractElement): Implement attribute support.
1639 * javax/swing/text/AttributeSet.java
1640 (NameAttribute): New static field.
1641 (ResolveAttribute): New static field.
1642 * Makefile.am: Update for new files.
1643 * Makefile.in: Regenerate.
1645 2004-08-31 Craig Black <craig.black@aonix.com>
1647 * gnu/java/awt/peer/gtk/GdkGraphics.java
1648 (drawImage): Add support for scaling pixmaps.
1649 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1650 (copyAndScalePixmap): New native method.
1652 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1655 * jni/gtk-peer/gthread-jni.c: Include stdio.h. Eliminate
1656 type-punning compiler warnings using unions.
1657 (throw): Replace bzero with memset.
1659 2004-08-31 Andreas Tobler <a.tobler@schweiz.ch>
1660 Thomas Fitzsimmons <fitzsim@redhat.com>
1662 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: Move
1663 NSA_PB macros to gtkpeer.h. Include gtkpeer.h.
1664 * jni/gtk-peer/gtkpeer.h: Move NSA_PB macros here.
1665 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1666 (nativeSetIconImageFromDecoder): Use NSA_GET_PB_PTR macro.
1668 2004-08-31 Mark Wielaard <mark@klomp.org>
1670 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
1671 #include gdk.h, not gtk.h. #include jni.h, native_state.h, string.h
1672 and stdlib.h, not gtkpeer.h.
1673 (*vm): New static variable.
1674 (areaPreparedID): Make static.
1675 (areaUpdatedID): Likewise.
1676 (area_prepared): Get and use JNIEnv through stored JavaVM *vm.
1677 (area_prepared): Likewise.
1678 (area_updated): Likewise.
1680 (initStaticState): Initialize *vm javaVM.
1681 (pumpBytes): Use given env, not global gdk_env.
1683 2004-08-31 Mark Wielaard <mark@klomp.org>
1685 * java/awt/geom/CubicCurve2D.java (solveCubic): Removed duplicate
1688 2004-08-31 Sven de Marothy <sven@physto.se>
1690 * java/awt/geom/CubicCurve2D.java: Reindent.
1691 (contains): Implemented.
1692 (intersects): Implemented.
1693 * java/awt/geom/QuadCurve2D.java: Likewise.
1694 * java/awt/geom/GeneralPath.java: Reindent and document.
1695 Fully (re)implemented using separate xpoints and ypoints
1697 * java/awt/geom/RoundRectangle2D.java: Several bugfixes (Bug #6007).
1699 2004-08-31 Michael Koch <konqueror@gmx.de>
1701 * javax/swing/JMenuItem.java
1702 (getMenuDragMouseListeners): New method.
1703 (getMenuKeyListeners): Likewise.
1705 2004-08-31 Michael Koch <konqueror@gmx.de>
1707 * javax/swing/AbstractButton.java
1708 (model): Made protected.
1709 (actionListener): Likewise.
1710 (changeListener): Likewise.
1711 (itemListener): Likewise.
1712 (multiClickThreshhold): New field.
1713 (getActionListeners): New method.
1714 (getChangeListeners): Likewise.
1715 (getItemListeners): Likewise.
1716 (fireItemStateChanged): Simplified implementation.
1717 (fireActionPerformed): Likewise.
1718 (fireStateChanged): Likewise.
1719 (getMultiClickThreshhold): New method.
1720 (setMultiClickThreshhold): Likewise.
1722 2004-08-31 Tom Tromey <tromey@redhat.com>
1724 * java/awt/image/Kernel.java (clone): Use super.clone().
1726 2004-08-31 David Jee <djee@redhat.com>
1729 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1730 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1731 (nativeSetIconImageFromData): New native method declaration.
1732 (setIconImage): Handle images not produced from GdkPixbufDecoder.
1733 * gnu/java/awt/peer/gtk/GtkImage.java
1734 (getPixelCache): New method.
1735 (getColorModel): New method.
1736 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1737 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1738 (free_pixbuf_data): New helper function.
1739 (nativeSetIconImageFromData): New function.
1741 2004-08-31 Graydon Hoare <graydon@redhat.com>
1744 * javax/swing/JLayeredPane.java
1745 (setLayer): Permit changing layer after addition.
1746 (setPosition): Permit over-length positions.
1747 (layerToRange): Compare intValue()s.
1748 * javax/swing/Box.java (createHorizontalBox): Implement.
1749 (createRigidArea): Likewise.
1750 (createVerticalBox): Likewise.
1752 2004-08-31 Kim Ho <kho@redhat.com>
1754 * java/awt/Component.java:
1755 (processMouseEvent): Consume event after
1756 listeners process it.
1757 (processMouseMotionEvent): ditto.
1758 (processMouseWheelEvent): ditto.
1759 * java/awt/Container.java:
1760 (acquireComponentForMouseEvent):
1761 Do not dispatch to events that have been
1762 removed from the Container.
1763 (handleEvent): Consume the MouseEvents.
1764 * javax/swing/RepaintManager.java:
1765 (paintDirtyRegions): Do not add to list of
1766 damaged areas if the component has no root.
1768 2004-08-31 Michael Koch <konqueror@gmx.de>
1770 * javax/swing/plaf/basic/BasicMenuItemUI.java: Clean ip imports.
1772 2004-08-31 Mark Wielaard <mark@klomp.org>
1774 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
1775 null when a MissingResourceException is thrown. Should never happen.
1777 2004-08-31 Mark Wielaard <mark@klomp.org>
1779 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1780 when argument is null.
1782 2004-08-31 Mark Wielaard <mark@klomp.org>
1784 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1785 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
1786 Define hid at start of function.
1787 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
1790 2004-08-31 Mark Wielaard <mark@klomp.org>
1792 * gnu/java/awt/EmbeddedWindow.java: Reindent.
1793 * javax/swing/JButton.java: Reindent.
1794 * javax/swing/JCheckBox.java: Reindent.
1796 2004-08-31 Mark Wielaard <mark@klomp.org>
1798 * Makefile.am (gtk_c_source_files): Added
1799 jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c.
1800 (gtk_awt_peer_sources): Added
1801 gnu/java/awt/peer/gtk/GThreadMutex.java and
1802 gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java.
1803 * Makefile.in: Regenerated.
1805 2004-08-31 Archie Cobbs <archie@dellroad.org>
1807 * jni/gtk-peer/gthread-jni.c: don't #include nonexistent files
1809 2004-08-31 Steven Augart <augart@watson.ibm.com>
1811 * jni/gtk-peer/gthread-jni.c (c-font-lock-extra-types):
1812 Added jfieldID, jmethodID.
1814 2004-08-31 Mark Wielaard <mark@klomp.org>
1816 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1817 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): Initialize
1818 gdk_env before calling any gdk or gtk function.
1820 * gnu/java/awt/peer/gtk/GtkMainThread.java (gtkInitCalled): New field.
1821 (GtkMainThread): Call wait() in while loop waiting for gtkInitCalled.
1822 (run): Set gtkInitCalled.
1824 2004-08-31 Steven Augart <augart@watson.ibm.com>
1826 * gnu/java/awt/peer/gtk/GtkMainThread.java (run): Pass the value of
1827 the gnu.classpath.awt.gtk.portable.native.sync system property to C.
1829 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1830 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): New argument,
1831 portableNativeSync. Delegate PORTABLE_NATIVE_SYNC work to
1833 (init_glib_threads): New function.
1835 2004-08-31 Mark Wielaard <mark@klomp.org>
1837 * jni/gtk-peer/gthread-jni.c: Define MIN_, MAX_ and NORM_
1838 PRIORITY when not already defined in header file.
1840 2004-08-31 Mark Wielaard <mark@klomp.org>
1842 * jni/gtk-peer/gthread-jni.c (setup_cache): Call
1843 ExceptionOccurred, not ExceptionCheck, when we don't have JNI 1.2.
1845 2004-08-31 Steven Augart <augart@watson.ibm.com>
1847 * gnu/native/jni/gtk-peer/gthread-jni.c: Indentation fixes.
1848 Implemented missing functions for GTK2.
1849 Added error handling.
1850 Renamed static functions out of the g_ namespace.
1851 Added TRACE_API_CALLS, EXPLAIN_TROUBLE, EXPLAIN_BROKEN,
1852 EXPLAIN_BADLY_BROKEN, and DELETE_LOCAL_REFS options.
1853 Rewrote global-reference code.
1854 Eliminated cascading errors.
1855 (mutex_trylock_jni_impl) Fully implemented.
1856 (cond_timed_wait_jni_impl) Went from millisecond to microsecond
1858 (setup_cache) New function.
1859 (mutex_cond_wait_jni_impl, mutex_cond_timed_wait_jni_impl) Fixed
1860 bug where they were not unlocking the GMutex associated with the
1861 condition variable during the wait on that condition variable.
1863 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
1864 native/jni/gtk-peer/gthread-jni.c,
1865 native/jni/gtk-peer/gthread-jni.h
1866 (g_thread_jni_functions): Renamed to ...
1867 (portable_native_sync_jni_functions): this name.
1868 (gdk_vm): Renamed to...
1869 (the_vm): this name.
1871 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1872 (gdk_vm): Removed duplicate definition.
1873 (gtkInit): Removed stray message to stdout.
1874 (gtkInit): Use g_malloc and g_free instead of malloc and free.
1875 (gtkInit): Fix a const assignment bug.
1876 (gtkInit): Simplified code.
1878 * gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
1879 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
1880 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h,
1881 gnu/java/awt/peer/gtk/GThreadMutex.java:
1884 2004-08-31 Mark Wielaard <mark@klomp.org>
1886 * javax/swing/Box.java: Put FIXME comment above class declaration.
1887 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1888 * javax/swing/JCheckBox.java: Likewise.
1889 * javax/swing/JDialog.java: Likewise.
1890 * javax/swing/JRadioButton.java: Likewise.
1891 * javax/swing/JToggleButton.java: Likewise.
1892 * javax/swing/UIManager.java: Likewise.
1893 * javax/swing/border/TitledBorder.java: Likewise.
1894 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1895 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1896 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1897 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1898 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1899 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1900 * javax/swing/text/JTextComponent.java: Likewise.
1902 2004-08-31 David Jee <djee@redhat.com>
1905 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1906 (setIconImage): Add a FIXME for unhandled cases.
1908 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1911 * gnu/awt/LightweightRedirector.java: Call getModifiersEx, not
1912 getModifiers. Replace old button masks with new ones.
1913 * gnu/awt/xlib/XEventLoop.java: Likewise.
1914 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Likewise.
1915 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1916 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
1917 * gnu/java/awt/peer/gtk/GtkListPeer.java: Likewise.
1918 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
1919 * java/awt/AWTKeyStroke.java: Remove old modifier masks.
1920 * java/awt/Component.java: Replace old modifier masks with new
1922 * java/awt/Container.java: Call getModifiersEx, not
1924 * java/awt/DefaultKeyboardFocusManager.java: Likewise. Remove
1926 * javax/swing/JMenuItem.java: Replace old button masks with new
1928 * javax/swing/KeyStroke.java: Call getModifiersEx, not
1930 * javax/swing/SwingUtilities.java: Likewise.
1931 * javax/swing/plaf/basic/BasicButtonListener.java: Likewise.
1932 * javax/swing/plaf/basic/BasicInternalFrameUI.java: Likewise.
1933 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Replace old
1934 mask macros with new ones.
1935 * jni/gtk-peer/gtkpeer.h: Replace old button and modifier mask
1936 macros with new ones representing new masks.
1938 2004-08-31 Craig Black <craig.black@aonix.com>
1940 * gnu/java/awt/peer/gtk/GdkGraphics.java
1941 (drawRoundRect): Implemented.
1942 (fillRoundRect): Implemented.
1943 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1944 (drawRoundRect): Reimplemented to match GdkGraphics.
1945 (fillRoundRect): Reimplemented to match GdkGraphics.
1947 2004-08-31 Mark Wielaard <mark@klomp.org>
1949 * Makefile.in: Regenerated.
1951 2004-08-31 Michael Koch <konqueror@gmx.de>
1953 * gnu/java/awt/EmbeddedWindow.java
1954 (addNotify): Use AccessController to allow execution of privileged
1957 2004-08-31 Michael Koch <konqueror@gmx.de>
1959 * gnu/java/awt/EmbeddedWindow.java
1961 (addNotify): Set peer via reflection.
1962 (setWindowPeer): Removed.
1963 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1964 * Makefile.am (nat_source_files):
1965 Removed gnu/java/awt/natEmbeddedWindow.cc.
1967 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1969 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
1970 and gnu/java/security/action/SetAccessibleAction.java.
1972 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1974 * gnu/java/security/action/GetPropertyAction.java (setParameters):
1975 Renamed from 'setName'. New 2-argument form with default value.
1976 (run): Pass default 'value' parameter to System.getProperty().
1977 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
1980 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1982 * gnu/java/security/action/GetPropertyAction.java: New class.
1983 * gnu/java/security/action/SetAccessibleAction.java: New class.
1985 2004-08-31 David Jee <djee@redhat.com>
1987 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1988 (setIconImage): Check if image is null.
1990 2004-08-31 David Jee <djee@redhat.com>
1992 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1993 (create): Set the icon image.
1994 (nativeSetIconImage): New native method declaration.
1995 (setIconImage): Implement.
1996 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1997 (nativeSetIconImage): New function.
1999 2004-08-31 Dalibor Topic <robilad@kaffe.org>
2001 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2002 (filenameFilterCallback): Declare local variable accepted before use.
2004 2004-08-31 Dalibor Topic <robilad@kaffe.org>
2006 * gnu/java/awt/ComponentDataBlitOp.java:
2009 2004-08-31 Tom Tromey <tromey@redhat.com>
2011 * gnu/java/awt/peer/GLightweightPeer.java,
2012 gnu/java/awt/peer/gtk/GdkGraphics2D.java,
2013 gnu/java/awt/peer/gtk/GtkComponentPeer.java,
2014 javax/swing/JScrollPane.java: Removed
2017 2004-08-31 David Jee <djee@redhat.com>
2019 * java/awt/DefaultKeyboardFocusManager.java
2020 (postProcessKeyEvent): Only activate MenuShortcuts on KEY_PRESSED
2021 event. Fix shift modifier checking.
2022 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
2023 (accel_attach): Remove.
2024 (setupAccelGroup): Remove calls to accel_attach.
2026 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
2028 * gnu/java/awt/peer/gtk/GtkArg.java: Remove file.
2029 * gnu/java/awt/peer/gtk/GtkArgList.java: Remove file.
2031 * Makefile.am (gtk_awt_peer_sources): Remove GtkArg.java and
2033 (gtk_c_files): Use CAIRO_CFLAGS and PANGOFT2_CFLAGS, not _LIBS.
2034 * Makefile.in: Regenerate.
2035 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
2036 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
2037 (create(String)): New method.
2038 (create): Call new create method.
2039 (getArgs): Remove method.
2040 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
2041 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
2042 (nativeCreate): Rename to create.
2043 (gtkSetLabel): Rename to gtkButtonSetLabel.
2044 (gtkToggleButtonSetActive): New method.
2045 (create): Call gtkToggleButtonSetActive and gtkButtonSetLabel.
2046 (setState): Replace set call with gtkToggleButtonSetActive.
2047 (setLabel): Replace gtkSetLabel call with gtkButtonSetLabel.
2048 (getArgs): Remove method.
2049 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
2050 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2051 (gtkWidgetSetSensitive): New method.
2052 (gtkWidgetSetParent): Likewise.
2053 (GtkComponentPeer): Call setParent, setComponentBounds and
2054 setVisibleAndEnabled.
2055 (setParent): New method.
2056 (setComponentBounds): New method.
2057 (setVisibleAndEnabled): New method.
2058 (setEnabled): Call gtkWidgetSetSensitive.
2059 (getArgs): Remove method.
2060 Remove all set methods.
2061 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Call
2062 gtkWindowSetModal, setTitle and setResizable.
2063 (getArgs): Remove method.
2064 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2065 (setComponentBounds): New method.
2066 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
2067 Replace set call with gtkWindowSetResizable.
2068 (getArgs): Remove method.
2069 (create): Call setTitle and setResizable.
2070 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
2071 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2072 (gtkWindowSetTitle): New method.
2073 (gtkWindowSetResizable): New method.
2074 (gtkWindowSetModal): New method.
2075 (setParent): New method.
2076 (setVisibleAndEnabled): New method.
2077 (getArgs): Remove method.
2078 (setTitle): Call gtkWindowSetTitle.
2079 (setResizable): Call gtkWindowSetResizable.
2080 * jni/gtk-peer/gtkpeer.h [DEBUG_LOCKING]: New define to turn on
2081 and off locking instrumentation.
2083 2004-08-31 Kim Ho <kho@redhat.com>
2085 * Makefile.am: Add new file.
2086 * Makefile.in: Regenerate.
2087 * gcj/Makefile.in: Regenerate
2088 * include/Makefile.in:
2089 * java/awt/Container.java:
2090 (acquireComponentForMouseEvent): Respect
2091 the event mask when looking for candidate.
2092 * javax/swing/JComponent.java:
2093 Remove toolTip field.
2094 (createToolTip): Create a tooltip on demand.
2095 (setToolTipText): Register with the ToolTipManager.
2096 (getToolTipText(MouseEvent)): Return getToolTipText().
2097 * javax/swing/JToolTip.java: Implement.
2098 * javax/swing/Timer.java: Jalopy.
2099 (restart): Call stop, then start.
2100 (stop): Interrupt the timer rather than wait for
2101 the timer to come to a stop naturally.
2102 * javax/swing/ToolTipManager.java: Implement.
2103 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2104 Change ToolTip.background color.
2105 * javax/swing/plaf/basic/BasicToolTipUI.java:
2107 * testsuite/Makefile.in: Regenerate
2109 2004-08-31 Jerry Quinn <jlquinn@optonline.net>
2111 * java/awt/image/DirectColorModel.java (DirectColorModel): Fix
2112 constructor param comments.
2114 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
2116 * java/awt/Component.java: Document AWT 1.0 event handler
2119 2004-08-31 Roman Kennke <roman@ontographics.com>
2121 * javax/swing/Box.java:
2122 (createGlue): Implemented
2123 (createHorizontalGlue): Implemented
2124 (createHorizontalStrut): Implemented
2125 (createVerticalGlue): Implemented
2126 (createVerticalStrut): Implemented
2128 2004-08-31 David Jee <djee@redhat.com>
2130 * gnu/java/awt/peer/gtk/GtkChoicePeer.java
2131 (GtkChoicePeer): Do not automatically select first item.
2132 (getHistory): Remove.
2133 (nativeGetSelected): New method.
2134 (nativeRemoveAll): New method.
2135 (add): Use nativeGetSelected() instead of getHistory().
2137 (removeAll): Call nativeRemoveAll().
2138 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
2139 (create): Migrate to GtkComboBox.
2141 (nativeAdd): Likewise.
2142 (nativeRemove): Likewise.
2144 (nativeRemoveAll): New method.
2145 (nativeGetSelected): New method.
2146 (selection_changed): New method.
2147 (getHistory): Remove.
2148 (item_activate): Remove.
2149 (item_removed): Remove.
2150 (connect_choice_item_selectable_hook): Remove.
2152 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
2154 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create): Use tf
2155 variable in setEditable call.
2157 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
2158 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
2159 (gtkWidgetSetBackground): New method.
2160 (gtkWidgetSetForeground): Likewise.
2161 (create): Set peer's editable state based on awtComponent's.
2163 * java/awt/Button.java (Button()): Use empty string rather than
2164 null in no-label constructor.
2166 2004-08-31 Roman Kennke <roman@ontographics.com>
2168 * javax/swing/BoxLayout.java: Reimplement.
2170 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
2172 * gnu/java/awt/peer/gtk/GdkGraphics.java,
2173 gnu_java_awt_peer_gtk_GdkGraphics.c
2174 (initState(GtkComponentPeer)): Don't return array of colour
2176 (GdkGraphics(int,int)): Set default font to size 12.
2177 (GdkGraphics(GtkComponentPeer)): Set graphics colour to
2178 component's foreground colour.
2179 * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
2180 gnu_java_awt_peer_gtk_GdkGraphics2D.c
2181 (initState(GtkComponentPeer)): Don't return array of colour
2183 (GdkGraphics2D(GtkComponentPeer)): Set foreground and background
2184 colours to component's colours.
2185 (current_colors_of_widget): Remove function.
2186 * gnu/java/awt/peer/gtk/GtkOffScreenImage.java (getGraphics):
2187 Return a new graphics object.
2188 * java/awt/Font.java (toString): Fix format.
2189 * java/awt/Graphics.java (toString): Likewise.
2191 2004-08-31 Craig Black <craig.black@aonix.com>
2193 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
2194 (addTearOff): New function.
2195 * gnu/java/awt/peer/gtk/GtkMenuPeer.java (addTearOff):
2197 (init): Call addTearOff() when menu.isTearOff().
2199 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
2201 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2202 Default implementation.
2203 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2204 Implement using GdkPixbufDecoder.
2206 2004-08-31 David Jee <djee@redhat.com>
2208 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
2209 (GtkComponentPeer): Use gtkWidgetGetPreferredDimensions() for
2210 setting the size of GtkFileDialogPeers.
2211 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2212 (gtkWidgetGetPreferredDimensions): For widgets extending GtkWindow,
2213 use their default sizes rather than their natural requisitions.
2215 2004-08-31 Michael Koch <konqueror@gmx.de>
2217 * javax/swing/JFormattedTextField.java
2218 (JFormattedTextField): Implemented.
2219 * javax/swing/text/DefaultEditorKit.java
2220 (BeepAction): New inner class.
2221 * javax/swing/text/Segment.java
2222 (partialReturn): New field.
2223 (setPartialReturn): New method.
2224 (isPartialReturn): Likewise.
2225 * javax/swing/text/View.java
2226 (createFragment): Fixed typo.
2227 (getStartOffset): New method.
2228 (getEndOffset): Likewise.
2230 2004-08-31 Michael Koch <konqueror@gmx.de>
2232 * javax/swing/table/DefaultTableColumnModel.java
2233 (serialVersionUID): Made private.
2234 (listenerList): Initialize.
2235 (changeEvent): Initialize.
2236 * javax/swing/table/JTableHeader.java
2237 (JTableHeader): New constructors.
2238 (createDefaultColumnModel): New method.
2239 * javax/swing/table/TableColumn.java
2240 (setHeaderRenderer): Simplified code.
2241 (setCellRenderer): Likewise.
2242 (setWidth): Likewise.
2244 2004-08-31 Tom Tromey <tromey@redhat.com>
2246 * java/text/AttributedString.java (AttributedString): Use
2247 ArrayList to build array of attribute ranges. Don't use
2248 `attribs' before it is set.
2250 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
2252 * HACKING: Remove reference to special automake. No longer needed.
2254 2004-08-30 Tom Tromey <tromey@redhat.com>
2256 * gnu/java/security/util/Prime.java (generateRandomPrime): Use
2257 return result from `add'.
2259 2004-08-30 Tom Tromey <tromey@redhat.com>
2261 * java/rmi/server/UID.java (UID): Read `nextCount', not count.
2263 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
2265 * gnu/java/security/der/DEREncodingException.java: Remove whitespaces.
2267 2004-08-30 Jeroen Frijters <jeroen@frijters.net>
2269 * java/io/File.java File(String,String): Fixed handling of empty
2272 2004-08-30 Casey Marshall <csm@gnu.org>
2274 Author e-mail updated for all files.
2275 * gnu/java/security/OID.java (equals): Test if the aurgment is an
2277 (compareTo): Use `equals'.
2278 * gnu/java/security/der/BitString.java (equals): Test if the
2279 argument is an instance of BitString.
2280 * gnu/java/security/der/DERReader.java: Removed NIO imports. Made
2281 class final. Made fields private.
2282 (<init>): New constructor.
2284 (makeString): Made static; don't use NIO.
2285 (fromIso88591, fromUtf16Be, fromUtf8): New methods.
2286 * gnu/java/security/der/DERWriter.java: Fixed imports.
2287 (writeString): Don't use NIO.
2288 (toIso88591, toUtf16Be, toUtf8): New methods.
2289 * gnu/java/security/der/DERValue.java: Formatting changes only.
2290 * gnu/java/security/der/DER.java: Likewise.
2292 2004-08-30 Tom Tromey <tromey@redhat.com>
2294 * java/nio/CharBuffer.java (put): Fix typo.
2295 * java/nio/DoubleBuffer.java (put): Fix typo.
2296 * java/nio/FloatBuffer.java (put): Fix typo.
2297 * java/nio/IntBuffer.java (put): Fix typo.
2298 * java/nio/LongBuffer.java (put): Fix typo.
2299 * java/nio/ShortBuffer.java (put): Fix typo.
2301 2004-08-30 Florian Weimer <fw@deneb.enyo.de>
2303 * java/nio/ByteBuffer.java (put): Fix typo.
2305 2004-08-30 Casey Marshall <csm@gnu.org>
2307 * java/security/DummyKeyPairGenerator.java (clone): Removed
2308 useless instanceof check.
2309 * java/security/DummyMessageDigest.java (clone): Likewise.
2310 * java/security/DummySignature.java (clone): Likewise.
2311 * java/security/MessageDigest.java (clone): Remove useless
2313 * java/security/MessageDigestSpi.java (clone): Likewise.
2314 * java/security/Signature.java (clone): Provide meaningful
2316 * java/security/SignatureSpi.java (clone): Likewise.
2318 2004-08-29 Mark Wielaard <mark@klomp.org>
2320 * java/util/Arrays.java
2321 (sort(byte[], int, int)): Check fromIndex < 0.
2322 (sort(char[], int, int)): Likewise.
2323 (sort(short[], int, int)): Likewise.
2324 (sort(int[], int, int)): Likewise.
2325 (sort(long[], int, int)): Likewise.
2326 (sort(float[], int, int)): Likewise.
2327 (sort(double[], int, int)): Likewise.
2328 (sort(Object[], int, int, Comparator)): Likewise.
2329 (qsort(byte[], int, int)): Honor lower bound from in insertion sort.
2330 (qsort(char[], int, int)): Likewise.
2331 (qsort(short[], int, int)): Likewise.
2332 (qsort(int[], int, int)): Likewise.
2333 (qsort(long[], int, int)): Likewise.
2334 (qsort(float[], int, int)): Likewise.
2335 (qsort(double[], int, int)): Likewise.
2337 2004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
2339 * java/util/AbstractCollection.java, java/util/AbstractList.java,
2340 java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
2341 java/util/ArrayList.java, java/util/Arrays.java,
2342 java/util/BitSet.java, java/util/Calendar.java,
2343 java/util/Collection.java, java/util/ListIterator.java,
2344 java/util/Map.java, java/util/SortedSet.java:
2345 Added additional exceptions to documentation, along
2346 with some additions and corrections.
2348 2004-08-27 Hans Boehm <Hans.Boehm@hp.com>
2350 * configure.ac: Handle --enable-gc-debug.
2351 * configure: Regenerate.
2352 * include/config.h.in (LIBGCJ_GC_DEBUG): Add.
2353 * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files.
2354 Rearrange include file order.
2355 (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set.
2356 (GC_finalize_all, GC_debug_generic_malloc): Don't declare.
2357 (disable_gc_mutex): Delete along with all references.
2358 (_Jv_MarkObj, _Jv_MarkArray): Use public types,
2359 adjust for debug header size.
2360 (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for
2362 (_Jv_AllocArray): Declare min_heap_addr only if needed.
2363 (gcj_describe_type_fn): New.
2364 (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind.
2365 Register gcj_describe_type_fn.
2366 * include/boehm-gc.h:
2367 (_Jv_AllocObj, _Jv_allocPtrFreeObj):
2368 Don't define, but declare, for debug case.
2369 * java/lang/natObject.cc:
2370 (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set.
2372 2004-08-26 Mark Wielaard <mark@klomp.org>
2374 Fixes PR libgcj/17002:
2375 * java/util/TimeZone.java (defaultZone): Try a couple of ways to get
2376 a TimeZoneId string and then try to convert that to a TimeZone with
2377 getDefaultSystemTimeZone(String).
2378 (timezones0): Changed type from Hashtable to HashMap.
2379 (timezones): Create HashMap, not Hashtable.
2380 (getDefaultTimeZone): New method, rewritten from CNI version.
2381 (readTimeZoneFile): New method.
2382 (readtzFile): Likewise.
2383 (skipFully): Likewise.
2384 * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
2385 getDefaultTimeZoneId and rewritten.
2386 (getDefaultTimeZoneId): Rewritten in java.
2388 2004-08-25 David Daney <daney@avtrex.com>
2390 * Makefile.am (AM_GCJFLAGS): Add LIBGCJ_JAVAFLAGS.
2391 * Makefile.in: Regenerated.
2393 2004-08-23 Bryce McKinlay <mckinlay@redhat.com>
2395 * prims.cc (JVMPI_NOTIFY_ALLOC): New macro. Call jvmpi_notify_alloc
2396 only if jvmpi is enabled.
2397 (jvmpi_notify_alloc): Don't check if jvmpi is enabled here.
2398 (_Jv_AllocObjectNoFinalizer): Use JVMPI_NOTIFY_ALLOC.
2399 (_Jv_AllocString): Likewise.
2400 (_Jv_AllocPtrFreeObject): Likewise.
2402 2004-08-23 Hans Boehm <Hans.Boehm@hp.com>
2404 * defineclass.cc: Include <stdio.h>.
2405 * java/lang/natClassLoader.cc: Include <stdio.h>.
2407 2004-08-21 Andreas Tobler <a.tobler@schweiz.ch>
2408 Michael Koch <konqueror@gmx.de>
2410 * Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.
2411 * Makefile.in: Regenerated.
2413 2004-08-20 Michael Koch <konqueror@gmx.de>
2415 * configure.ac: Replaced all AC_TRY_COMPILE macros with
2416 AC_COMPILE_IFELSE macros.
2418 2004-08-20 Michael Koch <konqueror@gmx.de>
2420 * configure.in: Renamed to configure.ac.
2421 * configure.ac: New file.
2422 * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
2423 include/config.h.in, testsuite/Makefile.in: Regenerated.
2425 2004-08-20 Michael Koch <konqueror@gmx.de>
2427 * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
2428 * aclocal.m4, configure: Regenerated.
2430 2004-08-19 Thomas Fitzsimmons <fitzsim@redhat.com>
2431 Michael Koch <konqueror@gmx.de>
2433 * configure.in, Makefile.am: Ported to automake 1.9.
2434 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
2435 include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
2438 2004-08-19 Tom Tromey <tromey@redhat.com>
2440 * java/net/DatagramSocket.java: Fixed typo.
2442 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2445 * java/net/URI.java (string): New field. Make all other fields
2447 (readObject): Implemented.
2448 (writeObject): Implemented.
2449 (URI): Set 'string'.
2451 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2454 * java/util/logging/Handler.java (isLoggable): Accept record if its
2455 log level equals the threshold level. From Robin Green.
2457 2004-08-18 David Daney <ddaney@avtrex.com>
2459 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
2462 2004-08-17 Michael Koch <konqueror@gmx.de>
2464 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
2465 * Makefile.in: Regenerated.
2467 2004-08-16 Tom Tromey <tromey@redhat.com>
2470 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
2472 2004-08-16 Michael Koch <konqueror@gmx.de>
2475 (math_c_files): Renamed from c_files.
2476 (math_c_source_files): Renamed from c_source_files.
2479 include/Makefile.in,
2480 testsuite/Makefile.in: Regenerated.
2482 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
2484 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
2485 to avoid autoconf warning.
2486 * configure: Rebuilt.
2488 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
2490 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
2491 localhostAddress to loopbackAddress.
2492 * java/net/natInetAddressWin32.cc (lookup): Likewise.
2494 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2496 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
2497 boehm-gc's include dirs.
2498 * configure: Rebuilt.
2499 * include/boehm-gc.h: Include gc_config.h.
2501 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2503 * java/net/InetAddress.java (loopbackAddress): Renamed from
2505 (getByName): Return loopback address for null hostname, without
2506 security check. Use lookup(), not getAllByName.
2507 (getAllByName): Return loopback address for null hostname, without
2509 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
2512 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2515 Reported by Robin Green.
2516 * defineclass.cc (handleField): Don't throw exception on unrecognised
2517 modifier. Add FIXME comments for spec compliance.
2518 (handleMethod): Likewise.
2520 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
2523 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
2524 (Almost everywhere): add LOG calls, fix, add comments.
2525 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
2526 Add explicit check for LOCKED bit in slow case (PR 16662).
2527 (_Jv_MonitorExit): Add casts in debug-only code.
2528 Always release LOCKED bit before throwing exception.
2529 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
2530 isn't. Handle easy cases without lock acquisition.
2531 (Object::wait): Use NotifyAll for lock inflation.
2533 2004-08-12 David Daney <ddaney@avtrex.com>
2535 * testsuite/libjava.lang/Process_1.java: New test.
2536 * testsuite/libjava.lang/Process_2.java: New test.
2537 * testsuite/libjava.lang/Process_3.java: New test.
2538 * testsuite/libjava.lang/Process_4.java: New test.
2539 * testsuite/libjava.lang/Process_5.java: New test.
2540 * testsuite/libjava.lang/Process_6.java: New test.
2541 * testsuite/libjava.lang/Process_1.out: Expected result.
2542 * testsuite/libjava.lang/Process_2.out: Expected result.
2543 * testsuite/libjava.lang/Process_3.out: Expected result.
2544 * testsuite/libjava.lang/Process_4.out: Expected result.
2545 * testsuite/libjava.lang/Process_5.out: Expected result.
2546 * testsuite/libjava.lang/Process_6.out: Expected result.
2548 2004-08-12 David Daney <ddaney@avtrex.com>
2551 * java/lang/PosixProcess.java: Rewrote.
2552 * java/lang/natPosixProcess.cc: Rewrote.
2553 * java/lang/Runtime.java (execInternal): Declare throws IOException.
2554 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
2555 * posix-threads.cc (block_sigchld) New function.
2556 (_Jv_ThreadRegister) Use it.
2557 (_Jv_ThreadStart) Use it.
2558 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
2559 * Makefile.am: ... to specify extra native headers.
2560 * configure: Regenerated.
2561 * include/config.h: Regenerated.
2562 * Makefile.in: Regenerated.
2563 * gcj/Makefile.in: Regenerated.
2564 * include/Makefile.in: Regenerated.
2565 * testsuite/Makefile.in: Regenerated.
2567 2004-08-12 Diego Novillo <dnovillo@redhat.com>
2569 PR tree-optimization/16867
2570 * testsuite/libjava.lang/PR16867.java: New test.
2572 2004-08-09 Per Bothner <per@bothner.com>
2574 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
2575 with private fields and access methods.
2576 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
2577 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
2578 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
2579 ( _Jv_makeUtf8Const): Rewrite using new constructors.
2580 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
2581 * defineclass.cc: Use new _Utf8Const access/convenience methods.
2583 * resolve.cc: Likewise.
2584 * gcj/field.h: Likewise.
2585 * include/jvm.h: Likewise.
2586 * java/lang/Class.h: Likewise.
2587 * java/lang/natClass.cc: Likwise.
2588 * java/lang/natClassLoader.cc: Likewise
2589 * java/lang/reflect/natMethod.cc: Likewise
2590 * verify.cc: Likewise.
2591 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
2592 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
2594 2004-08-10 Andrew Haley <aph@redhat.com>
2596 * testsuite/libjava.lang/err14.java: New file.
2597 * testsuite/libjava.lang/err14.out: New file.
2599 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
2601 * Makefile.am: Fix missing rename from x_nat_headers to
2603 * Makefile.in: Regenerated.
2605 2004-08-04 Andrew Haley <aph@redhat.com>
2607 * java/security/BasicPermission.java: Don't check wildcards.
2609 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2610 Michael Koch <konqueror@gmx.de>
2612 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
2613 * configure.in: Replaced all usages of AC_LINK_FILES by
2616 configure: Regenerated.
2618 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2619 Michael Koch <konqueror@gmx.de>
2621 * acconfig.h: Removed.
2622 * Makefile.am: Rename variables for xlib peer to include xlib and
2623 gtk_c_headers to gtk_jni_headers.
2624 * Makefile.in: Regenerated.
2626 2004-08-04 Andrew Haley <aph@redhat.com>
2628 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
2631 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
2633 * configure.in: Eliminate uses of changequote (mostly by quoting []).
2634 Replace most top level 'dnl' comments with '#' comments, conforming
2635 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
2637 * configure: Rebuilt.
2639 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
2641 * acinclude.m4: Include no-executables.m4.
2642 * aclocal.m4: Rebuild.
2643 * configure.in: Convert to the autoconf 2.59 version of
2644 of the no-executables hack, and also of the nonstandard CXX
2645 hack and the multilibbed CC and CXX hack. Change prerequisite
2647 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
2648 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
2649 testsuite/Makefile.in: Regenerate.
2651 2004-08-03 Tom Tromey <tromey@redhat.com>
2653 * jni.cc: Reindented.
2655 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2657 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
2659 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2661 * testsuite/libjava.compile/PR16701.java: New test.
2663 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
2665 * java/util/Collection.java, java/util/List.java,
2666 java/util/Map.java, java/util/Set.java,
2667 java/util/SortedMap.java, java/util/SortedSet.java:
2668 Added additional exceptions to documentation.
2670 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
2673 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
2674 * configure. Regenerate.
2675 * include/win32.h: Explicitly include winsock2.h
2676 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
2679 2004-07-30 Michael Koch <konqueror@gmx.de>
2681 * java/util/zip/GZIPInputStream.java
2682 (GZIPInputStream): Increase buffer size to 4k.
2683 * java/util/zip/GZIPOutputStream.java
2684 (GZIPOutputStream): Likewise.
2685 * java/util/zip/Inflater.java
2686 (setInput): Merged formating with GNU classpath.
2687 * java/util/zip/InflaterInputStream.java
2688 (InflaterInputStream): Increase buffer size to 4k.
2689 (fill): Throw exception if stream ends early.
2690 (read): Merged endless-loop with GNU classpath.
2691 (skip): Increase buffer size to 2k.
2693 2004-07-30 Michael Koch <konqueror@gmx.de>
2695 * gnu/java/awt/EmbeddedWindow.java
2696 (addNotify): Use AccessController to allow execution of privileged
2699 2004-07-29 Michael Koch <konqueror@gmx.de>
2701 * gnu/java/lang/MainThread.java:
2702 Explicitely import used classes.
2703 (args): Make it type String[].
2705 2004-07-29 Dalibor Topic <robilad@kaffe.org>
2707 * gnu/java/awt/ComponentDataBlitOp.java,
2708 gnu/java/beans/ExplicitBeanInfo.java,
2709 gnu/java/beans/IntrospectionIncubator.java,
2710 gnu/java/beans/editors/ColorEditor.java,
2711 gnu/java/beans/editors/FontEditor.java,
2712 gnu/java/beans/editors/NativeBooleanEditor.java,
2713 gnu/java/beans/editors/NativeByteEditor.java,
2714 gnu/java/beans/editors/NativeDoubleEditor.java,
2715 gnu/java/beans/editors/NativeFloatEditor.java,
2716 gnu/java/beans/editors/NativeIntEditor.java,
2717 gnu/java/beans/editors/NativeLongEditor.java,
2718 gnu/java/beans/editors/NativeShortEditor.java,
2719 gnu/java/beans/editors/StringEditor.java,
2720 gnu/java/io/ClassLoaderObjectInputStream.java,
2721 gnu/java/io/decode/Decoder.java,
2722 gnu/java/io/encode/Encoder.java,
2723 gnu/java/lang/ClassHelper.java,
2724 gnu/java/locale/Calendar.java,
2725 gnu/java/locale/Calendar_de.java,
2726 gnu/java/locale/Calendar_en.java,
2727 gnu/java/locale/Calendar_nl.java,
2728 gnu/java/locale/LocaleInformation_de.java,
2729 gnu/java/locale/LocaleInformation_en.java,
2730 gnu/java/locale/LocaleInformation_nl.java:
2733 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2735 * README: Remove obsolete info. Update bug URL.
2737 * NEWS: Updated with news up to GCC 3.4 release.
2739 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2741 * gnu/java/security/action/GetPropertyAction.java (setParameters):
2742 Renamed from 'setName'. New 2-argument form with default value.
2743 (run): Pass default 'value' parameter to System.getProperty().
2744 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
2746 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
2749 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2751 * configure.in: Check for minimum GTK version 2.4 requirement.
2752 * configure: Rebuilt.
2754 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2756 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
2757 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
2759 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
2761 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
2762 address. Reduce sleep times. Synchronize with target threads before
2763 attempting to interrupt them. Don't try to calibrate yeild count,
2764 instead, always loop for a fixed time.
2765 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
2766 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
2767 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
2768 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
2769 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
2770 * testsuite/libjava.lang/pr179.java: Likewise.
2771 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
2772 time. Remove upper bounds check on sleep time.
2774 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2776 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
2777 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
2779 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2781 * java/io/File.java (toURI): Throw RuntimeException, not
2783 * java/lang/Runtime.java (exit): Qualify static sleep() call with
2784 class name, not instance.
2786 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
2788 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
2789 and gnu/java/security/action/SetAccessibleAction.java.
2790 * Makefile.in: Rebuilt.
2792 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2794 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
2795 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
2797 (DECLARE_PRIM_TYPE): Don't declare array vtables.
2798 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
2799 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
2801 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
2803 * Makefile.am: Replace jar, rmic and rmiregistry references with
2804 gjar, grmic and grmiregistry.
2805 * configure.in: Likewise.
2806 * Makefile.in: Regenerate.
2807 * configure: Likewise.
2808 * gcj/Makefile.in: Likewise.
2809 * include/Makefile.in: Likewise.
2810 * testsuite/Makefile.in: Likewise.
2812 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2814 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
2815 for privileged getProperty calls.
2816 * java/io/ObjectOutputStream.java (getField): No longer static. Use
2817 SetAccessibleAction instead of anonymous class for doPrivileged call.
2818 (getMethod): Likewise.
2819 (setAccessible): New field. PrivilegedAction object to use when
2820 calling setAccessible.
2821 * java/io/ObjectStreamClass.java (calculateOffsets): Use
2822 SetAccessibleAction instead of anonymous class for diPrivileged call.
2823 (setFields): Likewise.
2824 (getClassUID): Likewise.
2825 (findMethod): Likewise.
2826 * gnu/java/security/action/GetPropertyAction.java: New class.
2827 * gnu/java/security/action/SetAccessibleAction.java: New class.
2829 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2831 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
2833 * testsuite/libjava.lang/Serialization.java: New test.
2834 * testsuite/libjava.lang/Serialization.out: New.
2836 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2838 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
2839 missed in last commit.
2841 2004-07-23 Mark Wielaard <mark@klomp.org>
2843 * java/lang/System.java (static): Set http.agent system property when
2845 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
2846 from system property inside AccessController.doPrivileged() call.
2847 (proxyPort): Made package private.
2848 (proxyInUse): Likewise.
2849 (proxyHost): Likewise.
2850 (userAgent): Likewise.
2852 2004-07-23 Mark Wielaard <mark@klomp.org>
2854 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
2857 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
2859 * Makefile.am (ordinary_java_source_files): Add
2860 DefaultContentHandlerFactory.java.
2861 * Makefile.in: Rebuilt.
2862 * java/net/URLConnection.java (defaultFactory): New field.
2864 (getContentHandler): Renamed from 'setContentHandler'. Try
2865 defaultFactory after user-set factory, if any. Search for content
2866 handler implementations in gnu.java.net.content, not gnu.gcj.content.
2867 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
2869 (getLastModified): Implemented.
2870 (getPermission): Create file permission here, instead of in
2872 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
2874 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
2876 (getLastModified): Implemented.
2877 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2878 Default implementation.
2879 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2880 Implement using GdkPixbufDecoder.
2882 2004-07-21 Michael Koch <konqueror@gmx.de>
2884 * javax/swing/JTextArea.java
2885 (setLineWrap): Fire property change event after new value is set.
2886 (setTabSize): Likewise.
2888 2004-07-21 Michael Koch <konqueror@gmx.de>
2890 * javax/swing/JTable.java
2891 (autoCreateColumnsFromModel): New field.
2892 (autoResizeMode): Likewise.
2893 (cellEditor): Likewise.
2894 (cellSelectionEnabled): Likewise.
2895 (columnModel): Likewise.
2896 (dataModel): Likewise.
2897 (defaultEditorsByColumnClass): Likewise.
2898 (defaultRenderersByColumnClass): Likewise.
2899 (editingColumn): Likewise.
2900 (editingRow): Likewise.
2901 (gridColor): Likewise.
2902 (preferredViewportSize): Likewise.
2903 (rowHeight): Likewise.
2904 (rowMargin): Likewise.
2905 (rowSelectionAllowed): Likewise.
2906 (selectionBackground): Likewise.
2907 (selectionForeground): Likewise.
2908 (selectionModel): Likewise.
2909 (showHorizontalLines): Likewise.
2910 (showVerticalLines): Likewise.
2911 (tableHeader): Likewise.
2912 (JTable): Implemented.
2913 (getColumnModel): Likewise.
2914 (getSelectedRow): Likewise.
2915 (getSelectionModel): Likewise.
2916 (setModel): Likewise.
2917 (setSelectionModel): Likewise.
2918 (createScrollPaneForTable): New method.
2919 (createDefaultDataModel): Likewise.
2920 (createDefaultListSelectionModel): Likewise.
2921 (getModel): Likewise.
2922 (getTableHeader): Likewise.
2923 (setTableHeader): Likewise.
2924 (getColumnSelectionAllowed): Likewise.
2925 (setColumnSelectionAllowed): Likewise.
2926 (getRowSelectionAllowed): Likewise.
2927 (setRowSelectionAllowed): Likewise.
2928 (getAutoResizeMode): Likewise.
2929 (setAutoResizeMode): Likewise.
2930 (getColumnCount): Likewise.
2931 (getRowCount): Likewise.
2932 (getCellRenderer): Likewise.
2933 * javax/swing/JTree.java
2934 (cellRenderer): New field.
2935 (editable): Likewise.
2936 (rootVisible): Likewise.
2937 (showsRootHandles): Likewise.
2938 (getModel): New method.
2939 (setModel): Likewise.
2940 (isEditable): Likewise.
2941 (setEditable): Likewise.
2942 (isRootVisbile): Likewise.
2943 (setRootVisible): Likewise.
2944 (getShowsRootHandles): Likewise.
2945 (setShowRootHandles): Likewise.
2946 (getCellRenderer): Likewise.
2947 (setCellRenderer): Likewise.
2949 2004-07-21 Michael Koch <konqueror@gmx.de>
2951 * javax/swing/JFormattedTextField.java
2952 (setDocument): Implemented.
2953 * javax/swing/JRootPane.java:
2955 * javax/swing/JTable.java
2956 (getDefaultRenderer): New method.
2957 * javax/swing/JTextField.java
2958 (setFont): Likewise.
2959 (getPreferredSize): Likewise.
2960 * javax/swing/JToggleButton.java
2961 (getAccessibleContext): Fix javadoc.
2962 * javax/swing/JTree.java:
2964 * javax/swing/JViewport.java:
2967 2004-07-21 David Jee <djee@redhat.com>
2969 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
2970 Collect all native method declaration at the top.
2971 (create): Set the filename filter if necessary.
2972 (setDirectory): Call nativeSetDirectory().
2973 (setFilenameFilter): Implement.
2974 (filenameFilterCallback): New method.
2975 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2976 (create): Configure dialog to show hidden files.
2977 (filenameFilterCallback): New function.
2978 (nativeSetFilenameFilter): New function.
2979 (nativeSetDirectory): New function.
2981 2004-07-21 Kim Ho <kho@redhat.com>
2983 * javax/swing/plaf/basic/BasicSliderUI.java:
2985 (paintTrack): Fill the track before painting
2988 2004-07-21 Graydon Hoare <graydon@redhat.com>
2990 patch from Roman Kennke <roman@ontographics.com>
2991 * javax/swing/Spring.java: New file.
2992 * javax/swing/SpringLayout.java: New file.
2993 * Makefile.am: Add new files.
2994 * Makefile.in: Regenerate.
2996 2004-07-21 Graydon Hoare <graydon@redhat.com>
2998 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
2999 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
3000 * javax/swing/ScrollPaneLayout.java: Likewise.
3002 2004-07-21 Kim Ho <kho@redhat.com>
3004 * javax/swing/DefaultDesktopManager.java:
3005 (findMinimum): Removed.
3006 (resizeFrame): Trust the UI to pass valid
3008 * javax/swing/JOptionPane.java:
3009 Implemented showInternalXXXDialog methods.
3010 (startModal): New method.
3011 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
3012 (BorderListener::mouseDragged): Verify that the new
3013 bounds are valid before passing them to the DesktopManager.
3014 (preferredLayoutSize): Delegate
3016 (minimumLayoutSize): Ditto.
3017 (getSize): New method.
3018 (GlassPaneDispatcher): Reimplemented by copying
3019 a stripped down LightweightDispatcher from Container.
3020 (getMinimumSize): Call minimumLayoutSize.
3021 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
3023 (mousePressed): Add ability to properly close
3025 * javax/swing/plaf/basic/BasicToolBarUI.java:
3026 (DragWindow): Set owner for DragWindow.
3028 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
3030 * java/awt/image/ShortLookupTable.java: New file.
3031 * java/awt/image/ByteLookupTable.java: New file.
3032 * Makefile.am: Added new files.
3033 * Makefile.in: Regenerated.
3035 2004-07-21 David Jee <djee@redhat.com>
3037 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
3038 (create(GtkContainerPeer)): New native method.
3039 (create()): Call native create(), passing in the parent frame
3040 as the paramter. Natively set the current file and directory.
3041 (setFile): Construct an absolute filename before passing it to
3043 (nativeGetDirectory): New method.
3044 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
3045 (window_closed): Removed.
3046 (ok_clicked): Likewise.
3047 (cancel_clicked): Likewise.
3048 (handle_response): New method.
3049 (create): Use GtkFileChooserDialog.
3050 (connectSignals): Connect to handle_response.
3051 (nativeGetDirectory): New method.
3052 (nativeSetFile): Use GtkFileChooserDialog.
3054 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
3056 * java/awt/image/LookupTable.java: New file.
3057 * Makefile.am: Added new file.
3058 * Makefile.in: Regenerated.
3060 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
3062 * java/awt/image/Kernel.java: New file.
3063 * Makefile.am: Added new file.
3064 * Makefile.in: Regenerated.
3066 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3068 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
3069 * javax/swing/JMenu.java: Likewise.
3070 * javax/swing/JMenuBar.java: Likewise.
3071 (MARGIN_CHANGED_PROPERTY): New property.
3072 (setMargin): Implemented.
3073 * javax/swing/JMenuItem.java: Fixed javadocs.
3074 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
3075 (LABEL_CHANGED_PROPERTY): New property.
3076 (add): changed to use createActionComponent.
3077 (createActionComponent): Implemented.
3078 (setLabel): Fire PropertyChangeEvent if label property
3080 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
3081 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3082 (ContainerHandler): Repaint if margin property has changed.
3083 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3084 (installUI): Call installComponents().
3085 (uninstallUI): Call uinstallComponents().
3086 * javax/swing/plaf/basic/BasicMenuUI.java:
3088 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3091 2004-07-21 Kim Ho <kho@redhat.com>
3093 * javax/swing/plaf/basic/BasicToolBarUI.java:
3094 (DragWindow): Use the right constructor.
3096 2004-07-21 Kim Ho <kho@redhat.com>
3098 * javax/swing/JToolBar.java:
3099 (layoutContainer): Use getComponents.
3100 * javax/swing/plaf/basic/BasicToolBarUI.java:
3101 (DragWindow): Don't use SwingUtilities'
3103 (ToolBarDialog): ditto.
3105 2004-07-21 Kim Ho <kho@redhat.com>
3107 * javax/swing/JRootPane.java:
3109 (layoutContainer): Set the glasspane's size to
3110 be the same as the content pane.
3111 (createGlassPane): Set opaque property to false.
3113 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3115 * java/awt/Component.java (requestFocus()): Don't handle Panels
3117 (requestFocus(boolean)): Likewise.
3118 (requestFocusInWindow(boolean)): Likewise.
3119 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
3120 Set GTK_CAN_FOCUS flag.
3122 2004-07-21 Kim Ho <kho@redhat.com>
3124 * Makefile.am: Added new file.
3125 * Makefile.in: Regenerated.
3126 * gcj/Makefile.in: Regenerated.
3127 * include/Makefile.in: Regenerated.
3128 * javax/swing/AbstractButton.java:
3129 Add rollOverEnabled property.
3130 (setRolloverEnabled): Use new property.
3131 (isRolloverEnabled): Use new property.
3132 * javax/swing/JTabbedPane.java:
3133 (setComponent): Remove useless JTabbedPane.this.
3134 * javax/swing/JToolBar.java: Finish implementation.
3135 * javax/swing/plaf/basic/BasicArrowButton.java:
3136 (paint): Moved border painting to a border.
3137 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3138 Change JToolBar look and feel defaults.
3139 * javax/swing/plaf/basic/BasicOptionPaneUI.java
3140 (actionPerformed): Return Integer index instead of name.
3141 (addButtonComponents): Check to see if component is
3143 (createMessageArea): Don't use components that are not
3145 (getIconForType): Use temporary icons.
3146 * javax/swing/plaf/basic/BasicSliderUI.java:
3147 (mousePressed): Do not return if it's on thumb.
3148 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
3149 (paintMinorTickForVertSlider): ditto.
3150 (paintMajorTickForHorizSlider): ditto.
3151 (paintMajorTickForVertSlider): ditto.
3152 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
3153 Add a border around the SplitPaneDivider.
3154 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
3156 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
3157 New file. Implemented.
3158 * javax/swing/plaf/basic/BasicToolBarUI.java:
3160 * testsuite/Makefile.in: Regenerated.
3162 2004-07-21 Graydon Hoare <graydon@redhat.com>
3164 * javax/swing/Timer.java (run): Queue events each time cycle.
3166 2004-07-21 David Jee <djee@redhat.com>
3168 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3169 (imageComplete): Call image.imageComplete().
3170 * java/awt/image/MemoryImageSource.java:
3171 Reimplement consumers as a Vector instead of a Hashtable. This is
3172 because enumeration on a Hashtable is not thread-safe.
3173 (addConsumer): Adapt to Vector consumers.
3174 (isConsumer): Adapt to Vector consumers.
3175 (removeConsumer): Adapt to Vector consumers.
3176 (startProduction): Adapt to Vector consumers. Call imageComplete()
3177 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
3178 (newPixels): Adapt to Vector consumers.
3179 (sendPicture): Set the color model of the image consumer.
3180 (newPixels(IIII)): Adapt to Vector consumers.
3181 (newPixels(IIIIB)): Adapt to Vector consumers.
3183 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3185 * java/awt/Component.java (deliverEvent): Implement.
3186 (postEvent): Implement.
3187 (handleEvent): Implement.
3188 (translateEvent): New method.
3189 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
3190 * java/awt/Container.java (deliverEvent): Implement.
3191 * java/awt/Event.java (paramString): Fix formatting.
3192 * java/awt/Font.java (toString): Likewise.
3193 * java/awt/Window.java (postEvent): Implement.
3195 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3197 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3198 Set window's focus owner upon receiving a FOCUS_LOST event.
3199 * java/awt/Window.java (Window()): Refocus the previously
3200 focused component within the window when the window regains the
3202 (setFocusOwner): New method.
3203 * java/awt/Component.java (requestFocus): Add FIXME.
3205 * libgcj.pc.in: Remove library flags.
3207 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3209 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
3210 MOUSE_PRESSED event.
3211 * java/awt/Component.java (requestFocus()): Handle Panel
3212 specially. Post FOCUS_LOST event on opposite component.
3213 (requestFocus(boolean)): Likewise.
3214 (requestFocusInWindow(boolean)): Likewise.
3215 (paramString): Reorder dimension fields.
3216 * java/awt/Container.java (paramString): Fix string format.
3217 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3218 Handle FOCUS_LOST events. Don't handle Windows specially. Only
3219 process key events if the focus owner is non-null.
3220 (dispatchKeyEvent): Likewise.
3221 * java/awt/Frame.java (paramString): Fix formatting.
3222 (generateName): New method.
3223 (getUniqueLong): Likewise.
3224 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
3225 the temporary focus owner is null. If so, return the permanent
3227 * java/awt/Panel.java (generateName): New method.
3228 (getUniqueLong): Likewise.
3229 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
3230 signal handling to make callbacks more specific.
3232 2004-07-21 Michael Koch <konqueror@gmx.de>
3234 * javax/swing/text/Position.java
3235 (Bias): Implemented.
3237 2004-07-21 Michael Koch <konqueror@gmx.de>
3239 * javax/swing/LookAndFeel.java
3240 (provideErrorFeedback): New method.
3242 2004-07-21 Michael Koch <konqueror@gmx.de>
3244 * javax/swing/JTextArea.java
3245 (tabSize): New field.
3246 (getTabSize): New method.
3247 (setTabSize): Likewise.
3249 2004-07-21 Michael Koch <konqueror@gmx.de>
3251 * javax/swing/ActionMap.java:
3252 Fixed javadocs all over.
3253 (serialVersionUID): Made private.
3254 (parent): Don't explicitely initialize with default value.
3256 (keys): Reimplemented.
3257 (allKeys): Likewise.
3258 (convertSet): Removed.
3259 * javax/swing/ComponentInputMap.java:
3260 Fixed javadocs all over.
3261 (ComponentInputMap): Implemented.
3265 (SetParent): Likewise.
3266 (getComponent): Likewise.
3267 * javax/swing/InputMap.java:
3268 Fixed javadocs all over.
3269 (serialVersionUID): Made private.
3270 (parent): Don't explicitely initialize with default value.
3272 (keys): Reimplemented.
3273 (allKeys): Likewise.
3274 (convertSet): Removed.
3276 2004-07-21 Michael Koch <konqueror@gmx.de>
3278 * javax/swing/ActionMap.java,
3279 javax/swing/ComponentInputMap.java,
3280 javax/swing/InputMap.java,
3281 javax/swing/table/DefaultTableColumnModel.java,
3282 javax/swing/table/TableColumn.java,
3283 javax/swing/table/TableColumnModel.java,
3284 javax/swing/table/TableModel.java,
3285 javax/swing/text/AbstractDocument.java,
3286 javax/swing/text/TextAction.java:
3289 2004-07-21 Graydon Hoare <graydon@redhat.com>
3291 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
3292 Make method non-static.
3293 * javax/swing/AbstractButton.java:
3294 Rename fields to match property names where possible.
3295 (iconTextGap): New property.
3296 * javax/swing/JCheckBox.java: Match AbstractButton changes.
3297 (init) New method, call from after various constructors.
3298 * javax/swing/JComponent.java (revalidate):
3299 Invalidate before queueing repair.
3300 * javax/swing/JList.java (getPreferredScrollableViewportSize):
3301 Reimplement in terms of visibleRowCount property.
3302 * javax/swing/JMenuButton.java: Match AbstractButton changes.
3303 * javax/swing/JScrollPane.java (createScrollListener):
3304 Remove tracing chatter.
3305 * javax/swing/JToggleButton.java: Match AbstractButton changes.
3306 * javax/swing/RepaintManager.java (addInvalidComponent):
3308 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
3310 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
3311 Mimic sun behavior on top left/right positioning.
3312 * javax/swing/ViewportLayout.java (preferredLayoutSize):
3313 Remove mistaken use of preferredScrollableViewportSize here.
3314 (layoutContainer): Use view's preferred size as basis.
3315 * javax/swing/plaf/basic/BasicButtonUI.java:
3316 Set, get, and use textIconGap property.
3317 (paint) Paint text returned from layout (with ellipsis).
3318 * javax/swing/plaf/basic/BasicListUI.java:
3319 Remove tracing chatter, correct various minor calculations.
3320 (getCellBounds): Update layout state before calculating.
3321 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
3322 Use margin default similar to sun's.
3323 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
3324 (createIncreaseIcon): Center icon, minimize margins.
3325 (createDecreaseIcon): Likewise.
3326 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
3328 (installUI): Call it.
3329 (uninstallDefaults): Implement.
3330 (uninstallUI): Call it.
3331 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
3332 Call existing Window constructor.
3333 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
3334 Set clip before painting.
3336 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3338 * javax/swing/JMenuItem.java:
3339 (processMouseEvent): Reimplemented to deal with
3341 (createMenuDragMouseEvent): New private helper method.
3342 Creates MenuDragMouseEvent.
3343 * javax/swing/MenuSelectionManager.java
3344 (componentForPoint): Implemented.
3345 (isComponentPartOfCurrentMenu): Made public.
3346 (processMouseEvent): Reimplemented to deal with
3348 (setSelectedPath): Corrected small mistake that caused
3349 path to be set incorrectly.
3350 (getPath): If given component is JMenu then also add this
3351 menu's popup menu to the selected path.
3352 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3354 (getPreferredSize): Call getPreferredMenuItemSize().
3355 (getPreferredItemSize): Moved code from getPreferredSize to here.
3356 (installListeners): Install MouseMotionListeners.
3357 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
3358 if mouse wasn't released in the bounds of this menu item.
3359 (MenuDragMouseHandler): Implemented.
3360 * javax/swing/plaf/basic/BasicMenuUI.java:
3361 (installListeners): Install MouseMotionListener and
3362 MenuDrageMouseListener.
3363 (MenuDragMouseHandler): Implemented.
3364 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3365 (uninstallListeners): Implemented.
3367 2004-07-21 Michael Koch <konqueror@gmx.de>
3369 * javax/swing/JCheckBox.java: Reformated.
3370 (JCheckBox): Fixed all constructors.
3371 (isBorderPaintedFlat): New method.
3372 (setBorderPaintedFlat): New method.
3373 * javax/swing/JEditorPane.java
3374 (createEditorKitForContentType): Made public.
3375 (scrollToReference): Likewise.
3376 * javax/swing/JTextArea.java
3377 (setLineWrap): Fire property change.
3378 * javax/swing/JToggleButton.java
3379 (JToggleButton): New constructor.
3380 (JToggleButton): Simplified.
3381 * javax/swing/text/AttributeSet.java
3382 (FontAttribute): Renamed from FontCharacterAttribute.
3383 * javax/swing/text/JTextComponent.java
3384 (KeyBinBinding): Added javadoc.
3385 (JTextComponent): Likewise.
3386 (getAccessibleContext): Fixed javadoc.
3387 * javax/swing/text/View.java
3388 (View): Added javadoc.
3389 * javax/swing/text/TabableView.java: New file.
3390 * Makefile.am: Added javax/swing/text/TabableView.java.
3391 * Makefile.in: Regenerated.
3393 2004-07-21 Graydon Hoare <graydon@redhat.com>
3395 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
3396 * gnu/java/awt/peer/gtk/GtkToolkit.java
3397 (GtkErrorImage): New helper class.
3398 (bufferedImageOrError): New helper method.
3399 (createImage): Use it.
3401 2004-07-21 David Jee <djee@redhat.com>
3403 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3404 (setCaretPosition): Scroll the text view so the new caret position
3405 is visible on screen.
3407 2004-07-21 David Jee <djee@redhat.com>
3409 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3410 (setBounds): Do not validate awtComponent here.
3411 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
3412 (getPreferredSize): New method.
3413 * java/awt/ScrollPane.java
3414 (ScrollPane): Set default size to 100x100.
3415 (addNotify): If child is not a Panel, wrap it with a new Panel.
3416 (paramString): Implement.
3418 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3420 * javax/swing/JMenu.java:
3421 (setSelected): Display popup menu only if this menu
3422 is showing on the screen.
3423 * javax/swing/JPopupMenu.java:
3424 (processMouseEvent): Added comment.
3425 (processKeyEvent): Likewise.
3426 * javax/swing/MenuSelectionManager.java:
3427 (clearSelectedPath): Only fireStateChanged() after
3428 selected path was changed, not before.
3429 (setSelectedPath): Likewise.
3430 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3431 (paintMenuItem): Corrected position of menu item's
3433 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3434 (installUI): Correct setDefaultLightWeightPopupEnabled call.
3435 (popupMenuCanceled): Reimplemented.
3436 (popupMenuWillBecomeVisible): Select first menu item by default
3437 when displaying free floating popup menus.
3438 (TopWindowListener): Reimplemented.
3440 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3442 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
3443 Panel from being painted twice when it is first shown.
3445 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3447 * java/awt/Window.java: Reverted changes from my
3448 previous patch for creating window without an owner.
3449 * javax/swing/SwingUtilities.java:
3450 (SwingUtilities.OwnerFrame): made static.
3451 (OwnerFrame.setVisible): New method. Overridden with
3452 empty implementation.
3453 (OwnerFrame.isShowing): New method. Ovverridden
3454 to return always true.
3456 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3458 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3459 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3460 (GtkComponentPeer): Remove temporary try/catch block.
3461 (setVisible): Call show and hide.
3462 (show): Make native.
3464 (getArgs): Don't add "visible" argument.
3465 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3466 (property_notify_predicate): Return Bool instead of int.
3467 (find_layout): New function.
3468 (connectJObject): Call find_layout.
3469 (connectSignals): Likewise.
3470 (moveLayout): Likewise.
3471 (gtkLayoutSetVisible): Likewise.
3473 2004-07-21 Mark Wielaard <mark@klomp.org>
3475 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3476 on notifier object before calling notifyAll().
3478 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3480 * java/awt/Window.java: Changed constructors to use new
3481 method that is described below. Constructors call this
3482 methods only if newly created window should have an owner.
3483 (setWindowOwner): New method. Implementation for
3484 this method is moved from this(owner,configuration).
3485 * javax/swing/JWindow.java:
3486 (JWindow): Reimplement to use SwingUtilities.ownerFrame
3488 * javax/swing/SwingUtilities.java:
3489 (ownerFrame): Change type of this field to OwnerFrame.
3490 (getOwnerFrame): Changed to return object of type OwnerFrame.
3491 (SwingUtilities.OwnerFrame): New class. Represents owner
3492 of a Window that is not provided with one.
3494 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3496 * javax/swing/AbstractButton.java:
3497 (configurePropertiesFromAction): Set action command
3498 to button's text by default if action command is not
3499 explicitely specified.
3500 * javax/swing/JMenu.java: Remove unnecessary listener
3501 and methods relevant to it.
3502 (setSelected): Reimplemented.
3503 (menuSelectionChanged): Moved most part of implementation to
3504 setSelected() and call it instead.
3505 * javax/swing/JMenuItem.java:
3506 (init): Comment out statement that sets paint_border to false.
3507 (configurePropertiesFromAction): Do not set accelerator
3509 (menuSelectionChanged): Change selected index in the selection
3510 model of menu item's parent.
3511 * javax/swing/JPopupMenu.java:
3512 (remove): Set constraints.fill field to GridBagConstraints.BOTH
3513 instead of GridBagConstraints.HORIZONTAL.
3515 (createActionChangeListener): Implemented.
3516 (setVisible): Correct location of HeavyWeightMenu and
3517 don't firePopupMenuCanceled().
3518 (menuSelectionChanged): Implemented.
3519 (ActionChangeListener): New Listener. Implemented.
3520 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3521 (BasicMenuBarUI.ContainerHandler): Implemented.
3522 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3523 (paintMenuItem): Uncommented out code that paints
3524 icon, now that icons are working properly.
3525 (PropertyChangeListener): Implemented.
3526 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3528 (topWindowListener): New field.
3529 (Constructor): initialize topWindowListener.
3530 (BasicPopupMenuUI.TopWindowListener): Implemented.
3531 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
3532 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
3535 2004-07-21 Michael Koch <konqueror@gmx.de>
3537 * javax/swing/plaf/basic/BasicButtonUI.java
3538 (paintFocus): Fixed method signature.
3539 (paintButtonPressed): Likewise.
3540 (paintButtonNormal): Likewise.
3541 (paintText): New method.
3542 * javax/swing/plaf/basic/BasicLabelUI.java
3543 (paint): Re-indented.
3544 * javax/swing/plaf/basic/BasicTextUI.java
3545 (installUI): Set parent textComponent to opaque.
3546 * javax/swing/text/DefaultHighlighter.java
3547 (checkPositions): New helper method.
3548 (addHighlight): Throws BadLocationException, check positions.
3549 (changeHighlight): Likewise.
3550 * javax/swing/text/EditorKit.java
3551 (EditorKit): Implements Serializable.
3552 * javax/swing/text/JTextComponent.java
3553 (getUI): Added javadoc.
3555 (upadteUI): Added javadoc, don't revalidate and repaint.
3557 2004-07-21 David Jee <djee@redhat.com>
3559 * java/awt/GridBagLayout.java
3560 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
3561 * javax/swing/AbstractButton.java
3562 (setText): Reindent.
3563 * javax/swing/RepaintManager.java
3564 (addInvalidComponent): Find the first ancestor that isValidateRoot().
3566 2004-07-21 Michael Koch <konqueror@gmx.de>
3568 * javax/swing/JFormattedTextField.java
3570 (JFormattedTextField): Implemented.
3571 (getValue): Likewise.
3572 (setValue): Likewise.
3573 * javax/swing/LookAndFeel.java
3574 (getSupportsWindowDecorations): New method.
3575 * javax/swing/UIDefaults.java:
3576 Use java.beans.PropertyChangeSupport instead of doing all ourself.
3577 (addPropertyChangeListener): Made public.
3578 (addResourceBundle): Likewise.
3579 (removeResourceBundle): Likewise.
3580 (setDefaultLocale): Likewise.
3581 * javax/swing/plaf/basic/BasicRootPaneUI.java
3582 (BasicRootPaneUI): Implements PropertyChangeListener.
3583 (propertyChange): New method.
3584 * javax/swing/plaf/basic/BasicTextUI.java
3585 (BasicHighlighter): New inner class.
3586 (createHighlighter): New method.
3587 * javax/swing/plaf/basic/BasicToolBarUI.java
3588 (DragWindow): Extends java.awt.Window.
3589 * javax/swing/text/JTextComponent.java
3590 (getDocument): Removed debug output.
3591 * javax/swing/plaf/basic/BasicTextFieldUI.java,
3592 javax/swing/text/DefaultHighlighter.java,
3593 javax/swing/text/FieldView.java,
3594 javax/swing/text/PlainView.java: New files.
3595 * Makefile.am: Added new files.
3596 * Makefile.in: Regenerated.
3598 2004-07-21 Michael Koch <konqueror@gmx.de>
3600 * javax/swing/JEditorPane.java
3601 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
3602 (createEditorKitForContentType): Likewise.
3603 * javax/swing/text/DefaultEditorKit.java
3604 (serialVersionUID): Added constant field.
3605 (EndOfLineStringPropery): Fixed typo.
3606 (DefaultEditorKit): New constructor.
3607 * javax/swing/text/Segment.java:
3608 Import java.text.CharacterIterator.
3609 * javax/swing/text/CharacterIterator.java,
3610 javax/swing/text/PlainEditorKit.java: Removed.
3611 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
3612 javax/swing/text/PlainEditorKit.java.
3613 * Makefile.in: Regenerated.
3615 2004-07-21 Michael Koch <konqueror@gmx.de>
3617 * javax/swing/JButton.java,
3618 javax/swing/text/DefaultEditorKit.java,
3619 javax/swing/text/EditorKit.java,
3620 javax/swing/text/Segment.java,
3621 javax/swing/text/StyledEditorKit.java:
3624 2004-07-21 Michael Koch <konqueror@gmx.de>
3626 * javax/swing/ImageIcon.java
3628 (description): Renamed from descr.
3629 (ImageIcon): Added missing constructors.
3630 (setParent): Removed.
3631 (setImageObserver): New method.
3632 (getImageObserver): New method.
3633 (paintIcon): Handle observer = null.
3634 * javax/swing/JButton.java
3635 (removeNotify): Fixed javadoc.
3636 (updateUI): Simplified.
3637 * javax/swing/JRootPane.java
3638 (serialVersionUID): New constant field.
3639 * javax/swing/UIManager.java:
3640 Fixed javadocs all over.
3641 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
3642 * javax/swing/text/AbstractDocument.java
3643 (createPosition): Throws BadLocationException.
3644 (getText): Likewise.
3646 * javax/swing/text/ComponentView.java
3647 (modelToView): Likewise.
3648 * javax/swing/text/DefaultEditorKit.java:
3649 Made all public methods public.
3650 (read): Throws BadLocationException and IOException.
3652 * javax/swing/text/EditorKit.java:
3653 Made all public methods public.
3654 (serialVersionUID): New constant field.
3655 (clone): New method.
3656 (read): Throws BadLocationException and IOException.
3658 * javax/swing/text/Segment.java
3659 (array): Made public.
3662 (Segment): New constructors.
3663 (clone): Reimplemented.
3664 * javax/swing/text/StyledEditorKit.java
3665 (serialVersionUID): New constant field.
3667 2004-07-21 Graydon Hoare <graydon@redhat.com>
3669 * java/awt/image/BufferedImage.java
3670 (getSource): Implement.
3671 * javax/swing/ImageIcon.java
3672 (ImageIcon): Implement ctor.
3673 * javax/swing/ScrollPaneLayout.java
3674 (preferredLayoutSize): Be more careful about nulls.
3676 2004-07-21 Michael Koch <konqueror@gmx.de>
3678 * javax/swing/text/AttributeSet.java
3679 (CharacterAttribute): New interface
3680 (ColorAttribute): Likewise.
3681 (FontCharacterAttribute): Likewise.
3682 (ParagraphAttribute): Likewise.
3683 * javax/swing/text/DefaultCaret.java
3684 (moveCaret): New method.
3685 (positionCaret): Likewise.
3686 (repaint): Made protected.
3687 * javax/swing/text/JTextComponent.java
3688 (KeyBinding): Made it static.
3689 * javax/swing/text/View.java
3690 (getContainer): Honor parent == null.
3692 2004-07-21 Michael Koch <konqueror@gmx.de>
3694 * javax/swing/text/AbstractDocument.java:
3697 2004-07-21 Michael Koch <konqueror@gmx.de>
3699 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3700 Import javax.swing.UIManager explicitely.
3701 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
3702 (ScrollingButton): Made it static.
3704 2004-07-21 Michael Koch <konqueror@gmx.de>
3706 * javax/swing/UIDefaults.java
3707 (ActiveValue): Made public.
3708 (LazyValue): Likewise.
3709 * javax/swing/plaf/basic/BasicTextUI.java
3710 (RootView): Reintroduced.
3712 (rootView): New field.
3713 (installUI): Create document if needed, initialize rootView.
3714 (uninstallUI): Hanle rootView.
3716 (getRootView): Likewise.
3717 (setView): Likewise.
3718 * javax/swing/text/DefaultCaret.java:
3719 Renamed all "evt" variables to "event".
3721 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3723 * libgcj.spec.in: Add -l-java-util-logging.
3725 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
3727 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3728 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
3729 gtk-xft-dpi can no calculate the right value.
3730 (dpi_changed_cb): Mark *pspec as unsused.
3732 2004-07-21 David Jee <djee@redhat.com>
3734 * java/awt/Component.java
3735 (move): Delegate to setBounds().
3737 (reshape): Fix so it repaints parent and self only when necessary.
3739 2004-07-21 David Jee <djee@redhat.com>
3741 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3742 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3743 (GtkComponentPeer): Revert previous patch from 2004-06-22.
3744 (setVisible): Likewise.
3747 (getArgs): Likewise.
3748 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3749 (property_notify_predicate): Likewise.
3750 (find_layout): Likewise.
3751 (connectJObject): Likewise.
3752 (connectSignals): Likewise.
3753 (moveLayout): Likewise.
3754 (gtkLayoutSetVisible): Likewise.
3756 2004-07-21 Graydon Hoare <graydon@redhat.com>
3762 (rmiregistry_LDADD): Add lib-java-util-logging.la
3763 * Makefile.in: Regenerate.
3765 2004-07-21 Michael Koch <konqueror@gmx.de>
3767 * javax/swing/text/AbstractDocument.java
3768 (replace): Dont use protected method of java.util.Vector directly.
3770 2004-07-21 Michael Koch <konqueror@gmx.de>
3772 * javax/swing/plaf/basic/BasicTextUI.java
3773 (installUI): Call specialized install methods.
3774 (installDefaults): New method.
3775 (installListeners): Likewise.
3776 (installKeyboardActions): Likewise.
3777 (uninstallUI): Likewise.
3778 (uninstallDefaults): New method.
3779 (uninstallListeners): Likewise.
3780 (uninstallKeyboardActions): Likewise.
3781 (getPropertyPrefix): New abstract method.
3782 (paint): Made final, just call paintSafely().
3783 (paintSavely): New method.
3784 (paintBackground): Likewise.
3785 (getVisibleEditorRect): Likewise.
3786 * javax/swing/text/LayeredHighlighter.java,
3787 javax/swing/text/TabExpander.java: New files.
3788 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
3789 and javax/swing/text/TabExpander.java.
3790 * Makefile.in: Regenerated.
3792 2004-07-21 Michael Koch <konqueror@gmx.de>
3794 * javax/swing/plaf/basic/BasicTextUI.java
3795 (BasicTextUI): Made abstract.
3796 (BasicCaret): New inner class.
3797 (view): Don't explicitely initialize with "null".
3798 (textComponent): New field.
3799 (textColor): Removed.
3800 (disabledTextColor): Removed.
3801 (normalBackgroundColor): Removed.
3802 (RootView): Removed commented out inner class.
3803 (createUI): Removed.
3804 (createCaret): New method.
3805 (getComponent): Likewise.
3806 (installUI): Initialize textComponent only.
3807 (getPreferredSize): Use installed JTextComponent.
3808 (setView): New method.
3810 * javax/swing/text/JTextComponent.java
3811 (highlighter): New field.
3812 (caretColor): Likewise.
3813 (disabledTextColor): Likewise.
3814 (seletedTextColor): Likewise.
3815 (selectionColor): Likewise.
3816 (setUI): New method.
3817 (getCaretColor): Likewise.
3818 (setCaretColor): Likewise.
3819 (getDisabledColor): Likewise.
3820 (setDisabledColor): Likewise.
3821 (getSelectedTextColor): Likewise.
3822 (setSelectedTextColor): Likewise.
3823 (getSelectionColor): Likewise.
3824 (setSelectionColor): Likewise.
3825 (getHighlighter): Likewise.
3826 (setHighlighter): Likewise.
3827 (replaceSelection): Likewise.
3829 2004-07-21 Michael Koch <konqueror@gmx.de>
3831 * javax/swing/plaf/basic/BasicScrollPaneUI.java
3832 (BasicScrollPaneUI): Implements ScrollPaneConstants.
3833 * javax/swing/plaf/basic/BasicToolBarUI.java
3834 (BasicToolBarUI): Implements SwingConstants.
3836 2004-07-21 Michael Koch <konqueror@gmx.de>
3838 * javax/swing/JPopupMenu.java: Removed CVS tags.
3839 * javax/swing/UIDefaults.java: Reformatted.
3840 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3841 Explicitely import used classes.
3843 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3845 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3846 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3847 (GtkComponentPeer): Remove temporary try/catch block.
3848 (setVisible): Call show and hide.
3849 (show): Make native.
3851 (getArgs): Don't add "visible" argument.
3852 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3853 (property_notify_predicate): Return Bool instead of int.
3854 (find_layout): New function.
3855 (connectJObject): Call find_layout.
3856 (connectSignals): Likewise.
3857 (moveLayout): Likewise.
3858 (gtkLayoutSetVisible): Likewise.
3860 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3862 * javax/swing/AbstractButton.java:
3863 (setDisplayedMnemonicIndex): Check if button
3864 text is not null before checking its length.
3865 * javax/swing/JMenuItem.java:
3866 (processMouseEvent): Disarm menu item if mouse has
3868 * javax/swing/plaf/basic/BasicMenuUI.java:
3869 (MouseInputHandler.mouseEntered): Do not raise
3870 popup menu if this menu is already selected.
3871 (MouseInputHandler.mousePressed): Do not fire
3873 (MenuHandler): Implemented.
3875 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3877 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
3878 (getSelectedObjects): Implemented.
3879 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
3880 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
3881 Added javadoc for few methods.
3882 (processMouseEvent): Made public.
3883 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
3884 (processMouseEvent): Likewise.
3886 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3888 * javax/swing/AbstractButton.java:
3889 (init): Set display mnemonic index to -1.
3890 (setMnemonic(char)): Use setMnemonic(int).
3891 (setMnemonic(int)): Set display mnemonic index.
3892 (getDisplayedMnemonicIndex): Change method signature
3893 by removing 'index' parameter.
3894 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3895 Added default for Menu.selectionBackground.
3896 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3897 (paintMenuItem): Change background color of the selected
3899 (paintText): Paint differently when menu item is disabled.
3900 Also paint mnemonic if it appears in the menu item's label.
3901 (paintAccelerator): Paint accelerator differently
3902 if menu item is disabled.
3903 * javax/swing/plaf/basic/BasicMenuUI.java:
3904 (installDefaults): Install defaults for
3905 selectionForeground and selectionBackground.
3906 (uninstallDefaults): Uninstall defauls for
3907 selectionForeground and selectionBackground.
3909 2004-07-21 Michael Koch <konqueror@gmx.de>
3911 * javax/swing/text/AbstractDocument.java
3912 (BranchElement): Implemented.
3913 (LeafElement): Implemented.
3914 * javax/swing/text/DefaultCaret.java:
3915 Import used classes.
3916 (serialVersionUID): New constant.
3917 * javax/swing/text/JTextComponent.java
3918 (AccessibleJTextComponent): Removed dead declaration.
3919 (caretPos): Removed.
3920 (setCaret): New method.
3921 * javax/swing/text/PlainDocument.java
3922 (rootElement): New field.
3923 (PlainDocument): Initialize rootElement.
3924 (createDefaultRoot): New method.
3925 (getDefaultRootElement): Implemented.
3926 * javax/swing/text/View.java: Reformatted.
3927 * javax/swing/text/ViewFactory.java
3928 (create): Added javadoc.
3930 2004-07-21 Michael Koch <konqueror@gmx.de>
3932 * javax/swing/ToolTipManager.java: Reformatted.
3934 2004-07-21 Rodimina Olga <rodimina@redhat.com>
3936 * javax/swing/AbstractButton.java
3937 (changeEvent): New field.
3938 (fireItemStateChanged): Change source of the event
3939 to 'this' before firing it to button listeners.
3940 (fireActionPerformed): Likewise.
3941 (fireStateChanged): Likewise.
3942 (createActionListener): Do not set source
3943 of the event to AbstractButton.
3944 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3945 (ContainerHandler.componentAdded): Removed
3946 print out statement.
3947 (ContainerHandler.componentRemoved): Likewise.
3949 2004-07-21 Michael Koch <konqueror@gmx.de>
3951 * javax/swing/text/Highlighter.java: New file.
3952 * Makefile.am: Added javax/swing/text/Highlighter.java.
3953 * Makefile.in: Regenerated.
3955 2004-07-21 Michael Koch <konqueror@gmx.de>
3957 * javax/swing/ToolTipManager.java
3958 (stillInsideTimerAction): Fixed constructor arguments.
3959 (outsideTimerAction): Likewise.
3960 (insideTimerAction): Likewise.
3962 2004-07-21 Michael Koch <konqueror@gmx.de>
3964 * javax/swing/JButton.java: Reformatted.
3965 * javax/swing/JFormattedTextField.java
3966 (getUIClassID): Implemented.
3967 * javax/swing/JRootPane.java
3968 (serialVersionUID): New constant.
3969 * javax/swing/JTextField.java
3971 (JTextField): Simplified.
3972 (getUIClassID): New method.
3973 (getActionListeners): Added @since tag.
3974 (setColumns): Invalidate layout and repaint.
3975 (getHorizontalAlignment): New method.
3976 (setHorizontalAlignment): New method.
3977 (selectAll): Removed.
3978 * javax/swing/SwingUtilities.java
3979 (getAncestorOfClass): Removed redundant @see tag.
3980 (isLeftMouseButton): Fixed implementation.
3981 (isMiddleMouseButton): Likewise.
3982 (isRightMouseButton): Likewise.
3983 * javax/swing/text/AbstractDocument.java
3984 (AttributeContext.addAttribute): New method.
3985 (AttributeContext.addAttributes): New method.
3986 (AttributeContext.getEmptySet): New method.
3987 (AttributeContext.reclaim): New method.
3988 (AttributeContext.removeAttribute): New method.
3989 (AttributeContext.removeAttributes): New method.
3990 * javax/swing/text/Document.java
3991 (createPosition): Throws BadLocationException.
3992 (getText): Likewise.
3994 * javax/swing/text/JTextComponent.java
3995 (getText): Return null if no document is set. Catch
3996 BadLocationException.
3998 (updateUI): Simplified.
4000 2004-07-21 Michael Koch <konqueror@gmx.de>
4002 * javax/swing/JButton.java
4003 (removeNotify): Fixed javadoc.
4004 (updateUI): Simplified.
4006 2004-07-21 David Jee <djee@redhat.com>
4008 * gnu/java/awt/image/ImageDecoder.java
4009 (startProduction): Only add consumer if it's not added yet.
4010 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
4011 (GdkPixbufDecoder): Don't call initState() here.
4012 (produce): Call initState() here, to ensure area_prepared and
4013 area_updated signals are properly connected.
4014 * gnu/java/awt/peer/gtk/GtkImage.java
4015 (setColorModel): Use equals() to compare ColorModel objects.
4016 (setPixels): Likewise.
4017 * java/awt/image/ColorModel.java
4018 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
4019 * java/awt/image/RGBImageFilter.java
4020 (setColorModel): Set consumer's color model.
4021 (setPixels): Use equals() to compare ColorModel objects.
4023 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
4025 * java/net/URLConnection.java (position): New field.
4026 (dateFormat1, dateFormat2, dateFormat3): Removed.
4027 (dateFormats): New field.
4028 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
4029 each time instead of re-allocating.
4030 (initializeDateFormats): Initialize 'dateFormats'.
4032 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
4035 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
4038 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
4040 * java/net/Socket.java (getImpl): Now private. Remove comment.
4042 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
4044 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
4045 of chained Writer when calling super-constructor.
4046 * java/io/FilterWriter.java (FilterWriter): Likewise.
4047 * java/io/PrintWriter.java (PrintWriter): Likewise.
4049 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
4051 * prims.cc (process_gcj_properties): Don't increment i within LHS
4054 2004-07-19 Per Bothner <per@bothner.com>
4056 Print -verbose:message on "loading", not initialization.
4057 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
4058 * defineclass.cc (_Jv_ClassReader::parse): Print message if
4059 gcj::verbose_class_flag.
4060 * java/lang/natClass.cc (initializeClass): Don't print message here.
4061 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
4062 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
4063 (_Jv_PrepareCompiledClass): Likewise.
4065 2004-07-18 Matthias Klose <doko@debian.org>
4067 * configure.in: Substitute target_noncanonical.
4068 * configure: Regenerate
4070 2004-07-17 Michael Koch <konqueror@gmx.de>
4072 * java/lang/String.java: Fixed javadocs all over.
4074 2004-07-17 Mark Wielaard <mark@klomp.org>
4076 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
4077 when size is smaller.
4078 * java/io/RandomAccessFile.java (setLength): Use truncate for
4079 shrinking the file and seek plus write for expanding the file.
4081 2004-07-17 Michael Koch <konqueror@gmx.de>
4083 * gnu/java/nio/channels/natFileChannelPosix.cc
4084 (implTruncate): Always save current position. Only reposition file
4085 pointer to where we started if not beyond new lenght. Reposition file
4086 pointer to file length if it points beyond the end of file.
4088 2004-07-17 Mark Wielaard <mark@klomp.org>
4090 * javax/swing/Box.java: Put FIXME comment above class declaration.
4091 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
4092 * javax/swing/JCheckBox.java: Likewise.
4093 * javax/swing/JDialog.java: Likewise.
4094 * javax/swing/JRadioButton.java: Likewise.
4095 * javax/swing/JToggleButton.java: Likewise.
4096 * javax/swing/UIManager.java: Likewise.
4097 * javax/swing/border/TitledBorder.java: Likewise.
4098 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
4099 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
4100 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
4101 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
4102 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
4103 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
4104 * javax/swing/text/JTextComponent.java: Likewise.
4106 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
4108 * java/net/DatagramPacket.java (setAddress): Removed check for
4111 2004-07-17 Michael Koch <konqueror@gmx.de>
4113 * java/net/DatagramSocket.java
4114 (getLocalAddress): Check if socket is bound or not.
4115 * java/net/Socket.java
4116 (getLocalAddrss): Check if socket is bound or not.
4117 (getPort): Return -1 when not connected. Dont check getImpl() for
4119 (setReuseAddress): Check if socket is closed.
4120 (isConnected): Check if getImpl() returns null.
4122 2004-07-17 Mark Wielaard <mark@klomp.org>
4124 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
4125 on notifier object before calling notifyAll().
4127 2004-07-17 Michael Koch <konqueror@gmx.de>
4129 * gnu/java/nio/channels/FileChannelImpl.java
4130 (finalize): Added javadoc.
4132 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
4134 * java/text/CollationElementIterator.java
4135 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
4136 (setText): Use ArrayList instead of Vector.
4138 2004-07-17 Michael Koch <konqueror@gmx.de>
4140 * java/nio/ByteOrder.java
4141 (static): Removed. Not needed.
4142 Thanks to Patrick Reali for noticing.
4143 * java/nio/charset/CharsetDecoder.java
4144 (decode): Fix for classpath bug #9177: Reset state before flipping.
4146 2004-07-17 Michael Koch <konqueror@gmx.de>
4148 * java/security/Security.java: Fixed javadocs all over.
4150 2004-07-17 Michael Koch <konqueror@gmx.de>
4152 * gnu/java/awt/EmbeddedWindow.java
4154 (addNotify): Set peer via reflection.
4155 (setWindowPeer): Removed.
4156 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
4157 * Makefile.am (nat_source_files):
4158 Removed gnu/java/awt/natEmbeddedWindow.cc.
4159 * Makefile.in: Regenerated.
4161 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
4163 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
4165 * configure: Regenerated.
4167 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
4169 * configure.in: Use build_noncanonical rather than build_alias.
4170 * configure: Rebuild.
4172 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
4173 by logic refactoring. Move default definition of NATIVE closer
4174 to first alternate definition.
4175 * configure: Regenerate.
4177 * Makefile.am: Set ZIP and GCJH directly using autoconf.
4178 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
4179 gcj/Makefile.in: Regenerate.
4180 * configure.in: Set ZIP and GCJH. Remove redundant condition
4181 in AM_CONDITIONAL(NATIVE,...)
4182 * configure: Regenerate.
4184 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
4186 * configure.in: Use target_noncanonical rather than
4187 target_alias for forward-compatibility with autoconf 2.59.
4188 * configure: Regenerate.
4189 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
4190 testsuite/Makefile.am: Substitute target_noncanonical.
4191 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4192 testsuite/Makefile.in: Regenerate.
4194 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
4195 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
4196 * acinclude.m4: Include acx.m4.
4197 * aclocal.m4: Regenerate.
4198 * configure: Regenerate.
4200 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
4203 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
4204 (decimalFormat): New static variable.
4206 (getTime): New. Override Date.getTime().
4207 (toString): Synchronize. Use decimalFormat to format nanos value
4208 correctly. Truncate extra zeros.
4209 (before): Compare getNanos() only if getTime() is equal.
4212 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
4214 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
4215 * configure.in: ...here.
4216 * aclocal.m4: Regenerate.
4217 * configure: Regenerate.
4219 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
4220 * configure: Rebuilt with autoconf 2.13.
4221 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4222 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
4224 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
4227 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
4229 * Makefile.in: Rebuilt.
4230 * testsuite/libjava.lang/LargeFile.java: New test case.
4231 * testsuite/libjava.lang/LargeFile.out: New file.
4233 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
4235 * java/beans/EventHandler.java: Remove debugging statements.
4237 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
4239 * java/beans/EventHandler.java: New file.
4240 * Makefile.am (awt_java_source_files): Add EventHandler.java.
4241 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4242 testsuite/Makefile.in: Regenerate.
4244 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
4246 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
4247 flag to the gcj_setup.
4248 (gcj_jacks_run): Check tclsh version and launch jacks directly with
4250 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
4251 deprecation flag change. 58 XFAILS removed.
4253 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
4255 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
4256 -fno-use-divide-subroutine.
4257 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
4258 (HANDLE_FPE): Define.
4259 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
4260 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
4261 (HANDLE_DIVIDE_OVERFLOW): Define.
4263 2004-07-14 Michael Koch <konqueror@gmx.de>
4264 Matthias Klose <doko@debian.org>
4266 * java/awt/im/InputContext.java: Initialize in, line.
4268 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
4270 * interpret.cc (run): Correctly access libffi return values of
4271 integral smaller-than-int type; these are implicitly promoted.
4273 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
4276 * interpret.cc (compile_mutex): New.
4277 (_Jv_InitInterpreter): New. Initialize compile_mutex.
4278 (run): Lock compile_mutex before calling compile() if compilation is
4280 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
4281 * include/java-interp.h (_Jv_InitInterpreter): Declare.
4283 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
4286 * include/jvm.h (_Jv_value): New union type.
4287 * gcj/field.h (_Jv_Field): Add new _addr union field variants
4288 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
4291 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
4293 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
4294 * gnu/awt/xlib/XOffScreenImage.java
4295 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
4296 constructor argument. Add constructor using ImageProducer.
4297 (getSource): Implement.
4298 (imageComplete): New method.
4299 (setColorModel): New method.
4300 (setDimensions): New method.
4301 (setHints): New method.
4302 (setPixels): New method.
4303 (setProperties): New method.
4304 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
4305 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
4307 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
4310 * prims.cc (_Jv_CreateJavaVM): Fix comment.
4311 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
4312 (finalizerReady): Now native.
4314 (runFinalizers): Removed.
4315 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
4316 a primitive lock, and don't hold it while running the finalizers.
4317 (runFinalizers): Implement. Don't aquire any Java lock.
4318 (finalizerReady): Use lock primitives to signal finalizer thread.
4320 2004-07-11 Mark Wielaard <mark@klomp.org>
4322 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
4323 * java/net/URLStreamHandler.java (parseURL): When url file part
4324 doesn't contain a '/' just ignore context.
4326 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
4328 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
4329 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
4330 (MAKE_THROW_FRAME): Do not modify PSW address.
4331 (INIT_SEGV): Install SIGINFO-style signal handler.
4332 (INIT_FPE): Likewise.
4334 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
4336 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
4337 status. 21 xfail's removed, 1 added.
4339 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
4341 * gcj/javaprims.h: Regenerate CNI namespace definitions.
4343 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
4345 * java/text/MessageFormat.java
4346 (formatInternal): Append "{n}" if argument n is unavailable.
4347 (format(Object, StringBuffer, FieldPosition)): This
4348 should be equivalent to format(Object[],
4349 StringBuffer, FieldPosition).
4351 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4353 * java.util.Calendar.java (cache): New private static field. Cached
4354 mappings of locales->calendar classes.
4355 (ctorArgTypes): New private static field. Singleton argument for
4356 calendar class constructor lookup.
4357 (getInstance): Cache Locale->Calendar class mappings using HashMap.
4358 Optimize by bypassing reflection instantiation for the
4359 GregorianCalendar case.
4361 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4363 * java/util/Calendar.java: Use getSystemClassLoader as argument for
4364 ResourceBundle.getBundle() calls.
4365 * java/util/GregorianCalendar.java: Likewise.
4366 * java/util/Currency.java: Likewise.
4367 * java/text/BreakIterator.java: Likewise.
4368 * java/text/Collator.java: Likewise.
4369 * java/text/DateFormat.java: Likewise.
4370 * java/text/DateFormatSymbols.java: Likewise.
4371 * java/text/DecimalFormatSymbols.java: Likewise.
4372 * java/text/NumberFormat.java: Likewise.
4373 * java/awt/Window.java: Likewise.
4375 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4377 * java/util/ResourceBundle.java (bundleCache): Renamed from
4378 resourceBundleCache. Update comments.
4379 (getObject): Don't catch MissingResourceException.
4380 (getBundle(String)): Remove 'final'. Use system classloader if
4381 getCallingClassLoader returned null.
4382 (getBundle(String, Locale)): Likewise.
4383 (BundleKey): New private class. HashMap key for bundle cache lookup.
4384 (lookupKey): New. Singleton instance of BundleKey.
4385 (nullEntry): New. Cache entry to represent failed lookups.
4386 (getBundle(String, Locale, ClassLoader)): Re-written to use new
4387 caching strategy, no-allocation lookup, and new tryBundle methods.
4388 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
4389 name using given classloader.
4390 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
4391 baseName for given Locale and attempt to load bundle.
4393 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4395 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
4396 illegal protected method calls.
4398 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4400 Fix or remove some bogus test cases.
4401 * testsuite/libjava.compile/pr10459_2.java: Removed.
4402 * testsuite/libjava.compile/pr10459.java: Test using its own method,
4404 * testsuite/libjava.compile/inner_data.java: Test against its own
4407 2004-07-09 Michael Koch <konqueror@gmx.de>
4409 * scripts/unicode-muncher.pl: Updated to version 2.1
4410 from GNU classpath. Added some clarifications on where to find the
4411 needed files from www.unicode.org.
4412 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
4413 gnu/gcj/convert/UnicodeData-3.0.0.txt:
4414 Removed, these can directly be downloaded from www.unicode.org if
4416 * gnu/java/lang/CharData.java: Regenerated.
4417 * include/java-chartables.h: Regenerated.
4418 * Makefile.am (ordinary_java_source_files):
4419 Removed gnu/java/lang/CharData.java.
4420 * Makefile.in: Regenerated.
4422 2004-07-09 Michael Koch <konqueror@gmx.de>
4424 * java/security/AccessControlContext.java,
4425 java/security/SecureClassLoader.java:
4428 2004-07-09 Michael Koch <konqueror@gmx.de>
4430 * java/io/ObjectInputStream.java (readFields): Use long datatype
4431 when shifting byte values more then 24 bits left.
4433 2004-07-09 Michael Koch <konqueror@gmx.de>
4435 * java/util/zip/DeflaterOutputStream.java,
4436 java/util/zip/GZIPInputStream.java,
4437 java/util/zip/GZIPOutputStream.java,
4438 java/util/zip/InflaterInputStream.java:
4439 Reformatted. Added javadocs. Reordered all stuff.
4440 Renamed variables to be more clear.
4442 2004-07-09 Michael Koch <konqueror@gmx.de>
4444 * javax/imageio/IIOException.java,
4445 javax/imageio/event/IIOReadProgressListener.java,
4446 javax/imageio/event/IIOReadUpdateListener.java,
4447 javax/imageio/event/IIOReadWarningListener.java,
4448 javax/imageio/event/IIOWriteProgressListener.java,
4449 javax/imageio/event/IIOWriteWarningListener.java:
4451 * Makefile.am: Added new files.
4452 * Makefile.in: Regenerated.
4454 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
4456 * java/text/RuleBasedCollator.java
4457 (mergeRules): Use ArrayList instead of Vector.
4458 (subParseString): likewise.
4459 (parseString): likewise.
4460 (buildCollationVector): likewise.
4461 (getCollationKey): likewise.
4463 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4465 * java/text/DateFormat.java (parse):
4466 Improved javadoc. Improved exception message.
4468 2004-07-09 Mark Wielaard <mark@klomp.org>
4470 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
4471 interrupted() method to clear interupt flag of our Thread.
4473 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4475 * java/nio/Buffer.java,
4476 java/nio/ByteBuffer.java,
4477 java/nio/ByteBufferHelper.java,
4478 java/nio/ByteBufferImpl.java,
4479 java/nio/CharBuffer.java,
4480 java/nio/CharBufferImpl.java,
4481 java/nio/CharViewBufferImpl.java,
4482 java/nio/DirectByteBufferImpl.java,
4483 java/nio/DoubleBuffer.java,
4484 java/nio/DoubleBufferImpl.java,
4485 java/nio/DoubleViewBufferImpl.java,
4486 java/nio/FloatBuffer.java,
4487 java/nio/FloatBufferImpl.java,
4488 java/nio/FloatViewBufferImpl.java,
4489 java/nio/IntBuffer.java,
4490 java/nio/IntBufferImpl.java,
4491 java/nio/IntViewBufferImpl.java,
4492 java/nio/LongBuffer.java,
4493 java/nio/LongBufferImpl.java,
4494 java/nio/LongViewBufferImpl.java,
4495 java/nio/MappedByteBufferImpl.java,
4496 java/nio/ShortBuffer.java,
4497 java/nio/ShortBufferImpl.java,
4498 java/nio/ShortViewBufferImpl.java:
4499 Fixed javadocs all over. Improved input error
4502 * java/nio/Buffer.java
4503 (checkForUnderflow, checkForOverflow, checkIndex,
4504 checkIfReadOnly, checkArraySize): New helper methods
4507 * java/nio/ByteBufferHelper.java
4508 (checkRemainingForRead, checkRemainingForWrite,
4509 checkAvailableForRead, checkAvailableForWrite): Removed
4510 no longer needed methods.
4512 2004-07-09 Michael Koch <konqueror@gmx.de>
4514 * gnu/regexp/CharIndexedInputStream.java:
4515 Reordered imports to match classpath.
4517 2004-07-09 Michael Koch <konqueror@gmx.de>
4519 * gnu/java/awt/EmbeddedWindow.java:
4520 Load native library for setWindowPeer method.
4522 2004-07-08 Randolph Chung <tausq@debian.org>
4524 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
4525 * configure: Regenerate.
4526 * configure.host: Set can_unwind_signal for hppa*-linux.
4527 * include/pa-signal.h: New file.
4529 2004-07-07 Per Bothner <per@bothner.com>
4531 * Makefile.am: Add rules to build libgij from just gij.cc.
4533 * include/jvm.h (namespace jcj): Declare verbose_class_flag
4534 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
4535 (initializeClass): If verbose_class_flag, print message.
4536 * gij.cc (main): Handle -verbose:class flag.
4538 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
4540 * configure.host: Enable hash synchronization on Darwin.
4541 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
4542 ';', since this is a comment on Darwin.
4543 (compare_and_swap_release): Likewise.
4545 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
4547 * java/net/URLStreamHandler.java (parseURL): Canonicalize
4548 file portion of URL in addition to spec for file: protocol.
4550 2004-07-05 Anthony Green <green@redhat.com>
4552 * java/io/File.java (toURI): Merge from Classpath.
4554 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4556 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
4557 before passing to URL constructor. Rethrow any MalformedURLException
4558 as a RuntimeException. Catch MalformedURLException specifically, not
4561 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4563 * java/util/Locale.java (readObject): Intern strings read from object
4566 2004-07-04 Michael Koch <konqueror@gmx.de>
4568 * gnu/gcj/runtime/FirstThread.java,
4569 gnu/gcj/runtime/natFirstThread.cc: Removed.
4570 * gnu/java/lang/MainThread.java,
4571 gnu/java/lang/natMainThread.cc: New files.
4572 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
4573 * Makefile.am: Added new files and removed deleted ones.
4574 * Makefile.in: Regenerated.
4576 2004-07-03 Mark Wielaard <mark@klomp.org>
4577 Anthony Green <green@redhat.com>
4579 * java/net/URL.java (getFile): Clarify return value doc.
4580 (getPath): Return null if file is empty - not empty String.
4581 (set): Convert protocol to lower case before doing anything.
4582 Only change the protocol handler if it's different.
4584 2004-07-03 Anthony Green <green@redhat.com>
4586 * java/net/URL.java (URL): Convert protocol to lower case before
4587 doing anything, so we getURLStreamHandler() with the proper value.
4589 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
4591 * java/util/Locale.java (hashcode): Made transient.
4592 (hashCode): No longer synchronized.
4593 (equals): Remove comment.
4594 (writeObject): No longer synchronized. Implement using writeObject
4595 calls instead of tweaking hashCode field. Update doc.
4596 (readObject): Implement using readObject calls.
4598 2004-06-26 Geoffrey Keating <geoffk@apple.com>
4599 Andreas Tobler <a.tobler@schweiz.ch>
4601 * configure.host (powerpc-*-darwin*): New case, define
4603 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
4604 * configure: Regenerate.
4605 * include/darwin-signal.h: New.
4607 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
4609 * java/beans/Statement.java (doExecute): Fix formatting.
4611 2004-06-29 Per Bothner <per@bothner.com>
4613 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
4614 etc etc): Remove needless parenthesis, which causes __stdcall__
4615 attribute on MinGW to get ignored.
4617 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
4619 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
4621 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
4623 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
4625 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
4627 * java/beans/Expression.java: New file.
4628 * java/beans/Statement.java: New file.
4629 * Makefile.am: Added new files.
4630 * Makefile.in: Re-generate.
4632 2004-06-27 Mark Wielaard <mark@klomp.org>
4634 * java/io/FilePermission.java (usingPerms): Removed.
4635 (actionsString): Made final.
4636 (cachePerms): Renamed to checkPerms.
4637 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
4639 (FilePermission): Check arguments, call checkPerms().
4640 (equals): Remove cachePerms() call.
4641 (implies): Likewise.
4643 2004-06-27 Mark Wielaard <mark@klomp.org>
4645 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
4647 (sendRequest): Use new field in user-agent http agent.
4649 2004-06-27 Mark Wielaard <mark@klomp.org>
4651 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
4652 when argument is null.
4654 2004-06-26 Mark Wielaard <mark@klomp.org>
4656 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
4657 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
4659 (cancel_clicked): Likewise.
4661 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
4663 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
4664 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
4665 can not calculate the right value.
4666 (dpi_changed_cb): Likewise. Mark *pspec as unused.
4668 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
4670 * testsuite/libjava.jacks/jacks.xfail: Remove
4671 15.9.1-qualified-concrete-20.
4673 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4675 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
4676 encoding name to iconv.
4677 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4679 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4682 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
4683 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
4684 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4686 2004-06-21 Andrew Haley <aph@redhat.com>
4688 * java/io/ObjectOutputStream.java: Add DEBUG statements
4690 (dumpElementln): New method.
4692 * java/io/ObjectInputStream.java
4693 (currentClassLoader): Make native.
4694 (callersClassLoader): New field.
4696 (readObject): ENDBLOCKDATA is generated if the class has a write
4697 method, not if it has a read method.
4698 (readObject): Save and restore this.currentObject and
4699 this.currentObjectStreamClass around calls to callReadMethod().
4700 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
4703 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
4705 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
4708 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4710 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
4711 if desired, before the default class loader is initialised.
4712 Call INIT_SEGV only if HANDLE_SEGV is defined.
4714 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4716 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
4717 directory only if it actually exists.
4719 2004-06-18 Graydon Hoare <graydon@redhat.com>
4721 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4722 Fix up non-ansi comments.
4724 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4726 * javax/swing/text/AbstractDocument.java: Adding missing import
4727 for javax.swing.event.EventListenerList.
4728 * javax/swing/text/DefaultCaret.java: Likewise.
4730 2004-06-17 Michael Koch <konqueror@gmx.de>
4732 * javax/swing/JToolBar.java
4734 (JToolBar): Use Component.setName(String) instead of doing it all
4736 * javax/swing/Timer.java
4737 (queueEvent): Added missing modifier.
4739 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
4741 * Makefile.am: Added new file.
4742 * Makefile.in: Re-generate.
4743 * javax/swing/JMenu.java:
4744 (insertSeparator): Implemented.
4745 * javax/swing/JPopupMenu.java:
4746 (JPopupMenu.Separator): Implemented.
4747 * javax/swing/MenuSelectionManager.java:
4748 (processMouseEvent): Use java.awt.Component
4749 for event source instead of javax.swing.JComponent.
4750 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
4751 New File. Implemented.
4753 2004-06-16 David Jee <djee@redhat.com>
4755 * java/awt/GridBagLayout.java
4756 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
4757 Make sure pos_x and pos_y are never negative.
4759 2004-04-16 Andrew Overholt <overholt@redhat.com>
4761 * Makefile.am: Add new file.
4762 * Makefile.in: Re-generate.
4763 * javax/swing/JToolBar.java
4764 Partially implemented.
4765 * javax/swing/plaf/basic/BasicToolBarUI.java
4766 New file. Partially implemented.
4768 2004-06-16 Graydon Hoare <graydon@redhat.com>
4770 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
4771 (setComposite): Accept AlphaComposite arguments.
4772 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
4773 (createBufferedImage): Add new overloads.
4774 * gnu/java/awt/peer/gtk/GtkToolkit.java
4775 (createImage): Use GdkPixbufDecoder.createBufferedImage
4776 when useGraphics2D() is true.
4777 (getImage): Delegate to createImage.
4778 * javax/swing/JList.java
4780 (getFirstVisibleIndex):
4781 (getLastVisibleIndex):
4783 (ensureIndexIsVisible): New methods.
4784 * javax/swing/Timer.java: Reimplement.
4786 2004-06-16 Michael Koch <konqueror@gmx.de>
4788 * javax/swing/text/AbstractDocument.java
4789 (AbstracElement): Made public, implements java.io.Serializable.
4790 (AttributeContext): Made public.
4791 (BranchElement): Likewise.
4792 (Content): Likewise.
4793 (DefaultDocumentEvent): Made public, extends
4794 javax.swing.undo.CompoundEdit.
4795 (ElementEdit): Made public, extends
4796 javax.swing.undo.AbstractUndoableEdit.
4797 (LeafElement): Made public.
4798 (LeafElement.LeafElement): Made public.
4800 2004-06-16 Michael Koch <konqueror@gmx.de>
4802 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
4803 methods (that were obviously never be intended to get included hi this
4804 class. Added some methods too.
4806 2004-06-16 Michael Koch <konqueror@gmx.de>
4808 * javax/swing/text/PlainDocument.java
4809 (serialVersionUID): New constant.
4810 (lineLimitAttribute): Likewise.
4811 (tabSizeAttribute): Likewise.
4812 (tabSize): New field.
4813 (PlainDocument): Made public.
4814 (PlainDocument): New constructor.
4816 2004-06-16 Michael Koch <konqueror@gmx.de>
4818 * javax/swing/text/AbstractDocument.java
4819 (insertString): Throws BadLocationException.
4820 * javax/swing/text/Document.java
4821 (insertString): Likewise.
4822 * javax/swing/text/JTextComponent.java:
4823 Javadocs and comments cleaned up.
4825 2004-06-16 Michael Koch <konqueror@gmx.de>
4827 * javax/swing/event/UndoableEditListener.java: Reformatted.
4828 * javax/swing/text/AbstractDocument.java
4829 (AbstractDocument): Implements java.io.Serializable.
4830 (doc_list): Removed.
4831 (undo_list): Removed.
4832 (AbstractElement.serialVerionUID): New field.
4833 (BranchElement.serialVerionUID): Likewise.
4834 (DefaultDocumentEvent.serialVerionUID): Likewise.
4835 (ElementEdit.serialVerionUID): Likewise.
4836 (LeafElement.serialVerionUID): Likewise.
4837 (serialVerionUID): Likewise.
4838 (BAD_LOCATION): New constant.
4839 (BidiElementName): Likewise.
4840 (ContentElementName): Likewise.
4841 (ParagraphElementName): Likewise.
4842 (SectionElementName): Likewise.
4843 (ElementNameAttribute): Likewise.
4844 (AbstractDocument): Made protected.
4845 (AbstractDocument): New construtor.
4846 (listenerList): New field.
4847 (fireChangedUpdate): Implemented.
4848 (fireInsertUpdate): Likewise.
4849 (fireRemoveUpdate): Likewise.
4850 (fireUndoableEditUpdate): Likewise.
4851 (getListeners): Likewise.
4852 (addDocumentListener): Likewise.
4853 (removeDocumentListener): Likewise.
4854 (addUndoableEditListener): Likewise.
4855 (removeUndoableEditListener): Likewise.
4856 (getDocumentListeners): New method.
4857 (getUndoableEditListeners): Likewise.
4858 (getAsynchronousLoadPriority): Made public.
4859 (getBidiRootElement): Likewise.
4860 (setAsynchronousLoadPriority): Likewise.
4861 (setDocumentProperties): Likewise.
4862 * javax/swing/text/BadLocationException.java
4863 (serialVerionUID): New field.
4864 * javax/swing/text/DefaultCaret.java
4865 (changeEvent): New field.
4866 (listenerList): Likewise.
4868 (addChangeListener): Reimplemented.
4869 (removeChangeListener): Likewise.
4870 (getListeners): New method.
4871 (getChangeListeners): Likwise.
4872 (getComponent): Likewise.
4873 * javax/swing/text/GapContent.java
4874 (GapContent): Implements java.io.Serializable.
4875 (serialVerionUID): New field.
4877 2004-06-16 Michael Koch <konqueror@gmx.de>
4879 * javax/swing/JTree.java
4880 (treeModel): New field.
4881 (JTree): New constructors, one existing one made public.
4882 (createTreeModel): New method.
4883 (addTreeExpansionListener): Likewise.
4884 (removeTreeExpansionListener): Likewise.
4885 (getTreeExpansionListeners): Likewise.
4886 (fireTreeCollapsed): Likewise.
4887 (fireTreeExpanded): Likewise.
4888 (addTreeSelectionListener): Likewise.
4889 (removeTreeSelectionListener): Likewise.
4890 (getTreeSelectionListeners): Likewise.
4891 (fireValueChanged): Likewise.
4892 (addTreeWillExpandListener): Likewise.
4893 (removeTreeWillExpandListener): Likewise.
4894 (getTreeWillExpandListeners): Likewise.
4895 (fireTreeWillCollapse): Likewise.
4896 (fireTreeWillExpand): Likewise.
4898 2004-06-16 Michael Koch <konqueror@gmx.de>
4900 * javax/swing/JTree.java: Reformatted.
4902 2004-06-16 Michael Koch <konqueror@gmx.de>
4904 * javax/swing/JTextArea.java: New file.
4905 * javax/swing/JTextField.java
4907 (notifyAction): New constant.
4908 (columns): New field.
4909 (JTextField): New constructors.
4910 (createDefaultModel): New method.
4911 (addActionListener): Reimplmemented.
4912 (removeActionListener): Reimplemented.
4913 (getActionListeners): New method.
4914 (fireActionPerformed): New method.
4915 (getColumns): New method.
4916 (setColumne): New method.
4917 * javax/swing/text/JTextComponent.java
4918 (AccessibleJTextComponent.serialVersionUID): New field.
4919 (serialVersionUID): Likewise.
4920 (DEFAULT_KEYMAP): Likewise.
4921 (FOCUS_ACCELERATOR_KEY): Likewise.
4922 (doc): Made private.
4923 (icon_gap): Likewise.
4926 (JTextComponent): Some constructors removed.
4927 (getScrollableTracksViewportHeight): New method.
4928 (getScrollableTracksViewportWidth): Likewise.
4929 * Makefile.am: Added javax/swing/JTextArea.java.
4930 * Makefile.in: Regenerated.
4932 2004-06-15 Graydon Hoare <graydon@redhat.com>
4934 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
4935 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
4936 * javax/swing/JViewport.java
4937 (getExtentSize): Return size rather than preferred size.
4938 (toViewCoordinates): New methods.
4939 (getViewSize): Return size rather than preferred size.
4940 (setViewSize): Note view size as set.
4941 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
4942 * javax/swing/plaf/basic/BasicScrollBarUI.java
4943 (getPreferredSize): Don't redo layout.
4944 * javax/swing/plaf/basic/BasicViewportUI.java
4945 (paint): Translate image properly and eat exceptions.
4947 2004-06-15 Kim Ho <kho@redhat.com>
4949 * javax/swing/JTabbedPane.java
4950 (setComponent): Remove old component and
4952 (setSelectedIndex): Don't operate on the
4953 components if they're null. Don't set index
4954 on the model if the index is the same.
4955 (insertTab): Don't add or hide the component
4956 if it's null. Repaint the container.
4957 * javax/swing/plaf/basic/BasicLookAndFeel.java
4958 Change colors for TabbedPane.
4959 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
4960 (mousePressed): Re-layout and paint the component.
4961 (layoutContainer): Don't set location on the view.
4962 (ScrollingViewport::paint): Remove.
4964 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
4966 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4967 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
4969 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
4970 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
4971 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
4973 (drawLine): Call gdk_flush before leaving GDK critical region.
4974 (fillRect): Likewise.
4975 (drawRect): Likewise.
4976 (copyArea): Likewise.
4977 (copyPixmap): Likewise.
4978 (clearRect): Likewise.
4979 (drawArc): Likewise.
4980 (drawPolyline): Likewise.
4981 (drawPolygon): Likewise.
4982 (fillPolygon): Likewise.
4983 (fillArc): Likewise.
4984 (drawOval): Likewise.
4985 (fillOval): Likewise.
4987 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
4989 (GdkFontMetrics): Add style argument to initState call.
4990 (stringWidth(String,int,int,String)): Add style parameter.
4991 (stringWidth(String)): Add style argument to stringWidth call.
4992 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
4993 (initState): Set pango font style and weight based on AWT style
4994 parameter. Pass default GTK language to
4995 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
4996 simply dividing by PANGO_SCALE.
4997 (stringWidth): Set pango font style and weight based on AWT style
5000 * java/awt/Button.java (next_button_number): New field.
5001 (paramString): Change output.
5002 (generateName): New method.
5003 (getUniqueLong): New method.
5005 2004-06-14 Kim Ho <kho@redhat.com>
5007 * javax/swing/JTabbedPane.java:
5008 (setComponentAt): Set the component, not
5010 * javax/swing/plaf/basic/BasicDesktopIconUI.java
5011 (actionPerformed): Let deiconize catch exception.
5013 2004-06-14 Olga Rodimina <rodimina@redhat.com>
5015 * javax/swing/JPopupMenu.java:
5016 (setVisible): Corrected location of a
5017 heavyweight popup menu.
5019 2004-06-14 Olga Rodimina <rodimina@redhat.com>
5021 * javax/swing/MenuSelectionManager.java:
5022 Ran through jalopy to fix formatting style.
5024 2004-06-14 Olga Rodimina <rodimina@redhat.com>
5026 * javax/swing/JLayeredPane.java:
5027 (remove): Revalidate and repaint layered pane after
5028 the component was removed.
5029 javax/swing/JMenu.java:
5030 (setVisible): Display popup menu at the user location,
5031 if one was set by the user.
5032 (setMenuLocation): Reimplemented. Fixed javadoc.
5033 * javax/swing/JMenuBar.java: Added javadoc.
5034 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
5035 (MODEL_CHANGED_PROPERTY): New Property.
5036 (isSelected): Implemented.
5037 (setBorderPainted): Fire PropertyChangeEvent
5038 if paintBorder property changes.
5039 (setSelected): Implemented.
5040 (setSelectionModel): Implemented.
5041 * javax/swing/JPopupMenu.java: Added Javadoc
5042 (pack): Implemented.
5043 (setVisible): Reimplemented.
5044 (show): Fixed location.
5045 (JPopupMenu.LigthWeightPopup): Reimplemented to use
5046 Container instead of JPanel.
5047 * javax/swing/MenuSelectionManager.java: Added Javadocs.
5048 (clearSelectedPath): Reimplemented to clear selectedPath
5050 (processMouseEvent): Reimplemented.
5051 (setSelectedPath): Fire stateChange event indicating that
5052 selected menu path has changed.
5053 (getPath): Change to use ArrayList instead of Vector.
5054 * javax/swing/plaf/basic/BasicMenuBarUI.java:
5055 (installUI): call installKeyboardActions().
5056 (uninstallUI): call uninstallKeyboardActions().
5058 2004-06-13 Michael Koch <konqueror@gmx.de>
5060 * javax/swing/text/DefaultCaret.java,
5061 javax/swing/text/BadLocationException.java:
5064 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
5066 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
5067 DEFAULT_COLS): New variables.
5068 (create): Don't allow 0 rows or 0 columns. Instead, set the
5069 values to DEFAULT_ROWS or DEFAULT_COLS.
5070 (getMinimumSize): Likewise.
5071 (getPreferredSize): Likewise.
5072 (minimumSize): Likewise.
5073 (preferredSize): Likewise.
5074 (create): Set peer's editable state.
5075 * java/awt/TextArea.java (TextArea()): Set rows and columns to
5076 zero. Update javadocs.
5077 (TextArea(String)): Likewise.
5078 (TextArea(int,int)): Fix javadocs.
5079 (TextArea(String,int,int,int)): Only throw exception if one of
5080 rows or columns is zero. Fix javadocs.
5082 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
5084 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
5085 addition to Components.
5087 * java/awt/MenuItem.java (dispatchEventImpl): If the event
5088 wasn't consumed by normal processing, send it to the parent
5091 * gnu/java/awt/peer/gtk/GtkImagePainter.java
5092 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
5095 2004-06-11 David Jee <djee@redhat.com>
5097 * java/awt/MediaTracker.java
5098 (addImage(Image,int)): Call imageUpdate() to udpate image status.
5099 (addImage(Image,int,int,int)): Likewise.
5101 2004-06-11 Michael Koch <konqueror@gmx.de>
5103 * javax/swing/text/AbstractDocument.java,
5104 javax/swing/text/Document.java,
5105 javax/swing/text/GapContent.java,
5106 javax/swing/text/JTextComponent.java,
5107 javax/swing/text/PlainDocument.java:
5110 2004-06-11 Michael Koch <konqueror@gmx.de>
5112 * javax/swing/JRootPane.java
5113 (AccessibleJRootPane.serialVersionUID): New field.
5114 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
5115 (AccessibleJRootPane.getAccessibleRole): New method.
5116 (RootLayout): Implements Serializable.
5117 (RootLayout.serialVersionUID): New field.
5118 (RootLayout.RootLayout): New constructor.
5119 (setJMenuBar): Made public.
5120 (getJMenuBar): Likewise.
5121 (JRootPane): Likewise.
5122 (createContentPane): Likewise.
5123 (createGlassPane): Likewise.
5124 (createLayeredPane): Likewise.
5126 2004-06-11 Michael Koch <konqueror@gmx.de>
5128 * javax/swing/SwingUtilities.java
5129 (isLeftMouseButton): Fixed javadoc.
5130 (isMiddleMouseButton): Likewise.
5131 (isRightMouseButton): Likewise.
5133 2004-06-11 Michael Koch <konqueror@gmx.de>
5135 * javax/swing/JScrollPane.java
5136 (serialVersionUID): New field.
5137 (columnHeader): Made protected.
5138 (rowHeader): Likewise.
5139 (lowerLeft): Likewise.
5140 (lowerRight): Likewise.
5141 (upperLeft): Likewise.
5142 (upperRight): Likewise.
5143 (horizontalScrollBar): Likewise.
5144 (horizontalScrollBarPolicy): Likewise.
5145 (verticalScrollBar): Likewise.
5146 (verticalScrollBarPolicy): Likewise.
5147 (viewport): Likewise.
5149 2004-06-11 Michael Koch <konqueror@gmx.de>
5151 * javax/swing/LookAndFeel.java: Fixed javadocs.
5153 2004-06-11 Michael Koch <konqueror@gmx.de>
5155 * javax/swing/JEditorPane.java: Fixed javadocs.
5156 (JEditorPane): Removed redundant call to to this().
5157 (fireHyperlinkUpdate): Implemented.
5159 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5161 * javax/swing/JMenu.java: Fixed file name
5162 in the file comment.
5164 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5166 * javax/swing/JMenu.java: Added javadoc.
5167 (JMenu): Added MenuChangeListener to listen to
5168 ChangeEvents occuring in menu's model.
5169 (insert): Throw IllegalArgumentException if
5170 index is less than 0
5171 (setSelected): Reimplement.
5172 (setPopupMenuVisible): Call menu's model isEnabled()
5173 (setDelay): Throw IllegalArgumentException if
5174 given amount of delay is less than 0.
5175 (createActionComponent): Implemented.
5176 (createActionChangeListener): Implemented.
5177 (addSeparator): Implemented.
5178 (getItem): Throw IllegalArgumentException if index is
5180 (getItemCount): Implemented.
5181 (fireMenuSelected): Changed to use menuEvent.
5182 (fireMenuDeselected): Likewise.
5183 (fireMenuCanceled): Likewise.
5184 (setAccelerator): Changed to throw an error if this
5186 (doClick): Implemented.
5187 (JMenu.ActionChangedListener): New inner class to handle
5188 PropertyChangeEvents occuring in the actions associated with menu.
5189 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
5190 (BasicMenuUI): Added PropertyChangeListener to the menu.
5191 (createChangeListener): Implemented.
5192 (createMenuDragMouseListener): Likewise.
5193 (createMenuKeyListener): Likewise.
5194 (createPropertyChangeListener): Likewise.
5195 (uninstallListeners): Likewise.
5196 (BasicMenuUI.MouseInputHandler): Reimplemented.
5197 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
5198 (BasicMenuUI.ChangeHandler): Likewise.
5199 (BasicMenuUI.MenuDragMouseHandler): Likewise.
5200 (BasicMenuUI.MenuKeyHandler): Likewise.
5202 2004-06-10 David Jee <djee@redhat.com>
5204 * java/awt/MediaTracker.java
5205 (imageUpdate): Only do notifyAll() if the image is complete.
5207 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5209 * javax/swing/JApplet.java:
5210 (getJMenuBar): Made public.
5211 (setJMenuBar): Likewise.
5212 * javax/swing/JFrame.java:
5213 (getJMenuBar): Made public.
5214 (setJMenuBar): Likewise.
5215 * javax/swing/JWindow.java:
5216 (getJMenuBar): Removed.
5217 (setJMenuBar): Removed.
5219 2004-06-10 Michael Koch <konqueror@gmx.de>
5221 * javax/swing/JEditorPane.java
5222 (createEditorKitForContentType): Fixed visibility.
5223 (fireHyperlinkUpdate): Likewise.
5224 (getContentType): Likewise.
5225 (getEditorKit): Likewise.
5226 (getEditorKitForContentType): Likewise.
5227 (getPage): Likewise.
5229 (registerEditorKitForContentTyoe): Likewise.
5230 (replaceSelection): Likewise.
5231 (setContentType): Likewise.
5232 (setEditorKit): Likewise.
5233 (setPage): Likewise.
5235 2004-06-10 Michael Koch <konqueror@gmx.de>
5237 * javax/swing/Timer.java
5238 (Timer): New constructor.
5239 * javax/swing/plaf/basic/BasicProgressBarUI.java
5240 (animationTimer): Don't initialize at construction.
5241 (startAnimationTimer): Added since tag.
5242 (stopAnimationTimer): Likewise.
5243 (installUI): Use new Timer constructor.
5244 * javax/swing/plaf/basic/BasicScrollBarUI.java
5245 (installUI): Likewise.
5246 * javax/swing/plaf/basic/BasicSliderUI.java
5247 (installUI): Likewise.
5249 2004-06-10 Michael Koch <konqueror@gmx.de>
5251 * javax/swing/ButtonGroup.java
5252 (serialVersionUID): Made private.
5253 (buttons): Renamed from v, added javadoc.
5254 (sel): Added javadoc.
5255 (ButtonGroup): Likewise.
5258 (getElements): Likewise.
5259 (getSelection): Likewise.
5260 (setSelected): Likewise.
5261 (isSelected): Likewise.
5262 (getButtonCount): Likewise.
5264 2004-06-10 Michael Koch <konqueror@gmx.de>
5266 * javax/swing/ButtonGroup.java,
5267 javax/swing/ImageIcon.java,
5268 javax/swing/JEditorPane.java,
5269 javax/swing/JRootPane.java,
5270 javax/swing/JTextField.java,
5271 javax/swing/LookAndFeel.java,
5272 javax/swing/plaf/basic/BasicTextUI.java:
5275 2004-06-10 Michael Koch <konqueror@gmx.de>
5277 * javax/swing/text/Style.java: Added javadocs.
5279 2004-06-10 Michael Koch <konqueror@gmx.de>
5281 * javax/swing/JComponent.java
5282 (fireVetoableChange): Removed redundant cast.
5283 * javax/swing/JLabel.java
5284 (getDisabledIcon): Save icon for next call.
5286 2004-06-10 Michael Koch <konqueror@gmx.de>
5288 * javax/swing/KeyStroke.java
5289 (getKeyStroke(char,boolean)): Marked deprecated.
5291 2004-06-10 Michael Koch <konqueror@gmx.de>
5293 * javax/swing/DefaultCellEditor.java,
5294 javax/swing/GrayFilter.java,
5295 javax/swing/event/DocumentEvent.java,
5296 javax/swing/text/JTextComponent.java,
5297 javax/swing/text/MutableAttributeSet.java:
5300 2004-06-10 Michael Koch <konqueror@gmx.de>
5302 * javax/swing/plaf/BorderUIResource.java:
5303 Added serialVersionUID all over.
5305 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
5307 * javax/swing/undo/UndoManager.java: Re-written from scratch.
5309 2004-06-10 Michael Koch <konqueror@gmx.de>
5311 * javax/swing/table/DefaultTableCellRenderer.java
5312 (noFocusBorder): Initialize directly.
5314 2004-06-10 Michael Koch <konqueror@gmx.de>
5316 * javax/swing/plaf/basic/BasicArrowButton.java
5317 (setDirection): Use method argument.
5319 2004-06-10 Michael Koch <konqueror@gmx.de>
5321 * javax/swing/plaf/BorderUIResource.java,
5322 javax/swing/plaf/ComponentUI.java,
5323 javax/swing/undo/CompoundEdit.java,
5324 javax/swing/undo/StateEdit.java:
5325 Fixed javadocs all over.
5327 2004-06-10 Michael Koch <konqueror@gmx.de>
5329 * javax/swing/DefaultButtonModel.java
5330 (ARMED): Made public final, fixed value.
5331 (ENABLED): Likewise.
5332 (PRESSED): Likewise.
5333 (ROLLOVER): Likewise.
5334 (SELECTED): Likewise.
5335 (stateMask): Initialize directly.
5336 (listenerList): Likewise.
5337 (mnemonic): Likewise.
5338 (fireStateChanged): Removed argument, use changeEvent as event.
5339 All places where this method is called are fixed too.
5340 (getActionCommant): Fixed javadoc.
5341 (setGroup): Fixed javadoc.
5342 (getGroup): New method.
5344 2004-06-09 Olga Rodimina <rodimina@redhat.com>
5346 * javax/swing/AbstractButton.java
5347 (AbstractButton): Use init() to initialize the button.
5348 (init): New Method. Initializes AbstractButton.
5349 * javax/swing/JMenuItem.java: Documented.
5350 (JMenuItem): Reimplemented.
5351 (init): Implemented.
5352 (setEnabled): Changed to call super.setEnabled()
5353 (processMouseEvent): Reimplemented.
5354 (fireMenuKeyPressed): Implemented.
5355 (fireMenuKeyReleased): Implemented.
5356 (fireMenuKeyTyped): Implemented.
5357 (menuSelectionChanged): disarm the model if the menu item was
5359 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
5360 (getPath): Change to use ArrayList instead of Vector.
5361 (getPreferredSize): Renamed variable.
5362 (paintMenuItem): Paint margin area of menu item.
5363 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
5364 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
5365 menu item's bounds before clearing the selection.
5367 2004-06-09 David Jee <djee@redhat.com>
5369 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
5370 (GtkTextComponentPeer): Set caret position to 0.
5371 * java/awt/TextComponent.java
5372 (setText): Set caret position to 0.
5373 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5374 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
5375 Handle GtkScrolledWindow separately. Fix signal handler blocking.
5376 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
5378 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5379 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
5382 2004-06-09 Kim Ho <kho@redhat.com>
5384 * Makefile.am: New files
5385 * Makefile.in: Regenerated
5386 * java/awt/Container.java
5387 (getComponentAt): Removed.
5388 * javax/swing/AbstractAction.java
5389 (ENABLED_PROPERTY): New property.
5390 (putValue): Fire PropertyChangeEvents.
5391 (setEnabled): ditto.
5392 (firePropertyChange): Javadoc and implement
5394 * javax/swing/AbstractButton.java
5395 (setAction): Don't create PropertyChangeListener
5396 if new Action is null.
5397 (setIcon): Don't set icon till after comparing
5399 (configurePropertiesFromAction): Check mnemonic
5400 key before calling intValue().
5401 (createActionPropertyChangeListener): Check
5402 properties rather than bulk change.
5403 * javax/swing/DefaultDesktopManager.java:
5405 * javax/swing/DesktopManager.java:
5407 * javax/swing/JComponent.java
5408 (fireVetoableChange): Implement.
5409 (paintImmediately): Use root component.
5410 * javax/swing/JDesktopPane.java: Implement
5411 * javax/swing/JInternalFrame.java: Implement
5412 * javax/swing/JLabel.java
5413 (getDisabledIcon): Return grayscaled icon if
5414 no disabled icon specified.
5415 * javax/swing/JMenuBar.java
5416 (getComponentAtIndex): Use getComponent
5417 * javax/swing/JOptionPane.java
5418 (getDesktopPaneForComponent): Use SwingUtilities'
5420 (getFrameForComponent): ditto.
5421 * javax/swing/JSplitPane.java
5422 (remove): Use getComponent.
5423 * javax/swing/SwingUtilities.java
5424 (convertPoint): Implement.
5425 * javax/swing/plaf/basic/BasicButtonUI.java
5426 (paintButtonNormal): Check opaqueness before
5428 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
5430 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
5432 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
5434 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
5436 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5437 Change InternalFrame and Desktop colors.
5439 2004-06-09 David Jee <djee@redhat.com>
5441 * java/awt/Container.java
5442 (remove): Do not set component to invisible.
5444 2004-06-09 Michael Koch <konqueror@gmx.de>
5446 * javax/swing/tree/DefaultMutableTreeNode.java
5447 (getLeafCount): Renamed enum to e.
5449 2004-06-09 Michael Koch <konqueror@gmx.de>
5451 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5452 (positionForMouseEvent): Removed redundant semicolon.
5453 (continueDrag): Use method arguments.
5455 2004-06-09 Michael Koch <konqueror@gmx.de>
5457 * javax/swing/border/TitledBorder.java,
5458 javax/swing/filechooser/FileSystemView.java,
5459 javax/swing/plaf/basic/BasicButtonListener.java,
5460 javax/swing/plaf/basic/BasicGraphicsUtils.java,
5461 javax/swing/plaf/basic/BasicLabelUI.java,
5462 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
5463 javax/swing/plaf/basic/BasicScrollBarUI.java,
5464 javax/swing/plaf/basic/BasicScrollPaneUI.java,
5465 javax/swing/plaf/basic/BasicSliderUI.java,
5466 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
5467 javax/swing/plaf/basic/BasicToggleButtonUI.java,
5468 javax/swing/table/JTableHeader.java,
5469 javax/swing/text/AbstractDocument.java,
5470 javax/swing/text/DefaultCaret.java,
5471 javax/swing/text/StyledEditorKit.java,
5472 javax/swing/tree/DefaultTreeCellEditor.java:
5473 Reworked import statements.
5475 2004-06-08 Graydon Hoare <graydon@redhat.com>
5477 * javax/swing/Box.java: Temporarily comment out code
5478 broken due to visibility bug.
5480 2004-06-09 Michael Koch <konqueror@gmx.de>
5482 * javax/swing/ImageIcon.java
5483 (ImageIcon): Added missing constructor.
5485 2004-06-08 Michael Koch <konqueror@gmx.de>
5487 * javax/swing/JToggleButton.java
5488 (JToggleButton): New constructor.
5489 (getAccessibleContext): Moved documentation into javadoc.
5490 (getUIClassID): Likewise.
5492 2004-06-08 Michael Koch <konqueror@gmx.de>
5494 * javax/swing/AbstractButton.java
5495 (getDisabledIcon): Create disabled icon if none exists yet.
5497 2004-06-08 Michael Koch <konqueror@gmx.de>
5499 * javax/swing/plaf/basic/BasicLookAndFeel.java
5500 (initClassDefaults): Added FormattedTextFieldUI.
5501 (loadResourceBundle): Renamed enum to e.
5503 2004-06-08 Michael Koch <konqueror@gmx.de>
5505 * javax/swing/plaf/basic/BasicButtonUI.java
5506 (paintIcon): Simplified.
5507 (paintText): Paint disabled button correctly.
5509 2004-06-08 Michael Koch <konqueror@gmx.de>
5511 * javax/swing/JComponent.java
5512 (createToolTip): Use official JToolTip API.
5514 2004-06-08 Michael Koch <konqueror@gmx.de>
5516 * javax/swing/JToolTip.java
5517 (JToolTip): No arguments in API.
5518 (setTipText): New method.
5520 2004-06-08 Michael Koch <konqueror@gmx.de>
5522 * javax/swing/SwingUtilities.java
5523 (isLeftMouseButton): New method.
5524 (isMiddleMouseButton): New method.
5525 (isRightMouseButton): New method.
5527 2004-06-08 Michael Koch <konqueror@gmx.de>
5529 * javax/swing/AbstractButton.java,
5530 javax/swing/CellRendererPane.java,
5531 javax/swing/JCheckBoxMenuItem.java,
5532 javax/swing/JColorChooser.java,
5533 javax/swing/JComboBox.java,
5534 javax/swing/JComponent.java,
5535 javax/swing/JDesktopPane.java,
5536 javax/swing/JFileChooser.java,
5537 javax/swing/JMenu.java,
5538 javax/swing/JMenuItem.java,
5539 javax/swing/JOptionPane.java,
5540 javax/swing/JPasswordField.java,
5541 javax/swing/JPopupMenu.java,
5542 javax/swing/JProgressBar.java,
5543 javax/swing/JRadioButtonMenuItem.java,
5544 javax/swing/JScrollBar.java,
5545 javax/swing/JSeparator.java,
5546 javax/swing/JSlider.java,
5547 javax/swing/JSplitPane.java,
5548 javax/swing/JTabbedPane.java,
5549 javax/swing/JTextField.java,
5550 javax/swing/JToolBar.java,
5551 javax/swing/text/JTextComponent.java:
5552 Fixed all constructors of accessibility classes.
5554 2004-06-08 Michael Koch <konqueror@gmx.de>
5556 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
5559 2004-06-08 Michael Koch <konqueror@gmx.de>
5561 * javax/swing/Box.java
5562 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
5563 (AccessibleBoxFiller.serialVersionUID): New member variable.
5564 * javax/swing/DefaultButtonModel.java
5565 (stateMask): Made protected.
5566 (listenerList): Likewise.
5567 (changeEvent): Likewise.
5569 (mnemonic): Likewise.
5570 (actionCommand): Likewise.
5571 (getListeners): New method.
5572 (getActionListeners): New method.
5573 (getItemListeners): New method.
5574 (getChangeListeners): New method.
5575 (fireItemStateChanged): Simplified.
5576 (fireActionPerformed): Simplified.
5577 (fireStateChanged): Simplified.
5578 * javax/swing/JFrame.java
5579 (JFrame): Implements WindowContants.
5580 (HIDE_ON_CLOSE): Removed.
5581 (EXIT_ON_CLOSE): Removed.
5582 (DISPOSE_ON_CLOSE): Removed.
5583 (DO_NOTHING_ON_CLOSE): Removed.
5584 (processWindowEvent): Exit with code 0.
5585 (setDefaultCloseOperation): Do security check before setting value.
5586 * javax/swing/JOptionPane.java
5587 (message): Initialize only in constructor.
5588 * javax/swing/JToolTip.java: Removed unused imports.
5589 * javax/swing/JViewport.java
5590 (serialVersionUID): New member variable.
5591 (SIMPLE_SCROLL_MODE): Made final, fixed value.
5592 (BLIT_SCROLL_MODE): Likewise.
5593 (BACKINGSTORE_SCROLL_MODE): Likewise.
5594 (scrollUnderway): Made protected.
5595 (isViewSizeSet): Likewise.
5596 * javax/swing/ListModel.java: Fixed javadoc.
5597 * javax/swing/Popup.java: Likewise.
5598 * javax/swing/RepaintManager.java
5599 (paintDirtyRegions): Don't use internal classes of
5600 java.util.AbstractMap.
5601 * javax/swing/ScrollPaneConstants.java: Reindented.
5602 * javax/swing/ScrollPaneLayout.java
5603 (viewport): Made protected.
5604 (verticalScrollBar): Made protected, renamed to vsb.
5605 (horizontalScrollBar): Made protected, renamed to hsb.
5606 (rowHeader): Made protected, renamed to rowHead.
5607 (columnHeader): Made protected, renamed to colHead.
5608 (lowerLeft): Made protected.
5609 (lowerRight): Made protected.
5610 (upperLeft): Made protected.
5611 (upperRight): Made protected.
5612 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
5613 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
5615 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
5617 * java/awt/MediaTracker.java (imageUpdate): Only set status to
5618 LOADING if flags has SOMEBITS set.
5620 2004-06-07 Michael Koch <konqueror@gmx.de>
5622 * javax/swing/AbstractButton.java: Reorganized imports.
5623 * javax/swing/ActionMap.java: Likewise.
5624 * javax/swing/DefaultButtonModel.java: Likewise.
5625 * javax/swing/DefaultListModel.java: Likewise.
5626 * javax/swing/ImageIcon.java: Likewise.
5627 (serialVersionUID): New member variable.
5628 * javax/swing/JComboBox.java: Reorganized imports.
5629 * javax/swing/JComponent.java: Likewise.
5630 (ui): Made protected.
5631 (listenerList): Made protected.
5632 (TOOL_TIP_TEXT_KEY): New constant.
5633 (scrollRectToVisible): Removed redundant null check.
5634 * javax/swing/JFrame.java: Reorganized imports.
5635 * javax/swing/JInternalFrame.java: Reorganized imports.
5636 * javax/swing/JProgressBar.java: Likewise.
5637 * javax/swing/JRootPane.java: Likewise.
5638 * javax/swing/JScrollBar.java: Likewise.
5639 * javax/swing/JSeparator.java: Likewise.
5640 * javax/swing/JSlider.java: Likewise.
5641 * javax/swing/JTabbedPane.java: Likewise.
5642 * javax/swing/JTextField.java: Likewise.
5643 * javax/swing/JToolBar.java: Likewise.
5644 * javax/swing/JTree.java: Likewise.
5645 * javax/swing/JViewport.java: Likewise.
5646 * javax/swing/JWindow.java: Likewise.
5647 * javax/swing/KeyStroke.java: Likewise.
5648 * javax/swing/LookAndFeel.java: Likewise.
5649 * javax/swing/MenuSelectionManager.java: Likewise.
5650 * javax/swing/SwingUtilities.java: Likewise.
5651 * javax/swing/Timer.java: Likewise.
5652 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
5653 * javax/swing/JList.java
5654 (HORIZONTAL_WRAP): Made final, fixed value.
5655 (VERTICAL): Likewise.
5656 (VERTICAL_WRAP): Likewise.
5658 2004-06-07 Michael Koch <konqueror@gmx.de>
5660 * javax/swing/AbstractButton.java
5661 (serialVersionUID): New member variable.
5662 (AccessibleAbstractButton.serialVersionUID): Likewise.
5663 (AbstractButton): Made public.
5664 * javax/swing/Box.java
5665 (AccessibleBox.serialVersionUID): New member variable.
5666 (Filler.serialVersionUID): Likewise.
5667 * javax/swing/DefaultListSelectionModel.java
5668 (serialVersionUID): Likewise.
5669 * javax/swing/JApplet.java
5670 (serialVersionUID): Likewise.
5671 * javax/swing/JCheckBox.java
5672 (serialVersionUID): Likewise.
5673 * javax/swing/JCheckBoxMenuItem.java
5674 (serialVersionUID): Likewise.
5675 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
5676 * javax/swing/JColorChooser.java
5677 (serialVersionUID): Likewise.
5678 (AccessibleJColorChooser.serialVersionUID): Likewise.
5679 * javax/swing/JComponent.java
5680 (serialVersionUID): Made private.
5681 (AccessibleJComponent.serialVersionUID): New member variable.
5682 * javax/swing/JDesktopPane.java
5683 (serialVersionUID): Likewise.
5684 * javax/swing/JDialog.java
5685 (serialVersionUID): Likewise.
5686 * javax/swing/JFormattedTextField.java
5687 (serialVersionUID): Fixed value.
5688 * javax/swing/JFrame.java
5689 (serialVersionUID): New member variable.
5690 (getDefaultCloseOpertation): Made public.
5691 * javax/swing/JLayeredPane.java
5692 (serialVersionUID): Likewise.
5693 (LAYER_PROPERTY): Made final, fixed value.
5694 (JLayeredPane): Made public.
5695 * javax/swing/JMenu.java
5696 (AccessibleJMenu.serialVersionUID): New member variable.
5697 (WinListener.serialVersionUID): Likewise.
5698 * javax/swing/JMenuBar.java
5699 (serialVersionUID): Likewise.
5700 (getComponentAtIndex): Added @deprecated tag.
5701 * javax/swing/JMenuItem.java
5702 (serialVersionUID): New member variable.
5703 (AccessibleJMenuItem.serialVersionUID): Likewise.
5704 * javax/swing/JOptionPane.java
5705 (serialVersionUID): Likewise.
5706 (AccessibleJOptionPane.serialVersionUID): Likewise.
5707 * javax/swing/JPopupMenu.java
5708 (serialVersionUID): Likewise.
5709 (AccessibleJPopupMenu.serialVersionUID): Likewise.
5710 (getPopupMenuListeners): New method.
5711 (getComponentAtIndex): Added @deprecated tag.
5712 * javax/swing/JProgressBar.java
5713 (serialVersionUID): New member variable.
5714 (AccessibleJProgressBar.serialVersionUID): Likewise.
5715 * javax/swing/JRadioButton.java
5716 (serialVersionUID): Likewise.
5717 * javax/swing/JRadioButtonMenuItem.java
5718 (serialVersionUID): Likewise.
5719 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
5720 * javax/swing/JScrollBar.java
5721 (serialVersionUID): Likewise.
5722 (AccessibleJScrollBar.serialVersionUID): Likewise.
5723 * javax/swing/JSeparator.java
5724 (serialVersionUID): Likewise.
5725 (AccessibleJSeparator.serialVersionUID): Likewise.
5726 * javax/swing/JSlider.java: Fixed javadocs.
5727 (AccessibleJSlider.serialVersionUID): New member variable.
5728 * javax/swing/JSplitPane.java: Added copyright statement.
5729 (serialVersionUID): New member variable.
5730 (AccessibleJSplitPane.serialVersionUID): Likewise.
5731 * javax/swing/JTabbedPane.java
5732 (serialVersionUID): Likewise.
5733 (AccessibleJTabbedPane.serialVersionUID): Likewise.
5734 (ModelListener.serialVersionUID): Likewise.
5735 (ModelListener.ModelListener): New constructor.
5736 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
5737 (WRAP_TAB_LAYOUT): Likewise.
5738 * javax/swing/JTable.java
5739 (serialVersionUID): New member variable.
5740 * javax/swing/JToggleButton.java
5741 (serialVersionUID): Likewise.
5742 (ToggleButtonModel): Made static.
5743 (ToggleButtonModel.serialVersionUID): New member variable.
5744 * javax/swing/JToolTip.java
5745 (serialVersionUID): Likewise.
5746 * javax/swing/JTree.java
5747 (serialVersionUID): Likewise.
5748 * javax/swing/JWindow.java
5749 (serialVersionUID): Likewise.
5750 * javax/swing/Timer.java
5751 (serialVersionUID): Likewise.
5753 2004-06-06 Michael Koch <konqueror@gmx.de>
5755 * javax/swing/SwingConstants.java
5756 (NEXT): New constant.
5757 (PREVIOUS): Likewise.
5758 * javax/swing/UIManager.java
5759 (LookAndFeel): Made public.
5760 (LookAndFeel.getClassName): Likewise.
5761 (LookAndFeel.getName): Likewise.
5763 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5765 * javax/swing/JCheckBoxMenuItem.java:
5767 * javax/swing/JMenu.java: Likewise.
5768 * javax/swing/JMenuBar.java: Likewise.
5769 * javax/swing/JMenuItem.java: Likewise.
5770 * javax/swing/JPopupMenu.java: Likewise.
5771 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5772 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5773 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5774 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5775 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5776 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5777 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5779 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5781 * javax/swing/plaf/basic/BasicMenuUI.java:
5782 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5783 Call getPath() from super class instead.
5785 2004-05-31 David Jee <djee@redhat.com>
5787 * java/awt/Container.java
5788 (remove): Set component visibility to false after removing it.
5790 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
5792 * java/awt/Component.java (getForeground): Return SystemColor if
5794 (getBackground): Likewise.
5796 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5797 (item_highlighted): New function.
5798 (connectSignals): Set item_highlighted as list's select
5801 * java/applet/Applet.java: Revert changes from 2004-04-29,
5802 2004-03-15 and 2004-03-14.
5804 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5805 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
5808 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
5809 "Dialog" as the default font.
5810 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
5812 * java/awt/Component.java (getFont): Return "Dialog" font by
5814 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
5815 Multiply size argument to pango_font_description_set_size by the
5816 DPI conversion factor rather than by PANGO_SCALE.
5817 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
5818 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
5819 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
5820 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
5821 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
5822 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
5823 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
5824 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
5825 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
5826 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5827 Divide baseline y coordinate by DPI conversion factor rather
5828 than by PANGO_SCALE.
5829 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
5830 (area_prepared): Fix typo.
5831 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
5832 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
5833 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
5834 (dpi_conversion_factor): New global variable.
5835 (init_dpi_conversion_factor): New function to calculate and
5836 track DPI conversion factor.
5837 (dpi_changed_cb): New callback.
5838 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
5840 2004-05-27 David Jee <djee@redhat.com>
5842 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5843 (getGraphics): Return a new GdkGraphics instance.
5844 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5845 (getGraphics): Call super.getGraphics().
5847 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5849 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5850 (setNativeBounds): Clamp width and height values to >= 0.
5852 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5853 (find_fg_color_widget): Handle GtkOptionMenu specially.
5855 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5856 (pre_event_handler): Only post configure events to visible
5859 2004-05-26 David Jee <djee@redhat.com>
5861 * java/awt/BorderLayout.java
5862 (layoutContainer): Fix size calculations.
5864 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5866 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5867 (window_wm_protocols_filter): Remove function.
5868 (create): Remove filter that removes WM_TAKE_FOCUS client
5871 2004-06-17 Anthony Green <green@redhat.com>
5873 * java/util/zip/ZipFile.java (getInputStream): Return null if
5876 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
5877 directory contents to the class path.
5879 2004-06-15 Andrew Haley <aph@redhat.com>
5881 * java/lang/natSystem.cc (getenv0): Don't assume environment
5882 variable is Latin 1 coded.
5884 2004-06-14 Andreas Jaeger <aj@suse.de>
5886 * configure.in: Support --enable-version-specific-runtime-libs.
5887 * configure: Regenerated.
5889 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
5891 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
5892 to pass ClassLoader argument.
5893 * java/util/GregorianCalendar.java: Likewise.
5894 * java/util/Currency.java: Likewise.
5895 * java/text/BreakIterator.java: Likewise.
5896 * java/text/Collator.java: Likewise.
5897 * java/text/DateFormat.java: Likewise.
5898 * java/text/DateFormatSymbols.java: Likewise.
5899 * java/text/DecimalFormatSymbols.java: Likewise.
5900 * java/text/NumberFormat.java: Likewise.
5901 * java/awt/Window.java: Likewise.
5903 2004-06-14 Andrew Haley <aph@redhat.com>
5905 * java/lang/System.java: (getenv0): New method.
5906 (getenv): Add security check. Do the right thing.
5907 * java/lang/natSystem.cc (getenv0): New method.
5909 2004-06-12 Mark Wielaard <mark@klomp.org>
5911 * javax/swing/RepaintManager.java
5912 (paintDirtyRegions): Use entrySet(), not values().
5914 2004-06-10 Mark Wielaard <mark@klomp.org>
5916 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
5919 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
5921 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
5922 when we already know the answer.
5923 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
5924 (setStartRule,setEndRule): Don't take abs of day number.
5925 (getOffset): Clarify docs. Add argument checks.
5926 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
5927 (equals,hasSameRules,toString,readObject): Use startTimeMode and
5930 2004-06-10 Tom Tromey <tromey@redhat.com>
5932 * interpret.cc (run): Handle wide fload.
5934 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
5936 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
5938 2004-06-05 Michael Koch <konqueror@gmx.de>
5940 * javax/swing/SwingConstants.java
5941 (NEXT): New constant.
5942 (PREVIOUS): Likewise.
5944 2004-06-05 Michael Koch <konqueror@gmx.de>
5946 * javax/swing/UIManager.java
5947 (LookAndFeel): Made public.
5948 (LookAndFeel.getName): Likewise.
5949 (LookAndFeel.getClassName): Likewise.
5951 2004-06-03 Michael Koch <konqueror@gmx.de>
5953 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5954 (requestFocus): Revert last changes.
5955 (gtkRequestFocus): Removed.
5956 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5957 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5959 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
5960 Reverted last patch.
5961 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5962 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
5963 Reverted comment change.
5965 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5967 * javax/swing/JCheckBoxMenuItem.java:
5969 * javax/swing/JMenu.java: Likewise.
5970 * javax/swing/JMenuBar.java: Likewise.
5971 * javax/swing/JMenuItem.java: Likewise.
5972 * javax/swing/JPopupMenu.java: Likewise.
5973 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5974 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5975 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5976 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5977 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5978 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5979 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5981 2004-06-01 Tom Tromey <tromey@redhat.com>
5983 * java/io/ObjectStreamField.java: Cleaned up imports.
5985 2004-06-01 Michael Koch <konqueror@gmx.de>
5987 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
5989 2004-06-01 Mark Wielaard <mark@klomp.org>
5991 * java/io/Writer.java (Writer(Object)): Fixed API doc.
5993 2004-06-01 Michael Koch <konqueror@gmx.de>
5995 * java/security/Security.java
5996 (insertProviderAt): Use equals() instead of ==.
5997 (removeProvicer): Likewise.
5998 (getProvider): Likewise.
5999 * java/security/Signature.java
6000 (sign): Don't set state to UNINITIALIZED.
6003 2004-06-01 Mark Wielaard <mark@klomp.org>
6005 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
6006 Implement by calling gtkRequestFocus.
6007 (gtkRequestFocus): New native method.
6008 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6009 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
6011 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
6013 (filter_expose_event_handler):
6015 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
6016 (menu_pos): Mark static.
6018 2004-06-01 Michael Koch <konqueror@gmx.de>
6020 * java/text/CollationElementIterator.java,
6021 java/text/CollationKey.java,
6022 java/text/RuleBasedCollator.java: New versions from GNU classpath.
6023 * testsuite/libjava.mauve/xfails: Removed all
6024 java.text.CollationElementIterator tests.
6026 2004-06-01 Michael Koch <konqueror@gmx.de>
6028 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
6030 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
6031 Java 1.5 keyword usage.
6033 2004-05-31 Olga Rodimina <rodimina@redhat.com>
6035 * javax/swing/plaf/basic/BasicMenuUI.java:
6036 (MouseEntered): Do not call getPath() from MenuSelectionManager.
6037 Call getPath() from super class instead.
6039 2004-05-31 Michael Koch <konqueror@gmx.de>
6041 * java/io/SequenceInputStream.java:
6042 Rename enum to e because enum is a keyword in Java 1.5.
6044 2004-05-31 Michael Koch <konqueror@gmx.de>
6046 * gnu/java/rmi/rmic/CompilerProcess.java:
6047 Fixed javadoc to by XHTML compliant.
6049 2004-05-30 Mark Wielaard <mark@klomp.org>
6051 * java/awt/Toolkit.java (loadSystemColors): Implement.
6053 2004-05-30 Michael Koch <konqueror@gmx.de>
6055 * java/lang/System.java: Reordered imports.
6057 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
6059 * java/text/DecimalFormat.java
6060 (parse): Fixed parsing of decimal strings. Number of maximum
6061 digits to be read should now work.
6062 * java/text/SimpleDateFormat.java
6063 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
6064 formatter. This fixes DateFormatTest.
6066 2004-05-30 Michael Koch <konqueror@gmx.de>
6068 * java/nio/Buffer.java
6069 (limit): Fixed off by one error.
6070 * java/nio/CharBuffer.java
6071 (wrap): Fixed arguments, added javadocs.
6073 2004-05-30 Michael Koch <konqueror@gmx.de>
6075 * gnu/java/beans/BeanInfoEmbryo.java,
6076 java/awt/im/InputContext.java,
6077 javax/swing/tree/DefaultMutableTreeNode.java:
6078 Rename enum to e because enum is a keyword in Java 1.5.
6080 2004-05-30 Michael Koch <konqueror@gmx.de>
6082 * gnu/java/math/MPN.java,
6083 java/awt/geom/Arc2D.java:
6084 Fixed javadocs all over.
6086 2004-05-30 Michael Koch <konqueror@gmx.de>
6088 * java/awt/DefaultKeyboardFocusManager.java
6089 (dispatchEvent): Call method to get key event dispatchers.
6090 (dispatchKeyEvent): Call method to get key event post processors.
6091 * javax/swing/JComponent.java
6092 (listenerList): Made protected.
6093 * javax/swing/JOptionPane.java
6094 (message): Don't initialize.
6095 (JOptionPane): Set message text.
6096 * javax/swing/JPopupMenu.java
6097 (show): Fixed typo in argument name.
6098 * javax/swing/RepaintManager.java
6099 (paintDirtyRegions): Use public API of java.util.Map.
6100 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
6101 (positionForMouseEvent): Removed redundant ';'.
6102 (continueDrag): Use method arguments.
6104 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
6106 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
6109 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
6111 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
6113 * gnu/gcj/RawDataManaged.java: New file.
6114 * java/lang/Thread.java (data): Declare as RawDataManaged.
6115 * java/lang/natThread.cc (init_native): Cast natThread data to
6116 RawDataManaged, not jobject.
6117 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
6118 * Makefile.in: Rebuilt.
6120 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
6122 * java/util/SimpleTimeZone.java: Reverting my last change until I
6123 can fix it properly.
6125 2004-05-27 Michael Koch <konqueror@gmx.de>
6127 * javax/swing/JPopupMenu.java
6128 (isVisible): Do not use visible directly.
6129 (setVisible): Likewise.
6130 * javax/swing/JWindow.java
6131 (JWindow): call accessible constructor.
6132 * javax/swing/RepaintManager.java
6133 (paintDirtyRegions): Use public methods to obtain iterator.
6135 2004-05-25 David Jee <djee@redhat.com>
6137 * java/awt/Container.java
6138 (remove): Set component's parent to null only after we removed the
6139 component from its parent's layout manager.
6141 2004-05-25 David Jee <djee@redhat.com>
6143 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6144 (GtkComponentPeer): Set bounds regardless of whether awtComponent
6146 * gnu/java/awt/peer/gtk/GtkListPeer.java
6147 (getSize): Change native method declaration.
6148 (minimumSize): Pass visible row count into getSize().
6149 (preferredSize): Likewise.
6150 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
6151 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
6152 natural size. Use visible row count to determine the final height
6155 2004-05-21 Graydon Hoare <graydon@redhat.com>
6157 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6158 (setClip): Minor correction to order of operations.
6160 * javax/swing/JScrollPane.java: Extend sketchy implementation.
6161 * javax/swing/ScrollPaneLayout.java: Likewise.
6162 * javax/swing/JViewPort.java: Likewise.
6163 * javax/swing/ViewportLayout.java: Likewise.
6165 * javax/swing/JComponent.java: Rewrite.
6166 * javax/swing/RepaintManager.java: Likewise.
6168 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
6169 * javax/swing/JList.java
6170 (setSelectedIndices):
6171 (getSelectedIndices):
6172 (getSelectedValues): New functions.
6173 (getPreferredScrollableViewportSize): Return preferred size.
6174 (getScrollableUnitIncrement):
6175 (getScrollableBlockIncrement): Initial implementations.
6176 * javax/swing/JRootPane.java: Clean up slightly.
6181 (isValidateRoot): Add overrides from JComponent.
6182 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
6183 * javax/swing/UIManager.java (getDimension): Return the dimension.
6185 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
6186 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
6187 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
6188 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
6189 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
6190 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
6191 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
6192 * javax/swing/plaf/basic/BasicRootPaneUI.java:
6193 Likewise, and set background.
6194 * javax/swing/plaf/basic/BasicListUI.java:
6195 Likewise, and improve a bit.
6196 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6197 Likewise, and adjust calculations.
6198 * javax/swing/plaf/basic/BasicViewportUI.java:
6199 Likewise, and improve a bit.
6200 * javax/swing/plaf/basic/BasicLookAndFeel.java
6201 (Button.margin): Shrink.
6203 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
6204 Hack to set horizontal always, workaround pango.
6206 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
6207 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6208 Synchronize more often, check cairo status after ops,
6209 handle changes to cairo pattern API, check for disposal.
6211 2004-05-21 Olga Rodimina <rodimina@redhat.com>
6213 * javax/swing/plaf/basic/BasicMenuItemUI.java:
6214 (BasicMenuItemUI): Create propertyChangeListener.
6215 (getPath):Implemented.
6216 (installListeners): Add propertyChangeListener to menuItem.
6217 (uninstallListeners): Remove propertyChangeListener from menuItem.
6218 (update): Implemented.
6219 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
6220 (mouseEntered): Take insets of popup menu into account when
6221 calculating position of popup menu.
6223 2004-05-18 Olga Rodimina <rodimina@redhat.com>
6225 * Makefile.am: Added new file.
6226 * Makefile.in: Regenerate.
6227 * javax/swing/JMenuBar.java:
6228 Started implementation.
6229 * javax/swing/JPopupMenu.java:
6230 (setVisible): Fixed location of lightweight/mediumweight
6232 (show): Fixed location of PopupMenu.
6233 * javax/swing/plaf/basic/BasicMenuBarUI.java:
6234 New file. UI Delegate for JMenuBar.
6235 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
6236 (mouseEntered): Corrected position of the submenu.
6238 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
6240 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
6241 to _gtk_accel_group_attach.
6242 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
6245 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
6246 package access. Don't override setFont.
6247 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
6248 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
6249 gtkWidgetRequestFocus package access.
6250 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
6252 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
6253 Give gtkWidgetRequestFocus package access.
6254 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
6255 gtkWidgetRequestFocus package access. Don't override setFont.
6256 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
6258 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6259 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
6261 (gtkSetFont): Likewise.
6262 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
6264 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6265 (gtkSetFont): Whitespace fix.
6267 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6268 (gtkWidgetSetUsize): Remove method.
6270 2004-05-18 David Jee <djee@redhat.com>
6272 * java/awt/image/MemoryImageSource.java
6273 (newPixels(int,int,int,int,boolean)): Set only the specified
6274 rectangle of pixels.
6275 (newPixels(byte[],ColorModel,int,int)): Implement.
6276 (newPixels(int[],ColorModel,int,int)): Implement.
6278 2004-05-18 Olga Rodimina <rodimina@redhat.com>
6280 * Makefile.am: Added new file.
6281 * Makefile.in: Regenerate.
6282 * javax/swing/JMenu.java: Started
6284 * javax/swing/JPopupMenu.java:
6285 (insert): If specified index is -1, then
6286 add component at the end.
6287 (isPopupTrigger): Reimplemented.
6288 (JPopupMenu.LightWeightPopup): setBounds
6289 of the lightWeightPopup before adding it
6291 (javax/swing/plaf/basic/BasicIconFactory.java):
6292 (getMenuArrowIcon): Implemented.
6293 * javax/swing/plaf/basic/BasicMenuItemUI.java:
6294 (getPreferredSize): Add size of the arrow icon
6295 if this menu item is instance of JMenu.
6296 (paintMenuItem): Paint arrow icon if this
6297 menu item is a submenu.
6298 * javax/swing/plaf/basic/BasicMenuUI.java:
6299 New File. UI Delegate for JMenu.
6301 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
6303 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
6304 Post KEY_TYPED events.
6305 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6306 (generates_key_typed_event): Remove function.
6308 2004-05-17 Olga Rodimina <rodimina@redhat.com>
6310 * javax/swing/JRootPane.java
6311 (JRootPane.RootLayout): Reimplemented to
6312 set bounds of contentPane and menuBar.
6313 (setJMenuBar): Add menu bar to the layered pane.
6314 (createLayeredPane): Set layout of layeredPane
6316 * javax/swing/JLayeredPane.java:
6317 (addImpl): Calculate index of the component in the
6318 layeredPane according to the specified position within
6321 2004-05-17 David Jee <djee@redhat.com>
6323 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6324 (setPixels): Change color model to the default model after
6326 * java/awt/image/MemoryImageSource.java
6327 (newPixels): Set only the specified rectangle of pixels.
6329 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
6331 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
6332 -l-java-beans -l-javax-accessibility -l-javax-swing.
6334 * java/awt/AWTEvent.java (toString): Print source's name rather
6335 than the source itself.
6337 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
6339 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
6341 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
6342 (gdk_color_to_java_color): New function.
6343 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
6345 2004-05-12 David Jee <djee@redhat.com>
6347 * java/awt/image/RGBImageFilter.java:
6348 Initialize origmodel as null.
6349 (makeColor): Fix pixel component order.
6350 (filterRGBPixels): Fix pixel iteration.
6351 (setPixels): Add extra checks for index color model. Convert pixels
6352 to default color model if necessary.
6353 (convertColorModelToDefault): New override method for byte pixels.
6354 (convertColorModelToDefault): For int pixels, fix pixel iteration.
6355 (makeColorbyDefaultCM): New override method for byte pixels.
6356 (makeColorbyDefaultCM): For int pixel, add color model as argument.
6357 (makeColor): Fix pixel component order.
6359 2004-05-11 Kim Ho <kho@redhat.com>
6361 * javax/swing/Box.java:
6362 Comment out more parts of Box.Filler.
6364 2004-05-11 Kim Ho <kho@redhat.com>
6366 * javax/swing/Box.java:
6367 Remove reference to AccessibleAWTComponent so
6370 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6372 * gnu/java/awt/peer/gtk/GtkListPeer.java,
6373 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
6374 implementation of list peer to use GtkTreeView instead of
6375 deprecated GtkCList.
6377 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
6379 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6380 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
6381 (handleEvent): Remove keyChar argument to
6382 gtkWidgetDispatchKeyEvent calls.
6383 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
6385 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6386 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
6387 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
6390 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
6392 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6393 (gtkWidgetRequestFocus): Mark protected.
6394 (GtkComponentPeer): Only set the peer's bounds if its component
6396 * java/awt/Component.java (static): Set the default keyboard
6398 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
6399 requestFocusInWindow(temporary)): Don't request focus if the
6400 component is not showing. Get tree lock before traversing
6401 component hierarchy.
6402 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
6403 Only set the global focus owner if it is not a Window.
6404 (processKeyEvent): Consume keystrokes associated with the focus
6405 traversal keystroke.
6406 (focusPreviousComponent, focusNextComponent, upFocusCycle,
6407 downFocusCycle): Call requestFocusInWindow instead of
6409 * java/awt/EventDispatchThread.java (run): Move setting of
6410 default keyboard focus manager to Component.java.
6411 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6412 (awt_keycode_to_keysym): New function.
6413 (gtkWidgetDispatchKeyEvent): Finish implementation.
6414 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6415 (pre_event_handler): Add FIXME comment.
6417 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
6418 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6419 (gtkWidgetRequestFocus): New method.
6420 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
6421 disable Tab and Shift-Tab keystrokes.
6422 (addNotify, appendText, insertText, replaceText): Simplify peer
6424 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
6425 (connectSignals): Remove connections to "commit" signals.
6426 Remove C++-style comments.
6428 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
6429 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6430 (handleEvent): Activate GTK button when the space bar key is
6432 (gtkActivate): New method.
6434 2004-05-06 David Jee <djee@redhat.com>
6436 * java/awt/image/CropImageFilter.java
6437 (setPixels): Implement for byte array pixels.
6438 * java/awt/image/ReplicateScaleFilter.java
6439 (setPixels): Implement for byte array pixels.
6440 (replicatePixels): Overload for byte array pixels.
6442 2004-05-06 Kim Ho <kho@redhat.com>
6444 * javax/swing/Box.java:
6445 (getAccessibleContext): Return an instance of the
6448 2004-05-05 David Jee <djee@redhat.com>
6450 * gnu/java/awt/peer/gtk/GdkGraphics.java
6451 (drawImage): When component is null, use SystemColor.window as
6452 the default bgcolor.
6453 * gnu/java/awt/peer/gtk/GtkImage.java
6454 (setPixels): We can avoid iterating through the pixel rows only
6456 * java/awt/Image.java
6457 (getScaledInstance): Partially implement.
6458 * java/awt/image/CropImageFilter.java
6459 (setProperties): Fix "filter" property.
6460 (setPixels): Implement.
6461 * java/awt/image/ReplicateScaleFilter.java
6462 (setDimensions): Use scaled dimensions.
6463 (setPixels): Implement.
6464 (replicatePixels): New method.
6466 2004-05-05 David Jee <djee@redhat.com>
6468 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6469 (convertPixels): If either pixels or model is null, return null.
6470 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
6471 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
6472 is null, do nothing and return.
6474 2004-05-03 Kim Ho <kho@redhat.com>
6476 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
6477 (getGraphics): Like GtkFramePeer, the Graphics
6478 object needs to be translate to account for
6480 (postMouseEvent): New method. Account for
6482 (postExposeEvent): ditto.
6483 * javax/swing/Box.java: Stubbed.
6484 * javax/swing/JDialog.java: Ran through jalopy
6486 (JDialog): Call SwingUtilities' getOwnerFrame
6488 (setLayout): Check isRootPaneCheckingEnabled
6489 * javax/swing/JOptionPane.java: Re-implemented.
6490 * javax/swing/SwingUtilities.java:
6491 (getOwnerFrame): Static method to grab a default
6492 owner frame for Dialogs that don't specify owners.
6493 * javax/swing/event/SwingPropertyChangeSupport.java:
6494 (firePropertyChange): Fix early exit condition.
6495 * javax/swing/plaf/basic/BasicLabelUI.java:
6496 (paint): Avoid painting text if it is null
6498 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
6501 2004-05-03 Olga Rodimina <rodimina@redhat.com>
6503 * Makefile.am: Added new file.
6504 * Makefile.in: Regenerate.
6505 * javax/swing/JPopupMenu.java:
6506 Started implementation.
6507 * javax/swing/JWindow.java
6508 (JWindow): call super() if parent for window
6510 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
6511 New File. UI Delegate for JPopupMenu.
6513 2004-04-30 Olga Rodimina <rodimina@redhat.com>
6515 * javax/swing/JApplet.java: Indicated that JApplet
6516 implements RootPaneContainer and made method of this
6518 * javax/swing/JFrame.java: Ditto.
6519 * javax/swing/JWindow.java: Ditto.
6521 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
6523 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6524 (nativeSetBounds): Call gdk_window_move in addition to
6527 * java/applet/Applet.java (preferredSize): Call parent's
6528 preferredSize if the applet stub is null.
6529 (minimumSize): Likewise for parent's minimumSize.
6531 2004-04-27 Olga Rodimina <rodimina@redhat.com>
6533 * javax/swing/JMenuItem.java
6534 (createActionPropertyChangeListener): Implemented.
6535 (processMouseEvent): Ditto.
6536 (fireMenuDragMouseEntered): Ditto.
6537 (fireMenuDragMouseExited): Ditto.
6538 (fireMenuDragMouseDragged): Ditto.
6539 (fireMenuDragMouseReleased): Ditto.
6540 (menuSelectionChanged): Ditto.
6541 (getSubElements): Ditto.
6542 (getComponent): Ditto.
6543 (addMenuDragMouseListener): Ditto.
6544 (removeMenuDragMouseListener):Ditto.
6545 (addMenuKeyListener): Ditto.
6546 (removeMenuKeyListener): Ditto.
6547 * javax/swing/plaf/basic/BasicMenuItemUI.java
6548 (doClick): Imlemented.
6549 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
6550 Don't handle mouse events here. Pass them to
6551 MenuSelectionManager.
6553 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6554 Used correct version of jalopy configuration
6555 file to fix style in the files below.
6557 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6559 * javax/swing/JCheckBoxMenuItem.java:
6560 Fixed style and removed unnecessary comments.
6561 * javax/swing/JMenuItem.java: Ditto.
6562 * javax/swing/JRadioButtonMenuItem.java: Ditto.
6563 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
6564 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
6565 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
6567 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
6569 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
6572 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
6574 * java/awt/ContainerOrderFocusTraversalPolicy.java
6575 (getComponentAfter): Start from current component and work up
6576 the component hierarchy until an acceptable component is found.
6577 Synchronize on tree lock.
6578 (getComponentBefore): Likewise.
6580 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
6582 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
6583 focus-related debugging messages.
6584 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
6585 * java/awt/EventDispatchThread.java: Likewise.
6586 * java/awt/KeyboardFocusManager.java: Likewise.
6587 * java/awt/Window.java: Likewise.
6588 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
6589 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6591 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
6592 new C++-style comments to C-style comments.
6593 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6595 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
6596 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6597 (handleEvent): Dispatch key press and key release events to
6599 (requestFocus): Post a FOCUS_GAINED event to the event queue.
6600 (gtkWidgetRequestFocus): New method.
6601 (gtkWidgetDispatchKeyEvent): Likewise.
6602 * java/awt/Component.java (requestFocus, requestFocus(boolean),
6603 requestFocusInWindow, requestFocusInWindow(boolean),
6604 getFocusCycleRootAncestor, nextFocus, transferFocus,
6605 transferFocusBackward, transferFocusUpCycle, hasFocus,
6606 isFocusOwner): Implement and document focus-handling methods.
6607 (setFocusTraversalKeys): Inherit focus traversal keys when
6608 keystrokes argument is null. Fix focus-handling documentation
6610 * java/awt/Container.java (setFocusTraversalKeys,
6611 getFocusTraversalKeys, areFocusTraversalKeysSet,
6612 isFocusCycleRoot, setFocusTraversalPolicy,
6613 getFocusTraversalPolicy, isFocusTraversalPolicySet,
6614 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
6615 Implement and document focus-handling methods.
6616 (transferFocusBackward): Remove method.
6617 (readObject, writeObject): Implement and document serialization
6619 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
6621 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
6623 * java/awt/DefaultKeyboardFocusManager.java: Implement and
6625 * java/awt/EventDispatchThread.java (run): Set default keyboard
6626 focus manager. Attempt to dispatch each event to the keyboard
6627 focus manager before normal dispatch.
6628 * java/awt/KeyboardFocusManager.java: Implement and partially
6630 * java/awt/Window.java (Window): Set focusCycleRoot to true.
6631 (show): Focus initial component when window is shown for the
6633 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6634 (pre_event_handler): Replace complex key press and key release
6635 logic with simple callbacks into GtkComponentPeer.
6636 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
6638 2004-04-21 Olga Rodimina <rodimina@redhat.com>
6640 * javax/swing/MenuSelectionManager.java
6641 (componentForPoint): Added new method.
6642 (defaultManager): New Method. Implemented.
6643 (getSelectedPath): Ditto.
6644 (isComponentPartOfCurrentMenu): Ditto.
6645 (processKeyEvent): Added new method.
6646 (processMouseEvent): New Method. Implemented.
6647 (setSelectedPath): Ditto.
6650 2004-04-19 Kim Ho <kho@redhat.com>
6652 * java/awt/Container.java:
6653 (remove): Set the component's parent to null.
6654 (getComponentAt): Implement.
6655 * javax/swing/JComponent.java:
6656 (JComponent): Initialize defaultLocale
6657 (getDefaultLocale): Implement.
6658 (setDefaultLocale): ditto.
6659 * javax/swing/JSlider.java:
6660 (JSlider): Fix calculation of value.
6661 * javax/swing/JSplitPane.java: Implement.
6662 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6663 Change SplitPane's default divider size.
6664 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6665 (paint): Remove unused code.
6666 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
6667 Added comments and ran through jalopy.
6668 (setBasicSplitPaneUI): Get reference to hidden divider
6669 and set up one touch buttons if necessary.
6670 (setBorder): Fire propertyChangeEvent only if
6671 borders are different.
6672 (getPreferredSize): Defer to layout manager.
6673 (propertyChange): Implement.
6674 (oneTouchExpandableChanged): ditto.
6675 (createLeftOneTouchButton): Use BasicArrowButton.
6676 (createRightOneTouchButton): ditto.
6677 (moveDividerTo): New method. Moves the divider
6678 to a set location based on the last divider location.
6679 (BasicSplitPaneDivider::MouseHandler): Implement.
6680 (BasicSplitPaneDivider::OneTouchButton): Removed.
6681 (BasicSplitPaneDivider::DragController): Implement.
6682 (BasicSplitPaneDivider::VerticalDragController):
6684 (BasicSplitPaneDivider::DividerLayout): ditto.
6685 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
6686 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
6687 (calculateLayoutInfo): Don't show component if it's
6689 (paintTab): Fix title paint logic.
6691 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
6694 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
6695 (setStartRule,setEndRule): Don't take abs of day number.
6696 (getOffset): Clarify docs. Add argument checks.
6697 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
6698 (equals,hasSameRules,toString,readObject): Use startTimeMode and
6700 * testsuite/libjava.mauve/xfails
6701 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
6703 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
6705 Layout interfaces during preparation, not initialization.
6706 * java/lang/natClass.cc (initializeClass): Move
6707 _Jv_LayoutInterfaceMethods call...
6708 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
6710 2004-05-19 Anthony Green <green@localhost.localdomain>
6712 * Makefile.am (awt_java_source_files): Remove javax.rmi and
6714 * Makefile.in: Rebuilt.
6715 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
6716 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
6717 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
6718 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
6719 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
6720 gnu/javax/rmi/CORBA/DelegateFactory.java,
6721 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
6722 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
6723 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
6724 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
6725 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
6726 gnu/javax/rmi/PortableServer.java: Remove files.
6728 2004-05-19 Anthony Green <green@redhat.com>
6730 * Makefile.am: Define JAVA_EXT_DIRS.
6731 * Makefile.in: Rebuilt.
6732 * java/lang/natRuntime.cc (insertSystemProperties): Set
6733 java.ext.dirs property.
6735 2004-05-16 Mark Wielaard <mark@klomp.org>
6737 * java/io/Writer.java (Writer(Object)): Check for null lock object.
6739 2004-05-15 Mark Wielaard <mark@klomp.org>
6741 * doc/cni.sgml: Removed, merged into gcj.texi.
6743 2004-05-15 Mark Wielaard <mark@klomp.org>
6745 * Makefile.am (ordinary_java_source_files): Add new javax.print
6747 * Makefile.in: Regenerated.
6749 2004-05-15 Michael Koch <konqueror@gmx.de>
6751 * javax/print/attribute/standard/DateTimeAtCompleted.java,
6752 javax/print/attribute/standard/DateTimeAtCreation.java,
6753 javax/print/attribute/standard/DateTimeAtProcessing.java,
6754 javax/print/attribute/standard/DocumentName.java,
6755 javax/print/attribute/standard/JobHoldUntil.java,
6756 javax/print/attribute/standard/JobImpressionsCompleted.java,
6757 javax/print/attribute/standard/JobMessageFromOperator.java,
6758 javax/print/attribute/standard/JobName.java,
6759 javax/print/attribute/standard/JobOriginatingUserName.java,
6760 javax/print/attribute/standard/JobPriority.java,
6761 javax/print/attribute/standard/JobPrioritySupported.java,
6762 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6763 javax/print/attribute/standard/OutputDeviceAssigned.java,
6764 javax/print/attribute/standard/PrinterInfo.java,
6765 javax/print/attribute/standard/PrinterLocation.java,
6766 javax/print/attribute/standard/PrinterMakeAndModel.java,
6767 javax/print/attribute/standard/PrinterMessageFromOperator.java,
6768 javax/print/attribute/standard/PrinterName.java,
6769 javax/print/attribute/standard/QueuedJobCount.java,
6770 javax/print/attribute/standard/RequestingUserName.java:
6771 Fixed javadocs all over.
6773 2004-05-15 Michael Koch <konqueror@gmx.de>
6775 * javax/print/DocFlavor.java,
6776 javax/print/attribute/standard/ColorSupported.java,
6777 javax/print/attribute/standard/Compression.java,
6778 javax/print/attribute/standard/CopiesSupported.java,
6779 javax/print/attribute/standard/Fidelity.java,
6780 javax/print/attribute/standard/Finishings.java,
6781 javax/print/attribute/standard/JobImpressionsSupported.java,
6782 javax/print/attribute/standard/JobKOctetsSupported.java,
6783 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6784 javax/print/attribute/standard/JobSheets.java,
6785 javax/print/attribute/standard/JobState.java,
6786 javax/print/attribute/standard/JobStateReason.java,
6787 javax/print/attribute/standard/JobStateReasons.java,
6788 javax/print/attribute/standard/Media.java,
6789 javax/print/attribute/standard/MediaSizeName.java,
6790 javax/print/attribute/standard/MultipleDocumentHandling.java,
6791 javax/print/attribute/standard/NumberUpSupported.java,
6792 javax/print/attribute/standard/OrientationRequested.java,
6793 javax/print/attribute/standard/PDLOverrideSupported.java,
6794 javax/print/attribute/standard/PageRanges.java,
6795 javax/print/attribute/standard/PresentationDirection.java,
6796 javax/print/attribute/standard/PrintQuality.java,
6797 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6798 javax/print/attribute/standard/PrinterMoreInfo.java,
6799 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6800 javax/print/attribute/standard/PrinterResolution.java,
6801 javax/print/attribute/standard/PrinterState.java,
6802 javax/print/attribute/standard/PrinterStateReason.java,
6803 javax/print/attribute/standard/PrinterStateReasons.java,
6804 javax/print/attribute/standard/PrinterURI.java,
6805 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6806 javax/print/attribute/standard/Severity.java,
6807 javax/print/attribute/standard/SheetCollate.java,
6808 javax/print/attribute/standard/Sides.java:
6809 Added serialVersionUID and removed final keyword where it doenst
6812 2004-05-15 Michael Koch <konqueror@gmx.de>
6814 * javax/print/PrintServiceLookup.java: New file.
6816 2004-05-15 Michael Koch <konqueror@gmx.de>
6818 * javax/print/DocFlavor.java:
6819 Implemented all flavor classes.
6821 2004-05-15 Michael Koch <konqueror@gmx.de>
6823 * javax/print/attribute/standard/ColorSupported.java,
6824 javax/print/attribute/standard/Compression.java,
6825 javax/print/attribute/standard/CopiesSupported.java,
6826 javax/print/attribute/standard/Fidelity.java,
6827 javax/print/attribute/standard/Finishings.java,
6828 javax/print/attribute/standard/JobImpressionsSupported.java,
6829 javax/print/attribute/standard/JobKOctetsSupported.java,
6830 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6831 javax/print/attribute/standard/JobSheets.java,
6832 javax/print/attribute/standard/JobState.java,
6833 javax/print/attribute/standard/JobStateReason.java,
6834 javax/print/attribute/standard/JobStateReasons.java,
6835 javax/print/attribute/standard/Media.java,
6836 javax/print/attribute/standard/MediaSizeName.java,
6837 javax/print/attribute/standard/MultipleDocumentHandling.java,
6838 javax/print/attribute/standard/NumberUpSupported.java,
6839 javax/print/attribute/standard/OrientationRequested.java,
6840 javax/print/attribute/standard/PDLOverrideSupported.java,
6841 javax/print/attribute/standard/PageRanges.java,
6842 javax/print/attribute/standard/PresentationDirection.java,
6843 javax/print/attribute/standard/PrintQuality.java,
6844 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6845 javax/print/attribute/standard/PrinterMoreInfo.java,
6846 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6847 javax/print/attribute/standard/PrinterResolution.java,
6848 javax/print/attribute/standard/PrinterState.java,
6849 javax/print/attribute/standard/PrinterStateReason.java,
6850 javax/print/attribute/standard/PrinterStateReasons.java,
6851 javax/print/attribute/standard/PrinterURI.java,
6852 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6853 javax/print/attribute/standard/Severity.java,
6854 javax/print/attribute/standard/SheetCollate.java,
6855 javax/print/attribute/standard/Sides.java: New files.
6857 2004-05-15 Michael Koch <konqueror@gmx.de>
6859 * javax/print/Doc.java
6860 (getPrintData): Throws IOException.
6861 (getReaderForText): Likewise.
6862 (getStreamForBytes): Likewise.
6863 * javax/print/DocFlavor.java:
6864 Fixed filename in copyright.
6865 (serialVersionUID): New field.
6866 * javax/print/ServiceUIFactory.java:
6867 Made all constants final.
6868 * javax/print/AttributeException.java
6869 javax/print/MultiDoc.java
6870 javax/print/MultiDocPrintJob.java
6871 javax/print/MultiDocPrintService.java
6872 javax/print/StreamPrintService.java
6873 javax/print/URIException.java: New files.
6874 * javax/print/Makefile.am
6875 (EXTRA_DIST): Added all new files.
6877 2004-05-15 Michael Koch <konqueror@gmx.de>
6879 * javax/print/attribute/standard/Copies.java,
6880 javax/print/attribute/standard/DateTimeAtCompleted.java,
6881 javax/print/attribute/standard/DateTimeAtCreation.java,
6882 javax/print/attribute/standard/DateTimeAtProcessing.java,
6883 javax/print/attribute/standard/DocumentName.java,
6884 javax/print/attribute/standard/JobHoldUntil.java,
6885 javax/print/attribute/standard/JobImpressions.java,
6886 javax/print/attribute/standard/JobImpressionsCompleted.java,
6887 javax/print/attribute/standard/JobKOctets.java,
6888 javax/print/attribute/standard/JobKOctetsProcessed.java,
6889 javax/print/attribute/standard/JobMediaSheets.java,
6890 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
6891 javax/print/attribute/standard/JobMessageFromOperator.java,
6892 javax/print/attribute/standard/JobName.java,
6893 javax/print/attribute/standard/JobOriginatingUserName.java,
6894 javax/print/attribute/standard/JobPriority.java,
6895 javax/print/attribute/standard/JobPrioritySupported.java,
6896 javax/print/attribute/standard/NumberOfDocuments.java,
6897 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6898 javax/print/attribute/standard/NumberUp.java,
6899 javax/print/attribute/standard/OutputDeviceAssigned.java,
6900 javax/print/attribute/standard/PagesPerMinute.java,
6901 javax/print/attribute/standard/PagesPerMinuteColor.java:
6902 Fixed @return tag all over.
6904 2004-05-15 Michael Koch <konqueror@gmx.de>
6906 * javax/print/attribute/AttributeSetUtilities.java
6907 (verifyCategoryForValue): Fixed typo in javadoc.
6908 * javax/print/attribute/HashAttributeSet.java
6909 (containsKey): Fixed @return tag.
6910 (comtainsValue): Likewise.
6912 * javax/print/attribute/IntegerSyntax.java
6914 * javax/print/attribute/ResolutionSyntax.java
6916 (getCrossFeedResolution): Removed unused code.
6917 (getFeedResolution): Likewise.
6918 * javax/print/attribute/SetOfIntegerSyntax.java
6919 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
6920 (equals): Fixed @return tag.
6921 * javax/print/attribute/TextSyntax.java
6922 (TextSyntax): Take locale into account.
6923 (hashCode): Better implementation.
6925 2004-05-15 Michael Koch <konqueror@gmx.de>
6927 * javax/print/CancelablePrintJob.java,
6928 javax/print/Doc.java,
6929 javax/print/DocFlavor.java,
6930 javax/print/DocPrintJob.java,
6931 javax/print/FlavorException.java,
6932 javax/print/PrintException.java,
6933 javax/print/PrintService.java,
6934 javax/print/ServiceUIFactory.java: New files.
6936 2004-05-15 Mark Wielaard <mark@klomp.org>
6938 * gnu/regexp/CharIndexedReader.java: Removed.
6939 * gnu/regexp/REFilterReader.java: Likewise.
6940 * gnu/regexp/RETokenLookAhead.java: Likewise.
6941 * Makefile.am (ordinary_java_source_files): Remove above classes.
6942 * Makefile.in: Regenerated.
6944 2004-05-14 Tom Tromey <tromey@redhat.com>
6946 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
6947 not `XGraphicsConfiguration.XOffScreenImage'.
6949 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
6951 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
6953 2004-05-14 Steven Augart <augart@watson.ibm.com>
6955 * include/jni.h (_Jv_func): Removed.
6956 (struct JNINativeInterface): Use `void *' for reserved slots.
6957 (struct JNIInvokeInterface): Likewise.
6959 2004-05-11 Michael Koch <konqueror@gmx.de>
6961 * gnu/java/net/natPlainSocketImplPosix.cc
6962 (read): Fixed typo in expression.
6964 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
6966 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
6967 ld_library_additions. Adjust all calls to libjava_invoke to match
6970 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
6971 path to cxxflagslist.
6972 Pass path of libstdc++ to libjava_invoke.
6974 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
6975 libjava_invoke arguments.
6977 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
6979 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
6982 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
6984 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
6985 main binary against the JNI shared library.
6987 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6989 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
6990 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
6991 (SimpleTimeZone): Tweak docs. Add new variation.
6992 (setStartRule,setEndRule): Add new variations. Use
6993 startTimeMode and endTimeMode.
6995 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6997 * java/util/Calendar.java (getActualMinimum,
6998 getActualMaximum): Remove abstract. Implement.
7000 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
7002 Run the jni tests using the interpreter.
7003 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
7004 options_cxx to shared lib compile command.
7005 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
7006 they are used to link the shared lib, not the main binary.
7007 Use libjava_invoke to run gij.
7009 2004-05-06 Michael Koch <konqueror@gmx.de>
7011 * java/util/logging/Level.java
7012 (parse): Use == instead of String.equals().
7014 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
7016 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
7017 verify_field_signature and verify_method_signature, not
7018 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
7019 (_Jv_ClassReader::handleField): Likewise.
7020 (_Jv_ClassReader::handleMethod): Likewise.
7022 2004-05-06 Michael Koch <konqueror@gmx.de>
7024 * javax/swing/table/TableColumn.java:
7027 2004-05-06 Michael Koch <konqueror@gmx.de>
7029 * javax/imageio/spi/ImageReaderWriterSpi.java
7030 (ImageReaderWriterSpi): Made it public.
7031 * javax/imageio/stream/ImageInputStream.java:
7034 2004-05-06 Michael Koch <konqueror@gmx.de>
7036 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7039 2004-05-06 Michael Koch <konqueror@gmx.de>
7041 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
7042 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
7044 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
7045 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
7046 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
7047 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
7048 their own source file.
7049 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7050 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
7051 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
7052 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
7053 (create): Define variable on top of function.
7054 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
7055 (menu_pos): Prototyped.
7056 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7057 (setTitle): Removed.
7058 * jni/gtk-peer/gthread-jni.c
7059 (gdk_threads_wake): Removed.
7060 * Makefile.am (gtk_c_source_files): Added new files
7061 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
7062 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
7063 * Makefile.in: Regenerated.
7065 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
7067 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
7070 2004-05-05 Mark Wielaard <mark@klomp.org>
7072 * javax/swing/AbstractButton.java: Replace special HTML entities with
7074 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
7075 * javax/swing/DefaultButtonModel.java: Likewise.
7076 * javax/swing/DefaultListModel.java: Likewise.
7077 * javax/swing/JList.java: Likewise.
7078 * javax/swing/JSlider.java: Likewise.
7079 * javax/swing/ListModel.java: Likewise.
7080 * javax/swing/Popup.java: Likewise.
7081 * javax/swing/SwingUtilities.java: Likewise.
7083 2004-05-05 Michael Koch <konqueror@gmx.de>
7085 * javax/swing/AbstractButton.java,
7086 javax/swing/ActionMap.java,
7087 javax/swing/DefaultButtonModel.java,
7088 javax/swing/DefaultListModel.java,
7089 javax/swing/ImageIcon.java,
7090 javax/swing/JComboBox.java,
7091 javax/swing/JComponent.java,
7092 javax/swing/JFrame.java,
7093 javax/swing/JInternalFrame.java,
7094 javax/swing/JMenuBar.java,
7095 javax/swing/JMenuItem.java,
7096 javax/swing/JOptionPane.java,
7097 javax/swing/JProgressBar.java,
7098 javax/swing/JRootPane.java,
7099 javax/swing/JScrollBar.java,
7100 javax/swing/JScrollPane.java,
7101 javax/swing/JSeparator.java,
7102 javax/swing/JSlider.java,
7103 javax/swing/JTabbedPane.java,
7104 javax/swing/JTable.java,
7105 javax/swing/JTextField.java,
7106 javax/swing/JToolBar.java,
7107 javax/swing/JToolTip.java,
7108 javax/swing/JTree.java,
7109 javax/swing/JViewport.java,
7110 javax/swing/JWindow.java,
7111 javax/swing/KeyStroke.java,
7112 javax/swing/LookAndFeel.java,
7113 javax/swing/SwingUtilities.java,
7114 javax/swing/Timer.java,
7115 javax/swing/ToolTipManager.java,
7116 javax/swing/UIDefaults.java,
7117 javax/swing/border/TitledBorder.java,
7118 javax/swing/filechooser/FileSystemView.java,
7119 javax/swing/plaf/basic/BasicButtonListener.java,
7120 javax/swing/plaf/basic/BasicButtonUI.java,
7121 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
7122 javax/swing/plaf/basic/BasicGraphicsUtils.java,
7123 javax/swing/plaf/basic/BasicLabelUI.java,
7124 javax/swing/plaf/basic/BasicMenuItemUI.java,
7125 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
7126 javax/swing/plaf/basic/BasicRootPaneUI.java,
7127 javax/swing/plaf/basic/BasicScrollBarUI.java,
7128 javax/swing/plaf/basic/BasicScrollPaneUI.java,
7129 javax/swing/plaf/basic/BasicSliderUI.java,
7130 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
7131 javax/swing/plaf/basic/BasicToggleButtonUI.java,
7132 javax/swing/table/JTableHeader.java,
7133 javax/swing/text/AbstractDocument.java,
7134 javax/swing/text/DefaultCaret.java,
7135 javax/swing/text/StyledEditorKit.java,
7136 javax/swing/tree/DefaultTreeCellEditor.java:
7139 2004-05-05 Michael Koch <konqueror@gmx.de>
7141 * java/util/prefs/AbstractPreferences.java
7142 (AbstractPreferences): Added parenthesis for clarity.
7143 Closes classpath bug #7940.
7145 2004-05-05 Tom Tromey <tromey@redhat.com>
7147 * javax/naming/CompoundName.java (endsWith): Look at correct
7148 element of source name.
7150 2004-05-05 Mark Wielaard <mark@klomp.org>
7152 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
7153 * java/util/HashMap.java (rehash): Add entry at start of bucket.
7155 2004-05-05 Tom Tromey <tromey@redhat.com>
7157 * java/io/BufferedReader.java (skip): Removed unused
7160 2004-05-05 Michael Koch <konqueror@gmx.de>
7162 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
7164 2004-05-05 Dalibor Topic <robilad@kaffe.org>
7166 * java/text/AttributedString.java,
7167 java/text/AttributedStringIterator.java,
7168 java/text/Collator.java,
7169 java/text/DecimalFormatSymbols.java,
7170 java/text/NumberFormat.java,
7171 java/text/RuleBasedCollator.java:
7174 2004-05-05 Tom Tromey <tromey@redhat.com>
7176 * java/text/Format.java: Cleaned up imports.
7177 * java/text/DecimalFormat.java: Cleaned up imports.
7178 * java/security/SecureRandom.java: Cleaned up imports.
7179 (SecureRandom): Removed unused variable.
7180 * java/security/UnresolvedPermission.java: Cleaned up imports.
7181 * java/util/Date.java (parse): Removed unused variable.
7182 * java/util/ResourceBundle.java: Cleaned up imports.
7183 (getBundle): Removed unused variable.
7184 (tryBundle): Likewise.
7185 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
7187 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7189 * java/text/SimpleDateFormat.java:
7190 (formatWithAttribute): New method. It implements
7191 the formatting process with attributes.
7192 (format): Use formatWithAttribute.
7193 (formatToCharacterIterator): New method. Use
7194 formatWithAttribute.
7196 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7198 * java/text/MessageFormat.java:
7199 (class Field): New class.
7200 (formatToCharacterIterator): New method.
7201 (format): Use formatInternal now.
7202 (formatInternal): New method. String formatter should
7203 be done here (with attributes). Attributes merging supported.
7204 (parse): More documentation.
7205 (getFormatsByArgumentIndex): New method.
7206 (setFormatByArgumentIndex): New method.
7207 (setFormatsByArgumentIndex): New method.
7209 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7211 * java/text/DecimalFormat.java
7212 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
7213 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
7214 (parse): Fixed handling of exponentiation notation and grouping.
7216 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7218 * java/text/DecimalFormat.java
7219 (scanFix): Build attribute array. Fixed error reporting.
7220 (applyPatternWithSymbols): Store attributes for the prefix and
7222 (formatInternal): New method. Changed the way the string is
7223 computed. Implemented attributes. Cleant up rounding in
7224 exponential notation.
7225 (format): Use formatInternal.
7226 (formatToCharacterIterator): New method.
7227 (exponentRound, negativePrefixRanges, positivePrefixRanges,
7228 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
7229 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
7232 2004-05-04 Dalibor Topic <robilad@kaffe.org>
7234 * java/security/interfaces/DSAKeyPairGenerator.java,
7235 java/security/interfaces/DSAPrivateKey.java,
7236 java/security/interfaces/DSAPublicKey.java,
7237 java/security/interfaces/RSAPrivateKey.java,
7238 java/security/interfaces/RSAPublicKey.java:
7241 2004-05-04 Michael Koch <konqueror@gmx.de>
7243 * java/nio/ByteBuffer.java,
7244 java/nio/CharBuffer.java,
7245 java/nio/DoubleBuffer.java,
7246 java/nio/FloatBuffer.java,
7247 java/nio/IntBuffer.java,
7248 java/nio/LongBuffer.java,
7249 java/nio/ShortBuffer.java:
7250 (compareTo): Fixed bogus implementation in all buffer classes.
7252 2004-05-04 Ingo Proetel <proetel@aicas.com>
7254 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
7255 32 bit pixels not 8 bit pixels.
7256 (isCompatibleRaster): Added javadoc comment.
7258 2004-05-04 Ingo Proetel <proetel@aicas.com>
7260 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
7263 2004-05-04 Ingo Proetel <proetel@aicas.com>
7265 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
7266 (getColorModel): Return the actual color model.
7267 (getRaster): Implemented.
7268 (ColorRaster): New inner class.
7269 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
7271 * java/awt/Color.java (<init>): Make exception more verbose.
7272 (createContext): Use ColorModel when creating a PaintContext.
7274 2004-05-04 Michael Koch <konqueror@gmx.de>
7276 * gnu/java/text/CharacterBreakIterator.java
7277 (previous): Removed unused variable.
7279 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
7281 * gnu/java/text/FormatBuffer.java,
7282 gnu/java/text/AttributedFormatBuffer.java,
7283 gnu/java/text/StringFormatBuffer.java: New classes to implement
7284 attributed iterators in java.text.
7285 * gnu/java/text/FormatCharacterIterator.java: Moved
7286 from java/text as it is an internal class.
7287 * java/text/FormatCharacterIterator.java: Removed.
7288 * java/text/Format.java:
7289 Import gnu.java.text.FormatCharacterIterator.
7290 * Makefile.am (java_source_files): Added new files.
7291 * Makefile.in: Regenerated.
7294 2004-05-04 Mark Wielaard <mark@klomp.org>
7296 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
7298 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
7300 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
7301 * Makefile.in: Rebuilt.
7303 2004-05-03 Mark Wielaard <mark@klomp.org>
7305 * gnu/java/security/der/DERReader.java: Call static methods staticly.
7306 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
7308 (set(String, String, int, String, String, String, String, String)):
7309 Assign this.file to path or path + "?" + query.
7310 * java/util/Arrays.java: Call static methods staticly.
7311 * java/util/zip/ZipEntry.java: Likewise.
7312 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
7313 dir to this.direction.
7314 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
7315 Assign static field only once.
7316 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
7318 2004-05-03 Mark Wielaard <mark@klomp.org>
7320 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
7321 unused variables hScrollbarHeight and vScrollbarWidth.
7322 (preferredSize): Likewise.
7323 * gnu/java/security/provider/DSAParameters.java (engineToString):
7324 Removed unused call to System.getProperty("line.seperator");
7325 * java/security/Security.java (loadProviders): Return result.
7327 2004-05-03 Tom Tromey <tromey@redhat.com>
7329 * java/net/URLStreamHandler.java (toExternalForm): Removed
7332 * java/math/BigDecimal.java (divide): Removed unused variable.
7333 * java/lang/Throwable.java: Cleaned up imports.
7334 * java/lang/ClassLoader.java: Cleaned up imports.
7335 * java/io/FilePermission.java (implies): Removed unused
7337 * java/awt/TextComponent.java: Removed unused import.
7338 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
7339 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
7340 * gnu/java/text/WordBreakIterator.java: Removed unused import.
7341 * gnu/java/text/SentenceBreakIterator.java: Removed unused
7343 * gnu/java/text/LineBreakIterator.java: Removed unused import.
7344 * gnu/java/text/CharacterBreakIterator.java: Removed
7346 * gnu/java/security/provider/DSAKeyPairGenerator.java:
7348 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
7349 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
7351 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
7352 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
7353 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
7354 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
7355 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
7356 (lookupProviders): Removed unused variable.
7357 (loadNextServiceProvider): Likewise.
7358 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
7360 2004-05-03 Michael Koch <konqueror@gmx.de>
7362 Fixes PR libgcj/14695:
7363 * java/net/NetworkInterface.java
7364 (getByName): Return null when no interface was found.
7366 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
7367 Tom Tromey <tromey@redhat.com>
7369 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
7370 additional option "-Wmissing-prototypes" for compiling C sources.
7371 Print actual filename for pass/fail rather than $name.c.
7372 * testsuite/libjava.jni/PR15133.java: New testcase file.
7373 * testsuite/libjava.jni/PR15133.c: Likewise.
7374 * testsuite/libjava.jni/PR15133.out: Likewise.
7376 2004-04-30 Roger Sayle <roger@eyesopen.com>
7378 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
7381 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
7383 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
7384 limit the maximum heap size to avoid unnecessary thrashing.
7386 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
7388 * java/text/CollationElementIterator.java (reset): Reset
7389 lookahead variables.
7391 2004-04-23 Mark Wielaard <mark@klomp.org>
7393 * jni/classpath/jcl.c: Changed C++ comments into C comments.
7395 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7397 * java/sql/DriverManager.java:
7400 2004-04-23 Michael Koch <konqueror@gmx.de>
7403 (hashcode): Don't initialize with default value explicitely.
7404 (getContent): Removed redundant "final" keyword.
7405 (openStream): Likewise.
7406 (getURLStreamHandler): Fixed coding style.
7407 * java/net/URLConnection.java
7408 (defaultAllowUserInteraction): Don't initialize with default value
7410 (connected): Likewise.
7411 (doOutput): Likewise.
7412 (ifModifiedSince): Likewise.
7413 (dateformats_initialized): Likewise.
7414 (setURLStreamHander): Use StreamTokenizer where it belongs to.
7416 2004-04-23 Michael Koch <konqueror@gmx.de>
7418 * gnu/java/nio/channels/FileChannelImpl.java
7419 (SET, CUR): Unused, removed.
7420 (read): Implement here directly.
7421 (implRead): Removed.
7422 (write): Implement here directly.
7423 (implWrite): Removed.
7425 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7427 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
7428 javax/rmi/CORBA/Stub.java,
7429 javax/rmi/CORBA/Util.java,
7430 javax/rmi/CORBA/ValueHandler.java,
7431 javax/rmi/CORBA/ValueHandler.java,
7432 javax/rmi/PortableRemoteObject.java:
7435 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7437 * java/util/jar/JarFile.java,
7438 java/util/jar/JarInputStream.java,
7439 java/util/jar/JarOutputStream.java,
7440 java/util/jar/Manifest.java:
7443 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7445 * java/util/ArrayList.java,
7446 java/util/Calendar.java,
7447 java/util/Currency.java,
7448 java/util/HashMap.java,
7449 java/util/HashSet.java,
7450 java/util/Hashtable.java,
7451 java/util/LinkedList.java,
7452 java/util/Properties.java,
7453 java/util/PropertyPermission.java,
7454 java/util/TimeZone.java,
7455 java/util/TreeMap.java,
7456 java/util/TreeSet.java,
7457 java/util/Vector.java,
7458 java/util/WeakHashMap.java:
7461 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7463 * java/util/logging/FileHandler.java,
7464 java/util/logging/Formatter.java,
7465 java/util/logging/Handler.java,
7466 java/util/logging/Logger.java,
7467 java/util/logging/SimpleFormatter.java,
7468 java/util/logging/XMLFormatter.java:
7471 2004-04-22 Mark Wielaard <mark@klomp.org>
7473 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
7474 -Wno-long-long flags variable.
7475 (gtk_c_files): Use PEDANTIC_CFLAGS.
7476 * Makefile.in: Regenerated.
7478 2004-04-22 Mark Wielaard <mark@klomp.org>
7480 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7481 Changed C++ comments into C comments.
7482 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
7485 2004-04-22 Michael Koch <konqueror@gmx.de>
7487 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
7488 Merged copyright year with GNU classpath.
7490 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7492 * javax/security/auth/x500/X500Principal.java:
7495 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7497 * javax/swing/JSlider.java:
7498 Fixed HTML tags in comments.
7500 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7502 * javax/accessibility/AccessibleText.java:
7505 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
7507 * java/net/URLStreamHandler.java
7508 (parseURL): Convert the file path to using '/' instead of native
7511 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
7514 (userInfo): New field.
7515 (URL): Set authority to the right value.
7516 (setURL): Fixed authority and file initialization.
7517 * java/net/URLStreamHandler.java
7518 (parseURL): Take care of the query tag. Build authority.
7519 (toExternalForm): Fixed URL building using authority.
7521 2004-04-22 Michael Koch <konqueror@gmx.de>
7523 * java/net/Socket.java
7524 (impl): Made package-private.
7525 * java/net/ServerSocket.java
7526 (implAccept): Access Socket.impl field directly.
7528 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7530 * java/util/prefs/Preferences.java,
7531 java/util/prefs/InvalidPreferencesFormatException.java,
7532 java/util/prefs/BackingStoreException.java,
7533 java/util/prefs/AbstractPreferences.java:
7536 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7538 * java/util/regex/Matcher.java,
7539 java/util/regex/Pattern.java:
7542 2004-04-22 Michael Koch <konqueror@gmx.de>
7544 * java/nio/charset/IllegalCharsetNameException.java
7545 (charsetName): Made private.
7546 (IllegalCharsetNameException): Added @param tag to javadoc.
7547 (getCharsetName): Added @return tag to javadoc.
7548 * java/nio/charset/MalformedInputException.java
7549 (MalformedInputException): Added @param tag to javadoc.
7550 (getInputLength): Revised method description, added @return tag.
7551 (getMessage): Added @return tag.
7553 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
7555 * java/awt/Font.java (deriveFont): Implement missing variants.
7556 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
7559 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
7561 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
7562 Set method->index values for interface methods to their itable index.
7563 (initializeClass): Call _Jv_LayoutInterfaceMethods.
7565 2004-04-21 Michael Koch <konqueror@gmx.de>
7567 * java/nio/DirectByteBufferImpl.java
7568 (shiftDown): Made static, give address as argument and
7569 provide a convenience method that overwrites shiftDown in
7570 ByteBufferImpl and calls the native shiftDown.
7571 * java/nio/MappedByteBufferImpl.java
7572 (): Use optimized method in DirectByteBufferImpl.
7573 * java/nio/natDirectByteBufferImpl.cc
7574 (shiftDown): Changed method signature. Removed usage of array_offset.
7576 2004-04-21 Michael Koch <konqueror@gmx.de>
7578 * gnu/java/net/natPlainSocketImplPosix.cc
7579 (SocketInputStream::read): Make sure returned data is a byte value.
7581 2004-04-21 Michael Koch <konqueror@gmx.de>
7583 * gnu/classpath/ServiceFactory.java,
7584 gnu/classpath/ServiceProviderLoadingAction.java,
7585 javax/imageio/ImageReader.java,
7586 javax/imageio/ImageTranscoder.java,
7587 javax/imageio/ImageWriter.java,
7588 javax/imageio/package.html,
7589 javax/imageio/spi/IIOServiceProvider.java,
7590 javax/imageio/spi/ImageInputStreamSpi.java,
7591 javax/imageio/spi/ImageOutputStreamSpi.java,
7592 javax/imageio/spi/ImageReaderWriterSpi.java,
7593 javax/imageio/spi/ImageTranscoderSpi.java,
7594 javax/imageio/spi/RegisterableService.java,
7595 javax/imageio/spi/ServiceRegistry.java,
7596 javax/imageio/spi/package.html,
7597 javax/imageio/stream/IIOByteBuffer.java,
7598 javax/imageio/stream/ImageInputStream.java,
7599 javax/imageio/stream/ImageOutputStream.java,
7600 javax/imageio/stream/package.html:
7603 (ordinary_java_source_files): Added
7604 gnu/classpath/ServiceFactory.java and
7605 gnu/classpath/ServiceProviderLoadingAction.java.
7606 (javax_source_files): Added
7607 javax/imageio/ImageReader.java,
7608 javax/imageio/ImageTranscoder.java,
7609 javax/imageio/ImageWriter.java,
7610 javax/imageio/spi/IIOServiceProvider.java,
7611 javax/imageio/spi/ImageInputStreamSpi.java,
7612 javax/imageio/spi/ImageOutputStreamSpi.java,
7613 javax/imageio/spi/ImageReaderWriterSpi.java,
7614 javax/imageio/spi/ImageTranscoderSpi.java,
7615 javax/imageio/spi/RegisterableService.java,
7616 javax/imageio/spi/ServiceRegistry.java,
7617 javax/imageio/stream/IIOByteBuffer.java,
7618 javax/imageio/stream/ImageInputStream.java and
7619 javax/imageio/stream/ImageOutputStream.java.
7620 * Makefile.in: Regenerated.
7622 2004-04-21 Michael Koch <konqueror@gmx.de>
7624 * java/util/Properties.java
7625 (load): Fix wrongly merged fix.
7627 2004-04-21 Mark Wielaard <mark@klomp.org>
7629 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
7630 malloc and free buf.
7632 2004-04-21 Dalibor Topic <robilad@kaffe.org>
7634 * javax/naming/AuthenticationException.java,
7635 javax/naming/AuthenticationNotSupportedException.java,
7636 javax/naming/CannotProceedException.java,
7637 javax/naming/CommunicationException.java,
7638 javax/naming/CompoundName.java,
7639 javax/naming/ConfigurationException.java,
7640 javax/naming/ContextNotEmptyException.java,
7641 javax/naming/InitialContext.java,
7642 javax/naming/InsufficientResourcesException.java,
7643 javax/naming/InterruptedNamingException.java,
7644 javax/naming/LimitExceededException.java,
7645 javax/naming/LinkException.java,
7646 javax/naming/LinkLoopException.java,
7647 javax/naming/LinkRef.java,
7648 javax/naming/MalformedLinkException.java,
7649 javax/naming/Name.java,
7650 javax/naming/NameAlreadyBoundException.java,
7651 javax/naming/NameNotFoundException.java,
7652 javax/naming/NamingSecurityException.java,
7653 javax/naming/NoInitialContextException.java,
7654 javax/naming/NoPermissionException.java,
7655 javax/naming/NotContextException.java,
7656 javax/naming/PartialResultException.java,
7657 javax/naming/ReferralException.java,
7658 javax/naming/ServiceUnavailableException.java,
7659 javax/naming/SizeLimitExceededException.java,
7660 javax/naming/TimeLimitExceededException.java,
7661 javax/naming/directory/Attribute.java,
7662 javax/naming/directory/Attributes.java,
7663 javax/naming/directory/SearchResult.java,
7664 javax/naming/event/NamingExceptionEvent.java,
7665 javax/naming/spi/ResolveResult.java:
7668 2004-04-21 Mark Wielaard <mark@klomp.org>
7670 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
7671 Changed C++ comments into C comments. Removed commented out code.
7672 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7674 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
7676 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
7678 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
7680 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
7682 * native/jni/gtk-peer/gthread-jni.c:
7685 2004-04-21 Mark Wielaard <mark@klomp.org>
7687 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
7688 static fields defined in interface.
7689 * javax/awt/JDialog.java: Likewise.
7690 (JDialog): Make constructors public.
7691 (getDefaultCloseOperation): Make public.
7692 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
7693 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
7694 * javax/swing/JViewport.java (JViewport): Make constructor public.
7696 2004-04-21 Michael Koch <konqueror@gmx.de>
7698 * java/util/Map.java
7699 (Entry): Removed redundant "static" modifier.
7700 * java/text/AttributedCharacterIterator.java:
7701 Updated copyright year.
7703 2004-04-20 Michael Koch <konqueror@gmx.de>
7705 * javax/naming/directory/SearchControls.java:
7706 Don't explicitely extend java.lang.Object.
7707 * javax/naming/spi/DirStateFactory.java:
7708 Merged copyright year with GNU classpath.
7710 2004-04-20 Michael Koch <konqueror@gmx.de>
7712 * java/nio/channels/Channels.java:
7713 Merged coding style with GNU classpath.
7715 2004-04-20 Michael Koch <konqueror@gmx.de>
7717 * java/net/ServerSocket.java
7718 Merged coding style from GNU classpath.
7720 2004-04-20 Michael Koch <konqueror@gmx.de>
7722 * java/io/BufferedWriter.java:
7723 Reordered variables to be at top of the class.
7724 (localFlush): Removed redundant final keyword.
7726 2004-04-20 Ingo Proetel <proetel@aicas.com>
7728 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
7730 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7732 * java/text/DecimalFormat.java (scanFix): Removed suffix check
7733 for percent and permill check.
7735 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7737 * java/text/FieldPosition.java
7738 (FieldPosition) Constructor now behaves as it should according
7739 to the java documentation.
7741 2004-04-20 Mark Wielaard <mark@klomp.org>
7743 * java/util/Properties.java: Use the word umlaut, not ä in api
7746 2004-04-20 Michael Koch <konqueror@gmx.de>
7748 * java/nio/Buffer.java,
7749 java/nio/channels/AlreadyConnectedException.java,
7750 java/nio/channels/AsynchronousCloseException.java,
7751 java/nio/channels/ByteChannel.java,
7752 java/nio/channels/CancelledKeyException.java,
7753 java/nio/channels/Channel.java,
7754 java/nio/channels/Channels.java,
7755 java/nio/channels/ClosedByInterruptException.java,
7756 java/nio/channels/ClosedChannelException.java,
7757 java/nio/channels/ClosedSelectorException.java,
7758 java/nio/channels/ConnectionPendingException.java,
7759 java/nio/channels/DatagramChannel.java,
7760 java/nio/channels/FileChannel.java,
7761 java/nio/channels/FileLock.java,
7762 java/nio/channels/FileLockInterruptionException.java,
7763 java/nio/channels/GatheringByteChannel.java,
7764 java/nio/channels/IllegalBlockingModeException.java,
7765 java/nio/channels/IllegalSelectorException.java,
7766 java/nio/channels/InterruptibleChannel.java,
7767 java/nio/channels/NoConnectionPendingException.java,
7768 java/nio/channels/NonReadableChannelException.java,
7769 java/nio/channels/NonWritableChannelException.java,
7770 java/nio/channels/NotYetBoundException.java,
7771 java/nio/channels/NotYetConnectedException.java,
7772 java/nio/channels/OverlappingFileLockException.java,
7773 java/nio/channels/Pipe.java,
7774 java/nio/channels/ReadableByteChannel.java,
7775 java/nio/channels/ScatteringByteChannel.java,
7776 java/nio/channels/SelectableChannel.java,
7777 java/nio/channels/SelectionKey.java,
7778 java/nio/channels/Selector.java,
7779 java/nio/channels/ServerSocketChannel.java,
7780 java/nio/channels/SocketChannel.java,
7781 java/nio/channels/UnresolvedAddressException.java,
7782 java/nio/channels/UnsupportedAddressTypeException.java,
7783 java/nio/channels/WritableByteChannel.java,
7784 java/nio/channels/spi/AbstractInterruptibleChannel.java,
7785 java/nio/channels/spi/AbstractSelectableChannel.java,
7786 java/nio/channels/spi/AbstractSelectionKey.java,
7787 java/nio/channels/spi/AbstractSelector.java,
7788 java/nio/channels/spi/SelectorProvider.java,
7789 java/nio/charset/spi/CharsetProvider.java:
7790 Fixed javadocs and jalopied all over java.nio.
7792 2004-04-20 Michael Koch <konqueror@gmx.de>
7794 * java/nio/ByteBufferImpl.java,
7795 java/nio/CharBufferImpl.java,
7796 java/nio/DirectByteBufferImpl.java,
7797 java/nio/DoubleBufferImpl.java,
7798 java/nio/DoubleViewBufferImpl.java,
7799 java/nio/FloatBufferImpl.java,
7800 java/nio/FloatViewBufferImpl.java,
7801 java/nio/IntBufferImpl.java,
7802 java/nio/IntViewBufferImpl.java,
7803 java/nio/LongBufferImpl.java,
7804 java/nio/LongViewBufferImpl.java,
7805 java/nio/MappedByteBufferImpl.java,
7806 java/nio/ShortBufferImpl.java,
7807 java/nio/ShortViewBufferImpl.java:
7808 Made sure all classes are final and removed final keyword from all
7811 2004-04-20 Michael Koch <konqueror@gmx.de>
7813 * java/rmi/MarshalledObject.java,
7814 java/rmi/Naming.java,
7815 java/rmi/RemoteException.java,
7816 java/rmi/activation/ActivationException.java,
7817 java/rmi/server/ServerCloneException.java,
7818 java/security/AccessController.java,
7819 java/security/AlgorithmParameterGenerator.java,
7820 java/security/AlgorithmParameters.java,
7821 java/security/CodeSource.java,
7822 java/security/Identity.java,
7823 java/security/IdentityScope.java,
7824 java/security/KeyPairGenerator.java,
7825 java/security/KeyStore.java,
7826 java/security/Security.java,
7827 java/security/Signature.java,
7828 java/security/SignatureSpi.java,
7829 java/security/SignedObject.java,
7830 java/security/spec/DSAParameterSpec.java,
7831 java/security/spec/DSAPrivateKeySpec.java,
7832 java/security/spec/DSAPublicKeySpec.java,
7833 java/sql/Array.java,
7834 java/sql/DatabaseMetaData.java,
7835 java/sql/ResultSet.java,
7836 java/text/ChoiceFormat.java,
7837 java/text/CollationElementIterator.java,
7838 java/text/CollationKey.java,
7839 java/text/Collator.java,
7840 java/text/DateFormat.java,
7841 java/text/DateFormatSymbols.java,
7842 java/text/DecimalFormatSymbols.java,
7843 java/text/Format.java,
7844 java/text/ParsePosition.java,
7845 java/text/RuleBasedCollator.java,
7846 java/text/SimpleDateFormat.java,
7847 java/text/StringCharacterIterator.java,
7848 java/util/Collections.java,
7849 java/util/PropertyResourceBundle.java,
7850 java/util/ResourceBundle.java,
7851 java/util/StringTokenizer.java,
7852 java/util/jar/Attributes.java,
7853 java/util/logging/ConsoleHandler.java,
7854 java/util/logging/LogManager.java,
7855 java/util/logging/MemoryHandler.java,
7856 java/util/logging/SocketHandler.java,
7857 javax/naming/NamingException.java:
7858 Fixed javadoc, coding style and argument names all over.
7860 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7862 * java/io/FileDescriptor.java: (FileDescriptor) Added public
7863 constructor. (valid) Added null check.
7865 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7867 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
7868 * java/io/FileOutputStream.java
7869 (FileOutputStream) Reorganized constructors. Constructors now
7870 check whether the given path is directory.
7872 2004-04-20 Michael Koch <konqueror@gmx.de>
7874 * java/net/Authenticator.java,
7875 java/net/BindException.java,
7876 java/net/ConnectException.java,
7877 java/net/ContentHandler.java,
7878 java/net/ContentHandlerFactory.java,
7879 java/net/DatagramPacket.java,
7880 java/net/DatagramSocket.java,
7881 java/net/DatagramSocketImpl.java,
7882 java/net/DatagramSocketImplFactory.java,
7883 java/net/FileNameMap.java,
7884 java/net/HttpURLConnection.java,
7885 java/net/Inet4Address.java,
7886 java/net/Inet6Address.java,
7887 java/net/InetAddress.java,
7888 java/net/InetSocketAddress.java,
7889 java/net/JarURLConnection.java,
7890 java/net/MalformedURLException.java,
7891 java/net/MulticastSocket.java,
7892 java/net/NetPermission.java,
7893 java/net/NetworkInterface.java,
7894 java/net/NoRouteToHostException.java,
7895 java/net/PasswordAuthentication.java,
7896 java/net/PortUnreachableException.java,
7897 java/net/ProtocolException.java,
7898 java/net/ServerSocket.java,
7899 java/net/Socket.java,
7900 java/net/SocketAddress.java,
7901 java/net/SocketException.java,
7902 java/net/SocketImpl.java,
7903 java/net/SocketImplFactory.java,
7904 java/net/SocketOptions.java,
7905 java/net/SocketPermission.java,
7906 java/net/SocketTimeoutException.java,
7908 java/net/URISyntaxException.java,
7910 java/net/URLClassLoader.java,
7911 java/net/URLConnection.java,
7912 java/net/URLDecoder.java,
7913 java/net/URLEncoder.java,
7914 java/net/URLStreamHandler.java,
7915 java/net/URLStreamHandlerFactory.java,
7916 java/net/UnknownHostException.java,
7917 java/net/UnknownServiceException.java:
7918 Fixed javadocs, coding style and argument names all over.
7920 2004-04-20 Michael Koch <konqueror@gmx.de>
7922 * java/lang/Byte.java,
7923 java/lang/CharSequence.java,
7924 java/lang/ClassLoader.java,
7925 java/lang/Compiler.java,
7926 java/lang/Double.java,
7927 java/lang/Float.java,
7928 java/lang/Integer.java,
7929 java/lang/Long.java,
7930 java/lang/Math.java,
7931 java/lang/Number.java,
7932 java/lang/Package.java,
7933 java/lang/Runtime.java,
7934 java/lang/RuntimePermission.java,
7935 java/lang/SecurityManager.java,
7936 java/lang/Short.java,
7937 java/lang/StringBuffer.java,
7938 java/lang/System.java,
7939 java/lang/ThreadGroup.java,
7940 java/lang/Throwable.java,
7941 java/lang/reflect/InvocationHandler.java,
7942 java/lang/reflect/Proxy.java:
7943 Fixed javadocs, coding style and argument names all over.
7945 2004-04-20 Michael Koch <konqueror@gmx.de>
7947 * java/io/BufferedWriter.java,
7948 java/io/ByteArrayInputStream.java,
7949 java/io/CharArrayWriter.java,
7950 java/io/DataInput.java,
7951 java/io/DataInputStream.java,
7953 java/io/FilterInputStream.java,
7954 java/io/InputStream.java,
7955 java/io/InputStreamReader.java,
7956 java/io/ObjectInputStream.java,
7957 java/io/ObjectStreamClass.java,
7958 java/io/PipedInputStream.java,
7959 java/io/PipedReader.java,
7960 java/io/PushbackInputStream.java,
7961 java/io/PushbackReader.java,
7962 java/io/RandomAccessFile.java,
7963 java/io/SerializablePermission.java,
7964 java/io/StreamTokenizer.java,
7965 java/io/StringWriter.java,
7966 java/io/WriteAbortedException.java,
7967 java/io/Writer.java:
7968 Fixed javadocs all over, rename arguments to match javadocs,
7971 2004-04-20 Ingo Proetel <proetel@aicas.com>
7973 * java/awt/FontMetrics.java:
7974 (charsWidth): fixed accumulation of total_width
7975 (getWidth): simple default implementation
7976 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
7977 in Rectangle constructor.
7978 * java/awt/image/Raster.java (toString): Added method.
7979 * java/awt/image/SampleModel.java (<init>): Added error cause
7980 information to thrown exception.
7981 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
7983 (setDataElements): New method.
7984 (setPixels): New method.
7985 (toString): New method.
7987 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7989 * java/awt/image/ComponentColorModel.java
7990 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
7991 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
7992 Mauve tests on this method. Improved documentation.
7994 2004-04-20 Michael Koch <konqueror@gmx.de>
7996 * javax/swing/JLayeredPane.java,
7997 javax/swing/plaf/BorderUIResource.java,
7998 javax/swing/plaf/ComponentUI.java,
7999 javax/swing/undo/CompoundEdit.java,
8000 javax/swing/undo/StateEdit.java:
8001 Fixed HTML tags in javadocs all over.
8003 2004-04-20 Michael Koch <konqueror@gmx.de>
8005 * javax/print/attribute/EnumSyntax.java
8006 (getOffset): Made protected.
8007 * javax/print/attribute/HashAttributeSet.java
8008 (HashAttributeSet): Likewise.
8009 * javax/print/attribute/ResolutionSyntax.java
8010 (getFeedResolution): Fixed typo in exception name.
8011 (getCrossFeedResolution): Likewise.
8012 * javax/print/attribute/SetOfIntegerSyntax.java
8013 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
8014 * javax/print/attribute/TextSyntax.java
8015 (TextSyntax): Handle locale correctly.
8016 (hashCode): Calc better hashcode value.
8017 (equals): Fixed @return tag.
8018 (toString): New method.
8020 2004-04-20 Michael Koch <konqueror@gmx.de>
8022 * gnu/java/nio/FileLockImpl.java
8023 (static): Removed, not needed anymore.
8024 * gnu/java/nio/channels/FileChannelImpl.java
8025 (FileChannelImpl): Made final.
8026 (mode): Made private.
8027 (READ, WRITE, APPEND): Made public.
8028 (EXCL, SYNC, DSYNC): Likewise.
8029 (static): Load native JNI library, when needed.
8030 (length): Unused, removed.
8031 (available): Made public.
8032 (implPosition): Throws IOException.
8034 (implTruncate): Likewise.
8038 2004-04-20 Michael Koch <konqueror@gmx.de>
8040 * java/awt/AWTPermission.java,
8041 java/awt/Component.java,
8042 java/awt/ComponentOrientation.java,,
8043 java/awt/Dialog.java,
8044 java/awt/FontMetrics.java,
8045 java/awt/Graphics.java,
8046 java/awt/datatransfer/DataFlavor.java,
8047 java/beans/Introspector.java,
8048 java/beans/PropertyEditor.java,
8049 java/beans/PropertyEditorManager.java,
8050 java/beans/beancontext/BeanContextServiceProvider.java:
8051 Fixed HTML tags in javadocs all over.
8053 2004-04-20 Mark Wielaard <mark@klomp.org>
8055 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
8056 MissingResourceException is thrown.
8057 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
8058 null when a MissingResourceException is thrown. Should never happen.
8060 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
8062 * java/awt/image/DataBufferShort.java,
8063 java/awt/image/DataBufferFloat.java,
8064 java/awt/image/DataBufferDouble.java,
8065 java/awt/image/PixelInterleavedSampleModel.java: New files.
8066 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
8067 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
8069 2004-04-20 Michael Koch <konqueror@gmx.de>
8071 * Makefile.am (java_source_files): Added
8072 java/awt/image/DataBufferDouble.java,
8073 java/awt/image/DataBufferFloat.java,
8074 java/awt/image/DataBufferShort.java and
8075 java/awt/image/PixelInterleavedSampleModel.java.
8076 * Makefile.in: Regenerated.
8078 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
8080 * gcj/cni.h (JvAllocObject): Remove these obsolete,
8081 undocumented CNI calls.
8082 * include/java-interp.h (_Jv_InterpClass): No longer
8083 extends java.lang.Class.
8084 * java/lang/Class.h (Class): Add new field `aux_info'.
8085 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
8086 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
8087 Use Class->aux_info instead.
8088 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
8089 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
8090 Use Class->aux_info instead.
8091 * java/io/natObjectInputStream.cc (allocateObject): Use
8093 * java/lang/natClass.cc (newInstance): Likewise.
8094 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
8095 * java/lang/natObject.cc (clone): Likewise.
8096 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
8097 * java/lang/natVMClassLoader.cc (defineClass): Don't use
8098 JvAllocObject. Allocate klass->aux_info here for interpreted
8101 2004-04-17 Mark Wielaard <mark@klomp.org>
8103 * javax/swing/JToggleButton.java (ToggleButtonModel):
8104 Make public static inner class.
8105 * javax/swing/JTabbedPane.java (setComponentAt):
8106 Call Page.setComponent().
8107 (SCROLL_TAB_LAYOUT): Make public, value is 1.
8108 (WRAP_TAB_LAYOUT): Make public, value is 0.
8109 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
8110 Make private static inner class.
8112 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
8114 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
8115 arguments to match new signature. Remove FIXME comments.
8117 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
8119 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
8121 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
8124 2004-04-02 Olga Rodimina <rodimina@redhat.com>
8126 * Makefile.am: Added new file.
8127 * Makefile.in: Regenerate.
8128 * javax/swing/ImageIcon.java:
8129 (ImageIcon(file)): set description of the icon
8131 * javax/swing/JCheckBoxMenuItem.java:
8132 Mostly Implemented. Work in progress.
8133 * javax/swing/JRadioButtonMenuItem.java:
8134 Reimplement constructors to use JToggleButtonModel.
8135 * javax/swing/plaf/basic/BasicIconFactory.java:
8136 (getCheckBoxMenuItemIcon): return check box
8138 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8139 paint menu item selected only when it is armed and
8142 2004-04-02 David Jee <djee@redhat.com>
8144 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
8145 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
8146 * java/awt/Component.java
8147 (add): Set the parent of the popup as this component.
8148 * java/awt/PopupMenu.java
8149 (addNotify): Create popup menu when peer is null.
8150 (show): Call addNotify() if peer is null.
8151 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
8152 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
8153 argument for gtk_menu_popup() as zero. This causes the popup menu to
8154 respond to any mouse button.
8156 2004-03-31 Olga Rodimina <rodimina@redhat.com>
8158 * Makefile.am: Added new file.
8159 * Makefile.in: Regenerate.
8160 * javax/swing/JRadioButtonMenuItem.java:
8162 * javax/swing/plaf/basic/BasicIconFactory.java:
8163 (getRadioButtonMenuItemIcon): Return
8165 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8166 (getPreferredSize): Add size of checkIcon if it
8168 (installDefaults): Don't initialize checkIcon.
8169 It's value will be set in subclasses.
8170 (uninstallDefaults): remove uninstallation of
8172 (paint): Moved code to paintMenuItem().
8173 (paintMenuItem): Implemented.
8174 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
8175 UI delegate for JRadioButtonMenuItem.
8177 2004-03-29 Olga Rodimina <rodimina@redhat.com>
8179 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8180 Corrected position of the accelerator.
8182 2004-03-29 Olga Rodimina <rodimina@redhat.com>
8184 * Makefile.am: Added new file.
8185 * Makefile.in: Regenerate.
8186 * javax/swing/JMenuItem.java: Partly
8187 implemented. Work in progress
8188 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8189 Changed default value of acceleratorDelimiter.
8190 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8191 New class. Partly implemented.
8193 2004-03-26 Mark Wielaard <mark@klomp.org>
8195 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8196 (item_activate): Declare label before use.
8197 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8198 (gtkSetFont): Removed unused variable label.
8199 (addExposeFilter): Declare variables before use.
8200 (removeExposeFilter): Likewise.
8201 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8202 (ok_clicked): Declare str_fileName before use.
8204 2004-03-26 David Jee <djee@redhat.com>
8206 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
8207 (addSeparator): Remove.
8208 * java/awt/Menu.java
8209 (separator): Remove static final MenuItem field.
8210 (separatorLabel): New static final String field.
8211 (addSeparator): Do not use peer method; use add(MenuItem) instead.
8212 Use separatorLabel to denote that it is a separator.
8213 (insertSeparator): Create a new MenuItem with separatorLabel, instead
8214 of reusing the static separator instance, because a MenuItem instance
8215 can't be added more than once without being cloned.
8216 * java/awt/peer/MenuPeer.java
8217 (addSeparator): Remove from interface.
8219 2004-03-26 David Jee <djee@redhat.com>
8221 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
8222 (connectSignals): New native method declaration.
8223 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
8224 * java/awt/MenuItem.java
8225 (getActionCommand): Return the label if the action command is not set.
8226 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
8227 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
8228 gtk_menu_shell_append().
8229 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
8230 (item_activate): Fix argument type.
8231 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
8233 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
8235 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
8236 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
8237 given. Add the menu widget's top-level GtkWindow to the global window
8238 group, so it can grab the pointer.
8239 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
8240 gtk_menu_shell_append().
8242 2004-03-23 Graydon Hoare <graydon@redhat.com>
8244 * java/text/AttributedString.java
8245 (addAttribute): Fix off-by-one.
8246 (getIterator): Likewise.
8247 * java/text/AttributedStringIterator.java
8248 (getRunLimit): Correct logic.
8249 (getRunStart): Likewise.
8250 (getAttribute): Fix inequality.
8251 (getAttributes): Likewise.
8252 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
8254 2004-03-23 Kim Ho <kho@redhat.com>
8256 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
8257 (calculateSizes): Return real width and height.
8259 2004-03-23 Kim Ho <kho@redhat.com>
8261 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
8262 (calculateTabRects): Set the selectedRun before
8263 trying to rotate tabs.
8265 2004-03-23 Kim Ho <kho@redhat.com>
8267 * Makefile.am: New file
8268 * Makefile.in: Regenerate
8269 * java/awt/Graphics.java: (drawRect):
8270 Draw to the correct point.
8271 * javax/swing/DefaultSingleSelectionModel.java
8272 (isSelected): Return true if the selected index
8274 * javax/swing/JLabel.java: Do not change mnemonic
8275 index if text is null.
8276 * javax/swing/JProgressBar.java: Use JComponent's
8278 * javax/swing/JScrollBar.java: Ditto.
8279 * javax/swing/JSlider.java: Ditto.
8280 * javax/swing/JTabbedPane.java: Reimplement.
8281 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8282 Add defaults for TabbedPane.
8283 * javax/swing/plaf/basic/BasicArrowButton.java:
8285 * javax/swing/plaf/basic/BasicProgressBarUI.java:
8286 (paintDeterminate): Don't paint String if it's
8288 (paintIndeterminate): ditto.
8289 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
8292 2004-03-19 Michael Koch <konqueror@gmx.de>
8294 * java/awt/image/AffineTransformOp.java
8295 (AffineTransformOp): Made public.
8296 * javax/swing/JComponent.java
8297 (listenerList): Made protected.
8298 (accessibleContext): Likewise.
8299 * javax/swing/JList.java
8300 (valueChanged): Dont use internal fields of ListSelectionEvent.
8301 * javax/swing/JViewport.java
8302 (getView): Dont use internal fields of Component.
8303 (addImpl): Likewise.
8304 * javax/swing/Timer.java
8305 (isRunning): Made public.
8308 * javax/swing/UIDefaults.java
8309 (getInt): Made public.
8310 * javax/swing/plaf/basic/BasicListUI.java
8311 (mousePressed): Dont use internal fields of MouseEvent.
8312 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
8313 * javax/swing/plaf/basic/BasicScrollBarUI.java
8314 (arrowIcon): Made static.
8315 * javax/swing/plaf/basic/BasicViewportUI.java
8316 (stateChanged): Dont use internal field on ChangeEvent.
8317 * javax/swing/text/JTextComponent.java
8318 (getUI): Call UIManager.getUI().
8319 (updateUI): Use getUI().
8321 2004-03-19 Graydon Hoare <graydon@redhat.com>
8323 * javax/swing/JComponent.java: Turn off double buffer by default.
8324 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
8325 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8326 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
8327 Use cairo to copy areas.
8328 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
8329 Initialize and set clip region.
8331 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
8333 * java/applet/Applet.java (preferredSize): Override deprecated
8334 variant of getPreferredSize.
8335 (minimumSize): Override deprecated variant of getMinimumSize.
8337 2004-03-15 Olga Rodimina <rodimina@redhat.com>
8339 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8340 (drawImage(img,xform,bgcolor,obs)): New Method.
8341 Helper function that every drawImage method will
8343 (drawRaster): Added new parameter, bgcolor. All
8344 transparent pixels are changed to bgcolor before
8346 (drawRenderedImage): Fixed to use changed drawRaster().
8347 (drawImage(image,xform,obs): Fixed to use new helper function
8348 (drawImage(image,op,x,y)): Ditto.
8349 (drawImage (img,x,y,observer)): Ditto.
8350 ((PainterThread) bgcolor): New Field.
8351 ((PainterThread) (setPixels)): Changed all transparent pixels
8353 (drawImage(img,x,y,width,height,bgcolor,observer)):
8354 Fixed FIXME - all the transparent pixels are
8355 changed to the specified bgcolor.
8356 (drawImage(img, x, y, width, height, observer): Changed to
8358 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
8359 Fixed FIXME- changed all transparent pixels to bgcolor.
8360 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
8361 Changed to use function above.
8363 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
8365 * java/applet/Applet.java (dimensions): New field.
8366 (getDimensions): New method.
8367 (getPreferredSize): Call getDimensions.
8368 (getMinimumSize): Likewise.
8370 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8372 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
8373 * jni/classpath/jnilink.c: Likewise.
8375 * java/applet/Applet.java (getPreferredSize): New method.
8376 (getMinimumSize): New method.
8378 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
8380 * prims.cc (_Jv_AllocObject): Remove `size' argument.
8381 (_Jv_AllocObjectNoFinalizer): Likewise.
8382 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
8383 (_Jv_AllocPtrFreeObject): Likewise.
8384 (_Jv_AllocString): Moved from natString.cc. Call collector interface
8385 directly even in the JVMPI case.
8386 * gcj/cni.h (JvAllocObject): Remove `size' argument from
8387 _Jv_AllocObject calls.
8388 * gcj/javaprims.h: Update prototypes.
8389 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
8390 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
8391 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
8393 2004-04-14 Andrew Haley <aph@redhat.com>
8394 Bryce McKinlay <mckinlay@redhat.com>
8396 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
8397 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
8398 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
8400 * testsuite/libjava.lang/InvokeInterface.java: New file.
8401 * testsuite/libjava.lang/InvokeInterface.out: New file.
8403 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
8405 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
8407 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
8408 StackTraceElement directly.
8409 (newElement): New native helper method to create StackTraceElement
8410 bypassing Java access control.
8411 (createStackTraceElement): Use newElement() instead of directly
8412 calling StackTraceElement's constructor.
8413 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
8415 2004-04-01 Michael Koch <konqueror@gmx.de>
8417 * java/lang/SecurityManager.java
8418 (checkAwtEventQueueAccess): Implemented.
8420 2004-04-01 Gary Benson <gbenson@redhat.com>
8422 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
8423 (_Jv_SearchMethodInClass): Likewise.
8425 2004-03-26 Peter Moon <peterm@miraculum.com>
8427 * java/text/NumberFormat.java: Fix spelling of setCurrency
8430 2004-03-21 Anthony Green <green@redhat.com>
8432 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
8433 recursion when searching for the system ClassLoader.
8435 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
8437 * java/net/ServerSocket.java
8438 (accept): Close the socket when error occured.
8440 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
8442 * java/net/URI.java (parseURI): Added unquoting.
8443 (unquote): New method.
8444 (quoteAuthority): Implemented.
8445 (quote(String,String)): New method.
8446 (quotePath): Implemented.
8447 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
8448 (getSchemeSpecificPart): Removed FIXME comment.
8449 (getRawAuthority): Return new rawAuthority field.
8450 (getAuthority): Removed FIXME comment.
8451 (getRawUserInfo): Return new rawUserInfo field.
8452 (getUserInfo): Removed FIXME comment.
8453 (getRawPath): Return new rawPath field.
8454 (getPath): Removed FIXME comment.
8455 (getRawQuery): Return new rawQuery field.
8456 (getQuery): Removed FIXME comment.
8457 (getRawFragment): Return new rawFragment field.
8458 (getFragment): Removed FIXME comment.
8460 2004-03-20 Michael Koch <konqueror@gmx.de>
8462 * java/net/URLConnection.java: Merged copyright year with classpath.
8464 2004-03-20 Norbert Frese <postfach@nfrese.net>
8466 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
8467 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
8468 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
8470 (getObjectInputStream): Return object reference, throw IOException if null.
8471 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
8472 (getObjectOutputStream): Return object reference, throw IOException if null.
8473 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
8474 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
8475 (UnicastConnectionManager): Throw RemoteException if port is not available.
8476 (getInstance): Throw RemoteException.
8477 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
8478 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
8479 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8480 Collect Exceptions which are returned by a rmi-call and fix void returns.
8481 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
8482 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8483 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
8484 (dispatch): Answer ping messages which are sent by other java implementions.
8485 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
8486 for every rmi-message and fix void return problems.
8487 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
8488 (UnicastServerRef): Throw RemoteException.
8489 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
8490 In some situations it is necessary to export a subclass of the class which has the _Stub.
8491 For instance when the class with has the _Stub is abstract.
8492 (findStubSkelClass): New method which looks for the class which has the _Stub.
8493 (getClientHost): Implementated.
8494 * gcc/libjava/java/rmi/server/RemoteServer.java
8495 (getClientHost): Implementated.
8496 * gcc/libjava/Makefile.am (rmi_java_source_files):
8497 Added gnu/java/rmi/server/RMIIncomingThread.java.
8498 * Makefile.in: Regenerated.
8500 2004-03-20 Michael Koch <konqueror@gmx.de>
8502 * java/net/InetAddress.java
8503 (getLocalHostname): Added javadoc.
8505 2004-03-19 Per Bothner <per@bothner.com>
8507 * configure.in: FILE variable overrides FLATFORM when linking
8508 natFileChannelXXX.cc.
8510 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
8511 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
8513 2004-03-19 Per Bothner <per@bothner.com>
8515 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
8516 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
8517 * Makefile.am: Update accordingly.
8518 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
8519 as aliases for UnicodeLittle and UnicodeBig.
8521 2004-03-20 Mark Wielaard <mark@klomp.org>
8523 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8524 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
8525 Don't access ws when it is null.
8526 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
8529 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
8531 * java/lang/ThreadGroup.java (list): Changed print to println.
8533 2004-03-19 Mark Wielaard <mark@klomp.org>
8535 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
8538 2004-02-10 Randolph Chung <tausq@debian.org>
8540 * configure.in: Build java for hppa target.
8541 * configure: Regenerate.
8542 * libjava/configure.host (hppa-*): Add target.
8543 * libjava/sysdeps/pa/lock.h: New file.
8545 2004-03-19 Mark Wielaard <mark@klomp.org>
8547 Reported by Stephen Crawley
8548 * java/io/FilePermission.java (implies): Use String.length() -1 to
8549 access last char of String.
8551 2004-03-19 Michael Koch <konqueror@gmx.de>
8553 * java/awt/image/AffineTransformOp.java
8554 (AffineTransformOp): Made public.
8555 * javax/swing/JComponent.java
8556 (listenerList): Made protected.
8557 (accessibleContext): Likewise.
8558 * javax/swing/JList.java
8559 (valueChanged): Dont use internal fields of ListSelectionEvent.
8560 * javax/swing/JViewport.java
8561 (getView): Dont use internal fields of Component.
8562 (addImpl): Likewise.
8563 * javax/swing/Timer.java
8564 (isRunning): Made public.
8567 * javax/swing/UIDefaults.java
8568 (getInt): Made public.
8569 * javax/swing/plaf/basic/BasicListUI.java
8570 (mousePressed): Dont use internal fields of MouseEvent.
8571 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
8572 * javax/swing/plaf/basic/BasicScrollBarUI.java
8573 (arrowIcon): Made static.
8574 * javax/swing/plaf/basic/BasicViewportUI.java
8575 (stateChanged): Dont use internal field on ChangeEvent.
8576 * javax/swing/text/JTextComponent.java
8577 (getUI): Call UIManager.getUI().
8578 (updateUI): Use getUI().
8580 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8582 * verify.cc: Undef PC.
8584 2004-03-18 Michael Koch <konqueror@gmx.de>
8586 * java/nio/channels/spi/AbstractSelectableChannel.java
8587 (keys): Initialize at declaration.
8588 (locate): keys cant be null.
8590 (addSelectionKey): New method.
8591 (removeSelectionKey): New method.
8592 * java/nio/channels/spi/AbstractSelectionKey.java
8593 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
8594 * java/nio/channels/spi/AbstractSelector.java
8595 (provider): Javadoc added.
8596 (cancelledKeys): Javadoc added.
8597 (cancelKey): Javadoc added, add key to cancelledKeys.
8598 (deregister): Implemented.
8600 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8602 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
8603 MAP_FAILED to void *.
8605 2004-03-12 Graydon Hoare <graydon@redhat.com>
8607 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
8608 * javax/swing/JComponent.java (paint): Use persistent double buffer.
8609 * javax/swing/JList.java (ListListener): Revalidate on changes.
8610 * javax/swing/JScrollPane.java: Reimplement.
8611 * javax/swing/JViewport.java: Reimplement.
8612 * javax/swing/ScrollPaneLayout.java: Reimplement.
8613 * javax/swing/ViewportLayout.java: Tidy up.
8614 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
8615 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
8616 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
8617 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
8620 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
8622 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8623 (window_wm_protocols_filter): New function.
8624 (window_focus_in_cb): Remove function.
8625 (window_focus_out_cb): Likewise.
8626 (window_focus_or_active_state_change_cb): New function.
8627 (create): Add filter that removes WM_TAKE_FOCUS client messages.
8628 (connectSignals): Don't attach handlers to focus-in-event or
8629 focus-out-event signals. Handle notify signal.
8631 2004-03-11 David Jee <djee@redhat.com>
8633 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8634 (gtkSetLabel): New native method declaration.
8635 (setLabel): Use gtkSetLabel.
8636 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8637 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
8639 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
8641 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
8642 black when color argument is null.
8644 2004-03-10 Kim Ho <kho@redhat.com>
8646 * java/awt/Container.java: Remove check
8649 2004-03-10 Kim Ho <kho@redhat.com>
8651 * java/awt/Container.java: (visitChild):
8652 Remove candidate clip. Use the component
8654 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8655 (handleEvent): Use the PaintEvent's clip.
8657 2004-03-10 Kim Ho <kho@redhat.com>
8659 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8660 (handleEvent): Don't set the clip for the
8663 2004-03-09 Graydon Hoare <graydon@redhat.com>
8665 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
8666 Fix double <-> fixed macros, reset font transform.
8667 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
8670 2004-03-09Â Kim Ho <kho@redhat.com>
8672 * java/awt/Container.java: (visitChild): Move
8673 the x and y coordinate of the component rectangle
8674 to correct position.
8675 (handleEvent): Forward drag events to the pressed
8677 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8679 (ArrowButtonListener::mousePressed): Stop the
8681 (mouseDragged): Implement.
8682 (TrackListener::mousePressed): Only react if
8683 the press doesn't occur on the thumb, otherwise
8684 just set the offset.
8685 (TrackListener::mouseReleased): Unset the isAdjusting
8687 (createIncreaseIcon): Switch icon.
8688 (createDecreaseIcon): Switch icon.
8689 (calculatePreferredSize): Use width.
8690 (getThumbBounds): Use the top as the lower value.
8691 (layoutVScrollBar): Switch the button locations.
8692 (paintIncreaseHighlight): Paint correct side of thumb.
8693 (paintDecreaseHighlight): ditto.
8694 (valueForYPosition): Use top as the lower value.
8695 * javax/swing/plaf/basic/BasicSliderUI.java:
8697 (mouseDragged): Implement.
8698 (mousePressed): Only react when the thumb isn't
8699 pressed, otherwise just set offset.
8700 (mouseReleased): Handle a release of the thumb.
8701 (scrollDueToClickInTrack): Stop the timer first.
8702 * javax/swing/JProgressBar.java:
8703 (setString): Fix change condition.
8704 * javax/swing/JSeparator.java:
8707 2004-03-08 David Jee <djee@redhat.com>
8709 * java/awt/image/AffineTransformOp.java:
8710 (filter): Use Graphics2D interface instead of directly using the
8713 2004-03-05 David Jee <djee@redhat.com>
8715 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
8716 (handleEvent): Action events are generated upon MOUSE_RELEASED.
8717 * java/awt/Container.java
8718 (acquireComponentForMouseEvent): Fixed.
8719 (handleEvent): Fixed.
8720 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8721 (state_to_awt_mods_with_button_states): New method.
8722 (pre_event_handler): Fixed mouse event generation.
8724 2004-03-05 Olga Rodimina <rodimina@redhat.com>
8726 gnu/java/awt/peer/gtk/GdkGraphics2D.java
8727 (GdkGraphics2D (BufferedImage)): Initialize
8728 pixmap associated with specified BufferedImage.
8729 (setPaint): Changed implementation of Texture
8730 Paint to use AffineTransformOp.
8731 * java/awt/image/AffineTransformOp.java
8732 (createCompatibleDestRaster): Throw RasterFormatException
8733 if resulting width or height of raster is 0.
8735 2004-03-04 Olga Rodimina <rodimina@redhat.com>
8737 * java/awt/image/AffineTransformOp.java:
8738 Removed unnecessary field interpolationType.
8739 Formatted some of the lines to be consistent with
8741 (AffineTransformOp): Create new RenderingHints
8742 containing specified interpolation type.
8743 (createCompatibleDestImage): Implemented.
8744 (createCompatibleDestRaster): Implemented.
8745 (filter): Implemented.
8746 (getBounds2D(BufferedImage)): Implemented.
8747 (getBounds2D(Raster)): Implemented.
8748 (getInterpolationType): Get interpolation value from
8751 2004-03-04 David Jee <djee@redhat.com>
8753 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8754 (setFont): Check if child peers are null.
8756 2004-03-04 Graydon Hoare <graydon@redhat.com>
8758 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
8760 (libjava_arguments): Add new libraries to argument list.
8762 2004-03-02 Olga Rodimina <rodimina@redhat.com>
8764 * Makefile.am: Added java/awt/image/AffineTransformOp.java
8765 * Makefile.in: Re-generated.
8766 * java/awt/image/AffineTransformOp.java: New Class.
8768 2004-03-01 Olga Rodimina <rodimina@redhat.com>
8770 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8771 (setPaint): Interpret correctly TexturePaint's
8773 (drawImage): Fixed scale factors of the affine
8776 2004-02-27 David Jee <djee@redhat.com>
8778 * gnu/java/awt/peer/gtk/GdkGraphics.java
8779 (GdkGraphics(Component)): Inherit font from component.
8780 (drawString): Use font style.
8781 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8782 (gtkSetFont): New native method declaration.
8783 (setFont): New method.
8784 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8785 (gtkSetFont): New native method declaration.
8786 (setFont): Call new native method gtkSetFont.
8787 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8788 (setFont): For all child components who do not their fonts set,
8789 set their peers' fonts with this container's font.
8790 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
8791 Move all native method declarations to the top for readability.
8792 (gtkSetFont): New native method declaration.
8793 (setFont): New method.
8794 * java/awt/Component.java
8795 (setFont): Invalidate after setting the font.
8796 * java/awt/Container.java
8797 (invalidateTree): New method.
8798 (setFont): Invalidate the container tree after setting the font.
8799 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
8800 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
8801 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8802 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
8803 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8804 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
8805 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
8806 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
8808 2004-02-27 Olga Rodimina <rodimina@redhat.com>
8810 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8811 (updateBufferedImage): New helper function.
8812 Updates BufferedImage in memory if it was changed.
8813 (draw): changed to update BufferedImage in memory after
8814 this drawing operation
8816 (draw3DRect): Ditto.
8817 (fill3DRect): Ditto.
8819 (drawRaster): Ditto.
8820 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
8821 no affine transformation.
8822 (drawGlyphVector): Ditto.
8824 2004-02-26 Olga Rodimina <rodimina@redhat.com>
8826 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8827 (isBufferedImageGraphics): New Helper function.
8828 Returns true if this graphics2d can be used to draw
8829 into buffered image and false otherwise.
8830 (updateImagePixels): New Helper function.
8831 Updates pixels in the BufferedImage.
8832 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8833 (getImagePixels): New function. Returns pixels
8834 of the buffered image associated with
8837 2004-02-26 David Jee <djee@redhat.com>
8839 * java/awt/BorderLayout.java
8840 (layoutContainer): Fix width and height calculations to ensure
8841 that they're non-negative.
8842 * java/awt/Component.java
8843 (setBackground): If c is null, inherit from closest ancestor whose
8844 background color is set.
8846 2004-02-26 Kim Ho <kho@redhat.com>
8848 * Makefile.am: Add new files.
8849 * Makefile.in: Re-generate.
8850 * javax/swing/JProgressBar.java:
8851 (JProgressBar(int, int int)): Throw
8852 IllegalArgumentException if orientation is
8854 (JProgressBar(BoundedRangeModel)): Create
8855 ChangeListener and register it. UpdateUI.
8856 (getChangeListeners): Implement.
8857 (setModel): Reset ChangeListener.
8858 * javax/swing/JScrollBar.java: Implement.
8859 * javax/swing/JSeparator.java: Implement.
8860 * javax/swing/JSlider.java:
8861 (JSlider(int, int, int, int)): Throw
8862 IllegalArgumentException if orientation
8864 (getChangeListeners): Fix method name.
8865 * javax/swing/SwingUtilities.java:
8866 (layoutCompoundLabel): If there is no text,
8867 set the text rectangle dimensions to 0.
8868 * javax/swing/plaf/basic/BasicButtonUI.java:
8869 (paint): If there is no text, don't paint it.
8870 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8872 * javax/swing/plaf/basic/BasicSeparatorUI.java:
8874 * javax/swing/plaf/basic/BasicSliderUI.java:
8875 (propertyChange): If the model changes, change
8876 the listeners accordingly.
8878 2004-02-25 Graydon Hoare <graydon@redhat.com>
8880 * javax/swing/AbstractButton.java: Add "final" qualifiers.
8881 * javax/swing/JList.java: Reimplement.
8882 * javax/swing/DefaultListSelectionModel.java: Reimplement.
8883 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
8884 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
8885 * javax/swing/ListModel.java: Javadoc.
8886 * javax/swing/ListSelectionModel.java: Add missing methods.
8887 * javax/swing/AbstractListModel.java: Javadoc and corrections.
8888 * javax/swing/DefaultListModel.java: Javadoc and corrections.
8889 * javax/swing/ListModel.java: Javadoc and corrections.
8890 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
8892 2004-02-25 David Jee <djee@redhat.com>
8894 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8895 (GtkFontPeer): Change default size to 12.
8896 * gnu/java/awt/peer/gtk/GtkToolkit.java
8897 (getFontPeer): Change default size to 12.
8898 (getClasspathFontPeer): Likewise. Set default name to "Default".
8899 * java/awt/Font.java
8900 (Font(Map)): Call Font(String,Map).
8901 (Font(String,Map)): If attrs is null, initialize it as an empty
8902 HashMap, which will ensure that the Font will get default attributes.
8904 2004-02-25 David Jee <djee@redhat.com>
8906 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8907 (GtkFontPeer(String,int)): Call the new constructor with size 1.
8908 (GtkFontPeer(String,int,int)): New constructor with size attribute.
8909 * gnu/java/awt/peer/gtk/GtkToolkit.java
8910 (getFontPeer(String,int)): Call the new overload method with size 1.
8911 (getFontPeer(String,int,int)): New method. Overloaded with size
8913 (getClasspathFontPeer): Set the size of the font.
8915 2004-02-24 Olga Rodimina <rodimina@redhat.com>
8917 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8918 (bimage): New field.
8919 (GdkGraphics2D): New Constructor. Constructs Graphics
8920 object that can be used to draw into the Buffered Image.
8921 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8922 (GdkGraphicsEnvironment): Fixed to include public
8924 (createGraphics): Implemented.
8925 * gnu/java/awt/peer/gtk/GtkToolkit.java
8926 (getLocalGraphicsEnvironment): Implemented.
8927 * java/awt/GraphicsEnvironment.java:
8928 (getLocalGraphicsEnvironment): Implemented.
8929 * java/awt/image/BufferedImage.java:
8930 (createGraphics): Implemented.
8932 2004-02-24 David Jee <djee@redhat.com>
8934 * java/awt/Component.java
8935 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
8936 * java/awt/Container.java
8937 (addNotifyContainerChildren): Fix event enabling.
8939 2004-02-23 Olga Rodimina <rodimina@redhat.com>
8941 * Makefile.am: Added
8942 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
8943 * Makefile.in: Re-generated.
8944 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8947 2004-02-19 Kim Ho <kho@redhat.com>
8949 * Makefile.am: Add BasicProgressBarUI
8950 * Makefile.in: Regenerate.
8951 * javax/swing/JProgressBar.java:
8953 * javax/swing/plaf/basic/BasicLookAndFeel.java
8954 Add constants for JProgressBar.
8955 * javax/swing/plaf/basic/BasicProgressBarUI.java
8957 * javax/swing/plaf/basic/BasicSliderUI.java
8959 (calculateGeometry): New method
8960 (paint): Remove unnecessary size calculations.
8962 2004-02-18 Olga Rodimina <rodimina@redhat.com>
8964 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8965 (drawRaster): Fixed small error that caused
8966 imageToUser transformation to be set incorrectly.
8967 (toString): Implemented.
8969 2004-02-18 David Jee <djee@redhat.com>
8971 * java/awt/CardLayout.java
8972 (addLayoutComponent): Show the first component added as the default.
8973 (removeLayoutComponent): After removing, show the next component.
8974 (gotoComponent): If there is only one component, show it and return.
8976 2004-02-18 Kim Ho <kho@redhat.com>
8978 * javax/swing/JSlider.java: Re-order
8980 * javax/swing/JLabel.java: Re-order
8982 * javax/swing/JComponent.java:
8983 (addPropertyChangeListener):
8985 (removePropertyChangeListener):
8987 (firePropertyChangeEvent):
8990 2004-02-17 David Jee <djee@redhat.com>
8992 * java/awt/Component.java
8993 (show): Dispatch ComponentEvent via system event queue.
8997 (reshape): Likewise.
8998 * java/awt/Window.java
8999 (setBoundsCallback): Likewise.
9001 2004-02-17 David Jee <djee@redhat.com>
9003 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9004 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
9005 Use gtk_widget_set_size_request() instead of the deprecated
9006 gtk_widget_set_usize().
9008 2004-02-17 Kim Ho <kho@redhat.com>
9010 * javax/swing/JSlider.java: Fix comments and
9011 make property strings constants.
9012 (createStandardLabels): Use the labels
9013 preferred size as bounds.
9014 * javax/swing/plaf/basic/BasicSliderUI.java
9016 (ScrollHandler::actionPerformed): Don't
9017 calculate the timer stop value. Let the
9018 MouseListeners find the stop location.
9019 (getPreferredHorizontalSize): Re-implement.
9020 (getPreferredVerticalSize): ditto.
9021 (getMinimumHorizontalSize): ditto.
9022 (getMinimumVerticalSize): ditto.
9023 (getPreferredSize): ditto.
9024 (getMinimumSize): ditto.
9025 (getMaximumSize): ditto.
9026 (paintTicks): Use doubles to find the
9028 (paintHorizontalLabel):Â Use preferredSize
9029 as initial width and height.
9030 (paintVerticalLabel): ditto.
9032 2004-02-17 Kim Ho <kho@redhat.com>
9034 * javax/swing/JLabel.java: Changed
9035 property strings to constants.
9036 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
9038 (setText): Change mnemonic index if
9040 (setDisplayedMnemonicIndex): Fire property
9042 (getDisplayedMnemonicIndex): Remove check
9045 2004-02-17 Olga Rodimina <rodimina@redhat.com>
9047 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
9048 (drawImage(img,xform,obs)): Invert xform before
9049 passing the xform to cairo.
9050 (drawImage(img,x,y,bgcolor,obs)): Implemented.
9051 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
9053 (drawImage (img,x,y,w,h,obs)): Implemented.
9054 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
9055 bgcolor,obs)): Partly implemented.
9056 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
9058 * java/awt/image/BufferedImage.java:
9059 (copyData): if dest is null, create raster with same
9060 dimensions as the current image.
9062 2004-02-16 Graydon Hoare <graydon@redhat.com>
9064 * javax/swing/plaf/basic/BasicLabelUI.java
9065 (getPreferredSize): Use layoutCL.
9066 * javax/swing/plaf/basic/BasicGraphicsUtils.java
9067 (getPreferredButtonSize): Start with empty view rect, layout using
9068 component's preferred alignment.
9069 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
9072 2004-02-16 David Jee <djee@redhat.com>
9074 * java/awt/Component.java
9075 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
9076 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
9077 (move): Erase old bounds and repaint new bounds. Dispatch
9078 COMPONENT_MOVED ComponentEvent.
9079 (resize): Erase old bounds and repaint new bounds. Dispatch
9080 COMPONENT_RESIZED ComponentEvent.
9081 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
9083 * java/awt/Window.java
9084 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
9087 2004-02-16 Olga Rodimina <rodimina@redhat.com>
9089 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
9090 (setRenderingHint): Added implementation of
9091 Interpolation rendering hints.
9092 (setRenderingHints): Ditto.
9093 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
9094 (drawPixels): fixed to allow user to choose type
9095 of filtering that should be used when displaying images.
9096 (cairoSurfaceSetFilter): New method. Sets filter type for
9097 interpolation of pixel values.
9099 2004-02-16 David Jee <djee@redhat.com>
9101 * java/awt/GridBagLayout.java
9102 (calcCellSizes): Rows or columns with zero sizes should still be
9103 considered for extra space distribution.
9105 2004-02-16 Kim Ho <kho@redhat.com>
9107 * javax/swing/JLabel.java: Re-implement.
9108 * javax/swing/plaf/basic/BasicLabelUI.java
9110 * javax/swing/plaf/basic/BasicLookAndFeel.java:
9113 2004-02-16 Kim Ho <kho@redhat.com>
9115 * javax/swing/JSlider.java: Fix indentation and comments.
9116 (setModel): Remove null check to conform with Sun's.
9117 (setOrientation): Throw exception if not
9118 HORIZONTAL or VERTICAL.
9119 (getInverted): Use private variable instead of
9120 ComponentOrientation.
9121 (setInverted): ditto.
9122 * javax/swing/plaf/basic/BasicSliderUI.java:
9123 Fix indentation and comments.
9124 (propertyChange): Remove check for inverted slider, handle
9126 (getMinimumSize): Return preferred size.
9127 (getMaximumSize): ditto.
9128 (calculateFocusRect): Don't relocate rectangle.
9129 (drawInverted): Return XOR of the slider's inversion and
9130 the component's orientation.
9131 (paint): Update leftToRightCache
9133 2004-02-13 David Jee <djee@redhat.com>
9135 * java/awt/GridBagLayout.java
9136 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
9137 code to helper methods.
9138 (sortBySpan): New helper method.
9139 (distributeSizeAndWeight): Likewise.
9140 (calcCellWeights): Likewise.
9141 (calcCellSizes): Add comments.
9143 2004-02-13 David Jee <djee@redhat.com>
9145 * java/awt/Component.java
9146 (show): Only do something if component is invisible at the moment.
9147 (hide): Only do something if component is visible at the moment.
9148 (reshape): If lightweight, erase old bounds and repaint new bounds.
9150 2004-02-13 Kim Ho <kho@redhat.com>
9152 * Makefile.am: Updated for new file.
9153 * Makefile.in: Regenerated.
9154 * javax/swing/JSlider.java: Reimplement.
9155 * javax/swing/SwingUtilities.java
9156 (layoutCompoundLabel): Use icon height
9158 (paintComponent): Implement.
9159 * javax/swing/plaf/basic/BasicLookAndFeel.java:
9160 Add JSlider defaults.
9161 * javax/swing/plaf/basic/BasicSliderUI.java:
9162 Implement. New file.
9164 2004-03-17 Michael Koch <konqueror@gmx.de>
9166 * gnu/java/net/PlainDatagramSocketImpl.java
9167 (RECEIVE_LOCK): New member field.
9168 (SEND_LOCK): New member field.
9169 (send0): New method.
9170 (send): Synchronize on SEND_LOCK.
9171 (receive0): New method.
9172 (receive): Synchronize on RECEIVE_LOCK.
9173 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
9174 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
9175 gnu/java/net/natPlainDatagramSocketImplWin32.cc
9176 (send0): Renamed from send.
9177 (receive0): Renamed from receive.
9178 2004-03-17 Michael Koch <konqueror@gmx.de>
9180 * gnu/java/net/natPlainSocketImplPosix.cc
9181 (write): Just call write(jbyteArray, offset, len).
9182 (read): Just call read(jbyteArray, offset, len).
9184 2004-03-16 Michael Koch <konqueror@gmx.de>
9186 * javax/swing/JTabbedPane.java
9187 (serialVersionUID): New field.
9189 2004-03-16 Norbert Frese <postfach@nfrese.net>
9191 * java/net/InetAddress.java
9192 (getByName): Handle hostname == "" case.
9194 2004-03-16 Dalibor Topic <robilad@kaffe.org>
9196 Reported by: Adam Heath <doogie@debian.org>
9197 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
9200 2004-03-15 Michael Koch <konqueror@gmx.de>
9202 * java/util/Locale.java: Reverting my last patch
9203 and add a comment why the original version was okay.
9205 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
9207 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
9208 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
9209 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
9210 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
9212 2004-03-12 Michael Koch <konqueror@gmx.de>
9214 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
9216 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
9218 * java/net/URI.java (toURL): Implemented.
9220 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
9223 (URI_REGEXP) updated to contain scheme specific part.
9224 (SCHEME_SPEC_PART_GROUP) new constant.
9225 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
9226 updated to make room for SCHEME_SPEC_PART_GROUP.
9227 (parseURI) parse scheme specific part.
9228 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
9229 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
9230 getQuery, getFragment) implemented.
9232 2004-03-12 Dalibor Topic <robilad@kaffe.org>
9234 * libraries/javalib/java/net/URI.java
9235 partially implemented using java.util.regex.
9236 (URI_REGEXP) new constant. Used to parse URIs.
9237 (SCHEME_GROUP) new constant representing index of scheme group
9239 (AUTHORITY_GROUP) new constant representing index of authority
9240 group in parsed URI.
9241 (PATH_GROUP) new constant representing index of path group in
9243 (QUERY_GROUP) new constant representing index of query group in
9245 (FRAGMENT_GROUP) new constant representing index of fragment
9246 group in parsed URI.
9247 (getURIGroup) new static utility method.
9248 (parseURI) implemented.
9249 (quote) stub for new static utility method.
9250 (quoteAuthority) stub for new static utility method.
9251 (quoteHost) stub for new static utility method.
9252 (quotePath) stub for new static utility method.
9253 (quoteUserInfo) stub for new static utility method.
9255 (create) don't throw URISyntaxException. Implemented.
9256 (toString) implemented.
9258 2004-03-12 Michael Koch <konqueror@gmx.de>
9260 * java/net/HttpURLConnection.java
9261 (getResponseCode): Fix another typo in javadoc.
9263 2004-03-11 Michael Koch <konqueror@gmx.de>
9265 * java/util/logging/Level.java
9266 (parse): Use String.equals() instead of ==.
9268 2004-03-11 Michael Koch <konqueror@gmx.de>
9270 * gnu/java/net/protocol/jar/Connection.java
9271 (getContentLength): New method.
9273 2004-03-11 Michael Koch <konqueror@gmx.de>
9275 * gnu/java/net/PlainSocketImpl.java:
9276 Reformated to merge better with classpath's version.
9278 2004-03-11 Michael Koch <konqueror@gmx.de>
9280 * java/util/Locale.java
9281 (getISO3Language): Use String.equals() instead of ==.
9282 (getISO3Country): Likewise.
9284 2004-03-11 Dalibor Topic <robilad@kaffe.org>
9286 * java/text/AttributedString.java
9287 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
9288 Use HashMap instead of Hashtable since value can be null, and
9289 you can not store a null value in a Hashtable.
9291 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
9293 * java/text/AttributedStringIterator.java
9294 (getAllAttributesKey): Return only keys concerned
9295 by the current iterator.
9296 (getAttributes): Use strict inequality for
9299 2004-03-11 Michael Koch <konqueror@gmx.de>
9301 * java/net/HttpURLConnection.java:
9302 Fixed typo in javadoc.
9304 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
9306 * java/io/BufferedInputStream.java (marktarget): New field for max
9308 (CHUNKSIZE): New constant for incremental mark buffer allocation.
9309 (mark): Use new fields.
9311 (read(byte[],int,int)): Likewise.
9315 2004-03-11 Mark Wielaard <mark@klomp.org>
9317 * java/beans/BeanDescriptor.java (BeanDescriptor):
9318 Set the FeatureDescriptor programmatic name.
9320 2004-03-11 Michael Koch <konqueror@gmx.de>
9322 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
9323 This file was was just copied form java/io/natFileDescriptorEcos.cc
9324 and never changed to compile correctly.
9326 2004-03-11 Michael Koch <konqueror@gmx.de>
9328 * gnu/java/nio/PipeImpl.java
9329 (SourceChannelImpl): Made final.
9330 (read): Implemented.
9331 (SinkChannelImpl): Made final.
9332 (write): Implemented.
9334 2004-03-11 Michael Koch <konqueror@gmx.de>
9336 * gnu/java/net/PlainDatagramSocketImpl.java:
9337 Reformated to match classpath's version more.
9339 2004-03-11 Michael Koch <konqueror@gmx.de>
9341 * gnu/java/awt/peer/ClasspathFontPeer.java:
9342 Fixed javadoc to be correct xhtml.
9343 * gnu/java/awt/peer/gtk/GtkArgList.java
9344 (add): Use Boolean.valueOf() instead of new Boolean().
9346 2004-03-09 Michael Koch <konqueror@gmx.de>
9348 * java/lang/Thread.java
9349 (runnable): Moved around.
9350 (daemon): Renamed from daemon_flag.
9351 (contextClassLoader): Renamed from context_class_loader.
9352 (Thread): Reordered constructors.
9353 (activeCount): Use group directly.
9354 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
9355 (holdsLock): Reworked javadoc.
9356 (setDaemon): Reworked.
9357 * java/lang/natThread.cc
9360 2004-03-08 Anthony Green <green@redhat.com>
9362 * Makefile.am: Build property resource files into libgcj.
9363 * Makefile.in: Rebuilt.
9364 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
9365 java/util/regex/PatternSyntaxException.java,
9366 gnu/regexp/CharIndexed.java,
9367 gnu/regexp/CharIndexedCharArray.java,
9368 gnu/regexp/CharIndexedInputStream.java,
9369 gnu/regexp/CharIndexedReader.java,
9370 gnu/regexp/CharIndexedString.java,
9371 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
9372 gnu/regexp/REException.java,
9373 gnu/regexp/REFilterInputStream.java,
9374 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
9375 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
9376 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
9377 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
9378 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
9379 gnu/regexp/RETokenLookAhead.java,
9380 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
9381 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
9382 gnu/regexp/RETokenStart.java,
9383 gnu/regexp/RETokenWordBoundary.java,
9384 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
9386 2004-03-03 Per Bothner <per@bothner.com>
9388 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
9389 Optimize when argument is a FileChannelImpl.
9390 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
9392 * java/nio/channels/natChannels.cc: New file for new native methods.
9393 * Makefile.am: Update accordingly.
9395 2004-03-02 Jan Hubicka <jh@suse.cz>
9397 * configure.host: Pass -fno-omit-frame-pointer for i386.
9398 * configure.in: Likewise.
9399 * configure: Regenerate.
9401 2004-03-01 Per Bothner <per@bothner.com>
9403 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
9405 2004-02-29 Per Bothner <per@bothner.com>
9407 * java/nio/channels/FileChannelImpl.java: Moved to package
9408 gnu/java/nio/channels, since we need to refer to it from java.io.
9409 * java/nio/channels/natFileChannelImpl.cc: Removed file.
9410 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
9411 from java/nio/channels. Don't depend on FileDescriptor.
9412 (in, out, err): New static fields.
9414 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
9415 from FileDescriptor.
9416 (by): Removed MappedByteBuffer field.
9417 (map): New working implementation.
9418 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
9419 some code "ported" from natFileDescriptoPosix.cc.
9420 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
9421 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
9422 * java/io/FileDescriptor.java: Implement on top of FileChannel.
9423 Remove native methods.
9424 * Makefile.am, configure.in: Updated accordingly.
9426 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
9427 (ch): New FileChannelImpl field. Update constructor to match.
9428 (releaseImpl): Remove native method. Instead ...
9429 (release): Call unlock on channel.
9430 * gnu/java/nio/natFileLockImpl.cc: Removed file.
9432 * java/io/natFileDescriptorEcos.cc: Remove file.
9433 * java/io/natFileDescriptorPosix.cc: Remove file.
9434 * java/io/natFileDescriptorWin32.cc: Remove file.
9435 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
9436 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
9437 (<init>(FileChannelImpl)): New package-private constructor.
9438 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
9439 (available, close, read, skip): Implement using FileChannelImpl.
9440 (getFD): Allocate FileDescriptor if needed.
9441 (getChannel): Is now trivial.
9442 * java/io/FileOutputStream.java: Corresponding changes.
9443 * java/io/RandomAccessFile.java: Corresponding changes.
9445 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
9446 unmapImpl): New dummy methods, to be overridden by subclass.
9447 (finalize, isLoaded, load, force): New methods.
9448 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
9449 Now works, at least for read mapping.
9451 * java/lang/natPosixProcess.cc (startProcess): Implement standard
9452 streams using FileChannelImpl, not FileDescriptor.
9453 * java/lang/natWin32Process.cc (startProcess): Likewise.
9455 2004-02-28 Michael Koch <konqueror@gmx.de>
9457 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
9460 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
9462 * java/io/ObjectInputStream.java
9463 (readClassDescriptor): Keep elements of the mapping non null.
9464 (checkTypeConsistency): New method.
9465 (readFields): Fixed main loop and base logic. Small reindentation.
9466 * java/io/ObjectStreamField.java
9467 (lookupField): New method to update the field reference.
9468 (checkFieldType): New method.
9469 * java/io/ObjectStreamClass.java
9470 (setClass, setFields): Call lookupField when building the field
9471 database. Check the real field type.
9473 2004-02-28 Michael Koch <konqueror@gmx.de>
9475 * java/nio/ByteOrder.java
9476 (nativeOrder): Use equals() to compare strings.
9478 2004-02-26 Michael Koch <konqueror@gmx.de>
9480 * gnu/java/nio/FileLockImpl.java
9481 (finalize): Made protected.
9482 * java/nio/channels/FileChannel.java
9483 (MapMode.READ_ONLY): Made final.
9484 (MapMode.READ_WRITE): Made final.
9485 (MapMode.PRIVATE): Made final.
9486 * java/nio/channels/SocketChannel.java
9487 (open): Simplified code.
9488 * java/nio/channels/spi/AbstractSelectableChannel.java
9489 (registered): Unused, removed.
9490 (keyFor): Check channel is open, only locate key
9491 and not add a new one.
9492 (register): Don't delete attachments.
9494 2004-02-26 Michael Koch <konqueror@gmx.de>
9496 * gnu/java/awt/ComponentDataBlitOp.java
9497 (INSTANCE): Made final.
9498 * gnu/java/awt/image/ImageDecoder.java:
9500 (cm): Unused, removed.
9502 2004-02-26 Michael Koch <konqueror@gmx.de>
9504 * gnu/java/nio/DatagramChannelImpl.java
9505 (send): Check if target address is resolved.
9507 2004-02-26 Michael Koch <konqueror@gmx.de>
9509 * Makefile.am: Generate and install headers for inner classes in
9510 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
9511 * Makefile.in: Regenerated.
9513 2004-02-24 Anthony Green <green@redhat.com>
9515 * java/lang/StringBuffer.java: No need to NULL out remainder of
9516 buffer since ensureCapacity_unsynchronized will have done this for
9519 2004-02-20 Michael Koch <konqueror@gmx.de>
9521 * gnu/java/net/protocol/jar/Handler.java
9522 (): Removed unneeded check for file != null. java.net.URL.getFile()
9523 returns an empty string but never null.
9525 2004-02-20 Michael Koch <konqueror@gmx.de>
9527 * gnu/gcj/convert/Convert.java
9528 (main): Use equals() to compare strings.
9530 2004-02-20 Michael Koch <konqueror@gmx.de>
9532 * javax/swing/AbstractButton.java: Made several constants final.
9533 (getRolloverSelectedIcon): Made public.
9534 (getSelectedIcon): Made public.
9536 2004-02-16 Per Bothner <per@bothner.com>
9538 * java/nio/CharBufferImpl.java: Inline super constructor.
9539 * java/nio/DoubleBufferImpl.java: Likewise.
9540 * java/nio/FloatBufferImpl.java: Likewise.
9541 * java/nio/IntBufferImpl.java: Likewise.
9542 * java/nio/LongBufferImpl.java: Likewise.
9543 * java/nio/ShortBufferImpl.java: Likewise.
9544 * java/nio/CharBuffer.java: Remove unused constructor.
9545 * java/nio/DoubleBuffer.java: Likewise.
9546 * java/nio/FloatBuffer.java: Likewise.
9547 * java/nio/IntBuffer.java: Likewise.
9548 * java/nio/LongBuffer.java: Likewise.
9549 * java/nio/ShortBuffer.java: Likewise.
9550 * java/nio/CharViewBufferImpl.java: New convenience constructor.
9551 Fix buggy call to super constructor.
9552 * java/nio/DoubleViewBufferImpl.java: Likewise.
9553 * java/nio/FloatViewBufferImpl.java: Likewise.
9554 * java/nio/IntViewBufferImpl.java: Likewise.
9555 * java/nio/LongViewBufferImpl.java: Likewise.
9556 * java/nio/ShortViewBufferImpl.java: Likewise.
9558 * java/nio/ByteBuffer.java (endian): Make non-private so other
9559 java.nio classes can inherit it.
9560 (<init>): Don't bother clearing array_offset.
9561 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
9562 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
9563 Remove redundant test.
9565 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
9566 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
9567 Use new XxxViewBufferImpl constructors.
9568 * java/nio/MappedByteBufferImpl.java: Likewise.
9569 * java/nio/DirectByteBufferImpl.java: Likewise.
9571 * java/nio/ByteBufferImpl.java: Remove one constructor.
9572 Inline super in remaining constructor.
9573 * java/nio/ByteBuffer.java: Remove unused constructor.
9575 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
9577 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
9578 * java/nio/DirectByteBufferImpl.java (owner): New field.
9579 (offset): Remove unused field.
9580 (<init>): Modify one and add another constructor. Change callers.
9581 (allocateDirect): Removed - not used.
9582 (getImpl, putImpl): Make static and pass address explicitly,
9583 to make them useful for MappedByteBufferImpl.
9584 (get, put): Check for underflow. Modify for new getImpl.
9585 (getImpl): New native method where target is array.
9586 (get(byte[],int,int)): Use the above.
9587 (adjustAddress): New static native method.
9588 (slice, duplicate, asReadOnly): New implementations.
9589 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
9590 adjustAddress): New or updated native methods.
9592 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
9594 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
9595 overflow of fieldmapping.
9597 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
9599 * javax/swing/undo/UndoManager.java: Re-written from scratch.
9601 2004-02-14 Per Bothner <per@bothner.com>
9603 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
9604 Set closed before calling implCloseChannel, as in the spec.
9606 2004-02-09 Graydon Hoare <graydon@redhat.com>
9608 * javax/swing/ToggleButtonModel.java: Remove dead class.
9609 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
9610 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
9611 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
9612 * Makefile.am: Update for new and removed files.
9613 * Makefile.in: Regenerate.
9615 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
9616 * javax/swing/AbstractButton.java
9617 (AbstractButton): Initialize fields correctly in ctor.
9618 * javax/swing/JCheckbox.java
9619 (JCheckBox): Override painting flags.
9620 * javax/swing/DefaultButtonModel.java: Conform to sun.
9621 * javax/swing/JComponent.java (paint): Fill with background color
9623 (processComponentKeyEvent)
9626 (processMouseMotionEvent): Remove event-consuming empty methods.
9627 (getUIClassID): Return "ComponentUI" not "JComponent"
9628 * javax/swing/JFrame.java: Remove some debugging chatter.
9629 (JFrame): Subscribe to window events.
9630 * javax/swing/JRadioButton.java
9631 (JRadioButton): Override painting flags.
9632 * javax/swing/JRootPane.java
9633 (JRootPane): Set background from UIDefaults.
9634 * javax/swing/JToggleButton.java
9635 (ToggleButtonModel): New inner class.
9636 (JToggleButton): Override layout alighment.
9637 * javax/swing/SwingUtilities.java:
9638 (getLocalBounds): Return width and height, not x and y.
9639 (calculateInnerArea): Use local bounds, not bounds.
9640 (layoutCompoundLabel): Provide overridden form.
9641 (layoutCompoundLabel): Correct bugs.
9642 * javax/swing/UIDefaults.java: Correct comment.
9643 * javax/swing/plaf/basic/BasicButtonUI.java:
9644 Move most logic into defaults, external listener.
9645 (paintIcon): Implement icon painting.
9646 (paint): Fix state painting to conform to changes in model.
9647 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
9648 Remove most dead/wrong methods.
9649 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
9650 * javax/swing/plaf/basic/BasicIconFactory.java:
9651 (DummyIcon): New class.
9652 (getMenuItemCheckIcon)
9653 (getMenuItemArrowIcon)
9655 (getCheckBoxMenuItemIcon)
9656 (getRadioButtonMenuItemIcon)
9657 (createEmptyFrameIcon): Return DummyIcons, not null.
9658 (getCheckBoxIcon): Implement an icon that looks like sun's.
9659 (getRadioButtonIcon): Implement an icon that looks like sun's.
9660 * javax/swing/plaf/basic/BasicLookAndFeel.java
9661 (initComponentDefaults): Fix impossible values, add some missing.
9662 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
9663 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
9664 Remove most dead/wrong methods.
9666 (getDefaultIcon): New method.
9667 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
9668 Remove most dead/wrong methods.
9669 * javax/swing/plaf/metal/MetalLookAndFeel.java
9670 (getDefaults): Return super.getDefaults(), not BasicDefaults.
9671 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
9672 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
9673 Implement "clearing" as drawing, when on pixmap drawables.
9675 * javax/swing/JButton.java (getUIClassID):
9676 * javax/swing/JCheckBox.java (getUIClassID):
9677 * javax/swing/JEditorPane.java (getUIClassID):
9678 * javax/swing/JLabel.java (getUIClassID):
9679 * javax/swing/JList.java (getUIClassID):
9680 * javax/swing/JOptionPane.java (getUIClassID):
9681 * javax/swing/JPanel.java (getUIClassID):
9682 * javax/swing/JPasswordField.java (uiClassID):
9683 * javax/swing/JRadioButton.java (getUIClassID):
9684 * javax/swing/JRootPane.java (getUIClassID):
9685 * javax/swing/JScrollPane.java (getUIClassID):
9686 * javax/swing/JTabbedPane.java (getUIClassID):
9687 * javax/swing/JToggleButton.java (getUIClassID):
9688 * javax/swing/JTree.java (getUIClassID):
9689 * javax/swing/JViewport.java (getUIClassID):
9690 * javax/swing/text/JTextComponent.java (getUIClassID):
9691 Return "fooUI" not "Jfoo"
9693 2004-02-11 Michael Koch <konqueror@gmx.de>
9695 * java/net/DatagramSocket.java
9696 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
9698 (setBroadcast): Likewise.
9699 * java/net/MulticastSocket.java
9700 (setLoopbackMode): Likewise.
9701 * java/net/ServerSocket.java
9702 (setReuseAddress): Likewise.
9703 * java/net/Socket.java
9704 (setTcpNoDelay): Likewise.
9705 (setSoLinger): Likewise.
9706 (setOOBInline): Likewise.
9707 (setKeepAlive): Likewise.
9708 (setReuseAddress): Likewise.
9709 * java/net/URLConnection.java
9710 (setContentHandler): Replace == with equals().
9711 * java/net/URLStreamHandler.java
9712 (hostSEquals): Fix checking host addresses.
9713 (toExternalForm): Dont check protocol for null. We know already its
9716 2004-02-10 David Jee <djee@redhat.com>
9718 * java/awt/BorderLayout.java
9719 (calcCompSize): Invisible components get zero dimensions.
9720 * java/awt/Button.java
9721 (setLabel): Set actionCommand.
9722 * java/awt/Component.java
9723 (show): Invalidate component and parent container.
9726 2004-02-10 David Jee <djee@redhat.com>
9728 * java/awt/GridBagLayout.java
9729 (GridBagLayout): New private field, internalcomptable.
9730 (lookupInternalConstraints): New method.
9731 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
9732 (GetLayoutInfo): Reimplement.
9733 (calcCellSizes): Ignore rows/columns with size 0.
9735 2004-02-10 Michael Koch <konqueror@gmx.de>
9737 * gnu/java/awt/EmbeddedWindow.java
9738 (setHandle): Use java.awt.Component.getPeer() instead of
9739 java.awt.Component.peer directly.
9741 2004-02-10 David Jee <djee@redhat.com>
9743 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
9744 (gtkSetLabel): New native method definition.
9745 (setLabel): Use gtkSetLabel.
9746 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
9747 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
9749 2004-02-10 Alan Modra <amodra@bigpond.net.au>
9751 * include/powerpc-signal.h: Revert 2004-01-21 change.
9752 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
9753 from syscall for ppc32 versions.
9755 2004-02-08 Per Bothner <per@bothner.com>
9757 * java/nio/ByteBuffer.java (shiftDown): New helper method.
9758 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
9759 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
9760 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
9761 Pass ByteOrder parameter to most methods, since the underlying
9762 ByteBuffer's order isn't always what we should use.
9763 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
9764 * java/nio/DirectByteBufferImpl.java: Likewise.
9765 Use ByteBufferHelper methods.
9766 * java/nio/MappedByteBufferImpl.java: Likewise.
9767 (compact): Use shiftDown.
9768 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
9769 (get, put): Use ByteBufferHelper.
9770 (compact): Use new shiftDown method.
9771 (duplicate(boolean)): New helper method.
9772 (duplicate, asReadOnlyBuffer): Use it.
9773 (order): Return endian field.
9774 * java/nio/DoubleViewBufferImpl.java: Likewise.
9775 * java/nio/FloatViewBufferImpl.java: Likewise.
9776 * java/nio/IntViewBufferImpl.java: Likewise.
9777 * java/nio/LongViewBufferImpl.java: Likewise.
9778 * java/nio/ShortViewBufferImpl.java: Likewise.
9779 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
9780 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
9781 (compact): Re-implement using shiftDown.
9783 2004-02-08 Andreas Jaeger <aj@suse.de>
9785 * include/x86_64-signal.h: Fix typo.
9787 2004-02-08 Diego Novillo <dnovillo@redhat.com>
9789 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
9791 (HANDLE_DIVIDE_OVERFLOW): Likewise.
9793 2004-02-06 Michael Koch <konqueror@gmx.de>
9795 * java/io/ObjectInputStream.java
9796 (currentClassLoader): Reverted to old version of this method.
9798 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
9800 * java/io/ObjectInputStream.java: Made all calls
9801 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
9802 use cached info from ObjectStreamClass. (readClassDescriptor):
9803 Cache more information in ObjectStreamClass. (processResolution,
9804 readFields): Use cached info from ObjectStreamClass.
9805 (newObject): Throw exception instead of returning null for failure.
9806 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
9807 setCharField, setDoubleField, setFloatField, setIntField,
9808 setLongField, setShortField, setObjectField, readObjectParams):
9809 Removed. (dumpElement, dumpElementln): Removed dump flag condition
9811 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
9812 (setClass): Added call to cacheMethods() (findMethod): New method.
9813 (cacheMethods): New method. (ObjectStreamClass): Added call to
9814 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
9815 AccessController.doPrivileged to invoke setAccessible.
9816 (readObjectMethod, readResolveMethod, realClassIsSerializable,
9817 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
9819 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
9820 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
9821 isPrimitive): Made safe for cases where type == null.
9822 (setBooleanField, setByteField, setCharField, setShortField,
9823 setIntField, setLongField, setFloatField, setDoubleField,
9824 setObjectField): New methods.
9826 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
9828 * java/awt/Component.java (getFont): Return a default font
9831 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
9832 (Scrollbar (int, int, int, int, int)): Make default page
9834 (setValues): Only call peer.setValues if one of the values has
9836 (generateName): New method.
9837 (getUniqueLong): New method.
9838 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
9839 (range_scrollbar): Remove structure.
9840 (post_adjustment_event): Remove function.
9841 (post_change_event): Accept jobject argument.
9842 (create): Cast jints to gdoubles. Round scrollbar values to the
9843 nearest integer. Clamp min, max and value settings.
9844 (connectJObject): Connect hook to widget->window.
9845 (connectSignals): Remove range_scrollbar structure variables.
9846 Remove "move-slider" connection. Pass global peer reference to
9847 "value-changed" callback.
9848 (setLineIncrement): Cast jint value to gdouble.
9849 (setPageIncrement): Likewise.
9850 (setValues): Likewise. Clamp min, max and value settings.
9852 2004-02-05 Michael Koch <konqueror@gmx.de>
9854 * javax/swing/AbstractCellEditor.java
9855 (getCellEditorValue): Removed.
9856 * javax/swing/Box.java: Reformated.
9857 (serialVersionUID): New field.
9858 * javax/swing/ButtonGroup.java:
9859 Removed some weird whitespace.
9860 * javax/swing/CellEditor.java: Reformated.
9861 * javax/swing/CellRendererPane.java
9862 (serialVersionUID): New field.
9863 (AccessibleCellRendererPaneserialVersionUID): New field.
9864 * javax/swing/DefaultListModel.java
9865 (serialVersionUID): New field.
9866 * javax/swing/JEditorPane.java
9867 (serialVersionUID): New field.
9868 (setPage): Throws IOException.
9869 (addHyperlinkListener): Implemented.
9870 (removeHyperlinkListener): Implemented.
9871 (getHyperlinkListener): New method.
9872 * javax/swing/JFileChooser.java
9873 (serialVersionUID): New field.
9874 (AccessibleJFileChooser.serialVersionUID): New field.
9875 (addActionListener): Implemented.
9876 (removeActionListener): Implemented.
9877 (getActionListeners): New method.
9878 * javax/swing/JFormattedTextField.java
9879 (serialVersionUID): New field.
9880 (AbstractFormatter.serialVersionUID): New field.
9881 (clone): Throws CloneNotSupportedException
9882 (setEditValid): Add missing argument.
9883 (stringToValue): Throws ParseExcpetion.
9884 (valueToString): Throws ParseException.
9885 (commitEdit): Throws ParseException.
9886 * javax/swing/JLabel.java
9887 (serialVersionUID): New field.
9888 * javax/swing/JList.java
9889 (serialVersionUID): New field.
9890 (addListSelectionListener): Reformated.
9891 (removeListSelectionListener): Reformated.
9892 (getListSelectionListeners): New method.
9893 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
9895 (serialVersionUID): New field.
9896 * javax/swing/table/AbstractTableModel.java
9897 (getValueAt): Removed.
9898 (getColumnCount): Removed.
9899 (getRowCount): Removed.
9901 2004-02-05 Michael Koch <konqueror@gmx.de>
9903 * java/awt/datatransfer/DataFlavor.java
9904 (imageFlavor): Javadoc added.
9905 (javaJVMLocalObjectType): Fixed.
9907 2004-02-05 Michael Koch <konqueror@gmx.de>
9909 * java/lang/Thread.java
9910 (Thread): Reordered.
9911 (setContextClassLoader): Fixed javadoc comment.
9912 (setPriority): Reordered.
9914 (initialize_native): Reordered.
9915 (gen_name): Reordered.
9917 2004-02-05 Michael Koch <konqueror@gmx.de>
9919 * java/lang/Thread.java: Reordered fields, reformated much code,
9920 no functional changes, some variables renamed, javadoc comments
9923 2004-02-05 Michael Koch <konqueror@gmx.de>
9925 * java/util/zip/Deflater.java,
9926 java/util/zip/DeflaterOutputStream.java,
9927 java/util/zip/GZIPInputStream.java:
9928 Reformated and javadoc comments merged from classpath.
9930 2004-02-05 Michael Koch <konqueror@gmx.de>
9932 * gnu/java/nio/NIOServerSocket.java
9933 (impl): Unused, removed.
9934 * gnu/java/nio/SocketChannelImpl.java
9935 (finnishConnect): Don't throw NoConnectionPendingException if not
9936 connected or no connection pending.
9938 2004-02-02 Graydon Hoare <graydon@redhat.com>
9940 * javax/swing/SwingUtilities.java: Many new functions.
9941 * java/awt/Container.java (LightweightDispatcher): Reimplement.
9942 * javax/swing/basic/BasicGraphicsUtils.java
9943 (getPreferredButtonSize): Start layout from top-left corner.
9945 2004-02-04 Olga Rodimina <rodimina@redhat.com>
9947 * java/awt/geom/AffineTransform.java:
9948 Corrected comments on the field definitions for
9950 (shear): Fixed few errors that caused shear
9951 transformation to be performed incorrectly.
9952 (createInverse): Fixed to return correct
9953 inverse of the given matrix.
9955 2004-02-03 Tom Tromey <tromey@redhat.com>
9957 * java/lang/natPosixProcess.cc (startProcess): Handle case where
9958 PATH or LD_LIBRARY_PATH is not set in parent environment.
9960 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
9962 * gnu/java/awt/peer/gtk/GtkListPeer.java,
9963 java/awt/BorderLayout.java, java/awt/CardLayout.java,
9964 java/awt/CheckboxGroup.java, java/awt/Choice.java,
9965 java/awt/Component.java, java/awt/Container.java,
9966 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
9967 java/awt/LayoutManager2.java, java/awt/List.java,
9968 java/awt/Menu.java, java/awt/MenuBar.java,
9969 java/awt/MenuItem.java, java/awt/Polygon.java,
9970 java/awt/Rectangle.java, java/awt/ScrollPane.java,
9971 java/awt/Scrollbar.java, java/awt/TextArea.java,
9972 java/awt/TextField.java,
9973 java/awt/image/renderable/RenderContext.java,
9974 javax/swing/JApplet.java: Fix handling of alias methods, where a
9975 method has been deprecated in favour of a new one with the same
9976 funtion but a different name. Put the method implementation in
9977 the deprecated method and have the new method call the
9978 deprecated one. Make all other code call the new method.
9980 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
9982 * gnu/java/nio/DatagramChannelImpl.java
9983 (inChannelOperation): New field.
9984 (isInChannelOperation): New accessor.
9985 (setInChannelOperation): New modifier.
9986 (receive): Use capacity() - position() of destination
9987 buffer instead of remaining(). Set and reset our "in
9988 channel operation indicator" before and after delegating
9989 the receive to our datagram socket. Removed testing code.
9990 Update destination buffer's current position if it is
9991 backed by a byte array (hasArray() is true).
9992 (send): Set and reset our "in channel operation indicator"
9993 before and after delegating the send to our datagram socket.
9994 Removed testing code. Update source buffer's current position
9995 if it is backed by a byte array (hasArray() is true).
9996 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
9997 Use capacity() - position() of destination buffer instead
9999 * java/net/DatagramSocket.java (receive): Don't throw an
10000 IllegalBlockingModeException if we have a non-blocking
10001 channel which initiated this operation.
10004 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
10006 * configure.in: Add pkgconfig check for glib and gthread.
10007 * configure: Regenerate.
10009 2004-02-01 Michael Koch <konqueror@gmx.de>
10011 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
10013 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
10014 * verify.cc (debug_print): Mark 'fmt' unused.
10016 2004-01-30 Michael Koch <konqueror@gmx.de>
10018 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
10019 * configure: Regenerated.
10020 * glib-2.0.m4: Removed.
10021 * gtk-2.0.m4: Removed.
10022 * libart.m4: Removed.
10023 * pkg.m4: New file.
10025 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
10027 * gnu/java/net/PlainSocketImpl.java
10028 (inChannelOperation): New field.
10029 (isInChannelOperation): New accessor.
10030 (setInChannelOperation): New modifier.
10031 * gnu/java/nio/ServerSocketChannelImpl.java
10032 (accept): Set and reset our server socket's PlainSocketImpl's
10033 "in channel operation" indicator before and after delegating
10034 the accept to our server socket.
10035 * gnu/java/nio/SocketChannelImpl.java
10036 (connect): Set and reset our socket's PlainSocketImpl's "in channel
10037 operation" indicator before and after delegating the operation to
10041 * java/net/ServerSocket.java (implAccept): Don't throw an
10042 IllegalBlockingModeException if we have a non-blocking
10043 channel which initiated this accept operation.
10044 * java/net/Socket.java (connect): Don't throw an
10045 IllegalBlockingModeException if we have a non-blocking
10046 channel which initiated this connect operation.
10047 * java/nio/channels/spi/AbstractSelectableChannel.java
10048 (configureBlocking): Only call implConfigureBlocking() if
10049 the desired blocking mode is different from our current one.
10051 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
10053 * java/io/BufferedReader.java (sbuf): New field.
10054 (readLine): Use String.valueOf instead of new String() as per
10055 Per Bothner's suggestion. Use instance sbuf field instead of a
10056 local StringBuffer instance.
10057 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
10058 caller's buffer to refill().
10059 (read(void)): Pass our internal work buffer to refill if our
10060 input queue is empty.
10061 (refill): Changed return type to int. Use the specified buffer
10062 instead of our work buffer as per Bryce McKinlay's suggestion.
10063 Return the number of characters read or -1 for EOF.
10065 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
10067 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
10069 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
10071 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
10072 * Makefile.in: Re-generated.
10073 * gnu/awt/xlib/XFontPeer.java: New file.
10074 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
10075 (setClip): Commented out debug printout.
10076 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
10077 (getFontPeer): Return XFontPeer.
10078 (getLocalGraphicsEnvironment): New method.
10079 (getClasspathFontPeer): New method.
10080 (createFont): New method.
10082 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
10084 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
10087 2004-01-29 Kim Ho <kho@redhat.com>
10089 * gnu/java/awt/peer/gtk/GtkFramePeer.java
10090 (gtkLayoutSetVisible): New method
10091 (setMenuBar): Hide layout before setting MenuBar
10092 and reshow it after.
10093 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10094 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
10096 2004-01-28 Michael Koch <konqueror@gmx.de>
10098 * gnu/java/lang/ClassHelper.java
10099 (getPackagePortion): Removed.
10101 2004-01-28 Michael Koch <konqueror@gmx.de>
10103 * javax/swing/JComponent.java
10104 (listenerList): Initalize globally.
10105 (ancestor_list): Removed.
10106 (veto_list): Removed.
10107 (change_list): Removed.
10108 (get_veto_list): Removed.
10109 (get_change_list): Removed.
10110 (get_ancestor_list): Removed.
10111 (removeAncestorListener): Reimplemented.
10112 (removePropertyChangeListener): Likewise.
10113 (removeVetoableChangeListener): Likewise.
10114 (addAncestorListener): Likewise.
10115 (addPropertyChangeListener): Likewise.
10116 (addVetoableChangeListener): Likewise.
10117 (getListeners): New method.
10118 (getAncestorListeners): Likewise.
10119 (getVetoableChangeListeners): Likewise.
10120 (fireVetoableChange): Throws PropertyVetoException.
10121 * javax/swing/JEditorPane.java
10122 (JEditorPane): Throws IOException.
10124 2004-01-28 David Jee <djee@redhat.com>
10126 * gnu/java/awt/peer/gtk/GtkFramePeer.java
10127 (create): Set the default foreground color to
10128 java.awt.SystemColor.windowText.
10130 2004-01-27 Michael Koch <konqueror@gmx.de>
10132 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
10133 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
10134 Reindented to merge with classpath.
10136 2004-01-27 David Jee <djee@redhat.com>
10138 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10139 (addExposeFilter): Handle GtkFramePeer separately.
10140 (removeExposeFilter): Likewise.
10142 2004-01-27 Michael Koch <konqueror@gmx.de>
10144 * gnu/java/net/protocol/http/Connection.java
10145 (getOutputStream): Fixed typo.
10147 2004-01-27 Michael Koch <konqueror@gmx.de>
10149 * java/lang/Class.java
10150 (getConstructor): Removed SecurityException from throws clause.
10151 (_getConstructors): Likewise.
10152 (getConstructors): Likewise.
10153 (getDeclaredConstructor): Likewise.
10154 (getDeclaredClasses): Likewise.
10155 (getDeclaredConstructors): Likewise.
10156 (getDeclaredField): Likewise.
10157 (getDeclaredMethod): Likewise.
10158 (getDeclaredMethods): Likewise.
10159 (getField): Likewise.
10160 (getMethod): Likewise.
10161 (getMethods): Likewise.
10163 2004-01-27 Kim Ho <kho@redhat.com>
10165 * gnu/java/awt/peer/gtk/GtkFramePeer.java
10166 (removeMenuBarPeer): Remove MenuBarPeer argument.
10167 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
10168 (dispose): Call native method.
10169 * java/awt/Frame.java (setMenuBar): Create and remove
10170 MenuBar peers only if the Frame has a peer.
10171 (addNotify): Create the MenuBar peer if one exists.
10172 (removeNotify): Remove MenuBar peer if one exists.
10173 * java/awt/Menu.java: Fix imports.
10174 (addNotify): Don't use full class name.
10175 (removeNotify): Call removeNotify on all children.
10176 * java/awt/MenuBar.java (removeNotify): Call
10177 removeNotify on all children.
10178 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10179 (removeMenuBarPeer): Remove MenuBarPeer argument.
10180 Iterate through children to find the Frame's MenuBar.
10181 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
10183 (dispose): Remove references to the MenuComponent.
10185 2004-01-27 Michael Koch <konqueror@gmx.de>
10187 * javax/swing/AbstractCellEditor.java: Reformated.
10188 * javax/swing/DefaultListSelectionModel.java
10189 (listenerList): Made protected.
10190 (addListSelectionListener): Javadoc added.
10191 (removeListSelectionListener): Likewise.
10192 (getListeners): Likewise.
10193 (getListSelectionListeners): Likewise.
10194 * javax/swing/JComboBox.java: Merged copyright year.
10195 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
10197 2004-01-26 Andrew Haley <aph@redhat.com>
10199 * javax/swing/table/JTableHeader.java: Extend JComponent
10201 2004-01-26 Kim Ho <kho@redhat.com>
10203 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
10206 2004-01-26 Kim Ho <kho@redhat.com>
10208 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
10210 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
10211 height and let the Layout Managers readjust anything that
10213 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10214 (moveLayout): New method. Shift everything in the Gtk
10215 layout in the Y direction by an offset.
10217 2004-01-26 David Jee <djee@redhat.com>
10219 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10220 (handleEvent): Implemented. Handles PaintEvents.
10221 (paint): Implemented. Use GTK native methods to queue updates
10222 for this heavyweight peer.
10223 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10224 (handleEvent): Removed.
10225 * java/awt/Component.java
10226 (paint): Implemented. Explictly paint the heavyweight peer.
10227 (update): Clear the background for heavyweight components.
10228 (paintAll): No need to call peer.paint() anymore.
10229 (processEvent): Don't process PaintEvents here. It's now done in
10230 the peer's handleEvent().
10231 (processPaintEvent): Removed.
10232 * java/awt/Container.java
10233 (paint): No need to call super.paint(). Visit heavyweight
10235 (update): Don't clear the background here. It's done in
10236 Component.update().
10237 (visitChildren): Added check to not recurse into Containers.
10238 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10239 (filter_expose_event_handler): New method. Filter unwanted
10240 expose events while painting heavyweight peers.
10241 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
10242 New method. Connect filter and block pre_event_handler.
10243 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
10244 New method. Disconnect filter and unblock pre_event_handler.
10245 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
10246 New method. Invalidate and update given area.
10247 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10248 (pre_event_handler): Add checks for unwanted expose events.
10250 2004-01-26 David Jee <djee@redhat.com>
10252 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10253 (find_bg_color_widget): For GtkButton, return its child.
10255 2004-01-26 Kim Ho <kho@redhat.com>
10257 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
10259 (setMenuBar): Grab MenuBar height and change insets.
10260 (setBounds): Account for MenuBar height.
10261 (postInsetsChangedEvent): Ditto.
10262 (postSizeAllocateEvent): Remove.
10263 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10264 (menubar_resize_cb): Remove
10265 (setMenuBarPeer): Remove callback.
10266 (getMenuBarHeight): Use size requisition instead of
10269 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
10271 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
10272 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
10274 (setColumns): Remove FIXME -- peer will retrieve number of
10275 columns by calling getColumns.
10276 (setRows): Likewise for number of rows.
10277 (next_text_number): New field.
10278 (paramString): Fix param string.
10279 (generateName): New method.
10280 (getUniqueLong): New method.
10282 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
10284 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
10285 image observer of image loading status.
10286 (getImage (String)): Start image production.
10287 (getImage (URL)): Likewise.
10289 2004-01-25 Michael Koch <konqueror@gmx.de>
10291 * java/lang/Class.java: Imports reworked, reformated.
10292 (Class): Javadoc added.
10293 (forName): Likewise.
10294 (getClasses): Likewise.
10295 (getClassLoader): Likewise.
10296 (getComponentType): Likewise.
10297 (getConstructor): Likewise.
10298 (getConstructors): Likewise.
10299 (getDeclaredConstructor): Likewise.
10300 (getDeclaredClasses): Likewise.
10301 (getDeclaredConstructors): Likewise.
10302 (getDeclaredField): Likewise.
10303 (getDeclaredMethod): Likewise.
10304 (getDeclaredMethods): Likewise.
10305 (getDeclaringClass): Likewise.
10306 (getField): Likewise.
10307 (getInterfaces): Likewise.
10308 (getMethod): Likewise.
10309 (getMethods): Likewise.
10310 (getModifiers): Likewise.
10311 (getName): Likewise.
10312 (getResource): Likewise.
10313 (getResourceAsStream): Likewise.
10314 (getSigners): Likewise.
10315 (setSigners): Likewise.
10316 (getSuperclass): Likewise.
10317 (isArray): Likewise.
10318 (isAssignableFrom): Likewise.
10319 (isInstance): Likewise.
10320 (isInterface): Likewise.
10321 (isPrimitive): Likewise.
10322 (newInstance): Likewise.
10323 (getProtectionDomain): Likewise.
10324 (toString): Likewise.
10326 (initializeClass): Likewise.
10327 (finalize): Likewise.
10329 2004-01-24 Michael Koch <konqueror@gmx.de>
10331 * gnu/java/net/protocol/jar/Connection.java
10332 (hdrHash): Removed.
10334 (gotHeaders): Removed.
10335 (getHeaderField): Removed.
10336 (getHeaderFields): Removed.
10337 (getHeaderFieldKey): Removed.
10339 (getField): Removed.
10340 (getHeaders): Removed.
10342 2004-01-24 Michael Koch <konqueror@gmx.de>
10344 * Makefile.am: Added library version to gtk peer lib.
10345 * Makefile.in: Regenerated.
10347 2004-01-24 Michael Koch <konqueror@gmx.de>
10349 * java/util/zip/InflaterInputStream.java: Merged class documentation
10352 2004-01-21 Jakub Jelinek <jakub@redhat.com>
10354 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
10355 header. For __powerpc64__ provide the default-signal.h definitions
10357 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
10358 instead of the dummy definitions.
10359 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
10360 (powerpc64*-*): Remove with_libffi_default.
10361 Only add -mminimal-toc for 64-bit compilations.
10362 * configure.in: Use powerpc-signal.h on powerpc64 as well.
10363 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
10364 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
10365 * configure: Rebuilt.
10367 2004-01-23 Michael Koch <konqueror@gmx.de>
10369 * gnu/java/nio/FileLockImpl.java: Compile fixes.
10371 2004-01-23 Michael Koch <konqueror@gmx.de>
10373 * java/lang/VMClassLoader.java: Reworked imports.
10375 2004-01-23 Michael Koch <konqueror@gmx.de>
10377 * javax/swing/AbstractAction.java: Reformated.
10379 2004-01-23 Michael Koch <konqueror@gmx.de>
10381 * java/text/CollationElementIterator.java:
10382 (setText): New method.
10384 2004-01-23 Michael Koch <konqueror@gmx.de>
10386 * gnu/java/nio/FileLockImpl.java:
10387 Fixed filename in copyright.
10388 (released): Removed.
10389 (finalize): New method.
10390 * gnu/java/nio/natFileLockImpl.cc
10391 (releaseImpl): Implemented.
10392 * java/nio/channels/FileChannelImpl.java:
10394 (lock): Implemented.
10395 (lockImpl): New method.
10396 (tryLock): Implemented.
10397 (tryLockImpl): New method.
10398 * java/nio/channels/natFileChannelImpl.cc
10399 (lockImpl): New method.
10400 (tryLockImpl): New method.
10402 2004-01-23 Michael Koch <konqueror@gmx.de>
10404 * java/io/FileDescriptor.java
10405 (lock): New method.
10406 (tryLock): New method.
10407 (unlock): New method.
10408 * java/io/natFileDescriptorEcos.cc
10409 (lock): New method.
10410 (tryLock): New method.
10411 (unlock): New method.
10412 * java/io/natFileDescriptorPosix.cc
10413 (lock): New method.
10414 (tryLock): New method.
10415 (unlock): New method.
10416 * java/io/natFileDescriptorWin32.cc
10417 (lock): New method.
10418 (tryLock): New method.
10419 (unlock): New method.
10421 2004-01-23 Michael Koch <konqueror@gmx.de>
10423 * java/io/FileDescriptor.java
10424 (sync): Moved around, added javadoc.
10429 (setLength): Likewise.
10431 (getLength): Likewise.
10432 (getFilePointer): Likewise.
10434 (available): Likewise.
10435 (finalize): Likewise.
10437 2004-01-23 Michael Koch <konqueror@gmx.de>
10439 * javax/swing/AbstractAction.java: Reformated.
10440 (getPropertyChangeListeners): New method.
10441 * javax/swing/AbstractCellEditor.java: Reformated.
10442 (getCellEditorListeners): New method.
10443 * javax/swing/DefaultListSelectionModel.java
10444 (listenerList): New field.
10445 (listeners): Removed.
10446 (get_listeners): Removed.
10447 (addListSelectionListener): Rewritten.
10448 (removeListSelectionListener): Rewritten.
10449 (getListSelectionListeners): New method.
10450 (getListeners): New method.
10451 * javax/swing/JComboBox.java: Imports reworked.
10452 (addActionListener): Implemented.
10453 (removeActionListener): Implemented.
10454 (addItemListener): Implemented.
10455 (removeItemListener): Implemented.
10456 (addPopupMenuListener): Implemented.
10457 (removePopupMenuListener): Implemented.
10458 (getActionListeners): New method.
10459 (getItemListeners): New method.
10460 (getPopupMenuListeners): New method.
10462 2004-01-23 Michael Koch <konqueror@gmx.de>
10464 * gnu/java/net/protocol/http/Connection.java
10465 (connect): Don't initialize bufferedOutputStream if not needed.
10466 (sendRequest): Set property for content length if content is present.
10467 Write content only if present.
10468 (getOutputStream): Check if already connected, dont connect,
10469 initalize bufferedOutputStream if needed.
10471 2004-01-23 Michael Koch <konqueror@gmx.de>
10473 * java/io/FileDescriptor.java
10474 (in, out, err): Added javadoc.
10475 (static): Merged loading code.
10476 (fd, position): Moved around.
10478 2004-01-23 Michael Koch <konqueror@gmx.de>
10480 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
10483 2004-01-23 Michael Koch <konqueror@gmx.de>
10485 * java/lang/Class.java,
10486 java/lang/Object.java,
10487 java/lang/Thread.java: Merged copyright with classpath.
10489 2004-01-23 Michael Koch <konqueror@gmx.de>
10491 * java/io/FileDescriptor.java: Merged copyright with classpath to
10492 start merging this class.
10494 2004-01-22 Tom Tromey <tromey@redhat.com>
10497 * testsuite/libjava.lang/pr13107_2.xfail: New file.
10498 * testsuite/libjava.lang/pr13107_3.xfail: New file.
10499 * testsuite/libjava.lang/pr13107_3.java: New file.
10500 * testsuite/libjava.lang/pr13107_3.out: New file.
10501 * testsuite/libjava.lang/pr13107_2.java: New file.
10502 * testsuite/libjava.lang/pr13107_2.out: New file.
10503 * testsuite/libjava.lang/pr13107.java: New file.
10504 * testsuite/libjava.lang/pr13107.out: New file.
10505 * verify.cc (jsr_ptrs): Removed.
10506 (entry_points): Likewise.
10507 (struct subr_info): Likewise.
10508 (struct subr_entry_info): Likewise.
10509 (type_val::unused_by_subroutine_type): Likewise.
10510 (type::merge): Don't handle unused_by_subroutine_type.
10511 (type::print): Likewise.
10512 (state::flags): Removed.
10513 (state::subroutine): Likewise.
10514 (state::seen_subrs): Likewise.
10515 (state::NO_STACK): Likewise.
10516 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
10517 (state): Updated all methods.
10518 (state::clean_subrs): Removed.
10519 (state::state): Removed `ret_semantics' flag.
10520 (state::copy): Likewise.
10521 (state::add_subr): Removed.
10522 (state::enter_subroutine): Likewise.
10523 (type::set_return_address): New method.
10524 (handle_jsr_insn): Set return address on the type. Always
10525 invalidate PC after call.
10526 (check_nonrecursive_call): Removed.
10527 (~_Jv_BytecodeVerifier): Updated.
10528 (branch_prepass): Removed special handling of jsr.
10529 (note_branch_target): Likewise.
10530 (get_subroutine): Removed.
10531 (state::merge): Don't merge subroutines and don't handle
10532 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
10533 (state::note_variable): Removed.
10534 (state::is_unmerged_ret_state): Likewise.
10535 (state::print): Updated.
10536 (set_variable): Likewise.
10537 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
10538 and jsr_semantics arguments. Updated for new reverification
10540 (pop_jump): Rewrote.
10541 (construct_primitive_array_type): Updated.
10542 (state::next): Removed.
10543 (INVALID_STATE): New define.
10544 (state::INVALID): Removed.
10545 (state::NO_NEXT): New value.
10546 (state::pc, state::next): New fields.
10547 (state::get_pc): New method.
10548 (next_verify_pc): Removed.
10549 (next_verify_state): New field.
10550 (verify_instructions_0): Always check for falling off end.
10551 (linked): New type.
10552 (linked_utf8): Removed.
10553 (states): Changed type.
10554 (type::state_mergeable_p): New method.
10555 (state::state_mergeable_p): Likewise.
10556 (handle_ret_insn): Removed most code.
10557 (state::reverify): New method.
10558 (add_new_state): Likewise.
10559 (state::set_pc): Likewise.
10561 2004-01-22 Jeff Sturm <jsturm@one-point.com>
10564 * testsuite/libjava.compile/PR13733.java: New file.
10565 * testsuite/libjava.compile/PR13733.xfail: New file.
10567 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
10568 Michael Koch <konqueror@gmx.de>
10570 * javax/swing/table/DefaultTableCellRenderer.java
10571 (DefaultTableCellRenderer): Added javadoc for the class and for
10572 the constructor, Border instance, create an EmptyBorder.
10573 (UIResource): Removed the comment at the end of the class
10574 (setForeground): New method.
10575 (setBackground): New method.
10576 (updateUI): New method.
10577 (getTableCellRendererComponent): Rewritten with the help of
10578 dvholten and Stephane Meslin-Weber.
10579 (validate): New method.
10580 (repaint): New method.
10581 (firePropertyChange): New method.
10582 (setValue): New method.
10584 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
10586 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10587 (connectJObject): Replace printf calls with g_assert statements.
10588 Move property-notify-event signal connection to ...
10589 (connectSignals): Connect property-notify-event signal. Iterate
10590 through the vbox's children to find layout.
10592 2004-01-22 Graydon Hoare <graydon@redhat.com>
10594 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
10595 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
10596 Predicate static initialization on GtkToolkit.useGraphics2D().
10597 * java/awt/Component.java (processPaintEvent): Consume event.
10598 * javax/swing/AbstractButton.java: Reimplement, document.
10599 * javax/swing/DefaultButtonModel.java: Reimplement, document.
10600 * javax/swing/JComponent.java (paint): Use double buffer.
10601 (listenerList): Enable member.
10602 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
10603 * javax/swing/JToggleButton.java
10604 (JToggleButton): Modify model constructor.
10605 * javax/swing/SwingUtilities.java
10606 (layoutCompoundLabel): Adjust arithmetic.
10607 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
10608 * javax/swing/plaf/basic/BasicGraphicsUtils.java
10609 (getPreferredButtonSize): Include margins in calculation.
10610 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10611 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
10612 Receive up events from subordinate layout component.
10614 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
10616 * java/awt/Component.java (show): Set visible to true before
10619 2004-01-21 Kim Ho <kho@redhat.com>
10621 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
10623 (removeMenuBarPeer): Make package private.
10624 (setMenuBarPeer): Make package private.
10625 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10626 (menubar_resize_cb): Mark attributes unused.
10627 (getMenuBarHeight): ditto.
10629 2004-01-21 David Jee <djee@redhat.com>
10631 * java/awt/Container.java
10632 (LightweightDispatcher.handleEvent): Add an extra check to avoid
10633 dispatching MOUSE_ENTERED event twice. Translate the point for
10634 the mouse event target before dispatching the event.
10636 2004-01-20 Jakub Jelinek <jakub@redhat.com>
10638 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
10639 lib_org_w3c_dom_la_LDFLAGS): New.
10640 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
10641 * Makefile.in: Rebuilt.
10643 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
10645 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
10646 Calculate proper offsets for heavyweight components packed in
10647 lightweight containers.
10649 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
10650 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
10651 (native create): Add width parameter.
10652 (create): Calculate text entry width based on current font's
10653 metrics and number of columns. Set TextField's font if not
10654 already set. Call native create.
10655 (gtkEntryGetBorderWidth): New native method.
10656 (gtkEntryGetSize): Remove method.
10657 (getMinimumSize): Call minimumSize.
10658 (getPreferredSize): Call preferredSize.
10659 (minimumSize): Calculate minimum size based on backing
10660 GtkEntry's borders, font metrics and number of columns.
10661 (preferredSize): Likewise for preferred size.
10662 (get_border_width): New static function.
10664 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
10665 Override GtkWindowPeer's setResizable method to account for menu
10666 bar height when setting the frame's size.
10668 2004-01-19 Matthias Klose <doko@debian.org>
10670 * libtool-version: Increased `current' to 6.
10672 2004-01-19 Kim Ho <kho@redhat.com>
10674 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10675 (connectJObject): Iterate through the vbox's children to find layout.
10677 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10679 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
10680 isDispatchThread method to replace wrong test condition.
10682 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10684 * java/awt/EventQueue.java (pop): Prevent racing condition to add
10685 events to the queue out of order by acquiring locks in the proper
10686 order and not by releasing one before acquiring the other.
10688 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10690 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
10691 visible so that dialog can be reused.
10693 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10695 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
10696 events may be handled by any queue in the stack.
10698 2004-01-19 Kim Ho <kho@redhat.com>
10700 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
10701 MenuBarPeer parameter.
10702 (removeMenuBarPeer): New native method.
10703 (setMenuBar): Call remove if menu bar is null. Adjust insets
10705 (postSizeAllocateEvent): New method. Called when menu bar size is
10706 allocated. Adjust insets and redo layout.
10707 (GtkFramePeer): Set menu bar during frame creation.
10708 (postConfigureEvent): Adjust position and size to accomodate
10710 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
10711 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
10712 (addNotify): Create the peer if it doesn't exist and call addNotify
10713 for the menu's items.
10714 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
10715 * java/awt/MenuItem.java (addNotify): Create the peer if it
10717 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10718 (removeMenuBarPeer): New method. Remove menu bar on the current
10720 (setMenuBarPeer): Add the menu bar to the current frame and the
10721 callback for size-allocate events on the menu bar.
10722 (getMenuBarHeight): Add menu bar parameter.
10723 (menubar_resize_cb): New callback method for postSizeAllocate events.
10725 Also: Fix indentation on last ChangeLog entry.
10727 2004-01-16 Kim Ho <kho@redhat.com>
10729 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10730 (gtkWidgetGetDimensions): Remove.
10731 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10732 (gtkWidgetGetDimensions): Remove.
10734 2004-01-16 Tom Tromey <tromey@redhat.com>
10736 * java/awt/Container.java: Typo and indentation fixes.
10738 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
10739 * java/lang/natVMClassLoader.cc: ...here. New file.
10740 * Makefile.in: Rebuilt.
10741 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
10743 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10745 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
10746 Discard GDK_ENTER_NOTIFY related to ungrabs.
10748 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10750 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
10751 is called for an intermediate queue.
10753 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
10755 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10756 (window_property_changed_cb): Set id_set.
10758 2004-01-16 Kim Ho <kho@redhat.com>
10760 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
10761 it is a FileDialog and has dimensions of 0 by 0, then the initial
10762 size is set to size request plus insets.
10763 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10764 (gtkWidgetGetDimensions): Override method.
10765 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10766 (gtkWidgetGetDimensions): Override method. Returns size request plus
10769 2004-01-16 Andrew Haley <aph@redhat.com>
10771 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
10772 * sysdep/i386/locks.h: Likewise.
10774 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10776 * java/awt/EventDispatchThread.java (run): Stop running when
10778 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
10779 Reset the queue after transferring its contents.
10780 (push): Start a new dispatch thread if none is running.
10782 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
10784 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10785 (doPolygon): set fill rule of polygon to
10786 WIND_EVEN_ODD by default.
10788 2004-01-15 Olga Rodimina <rodimina@redhat.com>
10790 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10791 Implemented rendering hints related methods.
10792 (getDefaultHints): New helper method. Returns
10793 default rendering hints.
10794 (walkPath): changed to normalize path if
10795 the KEY_STROKE_CONTROL key is in "normalize" mode.
10796 (draw3DRect): changed coordinates of rectangle by +0.5
10797 if in "normalize" mode.
10799 2004-01-15 Tom Tromey <tromey@redhat.com>
10801 * Makefile.in: Rebuilt.
10802 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
10803 (%.lo: %.java) Filter out StackTrace.lo.
10805 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
10807 * configure.in: Add in AC_PREREQ(2.13)
10808 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
10811 2004-01-14 Nathan Bryant <nbryant@optonline.net>
10812 Tom Tromey <tromey@redhat.com>
10815 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
10816 array to superclass.
10817 (init): Changed interface; add URLs here.
10818 (initialize): New static method.
10819 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
10820 (_Jv_RunMain): ... not here.
10822 2004-01-14 Michael Koch <konqueror@gmx.de>
10824 * java/text/MessageFormat.java:
10825 Added descriptions to exceptions.
10826 This fixes PR libgcj/2429.
10828 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10830 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
10831 (push): Make sure push is performed at the top of the thread stack.
10833 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10835 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
10836 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
10837 (native create): Add width and height parameters. Set text
10838 view's size request according to new parameters.
10839 (create): Calculate text view size based on current font's
10840 metrics and number of rows and columns. Set TextArea's font if
10841 not already set. Call native create.
10842 (getMinimumSize): Call minimumSize.
10843 (getPreferredSize): Call preferredSize.
10844 (getHScrollbarHeight): New method.
10845 (getVScrollbarWidth): New method.
10846 (minimumSize): Calculate minimum size based on scrollbar
10847 visibility, scrollbar sizes, font metrics and number of rows and
10849 (preferredSize): Likewise for preferred size.
10850 (gtkTextGetSize): Remove method.
10852 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10854 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10855 (initializeInsets): Remove method.
10856 (GtkComponentPeer): Initialize insets field. Remove call to
10858 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
10860 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
10862 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
10863 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
10864 (latestInsets): Remove field.
10865 (native create): Add insets parameter. Call
10866 window_get_frame_extents. Set the window's default size and
10867 size request based on its frame extents.
10868 (create): Initialize insets.
10869 (postInsetsChangedEvent): New method.
10870 (postConfigureEvent): Remove parameters top, left, bottom,
10871 right. Remove insets-related logic.
10872 (connectJObject): Handle property-notify-event.
10873 (window_get_frame_extents, request_frame_extents,
10874 property_notify_predicate, window_property_changed_cb): New
10876 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10877 (pre_event_handler): Remove insets-related logic for configure
10879 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
10880 Update postConfigureEvent signature.
10882 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10884 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
10885 to handle Window "Closing" events.
10887 2004-01-13 David Jee <djee@redhat.com>
10889 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10890 (setBackground): New method. Children with no explicitly-set
10891 background will be repainted with the parent container's new
10894 2004-01-13 David Jee <djee@redhat.com>
10896 * Makefile.am: Add BitwiseXORComposite.java.
10897 * Makefile.in: Regenerated.
10898 * gcj/Makefile.in: Regenerated.
10899 * include/Makefile.in: Regenerated.
10900 * testsuite/Makefile.in: Regenerated.
10902 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10904 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
10905 not show modal dialogs twice and so that it allows showing a modal
10906 dialog from another modal dialog.
10908 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10910 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
10911 and run secondary dispatch thread to process event queue while this
10914 2004-01-12 Graydon Hoare <graydon@redhat.com>
10916 * gnu/java/awt/gtk/GdkGraphics2D.java
10917 (static): Check GtkToolkit before initializing static state.
10918 (Graphics2D): Don't construct transform with 0.5 unit offset.
10920 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
10922 * gnu/java/awt/BitwiseXORComposite.java: Add.
10923 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
10924 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
10925 (BitwiseXORComposite): Remove inner class.
10927 2004-01-11 Michael Koch <konqueror@gmx.de>
10929 * gnu/java/lang/reflect/TypeSignature.java
10930 (getEncodingOfClass): Documentation fixed.
10931 (getClassForEncoding): Give class loader to Class.forName().
10932 Documentation fixed.
10934 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
10936 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
10938 2004-01-11 Michael Koch <konqueror@gmx.de>
10940 * javax/swing/undo/StateEditable.java
10941 (RCSID): Removed redundant modifiers.
10943 2004-01-10 Michael Koch <konqueror@gmx.de>
10945 * javax/print/attribute/EnumSyntax.java
10946 (getStringTable): Made protected.
10947 (getEnumValueTable): Likewise.
10948 * javax/print/attribute/standard/JobKOctetsProcessed.java
10949 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
10950 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
10951 (JobMediaSheetsCompleted): Made class final.
10952 * javax/print/attribute/standard/OutputDeviceAssigned.java
10953 (getName): Fixed typo.
10954 * javax/print/attribute/standard/RequestingUserName.java
10955 (serialVersionUID): Fixed value.
10957 2004-01-10 Michael Koch <konqueror@gmx.de>
10959 * javax/swing/plaf/basic/BasicButtonUI.java,
10960 javax/swing/plaf/basic/BasicCheckBoxUI.java,
10961 javax/swing/plaf/basic/BasicListUI.java,
10962 javax/swing/plaf/basic/BasicOptionPaneUI.java,
10963 javax/swing/plaf/basic/BasicPanelUI.java,
10964 javax/swing/plaf/basic/BasicRadioButtonUI.java,
10965 javax/swing/plaf/basic/BasicScrollPaneUI.java,
10966 javax/swing/plaf/basic/BasicToggleButtonUI.java,
10967 javax/swing/plaf/basic/BasicViewportUI.java:
10968 Fixed import statements.
10970 2004-01-10 Michael Koch <konqueror@gmx.de>
10972 * gnu/java/awt/image/ImageDecoder.java
10973 (produce): Made public.
10974 * gnu/java/awt/peer/GLightweightPeer.java,
10975 gnu/java/awt/peer/gtk/GtkToolkit.java:
10978 2004-01-10 Michael Koch <konqueror@gmx.de>
10980 * javax/swing/JRadioButtonMenuItem.java,
10981 javax/swing/JSeparator.java,
10982 javax/swing/JSplitPane.java,
10983 javax/swing/JTextPane.java,
10984 javax/swing/JToolBar.java,
10985 javax/swing/ListCellRenderer.java,
10986 javax/swing/ListModel.java,
10987 javax/swing/MenuElement.java,
10988 javax/swing/OverlayLayout.java,
10989 javax/swing/ProgressMonitor.java,
10990 javax/swing/ProgressMonitorInputStream.java,
10991 javax/swing/Renderer.java,
10992 javax/swing/RootPaneContainer.java,
10993 javax/swing/Scrollable.java,
10994 javax/swing/SingleSelectionModel.java,
10995 javax/swing/ToolTipManager.java,
10996 javax/swing/ViewportLayout.java,
10997 javax/swing/event/DocumentEvent.java,
10998 javax/swing/event/SwingPropertyChangeSupport.java,
10999 javax/swing/event/TreeSelectionEvent.java,
11000 javax/swing/event/UndoableEditEvent.java,
11001 javax/swing/text/AbstractDocument.java,
11002 javax/swing/text/AttributeSet.java,
11003 javax/swing/text/Caret.java,
11004 javax/swing/text/ComponentView.java,
11005 javax/swing/text/DefaultCaret.java,
11006 javax/swing/text/DefaultEditorKit.java,
11007 javax/swing/text/Document.java,
11008 javax/swing/text/EditorKit.java,
11009 javax/swing/text/GapContent.java,
11010 javax/swing/text/Keymap.java,
11011 javax/swing/text/MutableAttributeSet.java,
11012 javax/swing/text/PlainEditorKit.java,
11013 javax/swing/text/Segment.java,
11014 javax/swing/text/Style.java,
11015 javax/swing/text/StyledDocument.java,
11016 javax/swing/text/StyledEditorKit.java,
11017 javax/swing/text/TextAction.java,
11018 javax/swing/text/View.java: Fixed import statements.
11020 2004-01-08 Graydon Hoare <graydon@redhat.com>
11022 * javax/swing/JLayeredPane.java: Rewrite to accomodate
11023 djee@redhat.com's recent inverse ordering of Container elements.
11025 2004-01-09 Michael Koch <konqueror@gmx.de>
11027 * gnu/java/lang/ArrayHelper.java
11028 (equalsArray): Removed.
11030 2004-01-09 Andrew Haley <aph@redhat.com>
11032 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
11033 a Utf8Const field before looking at its class.
11035 2004-01-09 Michael Koch <konqueror@gmx.de>
11037 * javax/print/attribute/standard/DocumentName.java,
11038 javax/print/attribute/standard/JobHoldUntil.java,
11039 javax/print/attribute/standard/JobMessageFromOperator.java,
11040 javax/print/attribute/standard/JobName.java,
11041 javax/print/attribute/standard/JobOriginatingUserName.java,
11042 javax/print/attribute/standard/OutputDeviceAssigned.java,
11043 javax/print/attribute/standard/PrinterInfo.java,
11044 javax/print/attribute/standard/PrinterLocation.java,
11045 javax/print/attribute/standard/PrinterMakeAndModel.java,
11046 javax/print/attribute/standard/PrinterMessageFromOperator.java,
11047 javax/print/attribute/standard/PrinterName.java,
11048 javax/print/attribute/standard/RequestingUserName.java: New files.
11049 * Makefile.am (javax_source_files): Added new files.
11050 * Makefile.in: Regenerated.
11052 2004-01-09 Michael Koch <konqueror@gmx.de>
11054 * javax/swing/AbstractAction.java,
11055 javax/swing/AbstractSet.java,
11056 javax/swing/Action.java,
11057 javax/swing/ActionMap.java,
11058 javax/swing/BoundedRangeModel.java,
11059 javax/swing/ButtonModel.java,
11060 javax/swing/CellEditor.java,
11061 javax/swing/CellRendererPane.java,
11062 javax/swing/ComboBoxEditor.java,
11063 javax/swing/DebugGraphics.java,
11064 javax/swing/DefaultCellEditor.java,
11065 javax/swing/DefaultCellRenderer.java,
11066 javax/swing/DefaultComboBoxModel.java,
11067 javax/swing/DefaultDesktopManager.java,
11068 javax/swing/DefaultFocusManager.java,
11069 javax/swing/DefaultListCellRenderer.java,
11070 javax/swing/Icon.java,
11071 javax/swing/JButton.java,
11072 javax/swing/JCheckBoxMenuItem.java,
11073 javax/swing/JDesktopPane.java,
11074 javax/swing/JEditorPane.java,
11075 javax/swing/JMenu.java,
11076 javax/swing/JPanel.java,
11077 javax/swing/JPasswordField.java,
11078 javax/swing/JPopupMenu.java,
11079 javax/swing/JProgressBar.java: Reworked imports.
11081 2004-01-09 Michael Koch <konqueror@gmx.de>
11083 * java/awt/geom/PathIterator.java
11084 (WIND_EVEN_ODD): Removed redundant modifiers.
11085 (WIND_NON_ZERO): Likewise.
11086 (SEG_MOVETO): Likewise.
11087 (SEG_LINETO): Likewise.
11088 (SEG_QUADTO): Likewise.
11089 (SEG_CUBICTO): Likewise.
11090 (SEG_CLOSE): Likewise.
11091 * java/awt/image/SinglePixelPackedSampleModel.java:
11092 Removed redundant semicolon.
11093 * java/io/ObjectInputStream.java
11094 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
11095 * java/util/logging/Filter.java
11096 (isLoggable): Removed redundant modifier.
11097 * java/util/logging/LogManager.java:
11098 Removed redundant semicolon.
11099 * java/util/logging/XMLFormatter.java
11100 (format): Removed unused variable "key".
11102 2004-01-08 Fernando Nasser <fnasser@redhat.com>
11104 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
11105 New name for the former setFile native method.
11106 (setFile): New method.
11107 (setDirectory): Implemented.
11108 (connectSignals): New native method.
11109 (setFilenameFilter): Improve comment.
11110 (getGraphics): Comment.
11111 (gtkHideFileDialog): New method.
11112 (gtkDisposeFileDialog): New method.
11113 (gtkSetFilename): New method.
11114 * java/awt/Dialog.java (show): Block on modal dialogs, but only
11115 for FileDialog for now.
11116 (hide): New method.
11117 (dispose): New method.
11118 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
11119 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
11120 deprecated creation functions. Make dialog modal. Add it to the
11122 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
11124 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
11126 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
11128 (window_closed): New function.
11129 (ok_clicked): New function.
11130 (cancel_clicked): New function.
11132 2004-01-08 Michael Koch <konqueror@gmx.de>
11134 * javax/swing/JLayeredPane.java: Revert changes to standard
11135 boilerplate, reworked imports.
11137 2004-01-07 Tom Tromey <tromey@redhat.com>
11140 * verify.cc (state::merge): Copy changed locals out of subroutine
11142 (state::FLAG_CHANGED): New const.
11143 (state::FLAG_UNUSED): Likewise.
11144 (state::local_changed): Removed. Updated all users.
11145 (state::flags): New field.
11146 (state::merge): Added jsr_semantics argument, more logic.
11147 (push_jump_merge): Added jsr_semantics argument.
11148 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
11149 merging through the jsr instruction.
11151 2004-01-07 Tom Tromey <tromey@redhat.com>
11153 * scripts/MakeDefaultMimeTypes.java: Use \n, not
11156 2004-01-07 Graydon Hoare <graydon@redhat.com>
11158 * java/awt/Container.java (LightweightDispatcher): Implement.
11159 (visitChild): Reuse graphics object.
11160 (dispatchEventImpl): Optionally dispatch to lightweight.
11161 (addNotifyContainerChildren): Build LightweightDispatcher.
11163 2004-01-07 David Jee <djee@redhat.com>
11165 * java/awt/Container.java
11166 (update): Clear only the clipped region, instead of clearing the
11168 (visitChildren): Visit children in descending order.
11170 2004-01-07 Michael Koch <konqueror@gmx.de>
11172 * java/lang/reflect/Array.java: Merged documentation with classpath.
11174 2004-01-07 Michael Koch <konqueror@gmx.de>
11176 * java/text/CollationElementIterator.java
11177 (textIndex): Renamed from index.
11178 * java/text/CollationKey.java
11179 (collator): New member.
11180 (CollationKey): New argument for parent collator.
11181 (equals): Check for same collator, source string and key array.
11182 * java/text/RuleBasedCollator.java:
11184 (RuleBasedCollator): Don't re-initialize frenchAccents with default
11186 (getCollationElementIterator): Rewritten.
11187 (getCollationKey): Added new argument to CollationKey constructor.
11189 2004-01-07 Michael Koch <konqueror@gmx.de>
11191 * gnu/java/nio/DatagramChannelImpl.java
11192 (blocking): Removed.
11193 (DatagramChannelImpl): Call configureBlocking().
11194 (implConfigureBlocking): Dont initialize blocking.
11195 * gnu/java/nio/ServerSocketChannelImpl.java
11196 (blocking): Removed.
11197 (ServerSocketChannelImpl): Call configureBlocking().
11198 (implConfigureBlocking): Dont initialize blocking.
11199 * gnu/java/nio/SocketChannelImpl.java
11200 (blocking): Removed.
11201 (SocketChannelImpl): Call configureBlocking().
11202 (implConfigureBlocking): Dont initialize blocking.
11203 (connect): Use isBlocking().
11204 * java/nio/channels/spi/AbstractSelectableChannel.java
11205 (configureBlocking): Use blockingLock() instead of LOCK.
11206 Set blocking after successfully called implConfigureBlocking().
11207 (register): Use blockingLock() instead of LOCK.
11209 2004-01-07 Michael Koch <konqueror@gmx.de>
11211 * java/net/ServerSocket.java (isBound): Fixed documentation.
11213 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
11215 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
11216 (changeEvent): Create event object on demand.
11217 (DefaultBoundedRangeModel, toString, setValue, setExtent,
11218 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
11219 fireStateChanged): Re-written.
11220 * javax/swing/event/EventListenerList.java: Reformatted, document
11222 (toString): Implemented.
11223 (getListeners): Re-written.
11224 (remove): Re-written.
11226 (NO_LISTENERS): New singleton field.
11227 (listenerList): Declare as transient; document.
11228 (serialVersionUID): Document.
11229 (getListenerCount(Class)): More efficient implementation,
11230 also accepts null argument. Improve Javadoc.
11231 (getListenerCount()): Remove unnecessary cast; docfix.
11232 * javax/swing/undo/UndoableEditSupport.java:
11233 Re-format, document.
11234 (UndoableEditSupport): Set realSource field. Improve documentation.
11235 (_postEdit): Iterate over cloned listener vector.
11236 (toString): Don't emit realSource.
11237 (beginUpdate, endUpdate): Support nested updates.
11238 (postEdit): Use compound edit if present.
11240 2004-01-06 Graydon Hoare <graydon@redhat.com>
11242 * java/awt/Container.java (swapComponents): Add forgotten
11243 function, required for JLayeredPane change.
11245 2004-01-06 Michael Koch <konqueror@gmx.de>
11247 * java/text/CollationElementIterator.java: Reformated.
11248 (CollationElementIterator): Changed order of arguments.
11249 * java/text/RuleBasedCollator.java
11250 (RuleBasedCollator): Merged class documentation.
11251 (CollationElement): Added documentation.
11252 (compare): Reformated, renamed arguments.
11253 (equals): Likewise.
11254 (getCollationElementIterator): Likewise.
11255 (getCollationKey): Likewise.
11257 2004-01-06 Graydon Hoare <graydon@redhat.com>
11259 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
11261 2004-01-06 Michael Koch <konqueror@gmx.de>
11263 * gnu/java/net/protocol/file/Connection.java:
11264 Reformated copyright.
11265 (hdrHash): Removed.
11267 (gotHeaders): Removed.
11268 (getHeaderField): Removed.
11269 (getHeaderField): Removed.
11270 (getHeaderFieldKey): Removed.
11272 (getField): Removed.
11273 (getHeaders): Removed.
11275 2004-01-06 Michael Koch <konqueror@gmx.de>
11277 * javax/print/attribute/standard/DateTimeAtCompleted.java,
11278 javax/print/attribute/standard/DateTimeAtCreation.java,
11279 javax/print/attribute/standard/DateTimeAtProcessing.java,
11280 javax/print/attribute/standard/JobImpressionsCompleted.java,
11281 javax/print/attribute/standard/JobKOctets.java,
11282 javax/print/attribute/standard/JobKOctetsProcessed.java,
11283 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
11284 javax/print/attribute/standard/JobPrioritySupported.java: New files.
11285 * Makefile.am (javax_source_files): Added new files.
11286 * Makefile.in: Regenerated.
11288 2004-01-06 Michael Koch <konqueror@gmx.de>
11290 * java/net/URLConnection.java
11291 (contentHandler): Removed.
11293 (getHeaderFields): Return an empty map instead of null.
11294 (getContent): Connect if needed, renamed "cType" to "type" and
11295 "contentHandler" to "ch" and made it a local variable.
11296 (getPermission): Don't use package in class name.
11297 (setDefaultRequestProperty): Fixed typo in documentation.
11298 (initializeDateFormats): Made locale a local variable.
11300 2004-01-06 Michael Koch <konqueror@gmx.de>
11302 * java/lang/Package.java
11303 (getPackage): Get the current class loader directly.
11304 * java/lang/SecurityManager.java
11305 (currentLoadedClass): Dont iterate over class contexts.
11306 (classLoaderDepth): Don't check class loaders if everything is allowed.
11308 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
11310 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
11311 (pre_event_handler): Set all insets to 0 when a Configure event
11312 is received for a GtkPlug.
11313 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
11314 Make handle long, not int.
11315 (EmbeddedWindow()): New constructor.
11316 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
11318 (setHandle): New method.
11319 (getHandle): Return long, not int.
11320 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
11322 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
11323 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
11324 (create(long)): Take long parameter, not int. Cast gtk_plug_new
11325 argument to GdkNativeWindow.
11326 (construct): New method.
11327 (embed): New method.
11329 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
11330 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
11331 (create(int, int)): New method.
11332 (create): Call new create method.
11333 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
11335 (childResized): Remove native implementation. Implement in
11337 (getHScrollbarHeight, getVScrollbarWidth): Call
11338 gtk_widget_size_request to get scrollbar dimensions.
11339 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
11340 call getVScrollbarWidth and getHScrollbarHeight when vertical
11341 and horizontal scrollbars respectively are needed.
11342 (doLayout): Enlarge child if it is smaller than the viewport.
11344 2004-01-05 Fernando Nasser <fnasser@redhat.com>
11346 * java/awt/Dialog.java (constructor): Accept null title as per spec.
11347 * java/awt/FileDialog.java (constructor): Throw exception on invalid
11348 argument as per spec.
11350 2004-01-05 Fernando Nasser <fnasser@redhat.com>
11352 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
11354 (remove): Ditto. Also, Check for valid argument.
11355 (removeAll): Use peer interface method.
11356 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
11357 native add function.
11358 (nativeRemove): New name for native remove function.
11359 (getHistory): New native function.
11360 (constructor): Generate ItemEvent.
11361 (add): Ditto, if selection is changed.
11362 (remove): Ditto, ditto.
11363 (removeAll): Add implementation.
11364 (handleEvent): Remove. Dead code.
11365 (choicePostItemEvent): Add comment.
11366 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
11367 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
11368 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
11369 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
11370 comments and fix condition to change selection.
11371 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
11372 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
11373 remove all capability.
11374 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
11375 (item_activate): Add cast to remove compiler warning.
11377 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
11379 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
11380 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
11381 (getPreferredSize): Call preferredSize.
11382 (preferredSize): Call gtkWidgetGetPreferredDimensions.
11383 (getMinimumSize): Call minimumSize.
11384 (minimumSize): Call gtkWidgetGetPreferredDimensions.
11385 (gtkWidgetGetDimensions): Return the peer widget's current size
11387 (gtkWidgetGetPreferredDimensions): Return the peer widget's
11388 natural size request.
11390 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
11392 Thanks to Brian Gough <bjg@network-theory.com>
11393 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
11394 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
11396 2004-01-04 Matthias Klose <doko@debian.org>
11398 * aclocal.m4: Rebuilt using "aclocal -I .".
11399 * configure: Rebuilt.
11401 2004-01-03 Per Bothner <per@bothner.com>
11403 * java/util/Date.java (parse): Fix a number of problems.
11404 (skipParens): Remove no-longer-needed method.