1 2004-10-20 Michael Koch <konqueror@gmx.de>
3 * java/sql/Timestamp.java,
4 java/text/AttributedCharacterIterator.java,
5 java/text/AttributedString.java,
6 java/util/zip/CheckedOutputStream.java,
7 java/util/zip/DeflaterOutputStream.java,
8 java/util/zip/ZipFile.java,
9 javax/crypto/Cipher.java,
10 javax/crypto/ExemptionMechanismException.java,
11 javax/crypto/SecretKey.java,
12 javax/crypto/SecretKeyFactory.java,
13 javax/naming/directory/ModificationItem.java,
14 javax/naming/directory/SearchControls.java,
15 javax/naming/event/NamingListener.java,
16 javax/naming/ldap/Control.java,
17 javax/naming/ldap/ExtendedResponse.java,
18 javax/net/ssl/SSLSocketFactory.java:
19 Reorganized imports and fixed copyright headers.
21 2004-10-20 Michael Koch <konqueror@gmx.de>
23 * java/util/logging/ConsoleHandler.java,
24 java/util/logging/ErrorManager.java,
25 java/util/logging/FileHandler.java,
26 java/util/logging/Filter.java,
27 java/util/logging/Formatter.java,
28 java/util/logging/Handler.java,
29 java/util/logging/Level.java,
30 java/util/logging/LogManager.java,
31 java/util/logging/LogRecord.java,
32 java/util/logging/Logger.java,
33 java/util/logging/LoggingPermission.java,
34 java/util/logging/MemoryHandler.java,
35 java/util/logging/SimpleFormatter.java,
36 java/util/logging/SocketHandler.java,
37 java/util/logging/StreamHandler.java,
38 java/util/logging/XMLFormatter.java:
39 Standardized copyrigth header.
41 2004-10-20 Michael Koch <konqueror@gmx.de>
43 * java/security/AlgorithmParameterGenerator.java,
44 java/security/AlgorithmParameters.java,
45 java/security/DigestInputStream.java,
46 java/security/Identity.java,
47 java/security/KeyFactory.java,
48 java/security/KeyPairGenerator.java,
49 java/security/KeyStore.java,
50 java/security/MessageDigest.java,
51 java/security/MessageDigestSpi.java,
52 java/security/Policy.java,
53 java/security/SecureRandom.java,
54 java/security/Security.java,
55 java/security/Signature.java,
56 java/security/SignatureSpi.java,
57 java/security/cert/CertPathBuilder.java,
58 java/security/cert/CertPathValidator.java,
59 java/security/cert/CertStore.java,
60 java/security/cert/Certificate.java,
61 java/security/cert/CertificateFactory.java,
62 java/security/cert/PolicyQualifierInfo.java,
63 java/security/cert/TrustAnchor.java,
64 java/security/cert/X509CRL.java,
65 java/security/cert/X509CRLEntry.java,
66 java/security/cert/X509Certificate.java,
67 java/security/spec/RSAMultiPrimePrivateCrtKeySpec.java:
68 Import statements reorganized, some little formatting issues,
69 used java-style array declarations, added comments in empty catch
72 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
74 * java/security/Security.java
75 (static): Use AccessController.doPrivileged to get system property.
77 2004-10-18 Sven de Marothy <sven@physto.se>
79 * java/nio/ByteBufferHelper.java
80 (putDouble): Use Double.toRawLongBits instead.
82 2004-10-18 Mark Wielaard <mark@klomp.org>
83 Andrew Haley <aph@redhat.com>
85 * testsuite/libjava.lang/ExtraClassLoader.java: New.
87 2004-10-18 Andrew Haley <aph@redhat.com>
90 * gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Reorganize
91 and correct logic used to find interpreter.
93 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
95 * java/util/logging/LogManager.java
96 (findAncestor): Fixed IndexOutOfBoundsException.
98 2004-10-18 Michael Koch <konqueror@gmx.de>
100 * java/io/BufferedInputStream.java: Fixed @author tag.
101 (read): Simplified expression.
102 (read): Merged javadoc a bit more.
103 (read): Renamed 'remain' to 'totalBytesRead'.
104 * java/io/DataInputStream.java,
105 java/io/DataOutputStream.java,
106 java/io/ObjectInputStream.java,
107 java/io/ObjectOutputStream.java:
108 Reworked modifier order.
110 2004-10-18 Michael Koch <konqueror@gmx.de>
112 * java/net/Inet4Address.java: Merged file header and javadocs.
113 * java/net/Inet6Address.java: Likewise.
114 * java/net/InetAddress.java
115 (getCanonicalHostName): Create Inet4Address object instead of
116 InetAddress and add comment regarding IPv6.
117 (toString): Simplified.
119 2004-10-18 Michael Koch <konqueror@gmx.de>
121 * gnu/java/net/protocol/http/Connection.java,
122 java/nio/MappedByteBufferImpl.java,
123 java/text/RuleBasedCollator.java,
124 java/util/ResourceBundle.java:
125 Reworked import statements.
127 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
129 * java/security/IdentityScope.java
130 (systemScope): Removed useless initializer.
131 * java/security/Policy.java
132 (currentPolicy): Likewise.
134 2004-10-18 Michael Koch <konqueror@gmx.de>
136 * java/lang/System.java: Revert accidential change.
138 2004-10-18 Michael Koch <konqueror@gmx.de>
140 * java/lang/Math.java,
141 java/lang/Package.java,
142 java/lang/Runtime.java,
143 java/lang/StrictMath.java,
144 java/lang/System.java,
145 java/lang/Thread.java,
146 java/lang/ThreadLocal.java,
148 Reworked import statements, HTML in javadocs and modifier orders.
150 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
152 * java/util/Timer.java
153 (nr): Removed useless initializer.
154 * java/util/logging/LogRecord.java
155 (lastSeqNum): Likewise.
156 * javax/naming/spi/NamingManager.java
157 (icfb, ofb): Likewise.
159 2004-10-18 Michael Koch <konqueror@gmx.de>
161 * gnu/java/net/PlainDatagramSocketImpl.java:
162 Reworked import statements.
163 * gnu/java/security/provider/DSAParameters.java:
164 Fixed copyrigth years.
165 * java/net/JarURLConnection.java:
166 Fixed HTML in @author tags.
169 2004-10-18 Michael Koch <konqueror@gmx.de>
171 * java/rmi/activation/ActivationSystem.java
172 (SYSTEM_PORT): Initialize with correct port number.
174 2004-10-18 Michael Koch <konqueror@gmx.de>
176 * java/lang/reflect/Proxy.java: Improved javadocs.
178 2004-10-18 Michael Koch <konqueror@gmx.de>
180 * java/lang/reflect/AccessibleObject.java
181 (checkPermission): Removed redundant final modifier.
182 (secureSetAccessible): Likewise.
183 * java/lang/reflect/Proxy.java:
184 Reworked import statements.
185 (generate): Removed redundant final modifier.
186 * java/lang/reflect/ReflectPermission.java:
187 Reorder package declaration and import statement.
189 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
191 * java/lang/reflect/Proxy.java
192 (count): Removed useless initializer.
194 2004-10-17 Michael Koch <konqueror@gmx.de>
196 * java/net/BindException.java,
197 java/net/ConnectException.java,
198 java/net/ContentHandler.java,
199 java/net/ContentHandlerFactory.java,
200 java/net/DatagramPacket.java,
201 java/net/DatagramSocket.java,
202 java/net/DatagramSocketImpl.java,
203 java/net/DatagramSocketImplFactory.java,
204 java/net/FileNameMap.java,
205 java/net/HttpURLConnection.java,
206 java/net/MalformedURLException.java,
207 java/net/MulticastSocket.java,
208 java/net/NetworkInterface.java,
209 java/net/NoRouteToHostException.java,
210 java/net/PasswordAuthentication.java,
211 java/net/PortUnreachableException.java,
212 java/net/ProtocolException.java,
213 java/net/ServerSocket.java,
214 java/net/Socket.java,
215 java/net/SocketException.java,
216 java/net/SocketImpl.java,
217 java/net/SocketImplFactory.java,
218 java/net/SocketOptions.java,
219 java/net/SocketPermission.java,
220 java/net/SocketTimeoutException.java,
222 java/net/URISyntaxException.java,
224 java/net/URLDecoder.java,
225 java/net/URLEncoder.java,
226 java/net/URLStreamHandler.java,
227 java/net/URLStreamHandlerFactory.java,
228 java/net/UnknownHostException.java,
229 java/net/UnknownServiceException.java:
230 Big import statement and @author tag cleanup.
232 2004-10-17 Michael Koch <konqueror@gmx.de>
234 * gnu/java/security/OID.java,
235 gnu/java/security/provider/DSAParameters.java,
236 gnu/java/security/provider/DSASignature.java,
237 gnu/java/security/x509/X500DistinguishedName.java,
238 gnu/java/security/x509/X509CRL.java:
239 Import statements cleaned up.
241 2004-10-16 Michael Koch <konqueror@gmx.de>
243 * gnu/java/nio/NIODatagramSocket.java,
244 gnu/java/nio/ServerSocketChannelImpl.java:
245 Reorganized import statements.
247 2004-10-16 Michael Koch <konqueror@gmx.de>
249 * gnu/java/rmi/RMIMarshalledObjectOutputStream.java
250 gnu/java/rmi/rmic/RMIC.java,
251 gnu/java/rmi/server/RMIHashes.java,
252 gnu/java/rmi/server/RMIObjectInputStream.java,
253 gnu/java/rmi/server/RMIObjectOutputStream.java,
254 gnu/java/rmi/server/UnicastConnection.java,
255 gnu/java/rmi/server/UnicastConnectionManager.java,
256 gnu/java/rmi/server/UnicastRemoteCall.java,
257 gnu/java/rmi/server/UnicastServer.java,
258 gnu/java/rmi/server/UnicastServerRef.java,
259 java/rmi/MarshalledObject.java,
260 java/rmi/Naming.java,
261 java/rmi/RMISecurityManager.java,
262 java/rmi/Remote.java,
263 java/rmi/activation/Activatable.java,
264 java/rmi/activation/ActivationDesc.java,
265 java/rmi/activation/ActivationGroup.java,
266 java/rmi/activation/ActivationGroupDesc.java,
267 java/rmi/activation/ActivationGroupID.java,
268 java/rmi/activation/ActivationID.java,
269 java/rmi/activation/ActivationInstantiator.java,
270 java/rmi/activation/ActivationMonitor.java,
271 java/rmi/activation/ActivationSystem.java,
272 java/rmi/activation/Activator.java,
273 java/rmi/dgc/DGC.java,
274 java/rmi/dgc/Lease.java,
275 java/rmi/dgc/VMID.java,
276 java/rmi/registry/LocateRegistry.java,
277 java/rmi/registry/Registry.java,
278 java/rmi/registry/RegistryHandler.java,
279 java/rmi/server/LoaderHandler.java,
280 java/rmi/server/LogStream.java,
281 java/rmi/server/ObjID.java,
282 java/rmi/server/Operation.java,
283 java/rmi/server/RMIClassLoader.java,
284 java/rmi/server/RMIClassLoaderSpi.java,
285 java/rmi/server/RMIClientSocketFactory.java,
286 java/rmi/server/RMIFailureHandler.java,
287 java/rmi/server/RMIServerSocketFactory.java,
288 java/rmi/server/RMISocketFactory.java,
289 java/rmi/server/RemoteCall.java,
290 java/rmi/server/RemoteObject.java,
291 java/rmi/server/RemoteRef.java,
292 java/rmi/server/RemoteServer.java,
293 java/rmi/server/RemoteStub.java,
294 java/rmi/server/ServerRef.java,
295 java/rmi/server/Skeleton.java,
296 java/rmi/server/SkeletonMismatchException.java,
297 java/rmi/server/UID.java,
298 java/rmi/server/UnicastRemoteObject.java,
299 java/rmi/server/Unreferenced.java:
300 File headers and import statements cleaned up.
302 2004-10-16 Michael Koch <konqueror@gmx.de>
304 * libjava/gnu/java/nio/charset/UTF_16.java,
305 libjava/gnu/java/nio/charset/UTF_16BE.java,
306 libjava/gnu/java/nio/charset/UTF_16LE.java,
307 libjava/java/nio/ByteOrder.java,
308 libjava/java/nio/MappedByteBuffer.java,
309 libjava/java/nio/channels/Channels.java,
310 libjava/java/nio/channels/spi/SelectorProvider.java,
311 libjava/java/nio/charset/Charset.java:
314 2004-10-16 Michael Koch <konqueror@gmx.de>
316 * gnu/java/nio/charset/UTF_16Encoder.java
317 (UTF_16Encoder): Fixed maxBytesPerChar handling.
319 2004-10-16 Michael Koch <konqueror@gmx.de>
321 * java/math/BigDecimal.java, java/math/BigInteger.java:
322 Reorganized import statements, removed redundant and
323 reorganized modifiers.
325 2004-10-16 Michael Koch <konqueror@gmx.de>
327 * gnu/java/beans/ExplicitBeanInfo.java:
328 Explicitely import java.awt.Image.
329 (getIcon): Fixed off-by-one error.
331 2004-10-15 Andrew Haley <aph@redhat.com>
333 * Makefile.am (nat_files, xlib_nat_files): New.
334 * Makefile.in: Regenerate.
336 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
338 * jni.cc (_Jv_JNIMethod::call): Use ffi_java_raw_call instead of
339 ffi_raw_call if FFI_NATIVE_RAW_API is not defined.
341 2004-10-13 Andrew Haley <aph@redhat.com>
343 * interpret.cc (_Jv_InterpMethod::run): Initialize
344 _Jv_StartOfInterpreter.
345 (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): Functions removed.
346 (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): New variables.
347 * gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Use
348 _Unwind_FindEnclosingFunction to discover whether PC is within the
351 2004-10-12 Rutger Ovidius <ovidr@users.sourceforge.net>
354 * testsuite/libjava.lang/md5test.java: New file.
355 * testsuite/libjava.lang/md5test.out: Likewise.
356 * testsuite/libjava.lang/shatest.java: Likewise.
357 * testsuite/libjava.lang/shatest.out: Likewise.
359 2004-10-11 Richard Henderson <rth@redhat.com>
361 * include/posix-threads.h <__alpha__> (_Jv_ThreadId_t): Use void*.
362 (_Jv_ThreadSelf): Use __builtin_thread_pointer.
364 2004-10-08 Bryce McKinlay <mckinlay@redhat.com>
366 * java/util/Calendar.java (set): Invalidate DST_OFFSET
367 field as a DST boundary may have been crossed.
368 * java/util/GregorianCalendar.java (add): Throw
369 IllegalArgumentException on attempt to add to DST_OFFSET or
370 ZONE_OFFSET fields. Update javadoc.
372 2004-10-09 Michael Koch <konqueror@gmx.de>
374 * java/io/CharArrayWriter.java
375 (resize): Removed redundant 'final' modifier.
376 * java/io/DataInputStream.java
377 (readFully): Throw IndexOutOfBoundsException of len < 0.
378 * java/io/FileDescriptor.java,
379 java/io/FileInputStream.java,
380 java/io/FileOutputStream.java,
381 java/io/ObjectOutputStream.java,
382 java/io/ObjectStreamClass.java,
383 java/io/PipedInputStream.java,
384 java/io/RandomAccessFile.java:
385 Reorganized import statements.
387 2004-10-09 Michael Koch <konqueror@gmx.de>
389 * gnu/java/rmi/rmic/RMIC.java,
390 gnu/java/rmi/server/RMIHashes.java,
391 gnu/java/rmi/server/RMIObjectInputStream.java,
392 gnu/java/rmi/server/UnicastConnection.java,
393 gnu/java/rmi/server/UnicastConnectionManager.java,
394 gnu/java/rmi/server/UnicastRemoteCall.java,
395 gnu/java/rmi/server/UnicastServerRef.java:
396 Reworked import statements and fixed file headers.
398 2004-10-04 Loren J. Rittle <ljrittle@acm.org>
400 * configure.ac (*-*-freebsd[[1234]]*): Refine error message
402 * configure: Rebuilt.
404 2004-09-30 Tom Tromey <tromey@redhat.com>
406 * java/text/MessageFormat.java (Field): Constructor now
409 2004-09-30 Tom Tromey <tromey@redhat.com>
411 * javax/crypto/MacSpi.java: Fixed typo.
413 2004-09-30 Michael Koch <konqueror@gmx.de>
415 * java/net/InetAddress.java: Reformatted.
416 (loopback): Initialize with Inet4Address object.
417 (static): Initialize ANY_IF with Inet4Address object.
418 (InetAddress): Removed unused package-private constructor.
420 2004-09-30 Michael Koch <konqueror@gmx.de>
422 * java/beans/Beans.java,
423 java/beans/EventHandler.java,
424 java/beans/EventSetDescriptor.java,
425 java/beans/Introspector.java,
426 java/beans/PropertyEditorManager.java,
427 java/beans/beancontext/BeanContext.java,
428 java/beans/beancontext/BeanContextChild.java,
429 java/beans/beancontext/BeanContextChildSupport.java,
430 java/beans/beancontext/BeanContextMembershipEvent.java:
431 Reordered import statements and removed redundant modifiers.
433 2004-09-29 Tom Tromey <tromey@redhat.com>
436 * Makefile.in: Rebuilt.
437 * Makefile.am (libgcj-@gcc_version@.jar): Include properties
439 (all_property_files): New macro.
441 * Makefile.in: Rebuilt.
442 * Makefile.am (ordinary_java_source_files): Re-sorted.
443 (libgcj.la): Moved to old location near lib-gnu-awt-xlib.la.
445 2004-09-28 Tom Tromey <tromey@redhat.com>
447 * jni.cc (_Jv_JNI_RegisterNatives): Formatting fixlets.
450 * Makefile.am (libgcj.la): Restored.
451 * Makefile.in: Rebuilt.
453 2004-09-28 Michael Koch <konqueror@gmx.de>
455 * java/net/URLConnection.java: Reformatted.
456 * java/net/URLClassLoader.java: Reformatted.
457 (getContent): Reordered return of content.
458 (getContentHandler): Don't check for null explicitely.
460 2004-09-27 Michael Koch <konqueror@gmx.de>
462 * java/io/BufferedInputStream.java
463 (BufferedInputStream): Added Jeroen Frijters to authors.
464 (count): Don't explicitely initialize with default value.
466 (marklimit): Likewise.
467 (read): Changed boolean expression to match GNU classpath' version.
468 (reset): Add proper message to exception.
469 (skip): Check for closed stream.
472 2004-09-26 Per Bothner <per@bothner.com>
474 * prims.cc (unblock_signal): Annotate signum with __unused__ to
475 avoid warnings in the non-POSIX_VERSION case.
476 Also, we only need this function if either HANDLE_SEGV or HANDLE_FPE,
477 so place it inside an #if block.
478 * include/default-signal.h (SIGNAL_HANDLER): Parameters are __unused__.
479 * include/i386-signal.h (SIGNAL_HANDLER): Likewise
480 * include/mips-signal.h (SIGNAL_HANDLER): Likewise
481 * include/sparc-signal.h (SIGNAL_HANDLER): Likewise
483 2004-09-26 Per Bothner <per@bothner.com>
485 * prims.cc (process_gcj_properties): Optimization.
487 2004-09-26 Per Bothner <per@bothner.com>
489 * java/util/Collections.java (sort): Copy from array in forwards
490 order, rather than reverse order which may be much less efficient.
492 2004-09-26 Mark Wielaard <mark@klomp.org>
494 * java/lang/System.java (properties): Make package private.
495 * java/lang/Throwable.java (StaticData.nl): Initialize through
496 directly accessing System.properties.getProperty().
498 * java/lang/Throwable.java (nl): Remove static field.
499 (StaticData): New private static inner class.
500 (stackTraceStringBuffer): Use StaticData.nl.
502 2004-09-26 Casey Marshall <csm@gnu.org>
504 * java/security/ProtectionDomain.java
505 (<init>(CodeSource,PermissionCollection)): set `staticBinding' to
508 * java/security/SecureClassLoader.java
509 (defineClass): make protection domain dynamically bound.
510 (getPermissions): call `getCurrentPolicy' to avoid permission
513 2004-09-25 Mark Wielaard <mark@klomp.org>
515 * Makefile.am (core_java_source_files): Add VMTimeZone.java.
516 (nat_source_files): Rename natTimeZone.cc to natVMTimeZone.cc.
517 * Makefile.in: Regenerated.
519 * gcj/javaprims.h: Regenerated.
521 * java/util/TimeZone.java (defaultZone): Use VMTimeZone.
522 (getDefaultTimeZone): Make package private. Check that GMToffset
523 contains at least one digit.
524 (getDefaultTimeZoneId, readTimeZoneFile, readtzFile): (Re)Moved to
526 * util/VMTimeZone.java: New file with above methods.
528 * java/util/natTimeZone.cc: Removed (renamed).
529 * java/util/natVMTimeZone.cc: Added (renamed).
531 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
533 * java/util/TimeZone.java
534 (getDefaultTimeZone): Fixed test to distinguish between hours and
535 minutes in specified timezone.
537 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
539 * java/lang/reflect/Proxy.java (getPackage, ClassFactory): Fixed
540 handling of default package. (generate): Removed confused comments
541 and code about making Method and Field accessible.
543 2004-09-25 Tom Tromey <tromey@redhat.com>
546 * testsuite/libjava.compile/pr17500.java: New file.
548 2004-09-25 Shashank Bapat <shashankbapat@yahoo.com>
549 Mark Wielaard <mark@klomp.org>
551 * gnu/regexp/RE.java (initialize): Add RETokenLookAhead support.
552 * gnu/regexp/RETokenLookAhead.java: New file.
554 * Makefile.am (ordinary_java_source_files): Add RETokenLookAhead.java.
555 * Makefile.in: Regenerated.
557 2004-09-25 Michael Koch <konqueror@gmx.de>
559 * java/io/ObjectStreamField.java:
560 Removed unused import statement.
562 2004-09-24 Tom Tromey <tromey@redhat.com>
565 * testsuite/libjava.compile/pr15656.xfail: New file.
566 * testsuite/libjava.compile/pr15656.java: new file.
569 * testsuite/libjava.lang/pr16789.out: New file.
570 * testsuite/libjava.lang/pr16789.java: New file.
572 2004-09-24 Andrew Haley <aph@redhat.com>
575 * testsuite/libjava.compile/AssertBug.java: New file.
577 2004-09-24 Casey Marshall <csm@gnu.org>
579 * java/util/PropertyPermissionCollection.java
580 (implies): avoid infinite loop.
582 2004-09-24 Andrew John Hughes <gnu_andrew@member.fsf.org>
584 * javax/security/auth/PrivateCredentialPermission.java
585 (PrivateCredentialPermission): added serialization UID
588 2004-09-24 Ilya Perminov <iperminov@logicalsoft.com>
590 * gnu/java/rmi/server/UnicastServer.java
591 (incomingMessageCall): Added code to handle Errors.
592 * gnu/java/rmi/server/UnicastServerRef.java
593 (incomingMessageCall): Added code to handle Errors.
596 2004-09-24 Tom Tromey <tromey@redhat.com>
598 * java/lang/ClassLoader.java (loadedClasses): Declare as HashMap.
599 (definedPackages): Likewise.
601 2004-09-24 Michael Koch <konqueror@gmx.de>
603 * java/io/ObjectInputStream.java:
606 2004-09-24 Casey Marshall <csm@gnu.org>
608 * java/io/ObjectInputStream.java (callReadMethod): re-throw
609 `ClassNotFoundException'.
611 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
613 * java/io/ObjectInputStream.java (readObject): Delegate instantation
614 of Externalizable classes to ObjectStreamClass.
615 * java/io/ObjectStreamClass.java (newInstance): New method to
616 instantiate Externalizable (while ignoring the accessibility of
617 the constructor). (constructor): New field to cache the constructor.
619 2004-09-24 Mark Wielaard <mark@klomp.org>
621 * java/net/URL.java (systemClassLoader): New static field.
622 (getURLStreamHandler): Always use system/application classloader
623 for finding URLStreamhandler. Remove unecessary instanceof checks.
625 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
628 (set): This method now matches the behaviour of the JDK.
629 (DEFAULT_SEARCH_PATH): Added "gnu.inet".
631 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
633 * java/net/URL.java (URL): Delete whitespaces in the protocol string.
635 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
637 * java/net/URL.java (URL(String,String,int,String,URLStreamHandler):
638 Don't set authority if host isn't specified.
640 2004-09-24 Michael Koch <konqueror@gmx.de>
642 * gnu/java/nio/PipeImpl.java: Use VMPipe for native stuff.
643 * gnu/java/nio/SelectorImpl.java: Use VMSelector for native stuff.
644 * gnu/java/nio/VMPipe.java,
645 gnu/java/nio/VMSelector.java:
647 * gnu/java/nio/natPipeImplEcos.cc,
648 gnu/java/nio/natPipeImplPosix.cc,
649 gnu/java/nio/natPipeImplWin32.cc:
651 * gnu/java/nio/natSelectorImplEcos.cc,
652 gnu/java/nio/natSelectorImplPosix.cc,
653 gnu/java/nio/natSelectorImplWin32.cc:
654 Ported to VMSelector.
655 * Makefile.am: Added new files gnu/java/nio/VMPipe.java and
656 gnu/java/nio/VMSelector.java.
657 * Makefile.in: Regenerated.
659 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
661 * java/lang/StackTraceElement.java
662 (className): Renamed field to declaringClass to be compatible
663 with Sun serialization format.
665 2004-09-23 Michael Koch <konqueror@gmx.de>
667 * java/applet/AppletContext.java,
668 java/applet/Applet.java,
669 java/applet/AppletStub.java,
670 java/applet/AudioClip.java:
671 Jalopied and checkstyle clean.
673 2004-09-23 Mark Wielaard <mark@klomp.org>
675 * java/util/Collections.java
676 (binarySearch(List, Object, Comparator)): Explicitly
677 reverse direction in list iterator.
678 (rotate): Just return when list is empty.
680 2004-09-23 Tom Tromey <tromey@redhat.com>
683 * testsuite/libjava.compile/pr17329.java: New file.
686 * testsuite/libjava.jacks/jacks.xfail: Added 9.2-implicit-6 and
689 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
691 * Makefile.am: Run aclocal with -I ../config
692 * acinclude.m4: Delete macros picked up from ../config and tidy.
693 (AM_ICONV,AM_LC_MESSAGES, PKG_CHECK_MODULES): Delete.
694 * aclocal.m4, configure, Makefile.in, gcj/Makefile.in: Regenerate.
695 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
697 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
699 * aclocal.m4: Regenerate with aclocal 1.9.2.
700 * configure: Regenerate.
701 * Makefile.in, gcj/Makefile.in: Regenerate with automake 1.9.2.
702 * include/Makefile.in, testsuite/Makefile.in: Likewise.
704 2004-09-22 David Daney <ddaney@avtrex.com>
707 * java/net/URL.java (URL): Copy userInfo from context.
708 (getUserInfo): Return cached userInfo if present.
710 2004-09-22 Tom Tromey <tromey@redhat.com>
713 * mauve-libgcj: Enable java.lang.Character tests.
715 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
717 * Makefile.am (lib_org_ietf_jgss_la_DEPENDENCIES): Add missing
719 (lib_org_ietf_jgss_la_LIBADD): Likewise.
720 * Makefile.in: Regenerated.
722 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
724 * configure.ac: Introduce AC_C_BIGENDIAN_CROSS for WORDS_BIGENDIAN.
725 * configure: Regenerate.
726 * include/config.h.in: Likewise.
727 * jni/gtk-peer/gtkpeer.h (SWAPU32): Introduce macro to swap pixels.
728 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c: Moved SWAPU32
730 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
731 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_getImagePixels): Convert
732 pixels from 0xBBGGRRAA to 0xAARRGGBB only on Little Endian
734 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c (area_updated):
737 2004-09-22 Tom Tromey <tromey@redhat.com>
740 * java/util/zip/GZIPInputStream.java (read): Avoid sign extension
742 * java/util/zip/InflaterInputStream.java (onebytebuffer): New
744 (read()): New overload.
746 2004-09-21 Tom Tromey <tromey@redhat.com>
748 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
751 2004-09-21 Michael Koch <konqueror@gmx.de>
753 * java/net/Socket.java
754 (getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
756 2004-09-21 Casey Marshall <csm@gnu.org>
758 * javax/crypto/MacSpi.java (clone): Provide meaningful
761 2004-09-21 Tom Tromey <tromey@redhat.com>
764 * Makefile.in: Rebuilt.
765 * Makefile.am (MOSTLYCLEANFILES): Removed.
766 (mostlyclean-local): Remove header files.
768 2004-09-21 Casey Marshall <csm@gnu.org>
770 * java/security/cert/X509CRLSelector.java:
771 (match): remove unreachable try-catch clauses.
772 Reported by: Dalibor Topic <robilad@kaffe.org>
774 2004-09-21 Mark Wielaard <mark@klomp.org>
776 * java/util/TreeMap.java (root): Don't initialize.
777 (TreeMap(Comparator)): Call fabricateTree(0).
778 (fabricateTree): Initialize root and size when count is 0.
780 2004-09-21 Sven de Marothy <sven@physto.se>
782 * java/nio/ByteBuffer.java (hashCode): Implemented.
783 * java/nio/CharBuffer.java: Likewise.
784 * java/nio/DoubleBuffer.java: Likewise.
785 * java/nio/FloatBuffer.java: Likewise.
786 * java/nio/LongBuffer.java: Likewise.
787 * java/nio/IntBuffer.java: Likewise.
788 * java/nio/ShortBuffer.java: Likewise.
790 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
792 * javax/security/auth/x500/X500Principal.java: Fix some merge glitches.
794 2004-09-21 Michael Koch <konqueror@gmx.de>
796 * javax/net/ssl/SSLServerSocket.java:
797 Removed comment about "Do not edit this file, it's generated.".
799 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
801 Import the big Crypto/Jessie/Security merge from Classpath.
803 * Makefile.am: Add imported files.
804 * Makefile.in: Regenerate.
806 2004-08-14 Casey Marshall <csm@gnu.org>
808 The Big Crypto Merge of 2004.
810 * javax/security/auth/x500/X500Principal.java: Replaced with GNU
813 Files imported from GNU Crypto.
814 * javax/crypto/BadPaddingException.java
815 * javax/crypto/Cipher.java
816 * javax/crypto/CipherInputStream.java
817 * javax/crypto/CipherOutputStream.java
818 * javax/crypto/CipherSpi.java
819 * javax/crypto/EncryptedPrivateKeyInfo.java
820 * javax/crypto/ExemptionMechanism.java
821 * javax/crypto/ExemptionMechanismException.java
822 * javax/crypto/ExemptionMechanismSpi.java
823 * javax/crypto/IllegalBlockSizeException.java
824 * javax/crypto/KeyAgreement.java
825 * javax/crypto/KeyAgreementSpi.java
826 * javax/crypto/KeyGenerator.java
827 * javax/crypto/KeyGeneratorSpi.java
828 * javax/crypto/Mac.java
829 * javax/crypto/MacSpi.java
830 * javax/crypto/Makefile.am
831 * javax/crypto/NoSuchPaddingException.java
832 * javax/crypto/NullCipher.java
833 * javax/crypto/NullCipherImpl.java
834 * javax/crypto/SealedObject.java
835 * javax/crypto/SecretKey.java
836 * javax/crypto/SecretKeyFactory.java
837 * javax/crypto/SecretKeyFactorySpi.java
838 * javax/crypto/ShortBufferException.java
839 * javax/crypto/interfaces/DHKey.java
840 * javax/crypto/interfaces/DHPrivateKey.java
841 * javax/crypto/interfaces/DHPublicKey.java
842 * javax/crypto/interfaces/PBEKey.java
843 * javax/crypto/spec/DESKeySpec.java
844 * javax/crypto/spec/DESedeKeySpec.java
845 * javax/crypto/spec/DHGenParameterSpec.java
846 * javax/crypto/spec/DHParameterSpec.java
847 * javax/crypto/spec/DHPrivateKeySpec.java
848 * javax/crypto/spec/DHPublicKeySpec.java
849 * javax/crypto/spec/IvParameterSpec.java
850 * javax/crypto/spec/PBEKeySpec.java
851 * javax/crypto/spec/PBEParameterSpec.java
852 * javax/crypto/spec/RC2ParameterSpec.java
853 * javax/crypto/spec/RC5ParameterSpec.java
854 * javax/crypto/spec/SecretKeySpec.java
855 * javax/security/auth/AuthPermission.java
856 * javax/security/auth/DestroyFailedException.java
857 * javax/security/auth/Destroyable.java
858 * javax/security/auth/Policy.java
859 * javax/security/auth/PrivateCredentialPermission.java
860 * javax/security/auth/RefreshFailedException.java
861 * javax/security/auth/Refreshable.java
862 * javax/security/auth/Subject.java
863 * javax/security/auth/SubjectDomainCombiner.java
864 * javax/security/auth/callback/Callback.java
865 * javax/security/auth/callback/CallbackHandler.java
866 * javax/security/auth/callback/ChoiceCallback.java
867 * javax/security/auth/callback/ConfirmationCallback.java
868 * javax/security/auth/callback/LanguageCallback.java
869 * javax/security/auth/callback/NameCallback.java
870 * javax/security/auth/callback/PasswordCallback.java
871 * javax/security/auth/callback/TextInputCallback.java
872 * javax/security/auth/callback/TextOutputCallback.java
873 * javax/security/auth/callback/UnsupportedCallbackException.java
874 * javax/security/auth/login/AccountExpiredException.java
875 * javax/security/auth/login/AppConfigurationEntry.java
876 * javax/security/auth/login/Configuration.java
877 * javax/security/auth/login/CredentialExpiredException.java
878 * javax/security/auth/login/FailedLoginException.java
879 * javax/security/auth/login/LoginContext.java
880 * javax/security/auth/login/LoginException.java
881 * javax/security/auth/login/NullConfiguration.java
882 * javax/security/auth/x500/X500PrivateCredential.java
883 * javax/security/sasl/AuthenticationException.java
884 * javax/security/sasl/AuthorizeCallback.java
885 * javax/security/sasl/RealmCallback.java
886 * javax/security/sasl/RealmChoiceCallback.java
887 * javax/security/sasl/Sasl.java
888 * javax/security/sasl/SaslClient.java
889 * javax/security/sasl/SaslClientFactory.java
890 * javax/security/sasl/SaslException.java
891 * javax/security/sasl/SaslServer.java
892 * javax/security/sasl/SaslServerFactory.java
893 * org/ietf/jgss/ChannelBinding.java
894 * org/ietf/jgss/GSSContext.java
895 * org/ietf/jgss/GSSCredential.java
896 * org/ietf/jgss/GSSException.java
897 * org/ietf/jgss/GSSManager.java
898 * org/ietf/jgss/GSSName.java
899 * org/ietf/jgss/MessageProp.java
900 * org/ietf/jgss/Oid.java
901 * org/ietf/jgss/MessagesBundle.properties
903 Files imported from Jessie <http://www.nongnu.org/jessie/>
904 * javax/net/ServerSocketFactory.java
905 * javax/net/SocketFactory.java
906 * javax/net/VanillaServerSocketFactory.java
907 * javax/net/VanillaSocketFactory.java
908 * javax/net/ssl/HandshakeCompletedEvent.java
909 * javax/net/ssl/HandshakeCompletedListener.java
910 * javax/net/ssl/HostnameVerifier.java
911 * javax/net/ssl/HttpsURLConnection.java
912 * javax/net/ssl/KeyManager.java
913 * javax/net/ssl/KeyManagerFactory.java
914 * javax/net/ssl/KeyManagerFactorySpi.java
915 * javax/net/ssl/ManagerFactoryParameters.java
916 * javax/net/ssl/SSLContext.java
917 * javax/net/ssl/SSLContextSpi.java
918 * javax/net/ssl/SSLException.java
919 * javax/net/ssl/SSLHandshakeException.java
920 * javax/net/ssl/SSLKeyException.java
921 * javax/net/ssl/SSLPeerUnverifiedException.java
922 * javax/net/ssl/SSLPermission.java
923 * javax/net/ssl/SSLProtocolException.java
924 * javax/net/ssl/SSLServerSocket.java
925 * javax/net/ssl/SSLServerSocketFactory.java
926 * javax/net/ssl/SSLSession.java
927 * javax/net/ssl/SSLSessionBindingEvent.java
928 * javax/net/ssl/SSLSessionBindingListener.java
929 * javax/net/ssl/SSLSessionContext.java
930 * javax/net/ssl/SSLSocket.java
931 * javax/net/ssl/SSLSocketFactory.java
932 * javax/net/ssl/TrivialHostnameVerifier.java
933 * javax/net/ssl/TrustManager.java
934 * javax/net/ssl/TrustManagerFactory.java
935 * javax/net/ssl/TrustManagerFactorySpi.java
936 * javax/net/ssl/X509KeyManager.java
937 * javax/net/ssl/X509TrustManager.java
938 * javax/security/cert/Certificate.java
939 * javax/security/cert/CertificateEncodingException.java
940 * javax/security/cert/CertificateException.java
941 * javax/security/cert/CertificateExpiredException.java
942 * javax/security/cert/CertificateNotYetValidException.java
943 * javax/security/cert/CertificateParsingException.java
944 * javax/security/cert/X509CertBridge.java
945 * javax/security/cert/X509Certificate.java
947 2004-08-20 Casey Marshall <csm@gnu.org>
949 * java/security/cert/X509CRLSelector.java: New file.
950 * java/security/cert/X509CertSelector.java: New file.
952 2004-09-15 Michael Koch <konqueror@gmx.de>
954 * gnu/java/net/protocol/file/Handler.java
955 (openConnection): Don't throw exception if host part for file: URI is
956 present. setURL() keeps file: protocol if ftp: protocol is not
959 2004-09-14 Richard Henderson <rth@redhat.com>
961 * java/lang/natPosixProcess.cc (waitForSignal): Ignore return
964 2004-09-12 Tom Tromey <tromey@redhat.com>
966 * javax/naming/CompoundName.java (CompoundName): Don't check for
967 separator in "flat" case.
969 2004-09-12 Michael Koch <konqueror@gmx.de>
971 * libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces
972 AM_CONFIG_HEADER by AC_CONFIG_FILES.
973 * libltdl/Makefile.in, libltdl/aclocal.m4, libltdl/configure:
976 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
979 * win32-threads.cc (_Jv_ThreadInitData): Zero out thread
980 handle in newly-allocated _Jv_Thread_t.
981 (_Jv_ThreadDestroyData): Close thread handle.
982 (_Jv_ThreadStart): Remove obsolete comment.
983 Store handle of newly-created thread in _Jv_Thread_t.
984 * include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
985 before including <windows.h>
986 #define _Jv_HaveCondDestroy
988 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
990 * java/lang/natThread.cc (finalize_native): Destroy
991 join conditional variable and mutex if these destroy
992 operations are supported.
994 2004-09-10 Dalibor Topic <robilad@kaffe.org>
996 * gnu/java/net/protocol/file/Connection.java (permission): New field.
997 (DEFAULT_PERMISSION): New constant.
998 (Connection): Create a FilePermission with permission to read file.
1000 2004-09-10 Michael Koch <konqueror@gmx.de>
1002 * gnu/java/net/protocol/file/Connection.java
1003 (getLastModified): Moved around.
1004 (getPermission): Return stored permission.
1006 2004-09-10 Michael Koch <konqueror@gmx.de>
1008 * Makefile.in: Regenerate.
1010 2004-09-10 Michael Koch <konqueror@gmx.de>
1012 * Makefile.am: Reverted accidently commited stuff.
1013 * configure: Regenerated.
1015 2004-09-10 Michael Koch <konqueror@gmx.de>
1017 * gnu/java/net/protocol/file/Connection.java
1018 (lineSeparator): Made non-final.
1020 (connect): Initialize lineSeparator lazily. Use ByteArrayInputStream
1021 instead of StringBufferInputStream.
1023 2004-09-10 Michael Koch <konqueror@gmx.de>
1025 * gnu/java/net/protocol/file/Connection.java
1026 (connect): Handle file is a directory case.
1028 2004-09-10 Michael Koch <konqueror@gmx.de>
1031 (xlib_includes): Removed.
1032 (AM_CPPFLAGS): Renamed from INCLUDES.
1033 (lib_gnu_awt_xlib_la_CPPFLAGS): New automake variable.
1034 * Makefile.in: Regenerate.
1036 2004-09-09 Michael Koch <konqueror@gmx.de>
1038 * java/security/ProtectionDomain.java,
1039 * java/util/PropertyPermissionCollection.java:
1040 Fixed javadocs all over.
1042 2004-09-09 Sven de Marothy <sven@physto.se>
1044 Patch from David Gilbert <david.gilbert@object-refinery.com>
1045 * java/lang/Comparable.java: Fixed documentation errors.
1046 * java/util/Arrays.java: Likewise.
1048 2004-09-09 Andrew John Hughes <gnu_andrew@member.fsf.org>
1050 * java/net/Inet4Address.java
1051 (Inet4Address): Added comment to serialization UID.
1052 * java/text/Format.java
1053 (Format): Added comment to serialization UID.
1055 2004-09-09 Michael Koch <konqueror@gmx.de>
1057 * java/lang/System.java
1058 (err): Fixed javadoci to point to setErr() and not setOut().
1060 2004-09-09 Jeroen Frijters <jeroen@frijters.net>
1062 (normalizePath): Added special case for windows systems.
1064 2004-09-09 Michael Koch <konqueror@gmx.de>
1067 (dupSeparator): Made private.
1068 (File(URI)): New constructor.
1069 (getParentFile): Fixed javadoc.
1070 (createTempFile): Reformated.
1071 (setReadOnly): Added comment.
1072 (deleteOnExit): Merged javadoc with classpath version.
1074 2004-09-09 Michael Koch <konqueror@gmx.de>
1076 * Makefile.am: Don't try to include deps.mk.
1077 * Makefile.in: Regenerated.
1079 2004-09-08 Bryce McKinlay <mckinlay@redhat.com>
1081 * configure.ac (AC_CONFIG_COMMANDS): Don't create subdirectories and
1083 * configure: Rebuilt.
1085 2004-09-04 Mohan Embar <gnustuff@thisiscool.com>
1087 * java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces):
1088 Changed pfn from static local to local.
1090 2004-09-03 Bryce McKinlay <mckinlay@redhat.com>
1091 H.J. Lu <hongjiu.lu@intel.com>
1094 * Makefile.am (GCJCOMPILE): Remove definition.
1095 (AM_CFLAGS): Add -fclasspath and -fbootclasspath flags.
1096 Use LTGCJCOMPILE, not GCJCOMPILE, to build .lo targets.
1097 * Makefile.in: Rebuilt.
1099 2004-09-03 Kelley Cook <kcook@gcc.gnu.org>
1101 * configure.ac (enable-gc-debug): Update help for new syntax.
1102 * configure: Regenerate.
1104 2004-09-03 David Daney <ddaney@avtrex.com>
1106 * include/mips-signal.h: Update copyright.
1108 2004-09-03 David Daney <ddaney@avtrex.com>
1110 * configure.host: Use -fno-use-divide-subroutine for mips*-*-linux*.
1111 * include/mips-signal.h: Added HANDLE_FPE support.
1113 2004-08-31 Michael Koch <konqueror@gmx.de>
1115 * javax/swing/plaf/basic/BasicTextAreaUI.java
1116 (create): New method.
1117 * javax/swing/text/DefaultHighlighter.java
1118 (DefaultHighlightPainter.debugRect): Removed.
1119 * javax/swing/text/StyleContext.java
1120 (DEFAULT_STYLE): New field.
1122 2004-08-31 Michael Koch <konqueror@gmx.de>
1124 * javax/swing/plaf/basic/BasicLookAndFeel.java
1125 (initComponentDefaults): Add keybindings for selection.backward and
1126 selection-forward for text components.
1127 * javax/swing/plaf/basic/BasicTextUI.java
1128 (paintSafely): Paint highlight only when something is actually
1130 * javax/swing/text/DefaultCaret.java
1131 (handleHighlight): New method.
1132 (setSelectionVisible): Don't do anything when nothing changes.
1134 (moveDot): Reimplemented. Handle highlight.
1135 (setDot): Set mark too. Handle highlight.
1136 (getSelectionPainter): New method.
1137 * javax/swing/text/DefaultEditorKit.java
1138 (defaultActions): Added new actions for text selection.
1139 * javax/swing/text/DefaultHighlighter.java
1140 (DefaultHighlightPainter): New inner class.
1141 (DefaultPainter): New field.
1142 (paint): Implemented.
1143 * javax/swing/text/PlainView.java
1144 (paint): Don't draw background here again.
1145 * javax/swing/text/Utilities.java
1146 (getTabbedTextWidth): Use width of ' ' instead of 'm' for tabsize.
1147 (drawTabbedText): Likewise.
1149 2004-08-31 Graydon Hoare <graydon@redhat.com>
1151 * javax/swing/JComponent.java
1152 (resetKeyboardActions): Add null checks.
1154 2004-08-31 Graydon Hoare <graydon@redhat.com>
1156 * javax/swing/DefaultButtonModel.java:
1157 Skip group notification when no group is set.
1159 2004-08-31 Graydon Hoare <graydon@redhat.com>
1161 * javax/swing/JColorChooser.java:
1162 Make a couple inner classes static, for jikes.
1164 2004-08-31 Michael Koch <konqueror@gmx.de>
1166 * javax/swing/plaf/basic/BasicTextUI.java
1167 (RottView.modelToView): New method.
1168 (UpdateHandler): Renamed from EventHandler.
1169 (updateHandler): Renamed from eventHandler.
1170 (modelToView): Implemented.
1171 * javax/swing/text/AbstractDocument.java
1172 (BranchElement.getElement): Return null for non-existing indeces.
1173 (BranchElement.getElementIndex): Return 0 in some corner cases.
1174 * javax/swing/text/FieldView.java
1175 (modelToView): New method.
1176 * javax/swing/text/PlainView.java
1177 (modelToView): Made public.
1179 2004-08-31 Kim Ho <kho@redhat.com>
1181 * Makefile.am: New files.
1182 * Makefile.in: Regenerate.
1183 * gcj/Makefile.in: Regenerate.
1184 * include/Makefile.in: Regenerate.
1185 * java/awt/Color.java: Fix documentation.
1186 (RGBtoHSB): Use floats for conversions.
1187 * javax/swing/ButtonGroup.java: Run Jalopy.
1188 (setSelected): Reimplement.
1189 * javax/swing/DefaultButtonModel.java: Run Jalopy.
1190 (changeState): Let ButtonGroup know that the button
1192 * javax/swing/JColorChooser.java: Implement.
1193 * javax/swing/JLabel.java: Run Jalopy.
1194 * javax/swing/JSpinner.java: Run Jalopy.
1195 (setValue): New method.
1196 * javax/swing/JTabbedPane.java: Run Jalopy.
1197 (removeTabAt): Call correct remove method.
1198 * javax/swing/SpinnerNumberModel.java: Run Jalopy.
1199 (getPreviousValue): Compare minimum value.
1200 * javax/swing/Timer.java: Run Jalopy.
1201 (run): Comment out println.
1202 * javax/swing/ToolTipManager.java:
1203 (mouseMoved): Get new tooltip text for location.
1204 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
1206 * javax/swing/colorchooser/ColorChooserComponentFactory.java:
1208 * javax/swing/colorchooser/DefaultColorSelectionModel.java:
1210 (setSelectedColor): Fire ChangeEvent.
1211 * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
1212 New file. Implement.
1213 * javax/swing/colorchooser/DefaultPreviewPanel.java:
1215 * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
1217 * javax/swing/colorchooser/DefaultSwatchChooserPanel.java:
1219 * javax/swing/plaf/basic/BasicArrowButton.java:
1220 (getArrow): Fix size of upward pointing button.
1221 * javax/swing/plaf/basic/BasicColorChooserUI.java:
1223 * javax/swing/plaf/basic/BasicSliderUI.java:
1224 (getWidthOfWidestLabel): Use preferred dimensions.
1225 (getHeightOfTallestLabel): Ditto.
1226 * javax/swing/plaf/basic/BasicSpinnerUI.java:
1228 (mousePressed): Disable changes to spinner if it is not enabled.
1229 * testsuite/Makefile.in: Regenerate.
1232 2004-08-31 Michael Koch <konqueror@gmx.de>
1234 * javax/swing/plaf/basic/BasicTableHeaderUI.java,
1235 javax/swing/plaf/basic/BasicTableUI.java:
1236 Added copyright notice.
1238 2004-08-31 Olga Rodimina <rodimina@redhat.com>
1240 * Makefile.am: Added new files.
1241 * Makefile.in: Regenerate.
1242 * javax/swing/ComboBoxEditor.java: Added javadocs.
1243 * javax/swing/ComboBoxModel.java: Likewise.
1244 * javax/swing/DefaultComboBoxModel.java: Implemented.
1245 * javax/swing/DefaultListCellRenderer.java: Added javadocs
1246 and ran through jalopy to fix formatting style.
1247 (getListCellRendererComponent): Use appropriate border
1248 if renderer has focus and use noFocusBorder when it doesn't.
1249 * javax/swing/JComboBox.java: Implemented.
1250 * javax/swing/JList.java:
1251 (locationToIndex): New Method. Implemented.
1252 (indexToLocation): New Method.
1253 * javax/swing/JPopupMenu.java:
1254 (visible): New field.
1255 (isVisible): Changed to use new field above.
1256 (setVisible): Likewise.
1257 * javax/swing/MutableComboBoxModel.java: Added javadocs.
1258 * javax/swing/plaf/basic/BasicArrowButton.java:
1259 (shadow): Changed default color to Color.gray.
1260 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
1261 UI delegate for JComboBox.
1262 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
1263 Popup menu containing list of JComboBox's items.
1264 * javax/swing/plaf/basic/BasicComboBoxEditor.java: New File.
1265 * javax/swing/plaf/basic/BasicComboBoxRenderer.java: New File.
1266 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
1267 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
1268 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
1269 (popupMenuWillBecomeVisible): Set selected path to the first
1270 element only if it is of type MenuElement. Also fix formatting
1272 * javax/swing/plaf/basic/ComboPopup.java: Added javadocs and missing
1275 2004-08-31 Michael Koch <konqueror@gmx.de>
1277 * javax/swing/text/AbstractDocument.java
1278 (createBranchElement): Use new constructor of BranchElement.
1279 (createLeafElement): Renamed arguments.
1280 (getRootElements): Implemented.
1281 (BranchElement.start): Removed.
1282 (BranchElement.end): Likewise.
1283 (BranchElement.BranchElement): Fixed arguments.
1284 (BranchElement.getEndOffset): Reimplemented.
1285 (BranchElement.getStartOffset): Likewis.
1286 * javax/swing/text/DefaultCaret.java
1287 (paint): Draw simple vertical line as caret instead of a rectangle.
1288 * javax/swing/text/JTextComponent.java
1289 (setText): Use doc directly.
1290 * javax/swing/text/PlainView.java
1291 (nextTabStop): Implemented.
1292 * javax/swing/text/Utilities.java
1293 (drawTabbedText): nextTabStop() returns an absolute x position.
1294 (getTabbedTextWidth): Likewise.
1296 2004-08-31 Graydon Hoare <graydon@redhat.com>
1298 * java/awt/Component.java
1299 (isFocusTraversable): Predicate on isLightweight()
1300 (setFocusable): Set isFocusTraversableOverridden.
1301 (requestFocus): Predicate peer dispatch on !isLightweight()
1302 (requestFocusInWindow): Likewise.
1303 (dispatchEventImpl): Coordinate with KeyboardFocusManager.
1304 * java/awt/Container.java
1305 (dispatchEventImpl): Predicate on event mask.
1306 (LightweightDispatcher): Remove focus machinery.
1307 * java/awt/DefaultFocusTraversalPolicy.java
1308 (accept): Expand predicate to include isFocusable().
1309 * java/awt/DefaultKeyboardFocusManager.java:
1310 Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
1311 * java/awt/KeyboardFocusManager.java
1312 (redispatchEvent): Synchronize on event to prevent feedback.
1313 * javax/swing/AbstractButton.java
1314 (ButtonFocusListener): Remove class.
1315 (init): Set focusPainted, focusable.
1316 * javax/swing/ActionMap.java (get): Check parent for null.
1317 * javax/swing/InputMap.java (get): Likewise.
1318 * javax/swing/JComponent.java
1319 (inputMap_whenFocused): New InputMap.
1320 (inputMap_whenAncestorOfFocused): Likewise.
1321 (inputMap_whenInFocusedWindow): Likewise.
1322 (getActionForKeyStroke): Rewrite.
1323 (getConditionForKeystroke): Likewise.
1324 (ActionListenerProxy): New private class.
1325 (setInputMap): Implement.
1326 (getInputMap): Likewise.
1327 (setActionMap): Likewise.
1328 (getActionMap): Likewise.
1329 (processComponentKeyEvent): New empty method.
1330 (processKeyEvent): Implement.
1331 (processKeyBinding): Likewise.
1332 (resetKeyboardActions): Rewrite.
1333 * javax/swing/KeyStroke.java: Rewrite.
1334 * javax/swing/SwingUtilities.java
1335 (notifyAction): Implement.
1336 (replaceUIActionMap): Likewise.
1337 (replaceUIInputMap): Likewise.
1338 * javax/swing/plaf/basic/BasicButtonListener.java
1339 (focusGained): Implement.
1340 (focusLost): Repaint if focusPainted().
1341 (installKeyboardActions): Install pressed / released actions.
1342 (uninstallKeyboardActions): Implement.
1343 * javax/swing/plaf/basic/BasicButtonUI.java
1344 (focusColor): New field.
1345 (installDefaults): Load focus color, install input map.
1346 (installKeyboardActions): Implement.
1347 (uninstallKeyboardActions): Likewise.
1348 (paintFocus): Rewrite.
1349 * javax/swing/plaf/basic/BasicLookAndFeel.java
1350 (Button.focus): New default, midPurple.
1351 * javax/swing/plaf/basic/BasicTextUI.java
1353 (installUI): Get doc from kit, load defaults.
1354 (getKeymapName): Implement.
1355 (createKeymap): Likewise.
1356 (installKeyboardActions): Likewise.
1357 (getInputMap): Likewise.
1358 (getActionMap): Likewise.
1359 (createActionMap): Likewise.
1360 * javax/swing/text/AbstractDocument.java
1361 (getStartPosition): Implement.
1362 (getEndPosition): Likewise.
1363 * javax/swing/text/DefaultEditorKit.java
1364 (CopyAction): New class.
1365 (CutAction): Likewise.
1366 (DefaultKeyTypedAction): Likewise.
1367 (InsertBreakAction): Likewise.
1368 (InsertContentAction): Likewise.
1369 (InsertTabAction): Likewise.
1370 (PasteAction): Likewise.
1371 (defaultActions): New static table.
1372 (createCaret): Implement.
1373 (getActions): Likewise.
1374 * javax/swing/text/JTextComponent.java
1375 (KeymapWrapper): New private class.
1376 (KeymapActionMap): Likewise.
1377 (DefaultKeymap): New class.
1378 (keymaps): New static table.
1379 (keymap): New field.
1380 (getKeymap): Implement.
1381 (removeKeymap): Likewise.
1382 (addKeymap): Likewise.
1383 (setKeymap): Likewise.
1384 (loadKeymap): Likewise.
1385 (getActions): Likewise.
1386 (margin): New field.
1387 (JTextComponent): Build and install default keymap.
1388 * javax/swing/text/TextAction.java
1389 (textAction): Call super properly.
1390 (getTextComponent): Implement.
1391 * javax/swing/text/Utilities.java
1392 (drawTabbedText): Adjust position by ascent.
1394 2004-08-31 David Jee <djee@redhat.com>
1398 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
1399 (setEnabled): Make it a native method.
1400 * java/awt/DefaultKeyboardFocusManager.java
1401 (postProcessKeyEvent): Only post event if the menu item
1403 * java/awt/MenuItem.java:
1404 Private field 'enabled' should be true by default.
1405 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
1406 (setEnabled): New function.
1408 2004-08-31 David Jee <djee@redhat.com>
1412 * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
1413 (nativeSetHelpMenu): New native method declaration.
1414 (addHelpMenu): Call nativeSetHelpMenu().
1416 * java/awt/MenuBar.java
1417 (setHelpMenu): Call addNotify() on the new help menu.
1418 (add): Call addNotify() on the new menu.
1419 (addNotify): Set the help menu if one exists.
1420 * java/awt/peer/MenuBarPeer.java
1422 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
1423 (nativeSetHelpMenu): New method.
1425 2004-08-31 Graydon Hoare <graydon@redhat.com>
1427 * Makefile.am: Add new files.
1428 * Makefile.in: Regenerate.
1429 * javax/swing/Box.java: Fix setting of layout in ctor.
1430 * javax/swing/JScrollPane.java: Scroll headers as well.
1431 * javax/swing/JTable.java: Reimplement.
1432 * javax/swing/JViewPort.java: Only add non-null children.
1433 * javax/swing/ScrollPaneLayout.java: Correct header calculations.
1434 * javax/swing/Timer.java: Fix stopping null waker.
1435 * javax/swing/plaf/basic/BasicTableHeaderUI.java: New file.
1436 * javax/swing/plaf/basic/BasicTableUI.java: New file.
1437 * javax/swing/table/DefaultTableCellRenderer.java: Configure.
1438 * javax/swing/table/DefaultTableColumnModel.java: Flesh out.
1439 * javax/swing/table/DefaultTableModel.java: Clean up.
1440 * javax/swing/table/JTableHeader.java: Implement.
1442 2004-08-31 Mark Wielaard <mark@klomp.org>
1444 * javax/swing/JSpinner.java (getChangeListeners): Remove double
1447 2004-08-31 Mark Wielaard <mark@klomp.org>
1449 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
1450 Declare variables at top of functions/block.
1451 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Likewise.
1453 2004-08-31 Mark Wielaard <mark@klomp.org>
1455 * java/lang/Rectangle.java (intersects): Check r.width and r.height
1458 2004-08-31 Michael Koch <konqueror@gmx.de>
1460 * javax/swing/text/PlainView.java
1461 (selectedColor): New field.
1462 (unselectedColor): Likewise.
1464 (updateMetrics): New method.
1465 (lineToRect): Likewise.
1466 (modelToView): Likewise.
1467 (drawSelectedText): Use color from JTextComponent ad draw with
1469 (drawUnselectedText): Likewise.
1470 (paint): Initialize helper fields.
1471 * javax/swing/text/View.java
1472 (getChildAllocation): New method.
1473 (getViewIndex): Likewise.
1474 (getToolTipText): Likewise.
1476 2004-08-31 Michael Koch <konqueror@gmx.de>
1478 * javax/swing/text/Utilities.java
1479 (drawTabbedText): Reimplemented.
1480 (getTabbedTextWidth): Likewise.
1482 2004-08-31 Michael Koch <konqueror@gmx.de>
1484 * javax/swing/plaf/basic/BasicTextUI.java
1485 (installDefaults): Install caret and highlighter.
1486 (modelToView): Use Bias.Forward when calling sibling.
1487 * javax/swing/text/AbstractDocument.java
1488 (ElementEdit): Implements DocumentEvent.ElementChange.
1489 (ElementEdit.ElementEdit): New method.
1490 (ElementEdit.getChildrenAdded): Likewise.
1491 (ElementEdit.getChildrenRemoved): Likewise.
1492 (ElementEdit.getElement): Likewise.
1493 (ElementEdit.getIndex): Likewise.
1494 * javax/swing/text/DefaultCaret.java
1496 (textComponent): Renamed from parent, made private.
1497 (selectionVisible): Renamed from vis_sel, made private.
1498 (blinkRate): Renamed from blink, made private.
1499 (magicCaretPosition): Renamed from magic, made private.
1500 (visible): Renamed from vis, made private.
1501 (dot): Made private.
1503 (deinstall): Remove as MouseMotionListener.
1504 (install): Initialize textComponent first. Add as MouseMotionListener.
1505 (paint): Reimplemented.
1506 * javax/swing/text/JTextComponent.java
1507 (setCaret): Deinstall old caret, install new one and fire property
1508 change after setting property.
1509 (setHighlighter): Deinstall old highlighter, install new one and fire
1510 property change after setting property.
1511 (setCaretColor): Fire property change after setting property.
1512 (setDisabledTextColor): Likewise.
1513 (setSelectedTextColor): Likewise.
1514 (setSelectionColor): Likewise.
1515 (modelToView): New method.
1517 2004-08-31 Michael Koch <konqueror@gmx.de>
1519 * javax/swing/text/AbstractDocument.java
1520 (getText): Simplified.
1521 * javax/swing/text/Segment.java
1522 (current): New field.
1523 (current): Reimplemented.
1525 (getIndex): Likewise.
1528 (previous): Likewise.
1529 (setIndex): Likewise.
1531 2004-08-31 Michael Koch <konqueror@gmx.de>
1533 * javax/swing/plaf/basic/BasicButtonUI.java
1534 (defaultTextIconGap): Made protected.
1535 (defaultTextShiftOffset): Likewise.
1536 (textShiftOffset): New field.
1537 (clearTextShiftOffset): New method.
1538 (getTextShiftOffset): Likewise.
1539 (setTextShiftOffset): Likewise.
1541 2004-08-31 Michael Koch <konqueror@gmx.de>
1543 * javax/swing/plaf/basic/BasicTextUI.java
1544 (installUI): Add eventHandler as property listener.
1545 (uninstallUI): remove eventHandler as propert listener.
1546 (installDefaults): Added comment.
1547 (installListeners): Likewise.
1548 (installKeyboardActions): Likewise.
1549 (uninstallDefaults): Likewise.
1550 (uninstallListeners): Likewise.
1551 (uninstallKeyboardActions): Likewise.
1553 2004-08-31 Michael Koch <konqueror@gmx.de>
1555 * javax/swing/text/AbstractDocument.java:
1556 Fixed some typos in comments.
1557 (insertString): Reimplemented.
1559 (replace): New method.
1560 (children): Dont use fully qualified class name.
1561 (DefaultDocumentEvent.offset): Renamed from off.
1562 (DefaultDocumentEvent.length): Renamed from len.
1563 (DefaultDocumentEvent.type): New field.
1564 (DefaultDocumentEvent.DefaultDocumentEvent): New constructor.
1565 (DefaultDocumentEvent.getType): Implemented.
1567 2004-08-31 Michael Koch <konqueror@gmx.de>
1569 * javax/swing/plaf/basic/BasicTextUI.java
1570 (RootView.textComponent): Removed.
1571 (RootView.RootView): Don't initialize textComponent.
1572 (RootView.getViewFactory): New method.
1573 (EventHandler): New inner class.
1574 (rootView): Initialize at instance creation.
1575 (eventHandler): New field.
1576 (installUI): Don't create view hierarchy directly,
1577 call modelChanged() instead.
1578 (modelChanged): New method.
1579 * javax/swing/text/JTextComponent.java
1580 (setDocument): Fire property change event.
1582 2004-08-31 Michael Koch <konqueror@gmx.de>
1584 * javax/swing/plaf/basic/BasicTextUI.java
1585 (RootView.paint): Removed debug output.
1586 (paintSafely): Draw highlighter before text.
1587 (paintBackground): Use background color of text component.
1588 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
1591 2004-08-31 Michael Koch <konqueror@gmx.de>
1593 * javax/swing/plaf/basic/BasicToolBarUI.java
1594 (BasicToolBarUI): Fixed arguments for constructor.
1595 (createUI): Fixed creation of object.
1597 2004-08-31 Michael Koch <konqueror@gmx.de>
1599 * javax/swing/DefaultListSelectionModel.java
1600 (fireValueChanged): Renamed from fireSelectionValueChanged,
1603 2004-08-31 Michael Koch <konqueror@gmx.de>
1605 * javax/swing/text/TabSet.java
1606 (TabSet): Implements java.io.Serializable.
1607 * javax/swing/text/TabStop.java
1608 (TabStop): Implements java.io.Serializable.
1609 (TabStop): Made public.
1611 2004-08-31 Michael Koch <konqueror@gmx.de>
1613 * javax/swing/JComponent.java
1614 (setUI): Fire PropertyChange.
1615 * javax/swing/JLabel.java
1616 (text): Renamed from labelText.
1617 (horizontalAlignment): New default vlaue.
1618 (icon): Renamed from activeIcon.
1619 (displayedMnemonic): Renamed from mnemonicKey, added default value.
1620 (displayedMnemonicIndex): Renamed from underlineChar.
1621 (setDisplayedMnemonic): Reimplemented.
1622 * javax/swing/JRadioButton.java
1623 (JRadioButton): New constructors.
1624 * javax/swing/JTextField.java
1625 (JTextField): Throw exception if colums < 0, initialitialz
1626 this.columns directly and initialize document with text conditionally.
1628 2004-08-31 Michael Koch <konqueror@gmx.de>
1630 * javax/swing/plaf/basic/BasicFormattedTextFieldUI.java,
1631 javax/swing/plaf/basic/BasicPasswordFieldUI.java,
1632 javax/swing/plaf/basic/BasicTextAreaUI.java: New files.
1633 * javax/swing/text/FieldView.java
1634 (paint): Just call super method for now.
1635 * Makefile.am: Added new files.
1636 * Makefile.in: Regenerated.
1638 2004-08-31 Ka-Hing Cheung <kahing@javabsp.org>
1640 * javax/swing/AbstractSpinnerModel.java,
1641 javax/swing/JSpinner.java,
1642 javax/swing/SpinnerNumberModel.java,
1643 javax/swing/plaf/basic/BasicSpinnerUI.java:
1645 * javax/swing/plaf/basic/BasicLookAndFeel.java
1646 (initClassDefaults): Added defaults for BasicSpinnerUI.
1648 2004-08-31 Michael Koch <konqueror@gmx.de>
1650 * Makefile.am: Added new files.
1651 * Makefile.in: Regenerated.
1653 2004-08-31 Michael Koch <konqueror@gmx.de>
1655 * javax/swing/TransferHandler.java,
1656 javax/swing/plaf/basic/ComboPopup.java: New files
1657 * Makefile.am: Added javax/swing/TransferHandler.java and
1658 javax/swing/plaf/basic/ComboPopup.java
1659 * Makefile.in: Regenerated.
1661 2004-08-31 Roman Kennke <roman@ontographics.com>
1663 * javax/swing/text/Utilities.java: New file.
1665 2004-08-31 Michael Koch <konqueror@gmx.de>
1667 * Makefile.am: Added javax/swing/text/Utilities.java.
1668 * Makefile.in: Regenerated.
1670 2004-08-31 Graydon Hoare <graydon@redhat.com>
1672 * javax/swing/text/SimpleAttributeSet.java: New file.
1673 * javax/swing/text/StyleConstants.java: New file.
1674 * javax/swing/text/StyleContext.java: New file.
1675 * javax/swing/text/TabSet.java: New file.
1676 * javax/swing/text/TabStop.java: New file.
1677 * javax/swing/text/AbstactDocument.java:
1678 (AbstractElement): Implement attribute support.
1679 * javax/swing/text/AttributeSet.java
1680 (NameAttribute): New static field.
1681 (ResolveAttribute): New static field.
1682 * Makefile.am: Update for new files.
1683 * Makefile.in: Regenerate.
1685 2004-08-31 Craig Black <craig.black@aonix.com>
1687 * gnu/java/awt/peer/gtk/GdkGraphics.java
1688 (drawImage): Add support for scaling pixmaps.
1689 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1690 (copyAndScalePixmap): New native method.
1692 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1695 * jni/gtk-peer/gthread-jni.c: Include stdio.h. Eliminate
1696 type-punning compiler warnings using unions.
1697 (throw): Replace bzero with memset.
1699 2004-08-31 Andreas Tobler <a.tobler@schweiz.ch>
1700 Thomas Fitzsimmons <fitzsim@redhat.com>
1702 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: Move
1703 NSA_PB macros to gtkpeer.h. Include gtkpeer.h.
1704 * jni/gtk-peer/gtkpeer.h: Move NSA_PB macros here.
1705 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1706 (nativeSetIconImageFromDecoder): Use NSA_GET_PB_PTR macro.
1708 2004-08-31 Mark Wielaard <mark@klomp.org>
1710 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
1711 #include gdk.h, not gtk.h. #include jni.h, native_state.h, string.h
1712 and stdlib.h, not gtkpeer.h.
1713 (*vm): New static variable.
1714 (areaPreparedID): Make static.
1715 (areaUpdatedID): Likewise.
1716 (area_prepared): Get and use JNIEnv through stored JavaVM *vm.
1717 (area_prepared): Likewise.
1718 (area_updated): Likewise.
1720 (initStaticState): Initialize *vm javaVM.
1721 (pumpBytes): Use given env, not global gdk_env.
1723 2004-08-31 Mark Wielaard <mark@klomp.org>
1725 * java/awt/geom/CubicCurve2D.java (solveCubic): Removed duplicate
1728 2004-08-31 Sven de Marothy <sven@physto.se>
1730 * java/awt/geom/CubicCurve2D.java: Reindent.
1731 (contains): Implemented.
1732 (intersects): Implemented.
1733 * java/awt/geom/QuadCurve2D.java: Likewise.
1734 * java/awt/geom/GeneralPath.java: Reindent and document.
1735 Fully (re)implemented using separate xpoints and ypoints
1737 * java/awt/geom/RoundRectangle2D.java: Several bugfixes (Bug #6007).
1739 2004-08-31 Michael Koch <konqueror@gmx.de>
1741 * javax/swing/JMenuItem.java
1742 (getMenuDragMouseListeners): New method.
1743 (getMenuKeyListeners): Likewise.
1745 2004-08-31 Michael Koch <konqueror@gmx.de>
1747 * javax/swing/AbstractButton.java
1748 (model): Made protected.
1749 (actionListener): Likewise.
1750 (changeListener): Likewise.
1751 (itemListener): Likewise.
1752 (multiClickThreshhold): New field.
1753 (getActionListeners): New method.
1754 (getChangeListeners): Likewise.
1755 (getItemListeners): Likewise.
1756 (fireItemStateChanged): Simplified implementation.
1757 (fireActionPerformed): Likewise.
1758 (fireStateChanged): Likewise.
1759 (getMultiClickThreshhold): New method.
1760 (setMultiClickThreshhold): Likewise.
1762 2004-08-31 Tom Tromey <tromey@redhat.com>
1764 * java/awt/image/Kernel.java (clone): Use super.clone().
1766 2004-08-31 David Jee <djee@redhat.com>
1769 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1770 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1771 (nativeSetIconImageFromData): New native method declaration.
1772 (setIconImage): Handle images not produced from GdkPixbufDecoder.
1773 * gnu/java/awt/peer/gtk/GtkImage.java
1774 (getPixelCache): New method.
1775 (getColorModel): New method.
1776 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1777 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1778 (free_pixbuf_data): New helper function.
1779 (nativeSetIconImageFromData): New function.
1781 2004-08-31 Graydon Hoare <graydon@redhat.com>
1784 * javax/swing/JLayeredPane.java
1785 (setLayer): Permit changing layer after addition.
1786 (setPosition): Permit over-length positions.
1787 (layerToRange): Compare intValue()s.
1788 * javax/swing/Box.java (createHorizontalBox): Implement.
1789 (createRigidArea): Likewise.
1790 (createVerticalBox): Likewise.
1792 2004-08-31 Kim Ho <kho@redhat.com>
1794 * java/awt/Component.java:
1795 (processMouseEvent): Consume event after
1796 listeners process it.
1797 (processMouseMotionEvent): ditto.
1798 (processMouseWheelEvent): ditto.
1799 * java/awt/Container.java:
1800 (acquireComponentForMouseEvent):
1801 Do not dispatch to events that have been
1802 removed from the Container.
1803 (handleEvent): Consume the MouseEvents.
1804 * javax/swing/RepaintManager.java:
1805 (paintDirtyRegions): Do not add to list of
1806 damaged areas if the component has no root.
1808 2004-08-31 Michael Koch <konqueror@gmx.de>
1810 * javax/swing/plaf/basic/BasicMenuItemUI.java: Clean ip imports.
1812 2004-08-31 Mark Wielaard <mark@klomp.org>
1814 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
1815 null when a MissingResourceException is thrown. Should never happen.
1817 2004-08-31 Mark Wielaard <mark@klomp.org>
1819 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1820 when argument is null.
1822 2004-08-31 Mark Wielaard <mark@klomp.org>
1824 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1825 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
1826 Define hid at start of function.
1827 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
1830 2004-08-31 Mark Wielaard <mark@klomp.org>
1832 * gnu/java/awt/EmbeddedWindow.java: Reindent.
1833 * javax/swing/JButton.java: Reindent.
1834 * javax/swing/JCheckBox.java: Reindent.
1836 2004-08-31 Mark Wielaard <mark@klomp.org>
1838 * Makefile.am (gtk_c_source_files): Added
1839 jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c.
1840 (gtk_awt_peer_sources): Added
1841 gnu/java/awt/peer/gtk/GThreadMutex.java and
1842 gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java.
1843 * Makefile.in: Regenerated.
1845 2004-08-31 Archie Cobbs <archie@dellroad.org>
1847 * jni/gtk-peer/gthread-jni.c: don't #include nonexistent files
1849 2004-08-31 Steven Augart <augart@watson.ibm.com>
1851 * jni/gtk-peer/gthread-jni.c (c-font-lock-extra-types):
1852 Added jfieldID, jmethodID.
1854 2004-08-31 Mark Wielaard <mark@klomp.org>
1856 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1857 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): Initialize
1858 gdk_env before calling any gdk or gtk function.
1860 * gnu/java/awt/peer/gtk/GtkMainThread.java (gtkInitCalled): New field.
1861 (GtkMainThread): Call wait() in while loop waiting for gtkInitCalled.
1862 (run): Set gtkInitCalled.
1864 2004-08-31 Steven Augart <augart@watson.ibm.com>
1866 * gnu/java/awt/peer/gtk/GtkMainThread.java (run): Pass the value of
1867 the gnu.classpath.awt.gtk.portable.native.sync system property to C.
1869 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1870 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): New argument,
1871 portableNativeSync. Delegate PORTABLE_NATIVE_SYNC work to
1873 (init_glib_threads): New function.
1875 2004-08-31 Mark Wielaard <mark@klomp.org>
1877 * jni/gtk-peer/gthread-jni.c: Define MIN_, MAX_ and NORM_
1878 PRIORITY when not already defined in header file.
1880 2004-08-31 Mark Wielaard <mark@klomp.org>
1882 * jni/gtk-peer/gthread-jni.c (setup_cache): Call
1883 ExceptionOccurred, not ExceptionCheck, when we don't have JNI 1.2.
1885 2004-08-31 Steven Augart <augart@watson.ibm.com>
1887 * gnu/native/jni/gtk-peer/gthread-jni.c: Indentation fixes.
1888 Implemented missing functions for GTK2.
1889 Added error handling.
1890 Renamed static functions out of the g_ namespace.
1891 Added TRACE_API_CALLS, EXPLAIN_TROUBLE, EXPLAIN_BROKEN,
1892 EXPLAIN_BADLY_BROKEN, and DELETE_LOCAL_REFS options.
1893 Rewrote global-reference code.
1894 Eliminated cascading errors.
1895 (mutex_trylock_jni_impl) Fully implemented.
1896 (cond_timed_wait_jni_impl) Went from millisecond to microsecond
1898 (setup_cache) New function.
1899 (mutex_cond_wait_jni_impl, mutex_cond_timed_wait_jni_impl) Fixed
1900 bug where they were not unlocking the GMutex associated with the
1901 condition variable during the wait on that condition variable.
1903 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
1904 native/jni/gtk-peer/gthread-jni.c,
1905 native/jni/gtk-peer/gthread-jni.h
1906 (g_thread_jni_functions): Renamed to ...
1907 (portable_native_sync_jni_functions): this name.
1908 (gdk_vm): Renamed to...
1909 (the_vm): this name.
1911 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1912 (gdk_vm): Removed duplicate definition.
1913 (gtkInit): Removed stray message to stdout.
1914 (gtkInit): Use g_malloc and g_free instead of malloc and free.
1915 (gtkInit): Fix a const assignment bug.
1916 (gtkInit): Simplified code.
1918 * gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
1919 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
1920 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h,
1921 gnu/java/awt/peer/gtk/GThreadMutex.java:
1924 2004-08-31 Mark Wielaard <mark@klomp.org>
1926 * javax/swing/Box.java: Put FIXME comment above class declaration.
1927 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1928 * javax/swing/JCheckBox.java: Likewise.
1929 * javax/swing/JDialog.java: Likewise.
1930 * javax/swing/JRadioButton.java: Likewise.
1931 * javax/swing/JToggleButton.java: Likewise.
1932 * javax/swing/UIManager.java: Likewise.
1933 * javax/swing/border/TitledBorder.java: Likewise.
1934 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1935 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1936 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1937 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1938 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1939 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1940 * javax/swing/text/JTextComponent.java: Likewise.
1942 2004-08-31 David Jee <djee@redhat.com>
1945 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1946 (setIconImage): Add a FIXME for unhandled cases.
1948 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1951 * gnu/awt/LightweightRedirector.java: Call getModifiersEx, not
1952 getModifiers. Replace old button masks with new ones.
1953 * gnu/awt/xlib/XEventLoop.java: Likewise.
1954 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Likewise.
1955 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1956 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
1957 * gnu/java/awt/peer/gtk/GtkListPeer.java: Likewise.
1958 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
1959 * java/awt/AWTKeyStroke.java: Remove old modifier masks.
1960 * java/awt/Component.java: Replace old modifier masks with new
1962 * java/awt/Container.java: Call getModifiersEx, not
1964 * java/awt/DefaultKeyboardFocusManager.java: Likewise. Remove
1966 * javax/swing/JMenuItem.java: Replace old button masks with new
1968 * javax/swing/KeyStroke.java: Call getModifiersEx, not
1970 * javax/swing/SwingUtilities.java: Likewise.
1971 * javax/swing/plaf/basic/BasicButtonListener.java: Likewise.
1972 * javax/swing/plaf/basic/BasicInternalFrameUI.java: Likewise.
1973 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Replace old
1974 mask macros with new ones.
1975 * jni/gtk-peer/gtkpeer.h: Replace old button and modifier mask
1976 macros with new ones representing new masks.
1978 2004-08-31 Craig Black <craig.black@aonix.com>
1980 * gnu/java/awt/peer/gtk/GdkGraphics.java
1981 (drawRoundRect): Implemented.
1982 (fillRoundRect): Implemented.
1983 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1984 (drawRoundRect): Reimplemented to match GdkGraphics.
1985 (fillRoundRect): Reimplemented to match GdkGraphics.
1987 2004-08-31 Mark Wielaard <mark@klomp.org>
1989 * Makefile.in: Regenerated.
1991 2004-08-31 Michael Koch <konqueror@gmx.de>
1993 * gnu/java/awt/EmbeddedWindow.java
1994 (addNotify): Use AccessController to allow execution of privileged
1997 2004-08-31 Michael Koch <konqueror@gmx.de>
1999 * gnu/java/awt/EmbeddedWindow.java
2001 (addNotify): Set peer via reflection.
2002 (setWindowPeer): Removed.
2003 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
2004 * Makefile.am (nat_source_files):
2005 Removed gnu/java/awt/natEmbeddedWindow.cc.
2007 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
2009 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
2010 and gnu/java/security/action/SetAccessibleAction.java.
2012 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
2014 * gnu/java/security/action/GetPropertyAction.java (setParameters):
2015 Renamed from 'setName'. New 2-argument form with default value.
2016 (run): Pass default 'value' parameter to System.getProperty().
2017 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
2020 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
2022 * gnu/java/security/action/GetPropertyAction.java: New class.
2023 * gnu/java/security/action/SetAccessibleAction.java: New class.
2025 2004-08-31 David Jee <djee@redhat.com>
2027 * gnu/java/awt/peer/gtk/GtkFramePeer.java
2028 (setIconImage): Check if image is null.
2030 2004-08-31 David Jee <djee@redhat.com>
2032 * gnu/java/awt/peer/gtk/GtkFramePeer.java
2033 (create): Set the icon image.
2034 (nativeSetIconImage): New native method declaration.
2035 (setIconImage): Implement.
2036 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2037 (nativeSetIconImage): New function.
2039 2004-08-31 Dalibor Topic <robilad@kaffe.org>
2041 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2042 (filenameFilterCallback): Declare local variable accepted before use.
2044 2004-08-31 Dalibor Topic <robilad@kaffe.org>
2046 * gnu/java/awt/ComponentDataBlitOp.java:
2049 2004-08-31 Tom Tromey <tromey@redhat.com>
2051 * gnu/java/awt/peer/GLightweightPeer.java,
2052 gnu/java/awt/peer/gtk/GdkGraphics2D.java,
2053 gnu/java/awt/peer/gtk/GtkComponentPeer.java,
2054 javax/swing/JScrollPane.java: Removed
2057 2004-08-31 David Jee <djee@redhat.com>
2059 * java/awt/DefaultKeyboardFocusManager.java
2060 (postProcessKeyEvent): Only activate MenuShortcuts on KEY_PRESSED
2061 event. Fix shift modifier checking.
2062 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
2063 (accel_attach): Remove.
2064 (setupAccelGroup): Remove calls to accel_attach.
2066 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
2068 * gnu/java/awt/peer/gtk/GtkArg.java: Remove file.
2069 * gnu/java/awt/peer/gtk/GtkArgList.java: Remove file.
2071 * Makefile.am (gtk_awt_peer_sources): Remove GtkArg.java and
2073 (gtk_c_files): Use CAIRO_CFLAGS and PANGOFT2_CFLAGS, not _LIBS.
2074 * Makefile.in: Regenerate.
2075 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
2076 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
2077 (create(String)): New method.
2078 (create): Call new create method.
2079 (getArgs): Remove method.
2080 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
2081 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
2082 (nativeCreate): Rename to create.
2083 (gtkSetLabel): Rename to gtkButtonSetLabel.
2084 (gtkToggleButtonSetActive): New method.
2085 (create): Call gtkToggleButtonSetActive and gtkButtonSetLabel.
2086 (setState): Replace set call with gtkToggleButtonSetActive.
2087 (setLabel): Replace gtkSetLabel call with gtkButtonSetLabel.
2088 (getArgs): Remove method.
2089 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
2090 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2091 (gtkWidgetSetSensitive): New method.
2092 (gtkWidgetSetParent): Likewise.
2093 (GtkComponentPeer): Call setParent, setComponentBounds and
2094 setVisibleAndEnabled.
2095 (setParent): New method.
2096 (setComponentBounds): New method.
2097 (setVisibleAndEnabled): New method.
2098 (setEnabled): Call gtkWidgetSetSensitive.
2099 (getArgs): Remove method.
2100 Remove all set methods.
2101 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Call
2102 gtkWindowSetModal, setTitle and setResizable.
2103 (getArgs): Remove method.
2104 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2105 (setComponentBounds): New method.
2106 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
2107 Replace set call with gtkWindowSetResizable.
2108 (getArgs): Remove method.
2109 (create): Call setTitle and setResizable.
2110 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
2111 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2112 (gtkWindowSetTitle): New method.
2113 (gtkWindowSetResizable): New method.
2114 (gtkWindowSetModal): New method.
2115 (setParent): New method.
2116 (setVisibleAndEnabled): New method.
2117 (getArgs): Remove method.
2118 (setTitle): Call gtkWindowSetTitle.
2119 (setResizable): Call gtkWindowSetResizable.
2120 * jni/gtk-peer/gtkpeer.h [DEBUG_LOCKING]: New define to turn on
2121 and off locking instrumentation.
2123 2004-08-31 Kim Ho <kho@redhat.com>
2125 * Makefile.am: Add new file.
2126 * Makefile.in: Regenerate.
2127 * gcj/Makefile.in: Regenerate
2128 * include/Makefile.in:
2129 * java/awt/Container.java:
2130 (acquireComponentForMouseEvent): Respect
2131 the event mask when looking for candidate.
2132 * javax/swing/JComponent.java:
2133 Remove toolTip field.
2134 (createToolTip): Create a tooltip on demand.
2135 (setToolTipText): Register with the ToolTipManager.
2136 (getToolTipText(MouseEvent)): Return getToolTipText().
2137 * javax/swing/JToolTip.java: Implement.
2138 * javax/swing/Timer.java: Jalopy.
2139 (restart): Call stop, then start.
2140 (stop): Interrupt the timer rather than wait for
2141 the timer to come to a stop naturally.
2142 * javax/swing/ToolTipManager.java: Implement.
2143 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2144 Change ToolTip.background color.
2145 * javax/swing/plaf/basic/BasicToolTipUI.java:
2147 * testsuite/Makefile.in: Regenerate
2149 2004-08-31 Jerry Quinn <jlquinn@optonline.net>
2151 * java/awt/image/DirectColorModel.java (DirectColorModel): Fix
2152 constructor param comments.
2154 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
2156 * java/awt/Component.java: Document AWT 1.0 event handler
2159 2004-08-31 Roman Kennke <roman@ontographics.com>
2161 * javax/swing/Box.java:
2162 (createGlue): Implemented
2163 (createHorizontalGlue): Implemented
2164 (createHorizontalStrut): Implemented
2165 (createVerticalGlue): Implemented
2166 (createVerticalStrut): Implemented
2168 2004-08-31 David Jee <djee@redhat.com>
2170 * gnu/java/awt/peer/gtk/GtkChoicePeer.java
2171 (GtkChoicePeer): Do not automatically select first item.
2172 (getHistory): Remove.
2173 (nativeGetSelected): New method.
2174 (nativeRemoveAll): New method.
2175 (add): Use nativeGetSelected() instead of getHistory().
2177 (removeAll): Call nativeRemoveAll().
2178 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
2179 (create): Migrate to GtkComboBox.
2181 (nativeAdd): Likewise.
2182 (nativeRemove): Likewise.
2184 (nativeRemoveAll): New method.
2185 (nativeGetSelected): New method.
2186 (selection_changed): New method.
2187 (getHistory): Remove.
2188 (item_activate): Remove.
2189 (item_removed): Remove.
2190 (connect_choice_item_selectable_hook): Remove.
2192 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
2194 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create): Use tf
2195 variable in setEditable call.
2197 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
2198 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
2199 (gtkWidgetSetBackground): New method.
2200 (gtkWidgetSetForeground): Likewise.
2201 (create): Set peer's editable state based on awtComponent's.
2203 * java/awt/Button.java (Button()): Use empty string rather than
2204 null in no-label constructor.
2206 2004-08-31 Roman Kennke <roman@ontographics.com>
2208 * javax/swing/BoxLayout.java: Reimplement.
2210 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
2212 * gnu/java/awt/peer/gtk/GdkGraphics.java,
2213 gnu_java_awt_peer_gtk_GdkGraphics.c
2214 (initState(GtkComponentPeer)): Don't return array of colour
2216 (GdkGraphics(int,int)): Set default font to size 12.
2217 (GdkGraphics(GtkComponentPeer)): Set graphics colour to
2218 component's foreground colour.
2219 * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
2220 gnu_java_awt_peer_gtk_GdkGraphics2D.c
2221 (initState(GtkComponentPeer)): Don't return array of colour
2223 (GdkGraphics2D(GtkComponentPeer)): Set foreground and background
2224 colours to component's colours.
2225 (current_colors_of_widget): Remove function.
2226 * gnu/java/awt/peer/gtk/GtkOffScreenImage.java (getGraphics):
2227 Return a new graphics object.
2228 * java/awt/Font.java (toString): Fix format.
2229 * java/awt/Graphics.java (toString): Likewise.
2231 2004-08-31 Craig Black <craig.black@aonix.com>
2233 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
2234 (addTearOff): New function.
2235 * gnu/java/awt/peer/gtk/GtkMenuPeer.java (addTearOff):
2237 (init): Call addTearOff() when menu.isTearOff().
2239 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
2241 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2242 Default implementation.
2243 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2244 Implement using GdkPixbufDecoder.
2246 2004-08-31 David Jee <djee@redhat.com>
2248 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
2249 (GtkComponentPeer): Use gtkWidgetGetPreferredDimensions() for
2250 setting the size of GtkFileDialogPeers.
2251 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2252 (gtkWidgetGetPreferredDimensions): For widgets extending GtkWindow,
2253 use their default sizes rather than their natural requisitions.
2255 2004-08-31 Michael Koch <konqueror@gmx.de>
2257 * javax/swing/JFormattedTextField.java
2258 (JFormattedTextField): Implemented.
2259 * javax/swing/text/DefaultEditorKit.java
2260 (BeepAction): New inner class.
2261 * javax/swing/text/Segment.java
2262 (partialReturn): New field.
2263 (setPartialReturn): New method.
2264 (isPartialReturn): Likewise.
2265 * javax/swing/text/View.java
2266 (createFragment): Fixed typo.
2267 (getStartOffset): New method.
2268 (getEndOffset): Likewise.
2270 2004-08-31 Michael Koch <konqueror@gmx.de>
2272 * javax/swing/table/DefaultTableColumnModel.java
2273 (serialVersionUID): Made private.
2274 (listenerList): Initialize.
2275 (changeEvent): Initialize.
2276 * javax/swing/table/JTableHeader.java
2277 (JTableHeader): New constructors.
2278 (createDefaultColumnModel): New method.
2279 * javax/swing/table/TableColumn.java
2280 (setHeaderRenderer): Simplified code.
2281 (setCellRenderer): Likewise.
2282 (setWidth): Likewise.
2284 2004-08-31 Tom Tromey <tromey@redhat.com>
2286 * java/text/AttributedString.java (AttributedString): Use
2287 ArrayList to build array of attribute ranges. Don't use
2288 `attribs' before it is set.
2290 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
2292 * HACKING: Remove reference to special automake. No longer needed.
2294 2004-08-30 Tom Tromey <tromey@redhat.com>
2296 * gnu/java/security/util/Prime.java (generateRandomPrime): Use
2297 return result from `add'.
2299 2004-08-30 Tom Tromey <tromey@redhat.com>
2301 * java/rmi/server/UID.java (UID): Read `nextCount', not count.
2303 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
2305 * gnu/java/security/der/DEREncodingException.java: Remove whitespaces.
2307 2004-08-30 Jeroen Frijters <jeroen@frijters.net>
2309 * java/io/File.java File(String,String): Fixed handling of empty
2312 2004-08-30 Casey Marshall <csm@gnu.org>
2314 Author e-mail updated for all files.
2315 * gnu/java/security/OID.java (equals): Test if the aurgment is an
2317 (compareTo): Use `equals'.
2318 * gnu/java/security/der/BitString.java (equals): Test if the
2319 argument is an instance of BitString.
2320 * gnu/java/security/der/DERReader.java: Removed NIO imports. Made
2321 class final. Made fields private.
2322 (<init>): New constructor.
2324 (makeString): Made static; don't use NIO.
2325 (fromIso88591, fromUtf16Be, fromUtf8): New methods.
2326 * gnu/java/security/der/DERWriter.java: Fixed imports.
2327 (writeString): Don't use NIO.
2328 (toIso88591, toUtf16Be, toUtf8): New methods.
2329 * gnu/java/security/der/DERValue.java: Formatting changes only.
2330 * gnu/java/security/der/DER.java: Likewise.
2332 2004-08-30 Tom Tromey <tromey@redhat.com>
2334 * java/nio/CharBuffer.java (put): Fix typo.
2335 * java/nio/DoubleBuffer.java (put): Fix typo.
2336 * java/nio/FloatBuffer.java (put): Fix typo.
2337 * java/nio/IntBuffer.java (put): Fix typo.
2338 * java/nio/LongBuffer.java (put): Fix typo.
2339 * java/nio/ShortBuffer.java (put): Fix typo.
2341 2004-08-30 Florian Weimer <fw@deneb.enyo.de>
2343 * java/nio/ByteBuffer.java (put): Fix typo.
2345 2004-08-30 Casey Marshall <csm@gnu.org>
2347 * java/security/DummyKeyPairGenerator.java (clone): Removed
2348 useless instanceof check.
2349 * java/security/DummyMessageDigest.java (clone): Likewise.
2350 * java/security/DummySignature.java (clone): Likewise.
2351 * java/security/MessageDigest.java (clone): Remove useless
2353 * java/security/MessageDigestSpi.java (clone): Likewise.
2354 * java/security/Signature.java (clone): Provide meaningful
2356 * java/security/SignatureSpi.java (clone): Likewise.
2358 2004-08-29 Mark Wielaard <mark@klomp.org>
2360 * java/util/Arrays.java
2361 (sort(byte[], int, int)): Check fromIndex < 0.
2362 (sort(char[], int, int)): Likewise.
2363 (sort(short[], int, int)): Likewise.
2364 (sort(int[], int, int)): Likewise.
2365 (sort(long[], int, int)): Likewise.
2366 (sort(float[], int, int)): Likewise.
2367 (sort(double[], int, int)): Likewise.
2368 (sort(Object[], int, int, Comparator)): Likewise.
2369 (qsort(byte[], int, int)): Honor lower bound from in insertion sort.
2370 (qsort(char[], int, int)): Likewise.
2371 (qsort(short[], int, int)): Likewise.
2372 (qsort(int[], int, int)): Likewise.
2373 (qsort(long[], int, int)): Likewise.
2374 (qsort(float[], int, int)): Likewise.
2375 (qsort(double[], int, int)): Likewise.
2377 2004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
2379 * java/util/AbstractCollection.java, java/util/AbstractList.java,
2380 java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
2381 java/util/ArrayList.java, java/util/Arrays.java,
2382 java/util/BitSet.java, java/util/Calendar.java,
2383 java/util/Collection.java, java/util/ListIterator.java,
2384 java/util/Map.java, java/util/SortedSet.java:
2385 Added additional exceptions to documentation, along
2386 with some additions and corrections.
2388 2004-08-27 Hans Boehm <Hans.Boehm@hp.com>
2390 * configure.ac: Handle --enable-gc-debug.
2391 * configure: Regenerate.
2392 * include/config.h.in (LIBGCJ_GC_DEBUG): Add.
2393 * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files.
2394 Rearrange include file order.
2395 (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set.
2396 (GC_finalize_all, GC_debug_generic_malloc): Don't declare.
2397 (disable_gc_mutex): Delete along with all references.
2398 (_Jv_MarkObj, _Jv_MarkArray): Use public types,
2399 adjust for debug header size.
2400 (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for
2402 (_Jv_AllocArray): Declare min_heap_addr only if needed.
2403 (gcj_describe_type_fn): New.
2404 (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind.
2405 Register gcj_describe_type_fn.
2406 * include/boehm-gc.h:
2407 (_Jv_AllocObj, _Jv_allocPtrFreeObj):
2408 Don't define, but declare, for debug case.
2409 * java/lang/natObject.cc:
2410 (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set.
2412 2004-08-26 Mark Wielaard <mark@klomp.org>
2414 Fixes PR libgcj/17002:
2415 * java/util/TimeZone.java (defaultZone): Try a couple of ways to get
2416 a TimeZoneId string and then try to convert that to a TimeZone with
2417 getDefaultSystemTimeZone(String).
2418 (timezones0): Changed type from Hashtable to HashMap.
2419 (timezones): Create HashMap, not Hashtable.
2420 (getDefaultTimeZone): New method, rewritten from CNI version.
2421 (readTimeZoneFile): New method.
2422 (readtzFile): Likewise.
2423 (skipFully): Likewise.
2424 * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
2425 getDefaultTimeZoneId and rewritten.
2426 (getDefaultTimeZoneId): Rewritten in java.
2428 2004-08-25 David Daney <daney@avtrex.com>
2430 * Makefile.am (AM_GCJFLAGS): Add LIBGCJ_JAVAFLAGS.
2431 * Makefile.in: Regenerated.
2433 2004-08-23 Bryce McKinlay <mckinlay@redhat.com>
2435 * prims.cc (JVMPI_NOTIFY_ALLOC): New macro. Call jvmpi_notify_alloc
2436 only if jvmpi is enabled.
2437 (jvmpi_notify_alloc): Don't check if jvmpi is enabled here.
2438 (_Jv_AllocObjectNoFinalizer): Use JVMPI_NOTIFY_ALLOC.
2439 (_Jv_AllocString): Likewise.
2440 (_Jv_AllocPtrFreeObject): Likewise.
2442 2004-08-23 Hans Boehm <Hans.Boehm@hp.com>
2444 * defineclass.cc: Include <stdio.h>.
2445 * java/lang/natClassLoader.cc: Include <stdio.h>.
2447 2004-08-21 Andreas Tobler <a.tobler@schweiz.ch>
2448 Michael Koch <konqueror@gmx.de>
2450 * Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.
2451 * Makefile.in: Regenerated.
2453 2004-08-20 Michael Koch <konqueror@gmx.de>
2455 * configure.ac: Replaced all AC_TRY_COMPILE macros with
2456 AC_COMPILE_IFELSE macros.
2458 2004-08-20 Michael Koch <konqueror@gmx.de>
2460 * configure.in: Renamed to configure.ac.
2461 * configure.ac: New file.
2462 * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
2463 include/config.h.in, testsuite/Makefile.in: Regenerated.
2465 2004-08-20 Michael Koch <konqueror@gmx.de>
2467 * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
2468 * aclocal.m4, configure: Regenerated.
2470 2004-08-19 Thomas Fitzsimmons <fitzsim@redhat.com>
2471 Michael Koch <konqueror@gmx.de>
2473 * configure.in, Makefile.am: Ported to automake 1.9.
2474 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
2475 include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
2478 2004-08-19 Tom Tromey <tromey@redhat.com>
2480 * java/net/DatagramSocket.java: Fixed typo.
2482 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2485 * java/net/URI.java (string): New field. Make all other fields
2487 (readObject): Implemented.
2488 (writeObject): Implemented.
2489 (URI): Set 'string'.
2491 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2494 * java/util/logging/Handler.java (isLoggable): Accept record if its
2495 log level equals the threshold level. From Robin Green.
2497 2004-08-18 David Daney <ddaney@avtrex.com>
2499 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
2502 2004-08-17 Michael Koch <konqueror@gmx.de>
2504 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
2505 * Makefile.in: Regenerated.
2507 2004-08-16 Tom Tromey <tromey@redhat.com>
2510 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
2512 2004-08-16 Michael Koch <konqueror@gmx.de>
2515 (math_c_files): Renamed from c_files.
2516 (math_c_source_files): Renamed from c_source_files.
2519 include/Makefile.in,
2520 testsuite/Makefile.in: Regenerated.
2522 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
2524 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
2525 to avoid autoconf warning.
2526 * configure: Rebuilt.
2528 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
2530 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
2531 localhostAddress to loopbackAddress.
2532 * java/net/natInetAddressWin32.cc (lookup): Likewise.
2534 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2536 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
2537 boehm-gc's include dirs.
2538 * configure: Rebuilt.
2539 * include/boehm-gc.h: Include gc_config.h.
2541 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2543 * java/net/InetAddress.java (loopbackAddress): Renamed from
2545 (getByName): Return loopback address for null hostname, without
2546 security check. Use lookup(), not getAllByName.
2547 (getAllByName): Return loopback address for null hostname, without
2549 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
2552 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2555 Reported by Robin Green.
2556 * defineclass.cc (handleField): Don't throw exception on unrecognised
2557 modifier. Add FIXME comments for spec compliance.
2558 (handleMethod): Likewise.
2560 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
2563 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
2564 (Almost everywhere): add LOG calls, fix, add comments.
2565 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
2566 Add explicit check for LOCKED bit in slow case (PR 16662).
2567 (_Jv_MonitorExit): Add casts in debug-only code.
2568 Always release LOCKED bit before throwing exception.
2569 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
2570 isn't. Handle easy cases without lock acquisition.
2571 (Object::wait): Use NotifyAll for lock inflation.
2573 2004-08-12 David Daney <ddaney@avtrex.com>
2575 * testsuite/libjava.lang/Process_1.java: New test.
2576 * testsuite/libjava.lang/Process_2.java: New test.
2577 * testsuite/libjava.lang/Process_3.java: New test.
2578 * testsuite/libjava.lang/Process_4.java: New test.
2579 * testsuite/libjava.lang/Process_5.java: New test.
2580 * testsuite/libjava.lang/Process_6.java: New test.
2581 * testsuite/libjava.lang/Process_1.out: Expected result.
2582 * testsuite/libjava.lang/Process_2.out: Expected result.
2583 * testsuite/libjava.lang/Process_3.out: Expected result.
2584 * testsuite/libjava.lang/Process_4.out: Expected result.
2585 * testsuite/libjava.lang/Process_5.out: Expected result.
2586 * testsuite/libjava.lang/Process_6.out: Expected result.
2588 2004-08-12 David Daney <ddaney@avtrex.com>
2591 * java/lang/PosixProcess.java: Rewrote.
2592 * java/lang/natPosixProcess.cc: Rewrote.
2593 * java/lang/Runtime.java (execInternal): Declare throws IOException.
2594 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
2595 * posix-threads.cc (block_sigchld) New function.
2596 (_Jv_ThreadRegister) Use it.
2597 (_Jv_ThreadStart) Use it.
2598 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
2599 * Makefile.am: ... to specify extra native headers.
2600 * configure: Regenerated.
2601 * include/config.h: Regenerated.
2602 * Makefile.in: Regenerated.
2603 * gcj/Makefile.in: Regenerated.
2604 * include/Makefile.in: Regenerated.
2605 * testsuite/Makefile.in: Regenerated.
2607 2004-08-12 Diego Novillo <dnovillo@redhat.com>
2609 PR tree-optimization/16867
2610 * testsuite/libjava.lang/PR16867.java: New test.
2612 2004-08-09 Per Bothner <per@bothner.com>
2614 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
2615 with private fields and access methods.
2616 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
2617 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
2618 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
2619 ( _Jv_makeUtf8Const): Rewrite using new constructors.
2620 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
2621 * defineclass.cc: Use new _Utf8Const access/convenience methods.
2623 * resolve.cc: Likewise.
2624 * gcj/field.h: Likewise.
2625 * include/jvm.h: Likewise.
2626 * java/lang/Class.h: Likewise.
2627 * java/lang/natClass.cc: Likwise.
2628 * java/lang/natClassLoader.cc: Likewise
2629 * java/lang/reflect/natMethod.cc: Likewise
2630 * verify.cc: Likewise.
2631 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
2632 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
2634 2004-08-10 Andrew Haley <aph@redhat.com>
2636 * testsuite/libjava.lang/err14.java: New file.
2637 * testsuite/libjava.lang/err14.out: New file.
2639 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
2641 * Makefile.am: Fix missing rename from x_nat_headers to
2643 * Makefile.in: Regenerated.
2645 2004-08-04 Andrew Haley <aph@redhat.com>
2647 * java/security/BasicPermission.java: Don't check wildcards.
2649 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2650 Michael Koch <konqueror@gmx.de>
2652 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
2653 * configure.in: Replaced all usages of AC_LINK_FILES by
2656 configure: Regenerated.
2658 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2659 Michael Koch <konqueror@gmx.de>
2661 * acconfig.h: Removed.
2662 * Makefile.am: Rename variables for xlib peer to include xlib and
2663 gtk_c_headers to gtk_jni_headers.
2664 * Makefile.in: Regenerated.
2666 2004-08-04 Andrew Haley <aph@redhat.com>
2668 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
2671 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
2673 * configure.in: Eliminate uses of changequote (mostly by quoting []).
2674 Replace most top level 'dnl' comments with '#' comments, conforming
2675 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
2677 * configure: Rebuilt.
2679 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
2681 * acinclude.m4: Include no-executables.m4.
2682 * aclocal.m4: Rebuild.
2683 * configure.in: Convert to the autoconf 2.59 version of
2684 of the no-executables hack, and also of the nonstandard CXX
2685 hack and the multilibbed CC and CXX hack. Change prerequisite
2687 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
2688 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
2689 testsuite/Makefile.in: Regenerate.
2691 2004-08-03 Tom Tromey <tromey@redhat.com>
2693 * jni.cc: Reindented.
2695 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2697 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
2699 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2701 * testsuite/libjava.compile/PR16701.java: New test.
2703 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
2705 * java/util/Collection.java, java/util/List.java,
2706 java/util/Map.java, java/util/Set.java,
2707 java/util/SortedMap.java, java/util/SortedSet.java:
2708 Added additional exceptions to documentation.
2710 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
2713 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
2714 * configure. Regenerate.
2715 * include/win32.h: Explicitly include winsock2.h
2716 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
2719 2004-07-30 Michael Koch <konqueror@gmx.de>
2721 * java/util/zip/GZIPInputStream.java
2722 (GZIPInputStream): Increase buffer size to 4k.
2723 * java/util/zip/GZIPOutputStream.java
2724 (GZIPOutputStream): Likewise.
2725 * java/util/zip/Inflater.java
2726 (setInput): Merged formating with GNU classpath.
2727 * java/util/zip/InflaterInputStream.java
2728 (InflaterInputStream): Increase buffer size to 4k.
2729 (fill): Throw exception if stream ends early.
2730 (read): Merged endless-loop with GNU classpath.
2731 (skip): Increase buffer size to 2k.
2733 2004-07-30 Michael Koch <konqueror@gmx.de>
2735 * gnu/java/awt/EmbeddedWindow.java
2736 (addNotify): Use AccessController to allow execution of privileged
2739 2004-07-29 Michael Koch <konqueror@gmx.de>
2741 * gnu/java/lang/MainThread.java:
2742 Explicitely import used classes.
2743 (args): Make it type String[].
2745 2004-07-29 Dalibor Topic <robilad@kaffe.org>
2747 * gnu/java/awt/ComponentDataBlitOp.java,
2748 gnu/java/beans/ExplicitBeanInfo.java,
2749 gnu/java/beans/IntrospectionIncubator.java,
2750 gnu/java/beans/editors/ColorEditor.java,
2751 gnu/java/beans/editors/FontEditor.java,
2752 gnu/java/beans/editors/NativeBooleanEditor.java,
2753 gnu/java/beans/editors/NativeByteEditor.java,
2754 gnu/java/beans/editors/NativeDoubleEditor.java,
2755 gnu/java/beans/editors/NativeFloatEditor.java,
2756 gnu/java/beans/editors/NativeIntEditor.java,
2757 gnu/java/beans/editors/NativeLongEditor.java,
2758 gnu/java/beans/editors/NativeShortEditor.java,
2759 gnu/java/beans/editors/StringEditor.java,
2760 gnu/java/io/ClassLoaderObjectInputStream.java,
2761 gnu/java/io/decode/Decoder.java,
2762 gnu/java/io/encode/Encoder.java,
2763 gnu/java/lang/ClassHelper.java,
2764 gnu/java/locale/Calendar.java,
2765 gnu/java/locale/Calendar_de.java,
2766 gnu/java/locale/Calendar_en.java,
2767 gnu/java/locale/Calendar_nl.java,
2768 gnu/java/locale/LocaleInformation_de.java,
2769 gnu/java/locale/LocaleInformation_en.java,
2770 gnu/java/locale/LocaleInformation_nl.java:
2773 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2775 * README: Remove obsolete info. Update bug URL.
2777 * NEWS: Updated with news up to GCC 3.4 release.
2779 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2781 * gnu/java/security/action/GetPropertyAction.java (setParameters):
2782 Renamed from 'setName'. New 2-argument form with default value.
2783 (run): Pass default 'value' parameter to System.getProperty().
2784 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
2786 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
2789 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2791 * configure.in: Check for minimum GTK version 2.4 requirement.
2792 * configure: Rebuilt.
2794 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2796 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
2797 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
2799 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
2801 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
2802 address. Reduce sleep times. Synchronize with target threads before
2803 attempting to interrupt them. Don't try to calibrate yeild count,
2804 instead, always loop for a fixed time.
2805 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
2806 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
2807 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
2808 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
2809 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
2810 * testsuite/libjava.lang/pr179.java: Likewise.
2811 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
2812 time. Remove upper bounds check on sleep time.
2814 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2816 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
2817 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
2819 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2821 * java/io/File.java (toURI): Throw RuntimeException, not
2823 * java/lang/Runtime.java (exit): Qualify static sleep() call with
2824 class name, not instance.
2826 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
2828 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
2829 and gnu/java/security/action/SetAccessibleAction.java.
2830 * Makefile.in: Rebuilt.
2832 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2834 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
2835 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
2837 (DECLARE_PRIM_TYPE): Don't declare array vtables.
2838 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
2839 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
2841 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
2843 * Makefile.am: Replace jar, rmic and rmiregistry references with
2844 gjar, grmic and grmiregistry.
2845 * configure.in: Likewise.
2846 * Makefile.in: Regenerate.
2847 * configure: Likewise.
2848 * gcj/Makefile.in: Likewise.
2849 * include/Makefile.in: Likewise.
2850 * testsuite/Makefile.in: Likewise.
2852 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2854 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
2855 for privileged getProperty calls.
2856 * java/io/ObjectOutputStream.java (getField): No longer static. Use
2857 SetAccessibleAction instead of anonymous class for doPrivileged call.
2858 (getMethod): Likewise.
2859 (setAccessible): New field. PrivilegedAction object to use when
2860 calling setAccessible.
2861 * java/io/ObjectStreamClass.java (calculateOffsets): Use
2862 SetAccessibleAction instead of anonymous class for diPrivileged call.
2863 (setFields): Likewise.
2864 (getClassUID): Likewise.
2865 (findMethod): Likewise.
2866 * gnu/java/security/action/GetPropertyAction.java: New class.
2867 * gnu/java/security/action/SetAccessibleAction.java: New class.
2869 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2871 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
2873 * testsuite/libjava.lang/Serialization.java: New test.
2874 * testsuite/libjava.lang/Serialization.out: New.
2876 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2878 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
2879 missed in last commit.
2881 2004-07-23 Mark Wielaard <mark@klomp.org>
2883 * java/lang/System.java (static): Set http.agent system property when
2885 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
2886 from system property inside AccessController.doPrivileged() call.
2887 (proxyPort): Made package private.
2888 (proxyInUse): Likewise.
2889 (proxyHost): Likewise.
2890 (userAgent): Likewise.
2892 2004-07-23 Mark Wielaard <mark@klomp.org>
2894 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
2897 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
2899 * Makefile.am (ordinary_java_source_files): Add
2900 DefaultContentHandlerFactory.java.
2901 * Makefile.in: Rebuilt.
2902 * java/net/URLConnection.java (defaultFactory): New field.
2904 (getContentHandler): Renamed from 'setContentHandler'. Try
2905 defaultFactory after user-set factory, if any. Search for content
2906 handler implementations in gnu.java.net.content, not gnu.gcj.content.
2907 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
2909 (getLastModified): Implemented.
2910 (getPermission): Create file permission here, instead of in
2912 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
2914 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
2916 (getLastModified): Implemented.
2917 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2918 Default implementation.
2919 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2920 Implement using GdkPixbufDecoder.
2922 2004-07-21 Michael Koch <konqueror@gmx.de>
2924 * javax/swing/JTextArea.java
2925 (setLineWrap): Fire property change event after new value is set.
2926 (setTabSize): Likewise.
2928 2004-07-21 Michael Koch <konqueror@gmx.de>
2930 * javax/swing/JTable.java
2931 (autoCreateColumnsFromModel): New field.
2932 (autoResizeMode): Likewise.
2933 (cellEditor): Likewise.
2934 (cellSelectionEnabled): Likewise.
2935 (columnModel): Likewise.
2936 (dataModel): Likewise.
2937 (defaultEditorsByColumnClass): Likewise.
2938 (defaultRenderersByColumnClass): Likewise.
2939 (editingColumn): Likewise.
2940 (editingRow): Likewise.
2941 (gridColor): Likewise.
2942 (preferredViewportSize): Likewise.
2943 (rowHeight): Likewise.
2944 (rowMargin): Likewise.
2945 (rowSelectionAllowed): Likewise.
2946 (selectionBackground): Likewise.
2947 (selectionForeground): Likewise.
2948 (selectionModel): Likewise.
2949 (showHorizontalLines): Likewise.
2950 (showVerticalLines): Likewise.
2951 (tableHeader): Likewise.
2952 (JTable): Implemented.
2953 (getColumnModel): Likewise.
2954 (getSelectedRow): Likewise.
2955 (getSelectionModel): Likewise.
2956 (setModel): Likewise.
2957 (setSelectionModel): Likewise.
2958 (createScrollPaneForTable): New method.
2959 (createDefaultDataModel): Likewise.
2960 (createDefaultListSelectionModel): Likewise.
2961 (getModel): Likewise.
2962 (getTableHeader): Likewise.
2963 (setTableHeader): Likewise.
2964 (getColumnSelectionAllowed): Likewise.
2965 (setColumnSelectionAllowed): Likewise.
2966 (getRowSelectionAllowed): Likewise.
2967 (setRowSelectionAllowed): Likewise.
2968 (getAutoResizeMode): Likewise.
2969 (setAutoResizeMode): Likewise.
2970 (getColumnCount): Likewise.
2971 (getRowCount): Likewise.
2972 (getCellRenderer): Likewise.
2973 * javax/swing/JTree.java
2974 (cellRenderer): New field.
2975 (editable): Likewise.
2976 (rootVisible): Likewise.
2977 (showsRootHandles): Likewise.
2978 (getModel): New method.
2979 (setModel): Likewise.
2980 (isEditable): Likewise.
2981 (setEditable): Likewise.
2982 (isRootVisbile): Likewise.
2983 (setRootVisible): Likewise.
2984 (getShowsRootHandles): Likewise.
2985 (setShowRootHandles): Likewise.
2986 (getCellRenderer): Likewise.
2987 (setCellRenderer): Likewise.
2989 2004-07-21 Michael Koch <konqueror@gmx.de>
2991 * javax/swing/JFormattedTextField.java
2992 (setDocument): Implemented.
2993 * javax/swing/JRootPane.java:
2995 * javax/swing/JTable.java
2996 (getDefaultRenderer): New method.
2997 * javax/swing/JTextField.java
2998 (setFont): Likewise.
2999 (getPreferredSize): Likewise.
3000 * javax/swing/JToggleButton.java
3001 (getAccessibleContext): Fix javadoc.
3002 * javax/swing/JTree.java:
3004 * javax/swing/JViewport.java:
3007 2004-07-21 David Jee <djee@redhat.com>
3009 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
3010 Collect all native method declaration at the top.
3011 (create): Set the filename filter if necessary.
3012 (setDirectory): Call nativeSetDirectory().
3013 (setFilenameFilter): Implement.
3014 (filenameFilterCallback): New method.
3015 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
3016 (create): Configure dialog to show hidden files.
3017 (filenameFilterCallback): New function.
3018 (nativeSetFilenameFilter): New function.
3019 (nativeSetDirectory): New function.
3021 2004-07-21 Kim Ho <kho@redhat.com>
3023 * javax/swing/plaf/basic/BasicSliderUI.java:
3025 (paintTrack): Fill the track before painting
3028 2004-07-21 Graydon Hoare <graydon@redhat.com>
3030 patch from Roman Kennke <roman@ontographics.com>
3031 * javax/swing/Spring.java: New file.
3032 * javax/swing/SpringLayout.java: New file.
3033 * Makefile.am: Add new files.
3034 * Makefile.in: Regenerate.
3036 2004-07-21 Graydon Hoare <graydon@redhat.com>
3038 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
3039 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
3040 * javax/swing/ScrollPaneLayout.java: Likewise.
3042 2004-07-21 Kim Ho <kho@redhat.com>
3044 * javax/swing/DefaultDesktopManager.java:
3045 (findMinimum): Removed.
3046 (resizeFrame): Trust the UI to pass valid
3048 * javax/swing/JOptionPane.java:
3049 Implemented showInternalXXXDialog methods.
3050 (startModal): New method.
3051 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
3052 (BorderListener::mouseDragged): Verify that the new
3053 bounds are valid before passing them to the DesktopManager.
3054 (preferredLayoutSize): Delegate
3056 (minimumLayoutSize): Ditto.
3057 (getSize): New method.
3058 (GlassPaneDispatcher): Reimplemented by copying
3059 a stripped down LightweightDispatcher from Container.
3060 (getMinimumSize): Call minimumLayoutSize.
3061 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
3063 (mousePressed): Add ability to properly close
3065 * javax/swing/plaf/basic/BasicToolBarUI.java:
3066 (DragWindow): Set owner for DragWindow.
3068 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
3070 * java/awt/image/ShortLookupTable.java: New file.
3071 * java/awt/image/ByteLookupTable.java: New file.
3072 * Makefile.am: Added new files.
3073 * Makefile.in: Regenerated.
3075 2004-07-21 David Jee <djee@redhat.com>
3077 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
3078 (create(GtkContainerPeer)): New native method.
3079 (create()): Call native create(), passing in the parent frame
3080 as the paramter. Natively set the current file and directory.
3081 (setFile): Construct an absolute filename before passing it to
3083 (nativeGetDirectory): New method.
3084 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
3085 (window_closed): Removed.
3086 (ok_clicked): Likewise.
3087 (cancel_clicked): Likewise.
3088 (handle_response): New method.
3089 (create): Use GtkFileChooserDialog.
3090 (connectSignals): Connect to handle_response.
3091 (nativeGetDirectory): New method.
3092 (nativeSetFile): Use GtkFileChooserDialog.
3094 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
3096 * java/awt/image/LookupTable.java: New file.
3097 * Makefile.am: Added new file.
3098 * Makefile.in: Regenerated.
3100 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
3102 * java/awt/image/Kernel.java: New file.
3103 * Makefile.am: Added new file.
3104 * Makefile.in: Regenerated.
3106 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3108 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
3109 * javax/swing/JMenu.java: Likewise.
3110 * javax/swing/JMenuBar.java: Likewise.
3111 (MARGIN_CHANGED_PROPERTY): New property.
3112 (setMargin): Implemented.
3113 * javax/swing/JMenuItem.java: Fixed javadocs.
3114 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
3115 (LABEL_CHANGED_PROPERTY): New property.
3116 (add): changed to use createActionComponent.
3117 (createActionComponent): Implemented.
3118 (setLabel): Fire PropertyChangeEvent if label property
3120 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
3121 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3122 (ContainerHandler): Repaint if margin property has changed.
3123 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3124 (installUI): Call installComponents().
3125 (uninstallUI): Call uinstallComponents().
3126 * javax/swing/plaf/basic/BasicMenuUI.java:
3128 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3131 2004-07-21 Kim Ho <kho@redhat.com>
3133 * javax/swing/plaf/basic/BasicToolBarUI.java:
3134 (DragWindow): Use the right constructor.
3136 2004-07-21 Kim Ho <kho@redhat.com>
3138 * javax/swing/JToolBar.java:
3139 (layoutContainer): Use getComponents.
3140 * javax/swing/plaf/basic/BasicToolBarUI.java:
3141 (DragWindow): Don't use SwingUtilities'
3143 (ToolBarDialog): ditto.
3145 2004-07-21 Kim Ho <kho@redhat.com>
3147 * javax/swing/JRootPane.java:
3149 (layoutContainer): Set the glasspane's size to
3150 be the same as the content pane.
3151 (createGlassPane): Set opaque property to false.
3153 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3155 * java/awt/Component.java (requestFocus()): Don't handle Panels
3157 (requestFocus(boolean)): Likewise.
3158 (requestFocusInWindow(boolean)): Likewise.
3159 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
3160 Set GTK_CAN_FOCUS flag.
3162 2004-07-21 Kim Ho <kho@redhat.com>
3164 * Makefile.am: Added new file.
3165 * Makefile.in: Regenerated.
3166 * gcj/Makefile.in: Regenerated.
3167 * include/Makefile.in: Regenerated.
3168 * javax/swing/AbstractButton.java:
3169 Add rollOverEnabled property.
3170 (setRolloverEnabled): Use new property.
3171 (isRolloverEnabled): Use new property.
3172 * javax/swing/JTabbedPane.java:
3173 (setComponent): Remove useless JTabbedPane.this.
3174 * javax/swing/JToolBar.java: Finish implementation.
3175 * javax/swing/plaf/basic/BasicArrowButton.java:
3176 (paint): Moved border painting to a border.
3177 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3178 Change JToolBar look and feel defaults.
3179 * javax/swing/plaf/basic/BasicOptionPaneUI.java
3180 (actionPerformed): Return Integer index instead of name.
3181 (addButtonComponents): Check to see if component is
3183 (createMessageArea): Don't use components that are not
3185 (getIconForType): Use temporary icons.
3186 * javax/swing/plaf/basic/BasicSliderUI.java:
3187 (mousePressed): Do not return if it's on thumb.
3188 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
3189 (paintMinorTickForVertSlider): ditto.
3190 (paintMajorTickForHorizSlider): ditto.
3191 (paintMajorTickForVertSlider): ditto.
3192 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
3193 Add a border around the SplitPaneDivider.
3194 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
3196 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
3197 New file. Implemented.
3198 * javax/swing/plaf/basic/BasicToolBarUI.java:
3200 * testsuite/Makefile.in: Regenerated.
3202 2004-07-21 Graydon Hoare <graydon@redhat.com>
3204 * javax/swing/Timer.java (run): Queue events each time cycle.
3206 2004-07-21 David Jee <djee@redhat.com>
3208 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3209 (imageComplete): Call image.imageComplete().
3210 * java/awt/image/MemoryImageSource.java:
3211 Reimplement consumers as a Vector instead of a Hashtable. This is
3212 because enumeration on a Hashtable is not thread-safe.
3213 (addConsumer): Adapt to Vector consumers.
3214 (isConsumer): Adapt to Vector consumers.
3215 (removeConsumer): Adapt to Vector consumers.
3216 (startProduction): Adapt to Vector consumers. Call imageComplete()
3217 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
3218 (newPixels): Adapt to Vector consumers.
3219 (sendPicture): Set the color model of the image consumer.
3220 (newPixels(IIII)): Adapt to Vector consumers.
3221 (newPixels(IIIIB)): Adapt to Vector consumers.
3223 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3225 * java/awt/Component.java (deliverEvent): Implement.
3226 (postEvent): Implement.
3227 (handleEvent): Implement.
3228 (translateEvent): New method.
3229 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
3230 * java/awt/Container.java (deliverEvent): Implement.
3231 * java/awt/Event.java (paramString): Fix formatting.
3232 * java/awt/Font.java (toString): Likewise.
3233 * java/awt/Window.java (postEvent): Implement.
3235 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3237 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3238 Set window's focus owner upon receiving a FOCUS_LOST event.
3239 * java/awt/Window.java (Window()): Refocus the previously
3240 focused component within the window when the window regains the
3242 (setFocusOwner): New method.
3243 * java/awt/Component.java (requestFocus): Add FIXME.
3245 * libgcj.pc.in: Remove library flags.
3247 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3249 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
3250 MOUSE_PRESSED event.
3251 * java/awt/Component.java (requestFocus()): Handle Panel
3252 specially. Post FOCUS_LOST event on opposite component.
3253 (requestFocus(boolean)): Likewise.
3254 (requestFocusInWindow(boolean)): Likewise.
3255 (paramString): Reorder dimension fields.
3256 * java/awt/Container.java (paramString): Fix string format.
3257 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3258 Handle FOCUS_LOST events. Don't handle Windows specially. Only
3259 process key events if the focus owner is non-null.
3260 (dispatchKeyEvent): Likewise.
3261 * java/awt/Frame.java (paramString): Fix formatting.
3262 (generateName): New method.
3263 (getUniqueLong): Likewise.
3264 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
3265 the temporary focus owner is null. If so, return the permanent
3267 * java/awt/Panel.java (generateName): New method.
3268 (getUniqueLong): Likewise.
3269 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
3270 signal handling to make callbacks more specific.
3272 2004-07-21 Michael Koch <konqueror@gmx.de>
3274 * javax/swing/text/Position.java
3275 (Bias): Implemented.
3277 2004-07-21 Michael Koch <konqueror@gmx.de>
3279 * javax/swing/LookAndFeel.java
3280 (provideErrorFeedback): New method.
3282 2004-07-21 Michael Koch <konqueror@gmx.de>
3284 * javax/swing/JTextArea.java
3285 (tabSize): New field.
3286 (getTabSize): New method.
3287 (setTabSize): Likewise.
3289 2004-07-21 Michael Koch <konqueror@gmx.de>
3291 * javax/swing/ActionMap.java:
3292 Fixed javadocs all over.
3293 (serialVersionUID): Made private.
3294 (parent): Don't explicitely initialize with default value.
3296 (keys): Reimplemented.
3297 (allKeys): Likewise.
3298 (convertSet): Removed.
3299 * javax/swing/ComponentInputMap.java:
3300 Fixed javadocs all over.
3301 (ComponentInputMap): Implemented.
3305 (SetParent): Likewise.
3306 (getComponent): Likewise.
3307 * javax/swing/InputMap.java:
3308 Fixed javadocs all over.
3309 (serialVersionUID): Made private.
3310 (parent): Don't explicitely initialize with default value.
3312 (keys): Reimplemented.
3313 (allKeys): Likewise.
3314 (convertSet): Removed.
3316 2004-07-21 Michael Koch <konqueror@gmx.de>
3318 * javax/swing/ActionMap.java,
3319 javax/swing/ComponentInputMap.java,
3320 javax/swing/InputMap.java,
3321 javax/swing/table/DefaultTableColumnModel.java,
3322 javax/swing/table/TableColumn.java,
3323 javax/swing/table/TableColumnModel.java,
3324 javax/swing/table/TableModel.java,
3325 javax/swing/text/AbstractDocument.java,
3326 javax/swing/text/TextAction.java:
3329 2004-07-21 Graydon Hoare <graydon@redhat.com>
3331 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
3332 Make method non-static.
3333 * javax/swing/AbstractButton.java:
3334 Rename fields to match property names where possible.
3335 (iconTextGap): New property.
3336 * javax/swing/JCheckBox.java: Match AbstractButton changes.
3337 (init) New method, call from after various constructors.
3338 * javax/swing/JComponent.java (revalidate):
3339 Invalidate before queueing repair.
3340 * javax/swing/JList.java (getPreferredScrollableViewportSize):
3341 Reimplement in terms of visibleRowCount property.
3342 * javax/swing/JMenuButton.java: Match AbstractButton changes.
3343 * javax/swing/JScrollPane.java (createScrollListener):
3344 Remove tracing chatter.
3345 * javax/swing/JToggleButton.java: Match AbstractButton changes.
3346 * javax/swing/RepaintManager.java (addInvalidComponent):
3348 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
3350 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
3351 Mimic sun behavior on top left/right positioning.
3352 * javax/swing/ViewportLayout.java (preferredLayoutSize):
3353 Remove mistaken use of preferredScrollableViewportSize here.
3354 (layoutContainer): Use view's preferred size as basis.
3355 * javax/swing/plaf/basic/BasicButtonUI.java:
3356 Set, get, and use textIconGap property.
3357 (paint) Paint text returned from layout (with ellipsis).
3358 * javax/swing/plaf/basic/BasicListUI.java:
3359 Remove tracing chatter, correct various minor calculations.
3360 (getCellBounds): Update layout state before calculating.
3361 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
3362 Use margin default similar to sun's.
3363 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
3364 (createIncreaseIcon): Center icon, minimize margins.
3365 (createDecreaseIcon): Likewise.
3366 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
3368 (installUI): Call it.
3369 (uninstallDefaults): Implement.
3370 (uninstallUI): Call it.
3371 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
3372 Call existing Window constructor.
3373 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
3374 Set clip before painting.
3376 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3378 * javax/swing/JMenuItem.java:
3379 (processMouseEvent): Reimplemented to deal with
3381 (createMenuDragMouseEvent): New private helper method.
3382 Creates MenuDragMouseEvent.
3383 * javax/swing/MenuSelectionManager.java
3384 (componentForPoint): Implemented.
3385 (isComponentPartOfCurrentMenu): Made public.
3386 (processMouseEvent): Reimplemented to deal with
3388 (setSelectedPath): Corrected small mistake that caused
3389 path to be set incorrectly.
3390 (getPath): If given component is JMenu then also add this
3391 menu's popup menu to the selected path.
3392 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3394 (getPreferredSize): Call getPreferredMenuItemSize().
3395 (getPreferredItemSize): Moved code from getPreferredSize to here.
3396 (installListeners): Install MouseMotionListeners.
3397 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
3398 if mouse wasn't released in the bounds of this menu item.
3399 (MenuDragMouseHandler): Implemented.
3400 * javax/swing/plaf/basic/BasicMenuUI.java:
3401 (installListeners): Install MouseMotionListener and
3402 MenuDrageMouseListener.
3403 (MenuDragMouseHandler): Implemented.
3404 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3405 (uninstallListeners): Implemented.
3407 2004-07-21 Michael Koch <konqueror@gmx.de>
3409 * javax/swing/JCheckBox.java: Reformated.
3410 (JCheckBox): Fixed all constructors.
3411 (isBorderPaintedFlat): New method.
3412 (setBorderPaintedFlat): New method.
3413 * javax/swing/JEditorPane.java
3414 (createEditorKitForContentType): Made public.
3415 (scrollToReference): Likewise.
3416 * javax/swing/JTextArea.java
3417 (setLineWrap): Fire property change.
3418 * javax/swing/JToggleButton.java
3419 (JToggleButton): New constructor.
3420 (JToggleButton): Simplified.
3421 * javax/swing/text/AttributeSet.java
3422 (FontAttribute): Renamed from FontCharacterAttribute.
3423 * javax/swing/text/JTextComponent.java
3424 (KeyBinBinding): Added javadoc.
3425 (JTextComponent): Likewise.
3426 (getAccessibleContext): Fixed javadoc.
3427 * javax/swing/text/View.java
3428 (View): Added javadoc.
3429 * javax/swing/text/TabableView.java: New file.
3430 * Makefile.am: Added javax/swing/text/TabableView.java.
3431 * Makefile.in: Regenerated.
3433 2004-07-21 Graydon Hoare <graydon@redhat.com>
3435 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
3436 * gnu/java/awt/peer/gtk/GtkToolkit.java
3437 (GtkErrorImage): New helper class.
3438 (bufferedImageOrError): New helper method.
3439 (createImage): Use it.
3441 2004-07-21 David Jee <djee@redhat.com>
3443 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3444 (setCaretPosition): Scroll the text view so the new caret position
3445 is visible on screen.
3447 2004-07-21 David Jee <djee@redhat.com>
3449 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3450 (setBounds): Do not validate awtComponent here.
3451 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
3452 (getPreferredSize): New method.
3453 * java/awt/ScrollPane.java
3454 (ScrollPane): Set default size to 100x100.
3455 (addNotify): If child is not a Panel, wrap it with a new Panel.
3456 (paramString): Implement.
3458 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3460 * javax/swing/JMenu.java:
3461 (setSelected): Display popup menu only if this menu
3462 is showing on the screen.
3463 * javax/swing/JPopupMenu.java:
3464 (processMouseEvent): Added comment.
3465 (processKeyEvent): Likewise.
3466 * javax/swing/MenuSelectionManager.java:
3467 (clearSelectedPath): Only fireStateChanged() after
3468 selected path was changed, not before.
3469 (setSelectedPath): Likewise.
3470 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3471 (paintMenuItem): Corrected position of menu item's
3473 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3474 (installUI): Correct setDefaultLightWeightPopupEnabled call.
3475 (popupMenuCanceled): Reimplemented.
3476 (popupMenuWillBecomeVisible): Select first menu item by default
3477 when displaying free floating popup menus.
3478 (TopWindowListener): Reimplemented.
3480 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3482 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
3483 Panel from being painted twice when it is first shown.
3485 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3487 * java/awt/Window.java: Reverted changes from my
3488 previous patch for creating window without an owner.
3489 * javax/swing/SwingUtilities.java:
3490 (SwingUtilities.OwnerFrame): made static.
3491 (OwnerFrame.setVisible): New method. Overridden with
3492 empty implementation.
3493 (OwnerFrame.isShowing): New method. Ovverridden
3494 to return always true.
3496 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3498 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3499 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3500 (GtkComponentPeer): Remove temporary try/catch block.
3501 (setVisible): Call show and hide.
3502 (show): Make native.
3504 (getArgs): Don't add "visible" argument.
3505 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3506 (property_notify_predicate): Return Bool instead of int.
3507 (find_layout): New function.
3508 (connectJObject): Call find_layout.
3509 (connectSignals): Likewise.
3510 (moveLayout): Likewise.
3511 (gtkLayoutSetVisible): Likewise.
3513 2004-07-21 Mark Wielaard <mark@klomp.org>
3515 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3516 on notifier object before calling notifyAll().
3518 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3520 * java/awt/Window.java: Changed constructors to use new
3521 method that is described below. Constructors call this
3522 methods only if newly created window should have an owner.
3523 (setWindowOwner): New method. Implementation for
3524 this method is moved from this(owner,configuration).
3525 * javax/swing/JWindow.java:
3526 (JWindow): Reimplement to use SwingUtilities.ownerFrame
3528 * javax/swing/SwingUtilities.java:
3529 (ownerFrame): Change type of this field to OwnerFrame.
3530 (getOwnerFrame): Changed to return object of type OwnerFrame.
3531 (SwingUtilities.OwnerFrame): New class. Represents owner
3532 of a Window that is not provided with one.
3534 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3536 * javax/swing/AbstractButton.java:
3537 (configurePropertiesFromAction): Set action command
3538 to button's text by default if action command is not
3539 explicitely specified.
3540 * javax/swing/JMenu.java: Remove unnecessary listener
3541 and methods relevant to it.
3542 (setSelected): Reimplemented.
3543 (menuSelectionChanged): Moved most part of implementation to
3544 setSelected() and call it instead.
3545 * javax/swing/JMenuItem.java:
3546 (init): Comment out statement that sets paint_border to false.
3547 (configurePropertiesFromAction): Do not set accelerator
3549 (menuSelectionChanged): Change selected index in the selection
3550 model of menu item's parent.
3551 * javax/swing/JPopupMenu.java:
3552 (remove): Set constraints.fill field to GridBagConstraints.BOTH
3553 instead of GridBagConstraints.HORIZONTAL.
3555 (createActionChangeListener): Implemented.
3556 (setVisible): Correct location of HeavyWeightMenu and
3557 don't firePopupMenuCanceled().
3558 (menuSelectionChanged): Implemented.
3559 (ActionChangeListener): New Listener. Implemented.
3560 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3561 (BasicMenuBarUI.ContainerHandler): Implemented.
3562 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3563 (paintMenuItem): Uncommented out code that paints
3564 icon, now that icons are working properly.
3565 (PropertyChangeListener): Implemented.
3566 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3568 (topWindowListener): New field.
3569 (Constructor): initialize topWindowListener.
3570 (BasicPopupMenuUI.TopWindowListener): Implemented.
3571 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
3572 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
3575 2004-07-21 Michael Koch <konqueror@gmx.de>
3577 * javax/swing/plaf/basic/BasicButtonUI.java
3578 (paintFocus): Fixed method signature.
3579 (paintButtonPressed): Likewise.
3580 (paintButtonNormal): Likewise.
3581 (paintText): New method.
3582 * javax/swing/plaf/basic/BasicLabelUI.java
3583 (paint): Re-indented.
3584 * javax/swing/plaf/basic/BasicTextUI.java
3585 (installUI): Set parent textComponent to opaque.
3586 * javax/swing/text/DefaultHighlighter.java
3587 (checkPositions): New helper method.
3588 (addHighlight): Throws BadLocationException, check positions.
3589 (changeHighlight): Likewise.
3590 * javax/swing/text/EditorKit.java
3591 (EditorKit): Implements Serializable.
3592 * javax/swing/text/JTextComponent.java
3593 (getUI): Added javadoc.
3595 (upadteUI): Added javadoc, don't revalidate and repaint.
3597 2004-07-21 David Jee <djee@redhat.com>
3599 * java/awt/GridBagLayout.java
3600 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
3601 * javax/swing/AbstractButton.java
3602 (setText): Reindent.
3603 * javax/swing/RepaintManager.java
3604 (addInvalidComponent): Find the first ancestor that isValidateRoot().
3606 2004-07-21 Michael Koch <konqueror@gmx.de>
3608 * javax/swing/JFormattedTextField.java
3610 (JFormattedTextField): Implemented.
3611 (getValue): Likewise.
3612 (setValue): Likewise.
3613 * javax/swing/LookAndFeel.java
3614 (getSupportsWindowDecorations): New method.
3615 * javax/swing/UIDefaults.java:
3616 Use java.beans.PropertyChangeSupport instead of doing all ourself.
3617 (addPropertyChangeListener): Made public.
3618 (addResourceBundle): Likewise.
3619 (removeResourceBundle): Likewise.
3620 (setDefaultLocale): Likewise.
3621 * javax/swing/plaf/basic/BasicRootPaneUI.java
3622 (BasicRootPaneUI): Implements PropertyChangeListener.
3623 (propertyChange): New method.
3624 * javax/swing/plaf/basic/BasicTextUI.java
3625 (BasicHighlighter): New inner class.
3626 (createHighlighter): New method.
3627 * javax/swing/plaf/basic/BasicToolBarUI.java
3628 (DragWindow): Extends java.awt.Window.
3629 * javax/swing/text/JTextComponent.java
3630 (getDocument): Removed debug output.
3631 * javax/swing/plaf/basic/BasicTextFieldUI.java,
3632 javax/swing/text/DefaultHighlighter.java,
3633 javax/swing/text/FieldView.java,
3634 javax/swing/text/PlainView.java: New files.
3635 * Makefile.am: Added new files.
3636 * Makefile.in: Regenerated.
3638 2004-07-21 Michael Koch <konqueror@gmx.de>
3640 * javax/swing/JEditorPane.java
3641 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
3642 (createEditorKitForContentType): Likewise.
3643 * javax/swing/text/DefaultEditorKit.java
3644 (serialVersionUID): Added constant field.
3645 (EndOfLineStringPropery): Fixed typo.
3646 (DefaultEditorKit): New constructor.
3647 * javax/swing/text/Segment.java:
3648 Import java.text.CharacterIterator.
3649 * javax/swing/text/CharacterIterator.java,
3650 javax/swing/text/PlainEditorKit.java: Removed.
3651 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
3652 javax/swing/text/PlainEditorKit.java.
3653 * Makefile.in: Regenerated.
3655 2004-07-21 Michael Koch <konqueror@gmx.de>
3657 * javax/swing/JButton.java,
3658 javax/swing/text/DefaultEditorKit.java,
3659 javax/swing/text/EditorKit.java,
3660 javax/swing/text/Segment.java,
3661 javax/swing/text/StyledEditorKit.java:
3664 2004-07-21 Michael Koch <konqueror@gmx.de>
3666 * javax/swing/ImageIcon.java
3668 (description): Renamed from descr.
3669 (ImageIcon): Added missing constructors.
3670 (setParent): Removed.
3671 (setImageObserver): New method.
3672 (getImageObserver): New method.
3673 (paintIcon): Handle observer = null.
3674 * javax/swing/JButton.java
3675 (removeNotify): Fixed javadoc.
3676 (updateUI): Simplified.
3677 * javax/swing/JRootPane.java
3678 (serialVersionUID): New constant field.
3679 * javax/swing/UIManager.java:
3680 Fixed javadocs all over.
3681 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
3682 * javax/swing/text/AbstractDocument.java
3683 (createPosition): Throws BadLocationException.
3684 (getText): Likewise.
3686 * javax/swing/text/ComponentView.java
3687 (modelToView): Likewise.
3688 * javax/swing/text/DefaultEditorKit.java:
3689 Made all public methods public.
3690 (read): Throws BadLocationException and IOException.
3692 * javax/swing/text/EditorKit.java:
3693 Made all public methods public.
3694 (serialVersionUID): New constant field.
3695 (clone): New method.
3696 (read): Throws BadLocationException and IOException.
3698 * javax/swing/text/Segment.java
3699 (array): Made public.
3702 (Segment): New constructors.
3703 (clone): Reimplemented.
3704 * javax/swing/text/StyledEditorKit.java
3705 (serialVersionUID): New constant field.
3707 2004-07-21 Graydon Hoare <graydon@redhat.com>
3709 * java/awt/image/BufferedImage.java
3710 (getSource): Implement.
3711 * javax/swing/ImageIcon.java
3712 (ImageIcon): Implement ctor.
3713 * javax/swing/ScrollPaneLayout.java
3714 (preferredLayoutSize): Be more careful about nulls.
3716 2004-07-21 Michael Koch <konqueror@gmx.de>
3718 * javax/swing/text/AttributeSet.java
3719 (CharacterAttribute): New interface
3720 (ColorAttribute): Likewise.
3721 (FontCharacterAttribute): Likewise.
3722 (ParagraphAttribute): Likewise.
3723 * javax/swing/text/DefaultCaret.java
3724 (moveCaret): New method.
3725 (positionCaret): Likewise.
3726 (repaint): Made protected.
3727 * javax/swing/text/JTextComponent.java
3728 (KeyBinding): Made it static.
3729 * javax/swing/text/View.java
3730 (getContainer): Honor parent == null.
3732 2004-07-21 Michael Koch <konqueror@gmx.de>
3734 * javax/swing/text/AbstractDocument.java:
3737 2004-07-21 Michael Koch <konqueror@gmx.de>
3739 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3740 Import javax.swing.UIManager explicitely.
3741 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
3742 (ScrollingButton): Made it static.
3744 2004-07-21 Michael Koch <konqueror@gmx.de>
3746 * javax/swing/UIDefaults.java
3747 (ActiveValue): Made public.
3748 (LazyValue): Likewise.
3749 * javax/swing/plaf/basic/BasicTextUI.java
3750 (RootView): Reintroduced.
3752 (rootView): New field.
3753 (installUI): Create document if needed, initialize rootView.
3754 (uninstallUI): Hanle rootView.
3756 (getRootView): Likewise.
3757 (setView): Likewise.
3758 * javax/swing/text/DefaultCaret.java:
3759 Renamed all "evt" variables to "event".
3761 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3763 * libgcj.spec.in: Add -l-java-util-logging.
3765 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
3767 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3768 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
3769 gtk-xft-dpi can no calculate the right value.
3770 (dpi_changed_cb): Mark *pspec as unsused.
3772 2004-07-21 David Jee <djee@redhat.com>
3774 * java/awt/Component.java
3775 (move): Delegate to setBounds().
3777 (reshape): Fix so it repaints parent and self only when necessary.
3779 2004-07-21 David Jee <djee@redhat.com>
3781 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3782 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3783 (GtkComponentPeer): Revert previous patch from 2004-06-22.
3784 (setVisible): Likewise.
3787 (getArgs): Likewise.
3788 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3789 (property_notify_predicate): Likewise.
3790 (find_layout): Likewise.
3791 (connectJObject): Likewise.
3792 (connectSignals): Likewise.
3793 (moveLayout): Likewise.
3794 (gtkLayoutSetVisible): Likewise.
3796 2004-07-21 Graydon Hoare <graydon@redhat.com>
3802 (rmiregistry_LDADD): Add lib-java-util-logging.la
3803 * Makefile.in: Regenerate.
3805 2004-07-21 Michael Koch <konqueror@gmx.de>
3807 * javax/swing/text/AbstractDocument.java
3808 (replace): Dont use protected method of java.util.Vector directly.
3810 2004-07-21 Michael Koch <konqueror@gmx.de>
3812 * javax/swing/plaf/basic/BasicTextUI.java
3813 (installUI): Call specialized install methods.
3814 (installDefaults): New method.
3815 (installListeners): Likewise.
3816 (installKeyboardActions): Likewise.
3817 (uninstallUI): Likewise.
3818 (uninstallDefaults): New method.
3819 (uninstallListeners): Likewise.
3820 (uninstallKeyboardActions): Likewise.
3821 (getPropertyPrefix): New abstract method.
3822 (paint): Made final, just call paintSafely().
3823 (paintSavely): New method.
3824 (paintBackground): Likewise.
3825 (getVisibleEditorRect): Likewise.
3826 * javax/swing/text/LayeredHighlighter.java,
3827 javax/swing/text/TabExpander.java: New files.
3828 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
3829 and javax/swing/text/TabExpander.java.
3830 * Makefile.in: Regenerated.
3832 2004-07-21 Michael Koch <konqueror@gmx.de>
3834 * javax/swing/plaf/basic/BasicTextUI.java
3835 (BasicTextUI): Made abstract.
3836 (BasicCaret): New inner class.
3837 (view): Don't explicitely initialize with "null".
3838 (textComponent): New field.
3839 (textColor): Removed.
3840 (disabledTextColor): Removed.
3841 (normalBackgroundColor): Removed.
3842 (RootView): Removed commented out inner class.
3843 (createUI): Removed.
3844 (createCaret): New method.
3845 (getComponent): Likewise.
3846 (installUI): Initialize textComponent only.
3847 (getPreferredSize): Use installed JTextComponent.
3848 (setView): New method.
3850 * javax/swing/text/JTextComponent.java
3851 (highlighter): New field.
3852 (caretColor): Likewise.
3853 (disabledTextColor): Likewise.
3854 (seletedTextColor): Likewise.
3855 (selectionColor): Likewise.
3856 (setUI): New method.
3857 (getCaretColor): Likewise.
3858 (setCaretColor): Likewise.
3859 (getDisabledColor): Likewise.
3860 (setDisabledColor): Likewise.
3861 (getSelectedTextColor): Likewise.
3862 (setSelectedTextColor): Likewise.
3863 (getSelectionColor): Likewise.
3864 (setSelectionColor): Likewise.
3865 (getHighlighter): Likewise.
3866 (setHighlighter): Likewise.
3867 (replaceSelection): Likewise.
3869 2004-07-21 Michael Koch <konqueror@gmx.de>
3871 * javax/swing/plaf/basic/BasicScrollPaneUI.java
3872 (BasicScrollPaneUI): Implements ScrollPaneConstants.
3873 * javax/swing/plaf/basic/BasicToolBarUI.java
3874 (BasicToolBarUI): Implements SwingConstants.
3876 2004-07-21 Michael Koch <konqueror@gmx.de>
3878 * javax/swing/JPopupMenu.java: Removed CVS tags.
3879 * javax/swing/UIDefaults.java: Reformatted.
3880 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3881 Explicitely import used classes.
3883 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3885 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3886 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3887 (GtkComponentPeer): Remove temporary try/catch block.
3888 (setVisible): Call show and hide.
3889 (show): Make native.
3891 (getArgs): Don't add "visible" argument.
3892 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3893 (property_notify_predicate): Return Bool instead of int.
3894 (find_layout): New function.
3895 (connectJObject): Call find_layout.
3896 (connectSignals): Likewise.
3897 (moveLayout): Likewise.
3898 (gtkLayoutSetVisible): Likewise.
3900 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3902 * javax/swing/AbstractButton.java:
3903 (setDisplayedMnemonicIndex): Check if button
3904 text is not null before checking its length.
3905 * javax/swing/JMenuItem.java:
3906 (processMouseEvent): Disarm menu item if mouse has
3908 * javax/swing/plaf/basic/BasicMenuUI.java:
3909 (MouseInputHandler.mouseEntered): Do not raise
3910 popup menu if this menu is already selected.
3911 (MouseInputHandler.mousePressed): Do not fire
3913 (MenuHandler): Implemented.
3915 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3917 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
3918 (getSelectedObjects): Implemented.
3919 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
3920 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
3921 Added javadoc for few methods.
3922 (processMouseEvent): Made public.
3923 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
3924 (processMouseEvent): Likewise.
3926 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3928 * javax/swing/AbstractButton.java:
3929 (init): Set display mnemonic index to -1.
3930 (setMnemonic(char)): Use setMnemonic(int).
3931 (setMnemonic(int)): Set display mnemonic index.
3932 (getDisplayedMnemonicIndex): Change method signature
3933 by removing 'index' parameter.
3934 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3935 Added default for Menu.selectionBackground.
3936 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3937 (paintMenuItem): Change background color of the selected
3939 (paintText): Paint differently when menu item is disabled.
3940 Also paint mnemonic if it appears in the menu item's label.
3941 (paintAccelerator): Paint accelerator differently
3942 if menu item is disabled.
3943 * javax/swing/plaf/basic/BasicMenuUI.java:
3944 (installDefaults): Install defaults for
3945 selectionForeground and selectionBackground.
3946 (uninstallDefaults): Uninstall defauls for
3947 selectionForeground and selectionBackground.
3949 2004-07-21 Michael Koch <konqueror@gmx.de>
3951 * javax/swing/text/AbstractDocument.java
3952 (BranchElement): Implemented.
3953 (LeafElement): Implemented.
3954 * javax/swing/text/DefaultCaret.java:
3955 Import used classes.
3956 (serialVersionUID): New constant.
3957 * javax/swing/text/JTextComponent.java
3958 (AccessibleJTextComponent): Removed dead declaration.
3959 (caretPos): Removed.
3960 (setCaret): New method.
3961 * javax/swing/text/PlainDocument.java
3962 (rootElement): New field.
3963 (PlainDocument): Initialize rootElement.
3964 (createDefaultRoot): New method.
3965 (getDefaultRootElement): Implemented.
3966 * javax/swing/text/View.java: Reformatted.
3967 * javax/swing/text/ViewFactory.java
3968 (create): Added javadoc.
3970 2004-07-21 Michael Koch <konqueror@gmx.de>
3972 * javax/swing/ToolTipManager.java: Reformatted.
3974 2004-07-21 Rodimina Olga <rodimina@redhat.com>
3976 * javax/swing/AbstractButton.java
3977 (changeEvent): New field.
3978 (fireItemStateChanged): Change source of the event
3979 to 'this' before firing it to button listeners.
3980 (fireActionPerformed): Likewise.
3981 (fireStateChanged): Likewise.
3982 (createActionListener): Do not set source
3983 of the event to AbstractButton.
3984 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3985 (ContainerHandler.componentAdded): Removed
3986 print out statement.
3987 (ContainerHandler.componentRemoved): Likewise.
3989 2004-07-21 Michael Koch <konqueror@gmx.de>
3991 * javax/swing/text/Highlighter.java: New file.
3992 * Makefile.am: Added javax/swing/text/Highlighter.java.
3993 * Makefile.in: Regenerated.
3995 2004-07-21 Michael Koch <konqueror@gmx.de>
3997 * javax/swing/ToolTipManager.java
3998 (stillInsideTimerAction): Fixed constructor arguments.
3999 (outsideTimerAction): Likewise.
4000 (insideTimerAction): Likewise.
4002 2004-07-21 Michael Koch <konqueror@gmx.de>
4004 * javax/swing/JButton.java: Reformatted.
4005 * javax/swing/JFormattedTextField.java
4006 (getUIClassID): Implemented.
4007 * javax/swing/JRootPane.java
4008 (serialVersionUID): New constant.
4009 * javax/swing/JTextField.java
4011 (JTextField): Simplified.
4012 (getUIClassID): New method.
4013 (getActionListeners): Added @since tag.
4014 (setColumns): Invalidate layout and repaint.
4015 (getHorizontalAlignment): New method.
4016 (setHorizontalAlignment): New method.
4017 (selectAll): Removed.
4018 * javax/swing/SwingUtilities.java
4019 (getAncestorOfClass): Removed redundant @see tag.
4020 (isLeftMouseButton): Fixed implementation.
4021 (isMiddleMouseButton): Likewise.
4022 (isRightMouseButton): Likewise.
4023 * javax/swing/text/AbstractDocument.java
4024 (AttributeContext.addAttribute): New method.
4025 (AttributeContext.addAttributes): New method.
4026 (AttributeContext.getEmptySet): New method.
4027 (AttributeContext.reclaim): New method.
4028 (AttributeContext.removeAttribute): New method.
4029 (AttributeContext.removeAttributes): New method.
4030 * javax/swing/text/Document.java
4031 (createPosition): Throws BadLocationException.
4032 (getText): Likewise.
4034 * javax/swing/text/JTextComponent.java
4035 (getText): Return null if no document is set. Catch
4036 BadLocationException.
4038 (updateUI): Simplified.
4040 2004-07-21 Michael Koch <konqueror@gmx.de>
4042 * javax/swing/JButton.java
4043 (removeNotify): Fixed javadoc.
4044 (updateUI): Simplified.
4046 2004-07-21 David Jee <djee@redhat.com>
4048 * gnu/java/awt/image/ImageDecoder.java
4049 (startProduction): Only add consumer if it's not added yet.
4050 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
4051 (GdkPixbufDecoder): Don't call initState() here.
4052 (produce): Call initState() here, to ensure area_prepared and
4053 area_updated signals are properly connected.
4054 * gnu/java/awt/peer/gtk/GtkImage.java
4055 (setColorModel): Use equals() to compare ColorModel objects.
4056 (setPixels): Likewise.
4057 * java/awt/image/ColorModel.java
4058 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
4059 * java/awt/image/RGBImageFilter.java
4060 (setColorModel): Set consumer's color model.
4061 (setPixels): Use equals() to compare ColorModel objects.
4063 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
4065 * java/net/URLConnection.java (position): New field.
4066 (dateFormat1, dateFormat2, dateFormat3): Removed.
4067 (dateFormats): New field.
4068 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
4069 each time instead of re-allocating.
4070 (initializeDateFormats): Initialize 'dateFormats'.
4072 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
4075 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
4078 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
4080 * java/net/Socket.java (getImpl): Now private. Remove comment.
4082 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
4084 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
4085 of chained Writer when calling super-constructor.
4086 * java/io/FilterWriter.java (FilterWriter): Likewise.
4087 * java/io/PrintWriter.java (PrintWriter): Likewise.
4089 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
4091 * prims.cc (process_gcj_properties): Don't increment i within LHS
4094 2004-07-19 Per Bothner <per@bothner.com>
4096 Print -verbose:message on "loading", not initialization.
4097 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
4098 * defineclass.cc (_Jv_ClassReader::parse): Print message if
4099 gcj::verbose_class_flag.
4100 * java/lang/natClass.cc (initializeClass): Don't print message here.
4101 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
4102 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
4103 (_Jv_PrepareCompiledClass): Likewise.
4105 2004-07-18 Matthias Klose <doko@debian.org>
4107 * configure.in: Substitute target_noncanonical.
4108 * configure: Regenerate
4110 2004-07-17 Michael Koch <konqueror@gmx.de>
4112 * java/lang/String.java: Fixed javadocs all over.
4114 2004-07-17 Mark Wielaard <mark@klomp.org>
4116 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
4117 when size is smaller.
4118 * java/io/RandomAccessFile.java (setLength): Use truncate for
4119 shrinking the file and seek plus write for expanding the file.
4121 2004-07-17 Michael Koch <konqueror@gmx.de>
4123 * gnu/java/nio/channels/natFileChannelPosix.cc
4124 (implTruncate): Always save current position. Only reposition file
4125 pointer to where we started if not beyond new lenght. Reposition file
4126 pointer to file length if it points beyond the end of file.
4128 2004-07-17 Mark Wielaard <mark@klomp.org>
4130 * javax/swing/Box.java: Put FIXME comment above class declaration.
4131 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
4132 * javax/swing/JCheckBox.java: Likewise.
4133 * javax/swing/JDialog.java: Likewise.
4134 * javax/swing/JRadioButton.java: Likewise.
4135 * javax/swing/JToggleButton.java: Likewise.
4136 * javax/swing/UIManager.java: Likewise.
4137 * javax/swing/border/TitledBorder.java: Likewise.
4138 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
4139 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
4140 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
4141 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
4142 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
4143 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
4144 * javax/swing/text/JTextComponent.java: Likewise.
4146 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
4148 * java/net/DatagramPacket.java (setAddress): Removed check for
4151 2004-07-17 Michael Koch <konqueror@gmx.de>
4153 * java/net/DatagramSocket.java
4154 (getLocalAddress): Check if socket is bound or not.
4155 * java/net/Socket.java
4156 (getLocalAddrss): Check if socket is bound or not.
4157 (getPort): Return -1 when not connected. Dont check getImpl() for
4159 (setReuseAddress): Check if socket is closed.
4160 (isConnected): Check if getImpl() returns null.
4162 2004-07-17 Mark Wielaard <mark@klomp.org>
4164 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
4165 on notifier object before calling notifyAll().
4167 2004-07-17 Michael Koch <konqueror@gmx.de>
4169 * gnu/java/nio/channels/FileChannelImpl.java
4170 (finalize): Added javadoc.
4172 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
4174 * java/text/CollationElementIterator.java
4175 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
4176 (setText): Use ArrayList instead of Vector.
4178 2004-07-17 Michael Koch <konqueror@gmx.de>
4180 * java/nio/ByteOrder.java
4181 (static): Removed. Not needed.
4182 Thanks to Patrick Reali for noticing.
4183 * java/nio/charset/CharsetDecoder.java
4184 (decode): Fix for classpath bug #9177: Reset state before flipping.
4186 2004-07-17 Michael Koch <konqueror@gmx.de>
4188 * java/security/Security.java: Fixed javadocs all over.
4190 2004-07-17 Michael Koch <konqueror@gmx.de>
4192 * gnu/java/awt/EmbeddedWindow.java
4194 (addNotify): Set peer via reflection.
4195 (setWindowPeer): Removed.
4196 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
4197 * Makefile.am (nat_source_files):
4198 Removed gnu/java/awt/natEmbeddedWindow.cc.
4199 * Makefile.in: Regenerated.
4201 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
4203 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
4205 * configure: Regenerated.
4207 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
4209 * configure.in: Use build_noncanonical rather than build_alias.
4210 * configure: Rebuild.
4212 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
4213 by logic refactoring. Move default definition of NATIVE closer
4214 to first alternate definition.
4215 * configure: Regenerate.
4217 * Makefile.am: Set ZIP and GCJH directly using autoconf.
4218 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
4219 gcj/Makefile.in: Regenerate.
4220 * configure.in: Set ZIP and GCJH. Remove redundant condition
4221 in AM_CONDITIONAL(NATIVE,...)
4222 * configure: Regenerate.
4224 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
4226 * configure.in: Use target_noncanonical rather than
4227 target_alias for forward-compatibility with autoconf 2.59.
4228 * configure: Regenerate.
4229 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
4230 testsuite/Makefile.am: Substitute target_noncanonical.
4231 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4232 testsuite/Makefile.in: Regenerate.
4234 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
4235 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
4236 * acinclude.m4: Include acx.m4.
4237 * aclocal.m4: Regenerate.
4238 * configure: Regenerate.
4240 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
4243 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
4244 (decimalFormat): New static variable.
4246 (getTime): New. Override Date.getTime().
4247 (toString): Synchronize. Use decimalFormat to format nanos value
4248 correctly. Truncate extra zeros.
4249 (before): Compare getNanos() only if getTime() is equal.
4252 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
4254 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
4255 * configure.in: ...here.
4256 * aclocal.m4: Regenerate.
4257 * configure: Regenerate.
4259 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
4260 * configure: Rebuilt with autoconf 2.13.
4261 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4262 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
4264 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
4267 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
4269 * Makefile.in: Rebuilt.
4270 * testsuite/libjava.lang/LargeFile.java: New test case.
4271 * testsuite/libjava.lang/LargeFile.out: New file.
4273 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
4275 * java/beans/EventHandler.java: Remove debugging statements.
4277 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
4279 * java/beans/EventHandler.java: New file.
4280 * Makefile.am (awt_java_source_files): Add EventHandler.java.
4281 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4282 testsuite/Makefile.in: Regenerate.
4284 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
4286 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
4287 flag to the gcj_setup.
4288 (gcj_jacks_run): Check tclsh version and launch jacks directly with
4290 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
4291 deprecation flag change. 58 XFAILS removed.
4293 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
4295 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
4296 -fno-use-divide-subroutine.
4297 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
4298 (HANDLE_FPE): Define.
4299 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
4300 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
4301 (HANDLE_DIVIDE_OVERFLOW): Define.
4303 2004-07-14 Michael Koch <konqueror@gmx.de>
4304 Matthias Klose <doko@debian.org>
4306 * java/awt/im/InputContext.java: Initialize in, line.
4308 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
4310 * interpret.cc (run): Correctly access libffi return values of
4311 integral smaller-than-int type; these are implicitly promoted.
4313 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
4316 * interpret.cc (compile_mutex): New.
4317 (_Jv_InitInterpreter): New. Initialize compile_mutex.
4318 (run): Lock compile_mutex before calling compile() if compilation is
4320 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
4321 * include/java-interp.h (_Jv_InitInterpreter): Declare.
4323 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
4326 * include/jvm.h (_Jv_value): New union type.
4327 * gcj/field.h (_Jv_Field): Add new _addr union field variants
4328 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
4331 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
4333 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
4334 * gnu/awt/xlib/XOffScreenImage.java
4335 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
4336 constructor argument. Add constructor using ImageProducer.
4337 (getSource): Implement.
4338 (imageComplete): New method.
4339 (setColorModel): New method.
4340 (setDimensions): New method.
4341 (setHints): New method.
4342 (setPixels): New method.
4343 (setProperties): New method.
4344 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
4345 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
4347 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
4350 * prims.cc (_Jv_CreateJavaVM): Fix comment.
4351 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
4352 (finalizerReady): Now native.
4354 (runFinalizers): Removed.
4355 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
4356 a primitive lock, and don't hold it while running the finalizers.
4357 (runFinalizers): Implement. Don't aquire any Java lock.
4358 (finalizerReady): Use lock primitives to signal finalizer thread.
4360 2004-07-11 Mark Wielaard <mark@klomp.org>
4362 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
4363 * java/net/URLStreamHandler.java (parseURL): When url file part
4364 doesn't contain a '/' just ignore context.
4366 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
4368 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
4369 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
4370 (MAKE_THROW_FRAME): Do not modify PSW address.
4371 (INIT_SEGV): Install SIGINFO-style signal handler.
4372 (INIT_FPE): Likewise.
4374 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
4376 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
4377 status. 21 xfail's removed, 1 added.
4379 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
4381 * gcj/javaprims.h: Regenerate CNI namespace definitions.
4383 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
4385 * java/text/MessageFormat.java
4386 (formatInternal): Append "{n}" if argument n is unavailable.
4387 (format(Object, StringBuffer, FieldPosition)): This
4388 should be equivalent to format(Object[],
4389 StringBuffer, FieldPosition).
4391 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4393 * java.util.Calendar.java (cache): New private static field. Cached
4394 mappings of locales->calendar classes.
4395 (ctorArgTypes): New private static field. Singleton argument for
4396 calendar class constructor lookup.
4397 (getInstance): Cache Locale->Calendar class mappings using HashMap.
4398 Optimize by bypassing reflection instantiation for the
4399 GregorianCalendar case.
4401 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4403 * java/util/Calendar.java: Use getSystemClassLoader as argument for
4404 ResourceBundle.getBundle() calls.
4405 * java/util/GregorianCalendar.java: Likewise.
4406 * java/util/Currency.java: Likewise.
4407 * java/text/BreakIterator.java: Likewise.
4408 * java/text/Collator.java: Likewise.
4409 * java/text/DateFormat.java: Likewise.
4410 * java/text/DateFormatSymbols.java: Likewise.
4411 * java/text/DecimalFormatSymbols.java: Likewise.
4412 * java/text/NumberFormat.java: Likewise.
4413 * java/awt/Window.java: Likewise.
4415 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4417 * java/util/ResourceBundle.java (bundleCache): Renamed from
4418 resourceBundleCache. Update comments.
4419 (getObject): Don't catch MissingResourceException.
4420 (getBundle(String)): Remove 'final'. Use system classloader if
4421 getCallingClassLoader returned null.
4422 (getBundle(String, Locale)): Likewise.
4423 (BundleKey): New private class. HashMap key for bundle cache lookup.
4424 (lookupKey): New. Singleton instance of BundleKey.
4425 (nullEntry): New. Cache entry to represent failed lookups.
4426 (getBundle(String, Locale, ClassLoader)): Re-written to use new
4427 caching strategy, no-allocation lookup, and new tryBundle methods.
4428 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
4429 name using given classloader.
4430 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
4431 baseName for given Locale and attempt to load bundle.
4433 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4435 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
4436 illegal protected method calls.
4438 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4440 Fix or remove some bogus test cases.
4441 * testsuite/libjava.compile/pr10459_2.java: Removed.
4442 * testsuite/libjava.compile/pr10459.java: Test using its own method,
4444 * testsuite/libjava.compile/inner_data.java: Test against its own
4447 2004-07-09 Michael Koch <konqueror@gmx.de>
4449 * scripts/unicode-muncher.pl: Updated to version 2.1
4450 from GNU classpath. Added some clarifications on where to find the
4451 needed files from www.unicode.org.
4452 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
4453 gnu/gcj/convert/UnicodeData-3.0.0.txt:
4454 Removed, these can directly be downloaded from www.unicode.org if
4456 * gnu/java/lang/CharData.java: Regenerated.
4457 * include/java-chartables.h: Regenerated.
4458 * Makefile.am (ordinary_java_source_files):
4459 Removed gnu/java/lang/CharData.java.
4460 * Makefile.in: Regenerated.
4462 2004-07-09 Michael Koch <konqueror@gmx.de>
4464 * java/security/AccessControlContext.java,
4465 java/security/SecureClassLoader.java:
4468 2004-07-09 Michael Koch <konqueror@gmx.de>
4470 * java/io/ObjectInputStream.java (readFields): Use long datatype
4471 when shifting byte values more then 24 bits left.
4473 2004-07-09 Michael Koch <konqueror@gmx.de>
4475 * java/util/zip/DeflaterOutputStream.java,
4476 java/util/zip/GZIPInputStream.java,
4477 java/util/zip/GZIPOutputStream.java,
4478 java/util/zip/InflaterInputStream.java:
4479 Reformatted. Added javadocs. Reordered all stuff.
4480 Renamed variables to be more clear.
4482 2004-07-09 Michael Koch <konqueror@gmx.de>
4484 * javax/imageio/IIOException.java,
4485 javax/imageio/event/IIOReadProgressListener.java,
4486 javax/imageio/event/IIOReadUpdateListener.java,
4487 javax/imageio/event/IIOReadWarningListener.java,
4488 javax/imageio/event/IIOWriteProgressListener.java,
4489 javax/imageio/event/IIOWriteWarningListener.java:
4491 * Makefile.am: Added new files.
4492 * Makefile.in: Regenerated.
4494 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
4496 * java/text/RuleBasedCollator.java
4497 (mergeRules): Use ArrayList instead of Vector.
4498 (subParseString): likewise.
4499 (parseString): likewise.
4500 (buildCollationVector): likewise.
4501 (getCollationKey): likewise.
4503 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4505 * java/text/DateFormat.java (parse):
4506 Improved javadoc. Improved exception message.
4508 2004-07-09 Mark Wielaard <mark@klomp.org>
4510 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
4511 interrupted() method to clear interupt flag of our Thread.
4513 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4515 * java/nio/Buffer.java,
4516 java/nio/ByteBuffer.java,
4517 java/nio/ByteBufferHelper.java,
4518 java/nio/ByteBufferImpl.java,
4519 java/nio/CharBuffer.java,
4520 java/nio/CharBufferImpl.java,
4521 java/nio/CharViewBufferImpl.java,
4522 java/nio/DirectByteBufferImpl.java,
4523 java/nio/DoubleBuffer.java,
4524 java/nio/DoubleBufferImpl.java,
4525 java/nio/DoubleViewBufferImpl.java,
4526 java/nio/FloatBuffer.java,
4527 java/nio/FloatBufferImpl.java,
4528 java/nio/FloatViewBufferImpl.java,
4529 java/nio/IntBuffer.java,
4530 java/nio/IntBufferImpl.java,
4531 java/nio/IntViewBufferImpl.java,
4532 java/nio/LongBuffer.java,
4533 java/nio/LongBufferImpl.java,
4534 java/nio/LongViewBufferImpl.java,
4535 java/nio/MappedByteBufferImpl.java,
4536 java/nio/ShortBuffer.java,
4537 java/nio/ShortBufferImpl.java,
4538 java/nio/ShortViewBufferImpl.java:
4539 Fixed javadocs all over. Improved input error
4542 * java/nio/Buffer.java
4543 (checkForUnderflow, checkForOverflow, checkIndex,
4544 checkIfReadOnly, checkArraySize): New helper methods
4547 * java/nio/ByteBufferHelper.java
4548 (checkRemainingForRead, checkRemainingForWrite,
4549 checkAvailableForRead, checkAvailableForWrite): Removed
4550 no longer needed methods.
4552 2004-07-09 Michael Koch <konqueror@gmx.de>
4554 * gnu/regexp/CharIndexedInputStream.java:
4555 Reordered imports to match classpath.
4557 2004-07-09 Michael Koch <konqueror@gmx.de>
4559 * gnu/java/awt/EmbeddedWindow.java:
4560 Load native library for setWindowPeer method.
4562 2004-07-08 Randolph Chung <tausq@debian.org>
4564 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
4565 * configure: Regenerate.
4566 * configure.host: Set can_unwind_signal for hppa*-linux.
4567 * include/pa-signal.h: New file.
4569 2004-07-07 Per Bothner <per@bothner.com>
4571 * Makefile.am: Add rules to build libgij from just gij.cc.
4573 * include/jvm.h (namespace jcj): Declare verbose_class_flag
4574 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
4575 (initializeClass): If verbose_class_flag, print message.
4576 * gij.cc (main): Handle -verbose:class flag.
4578 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
4580 * configure.host: Enable hash synchronization on Darwin.
4581 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
4582 ';', since this is a comment on Darwin.
4583 (compare_and_swap_release): Likewise.
4585 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
4587 * java/net/URLStreamHandler.java (parseURL): Canonicalize
4588 file portion of URL in addition to spec for file: protocol.
4590 2004-07-05 Anthony Green <green@redhat.com>
4592 * java/io/File.java (toURI): Merge from Classpath.
4594 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4596 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
4597 before passing to URL constructor. Rethrow any MalformedURLException
4598 as a RuntimeException. Catch MalformedURLException specifically, not
4601 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4603 * java/util/Locale.java (readObject): Intern strings read from object
4606 2004-07-04 Michael Koch <konqueror@gmx.de>
4608 * gnu/gcj/runtime/FirstThread.java,
4609 gnu/gcj/runtime/natFirstThread.cc: Removed.
4610 * gnu/java/lang/MainThread.java,
4611 gnu/java/lang/natMainThread.cc: New files.
4612 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
4613 * Makefile.am: Added new files and removed deleted ones.
4614 * Makefile.in: Regenerated.
4616 2004-07-03 Mark Wielaard <mark@klomp.org>
4617 Anthony Green <green@redhat.com>
4619 * java/net/URL.java (getFile): Clarify return value doc.
4620 (getPath): Return null if file is empty - not empty String.
4621 (set): Convert protocol to lower case before doing anything.
4622 Only change the protocol handler if it's different.
4624 2004-07-03 Anthony Green <green@redhat.com>
4626 * java/net/URL.java (URL): Convert protocol to lower case before
4627 doing anything, so we getURLStreamHandler() with the proper value.
4629 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
4631 * java/util/Locale.java (hashcode): Made transient.
4632 (hashCode): No longer synchronized.
4633 (equals): Remove comment.
4634 (writeObject): No longer synchronized. Implement using writeObject
4635 calls instead of tweaking hashCode field. Update doc.
4636 (readObject): Implement using readObject calls.
4638 2004-06-26 Geoffrey Keating <geoffk@apple.com>
4639 Andreas Tobler <a.tobler@schweiz.ch>
4641 * configure.host (powerpc-*-darwin*): New case, define
4643 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
4644 * configure: Regenerate.
4645 * include/darwin-signal.h: New.
4647 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
4649 * java/beans/Statement.java (doExecute): Fix formatting.
4651 2004-06-29 Per Bothner <per@bothner.com>
4653 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
4654 etc etc): Remove needless parenthesis, which causes __stdcall__
4655 attribute on MinGW to get ignored.
4657 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
4659 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
4661 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
4663 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
4665 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
4667 * java/beans/Expression.java: New file.
4668 * java/beans/Statement.java: New file.
4669 * Makefile.am: Added new files.
4670 * Makefile.in: Re-generate.
4672 2004-06-27 Mark Wielaard <mark@klomp.org>
4674 * java/io/FilePermission.java (usingPerms): Removed.
4675 (actionsString): Made final.
4676 (cachePerms): Renamed to checkPerms.
4677 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
4679 (FilePermission): Check arguments, call checkPerms().
4680 (equals): Remove cachePerms() call.
4681 (implies): Likewise.
4683 2004-06-27 Mark Wielaard <mark@klomp.org>
4685 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
4687 (sendRequest): Use new field in user-agent http agent.
4689 2004-06-27 Mark Wielaard <mark@klomp.org>
4691 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
4692 when argument is null.
4694 2004-06-26 Mark Wielaard <mark@klomp.org>
4696 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
4697 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
4699 (cancel_clicked): Likewise.
4701 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
4703 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
4704 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
4705 can not calculate the right value.
4706 (dpi_changed_cb): Likewise. Mark *pspec as unused.
4708 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
4710 * testsuite/libjava.jacks/jacks.xfail: Remove
4711 15.9.1-qualified-concrete-20.
4713 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4715 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
4716 encoding name to iconv.
4717 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4719 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4722 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
4723 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
4724 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4726 2004-06-21 Andrew Haley <aph@redhat.com>
4728 * java/io/ObjectOutputStream.java: Add DEBUG statements
4730 (dumpElementln): New method.
4732 * java/io/ObjectInputStream.java
4733 (currentClassLoader): Make native.
4734 (callersClassLoader): New field.
4736 (readObject): ENDBLOCKDATA is generated if the class has a write
4737 method, not if it has a read method.
4738 (readObject): Save and restore this.currentObject and
4739 this.currentObjectStreamClass around calls to callReadMethod().
4740 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
4743 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
4745 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
4748 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4750 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
4751 if desired, before the default class loader is initialised.
4752 Call INIT_SEGV only if HANDLE_SEGV is defined.
4754 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4756 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
4757 directory only if it actually exists.
4759 2004-06-18 Graydon Hoare <graydon@redhat.com>
4761 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4762 Fix up non-ansi comments.
4764 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4766 * javax/swing/text/AbstractDocument.java: Adding missing import
4767 for javax.swing.event.EventListenerList.
4768 * javax/swing/text/DefaultCaret.java: Likewise.
4770 2004-06-17 Michael Koch <konqueror@gmx.de>
4772 * javax/swing/JToolBar.java
4774 (JToolBar): Use Component.setName(String) instead of doing it all
4776 * javax/swing/Timer.java
4777 (queueEvent): Added missing modifier.
4779 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
4781 * Makefile.am: Added new file.
4782 * Makefile.in: Re-generate.
4783 * javax/swing/JMenu.java:
4784 (insertSeparator): Implemented.
4785 * javax/swing/JPopupMenu.java:
4786 (JPopupMenu.Separator): Implemented.
4787 * javax/swing/MenuSelectionManager.java:
4788 (processMouseEvent): Use java.awt.Component
4789 for event source instead of javax.swing.JComponent.
4790 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
4791 New File. Implemented.
4793 2004-06-16 David Jee <djee@redhat.com>
4795 * java/awt/GridBagLayout.java
4796 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
4797 Make sure pos_x and pos_y are never negative.
4799 2004-04-16 Andrew Overholt <overholt@redhat.com>
4801 * Makefile.am: Add new file.
4802 * Makefile.in: Re-generate.
4803 * javax/swing/JToolBar.java
4804 Partially implemented.
4805 * javax/swing/plaf/basic/BasicToolBarUI.java
4806 New file. Partially implemented.
4808 2004-06-16 Graydon Hoare <graydon@redhat.com>
4810 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
4811 (setComposite): Accept AlphaComposite arguments.
4812 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
4813 (createBufferedImage): Add new overloads.
4814 * gnu/java/awt/peer/gtk/GtkToolkit.java
4815 (createImage): Use GdkPixbufDecoder.createBufferedImage
4816 when useGraphics2D() is true.
4817 (getImage): Delegate to createImage.
4818 * javax/swing/JList.java
4820 (getFirstVisibleIndex):
4821 (getLastVisibleIndex):
4823 (ensureIndexIsVisible): New methods.
4824 * javax/swing/Timer.java: Reimplement.
4826 2004-06-16 Michael Koch <konqueror@gmx.de>
4828 * javax/swing/text/AbstractDocument.java
4829 (AbstracElement): Made public, implements java.io.Serializable.
4830 (AttributeContext): Made public.
4831 (BranchElement): Likewise.
4832 (Content): Likewise.
4833 (DefaultDocumentEvent): Made public, extends
4834 javax.swing.undo.CompoundEdit.
4835 (ElementEdit): Made public, extends
4836 javax.swing.undo.AbstractUndoableEdit.
4837 (LeafElement): Made public.
4838 (LeafElement.LeafElement): Made public.
4840 2004-06-16 Michael Koch <konqueror@gmx.de>
4842 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
4843 methods (that were obviously never be intended to get included hi this
4844 class. Added some methods too.
4846 2004-06-16 Michael Koch <konqueror@gmx.de>
4848 * javax/swing/text/PlainDocument.java
4849 (serialVersionUID): New constant.
4850 (lineLimitAttribute): Likewise.
4851 (tabSizeAttribute): Likewise.
4852 (tabSize): New field.
4853 (PlainDocument): Made public.
4854 (PlainDocument): New constructor.
4856 2004-06-16 Michael Koch <konqueror@gmx.de>
4858 * javax/swing/text/AbstractDocument.java
4859 (insertString): Throws BadLocationException.
4860 * javax/swing/text/Document.java
4861 (insertString): Likewise.
4862 * javax/swing/text/JTextComponent.java:
4863 Javadocs and comments cleaned up.
4865 2004-06-16 Michael Koch <konqueror@gmx.de>
4867 * javax/swing/event/UndoableEditListener.java: Reformatted.
4868 * javax/swing/text/AbstractDocument.java
4869 (AbstractDocument): Implements java.io.Serializable.
4870 (doc_list): Removed.
4871 (undo_list): Removed.
4872 (AbstractElement.serialVerionUID): New field.
4873 (BranchElement.serialVerionUID): Likewise.
4874 (DefaultDocumentEvent.serialVerionUID): Likewise.
4875 (ElementEdit.serialVerionUID): Likewise.
4876 (LeafElement.serialVerionUID): Likewise.
4877 (serialVerionUID): Likewise.
4878 (BAD_LOCATION): New constant.
4879 (BidiElementName): Likewise.
4880 (ContentElementName): Likewise.
4881 (ParagraphElementName): Likewise.
4882 (SectionElementName): Likewise.
4883 (ElementNameAttribute): Likewise.
4884 (AbstractDocument): Made protected.
4885 (AbstractDocument): New construtor.
4886 (listenerList): New field.
4887 (fireChangedUpdate): Implemented.
4888 (fireInsertUpdate): Likewise.
4889 (fireRemoveUpdate): Likewise.
4890 (fireUndoableEditUpdate): Likewise.
4891 (getListeners): Likewise.
4892 (addDocumentListener): Likewise.
4893 (removeDocumentListener): Likewise.
4894 (addUndoableEditListener): Likewise.
4895 (removeUndoableEditListener): Likewise.
4896 (getDocumentListeners): New method.
4897 (getUndoableEditListeners): Likewise.
4898 (getAsynchronousLoadPriority): Made public.
4899 (getBidiRootElement): Likewise.
4900 (setAsynchronousLoadPriority): Likewise.
4901 (setDocumentProperties): Likewise.
4902 * javax/swing/text/BadLocationException.java
4903 (serialVerionUID): New field.
4904 * javax/swing/text/DefaultCaret.java
4905 (changeEvent): New field.
4906 (listenerList): Likewise.
4908 (addChangeListener): Reimplemented.
4909 (removeChangeListener): Likewise.
4910 (getListeners): New method.
4911 (getChangeListeners): Likwise.
4912 (getComponent): Likewise.
4913 * javax/swing/text/GapContent.java
4914 (GapContent): Implements java.io.Serializable.
4915 (serialVerionUID): New field.
4917 2004-06-16 Michael Koch <konqueror@gmx.de>
4919 * javax/swing/JTree.java
4920 (treeModel): New field.
4921 (JTree): New constructors, one existing one made public.
4922 (createTreeModel): New method.
4923 (addTreeExpansionListener): Likewise.
4924 (removeTreeExpansionListener): Likewise.
4925 (getTreeExpansionListeners): Likewise.
4926 (fireTreeCollapsed): Likewise.
4927 (fireTreeExpanded): Likewise.
4928 (addTreeSelectionListener): Likewise.
4929 (removeTreeSelectionListener): Likewise.
4930 (getTreeSelectionListeners): Likewise.
4931 (fireValueChanged): Likewise.
4932 (addTreeWillExpandListener): Likewise.
4933 (removeTreeWillExpandListener): Likewise.
4934 (getTreeWillExpandListeners): Likewise.
4935 (fireTreeWillCollapse): Likewise.
4936 (fireTreeWillExpand): Likewise.
4938 2004-06-16 Michael Koch <konqueror@gmx.de>
4940 * javax/swing/JTree.java: Reformatted.
4942 2004-06-16 Michael Koch <konqueror@gmx.de>
4944 * javax/swing/JTextArea.java: New file.
4945 * javax/swing/JTextField.java
4947 (notifyAction): New constant.
4948 (columns): New field.
4949 (JTextField): New constructors.
4950 (createDefaultModel): New method.
4951 (addActionListener): Reimplmemented.
4952 (removeActionListener): Reimplemented.
4953 (getActionListeners): New method.
4954 (fireActionPerformed): New method.
4955 (getColumns): New method.
4956 (setColumne): New method.
4957 * javax/swing/text/JTextComponent.java
4958 (AccessibleJTextComponent.serialVersionUID): New field.
4959 (serialVersionUID): Likewise.
4960 (DEFAULT_KEYMAP): Likewise.
4961 (FOCUS_ACCELERATOR_KEY): Likewise.
4962 (doc): Made private.
4963 (icon_gap): Likewise.
4966 (JTextComponent): Some constructors removed.
4967 (getScrollableTracksViewportHeight): New method.
4968 (getScrollableTracksViewportWidth): Likewise.
4969 * Makefile.am: Added javax/swing/JTextArea.java.
4970 * Makefile.in: Regenerated.
4972 2004-06-15 Graydon Hoare <graydon@redhat.com>
4974 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
4975 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
4976 * javax/swing/JViewport.java
4977 (getExtentSize): Return size rather than preferred size.
4978 (toViewCoordinates): New methods.
4979 (getViewSize): Return size rather than preferred size.
4980 (setViewSize): Note view size as set.
4981 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
4982 * javax/swing/plaf/basic/BasicScrollBarUI.java
4983 (getPreferredSize): Don't redo layout.
4984 * javax/swing/plaf/basic/BasicViewportUI.java
4985 (paint): Translate image properly and eat exceptions.
4987 2004-06-15 Kim Ho <kho@redhat.com>
4989 * javax/swing/JTabbedPane.java
4990 (setComponent): Remove old component and
4992 (setSelectedIndex): Don't operate on the
4993 components if they're null. Don't set index
4994 on the model if the index is the same.
4995 (insertTab): Don't add or hide the component
4996 if it's null. Repaint the container.
4997 * javax/swing/plaf/basic/BasicLookAndFeel.java
4998 Change colors for TabbedPane.
4999 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
5000 (mousePressed): Re-layout and paint the component.
5001 (layoutContainer): Don't set location on the view.
5002 (ScrollingViewport::paint): Remove.
5004 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
5006 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5007 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
5009 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5010 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
5011 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
5013 (drawLine): Call gdk_flush before leaving GDK critical region.
5014 (fillRect): Likewise.
5015 (drawRect): Likewise.
5016 (copyArea): Likewise.
5017 (copyPixmap): Likewise.
5018 (clearRect): Likewise.
5019 (drawArc): Likewise.
5020 (drawPolyline): Likewise.
5021 (drawPolygon): Likewise.
5022 (fillPolygon): Likewise.
5023 (fillArc): Likewise.
5024 (drawOval): Likewise.
5025 (fillOval): Likewise.
5027 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
5029 (GdkFontMetrics): Add style argument to initState call.
5030 (stringWidth(String,int,int,String)): Add style parameter.
5031 (stringWidth(String)): Add style argument to stringWidth call.
5032 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
5033 (initState): Set pango font style and weight based on AWT style
5034 parameter. Pass default GTK language to
5035 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
5036 simply dividing by PANGO_SCALE.
5037 (stringWidth): Set pango font style and weight based on AWT style
5040 * java/awt/Button.java (next_button_number): New field.
5041 (paramString): Change output.
5042 (generateName): New method.
5043 (getUniqueLong): New method.
5045 2004-06-14 Kim Ho <kho@redhat.com>
5047 * javax/swing/JTabbedPane.java:
5048 (setComponentAt): Set the component, not
5050 * javax/swing/plaf/basic/BasicDesktopIconUI.java
5051 (actionPerformed): Let deiconize catch exception.
5053 2004-06-14 Olga Rodimina <rodimina@redhat.com>
5055 * javax/swing/JPopupMenu.java:
5056 (setVisible): Corrected location of a
5057 heavyweight popup menu.
5059 2004-06-14 Olga Rodimina <rodimina@redhat.com>
5061 * javax/swing/MenuSelectionManager.java:
5062 Ran through jalopy to fix formatting style.
5064 2004-06-14 Olga Rodimina <rodimina@redhat.com>
5066 * javax/swing/JLayeredPane.java:
5067 (remove): Revalidate and repaint layered pane after
5068 the component was removed.
5069 javax/swing/JMenu.java:
5070 (setVisible): Display popup menu at the user location,
5071 if one was set by the user.
5072 (setMenuLocation): Reimplemented. Fixed javadoc.
5073 * javax/swing/JMenuBar.java: Added javadoc.
5074 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
5075 (MODEL_CHANGED_PROPERTY): New Property.
5076 (isSelected): Implemented.
5077 (setBorderPainted): Fire PropertyChangeEvent
5078 if paintBorder property changes.
5079 (setSelected): Implemented.
5080 (setSelectionModel): Implemented.
5081 * javax/swing/JPopupMenu.java: Added Javadoc
5082 (pack): Implemented.
5083 (setVisible): Reimplemented.
5084 (show): Fixed location.
5085 (JPopupMenu.LigthWeightPopup): Reimplemented to use
5086 Container instead of JPanel.
5087 * javax/swing/MenuSelectionManager.java: Added Javadocs.
5088 (clearSelectedPath): Reimplemented to clear selectedPath
5090 (processMouseEvent): Reimplemented.
5091 (setSelectedPath): Fire stateChange event indicating that
5092 selected menu path has changed.
5093 (getPath): Change to use ArrayList instead of Vector.
5094 * javax/swing/plaf/basic/BasicMenuBarUI.java:
5095 (installUI): call installKeyboardActions().
5096 (uninstallUI): call uninstallKeyboardActions().
5098 2004-06-13 Michael Koch <konqueror@gmx.de>
5100 * javax/swing/text/DefaultCaret.java,
5101 javax/swing/text/BadLocationException.java:
5104 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
5106 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
5107 DEFAULT_COLS): New variables.
5108 (create): Don't allow 0 rows or 0 columns. Instead, set the
5109 values to DEFAULT_ROWS or DEFAULT_COLS.
5110 (getMinimumSize): Likewise.
5111 (getPreferredSize): Likewise.
5112 (minimumSize): Likewise.
5113 (preferredSize): Likewise.
5114 (create): Set peer's editable state.
5115 * java/awt/TextArea.java (TextArea()): Set rows and columns to
5116 zero. Update javadocs.
5117 (TextArea(String)): Likewise.
5118 (TextArea(int,int)): Fix javadocs.
5119 (TextArea(String,int,int,int)): Only throw exception if one of
5120 rows or columns is zero. Fix javadocs.
5122 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
5124 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
5125 addition to Components.
5127 * java/awt/MenuItem.java (dispatchEventImpl): If the event
5128 wasn't consumed by normal processing, send it to the parent
5131 * gnu/java/awt/peer/gtk/GtkImagePainter.java
5132 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
5135 2004-06-11 David Jee <djee@redhat.com>
5137 * java/awt/MediaTracker.java
5138 (addImage(Image,int)): Call imageUpdate() to udpate image status.
5139 (addImage(Image,int,int,int)): Likewise.
5141 2004-06-11 Michael Koch <konqueror@gmx.de>
5143 * javax/swing/text/AbstractDocument.java,
5144 javax/swing/text/Document.java,
5145 javax/swing/text/GapContent.java,
5146 javax/swing/text/JTextComponent.java,
5147 javax/swing/text/PlainDocument.java:
5150 2004-06-11 Michael Koch <konqueror@gmx.de>
5152 * javax/swing/JRootPane.java
5153 (AccessibleJRootPane.serialVersionUID): New field.
5154 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
5155 (AccessibleJRootPane.getAccessibleRole): New method.
5156 (RootLayout): Implements Serializable.
5157 (RootLayout.serialVersionUID): New field.
5158 (RootLayout.RootLayout): New constructor.
5159 (setJMenuBar): Made public.
5160 (getJMenuBar): Likewise.
5161 (JRootPane): Likewise.
5162 (createContentPane): Likewise.
5163 (createGlassPane): Likewise.
5164 (createLayeredPane): Likewise.
5166 2004-06-11 Michael Koch <konqueror@gmx.de>
5168 * javax/swing/SwingUtilities.java
5169 (isLeftMouseButton): Fixed javadoc.
5170 (isMiddleMouseButton): Likewise.
5171 (isRightMouseButton): Likewise.
5173 2004-06-11 Michael Koch <konqueror@gmx.de>
5175 * javax/swing/JScrollPane.java
5176 (serialVersionUID): New field.
5177 (columnHeader): Made protected.
5178 (rowHeader): Likewise.
5179 (lowerLeft): Likewise.
5180 (lowerRight): Likewise.
5181 (upperLeft): Likewise.
5182 (upperRight): Likewise.
5183 (horizontalScrollBar): Likewise.
5184 (horizontalScrollBarPolicy): Likewise.
5185 (verticalScrollBar): Likewise.
5186 (verticalScrollBarPolicy): Likewise.
5187 (viewport): Likewise.
5189 2004-06-11 Michael Koch <konqueror@gmx.de>
5191 * javax/swing/LookAndFeel.java: Fixed javadocs.
5193 2004-06-11 Michael Koch <konqueror@gmx.de>
5195 * javax/swing/JEditorPane.java: Fixed javadocs.
5196 (JEditorPane): Removed redundant call to to this().
5197 (fireHyperlinkUpdate): Implemented.
5199 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5201 * javax/swing/JMenu.java: Fixed file name
5202 in the file comment.
5204 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5206 * javax/swing/JMenu.java: Added javadoc.
5207 (JMenu): Added MenuChangeListener to listen to
5208 ChangeEvents occuring in menu's model.
5209 (insert): Throw IllegalArgumentException if
5210 index is less than 0
5211 (setSelected): Reimplement.
5212 (setPopupMenuVisible): Call menu's model isEnabled()
5213 (setDelay): Throw IllegalArgumentException if
5214 given amount of delay is less than 0.
5215 (createActionComponent): Implemented.
5216 (createActionChangeListener): Implemented.
5217 (addSeparator): Implemented.
5218 (getItem): Throw IllegalArgumentException if index is
5220 (getItemCount): Implemented.
5221 (fireMenuSelected): Changed to use menuEvent.
5222 (fireMenuDeselected): Likewise.
5223 (fireMenuCanceled): Likewise.
5224 (setAccelerator): Changed to throw an error if this
5226 (doClick): Implemented.
5227 (JMenu.ActionChangedListener): New inner class to handle
5228 PropertyChangeEvents occuring in the actions associated with menu.
5229 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
5230 (BasicMenuUI): Added PropertyChangeListener to the menu.
5231 (createChangeListener): Implemented.
5232 (createMenuDragMouseListener): Likewise.
5233 (createMenuKeyListener): Likewise.
5234 (createPropertyChangeListener): Likewise.
5235 (uninstallListeners): Likewise.
5236 (BasicMenuUI.MouseInputHandler): Reimplemented.
5237 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
5238 (BasicMenuUI.ChangeHandler): Likewise.
5239 (BasicMenuUI.MenuDragMouseHandler): Likewise.
5240 (BasicMenuUI.MenuKeyHandler): Likewise.
5242 2004-06-10 David Jee <djee@redhat.com>
5244 * java/awt/MediaTracker.java
5245 (imageUpdate): Only do notifyAll() if the image is complete.
5247 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5249 * javax/swing/JApplet.java:
5250 (getJMenuBar): Made public.
5251 (setJMenuBar): Likewise.
5252 * javax/swing/JFrame.java:
5253 (getJMenuBar): Made public.
5254 (setJMenuBar): Likewise.
5255 * javax/swing/JWindow.java:
5256 (getJMenuBar): Removed.
5257 (setJMenuBar): Removed.
5259 2004-06-10 Michael Koch <konqueror@gmx.de>
5261 * javax/swing/JEditorPane.java
5262 (createEditorKitForContentType): Fixed visibility.
5263 (fireHyperlinkUpdate): Likewise.
5264 (getContentType): Likewise.
5265 (getEditorKit): Likewise.
5266 (getEditorKitForContentType): Likewise.
5267 (getPage): Likewise.
5269 (registerEditorKitForContentTyoe): Likewise.
5270 (replaceSelection): Likewise.
5271 (setContentType): Likewise.
5272 (setEditorKit): Likewise.
5273 (setPage): Likewise.
5275 2004-06-10 Michael Koch <konqueror@gmx.de>
5277 * javax/swing/Timer.java
5278 (Timer): New constructor.
5279 * javax/swing/plaf/basic/BasicProgressBarUI.java
5280 (animationTimer): Don't initialize at construction.
5281 (startAnimationTimer): Added since tag.
5282 (stopAnimationTimer): Likewise.
5283 (installUI): Use new Timer constructor.
5284 * javax/swing/plaf/basic/BasicScrollBarUI.java
5285 (installUI): Likewise.
5286 * javax/swing/plaf/basic/BasicSliderUI.java
5287 (installUI): Likewise.
5289 2004-06-10 Michael Koch <konqueror@gmx.de>
5291 * javax/swing/ButtonGroup.java
5292 (serialVersionUID): Made private.
5293 (buttons): Renamed from v, added javadoc.
5294 (sel): Added javadoc.
5295 (ButtonGroup): Likewise.
5298 (getElements): Likewise.
5299 (getSelection): Likewise.
5300 (setSelected): Likewise.
5301 (isSelected): Likewise.
5302 (getButtonCount): Likewise.
5304 2004-06-10 Michael Koch <konqueror@gmx.de>
5306 * javax/swing/ButtonGroup.java,
5307 javax/swing/ImageIcon.java,
5308 javax/swing/JEditorPane.java,
5309 javax/swing/JRootPane.java,
5310 javax/swing/JTextField.java,
5311 javax/swing/LookAndFeel.java,
5312 javax/swing/plaf/basic/BasicTextUI.java:
5315 2004-06-10 Michael Koch <konqueror@gmx.de>
5317 * javax/swing/text/Style.java: Added javadocs.
5319 2004-06-10 Michael Koch <konqueror@gmx.de>
5321 * javax/swing/JComponent.java
5322 (fireVetoableChange): Removed redundant cast.
5323 * javax/swing/JLabel.java
5324 (getDisabledIcon): Save icon for next call.
5326 2004-06-10 Michael Koch <konqueror@gmx.de>
5328 * javax/swing/KeyStroke.java
5329 (getKeyStroke(char,boolean)): Marked deprecated.
5331 2004-06-10 Michael Koch <konqueror@gmx.de>
5333 * javax/swing/DefaultCellEditor.java,
5334 javax/swing/GrayFilter.java,
5335 javax/swing/event/DocumentEvent.java,
5336 javax/swing/text/JTextComponent.java,
5337 javax/swing/text/MutableAttributeSet.java:
5340 2004-06-10 Michael Koch <konqueror@gmx.de>
5342 * javax/swing/plaf/BorderUIResource.java:
5343 Added serialVersionUID all over.
5345 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
5347 * javax/swing/undo/UndoManager.java: Re-written from scratch.
5349 2004-06-10 Michael Koch <konqueror@gmx.de>
5351 * javax/swing/table/DefaultTableCellRenderer.java
5352 (noFocusBorder): Initialize directly.
5354 2004-06-10 Michael Koch <konqueror@gmx.de>
5356 * javax/swing/plaf/basic/BasicArrowButton.java
5357 (setDirection): Use method argument.
5359 2004-06-10 Michael Koch <konqueror@gmx.de>
5361 * javax/swing/plaf/BorderUIResource.java,
5362 javax/swing/plaf/ComponentUI.java,
5363 javax/swing/undo/CompoundEdit.java,
5364 javax/swing/undo/StateEdit.java:
5365 Fixed javadocs all over.
5367 2004-06-10 Michael Koch <konqueror@gmx.de>
5369 * javax/swing/DefaultButtonModel.java
5370 (ARMED): Made public final, fixed value.
5371 (ENABLED): Likewise.
5372 (PRESSED): Likewise.
5373 (ROLLOVER): Likewise.
5374 (SELECTED): Likewise.
5375 (stateMask): Initialize directly.
5376 (listenerList): Likewise.
5377 (mnemonic): Likewise.
5378 (fireStateChanged): Removed argument, use changeEvent as event.
5379 All places where this method is called are fixed too.
5380 (getActionCommant): Fixed javadoc.
5381 (setGroup): Fixed javadoc.
5382 (getGroup): New method.
5384 2004-06-09 Olga Rodimina <rodimina@redhat.com>
5386 * javax/swing/AbstractButton.java
5387 (AbstractButton): Use init() to initialize the button.
5388 (init): New Method. Initializes AbstractButton.
5389 * javax/swing/JMenuItem.java: Documented.
5390 (JMenuItem): Reimplemented.
5391 (init): Implemented.
5392 (setEnabled): Changed to call super.setEnabled()
5393 (processMouseEvent): Reimplemented.
5394 (fireMenuKeyPressed): Implemented.
5395 (fireMenuKeyReleased): Implemented.
5396 (fireMenuKeyTyped): Implemented.
5397 (menuSelectionChanged): disarm the model if the menu item was
5399 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
5400 (getPath): Change to use ArrayList instead of Vector.
5401 (getPreferredSize): Renamed variable.
5402 (paintMenuItem): Paint margin area of menu item.
5403 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
5404 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
5405 menu item's bounds before clearing the selection.
5407 2004-06-09 David Jee <djee@redhat.com>
5409 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
5410 (GtkTextComponentPeer): Set caret position to 0.
5411 * java/awt/TextComponent.java
5412 (setText): Set caret position to 0.
5413 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5414 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
5415 Handle GtkScrolledWindow separately. Fix signal handler blocking.
5416 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
5418 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5419 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
5422 2004-06-09 Kim Ho <kho@redhat.com>
5424 * Makefile.am: New files
5425 * Makefile.in: Regenerated
5426 * java/awt/Container.java
5427 (getComponentAt): Removed.
5428 * javax/swing/AbstractAction.java
5429 (ENABLED_PROPERTY): New property.
5430 (putValue): Fire PropertyChangeEvents.
5431 (setEnabled): ditto.
5432 (firePropertyChange): Javadoc and implement
5434 * javax/swing/AbstractButton.java
5435 (setAction): Don't create PropertyChangeListener
5436 if new Action is null.
5437 (setIcon): Don't set icon till after comparing
5439 (configurePropertiesFromAction): Check mnemonic
5440 key before calling intValue().
5441 (createActionPropertyChangeListener): Check
5442 properties rather than bulk change.
5443 * javax/swing/DefaultDesktopManager.java:
5445 * javax/swing/DesktopManager.java:
5447 * javax/swing/JComponent.java
5448 (fireVetoableChange): Implement.
5449 (paintImmediately): Use root component.
5450 * javax/swing/JDesktopPane.java: Implement
5451 * javax/swing/JInternalFrame.java: Implement
5452 * javax/swing/JLabel.java
5453 (getDisabledIcon): Return grayscaled icon if
5454 no disabled icon specified.
5455 * javax/swing/JMenuBar.java
5456 (getComponentAtIndex): Use getComponent
5457 * javax/swing/JOptionPane.java
5458 (getDesktopPaneForComponent): Use SwingUtilities'
5460 (getFrameForComponent): ditto.
5461 * javax/swing/JSplitPane.java
5462 (remove): Use getComponent.
5463 * javax/swing/SwingUtilities.java
5464 (convertPoint): Implement.
5465 * javax/swing/plaf/basic/BasicButtonUI.java
5466 (paintButtonNormal): Check opaqueness before
5468 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
5470 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
5472 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
5474 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
5476 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5477 Change InternalFrame and Desktop colors.
5479 2004-06-09 David Jee <djee@redhat.com>
5481 * java/awt/Container.java
5482 (remove): Do not set component to invisible.
5484 2004-06-09 Michael Koch <konqueror@gmx.de>
5486 * javax/swing/tree/DefaultMutableTreeNode.java
5487 (getLeafCount): Renamed enum to e.
5489 2004-06-09 Michael Koch <konqueror@gmx.de>
5491 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5492 (positionForMouseEvent): Removed redundant semicolon.
5493 (continueDrag): Use method arguments.
5495 2004-06-09 Michael Koch <konqueror@gmx.de>
5497 * javax/swing/border/TitledBorder.java,
5498 javax/swing/filechooser/FileSystemView.java,
5499 javax/swing/plaf/basic/BasicButtonListener.java,
5500 javax/swing/plaf/basic/BasicGraphicsUtils.java,
5501 javax/swing/plaf/basic/BasicLabelUI.java,
5502 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
5503 javax/swing/plaf/basic/BasicScrollBarUI.java,
5504 javax/swing/plaf/basic/BasicScrollPaneUI.java,
5505 javax/swing/plaf/basic/BasicSliderUI.java,
5506 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
5507 javax/swing/plaf/basic/BasicToggleButtonUI.java,
5508 javax/swing/table/JTableHeader.java,
5509 javax/swing/text/AbstractDocument.java,
5510 javax/swing/text/DefaultCaret.java,
5511 javax/swing/text/StyledEditorKit.java,
5512 javax/swing/tree/DefaultTreeCellEditor.java:
5513 Reworked import statements.
5515 2004-06-08 Graydon Hoare <graydon@redhat.com>
5517 * javax/swing/Box.java: Temporarily comment out code
5518 broken due to visibility bug.
5520 2004-06-09 Michael Koch <konqueror@gmx.de>
5522 * javax/swing/ImageIcon.java
5523 (ImageIcon): Added missing constructor.
5525 2004-06-08 Michael Koch <konqueror@gmx.de>
5527 * javax/swing/JToggleButton.java
5528 (JToggleButton): New constructor.
5529 (getAccessibleContext): Moved documentation into javadoc.
5530 (getUIClassID): Likewise.
5532 2004-06-08 Michael Koch <konqueror@gmx.de>
5534 * javax/swing/AbstractButton.java
5535 (getDisabledIcon): Create disabled icon if none exists yet.
5537 2004-06-08 Michael Koch <konqueror@gmx.de>
5539 * javax/swing/plaf/basic/BasicLookAndFeel.java
5540 (initClassDefaults): Added FormattedTextFieldUI.
5541 (loadResourceBundle): Renamed enum to e.
5543 2004-06-08 Michael Koch <konqueror@gmx.de>
5545 * javax/swing/plaf/basic/BasicButtonUI.java
5546 (paintIcon): Simplified.
5547 (paintText): Paint disabled button correctly.
5549 2004-06-08 Michael Koch <konqueror@gmx.de>
5551 * javax/swing/JComponent.java
5552 (createToolTip): Use official JToolTip API.
5554 2004-06-08 Michael Koch <konqueror@gmx.de>
5556 * javax/swing/JToolTip.java
5557 (JToolTip): No arguments in API.
5558 (setTipText): New method.
5560 2004-06-08 Michael Koch <konqueror@gmx.de>
5562 * javax/swing/SwingUtilities.java
5563 (isLeftMouseButton): New method.
5564 (isMiddleMouseButton): New method.
5565 (isRightMouseButton): New method.
5567 2004-06-08 Michael Koch <konqueror@gmx.de>
5569 * javax/swing/AbstractButton.java,
5570 javax/swing/CellRendererPane.java,
5571 javax/swing/JCheckBoxMenuItem.java,
5572 javax/swing/JColorChooser.java,
5573 javax/swing/JComboBox.java,
5574 javax/swing/JComponent.java,
5575 javax/swing/JDesktopPane.java,
5576 javax/swing/JFileChooser.java,
5577 javax/swing/JMenu.java,
5578 javax/swing/JMenuItem.java,
5579 javax/swing/JOptionPane.java,
5580 javax/swing/JPasswordField.java,
5581 javax/swing/JPopupMenu.java,
5582 javax/swing/JProgressBar.java,
5583 javax/swing/JRadioButtonMenuItem.java,
5584 javax/swing/JScrollBar.java,
5585 javax/swing/JSeparator.java,
5586 javax/swing/JSlider.java,
5587 javax/swing/JSplitPane.java,
5588 javax/swing/JTabbedPane.java,
5589 javax/swing/JTextField.java,
5590 javax/swing/JToolBar.java,
5591 javax/swing/text/JTextComponent.java:
5592 Fixed all constructors of accessibility classes.
5594 2004-06-08 Michael Koch <konqueror@gmx.de>
5596 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
5599 2004-06-08 Michael Koch <konqueror@gmx.de>
5601 * javax/swing/Box.java
5602 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
5603 (AccessibleBoxFiller.serialVersionUID): New member variable.
5604 * javax/swing/DefaultButtonModel.java
5605 (stateMask): Made protected.
5606 (listenerList): Likewise.
5607 (changeEvent): Likewise.
5609 (mnemonic): Likewise.
5610 (actionCommand): Likewise.
5611 (getListeners): New method.
5612 (getActionListeners): New method.
5613 (getItemListeners): New method.
5614 (getChangeListeners): New method.
5615 (fireItemStateChanged): Simplified.
5616 (fireActionPerformed): Simplified.
5617 (fireStateChanged): Simplified.
5618 * javax/swing/JFrame.java
5619 (JFrame): Implements WindowContants.
5620 (HIDE_ON_CLOSE): Removed.
5621 (EXIT_ON_CLOSE): Removed.
5622 (DISPOSE_ON_CLOSE): Removed.
5623 (DO_NOTHING_ON_CLOSE): Removed.
5624 (processWindowEvent): Exit with code 0.
5625 (setDefaultCloseOperation): Do security check before setting value.
5626 * javax/swing/JOptionPane.java
5627 (message): Initialize only in constructor.
5628 * javax/swing/JToolTip.java: Removed unused imports.
5629 * javax/swing/JViewport.java
5630 (serialVersionUID): New member variable.
5631 (SIMPLE_SCROLL_MODE): Made final, fixed value.
5632 (BLIT_SCROLL_MODE): Likewise.
5633 (BACKINGSTORE_SCROLL_MODE): Likewise.
5634 (scrollUnderway): Made protected.
5635 (isViewSizeSet): Likewise.
5636 * javax/swing/ListModel.java: Fixed javadoc.
5637 * javax/swing/Popup.java: Likewise.
5638 * javax/swing/RepaintManager.java
5639 (paintDirtyRegions): Don't use internal classes of
5640 java.util.AbstractMap.
5641 * javax/swing/ScrollPaneConstants.java: Reindented.
5642 * javax/swing/ScrollPaneLayout.java
5643 (viewport): Made protected.
5644 (verticalScrollBar): Made protected, renamed to vsb.
5645 (horizontalScrollBar): Made protected, renamed to hsb.
5646 (rowHeader): Made protected, renamed to rowHead.
5647 (columnHeader): Made protected, renamed to colHead.
5648 (lowerLeft): Made protected.
5649 (lowerRight): Made protected.
5650 (upperLeft): Made protected.
5651 (upperRight): Made protected.
5652 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
5653 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
5655 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
5657 * java/awt/MediaTracker.java (imageUpdate): Only set status to
5658 LOADING if flags has SOMEBITS set.
5660 2004-06-07 Michael Koch <konqueror@gmx.de>
5662 * javax/swing/AbstractButton.java: Reorganized imports.
5663 * javax/swing/ActionMap.java: Likewise.
5664 * javax/swing/DefaultButtonModel.java: Likewise.
5665 * javax/swing/DefaultListModel.java: Likewise.
5666 * javax/swing/ImageIcon.java: Likewise.
5667 (serialVersionUID): New member variable.
5668 * javax/swing/JComboBox.java: Reorganized imports.
5669 * javax/swing/JComponent.java: Likewise.
5670 (ui): Made protected.
5671 (listenerList): Made protected.
5672 (TOOL_TIP_TEXT_KEY): New constant.
5673 (scrollRectToVisible): Removed redundant null check.
5674 * javax/swing/JFrame.java: Reorganized imports.
5675 * javax/swing/JInternalFrame.java: Reorganized imports.
5676 * javax/swing/JProgressBar.java: Likewise.
5677 * javax/swing/JRootPane.java: Likewise.
5678 * javax/swing/JScrollBar.java: Likewise.
5679 * javax/swing/JSeparator.java: Likewise.
5680 * javax/swing/JSlider.java: Likewise.
5681 * javax/swing/JTabbedPane.java: Likewise.
5682 * javax/swing/JTextField.java: Likewise.
5683 * javax/swing/JToolBar.java: Likewise.
5684 * javax/swing/JTree.java: Likewise.
5685 * javax/swing/JViewport.java: Likewise.
5686 * javax/swing/JWindow.java: Likewise.
5687 * javax/swing/KeyStroke.java: Likewise.
5688 * javax/swing/LookAndFeel.java: Likewise.
5689 * javax/swing/MenuSelectionManager.java: Likewise.
5690 * javax/swing/SwingUtilities.java: Likewise.
5691 * javax/swing/Timer.java: Likewise.
5692 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
5693 * javax/swing/JList.java
5694 (HORIZONTAL_WRAP): Made final, fixed value.
5695 (VERTICAL): Likewise.
5696 (VERTICAL_WRAP): Likewise.
5698 2004-06-07 Michael Koch <konqueror@gmx.de>
5700 * javax/swing/AbstractButton.java
5701 (serialVersionUID): New member variable.
5702 (AccessibleAbstractButton.serialVersionUID): Likewise.
5703 (AbstractButton): Made public.
5704 * javax/swing/Box.java
5705 (AccessibleBox.serialVersionUID): New member variable.
5706 (Filler.serialVersionUID): Likewise.
5707 * javax/swing/DefaultListSelectionModel.java
5708 (serialVersionUID): Likewise.
5709 * javax/swing/JApplet.java
5710 (serialVersionUID): Likewise.
5711 * javax/swing/JCheckBox.java
5712 (serialVersionUID): Likewise.
5713 * javax/swing/JCheckBoxMenuItem.java
5714 (serialVersionUID): Likewise.
5715 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
5716 * javax/swing/JColorChooser.java
5717 (serialVersionUID): Likewise.
5718 (AccessibleJColorChooser.serialVersionUID): Likewise.
5719 * javax/swing/JComponent.java
5720 (serialVersionUID): Made private.
5721 (AccessibleJComponent.serialVersionUID): New member variable.
5722 * javax/swing/JDesktopPane.java
5723 (serialVersionUID): Likewise.
5724 * javax/swing/JDialog.java
5725 (serialVersionUID): Likewise.
5726 * javax/swing/JFormattedTextField.java
5727 (serialVersionUID): Fixed value.
5728 * javax/swing/JFrame.java
5729 (serialVersionUID): New member variable.
5730 (getDefaultCloseOpertation): Made public.
5731 * javax/swing/JLayeredPane.java
5732 (serialVersionUID): Likewise.
5733 (LAYER_PROPERTY): Made final, fixed value.
5734 (JLayeredPane): Made public.
5735 * javax/swing/JMenu.java
5736 (AccessibleJMenu.serialVersionUID): New member variable.
5737 (WinListener.serialVersionUID): Likewise.
5738 * javax/swing/JMenuBar.java
5739 (serialVersionUID): Likewise.
5740 (getComponentAtIndex): Added @deprecated tag.
5741 * javax/swing/JMenuItem.java
5742 (serialVersionUID): New member variable.
5743 (AccessibleJMenuItem.serialVersionUID): Likewise.
5744 * javax/swing/JOptionPane.java
5745 (serialVersionUID): Likewise.
5746 (AccessibleJOptionPane.serialVersionUID): Likewise.
5747 * javax/swing/JPopupMenu.java
5748 (serialVersionUID): Likewise.
5749 (AccessibleJPopupMenu.serialVersionUID): Likewise.
5750 (getPopupMenuListeners): New method.
5751 (getComponentAtIndex): Added @deprecated tag.
5752 * javax/swing/JProgressBar.java
5753 (serialVersionUID): New member variable.
5754 (AccessibleJProgressBar.serialVersionUID): Likewise.
5755 * javax/swing/JRadioButton.java
5756 (serialVersionUID): Likewise.
5757 * javax/swing/JRadioButtonMenuItem.java
5758 (serialVersionUID): Likewise.
5759 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
5760 * javax/swing/JScrollBar.java
5761 (serialVersionUID): Likewise.
5762 (AccessibleJScrollBar.serialVersionUID): Likewise.
5763 * javax/swing/JSeparator.java
5764 (serialVersionUID): Likewise.
5765 (AccessibleJSeparator.serialVersionUID): Likewise.
5766 * javax/swing/JSlider.java: Fixed javadocs.
5767 (AccessibleJSlider.serialVersionUID): New member variable.
5768 * javax/swing/JSplitPane.java: Added copyright statement.
5769 (serialVersionUID): New member variable.
5770 (AccessibleJSplitPane.serialVersionUID): Likewise.
5771 * javax/swing/JTabbedPane.java
5772 (serialVersionUID): Likewise.
5773 (AccessibleJTabbedPane.serialVersionUID): Likewise.
5774 (ModelListener.serialVersionUID): Likewise.
5775 (ModelListener.ModelListener): New constructor.
5776 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
5777 (WRAP_TAB_LAYOUT): Likewise.
5778 * javax/swing/JTable.java
5779 (serialVersionUID): New member variable.
5780 * javax/swing/JToggleButton.java
5781 (serialVersionUID): Likewise.
5782 (ToggleButtonModel): Made static.
5783 (ToggleButtonModel.serialVersionUID): New member variable.
5784 * javax/swing/JToolTip.java
5785 (serialVersionUID): Likewise.
5786 * javax/swing/JTree.java
5787 (serialVersionUID): Likewise.
5788 * javax/swing/JWindow.java
5789 (serialVersionUID): Likewise.
5790 * javax/swing/Timer.java
5791 (serialVersionUID): Likewise.
5793 2004-06-06 Michael Koch <konqueror@gmx.de>
5795 * javax/swing/SwingConstants.java
5796 (NEXT): New constant.
5797 (PREVIOUS): Likewise.
5798 * javax/swing/UIManager.java
5799 (LookAndFeel): Made public.
5800 (LookAndFeel.getClassName): Likewise.
5801 (LookAndFeel.getName): Likewise.
5803 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5805 * javax/swing/JCheckBoxMenuItem.java:
5807 * javax/swing/JMenu.java: Likewise.
5808 * javax/swing/JMenuBar.java: Likewise.
5809 * javax/swing/JMenuItem.java: Likewise.
5810 * javax/swing/JPopupMenu.java: Likewise.
5811 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5812 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5813 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5814 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5815 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5816 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5817 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5819 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5821 * javax/swing/plaf/basic/BasicMenuUI.java:
5822 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5823 Call getPath() from super class instead.
5825 2004-05-31 David Jee <djee@redhat.com>
5827 * java/awt/Container.java
5828 (remove): Set component visibility to false after removing it.
5830 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
5832 * java/awt/Component.java (getForeground): Return SystemColor if
5834 (getBackground): Likewise.
5836 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5837 (item_highlighted): New function.
5838 (connectSignals): Set item_highlighted as list's select
5841 * java/applet/Applet.java: Revert changes from 2004-04-29,
5842 2004-03-15 and 2004-03-14.
5844 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5845 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
5848 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
5849 "Dialog" as the default font.
5850 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
5852 * java/awt/Component.java (getFont): Return "Dialog" font by
5854 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
5855 Multiply size argument to pango_font_description_set_size by the
5856 DPI conversion factor rather than by PANGO_SCALE.
5857 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
5858 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
5859 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
5860 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
5861 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
5862 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
5863 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
5864 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
5865 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
5866 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5867 Divide baseline y coordinate by DPI conversion factor rather
5868 than by PANGO_SCALE.
5869 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
5870 (area_prepared): Fix typo.
5871 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
5872 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
5873 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
5874 (dpi_conversion_factor): New global variable.
5875 (init_dpi_conversion_factor): New function to calculate and
5876 track DPI conversion factor.
5877 (dpi_changed_cb): New callback.
5878 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
5880 2004-05-27 David Jee <djee@redhat.com>
5882 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5883 (getGraphics): Return a new GdkGraphics instance.
5884 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5885 (getGraphics): Call super.getGraphics().
5887 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5889 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5890 (setNativeBounds): Clamp width and height values to >= 0.
5892 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5893 (find_fg_color_widget): Handle GtkOptionMenu specially.
5895 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5896 (pre_event_handler): Only post configure events to visible
5899 2004-05-26 David Jee <djee@redhat.com>
5901 * java/awt/BorderLayout.java
5902 (layoutContainer): Fix size calculations.
5904 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5906 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5907 (window_wm_protocols_filter): Remove function.
5908 (create): Remove filter that removes WM_TAKE_FOCUS client
5911 2004-06-17 Anthony Green <green@redhat.com>
5913 * java/util/zip/ZipFile.java (getInputStream): Return null if
5916 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
5917 directory contents to the class path.
5919 2004-06-15 Andrew Haley <aph@redhat.com>
5921 * java/lang/natSystem.cc (getenv0): Don't assume environment
5922 variable is Latin 1 coded.
5924 2004-06-14 Andreas Jaeger <aj@suse.de>
5926 * configure.in: Support --enable-version-specific-runtime-libs.
5927 * configure: Regenerated.
5929 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
5931 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
5932 to pass ClassLoader argument.
5933 * java/util/GregorianCalendar.java: Likewise.
5934 * java/util/Currency.java: Likewise.
5935 * java/text/BreakIterator.java: Likewise.
5936 * java/text/Collator.java: Likewise.
5937 * java/text/DateFormat.java: Likewise.
5938 * java/text/DateFormatSymbols.java: Likewise.
5939 * java/text/DecimalFormatSymbols.java: Likewise.
5940 * java/text/NumberFormat.java: Likewise.
5941 * java/awt/Window.java: Likewise.
5943 2004-06-14 Andrew Haley <aph@redhat.com>
5945 * java/lang/System.java: (getenv0): New method.
5946 (getenv): Add security check. Do the right thing.
5947 * java/lang/natSystem.cc (getenv0): New method.
5949 2004-06-12 Mark Wielaard <mark@klomp.org>
5951 * javax/swing/RepaintManager.java
5952 (paintDirtyRegions): Use entrySet(), not values().
5954 2004-06-10 Mark Wielaard <mark@klomp.org>
5956 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
5959 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
5961 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
5962 when we already know the answer.
5963 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
5964 (setStartRule,setEndRule): Don't take abs of day number.
5965 (getOffset): Clarify docs. Add argument checks.
5966 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
5967 (equals,hasSameRules,toString,readObject): Use startTimeMode and
5970 2004-06-10 Tom Tromey <tromey@redhat.com>
5972 * interpret.cc (run): Handle wide fload.
5974 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
5976 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
5978 2004-06-05 Michael Koch <konqueror@gmx.de>
5980 * javax/swing/SwingConstants.java
5981 (NEXT): New constant.
5982 (PREVIOUS): Likewise.
5984 2004-06-05 Michael Koch <konqueror@gmx.de>
5986 * javax/swing/UIManager.java
5987 (LookAndFeel): Made public.
5988 (LookAndFeel.getName): Likewise.
5989 (LookAndFeel.getClassName): Likewise.
5991 2004-06-03 Michael Koch <konqueror@gmx.de>
5993 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5994 (requestFocus): Revert last changes.
5995 (gtkRequestFocus): Removed.
5996 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5997 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5999 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
6000 Reverted last patch.
6001 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
6002 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
6003 Reverted comment change.
6005 2004-06-02 Olga Rodimina <rodimina@redhat.com>
6007 * javax/swing/JCheckBoxMenuItem.java:
6009 * javax/swing/JMenu.java: Likewise.
6010 * javax/swing/JMenuBar.java: Likewise.
6011 * javax/swing/JMenuItem.java: Likewise.
6012 * javax/swing/JPopupMenu.java: Likewise.
6013 * javax/swing/JRadioButtonMenuItem.java: Likewise.
6014 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
6015 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
6016 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
6017 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
6018 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
6019 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
6021 2004-06-01 Tom Tromey <tromey@redhat.com>
6023 * java/io/ObjectStreamField.java: Cleaned up imports.
6025 2004-06-01 Michael Koch <konqueror@gmx.de>
6027 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
6029 2004-06-01 Mark Wielaard <mark@klomp.org>
6031 * java/io/Writer.java (Writer(Object)): Fixed API doc.
6033 2004-06-01 Michael Koch <konqueror@gmx.de>
6035 * java/security/Security.java
6036 (insertProviderAt): Use equals() instead of ==.
6037 (removeProvicer): Likewise.
6038 (getProvider): Likewise.
6039 * java/security/Signature.java
6040 (sign): Don't set state to UNINITIALIZED.
6043 2004-06-01 Mark Wielaard <mark@klomp.org>
6045 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
6046 Implement by calling gtkRequestFocus.
6047 (gtkRequestFocus): New native method.
6048 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6049 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
6051 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
6053 (filter_expose_event_handler):
6055 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
6056 (menu_pos): Mark static.
6058 2004-06-01 Michael Koch <konqueror@gmx.de>
6060 * java/text/CollationElementIterator.java,
6061 java/text/CollationKey.java,
6062 java/text/RuleBasedCollator.java: New versions from GNU classpath.
6063 * testsuite/libjava.mauve/xfails: Removed all
6064 java.text.CollationElementIterator tests.
6066 2004-06-01 Michael Koch <konqueror@gmx.de>
6068 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
6070 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
6071 Java 1.5 keyword usage.
6073 2004-05-31 Olga Rodimina <rodimina@redhat.com>
6075 * javax/swing/plaf/basic/BasicMenuUI.java:
6076 (MouseEntered): Do not call getPath() from MenuSelectionManager.
6077 Call getPath() from super class instead.
6079 2004-05-31 Michael Koch <konqueror@gmx.de>
6081 * java/io/SequenceInputStream.java:
6082 Rename enum to e because enum is a keyword in Java 1.5.
6084 2004-05-31 Michael Koch <konqueror@gmx.de>
6086 * gnu/java/rmi/rmic/CompilerProcess.java:
6087 Fixed javadoc to by XHTML compliant.
6089 2004-05-30 Mark Wielaard <mark@klomp.org>
6091 * java/awt/Toolkit.java (loadSystemColors): Implement.
6093 2004-05-30 Michael Koch <konqueror@gmx.de>
6095 * java/lang/System.java: Reordered imports.
6097 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
6099 * java/text/DecimalFormat.java
6100 (parse): Fixed parsing of decimal strings. Number of maximum
6101 digits to be read should now work.
6102 * java/text/SimpleDateFormat.java
6103 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
6104 formatter. This fixes DateFormatTest.
6106 2004-05-30 Michael Koch <konqueror@gmx.de>
6108 * java/nio/Buffer.java
6109 (limit): Fixed off by one error.
6110 * java/nio/CharBuffer.java
6111 (wrap): Fixed arguments, added javadocs.
6113 2004-05-30 Michael Koch <konqueror@gmx.de>
6115 * gnu/java/beans/BeanInfoEmbryo.java,
6116 java/awt/im/InputContext.java,
6117 javax/swing/tree/DefaultMutableTreeNode.java:
6118 Rename enum to e because enum is a keyword in Java 1.5.
6120 2004-05-30 Michael Koch <konqueror@gmx.de>
6122 * gnu/java/math/MPN.java,
6123 java/awt/geom/Arc2D.java:
6124 Fixed javadocs all over.
6126 2004-05-30 Michael Koch <konqueror@gmx.de>
6128 * java/awt/DefaultKeyboardFocusManager.java
6129 (dispatchEvent): Call method to get key event dispatchers.
6130 (dispatchKeyEvent): Call method to get key event post processors.
6131 * javax/swing/JComponent.java
6132 (listenerList): Made protected.
6133 * javax/swing/JOptionPane.java
6134 (message): Don't initialize.
6135 (JOptionPane): Set message text.
6136 * javax/swing/JPopupMenu.java
6137 (show): Fixed typo in argument name.
6138 * javax/swing/RepaintManager.java
6139 (paintDirtyRegions): Use public API of java.util.Map.
6140 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
6141 (positionForMouseEvent): Removed redundant ';'.
6142 (continueDrag): Use method arguments.
6144 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
6146 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
6149 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
6151 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
6153 * gnu/gcj/RawDataManaged.java: New file.
6154 * java/lang/Thread.java (data): Declare as RawDataManaged.
6155 * java/lang/natThread.cc (init_native): Cast natThread data to
6156 RawDataManaged, not jobject.
6157 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
6158 * Makefile.in: Rebuilt.
6160 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
6162 * java/util/SimpleTimeZone.java: Reverting my last change until I
6163 can fix it properly.
6165 2004-05-27 Michael Koch <konqueror@gmx.de>
6167 * javax/swing/JPopupMenu.java
6168 (isVisible): Do not use visible directly.
6169 (setVisible): Likewise.
6170 * javax/swing/JWindow.java
6171 (JWindow): call accessible constructor.
6172 * javax/swing/RepaintManager.java
6173 (paintDirtyRegions): Use public methods to obtain iterator.
6175 2004-05-25 David Jee <djee@redhat.com>
6177 * java/awt/Container.java
6178 (remove): Set component's parent to null only after we removed the
6179 component from its parent's layout manager.
6181 2004-05-25 David Jee <djee@redhat.com>
6183 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6184 (GtkComponentPeer): Set bounds regardless of whether awtComponent
6186 * gnu/java/awt/peer/gtk/GtkListPeer.java
6187 (getSize): Change native method declaration.
6188 (minimumSize): Pass visible row count into getSize().
6189 (preferredSize): Likewise.
6190 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
6191 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
6192 natural size. Use visible row count to determine the final height
6195 2004-05-21 Graydon Hoare <graydon@redhat.com>
6197 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6198 (setClip): Minor correction to order of operations.
6200 * javax/swing/JScrollPane.java: Extend sketchy implementation.
6201 * javax/swing/ScrollPaneLayout.java: Likewise.
6202 * javax/swing/JViewPort.java: Likewise.
6203 * javax/swing/ViewportLayout.java: Likewise.
6205 * javax/swing/JComponent.java: Rewrite.
6206 * javax/swing/RepaintManager.java: Likewise.
6208 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
6209 * javax/swing/JList.java
6210 (setSelectedIndices):
6211 (getSelectedIndices):
6212 (getSelectedValues): New functions.
6213 (getPreferredScrollableViewportSize): Return preferred size.
6214 (getScrollableUnitIncrement):
6215 (getScrollableBlockIncrement): Initial implementations.
6216 * javax/swing/JRootPane.java: Clean up slightly.
6221 (isValidateRoot): Add overrides from JComponent.
6222 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
6223 * javax/swing/UIManager.java (getDimension): Return the dimension.
6225 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
6226 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
6227 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
6228 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
6229 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
6230 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
6231 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
6232 * javax/swing/plaf/basic/BasicRootPaneUI.java:
6233 Likewise, and set background.
6234 * javax/swing/plaf/basic/BasicListUI.java:
6235 Likewise, and improve a bit.
6236 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6237 Likewise, and adjust calculations.
6238 * javax/swing/plaf/basic/BasicViewportUI.java:
6239 Likewise, and improve a bit.
6240 * javax/swing/plaf/basic/BasicLookAndFeel.java
6241 (Button.margin): Shrink.
6243 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
6244 Hack to set horizontal always, workaround pango.
6246 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
6247 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6248 Synchronize more often, check cairo status after ops,
6249 handle changes to cairo pattern API, check for disposal.
6251 2004-05-21 Olga Rodimina <rodimina@redhat.com>
6253 * javax/swing/plaf/basic/BasicMenuItemUI.java:
6254 (BasicMenuItemUI): Create propertyChangeListener.
6255 (getPath):Implemented.
6256 (installListeners): Add propertyChangeListener to menuItem.
6257 (uninstallListeners): Remove propertyChangeListener from menuItem.
6258 (update): Implemented.
6259 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
6260 (mouseEntered): Take insets of popup menu into account when
6261 calculating position of popup menu.
6263 2004-05-18 Olga Rodimina <rodimina@redhat.com>
6265 * Makefile.am: Added new file.
6266 * Makefile.in: Regenerate.
6267 * javax/swing/JMenuBar.java:
6268 Started implementation.
6269 * javax/swing/JPopupMenu.java:
6270 (setVisible): Fixed location of lightweight/mediumweight
6272 (show): Fixed location of PopupMenu.
6273 * javax/swing/plaf/basic/BasicMenuBarUI.java:
6274 New file. UI Delegate for JMenuBar.
6275 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
6276 (mouseEntered): Corrected position of the submenu.
6278 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
6280 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
6281 to _gtk_accel_group_attach.
6282 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
6285 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
6286 package access. Don't override setFont.
6287 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
6288 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
6289 gtkWidgetRequestFocus package access.
6290 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
6292 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
6293 Give gtkWidgetRequestFocus package access.
6294 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
6295 gtkWidgetRequestFocus package access. Don't override setFont.
6296 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
6298 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6299 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
6301 (gtkSetFont): Likewise.
6302 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
6304 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6305 (gtkSetFont): Whitespace fix.
6307 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6308 (gtkWidgetSetUsize): Remove method.
6310 2004-05-18 David Jee <djee@redhat.com>
6312 * java/awt/image/MemoryImageSource.java
6313 (newPixels(int,int,int,int,boolean)): Set only the specified
6314 rectangle of pixels.
6315 (newPixels(byte[],ColorModel,int,int)): Implement.
6316 (newPixels(int[],ColorModel,int,int)): Implement.
6318 2004-05-18 Olga Rodimina <rodimina@redhat.com>
6320 * Makefile.am: Added new file.
6321 * Makefile.in: Regenerate.
6322 * javax/swing/JMenu.java: Started
6324 * javax/swing/JPopupMenu.java:
6325 (insert): If specified index is -1, then
6326 add component at the end.
6327 (isPopupTrigger): Reimplemented.
6328 (JPopupMenu.LightWeightPopup): setBounds
6329 of the lightWeightPopup before adding it
6331 (javax/swing/plaf/basic/BasicIconFactory.java):
6332 (getMenuArrowIcon): Implemented.
6333 * javax/swing/plaf/basic/BasicMenuItemUI.java:
6334 (getPreferredSize): Add size of the arrow icon
6335 if this menu item is instance of JMenu.
6336 (paintMenuItem): Paint arrow icon if this
6337 menu item is a submenu.
6338 * javax/swing/plaf/basic/BasicMenuUI.java:
6339 New File. UI Delegate for JMenu.
6341 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
6343 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
6344 Post KEY_TYPED events.
6345 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6346 (generates_key_typed_event): Remove function.
6348 2004-05-17 Olga Rodimina <rodimina@redhat.com>
6350 * javax/swing/JRootPane.java
6351 (JRootPane.RootLayout): Reimplemented to
6352 set bounds of contentPane and menuBar.
6353 (setJMenuBar): Add menu bar to the layered pane.
6354 (createLayeredPane): Set layout of layeredPane
6356 * javax/swing/JLayeredPane.java:
6357 (addImpl): Calculate index of the component in the
6358 layeredPane according to the specified position within
6361 2004-05-17 David Jee <djee@redhat.com>
6363 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6364 (setPixels): Change color model to the default model after
6366 * java/awt/image/MemoryImageSource.java
6367 (newPixels): Set only the specified rectangle of pixels.
6369 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
6371 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
6372 -l-java-beans -l-javax-accessibility -l-javax-swing.
6374 * java/awt/AWTEvent.java (toString): Print source's name rather
6375 than the source itself.
6377 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
6379 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
6381 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
6382 (gdk_color_to_java_color): New function.
6383 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
6385 2004-05-12 David Jee <djee@redhat.com>
6387 * java/awt/image/RGBImageFilter.java:
6388 Initialize origmodel as null.
6389 (makeColor): Fix pixel component order.
6390 (filterRGBPixels): Fix pixel iteration.
6391 (setPixels): Add extra checks for index color model. Convert pixels
6392 to default color model if necessary.
6393 (convertColorModelToDefault): New override method for byte pixels.
6394 (convertColorModelToDefault): For int pixels, fix pixel iteration.
6395 (makeColorbyDefaultCM): New override method for byte pixels.
6396 (makeColorbyDefaultCM): For int pixel, add color model as argument.
6397 (makeColor): Fix pixel component order.
6399 2004-05-11 Kim Ho <kho@redhat.com>
6401 * javax/swing/Box.java:
6402 Comment out more parts of Box.Filler.
6404 2004-05-11 Kim Ho <kho@redhat.com>
6406 * javax/swing/Box.java:
6407 Remove reference to AccessibleAWTComponent so
6410 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6412 * gnu/java/awt/peer/gtk/GtkListPeer.java,
6413 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
6414 implementation of list peer to use GtkTreeView instead of
6415 deprecated GtkCList.
6417 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
6419 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6420 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
6421 (handleEvent): Remove keyChar argument to
6422 gtkWidgetDispatchKeyEvent calls.
6423 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
6425 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6426 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
6427 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
6430 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
6432 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6433 (gtkWidgetRequestFocus): Mark protected.
6434 (GtkComponentPeer): Only set the peer's bounds if its component
6436 * java/awt/Component.java (static): Set the default keyboard
6438 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
6439 requestFocusInWindow(temporary)): Don't request focus if the
6440 component is not showing. Get tree lock before traversing
6441 component hierarchy.
6442 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
6443 Only set the global focus owner if it is not a Window.
6444 (processKeyEvent): Consume keystrokes associated with the focus
6445 traversal keystroke.
6446 (focusPreviousComponent, focusNextComponent, upFocusCycle,
6447 downFocusCycle): Call requestFocusInWindow instead of
6449 * java/awt/EventDispatchThread.java (run): Move setting of
6450 default keyboard focus manager to Component.java.
6451 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6452 (awt_keycode_to_keysym): New function.
6453 (gtkWidgetDispatchKeyEvent): Finish implementation.
6454 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6455 (pre_event_handler): Add FIXME comment.
6457 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
6458 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6459 (gtkWidgetRequestFocus): New method.
6460 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
6461 disable Tab and Shift-Tab keystrokes.
6462 (addNotify, appendText, insertText, replaceText): Simplify peer
6464 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
6465 (connectSignals): Remove connections to "commit" signals.
6466 Remove C++-style comments.
6468 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
6469 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6470 (handleEvent): Activate GTK button when the space bar key is
6472 (gtkActivate): New method.
6474 2004-05-06 David Jee <djee@redhat.com>
6476 * java/awt/image/CropImageFilter.java
6477 (setPixels): Implement for byte array pixels.
6478 * java/awt/image/ReplicateScaleFilter.java
6479 (setPixels): Implement for byte array pixels.
6480 (replicatePixels): Overload for byte array pixels.
6482 2004-05-06 Kim Ho <kho@redhat.com>
6484 * javax/swing/Box.java:
6485 (getAccessibleContext): Return an instance of the
6488 2004-05-05 David Jee <djee@redhat.com>
6490 * gnu/java/awt/peer/gtk/GdkGraphics.java
6491 (drawImage): When component is null, use SystemColor.window as
6492 the default bgcolor.
6493 * gnu/java/awt/peer/gtk/GtkImage.java
6494 (setPixels): We can avoid iterating through the pixel rows only
6496 * java/awt/Image.java
6497 (getScaledInstance): Partially implement.
6498 * java/awt/image/CropImageFilter.java
6499 (setProperties): Fix "filter" property.
6500 (setPixels): Implement.
6501 * java/awt/image/ReplicateScaleFilter.java
6502 (setDimensions): Use scaled dimensions.
6503 (setPixels): Implement.
6504 (replicatePixels): New method.
6506 2004-05-05 David Jee <djee@redhat.com>
6508 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6509 (convertPixels): If either pixels or model is null, return null.
6510 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
6511 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
6512 is null, do nothing and return.
6514 2004-05-03 Kim Ho <kho@redhat.com>
6516 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
6517 (getGraphics): Like GtkFramePeer, the Graphics
6518 object needs to be translate to account for
6520 (postMouseEvent): New method. Account for
6522 (postExposeEvent): ditto.
6523 * javax/swing/Box.java: Stubbed.
6524 * javax/swing/JDialog.java: Ran through jalopy
6526 (JDialog): Call SwingUtilities' getOwnerFrame
6528 (setLayout): Check isRootPaneCheckingEnabled
6529 * javax/swing/JOptionPane.java: Re-implemented.
6530 * javax/swing/SwingUtilities.java:
6531 (getOwnerFrame): Static method to grab a default
6532 owner frame for Dialogs that don't specify owners.
6533 * javax/swing/event/SwingPropertyChangeSupport.java:
6534 (firePropertyChange): Fix early exit condition.
6535 * javax/swing/plaf/basic/BasicLabelUI.java:
6536 (paint): Avoid painting text if it is null
6538 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
6541 2004-05-03 Olga Rodimina <rodimina@redhat.com>
6543 * Makefile.am: Added new file.
6544 * Makefile.in: Regenerate.
6545 * javax/swing/JPopupMenu.java:
6546 Started implementation.
6547 * javax/swing/JWindow.java
6548 (JWindow): call super() if parent for window
6550 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
6551 New File. UI Delegate for JPopupMenu.
6553 2004-04-30 Olga Rodimina <rodimina@redhat.com>
6555 * javax/swing/JApplet.java: Indicated that JApplet
6556 implements RootPaneContainer and made method of this
6558 * javax/swing/JFrame.java: Ditto.
6559 * javax/swing/JWindow.java: Ditto.
6561 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
6563 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6564 (nativeSetBounds): Call gdk_window_move in addition to
6567 * java/applet/Applet.java (preferredSize): Call parent's
6568 preferredSize if the applet stub is null.
6569 (minimumSize): Likewise for parent's minimumSize.
6571 2004-04-27 Olga Rodimina <rodimina@redhat.com>
6573 * javax/swing/JMenuItem.java
6574 (createActionPropertyChangeListener): Implemented.
6575 (processMouseEvent): Ditto.
6576 (fireMenuDragMouseEntered): Ditto.
6577 (fireMenuDragMouseExited): Ditto.
6578 (fireMenuDragMouseDragged): Ditto.
6579 (fireMenuDragMouseReleased): Ditto.
6580 (menuSelectionChanged): Ditto.
6581 (getSubElements): Ditto.
6582 (getComponent): Ditto.
6583 (addMenuDragMouseListener): Ditto.
6584 (removeMenuDragMouseListener):Ditto.
6585 (addMenuKeyListener): Ditto.
6586 (removeMenuKeyListener): Ditto.
6587 * javax/swing/plaf/basic/BasicMenuItemUI.java
6588 (doClick): Imlemented.
6589 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
6590 Don't handle mouse events here. Pass them to
6591 MenuSelectionManager.
6593 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6594 Used correct version of jalopy configuration
6595 file to fix style in the files below.
6597 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6599 * javax/swing/JCheckBoxMenuItem.java:
6600 Fixed style and removed unnecessary comments.
6601 * javax/swing/JMenuItem.java: Ditto.
6602 * javax/swing/JRadioButtonMenuItem.java: Ditto.
6603 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
6604 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
6605 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
6607 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
6609 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
6612 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
6614 * java/awt/ContainerOrderFocusTraversalPolicy.java
6615 (getComponentAfter): Start from current component and work up
6616 the component hierarchy until an acceptable component is found.
6617 Synchronize on tree lock.
6618 (getComponentBefore): Likewise.
6620 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
6622 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
6623 focus-related debugging messages.
6624 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
6625 * java/awt/EventDispatchThread.java: Likewise.
6626 * java/awt/KeyboardFocusManager.java: Likewise.
6627 * java/awt/Window.java: Likewise.
6628 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
6629 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6631 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
6632 new C++-style comments to C-style comments.
6633 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6635 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
6636 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6637 (handleEvent): Dispatch key press and key release events to
6639 (requestFocus): Post a FOCUS_GAINED event to the event queue.
6640 (gtkWidgetRequestFocus): New method.
6641 (gtkWidgetDispatchKeyEvent): Likewise.
6642 * java/awt/Component.java (requestFocus, requestFocus(boolean),
6643 requestFocusInWindow, requestFocusInWindow(boolean),
6644 getFocusCycleRootAncestor, nextFocus, transferFocus,
6645 transferFocusBackward, transferFocusUpCycle, hasFocus,
6646 isFocusOwner): Implement and document focus-handling methods.
6647 (setFocusTraversalKeys): Inherit focus traversal keys when
6648 keystrokes argument is null. Fix focus-handling documentation
6650 * java/awt/Container.java (setFocusTraversalKeys,
6651 getFocusTraversalKeys, areFocusTraversalKeysSet,
6652 isFocusCycleRoot, setFocusTraversalPolicy,
6653 getFocusTraversalPolicy, isFocusTraversalPolicySet,
6654 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
6655 Implement and document focus-handling methods.
6656 (transferFocusBackward): Remove method.
6657 (readObject, writeObject): Implement and document serialization
6659 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
6661 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
6663 * java/awt/DefaultKeyboardFocusManager.java: Implement and
6665 * java/awt/EventDispatchThread.java (run): Set default keyboard
6666 focus manager. Attempt to dispatch each event to the keyboard
6667 focus manager before normal dispatch.
6668 * java/awt/KeyboardFocusManager.java: Implement and partially
6670 * java/awt/Window.java (Window): Set focusCycleRoot to true.
6671 (show): Focus initial component when window is shown for the
6673 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6674 (pre_event_handler): Replace complex key press and key release
6675 logic with simple callbacks into GtkComponentPeer.
6676 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
6678 2004-04-21 Olga Rodimina <rodimina@redhat.com>
6680 * javax/swing/MenuSelectionManager.java
6681 (componentForPoint): Added new method.
6682 (defaultManager): New Method. Implemented.
6683 (getSelectedPath): Ditto.
6684 (isComponentPartOfCurrentMenu): Ditto.
6685 (processKeyEvent): Added new method.
6686 (processMouseEvent): New Method. Implemented.
6687 (setSelectedPath): Ditto.
6690 2004-04-19 Kim Ho <kho@redhat.com>
6692 * java/awt/Container.java:
6693 (remove): Set the component's parent to null.
6694 (getComponentAt): Implement.
6695 * javax/swing/JComponent.java:
6696 (JComponent): Initialize defaultLocale
6697 (getDefaultLocale): Implement.
6698 (setDefaultLocale): ditto.
6699 * javax/swing/JSlider.java:
6700 (JSlider): Fix calculation of value.
6701 * javax/swing/JSplitPane.java: Implement.
6702 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6703 Change SplitPane's default divider size.
6704 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6705 (paint): Remove unused code.
6706 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
6707 Added comments and ran through jalopy.
6708 (setBasicSplitPaneUI): Get reference to hidden divider
6709 and set up one touch buttons if necessary.
6710 (setBorder): Fire propertyChangeEvent only if
6711 borders are different.
6712 (getPreferredSize): Defer to layout manager.
6713 (propertyChange): Implement.
6714 (oneTouchExpandableChanged): ditto.
6715 (createLeftOneTouchButton): Use BasicArrowButton.
6716 (createRightOneTouchButton): ditto.
6717 (moveDividerTo): New method. Moves the divider
6718 to a set location based on the last divider location.
6719 (BasicSplitPaneDivider::MouseHandler): Implement.
6720 (BasicSplitPaneDivider::OneTouchButton): Removed.
6721 (BasicSplitPaneDivider::DragController): Implement.
6722 (BasicSplitPaneDivider::VerticalDragController):
6724 (BasicSplitPaneDivider::DividerLayout): ditto.
6725 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
6726 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
6727 (calculateLayoutInfo): Don't show component if it's
6729 (paintTab): Fix title paint logic.
6731 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
6734 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
6735 (setStartRule,setEndRule): Don't take abs of day number.
6736 (getOffset): Clarify docs. Add argument checks.
6737 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
6738 (equals,hasSameRules,toString,readObject): Use startTimeMode and
6740 * testsuite/libjava.mauve/xfails
6741 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
6743 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
6745 Layout interfaces during preparation, not initialization.
6746 * java/lang/natClass.cc (initializeClass): Move
6747 _Jv_LayoutInterfaceMethods call...
6748 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
6750 2004-05-19 Anthony Green <green@localhost.localdomain>
6752 * Makefile.am (awt_java_source_files): Remove javax.rmi and
6754 * Makefile.in: Rebuilt.
6755 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
6756 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
6757 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
6758 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
6759 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
6760 gnu/javax/rmi/CORBA/DelegateFactory.java,
6761 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
6762 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
6763 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
6764 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
6765 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
6766 gnu/javax/rmi/PortableServer.java: Remove files.
6768 2004-05-19 Anthony Green <green@redhat.com>
6770 * Makefile.am: Define JAVA_EXT_DIRS.
6771 * Makefile.in: Rebuilt.
6772 * java/lang/natRuntime.cc (insertSystemProperties): Set
6773 java.ext.dirs property.
6775 2004-05-16 Mark Wielaard <mark@klomp.org>
6777 * java/io/Writer.java (Writer(Object)): Check for null lock object.
6779 2004-05-15 Mark Wielaard <mark@klomp.org>
6781 * doc/cni.sgml: Removed, merged into gcj.texi.
6783 2004-05-15 Mark Wielaard <mark@klomp.org>
6785 * Makefile.am (ordinary_java_source_files): Add new javax.print
6787 * Makefile.in: Regenerated.
6789 2004-05-15 Michael Koch <konqueror@gmx.de>
6791 * javax/print/attribute/standard/DateTimeAtCompleted.java,
6792 javax/print/attribute/standard/DateTimeAtCreation.java,
6793 javax/print/attribute/standard/DateTimeAtProcessing.java,
6794 javax/print/attribute/standard/DocumentName.java,
6795 javax/print/attribute/standard/JobHoldUntil.java,
6796 javax/print/attribute/standard/JobImpressionsCompleted.java,
6797 javax/print/attribute/standard/JobMessageFromOperator.java,
6798 javax/print/attribute/standard/JobName.java,
6799 javax/print/attribute/standard/JobOriginatingUserName.java,
6800 javax/print/attribute/standard/JobPriority.java,
6801 javax/print/attribute/standard/JobPrioritySupported.java,
6802 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6803 javax/print/attribute/standard/OutputDeviceAssigned.java,
6804 javax/print/attribute/standard/PrinterInfo.java,
6805 javax/print/attribute/standard/PrinterLocation.java,
6806 javax/print/attribute/standard/PrinterMakeAndModel.java,
6807 javax/print/attribute/standard/PrinterMessageFromOperator.java,
6808 javax/print/attribute/standard/PrinterName.java,
6809 javax/print/attribute/standard/QueuedJobCount.java,
6810 javax/print/attribute/standard/RequestingUserName.java:
6811 Fixed javadocs all over.
6813 2004-05-15 Michael Koch <konqueror@gmx.de>
6815 * javax/print/DocFlavor.java,
6816 javax/print/attribute/standard/ColorSupported.java,
6817 javax/print/attribute/standard/Compression.java,
6818 javax/print/attribute/standard/CopiesSupported.java,
6819 javax/print/attribute/standard/Fidelity.java,
6820 javax/print/attribute/standard/Finishings.java,
6821 javax/print/attribute/standard/JobImpressionsSupported.java,
6822 javax/print/attribute/standard/JobKOctetsSupported.java,
6823 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6824 javax/print/attribute/standard/JobSheets.java,
6825 javax/print/attribute/standard/JobState.java,
6826 javax/print/attribute/standard/JobStateReason.java,
6827 javax/print/attribute/standard/JobStateReasons.java,
6828 javax/print/attribute/standard/Media.java,
6829 javax/print/attribute/standard/MediaSizeName.java,
6830 javax/print/attribute/standard/MultipleDocumentHandling.java,
6831 javax/print/attribute/standard/NumberUpSupported.java,
6832 javax/print/attribute/standard/OrientationRequested.java,
6833 javax/print/attribute/standard/PDLOverrideSupported.java,
6834 javax/print/attribute/standard/PageRanges.java,
6835 javax/print/attribute/standard/PresentationDirection.java,
6836 javax/print/attribute/standard/PrintQuality.java,
6837 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6838 javax/print/attribute/standard/PrinterMoreInfo.java,
6839 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6840 javax/print/attribute/standard/PrinterResolution.java,
6841 javax/print/attribute/standard/PrinterState.java,
6842 javax/print/attribute/standard/PrinterStateReason.java,
6843 javax/print/attribute/standard/PrinterStateReasons.java,
6844 javax/print/attribute/standard/PrinterURI.java,
6845 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6846 javax/print/attribute/standard/Severity.java,
6847 javax/print/attribute/standard/SheetCollate.java,
6848 javax/print/attribute/standard/Sides.java:
6849 Added serialVersionUID and removed final keyword where it doenst
6852 2004-05-15 Michael Koch <konqueror@gmx.de>
6854 * javax/print/PrintServiceLookup.java: New file.
6856 2004-05-15 Michael Koch <konqueror@gmx.de>
6858 * javax/print/DocFlavor.java:
6859 Implemented all flavor classes.
6861 2004-05-15 Michael Koch <konqueror@gmx.de>
6863 * javax/print/attribute/standard/ColorSupported.java,
6864 javax/print/attribute/standard/Compression.java,
6865 javax/print/attribute/standard/CopiesSupported.java,
6866 javax/print/attribute/standard/Fidelity.java,
6867 javax/print/attribute/standard/Finishings.java,
6868 javax/print/attribute/standard/JobImpressionsSupported.java,
6869 javax/print/attribute/standard/JobKOctetsSupported.java,
6870 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6871 javax/print/attribute/standard/JobSheets.java,
6872 javax/print/attribute/standard/JobState.java,
6873 javax/print/attribute/standard/JobStateReason.java,
6874 javax/print/attribute/standard/JobStateReasons.java,
6875 javax/print/attribute/standard/Media.java,
6876 javax/print/attribute/standard/MediaSizeName.java,
6877 javax/print/attribute/standard/MultipleDocumentHandling.java,
6878 javax/print/attribute/standard/NumberUpSupported.java,
6879 javax/print/attribute/standard/OrientationRequested.java,
6880 javax/print/attribute/standard/PDLOverrideSupported.java,
6881 javax/print/attribute/standard/PageRanges.java,
6882 javax/print/attribute/standard/PresentationDirection.java,
6883 javax/print/attribute/standard/PrintQuality.java,
6884 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6885 javax/print/attribute/standard/PrinterMoreInfo.java,
6886 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6887 javax/print/attribute/standard/PrinterResolution.java,
6888 javax/print/attribute/standard/PrinterState.java,
6889 javax/print/attribute/standard/PrinterStateReason.java,
6890 javax/print/attribute/standard/PrinterStateReasons.java,
6891 javax/print/attribute/standard/PrinterURI.java,
6892 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6893 javax/print/attribute/standard/Severity.java,
6894 javax/print/attribute/standard/SheetCollate.java,
6895 javax/print/attribute/standard/Sides.java: New files.
6897 2004-05-15 Michael Koch <konqueror@gmx.de>
6899 * javax/print/Doc.java
6900 (getPrintData): Throws IOException.
6901 (getReaderForText): Likewise.
6902 (getStreamForBytes): Likewise.
6903 * javax/print/DocFlavor.java:
6904 Fixed filename in copyright.
6905 (serialVersionUID): New field.
6906 * javax/print/ServiceUIFactory.java:
6907 Made all constants final.
6908 * javax/print/AttributeException.java
6909 javax/print/MultiDoc.java
6910 javax/print/MultiDocPrintJob.java
6911 javax/print/MultiDocPrintService.java
6912 javax/print/StreamPrintService.java
6913 javax/print/URIException.java: New files.
6914 * javax/print/Makefile.am
6915 (EXTRA_DIST): Added all new files.
6917 2004-05-15 Michael Koch <konqueror@gmx.de>
6919 * javax/print/attribute/standard/Copies.java,
6920 javax/print/attribute/standard/DateTimeAtCompleted.java,
6921 javax/print/attribute/standard/DateTimeAtCreation.java,
6922 javax/print/attribute/standard/DateTimeAtProcessing.java,
6923 javax/print/attribute/standard/DocumentName.java,
6924 javax/print/attribute/standard/JobHoldUntil.java,
6925 javax/print/attribute/standard/JobImpressions.java,
6926 javax/print/attribute/standard/JobImpressionsCompleted.java,
6927 javax/print/attribute/standard/JobKOctets.java,
6928 javax/print/attribute/standard/JobKOctetsProcessed.java,
6929 javax/print/attribute/standard/JobMediaSheets.java,
6930 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
6931 javax/print/attribute/standard/JobMessageFromOperator.java,
6932 javax/print/attribute/standard/JobName.java,
6933 javax/print/attribute/standard/JobOriginatingUserName.java,
6934 javax/print/attribute/standard/JobPriority.java,
6935 javax/print/attribute/standard/JobPrioritySupported.java,
6936 javax/print/attribute/standard/NumberOfDocuments.java,
6937 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6938 javax/print/attribute/standard/NumberUp.java,
6939 javax/print/attribute/standard/OutputDeviceAssigned.java,
6940 javax/print/attribute/standard/PagesPerMinute.java,
6941 javax/print/attribute/standard/PagesPerMinuteColor.java:
6942 Fixed @return tag all over.
6944 2004-05-15 Michael Koch <konqueror@gmx.de>
6946 * javax/print/attribute/AttributeSetUtilities.java
6947 (verifyCategoryForValue): Fixed typo in javadoc.
6948 * javax/print/attribute/HashAttributeSet.java
6949 (containsKey): Fixed @return tag.
6950 (comtainsValue): Likewise.
6952 * javax/print/attribute/IntegerSyntax.java
6954 * javax/print/attribute/ResolutionSyntax.java
6956 (getCrossFeedResolution): Removed unused code.
6957 (getFeedResolution): Likewise.
6958 * javax/print/attribute/SetOfIntegerSyntax.java
6959 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
6960 (equals): Fixed @return tag.
6961 * javax/print/attribute/TextSyntax.java
6962 (TextSyntax): Take locale into account.
6963 (hashCode): Better implementation.
6965 2004-05-15 Michael Koch <konqueror@gmx.de>
6967 * javax/print/CancelablePrintJob.java,
6968 javax/print/Doc.java,
6969 javax/print/DocFlavor.java,
6970 javax/print/DocPrintJob.java,
6971 javax/print/FlavorException.java,
6972 javax/print/PrintException.java,
6973 javax/print/PrintService.java,
6974 javax/print/ServiceUIFactory.java: New files.
6976 2004-05-15 Mark Wielaard <mark@klomp.org>
6978 * gnu/regexp/CharIndexedReader.java: Removed.
6979 * gnu/regexp/REFilterReader.java: Likewise.
6980 * gnu/regexp/RETokenLookAhead.java: Likewise.
6981 * Makefile.am (ordinary_java_source_files): Remove above classes.
6982 * Makefile.in: Regenerated.
6984 2004-05-14 Tom Tromey <tromey@redhat.com>
6986 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
6987 not `XGraphicsConfiguration.XOffScreenImage'.
6989 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
6991 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
6993 2004-05-14 Steven Augart <augart@watson.ibm.com>
6995 * include/jni.h (_Jv_func): Removed.
6996 (struct JNINativeInterface): Use `void *' for reserved slots.
6997 (struct JNIInvokeInterface): Likewise.
6999 2004-05-11 Michael Koch <konqueror@gmx.de>
7001 * gnu/java/net/natPlainSocketImplPosix.cc
7002 (read): Fixed typo in expression.
7004 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
7006 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
7007 ld_library_additions. Adjust all calls to libjava_invoke to match
7010 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
7011 path to cxxflagslist.
7012 Pass path of libstdc++ to libjava_invoke.
7014 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
7015 libjava_invoke arguments.
7017 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
7019 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
7022 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
7024 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
7025 main binary against the JNI shared library.
7027 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
7029 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
7030 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
7031 (SimpleTimeZone): Tweak docs. Add new variation.
7032 (setStartRule,setEndRule): Add new variations. Use
7033 startTimeMode and endTimeMode.
7035 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
7037 * java/util/Calendar.java (getActualMinimum,
7038 getActualMaximum): Remove abstract. Implement.
7040 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
7042 Run the jni tests using the interpreter.
7043 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
7044 options_cxx to shared lib compile command.
7045 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
7046 they are used to link the shared lib, not the main binary.
7047 Use libjava_invoke to run gij.
7049 2004-05-06 Michael Koch <konqueror@gmx.de>
7051 * java/util/logging/Level.java
7052 (parse): Use == instead of String.equals().
7054 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
7056 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
7057 verify_field_signature and verify_method_signature, not
7058 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
7059 (_Jv_ClassReader::handleField): Likewise.
7060 (_Jv_ClassReader::handleMethod): Likewise.
7062 2004-05-06 Michael Koch <konqueror@gmx.de>
7064 * javax/swing/table/TableColumn.java:
7067 2004-05-06 Michael Koch <konqueror@gmx.de>
7069 * javax/imageio/spi/ImageReaderWriterSpi.java
7070 (ImageReaderWriterSpi): Made it public.
7071 * javax/imageio/stream/ImageInputStream.java:
7074 2004-05-06 Michael Koch <konqueror@gmx.de>
7076 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7079 2004-05-06 Michael Koch <konqueror@gmx.de>
7081 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
7082 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
7084 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
7085 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
7086 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
7087 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
7088 their own source file.
7089 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7090 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
7091 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
7092 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
7093 (create): Define variable on top of function.
7094 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
7095 (menu_pos): Prototyped.
7096 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7097 (setTitle): Removed.
7098 * jni/gtk-peer/gthread-jni.c
7099 (gdk_threads_wake): Removed.
7100 * Makefile.am (gtk_c_source_files): Added new files
7101 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
7102 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
7103 * Makefile.in: Regenerated.
7105 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
7107 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
7110 2004-05-05 Mark Wielaard <mark@klomp.org>
7112 * javax/swing/AbstractButton.java: Replace special HTML entities with
7114 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
7115 * javax/swing/DefaultButtonModel.java: Likewise.
7116 * javax/swing/DefaultListModel.java: Likewise.
7117 * javax/swing/JList.java: Likewise.
7118 * javax/swing/JSlider.java: Likewise.
7119 * javax/swing/ListModel.java: Likewise.
7120 * javax/swing/Popup.java: Likewise.
7121 * javax/swing/SwingUtilities.java: Likewise.
7123 2004-05-05 Michael Koch <konqueror@gmx.de>
7125 * javax/swing/AbstractButton.java,
7126 javax/swing/ActionMap.java,
7127 javax/swing/DefaultButtonModel.java,
7128 javax/swing/DefaultListModel.java,
7129 javax/swing/ImageIcon.java,
7130 javax/swing/JComboBox.java,
7131 javax/swing/JComponent.java,
7132 javax/swing/JFrame.java,
7133 javax/swing/JInternalFrame.java,
7134 javax/swing/JMenuBar.java,
7135 javax/swing/JMenuItem.java,
7136 javax/swing/JOptionPane.java,
7137 javax/swing/JProgressBar.java,
7138 javax/swing/JRootPane.java,
7139 javax/swing/JScrollBar.java,
7140 javax/swing/JScrollPane.java,
7141 javax/swing/JSeparator.java,
7142 javax/swing/JSlider.java,
7143 javax/swing/JTabbedPane.java,
7144 javax/swing/JTable.java,
7145 javax/swing/JTextField.java,
7146 javax/swing/JToolBar.java,
7147 javax/swing/JToolTip.java,
7148 javax/swing/JTree.java,
7149 javax/swing/JViewport.java,
7150 javax/swing/JWindow.java,
7151 javax/swing/KeyStroke.java,
7152 javax/swing/LookAndFeel.java,
7153 javax/swing/SwingUtilities.java,
7154 javax/swing/Timer.java,
7155 javax/swing/ToolTipManager.java,
7156 javax/swing/UIDefaults.java,
7157 javax/swing/border/TitledBorder.java,
7158 javax/swing/filechooser/FileSystemView.java,
7159 javax/swing/plaf/basic/BasicButtonListener.java,
7160 javax/swing/plaf/basic/BasicButtonUI.java,
7161 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
7162 javax/swing/plaf/basic/BasicGraphicsUtils.java,
7163 javax/swing/plaf/basic/BasicLabelUI.java,
7164 javax/swing/plaf/basic/BasicMenuItemUI.java,
7165 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
7166 javax/swing/plaf/basic/BasicRootPaneUI.java,
7167 javax/swing/plaf/basic/BasicScrollBarUI.java,
7168 javax/swing/plaf/basic/BasicScrollPaneUI.java,
7169 javax/swing/plaf/basic/BasicSliderUI.java,
7170 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
7171 javax/swing/plaf/basic/BasicToggleButtonUI.java,
7172 javax/swing/table/JTableHeader.java,
7173 javax/swing/text/AbstractDocument.java,
7174 javax/swing/text/DefaultCaret.java,
7175 javax/swing/text/StyledEditorKit.java,
7176 javax/swing/tree/DefaultTreeCellEditor.java:
7179 2004-05-05 Michael Koch <konqueror@gmx.de>
7181 * java/util/prefs/AbstractPreferences.java
7182 (AbstractPreferences): Added parenthesis for clarity.
7183 Closes classpath bug #7940.
7185 2004-05-05 Tom Tromey <tromey@redhat.com>
7187 * javax/naming/CompoundName.java (endsWith): Look at correct
7188 element of source name.
7190 2004-05-05 Mark Wielaard <mark@klomp.org>
7192 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
7193 * java/util/HashMap.java (rehash): Add entry at start of bucket.
7195 2004-05-05 Tom Tromey <tromey@redhat.com>
7197 * java/io/BufferedReader.java (skip): Removed unused
7200 2004-05-05 Michael Koch <konqueror@gmx.de>
7202 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
7204 2004-05-05 Dalibor Topic <robilad@kaffe.org>
7206 * java/text/AttributedString.java,
7207 java/text/AttributedStringIterator.java,
7208 java/text/Collator.java,
7209 java/text/DecimalFormatSymbols.java,
7210 java/text/NumberFormat.java,
7211 java/text/RuleBasedCollator.java:
7214 2004-05-05 Tom Tromey <tromey@redhat.com>
7216 * java/text/Format.java: Cleaned up imports.
7217 * java/text/DecimalFormat.java: Cleaned up imports.
7218 * java/security/SecureRandom.java: Cleaned up imports.
7219 (SecureRandom): Removed unused variable.
7220 * java/security/UnresolvedPermission.java: Cleaned up imports.
7221 * java/util/Date.java (parse): Removed unused variable.
7222 * java/util/ResourceBundle.java: Cleaned up imports.
7223 (getBundle): Removed unused variable.
7224 (tryBundle): Likewise.
7225 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
7227 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7229 * java/text/SimpleDateFormat.java:
7230 (formatWithAttribute): New method. It implements
7231 the formatting process with attributes.
7232 (format): Use formatWithAttribute.
7233 (formatToCharacterIterator): New method. Use
7234 formatWithAttribute.
7236 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7238 * java/text/MessageFormat.java:
7239 (class Field): New class.
7240 (formatToCharacterIterator): New method.
7241 (format): Use formatInternal now.
7242 (formatInternal): New method. String formatter should
7243 be done here (with attributes). Attributes merging supported.
7244 (parse): More documentation.
7245 (getFormatsByArgumentIndex): New method.
7246 (setFormatByArgumentIndex): New method.
7247 (setFormatsByArgumentIndex): New method.
7249 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7251 * java/text/DecimalFormat.java
7252 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
7253 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
7254 (parse): Fixed handling of exponentiation notation and grouping.
7256 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7258 * java/text/DecimalFormat.java
7259 (scanFix): Build attribute array. Fixed error reporting.
7260 (applyPatternWithSymbols): Store attributes for the prefix and
7262 (formatInternal): New method. Changed the way the string is
7263 computed. Implemented attributes. Cleant up rounding in
7264 exponential notation.
7265 (format): Use formatInternal.
7266 (formatToCharacterIterator): New method.
7267 (exponentRound, negativePrefixRanges, positivePrefixRanges,
7268 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
7269 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
7272 2004-05-04 Dalibor Topic <robilad@kaffe.org>
7274 * java/security/interfaces/DSAKeyPairGenerator.java,
7275 java/security/interfaces/DSAPrivateKey.java,
7276 java/security/interfaces/DSAPublicKey.java,
7277 java/security/interfaces/RSAPrivateKey.java,
7278 java/security/interfaces/RSAPublicKey.java:
7281 2004-05-04 Michael Koch <konqueror@gmx.de>
7283 * java/nio/ByteBuffer.java,
7284 java/nio/CharBuffer.java,
7285 java/nio/DoubleBuffer.java,
7286 java/nio/FloatBuffer.java,
7287 java/nio/IntBuffer.java,
7288 java/nio/LongBuffer.java,
7289 java/nio/ShortBuffer.java:
7290 (compareTo): Fixed bogus implementation in all buffer classes.
7292 2004-05-04 Ingo Proetel <proetel@aicas.com>
7294 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
7295 32 bit pixels not 8 bit pixels.
7296 (isCompatibleRaster): Added javadoc comment.
7298 2004-05-04 Ingo Proetel <proetel@aicas.com>
7300 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
7303 2004-05-04 Ingo Proetel <proetel@aicas.com>
7305 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
7306 (getColorModel): Return the actual color model.
7307 (getRaster): Implemented.
7308 (ColorRaster): New inner class.
7309 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
7311 * java/awt/Color.java (<init>): Make exception more verbose.
7312 (createContext): Use ColorModel when creating a PaintContext.
7314 2004-05-04 Michael Koch <konqueror@gmx.de>
7316 * gnu/java/text/CharacterBreakIterator.java
7317 (previous): Removed unused variable.
7319 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
7321 * gnu/java/text/FormatBuffer.java,
7322 gnu/java/text/AttributedFormatBuffer.java,
7323 gnu/java/text/StringFormatBuffer.java: New classes to implement
7324 attributed iterators in java.text.
7325 * gnu/java/text/FormatCharacterIterator.java: Moved
7326 from java/text as it is an internal class.
7327 * java/text/FormatCharacterIterator.java: Removed.
7328 * java/text/Format.java:
7329 Import gnu.java.text.FormatCharacterIterator.
7330 * Makefile.am (java_source_files): Added new files.
7331 * Makefile.in: Regenerated.
7334 2004-05-04 Mark Wielaard <mark@klomp.org>
7336 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
7338 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
7340 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
7341 * Makefile.in: Rebuilt.
7343 2004-05-03 Mark Wielaard <mark@klomp.org>
7345 * gnu/java/security/der/DERReader.java: Call static methods staticly.
7346 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
7348 (set(String, String, int, String, String, String, String, String)):
7349 Assign this.file to path or path + "?" + query.
7350 * java/util/Arrays.java: Call static methods staticly.
7351 * java/util/zip/ZipEntry.java: Likewise.
7352 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
7353 dir to this.direction.
7354 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
7355 Assign static field only once.
7356 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
7358 2004-05-03 Mark Wielaard <mark@klomp.org>
7360 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
7361 unused variables hScrollbarHeight and vScrollbarWidth.
7362 (preferredSize): Likewise.
7363 * gnu/java/security/provider/DSAParameters.java (engineToString):
7364 Removed unused call to System.getProperty("line.seperator");
7365 * java/security/Security.java (loadProviders): Return result.
7367 2004-05-03 Tom Tromey <tromey@redhat.com>
7369 * java/net/URLStreamHandler.java (toExternalForm): Removed
7372 * java/math/BigDecimal.java (divide): Removed unused variable.
7373 * java/lang/Throwable.java: Cleaned up imports.
7374 * java/lang/ClassLoader.java: Cleaned up imports.
7375 * java/io/FilePermission.java (implies): Removed unused
7377 * java/awt/TextComponent.java: Removed unused import.
7378 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
7379 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
7380 * gnu/java/text/WordBreakIterator.java: Removed unused import.
7381 * gnu/java/text/SentenceBreakIterator.java: Removed unused
7383 * gnu/java/text/LineBreakIterator.java: Removed unused import.
7384 * gnu/java/text/CharacterBreakIterator.java: Removed
7386 * gnu/java/security/provider/DSAKeyPairGenerator.java:
7388 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
7389 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
7391 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
7392 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
7393 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
7394 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
7395 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
7396 (lookupProviders): Removed unused variable.
7397 (loadNextServiceProvider): Likewise.
7398 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
7400 2004-05-03 Michael Koch <konqueror@gmx.de>
7402 Fixes PR libgcj/14695:
7403 * java/net/NetworkInterface.java
7404 (getByName): Return null when no interface was found.
7406 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
7407 Tom Tromey <tromey@redhat.com>
7409 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
7410 additional option "-Wmissing-prototypes" for compiling C sources.
7411 Print actual filename for pass/fail rather than $name.c.
7412 * testsuite/libjava.jni/PR15133.java: New testcase file.
7413 * testsuite/libjava.jni/PR15133.c: Likewise.
7414 * testsuite/libjava.jni/PR15133.out: Likewise.
7416 2004-04-30 Roger Sayle <roger@eyesopen.com>
7418 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
7421 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
7423 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
7424 limit the maximum heap size to avoid unnecessary thrashing.
7426 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
7428 * java/text/CollationElementIterator.java (reset): Reset
7429 lookahead variables.
7431 2004-04-23 Mark Wielaard <mark@klomp.org>
7433 * jni/classpath/jcl.c: Changed C++ comments into C comments.
7435 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7437 * java/sql/DriverManager.java:
7440 2004-04-23 Michael Koch <konqueror@gmx.de>
7443 (hashcode): Don't initialize with default value explicitely.
7444 (getContent): Removed redundant "final" keyword.
7445 (openStream): Likewise.
7446 (getURLStreamHandler): Fixed coding style.
7447 * java/net/URLConnection.java
7448 (defaultAllowUserInteraction): Don't initialize with default value
7450 (connected): Likewise.
7451 (doOutput): Likewise.
7452 (ifModifiedSince): Likewise.
7453 (dateformats_initialized): Likewise.
7454 (setURLStreamHander): Use StreamTokenizer where it belongs to.
7456 2004-04-23 Michael Koch <konqueror@gmx.de>
7458 * gnu/java/nio/channels/FileChannelImpl.java
7459 (SET, CUR): Unused, removed.
7460 (read): Implement here directly.
7461 (implRead): Removed.
7462 (write): Implement here directly.
7463 (implWrite): Removed.
7465 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7467 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
7468 javax/rmi/CORBA/Stub.java,
7469 javax/rmi/CORBA/Util.java,
7470 javax/rmi/CORBA/ValueHandler.java,
7471 javax/rmi/CORBA/ValueHandler.java,
7472 javax/rmi/PortableRemoteObject.java:
7475 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7477 * java/util/jar/JarFile.java,
7478 java/util/jar/JarInputStream.java,
7479 java/util/jar/JarOutputStream.java,
7480 java/util/jar/Manifest.java:
7483 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7485 * java/util/ArrayList.java,
7486 java/util/Calendar.java,
7487 java/util/Currency.java,
7488 java/util/HashMap.java,
7489 java/util/HashSet.java,
7490 java/util/Hashtable.java,
7491 java/util/LinkedList.java,
7492 java/util/Properties.java,
7493 java/util/PropertyPermission.java,
7494 java/util/TimeZone.java,
7495 java/util/TreeMap.java,
7496 java/util/TreeSet.java,
7497 java/util/Vector.java,
7498 java/util/WeakHashMap.java:
7501 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7503 * java/util/logging/FileHandler.java,
7504 java/util/logging/Formatter.java,
7505 java/util/logging/Handler.java,
7506 java/util/logging/Logger.java,
7507 java/util/logging/SimpleFormatter.java,
7508 java/util/logging/XMLFormatter.java:
7511 2004-04-22 Mark Wielaard <mark@klomp.org>
7513 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
7514 -Wno-long-long flags variable.
7515 (gtk_c_files): Use PEDANTIC_CFLAGS.
7516 * Makefile.in: Regenerated.
7518 2004-04-22 Mark Wielaard <mark@klomp.org>
7520 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7521 Changed C++ comments into C comments.
7522 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
7525 2004-04-22 Michael Koch <konqueror@gmx.de>
7527 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
7528 Merged copyright year with GNU classpath.
7530 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7532 * javax/security/auth/x500/X500Principal.java:
7535 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7537 * javax/swing/JSlider.java:
7538 Fixed HTML tags in comments.
7540 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7542 * javax/accessibility/AccessibleText.java:
7545 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
7547 * java/net/URLStreamHandler.java
7548 (parseURL): Convert the file path to using '/' instead of native
7551 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
7554 (userInfo): New field.
7555 (URL): Set authority to the right value.
7556 (setURL): Fixed authority and file initialization.
7557 * java/net/URLStreamHandler.java
7558 (parseURL): Take care of the query tag. Build authority.
7559 (toExternalForm): Fixed URL building using authority.
7561 2004-04-22 Michael Koch <konqueror@gmx.de>
7563 * java/net/Socket.java
7564 (impl): Made package-private.
7565 * java/net/ServerSocket.java
7566 (implAccept): Access Socket.impl field directly.
7568 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7570 * java/util/prefs/Preferences.java,
7571 java/util/prefs/InvalidPreferencesFormatException.java,
7572 java/util/prefs/BackingStoreException.java,
7573 java/util/prefs/AbstractPreferences.java:
7576 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7578 * java/util/regex/Matcher.java,
7579 java/util/regex/Pattern.java:
7582 2004-04-22 Michael Koch <konqueror@gmx.de>
7584 * java/nio/charset/IllegalCharsetNameException.java
7585 (charsetName): Made private.
7586 (IllegalCharsetNameException): Added @param tag to javadoc.
7587 (getCharsetName): Added @return tag to javadoc.
7588 * java/nio/charset/MalformedInputException.java
7589 (MalformedInputException): Added @param tag to javadoc.
7590 (getInputLength): Revised method description, added @return tag.
7591 (getMessage): Added @return tag.
7593 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
7595 * java/awt/Font.java (deriveFont): Implement missing variants.
7596 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
7599 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
7601 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
7602 Set method->index values for interface methods to their itable index.
7603 (initializeClass): Call _Jv_LayoutInterfaceMethods.
7605 2004-04-21 Michael Koch <konqueror@gmx.de>
7607 * java/nio/DirectByteBufferImpl.java
7608 (shiftDown): Made static, give address as argument and
7609 provide a convenience method that overwrites shiftDown in
7610 ByteBufferImpl and calls the native shiftDown.
7611 * java/nio/MappedByteBufferImpl.java
7612 (): Use optimized method in DirectByteBufferImpl.
7613 * java/nio/natDirectByteBufferImpl.cc
7614 (shiftDown): Changed method signature. Removed usage of array_offset.
7616 2004-04-21 Michael Koch <konqueror@gmx.de>
7618 * gnu/java/net/natPlainSocketImplPosix.cc
7619 (SocketInputStream::read): Make sure returned data is a byte value.
7621 2004-04-21 Michael Koch <konqueror@gmx.de>
7623 * gnu/classpath/ServiceFactory.java,
7624 gnu/classpath/ServiceProviderLoadingAction.java,
7625 javax/imageio/ImageReader.java,
7626 javax/imageio/ImageTranscoder.java,
7627 javax/imageio/ImageWriter.java,
7628 javax/imageio/package.html,
7629 javax/imageio/spi/IIOServiceProvider.java,
7630 javax/imageio/spi/ImageInputStreamSpi.java,
7631 javax/imageio/spi/ImageOutputStreamSpi.java,
7632 javax/imageio/spi/ImageReaderWriterSpi.java,
7633 javax/imageio/spi/ImageTranscoderSpi.java,
7634 javax/imageio/spi/RegisterableService.java,
7635 javax/imageio/spi/ServiceRegistry.java,
7636 javax/imageio/spi/package.html,
7637 javax/imageio/stream/IIOByteBuffer.java,
7638 javax/imageio/stream/ImageInputStream.java,
7639 javax/imageio/stream/ImageOutputStream.java,
7640 javax/imageio/stream/package.html:
7643 (ordinary_java_source_files): Added
7644 gnu/classpath/ServiceFactory.java and
7645 gnu/classpath/ServiceProviderLoadingAction.java.
7646 (javax_source_files): Added
7647 javax/imageio/ImageReader.java,
7648 javax/imageio/ImageTranscoder.java,
7649 javax/imageio/ImageWriter.java,
7650 javax/imageio/spi/IIOServiceProvider.java,
7651 javax/imageio/spi/ImageInputStreamSpi.java,
7652 javax/imageio/spi/ImageOutputStreamSpi.java,
7653 javax/imageio/spi/ImageReaderWriterSpi.java,
7654 javax/imageio/spi/ImageTranscoderSpi.java,
7655 javax/imageio/spi/RegisterableService.java,
7656 javax/imageio/spi/ServiceRegistry.java,
7657 javax/imageio/stream/IIOByteBuffer.java,
7658 javax/imageio/stream/ImageInputStream.java and
7659 javax/imageio/stream/ImageOutputStream.java.
7660 * Makefile.in: Regenerated.
7662 2004-04-21 Michael Koch <konqueror@gmx.de>
7664 * java/util/Properties.java
7665 (load): Fix wrongly merged fix.
7667 2004-04-21 Mark Wielaard <mark@klomp.org>
7669 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
7670 malloc and free buf.
7672 2004-04-21 Dalibor Topic <robilad@kaffe.org>
7674 * javax/naming/AuthenticationException.java,
7675 javax/naming/AuthenticationNotSupportedException.java,
7676 javax/naming/CannotProceedException.java,
7677 javax/naming/CommunicationException.java,
7678 javax/naming/CompoundName.java,
7679 javax/naming/ConfigurationException.java,
7680 javax/naming/ContextNotEmptyException.java,
7681 javax/naming/InitialContext.java,
7682 javax/naming/InsufficientResourcesException.java,
7683 javax/naming/InterruptedNamingException.java,
7684 javax/naming/LimitExceededException.java,
7685 javax/naming/LinkException.java,
7686 javax/naming/LinkLoopException.java,
7687 javax/naming/LinkRef.java,
7688 javax/naming/MalformedLinkException.java,
7689 javax/naming/Name.java,
7690 javax/naming/NameAlreadyBoundException.java,
7691 javax/naming/NameNotFoundException.java,
7692 javax/naming/NamingSecurityException.java,
7693 javax/naming/NoInitialContextException.java,
7694 javax/naming/NoPermissionException.java,
7695 javax/naming/NotContextException.java,
7696 javax/naming/PartialResultException.java,
7697 javax/naming/ReferralException.java,
7698 javax/naming/ServiceUnavailableException.java,
7699 javax/naming/SizeLimitExceededException.java,
7700 javax/naming/TimeLimitExceededException.java,
7701 javax/naming/directory/Attribute.java,
7702 javax/naming/directory/Attributes.java,
7703 javax/naming/directory/SearchResult.java,
7704 javax/naming/event/NamingExceptionEvent.java,
7705 javax/naming/spi/ResolveResult.java:
7708 2004-04-21 Mark Wielaard <mark@klomp.org>
7710 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
7711 Changed C++ comments into C comments. Removed commented out code.
7712 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7714 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
7716 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
7718 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
7720 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
7722 * native/jni/gtk-peer/gthread-jni.c:
7725 2004-04-21 Mark Wielaard <mark@klomp.org>
7727 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
7728 static fields defined in interface.
7729 * javax/awt/JDialog.java: Likewise.
7730 (JDialog): Make constructors public.
7731 (getDefaultCloseOperation): Make public.
7732 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
7733 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
7734 * javax/swing/JViewport.java (JViewport): Make constructor public.
7736 2004-04-21 Michael Koch <konqueror@gmx.de>
7738 * java/util/Map.java
7739 (Entry): Removed redundant "static" modifier.
7740 * java/text/AttributedCharacterIterator.java:
7741 Updated copyright year.
7743 2004-04-20 Michael Koch <konqueror@gmx.de>
7745 * javax/naming/directory/SearchControls.java:
7746 Don't explicitely extend java.lang.Object.
7747 * javax/naming/spi/DirStateFactory.java:
7748 Merged copyright year with GNU classpath.
7750 2004-04-20 Michael Koch <konqueror@gmx.de>
7752 * java/nio/channels/Channels.java:
7753 Merged coding style with GNU classpath.
7755 2004-04-20 Michael Koch <konqueror@gmx.de>
7757 * java/net/ServerSocket.java
7758 Merged coding style from GNU classpath.
7760 2004-04-20 Michael Koch <konqueror@gmx.de>
7762 * java/io/BufferedWriter.java:
7763 Reordered variables to be at top of the class.
7764 (localFlush): Removed redundant final keyword.
7766 2004-04-20 Ingo Proetel <proetel@aicas.com>
7768 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
7770 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7772 * java/text/DecimalFormat.java (scanFix): Removed suffix check
7773 for percent and permill check.
7775 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7777 * java/text/FieldPosition.java
7778 (FieldPosition) Constructor now behaves as it should according
7779 to the java documentation.
7781 2004-04-20 Mark Wielaard <mark@klomp.org>
7783 * java/util/Properties.java: Use the word umlaut, not ä in api
7786 2004-04-20 Michael Koch <konqueror@gmx.de>
7788 * java/nio/Buffer.java,
7789 java/nio/channels/AlreadyConnectedException.java,
7790 java/nio/channels/AsynchronousCloseException.java,
7791 java/nio/channels/ByteChannel.java,
7792 java/nio/channels/CancelledKeyException.java,
7793 java/nio/channels/Channel.java,
7794 java/nio/channels/Channels.java,
7795 java/nio/channels/ClosedByInterruptException.java,
7796 java/nio/channels/ClosedChannelException.java,
7797 java/nio/channels/ClosedSelectorException.java,
7798 java/nio/channels/ConnectionPendingException.java,
7799 java/nio/channels/DatagramChannel.java,
7800 java/nio/channels/FileChannel.java,
7801 java/nio/channels/FileLock.java,
7802 java/nio/channels/FileLockInterruptionException.java,
7803 java/nio/channels/GatheringByteChannel.java,
7804 java/nio/channels/IllegalBlockingModeException.java,
7805 java/nio/channels/IllegalSelectorException.java,
7806 java/nio/channels/InterruptibleChannel.java,
7807 java/nio/channels/NoConnectionPendingException.java,
7808 java/nio/channels/NonReadableChannelException.java,
7809 java/nio/channels/NonWritableChannelException.java,
7810 java/nio/channels/NotYetBoundException.java,
7811 java/nio/channels/NotYetConnectedException.java,
7812 java/nio/channels/OverlappingFileLockException.java,
7813 java/nio/channels/Pipe.java,
7814 java/nio/channels/ReadableByteChannel.java,
7815 java/nio/channels/ScatteringByteChannel.java,
7816 java/nio/channels/SelectableChannel.java,
7817 java/nio/channels/SelectionKey.java,
7818 java/nio/channels/Selector.java,
7819 java/nio/channels/ServerSocketChannel.java,
7820 java/nio/channels/SocketChannel.java,
7821 java/nio/channels/UnresolvedAddressException.java,
7822 java/nio/channels/UnsupportedAddressTypeException.java,
7823 java/nio/channels/WritableByteChannel.java,
7824 java/nio/channels/spi/AbstractInterruptibleChannel.java,
7825 java/nio/channels/spi/AbstractSelectableChannel.java,
7826 java/nio/channels/spi/AbstractSelectionKey.java,
7827 java/nio/channels/spi/AbstractSelector.java,
7828 java/nio/channels/spi/SelectorProvider.java,
7829 java/nio/charset/spi/CharsetProvider.java:
7830 Fixed javadocs and jalopied all over java.nio.
7832 2004-04-20 Michael Koch <konqueror@gmx.de>
7834 * java/nio/ByteBufferImpl.java,
7835 java/nio/CharBufferImpl.java,
7836 java/nio/DirectByteBufferImpl.java,
7837 java/nio/DoubleBufferImpl.java,
7838 java/nio/DoubleViewBufferImpl.java,
7839 java/nio/FloatBufferImpl.java,
7840 java/nio/FloatViewBufferImpl.java,
7841 java/nio/IntBufferImpl.java,
7842 java/nio/IntViewBufferImpl.java,
7843 java/nio/LongBufferImpl.java,
7844 java/nio/LongViewBufferImpl.java,
7845 java/nio/MappedByteBufferImpl.java,
7846 java/nio/ShortBufferImpl.java,
7847 java/nio/ShortViewBufferImpl.java:
7848 Made sure all classes are final and removed final keyword from all
7851 2004-04-20 Michael Koch <konqueror@gmx.de>
7853 * java/rmi/MarshalledObject.java,
7854 java/rmi/Naming.java,
7855 java/rmi/RemoteException.java,
7856 java/rmi/activation/ActivationException.java,
7857 java/rmi/server/ServerCloneException.java,
7858 java/security/AccessController.java,
7859 java/security/AlgorithmParameterGenerator.java,
7860 java/security/AlgorithmParameters.java,
7861 java/security/CodeSource.java,
7862 java/security/Identity.java,
7863 java/security/IdentityScope.java,
7864 java/security/KeyPairGenerator.java,
7865 java/security/KeyStore.java,
7866 java/security/Security.java,
7867 java/security/Signature.java,
7868 java/security/SignatureSpi.java,
7869 java/security/SignedObject.java,
7870 java/security/spec/DSAParameterSpec.java,
7871 java/security/spec/DSAPrivateKeySpec.java,
7872 java/security/spec/DSAPublicKeySpec.java,
7873 java/sql/Array.java,
7874 java/sql/DatabaseMetaData.java,
7875 java/sql/ResultSet.java,
7876 java/text/ChoiceFormat.java,
7877 java/text/CollationElementIterator.java,
7878 java/text/CollationKey.java,
7879 java/text/Collator.java,
7880 java/text/DateFormat.java,
7881 java/text/DateFormatSymbols.java,
7882 java/text/DecimalFormatSymbols.java,
7883 java/text/Format.java,
7884 java/text/ParsePosition.java,
7885 java/text/RuleBasedCollator.java,
7886 java/text/SimpleDateFormat.java,
7887 java/text/StringCharacterIterator.java,
7888 java/util/Collections.java,
7889 java/util/PropertyResourceBundle.java,
7890 java/util/ResourceBundle.java,
7891 java/util/StringTokenizer.java,
7892 java/util/jar/Attributes.java,
7893 java/util/logging/ConsoleHandler.java,
7894 java/util/logging/LogManager.java,
7895 java/util/logging/MemoryHandler.java,
7896 java/util/logging/SocketHandler.java,
7897 javax/naming/NamingException.java:
7898 Fixed javadoc, coding style and argument names all over.
7900 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7902 * java/io/FileDescriptor.java: (FileDescriptor) Added public
7903 constructor. (valid) Added null check.
7905 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7907 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
7908 * java/io/FileOutputStream.java
7909 (FileOutputStream) Reorganized constructors. Constructors now
7910 check whether the given path is directory.
7912 2004-04-20 Michael Koch <konqueror@gmx.de>
7914 * java/net/Authenticator.java,
7915 java/net/BindException.java,
7916 java/net/ConnectException.java,
7917 java/net/ContentHandler.java,
7918 java/net/ContentHandlerFactory.java,
7919 java/net/DatagramPacket.java,
7920 java/net/DatagramSocket.java,
7921 java/net/DatagramSocketImpl.java,
7922 java/net/DatagramSocketImplFactory.java,
7923 java/net/FileNameMap.java,
7924 java/net/HttpURLConnection.java,
7925 java/net/Inet4Address.java,
7926 java/net/Inet6Address.java,
7927 java/net/InetAddress.java,
7928 java/net/InetSocketAddress.java,
7929 java/net/JarURLConnection.java,
7930 java/net/MalformedURLException.java,
7931 java/net/MulticastSocket.java,
7932 java/net/NetPermission.java,
7933 java/net/NetworkInterface.java,
7934 java/net/NoRouteToHostException.java,
7935 java/net/PasswordAuthentication.java,
7936 java/net/PortUnreachableException.java,
7937 java/net/ProtocolException.java,
7938 java/net/ServerSocket.java,
7939 java/net/Socket.java,
7940 java/net/SocketAddress.java,
7941 java/net/SocketException.java,
7942 java/net/SocketImpl.java,
7943 java/net/SocketImplFactory.java,
7944 java/net/SocketOptions.java,
7945 java/net/SocketPermission.java,
7946 java/net/SocketTimeoutException.java,
7948 java/net/URISyntaxException.java,
7950 java/net/URLClassLoader.java,
7951 java/net/URLConnection.java,
7952 java/net/URLDecoder.java,
7953 java/net/URLEncoder.java,
7954 java/net/URLStreamHandler.java,
7955 java/net/URLStreamHandlerFactory.java,
7956 java/net/UnknownHostException.java,
7957 java/net/UnknownServiceException.java:
7958 Fixed javadocs, coding style and argument names all over.
7960 2004-04-20 Michael Koch <konqueror@gmx.de>
7962 * java/lang/Byte.java,
7963 java/lang/CharSequence.java,
7964 java/lang/ClassLoader.java,
7965 java/lang/Compiler.java,
7966 java/lang/Double.java,
7967 java/lang/Float.java,
7968 java/lang/Integer.java,
7969 java/lang/Long.java,
7970 java/lang/Math.java,
7971 java/lang/Number.java,
7972 java/lang/Package.java,
7973 java/lang/Runtime.java,
7974 java/lang/RuntimePermission.java,
7975 java/lang/SecurityManager.java,
7976 java/lang/Short.java,
7977 java/lang/StringBuffer.java,
7978 java/lang/System.java,
7979 java/lang/ThreadGroup.java,
7980 java/lang/Throwable.java,
7981 java/lang/reflect/InvocationHandler.java,
7982 java/lang/reflect/Proxy.java:
7983 Fixed javadocs, coding style and argument names all over.
7985 2004-04-20 Michael Koch <konqueror@gmx.de>
7987 * java/io/BufferedWriter.java,
7988 java/io/ByteArrayInputStream.java,
7989 java/io/CharArrayWriter.java,
7990 java/io/DataInput.java,
7991 java/io/DataInputStream.java,
7993 java/io/FilterInputStream.java,
7994 java/io/InputStream.java,
7995 java/io/InputStreamReader.java,
7996 java/io/ObjectInputStream.java,
7997 java/io/ObjectStreamClass.java,
7998 java/io/PipedInputStream.java,
7999 java/io/PipedReader.java,
8000 java/io/PushbackInputStream.java,
8001 java/io/PushbackReader.java,
8002 java/io/RandomAccessFile.java,
8003 java/io/SerializablePermission.java,
8004 java/io/StreamTokenizer.java,
8005 java/io/StringWriter.java,
8006 java/io/WriteAbortedException.java,
8007 java/io/Writer.java:
8008 Fixed javadocs all over, rename arguments to match javadocs,
8011 2004-04-20 Ingo Proetel <proetel@aicas.com>
8013 * java/awt/FontMetrics.java:
8014 (charsWidth): fixed accumulation of total_width
8015 (getWidth): simple default implementation
8016 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
8017 in Rectangle constructor.
8018 * java/awt/image/Raster.java (toString): Added method.
8019 * java/awt/image/SampleModel.java (<init>): Added error cause
8020 information to thrown exception.
8021 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
8023 (setDataElements): New method.
8024 (setPixels): New method.
8025 (toString): New method.
8027 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
8029 * java/awt/image/ComponentColorModel.java
8030 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
8031 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
8032 Mauve tests on this method. Improved documentation.
8034 2004-04-20 Michael Koch <konqueror@gmx.de>
8036 * javax/swing/JLayeredPane.java,
8037 javax/swing/plaf/BorderUIResource.java,
8038 javax/swing/plaf/ComponentUI.java,
8039 javax/swing/undo/CompoundEdit.java,
8040 javax/swing/undo/StateEdit.java:
8041 Fixed HTML tags in javadocs all over.
8043 2004-04-20 Michael Koch <konqueror@gmx.de>
8045 * javax/print/attribute/EnumSyntax.java
8046 (getOffset): Made protected.
8047 * javax/print/attribute/HashAttributeSet.java
8048 (HashAttributeSet): Likewise.
8049 * javax/print/attribute/ResolutionSyntax.java
8050 (getFeedResolution): Fixed typo in exception name.
8051 (getCrossFeedResolution): Likewise.
8052 * javax/print/attribute/SetOfIntegerSyntax.java
8053 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
8054 * javax/print/attribute/TextSyntax.java
8055 (TextSyntax): Handle locale correctly.
8056 (hashCode): Calc better hashcode value.
8057 (equals): Fixed @return tag.
8058 (toString): New method.
8060 2004-04-20 Michael Koch <konqueror@gmx.de>
8062 * gnu/java/nio/FileLockImpl.java
8063 (static): Removed, not needed anymore.
8064 * gnu/java/nio/channels/FileChannelImpl.java
8065 (FileChannelImpl): Made final.
8066 (mode): Made private.
8067 (READ, WRITE, APPEND): Made public.
8068 (EXCL, SYNC, DSYNC): Likewise.
8069 (static): Load native JNI library, when needed.
8070 (length): Unused, removed.
8071 (available): Made public.
8072 (implPosition): Throws IOException.
8074 (implTruncate): Likewise.
8078 2004-04-20 Michael Koch <konqueror@gmx.de>
8080 * java/awt/AWTPermission.java,
8081 java/awt/Component.java,
8082 java/awt/ComponentOrientation.java,,
8083 java/awt/Dialog.java,
8084 java/awt/FontMetrics.java,
8085 java/awt/Graphics.java,
8086 java/awt/datatransfer/DataFlavor.java,
8087 java/beans/Introspector.java,
8088 java/beans/PropertyEditor.java,
8089 java/beans/PropertyEditorManager.java,
8090 java/beans/beancontext/BeanContextServiceProvider.java:
8091 Fixed HTML tags in javadocs all over.
8093 2004-04-20 Mark Wielaard <mark@klomp.org>
8095 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
8096 MissingResourceException is thrown.
8097 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
8098 null when a MissingResourceException is thrown. Should never happen.
8100 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
8102 * java/awt/image/DataBufferShort.java,
8103 java/awt/image/DataBufferFloat.java,
8104 java/awt/image/DataBufferDouble.java,
8105 java/awt/image/PixelInterleavedSampleModel.java: New files.
8106 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
8107 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
8109 2004-04-20 Michael Koch <konqueror@gmx.de>
8111 * Makefile.am (java_source_files): Added
8112 java/awt/image/DataBufferDouble.java,
8113 java/awt/image/DataBufferFloat.java,
8114 java/awt/image/DataBufferShort.java and
8115 java/awt/image/PixelInterleavedSampleModel.java.
8116 * Makefile.in: Regenerated.
8118 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
8120 * gcj/cni.h (JvAllocObject): Remove these obsolete,
8121 undocumented CNI calls.
8122 * include/java-interp.h (_Jv_InterpClass): No longer
8123 extends java.lang.Class.
8124 * java/lang/Class.h (Class): Add new field `aux_info'.
8125 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
8126 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
8127 Use Class->aux_info instead.
8128 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
8129 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
8130 Use Class->aux_info instead.
8131 * java/io/natObjectInputStream.cc (allocateObject): Use
8133 * java/lang/natClass.cc (newInstance): Likewise.
8134 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
8135 * java/lang/natObject.cc (clone): Likewise.
8136 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
8137 * java/lang/natVMClassLoader.cc (defineClass): Don't use
8138 JvAllocObject. Allocate klass->aux_info here for interpreted
8141 2004-04-17 Mark Wielaard <mark@klomp.org>
8143 * javax/swing/JToggleButton.java (ToggleButtonModel):
8144 Make public static inner class.
8145 * javax/swing/JTabbedPane.java (setComponentAt):
8146 Call Page.setComponent().
8147 (SCROLL_TAB_LAYOUT): Make public, value is 1.
8148 (WRAP_TAB_LAYOUT): Make public, value is 0.
8149 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
8150 Make private static inner class.
8152 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
8154 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
8155 arguments to match new signature. Remove FIXME comments.
8157 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
8159 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
8161 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
8164 2004-04-02 Olga Rodimina <rodimina@redhat.com>
8166 * Makefile.am: Added new file.
8167 * Makefile.in: Regenerate.
8168 * javax/swing/ImageIcon.java:
8169 (ImageIcon(file)): set description of the icon
8171 * javax/swing/JCheckBoxMenuItem.java:
8172 Mostly Implemented. Work in progress.
8173 * javax/swing/JRadioButtonMenuItem.java:
8174 Reimplement constructors to use JToggleButtonModel.
8175 * javax/swing/plaf/basic/BasicIconFactory.java:
8176 (getCheckBoxMenuItemIcon): return check box
8178 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8179 paint menu item selected only when it is armed and
8182 2004-04-02 David Jee <djee@redhat.com>
8184 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
8185 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
8186 * java/awt/Component.java
8187 (add): Set the parent of the popup as this component.
8188 * java/awt/PopupMenu.java
8189 (addNotify): Create popup menu when peer is null.
8190 (show): Call addNotify() if peer is null.
8191 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
8192 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
8193 argument for gtk_menu_popup() as zero. This causes the popup menu to
8194 respond to any mouse button.
8196 2004-03-31 Olga Rodimina <rodimina@redhat.com>
8198 * Makefile.am: Added new file.
8199 * Makefile.in: Regenerate.
8200 * javax/swing/JRadioButtonMenuItem.java:
8202 * javax/swing/plaf/basic/BasicIconFactory.java:
8203 (getRadioButtonMenuItemIcon): Return
8205 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8206 (getPreferredSize): Add size of checkIcon if it
8208 (installDefaults): Don't initialize checkIcon.
8209 It's value will be set in subclasses.
8210 (uninstallDefaults): remove uninstallation of
8212 (paint): Moved code to paintMenuItem().
8213 (paintMenuItem): Implemented.
8214 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
8215 UI delegate for JRadioButtonMenuItem.
8217 2004-03-29 Olga Rodimina <rodimina@redhat.com>
8219 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8220 Corrected position of the accelerator.
8222 2004-03-29 Olga Rodimina <rodimina@redhat.com>
8224 * Makefile.am: Added new file.
8225 * Makefile.in: Regenerate.
8226 * javax/swing/JMenuItem.java: Partly
8227 implemented. Work in progress
8228 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8229 Changed default value of acceleratorDelimiter.
8230 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8231 New class. Partly implemented.
8233 2004-03-26 Mark Wielaard <mark@klomp.org>
8235 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8236 (item_activate): Declare label before use.
8237 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8238 (gtkSetFont): Removed unused variable label.
8239 (addExposeFilter): Declare variables before use.
8240 (removeExposeFilter): Likewise.
8241 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8242 (ok_clicked): Declare str_fileName before use.
8244 2004-03-26 David Jee <djee@redhat.com>
8246 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
8247 (addSeparator): Remove.
8248 * java/awt/Menu.java
8249 (separator): Remove static final MenuItem field.
8250 (separatorLabel): New static final String field.
8251 (addSeparator): Do not use peer method; use add(MenuItem) instead.
8252 Use separatorLabel to denote that it is a separator.
8253 (insertSeparator): Create a new MenuItem with separatorLabel, instead
8254 of reusing the static separator instance, because a MenuItem instance
8255 can't be added more than once without being cloned.
8256 * java/awt/peer/MenuPeer.java
8257 (addSeparator): Remove from interface.
8259 2004-03-26 David Jee <djee@redhat.com>
8261 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
8262 (connectSignals): New native method declaration.
8263 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
8264 * java/awt/MenuItem.java
8265 (getActionCommand): Return the label if the action command is not set.
8266 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
8267 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
8268 gtk_menu_shell_append().
8269 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
8270 (item_activate): Fix argument type.
8271 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
8273 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
8275 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
8276 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
8277 given. Add the menu widget's top-level GtkWindow to the global window
8278 group, so it can grab the pointer.
8279 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
8280 gtk_menu_shell_append().
8282 2004-03-23 Graydon Hoare <graydon@redhat.com>
8284 * java/text/AttributedString.java
8285 (addAttribute): Fix off-by-one.
8286 (getIterator): Likewise.
8287 * java/text/AttributedStringIterator.java
8288 (getRunLimit): Correct logic.
8289 (getRunStart): Likewise.
8290 (getAttribute): Fix inequality.
8291 (getAttributes): Likewise.
8292 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
8294 2004-03-23 Kim Ho <kho@redhat.com>
8296 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
8297 (calculateSizes): Return real width and height.
8299 2004-03-23 Kim Ho <kho@redhat.com>
8301 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
8302 (calculateTabRects): Set the selectedRun before
8303 trying to rotate tabs.
8305 2004-03-23 Kim Ho <kho@redhat.com>
8307 * Makefile.am: New file
8308 * Makefile.in: Regenerate
8309 * java/awt/Graphics.java: (drawRect):
8310 Draw to the correct point.
8311 * javax/swing/DefaultSingleSelectionModel.java
8312 (isSelected): Return true if the selected index
8314 * javax/swing/JLabel.java: Do not change mnemonic
8315 index if text is null.
8316 * javax/swing/JProgressBar.java: Use JComponent's
8318 * javax/swing/JScrollBar.java: Ditto.
8319 * javax/swing/JSlider.java: Ditto.
8320 * javax/swing/JTabbedPane.java: Reimplement.
8321 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8322 Add defaults for TabbedPane.
8323 * javax/swing/plaf/basic/BasicArrowButton.java:
8325 * javax/swing/plaf/basic/BasicProgressBarUI.java:
8326 (paintDeterminate): Don't paint String if it's
8328 (paintIndeterminate): ditto.
8329 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
8332 2004-03-19 Michael Koch <konqueror@gmx.de>
8334 * java/awt/image/AffineTransformOp.java
8335 (AffineTransformOp): Made public.
8336 * javax/swing/JComponent.java
8337 (listenerList): Made protected.
8338 (accessibleContext): Likewise.
8339 * javax/swing/JList.java
8340 (valueChanged): Dont use internal fields of ListSelectionEvent.
8341 * javax/swing/JViewport.java
8342 (getView): Dont use internal fields of Component.
8343 (addImpl): Likewise.
8344 * javax/swing/Timer.java
8345 (isRunning): Made public.
8348 * javax/swing/UIDefaults.java
8349 (getInt): Made public.
8350 * javax/swing/plaf/basic/BasicListUI.java
8351 (mousePressed): Dont use internal fields of MouseEvent.
8352 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
8353 * javax/swing/plaf/basic/BasicScrollBarUI.java
8354 (arrowIcon): Made static.
8355 * javax/swing/plaf/basic/BasicViewportUI.java
8356 (stateChanged): Dont use internal field on ChangeEvent.
8357 * javax/swing/text/JTextComponent.java
8358 (getUI): Call UIManager.getUI().
8359 (updateUI): Use getUI().
8361 2004-03-19 Graydon Hoare <graydon@redhat.com>
8363 * javax/swing/JComponent.java: Turn off double buffer by default.
8364 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
8365 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8366 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
8367 Use cairo to copy areas.
8368 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
8369 Initialize and set clip region.
8371 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
8373 * java/applet/Applet.java (preferredSize): Override deprecated
8374 variant of getPreferredSize.
8375 (minimumSize): Override deprecated variant of getMinimumSize.
8377 2004-03-15 Olga Rodimina <rodimina@redhat.com>
8379 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8380 (drawImage(img,xform,bgcolor,obs)): New Method.
8381 Helper function that every drawImage method will
8383 (drawRaster): Added new parameter, bgcolor. All
8384 transparent pixels are changed to bgcolor before
8386 (drawRenderedImage): Fixed to use changed drawRaster().
8387 (drawImage(image,xform,obs): Fixed to use new helper function
8388 (drawImage(image,op,x,y)): Ditto.
8389 (drawImage (img,x,y,observer)): Ditto.
8390 ((PainterThread) bgcolor): New Field.
8391 ((PainterThread) (setPixels)): Changed all transparent pixels
8393 (drawImage(img,x,y,width,height,bgcolor,observer)):
8394 Fixed FIXME - all the transparent pixels are
8395 changed to the specified bgcolor.
8396 (drawImage(img, x, y, width, height, observer): Changed to
8398 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
8399 Fixed FIXME- changed all transparent pixels to bgcolor.
8400 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
8401 Changed to use function above.
8403 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
8405 * java/applet/Applet.java (dimensions): New field.
8406 (getDimensions): New method.
8407 (getPreferredSize): Call getDimensions.
8408 (getMinimumSize): Likewise.
8410 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8412 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
8413 * jni/classpath/jnilink.c: Likewise.
8415 * java/applet/Applet.java (getPreferredSize): New method.
8416 (getMinimumSize): New method.
8418 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
8420 * prims.cc (_Jv_AllocObject): Remove `size' argument.
8421 (_Jv_AllocObjectNoFinalizer): Likewise.
8422 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
8423 (_Jv_AllocPtrFreeObject): Likewise.
8424 (_Jv_AllocString): Moved from natString.cc. Call collector interface
8425 directly even in the JVMPI case.
8426 * gcj/cni.h (JvAllocObject): Remove `size' argument from
8427 _Jv_AllocObject calls.
8428 * gcj/javaprims.h: Update prototypes.
8429 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
8430 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
8431 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
8433 2004-04-14 Andrew Haley <aph@redhat.com>
8434 Bryce McKinlay <mckinlay@redhat.com>
8436 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
8437 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
8438 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
8440 * testsuite/libjava.lang/InvokeInterface.java: New file.
8441 * testsuite/libjava.lang/InvokeInterface.out: New file.
8443 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
8445 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
8447 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
8448 StackTraceElement directly.
8449 (newElement): New native helper method to create StackTraceElement
8450 bypassing Java access control.
8451 (createStackTraceElement): Use newElement() instead of directly
8452 calling StackTraceElement's constructor.
8453 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
8455 2004-04-01 Michael Koch <konqueror@gmx.de>
8457 * java/lang/SecurityManager.java
8458 (checkAwtEventQueueAccess): Implemented.
8460 2004-04-01 Gary Benson <gbenson@redhat.com>
8462 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
8463 (_Jv_SearchMethodInClass): Likewise.
8465 2004-03-26 Peter Moon <peterm@miraculum.com>
8467 * java/text/NumberFormat.java: Fix spelling of setCurrency
8470 2004-03-21 Anthony Green <green@redhat.com>
8472 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
8473 recursion when searching for the system ClassLoader.
8475 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
8477 * java/net/ServerSocket.java
8478 (accept): Close the socket when error occured.
8480 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
8482 * java/net/URI.java (parseURI): Added unquoting.
8483 (unquote): New method.
8484 (quoteAuthority): Implemented.
8485 (quote(String,String)): New method.
8486 (quotePath): Implemented.
8487 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
8488 (getSchemeSpecificPart): Removed FIXME comment.
8489 (getRawAuthority): Return new rawAuthority field.
8490 (getAuthority): Removed FIXME comment.
8491 (getRawUserInfo): Return new rawUserInfo field.
8492 (getUserInfo): Removed FIXME comment.
8493 (getRawPath): Return new rawPath field.
8494 (getPath): Removed FIXME comment.
8495 (getRawQuery): Return new rawQuery field.
8496 (getQuery): Removed FIXME comment.
8497 (getRawFragment): Return new rawFragment field.
8498 (getFragment): Removed FIXME comment.
8500 2004-03-20 Michael Koch <konqueror@gmx.de>
8502 * java/net/URLConnection.java: Merged copyright year with classpath.
8504 2004-03-20 Norbert Frese <postfach@nfrese.net>
8506 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
8507 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
8508 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
8510 (getObjectInputStream): Return object reference, throw IOException if null.
8511 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
8512 (getObjectOutputStream): Return object reference, throw IOException if null.
8513 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
8514 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
8515 (UnicastConnectionManager): Throw RemoteException if port is not available.
8516 (getInstance): Throw RemoteException.
8517 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
8518 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
8519 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8520 Collect Exceptions which are returned by a rmi-call and fix void returns.
8521 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
8522 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8523 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
8524 (dispatch): Answer ping messages which are sent by other java implementions.
8525 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
8526 for every rmi-message and fix void return problems.
8527 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
8528 (UnicastServerRef): Throw RemoteException.
8529 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
8530 In some situations it is necessary to export a subclass of the class which has the _Stub.
8531 For instance when the class with has the _Stub is abstract.
8532 (findStubSkelClass): New method which looks for the class which has the _Stub.
8533 (getClientHost): Implementated.
8534 * gcc/libjava/java/rmi/server/RemoteServer.java
8535 (getClientHost): Implementated.
8536 * gcc/libjava/Makefile.am (rmi_java_source_files):
8537 Added gnu/java/rmi/server/RMIIncomingThread.java.
8538 * Makefile.in: Regenerated.
8540 2004-03-20 Michael Koch <konqueror@gmx.de>
8542 * java/net/InetAddress.java
8543 (getLocalHostname): Added javadoc.
8545 2004-03-19 Per Bothner <per@bothner.com>
8547 * configure.in: FILE variable overrides FLATFORM when linking
8548 natFileChannelXXX.cc.
8550 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
8551 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
8553 2004-03-19 Per Bothner <per@bothner.com>
8555 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
8556 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
8557 * Makefile.am: Update accordingly.
8558 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
8559 as aliases for UnicodeLittle and UnicodeBig.
8561 2004-03-20 Mark Wielaard <mark@klomp.org>
8563 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8564 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
8565 Don't access ws when it is null.
8566 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
8569 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
8571 * java/lang/ThreadGroup.java (list): Changed print to println.
8573 2004-03-19 Mark Wielaard <mark@klomp.org>
8575 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
8578 2004-02-10 Randolph Chung <tausq@debian.org>
8580 * configure.in: Build java for hppa target.
8581 * configure: Regenerate.
8582 * libjava/configure.host (hppa-*): Add target.
8583 * libjava/sysdeps/pa/lock.h: New file.
8585 2004-03-19 Mark Wielaard <mark@klomp.org>
8587 Reported by Stephen Crawley
8588 * java/io/FilePermission.java (implies): Use String.length() -1 to
8589 access last char of String.
8591 2004-03-19 Michael Koch <konqueror@gmx.de>
8593 * java/awt/image/AffineTransformOp.java
8594 (AffineTransformOp): Made public.
8595 * javax/swing/JComponent.java
8596 (listenerList): Made protected.
8597 (accessibleContext): Likewise.
8598 * javax/swing/JList.java
8599 (valueChanged): Dont use internal fields of ListSelectionEvent.
8600 * javax/swing/JViewport.java
8601 (getView): Dont use internal fields of Component.
8602 (addImpl): Likewise.
8603 * javax/swing/Timer.java
8604 (isRunning): Made public.
8607 * javax/swing/UIDefaults.java
8608 (getInt): Made public.
8609 * javax/swing/plaf/basic/BasicListUI.java
8610 (mousePressed): Dont use internal fields of MouseEvent.
8611 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
8612 * javax/swing/plaf/basic/BasicScrollBarUI.java
8613 (arrowIcon): Made static.
8614 * javax/swing/plaf/basic/BasicViewportUI.java
8615 (stateChanged): Dont use internal field on ChangeEvent.
8616 * javax/swing/text/JTextComponent.java
8617 (getUI): Call UIManager.getUI().
8618 (updateUI): Use getUI().
8620 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8622 * verify.cc: Undef PC.
8624 2004-03-18 Michael Koch <konqueror@gmx.de>
8626 * java/nio/channels/spi/AbstractSelectableChannel.java
8627 (keys): Initialize at declaration.
8628 (locate): keys cant be null.
8630 (addSelectionKey): New method.
8631 (removeSelectionKey): New method.
8632 * java/nio/channels/spi/AbstractSelectionKey.java
8633 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
8634 * java/nio/channels/spi/AbstractSelector.java
8635 (provider): Javadoc added.
8636 (cancelledKeys): Javadoc added.
8637 (cancelKey): Javadoc added, add key to cancelledKeys.
8638 (deregister): Implemented.
8640 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8642 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
8643 MAP_FAILED to void *.
8645 2004-03-12 Graydon Hoare <graydon@redhat.com>
8647 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
8648 * javax/swing/JComponent.java (paint): Use persistent double buffer.
8649 * javax/swing/JList.java (ListListener): Revalidate on changes.
8650 * javax/swing/JScrollPane.java: Reimplement.
8651 * javax/swing/JViewport.java: Reimplement.
8652 * javax/swing/ScrollPaneLayout.java: Reimplement.
8653 * javax/swing/ViewportLayout.java: Tidy up.
8654 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
8655 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
8656 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
8657 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
8660 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
8662 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8663 (window_wm_protocols_filter): New function.
8664 (window_focus_in_cb): Remove function.
8665 (window_focus_out_cb): Likewise.
8666 (window_focus_or_active_state_change_cb): New function.
8667 (create): Add filter that removes WM_TAKE_FOCUS client messages.
8668 (connectSignals): Don't attach handlers to focus-in-event or
8669 focus-out-event signals. Handle notify signal.
8671 2004-03-11 David Jee <djee@redhat.com>
8673 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8674 (gtkSetLabel): New native method declaration.
8675 (setLabel): Use gtkSetLabel.
8676 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8677 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
8679 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
8681 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
8682 black when color argument is null.
8684 2004-03-10 Kim Ho <kho@redhat.com>
8686 * java/awt/Container.java: Remove check
8689 2004-03-10 Kim Ho <kho@redhat.com>
8691 * java/awt/Container.java: (visitChild):
8692 Remove candidate clip. Use the component
8694 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8695 (handleEvent): Use the PaintEvent's clip.
8697 2004-03-10 Kim Ho <kho@redhat.com>
8699 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8700 (handleEvent): Don't set the clip for the
8703 2004-03-09 Graydon Hoare <graydon@redhat.com>
8705 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
8706 Fix double <-> fixed macros, reset font transform.
8707 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
8710 2004-03-09Â Kim Ho <kho@redhat.com>
8712 * java/awt/Container.java: (visitChild): Move
8713 the x and y coordinate of the component rectangle
8714 to correct position.
8715 (handleEvent): Forward drag events to the pressed
8717 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8719 (ArrowButtonListener::mousePressed): Stop the
8721 (mouseDragged): Implement.
8722 (TrackListener::mousePressed): Only react if
8723 the press doesn't occur on the thumb, otherwise
8724 just set the offset.
8725 (TrackListener::mouseReleased): Unset the isAdjusting
8727 (createIncreaseIcon): Switch icon.
8728 (createDecreaseIcon): Switch icon.
8729 (calculatePreferredSize): Use width.
8730 (getThumbBounds): Use the top as the lower value.
8731 (layoutVScrollBar): Switch the button locations.
8732 (paintIncreaseHighlight): Paint correct side of thumb.
8733 (paintDecreaseHighlight): ditto.
8734 (valueForYPosition): Use top as the lower value.
8735 * javax/swing/plaf/basic/BasicSliderUI.java:
8737 (mouseDragged): Implement.
8738 (mousePressed): Only react when the thumb isn't
8739 pressed, otherwise just set offset.
8740 (mouseReleased): Handle a release of the thumb.
8741 (scrollDueToClickInTrack): Stop the timer first.
8742 * javax/swing/JProgressBar.java:
8743 (setString): Fix change condition.
8744 * javax/swing/JSeparator.java:
8747 2004-03-08 David Jee <djee@redhat.com>
8749 * java/awt/image/AffineTransformOp.java:
8750 (filter): Use Graphics2D interface instead of directly using the
8753 2004-03-05 David Jee <djee@redhat.com>
8755 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
8756 (handleEvent): Action events are generated upon MOUSE_RELEASED.
8757 * java/awt/Container.java
8758 (acquireComponentForMouseEvent): Fixed.
8759 (handleEvent): Fixed.
8760 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8761 (state_to_awt_mods_with_button_states): New method.
8762 (pre_event_handler): Fixed mouse event generation.
8764 2004-03-05 Olga Rodimina <rodimina@redhat.com>
8766 gnu/java/awt/peer/gtk/GdkGraphics2D.java
8767 (GdkGraphics2D (BufferedImage)): Initialize
8768 pixmap associated with specified BufferedImage.
8769 (setPaint): Changed implementation of Texture
8770 Paint to use AffineTransformOp.
8771 * java/awt/image/AffineTransformOp.java
8772 (createCompatibleDestRaster): Throw RasterFormatException
8773 if resulting width or height of raster is 0.
8775 2004-03-04 Olga Rodimina <rodimina@redhat.com>
8777 * java/awt/image/AffineTransformOp.java:
8778 Removed unnecessary field interpolationType.
8779 Formatted some of the lines to be consistent with
8781 (AffineTransformOp): Create new RenderingHints
8782 containing specified interpolation type.
8783 (createCompatibleDestImage): Implemented.
8784 (createCompatibleDestRaster): Implemented.
8785 (filter): Implemented.
8786 (getBounds2D(BufferedImage)): Implemented.
8787 (getBounds2D(Raster)): Implemented.
8788 (getInterpolationType): Get interpolation value from
8791 2004-03-04 David Jee <djee@redhat.com>
8793 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8794 (setFont): Check if child peers are null.
8796 2004-03-04 Graydon Hoare <graydon@redhat.com>
8798 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
8800 (libjava_arguments): Add new libraries to argument list.
8802 2004-03-02 Olga Rodimina <rodimina@redhat.com>
8804 * Makefile.am: Added java/awt/image/AffineTransformOp.java
8805 * Makefile.in: Re-generated.
8806 * java/awt/image/AffineTransformOp.java: New Class.
8808 2004-03-01 Olga Rodimina <rodimina@redhat.com>
8810 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8811 (setPaint): Interpret correctly TexturePaint's
8813 (drawImage): Fixed scale factors of the affine
8816 2004-02-27 David Jee <djee@redhat.com>
8818 * gnu/java/awt/peer/gtk/GdkGraphics.java
8819 (GdkGraphics(Component)): Inherit font from component.
8820 (drawString): Use font style.
8821 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8822 (gtkSetFont): New native method declaration.
8823 (setFont): New method.
8824 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8825 (gtkSetFont): New native method declaration.
8826 (setFont): Call new native method gtkSetFont.
8827 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8828 (setFont): For all child components who do not their fonts set,
8829 set their peers' fonts with this container's font.
8830 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
8831 Move all native method declarations to the top for readability.
8832 (gtkSetFont): New native method declaration.
8833 (setFont): New method.
8834 * java/awt/Component.java
8835 (setFont): Invalidate after setting the font.
8836 * java/awt/Container.java
8837 (invalidateTree): New method.
8838 (setFont): Invalidate the container tree after setting the font.
8839 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
8840 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
8841 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8842 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
8843 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8844 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
8845 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
8846 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
8848 2004-02-27 Olga Rodimina <rodimina@redhat.com>
8850 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8851 (updateBufferedImage): New helper function.
8852 Updates BufferedImage in memory if it was changed.
8853 (draw): changed to update BufferedImage in memory after
8854 this drawing operation
8856 (draw3DRect): Ditto.
8857 (fill3DRect): Ditto.
8859 (drawRaster): Ditto.
8860 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
8861 no affine transformation.
8862 (drawGlyphVector): Ditto.
8864 2004-02-26 Olga Rodimina <rodimina@redhat.com>
8866 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8867 (isBufferedImageGraphics): New Helper function.
8868 Returns true if this graphics2d can be used to draw
8869 into buffered image and false otherwise.
8870 (updateImagePixels): New Helper function.
8871 Updates pixels in the BufferedImage.
8872 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8873 (getImagePixels): New function. Returns pixels
8874 of the buffered image associated with
8877 2004-02-26 David Jee <djee@redhat.com>
8879 * java/awt/BorderLayout.java
8880 (layoutContainer): Fix width and height calculations to ensure
8881 that they're non-negative.
8882 * java/awt/Component.java
8883 (setBackground): If c is null, inherit from closest ancestor whose
8884 background color is set.
8886 2004-02-26 Kim Ho <kho@redhat.com>
8888 * Makefile.am: Add new files.
8889 * Makefile.in: Re-generate.
8890 * javax/swing/JProgressBar.java:
8891 (JProgressBar(int, int int)): Throw
8892 IllegalArgumentException if orientation is
8894 (JProgressBar(BoundedRangeModel)): Create
8895 ChangeListener and register it. UpdateUI.
8896 (getChangeListeners): Implement.
8897 (setModel): Reset ChangeListener.
8898 * javax/swing/JScrollBar.java: Implement.
8899 * javax/swing/JSeparator.java: Implement.
8900 * javax/swing/JSlider.java:
8901 (JSlider(int, int, int, int)): Throw
8902 IllegalArgumentException if orientation
8904 (getChangeListeners): Fix method name.
8905 * javax/swing/SwingUtilities.java:
8906 (layoutCompoundLabel): If there is no text,
8907 set the text rectangle dimensions to 0.
8908 * javax/swing/plaf/basic/BasicButtonUI.java:
8909 (paint): If there is no text, don't paint it.
8910 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8912 * javax/swing/plaf/basic/BasicSeparatorUI.java:
8914 * javax/swing/plaf/basic/BasicSliderUI.java:
8915 (propertyChange): If the model changes, change
8916 the listeners accordingly.
8918 2004-02-25 Graydon Hoare <graydon@redhat.com>
8920 * javax/swing/AbstractButton.java: Add "final" qualifiers.
8921 * javax/swing/JList.java: Reimplement.
8922 * javax/swing/DefaultListSelectionModel.java: Reimplement.
8923 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
8924 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
8925 * javax/swing/ListModel.java: Javadoc.
8926 * javax/swing/ListSelectionModel.java: Add missing methods.
8927 * javax/swing/AbstractListModel.java: Javadoc and corrections.
8928 * javax/swing/DefaultListModel.java: Javadoc and corrections.
8929 * javax/swing/ListModel.java: Javadoc and corrections.
8930 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
8932 2004-02-25 David Jee <djee@redhat.com>
8934 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8935 (GtkFontPeer): Change default size to 12.
8936 * gnu/java/awt/peer/gtk/GtkToolkit.java
8937 (getFontPeer): Change default size to 12.
8938 (getClasspathFontPeer): Likewise. Set default name to "Default".
8939 * java/awt/Font.java
8940 (Font(Map)): Call Font(String,Map).
8941 (Font(String,Map)): If attrs is null, initialize it as an empty
8942 HashMap, which will ensure that the Font will get default attributes.
8944 2004-02-25 David Jee <djee@redhat.com>
8946 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8947 (GtkFontPeer(String,int)): Call the new constructor with size 1.
8948 (GtkFontPeer(String,int,int)): New constructor with size attribute.
8949 * gnu/java/awt/peer/gtk/GtkToolkit.java
8950 (getFontPeer(String,int)): Call the new overload method with size 1.
8951 (getFontPeer(String,int,int)): New method. Overloaded with size
8953 (getClasspathFontPeer): Set the size of the font.
8955 2004-02-24 Olga Rodimina <rodimina@redhat.com>
8957 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8958 (bimage): New field.
8959 (GdkGraphics2D): New Constructor. Constructs Graphics
8960 object that can be used to draw into the Buffered Image.
8961 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8962 (GdkGraphicsEnvironment): Fixed to include public
8964 (createGraphics): Implemented.
8965 * gnu/java/awt/peer/gtk/GtkToolkit.java
8966 (getLocalGraphicsEnvironment): Implemented.
8967 * java/awt/GraphicsEnvironment.java:
8968 (getLocalGraphicsEnvironment): Implemented.
8969 * java/awt/image/BufferedImage.java:
8970 (createGraphics): Implemented.
8972 2004-02-24 David Jee <djee@redhat.com>
8974 * java/awt/Component.java
8975 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
8976 * java/awt/Container.java
8977 (addNotifyContainerChildren): Fix event enabling.
8979 2004-02-23 Olga Rodimina <rodimina@redhat.com>
8981 * Makefile.am: Added
8982 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
8983 * Makefile.in: Re-generated.
8984 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8987 2004-02-19 Kim Ho <kho@redhat.com>
8989 * Makefile.am: Add BasicProgressBarUI
8990 * Makefile.in: Regenerate.
8991 * javax/swing/JProgressBar.java:
8993 * javax/swing/plaf/basic/BasicLookAndFeel.java
8994 Add constants for JProgressBar.
8995 * javax/swing/plaf/basic/BasicProgressBarUI.java
8997 * javax/swing/plaf/basic/BasicSliderUI.java
8999 (calculateGeometry): New method
9000 (paint): Remove unnecessary size calculations.
9002 2004-02-18 Olga Rodimina <rodimina@redhat.com>
9004 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
9005 (drawRaster): Fixed small error that caused
9006 imageToUser transformation to be set incorrectly.
9007 (toString): Implemented.
9009 2004-02-18 David Jee <djee@redhat.com>
9011 * java/awt/CardLayout.java
9012 (addLayoutComponent): Show the first component added as the default.
9013 (removeLayoutComponent): After removing, show the next component.
9014 (gotoComponent): If there is only one component, show it and return.
9016 2004-02-18 Kim Ho <kho@redhat.com>
9018 * javax/swing/JSlider.java: Re-order
9020 * javax/swing/JLabel.java: Re-order
9022 * javax/swing/JComponent.java:
9023 (addPropertyChangeListener):
9025 (removePropertyChangeListener):
9027 (firePropertyChangeEvent):
9030 2004-02-17 David Jee <djee@redhat.com>
9032 * java/awt/Component.java
9033 (show): Dispatch ComponentEvent via system event queue.
9037 (reshape): Likewise.
9038 * java/awt/Window.java
9039 (setBoundsCallback): Likewise.
9041 2004-02-17 David Jee <djee@redhat.com>
9043 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9044 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
9045 Use gtk_widget_set_size_request() instead of the deprecated
9046 gtk_widget_set_usize().
9048 2004-02-17 Kim Ho <kho@redhat.com>
9050 * javax/swing/JSlider.java: Fix comments and
9051 make property strings constants.
9052 (createStandardLabels): Use the labels
9053 preferred size as bounds.
9054 * javax/swing/plaf/basic/BasicSliderUI.java
9056 (ScrollHandler::actionPerformed): Don't
9057 calculate the timer stop value. Let the
9058 MouseListeners find the stop location.
9059 (getPreferredHorizontalSize): Re-implement.
9060 (getPreferredVerticalSize): ditto.
9061 (getMinimumHorizontalSize): ditto.
9062 (getMinimumVerticalSize): ditto.
9063 (getPreferredSize): ditto.
9064 (getMinimumSize): ditto.
9065 (getMaximumSize): ditto.
9066 (paintTicks): Use doubles to find the
9068 (paintHorizontalLabel):Â Use preferredSize
9069 as initial width and height.
9070 (paintVerticalLabel): ditto.
9072 2004-02-17 Kim Ho <kho@redhat.com>
9074 * javax/swing/JLabel.java: Changed
9075 property strings to constants.
9076 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
9078 (setText): Change mnemonic index if
9080 (setDisplayedMnemonicIndex): Fire property
9082 (getDisplayedMnemonicIndex): Remove check
9085 2004-02-17 Olga Rodimina <rodimina@redhat.com>
9087 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
9088 (drawImage(img,xform,obs)): Invert xform before
9089 passing the xform to cairo.
9090 (drawImage(img,x,y,bgcolor,obs)): Implemented.
9091 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
9093 (drawImage (img,x,y,w,h,obs)): Implemented.
9094 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
9095 bgcolor,obs)): Partly implemented.
9096 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
9098 * java/awt/image/BufferedImage.java:
9099 (copyData): if dest is null, create raster with same
9100 dimensions as the current image.
9102 2004-02-16 Graydon Hoare <graydon@redhat.com>
9104 * javax/swing/plaf/basic/BasicLabelUI.java
9105 (getPreferredSize): Use layoutCL.
9106 * javax/swing/plaf/basic/BasicGraphicsUtils.java
9107 (getPreferredButtonSize): Start with empty view rect, layout using
9108 component's preferred alignment.
9109 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
9112 2004-02-16 David Jee <djee@redhat.com>
9114 * java/awt/Component.java
9115 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
9116 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
9117 (move): Erase old bounds and repaint new bounds. Dispatch
9118 COMPONENT_MOVED ComponentEvent.
9119 (resize): Erase old bounds and repaint new bounds. Dispatch
9120 COMPONENT_RESIZED ComponentEvent.
9121 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
9123 * java/awt/Window.java
9124 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
9127 2004-02-16 Olga Rodimina <rodimina@redhat.com>
9129 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
9130 (setRenderingHint): Added implementation of
9131 Interpolation rendering hints.
9132 (setRenderingHints): Ditto.
9133 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
9134 (drawPixels): fixed to allow user to choose type
9135 of filtering that should be used when displaying images.
9136 (cairoSurfaceSetFilter): New method. Sets filter type for
9137 interpolation of pixel values.
9139 2004-02-16 David Jee <djee@redhat.com>
9141 * java/awt/GridBagLayout.java
9142 (calcCellSizes): Rows or columns with zero sizes should still be
9143 considered for extra space distribution.
9145 2004-02-16 Kim Ho <kho@redhat.com>
9147 * javax/swing/JLabel.java: Re-implement.
9148 * javax/swing/plaf/basic/BasicLabelUI.java
9150 * javax/swing/plaf/basic/BasicLookAndFeel.java:
9153 2004-02-16 Kim Ho <kho@redhat.com>
9155 * javax/swing/JSlider.java: Fix indentation and comments.
9156 (setModel): Remove null check to conform with Sun's.
9157 (setOrientation): Throw exception if not
9158 HORIZONTAL or VERTICAL.
9159 (getInverted): Use private variable instead of
9160 ComponentOrientation.
9161 (setInverted): ditto.
9162 * javax/swing/plaf/basic/BasicSliderUI.java:
9163 Fix indentation and comments.
9164 (propertyChange): Remove check for inverted slider, handle
9166 (getMinimumSize): Return preferred size.
9167 (getMaximumSize): ditto.
9168 (calculateFocusRect): Don't relocate rectangle.
9169 (drawInverted): Return XOR of the slider's inversion and
9170 the component's orientation.
9171 (paint): Update leftToRightCache
9173 2004-02-13 David Jee <djee@redhat.com>
9175 * java/awt/GridBagLayout.java
9176 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
9177 code to helper methods.
9178 (sortBySpan): New helper method.
9179 (distributeSizeAndWeight): Likewise.
9180 (calcCellWeights): Likewise.
9181 (calcCellSizes): Add comments.
9183 2004-02-13 David Jee <djee@redhat.com>
9185 * java/awt/Component.java
9186 (show): Only do something if component is invisible at the moment.
9187 (hide): Only do something if component is visible at the moment.
9188 (reshape): If lightweight, erase old bounds and repaint new bounds.
9190 2004-02-13 Kim Ho <kho@redhat.com>
9192 * Makefile.am: Updated for new file.
9193 * Makefile.in: Regenerated.
9194 * javax/swing/JSlider.java: Reimplement.
9195 * javax/swing/SwingUtilities.java
9196 (layoutCompoundLabel): Use icon height
9198 (paintComponent): Implement.
9199 * javax/swing/plaf/basic/BasicLookAndFeel.java:
9200 Add JSlider defaults.
9201 * javax/swing/plaf/basic/BasicSliderUI.java:
9202 Implement. New file.
9204 2004-03-17 Michael Koch <konqueror@gmx.de>
9206 * gnu/java/net/PlainDatagramSocketImpl.java
9207 (RECEIVE_LOCK): New member field.
9208 (SEND_LOCK): New member field.
9209 (send0): New method.
9210 (send): Synchronize on SEND_LOCK.
9211 (receive0): New method.
9212 (receive): Synchronize on RECEIVE_LOCK.
9213 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
9214 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
9215 gnu/java/net/natPlainDatagramSocketImplWin32.cc
9216 (send0): Renamed from send.
9217 (receive0): Renamed from receive.
9218 2004-03-17 Michael Koch <konqueror@gmx.de>
9220 * gnu/java/net/natPlainSocketImplPosix.cc
9221 (write): Just call write(jbyteArray, offset, len).
9222 (read): Just call read(jbyteArray, offset, len).
9224 2004-03-16 Michael Koch <konqueror@gmx.de>
9226 * javax/swing/JTabbedPane.java
9227 (serialVersionUID): New field.
9229 2004-03-16 Norbert Frese <postfach@nfrese.net>
9231 * java/net/InetAddress.java
9232 (getByName): Handle hostname == "" case.
9234 2004-03-16 Dalibor Topic <robilad@kaffe.org>
9236 Reported by: Adam Heath <doogie@debian.org>
9237 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
9240 2004-03-15 Michael Koch <konqueror@gmx.de>
9242 * java/util/Locale.java: Reverting my last patch
9243 and add a comment why the original version was okay.
9245 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
9247 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
9248 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
9249 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
9250 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
9252 2004-03-12 Michael Koch <konqueror@gmx.de>
9254 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
9256 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
9258 * java/net/URI.java (toURL): Implemented.
9260 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
9263 (URI_REGEXP) updated to contain scheme specific part.
9264 (SCHEME_SPEC_PART_GROUP) new constant.
9265 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
9266 updated to make room for SCHEME_SPEC_PART_GROUP.
9267 (parseURI) parse scheme specific part.
9268 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
9269 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
9270 getQuery, getFragment) implemented.
9272 2004-03-12 Dalibor Topic <robilad@kaffe.org>
9274 * libraries/javalib/java/net/URI.java
9275 partially implemented using java.util.regex.
9276 (URI_REGEXP) new constant. Used to parse URIs.
9277 (SCHEME_GROUP) new constant representing index of scheme group
9279 (AUTHORITY_GROUP) new constant representing index of authority
9280 group in parsed URI.
9281 (PATH_GROUP) new constant representing index of path group in
9283 (QUERY_GROUP) new constant representing index of query group in
9285 (FRAGMENT_GROUP) new constant representing index of fragment
9286 group in parsed URI.
9287 (getURIGroup) new static utility method.
9288 (parseURI) implemented.
9289 (quote) stub for new static utility method.
9290 (quoteAuthority) stub for new static utility method.
9291 (quoteHost) stub for new static utility method.
9292 (quotePath) stub for new static utility method.
9293 (quoteUserInfo) stub for new static utility method.
9295 (create) don't throw URISyntaxException. Implemented.
9296 (toString) implemented.
9298 2004-03-12 Michael Koch <konqueror@gmx.de>
9300 * java/net/HttpURLConnection.java
9301 (getResponseCode): Fix another typo in javadoc.
9303 2004-03-11 Michael Koch <konqueror@gmx.de>
9305 * java/util/logging/Level.java
9306 (parse): Use String.equals() instead of ==.
9308 2004-03-11 Michael Koch <konqueror@gmx.de>
9310 * gnu/java/net/protocol/jar/Connection.java
9311 (getContentLength): New method.
9313 2004-03-11 Michael Koch <konqueror@gmx.de>
9315 * gnu/java/net/PlainSocketImpl.java:
9316 Reformated to merge better with classpath's version.
9318 2004-03-11 Michael Koch <konqueror@gmx.de>
9320 * java/util/Locale.java
9321 (getISO3Language): Use String.equals() instead of ==.
9322 (getISO3Country): Likewise.
9324 2004-03-11 Dalibor Topic <robilad@kaffe.org>
9326 * java/text/AttributedString.java
9327 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
9328 Use HashMap instead of Hashtable since value can be null, and
9329 you can not store a null value in a Hashtable.
9331 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
9333 * java/text/AttributedStringIterator.java
9334 (getAllAttributesKey): Return only keys concerned
9335 by the current iterator.
9336 (getAttributes): Use strict inequality for
9339 2004-03-11 Michael Koch <konqueror@gmx.de>
9341 * java/net/HttpURLConnection.java:
9342 Fixed typo in javadoc.
9344 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
9346 * java/io/BufferedInputStream.java (marktarget): New field for max
9348 (CHUNKSIZE): New constant for incremental mark buffer allocation.
9349 (mark): Use new fields.
9351 (read(byte[],int,int)): Likewise.
9355 2004-03-11 Mark Wielaard <mark@klomp.org>
9357 * java/beans/BeanDescriptor.java (BeanDescriptor):
9358 Set the FeatureDescriptor programmatic name.
9360 2004-03-11 Michael Koch <konqueror@gmx.de>
9362 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
9363 This file was was just copied form java/io/natFileDescriptorEcos.cc
9364 and never changed to compile correctly.
9366 2004-03-11 Michael Koch <konqueror@gmx.de>
9368 * gnu/java/nio/PipeImpl.java
9369 (SourceChannelImpl): Made final.
9370 (read): Implemented.
9371 (SinkChannelImpl): Made final.
9372 (write): Implemented.
9374 2004-03-11 Michael Koch <konqueror@gmx.de>
9376 * gnu/java/net/PlainDatagramSocketImpl.java:
9377 Reformated to match classpath's version more.
9379 2004-03-11 Michael Koch <konqueror@gmx.de>
9381 * gnu/java/awt/peer/ClasspathFontPeer.java:
9382 Fixed javadoc to be correct xhtml.
9383 * gnu/java/awt/peer/gtk/GtkArgList.java
9384 (add): Use Boolean.valueOf() instead of new Boolean().
9386 2004-03-09 Michael Koch <konqueror@gmx.de>
9388 * java/lang/Thread.java
9389 (runnable): Moved around.
9390 (daemon): Renamed from daemon_flag.
9391 (contextClassLoader): Renamed from context_class_loader.
9392 (Thread): Reordered constructors.
9393 (activeCount): Use group directly.
9394 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
9395 (holdsLock): Reworked javadoc.
9396 (setDaemon): Reworked.
9397 * java/lang/natThread.cc
9400 2004-03-08 Anthony Green <green@redhat.com>
9402 * Makefile.am: Build property resource files into libgcj.
9403 * Makefile.in: Rebuilt.
9404 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
9405 java/util/regex/PatternSyntaxException.java,
9406 gnu/regexp/CharIndexed.java,
9407 gnu/regexp/CharIndexedCharArray.java,
9408 gnu/regexp/CharIndexedInputStream.java,
9409 gnu/regexp/CharIndexedReader.java,
9410 gnu/regexp/CharIndexedString.java,
9411 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
9412 gnu/regexp/REException.java,
9413 gnu/regexp/REFilterInputStream.java,
9414 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
9415 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
9416 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
9417 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
9418 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
9419 gnu/regexp/RETokenLookAhead.java,
9420 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
9421 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
9422 gnu/regexp/RETokenStart.java,
9423 gnu/regexp/RETokenWordBoundary.java,
9424 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
9426 2004-03-03 Per Bothner <per@bothner.com>
9428 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
9429 Optimize when argument is a FileChannelImpl.
9430 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
9432 * java/nio/channels/natChannels.cc: New file for new native methods.
9433 * Makefile.am: Update accordingly.
9435 2004-03-02 Jan Hubicka <jh@suse.cz>
9437 * configure.host: Pass -fno-omit-frame-pointer for i386.
9438 * configure.in: Likewise.
9439 * configure: Regenerate.
9441 2004-03-01 Per Bothner <per@bothner.com>
9443 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
9445 2004-02-29 Per Bothner <per@bothner.com>
9447 * java/nio/channels/FileChannelImpl.java: Moved to package
9448 gnu/java/nio/channels, since we need to refer to it from java.io.
9449 * java/nio/channels/natFileChannelImpl.cc: Removed file.
9450 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
9451 from java/nio/channels. Don't depend on FileDescriptor.
9452 (in, out, err): New static fields.
9454 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
9455 from FileDescriptor.
9456 (by): Removed MappedByteBuffer field.
9457 (map): New working implementation.
9458 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
9459 some code "ported" from natFileDescriptoPosix.cc.
9460 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
9461 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
9462 * java/io/FileDescriptor.java: Implement on top of FileChannel.
9463 Remove native methods.
9464 * Makefile.am, configure.in: Updated accordingly.
9466 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
9467 (ch): New FileChannelImpl field. Update constructor to match.
9468 (releaseImpl): Remove native method. Instead ...
9469 (release): Call unlock on channel.
9470 * gnu/java/nio/natFileLockImpl.cc: Removed file.
9472 * java/io/natFileDescriptorEcos.cc: Remove file.
9473 * java/io/natFileDescriptorPosix.cc: Remove file.
9474 * java/io/natFileDescriptorWin32.cc: Remove file.
9475 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
9476 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
9477 (<init>(FileChannelImpl)): New package-private constructor.
9478 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
9479 (available, close, read, skip): Implement using FileChannelImpl.
9480 (getFD): Allocate FileDescriptor if needed.
9481 (getChannel): Is now trivial.
9482 * java/io/FileOutputStream.java: Corresponding changes.
9483 * java/io/RandomAccessFile.java: Corresponding changes.
9485 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
9486 unmapImpl): New dummy methods, to be overridden by subclass.
9487 (finalize, isLoaded, load, force): New methods.
9488 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
9489 Now works, at least for read mapping.
9491 * java/lang/natPosixProcess.cc (startProcess): Implement standard
9492 streams using FileChannelImpl, not FileDescriptor.
9493 * java/lang/natWin32Process.cc (startProcess): Likewise.
9495 2004-02-28 Michael Koch <konqueror@gmx.de>
9497 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
9500 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
9502 * java/io/ObjectInputStream.java
9503 (readClassDescriptor): Keep elements of the mapping non null.
9504 (checkTypeConsistency): New method.
9505 (readFields): Fixed main loop and base logic. Small reindentation.
9506 * java/io/ObjectStreamField.java
9507 (lookupField): New method to update the field reference.
9508 (checkFieldType): New method.
9509 * java/io/ObjectStreamClass.java
9510 (setClass, setFields): Call lookupField when building the field
9511 database. Check the real field type.
9513 2004-02-28 Michael Koch <konqueror@gmx.de>
9515 * java/nio/ByteOrder.java
9516 (nativeOrder): Use equals() to compare strings.
9518 2004-02-26 Michael Koch <konqueror@gmx.de>
9520 * gnu/java/nio/FileLockImpl.java
9521 (finalize): Made protected.
9522 * java/nio/channels/FileChannel.java
9523 (MapMode.READ_ONLY): Made final.
9524 (MapMode.READ_WRITE): Made final.
9525 (MapMode.PRIVATE): Made final.
9526 * java/nio/channels/SocketChannel.java
9527 (open): Simplified code.
9528 * java/nio/channels/spi/AbstractSelectableChannel.java
9529 (registered): Unused, removed.
9530 (keyFor): Check channel is open, only locate key
9531 and not add a new one.
9532 (register): Don't delete attachments.
9534 2004-02-26 Michael Koch <konqueror@gmx.de>
9536 * gnu/java/awt/ComponentDataBlitOp.java
9537 (INSTANCE): Made final.
9538 * gnu/java/awt/image/ImageDecoder.java:
9540 (cm): Unused, removed.
9542 2004-02-26 Michael Koch <konqueror@gmx.de>
9544 * gnu/java/nio/DatagramChannelImpl.java
9545 (send): Check if target address is resolved.
9547 2004-02-26 Michael Koch <konqueror@gmx.de>
9549 * Makefile.am: Generate and install headers for inner classes in
9550 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
9551 * Makefile.in: Regenerated.
9553 2004-02-24 Anthony Green <green@redhat.com>
9555 * java/lang/StringBuffer.java: No need to NULL out remainder of
9556 buffer since ensureCapacity_unsynchronized will have done this for
9559 2004-02-20 Michael Koch <konqueror@gmx.de>
9561 * gnu/java/net/protocol/jar/Handler.java
9562 (): Removed unneeded check for file != null. java.net.URL.getFile()
9563 returns an empty string but never null.
9565 2004-02-20 Michael Koch <konqueror@gmx.de>
9567 * gnu/gcj/convert/Convert.java
9568 (main): Use equals() to compare strings.
9570 2004-02-20 Michael Koch <konqueror@gmx.de>
9572 * javax/swing/AbstractButton.java: Made several constants final.
9573 (getRolloverSelectedIcon): Made public.
9574 (getSelectedIcon): Made public.
9576 2004-02-16 Per Bothner <per@bothner.com>
9578 * java/nio/CharBufferImpl.java: Inline super constructor.
9579 * java/nio/DoubleBufferImpl.java: Likewise.
9580 * java/nio/FloatBufferImpl.java: Likewise.
9581 * java/nio/IntBufferImpl.java: Likewise.
9582 * java/nio/LongBufferImpl.java: Likewise.
9583 * java/nio/ShortBufferImpl.java: Likewise.
9584 * java/nio/CharBuffer.java: Remove unused constructor.
9585 * java/nio/DoubleBuffer.java: Likewise.
9586 * java/nio/FloatBuffer.java: Likewise.
9587 * java/nio/IntBuffer.java: Likewise.
9588 * java/nio/LongBuffer.java: Likewise.
9589 * java/nio/ShortBuffer.java: Likewise.
9590 * java/nio/CharViewBufferImpl.java: New convenience constructor.
9591 Fix buggy call to super constructor.
9592 * java/nio/DoubleViewBufferImpl.java: Likewise.
9593 * java/nio/FloatViewBufferImpl.java: Likewise.
9594 * java/nio/IntViewBufferImpl.java: Likewise.
9595 * java/nio/LongViewBufferImpl.java: Likewise.
9596 * java/nio/ShortViewBufferImpl.java: Likewise.
9598 * java/nio/ByteBuffer.java (endian): Make non-private so other
9599 java.nio classes can inherit it.
9600 (<init>): Don't bother clearing array_offset.
9601 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
9602 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
9603 Remove redundant test.
9605 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
9606 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
9607 Use new XxxViewBufferImpl constructors.
9608 * java/nio/MappedByteBufferImpl.java: Likewise.
9609 * java/nio/DirectByteBufferImpl.java: Likewise.
9611 * java/nio/ByteBufferImpl.java: Remove one constructor.
9612 Inline super in remaining constructor.
9613 * java/nio/ByteBuffer.java: Remove unused constructor.
9615 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
9617 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
9618 * java/nio/DirectByteBufferImpl.java (owner): New field.
9619 (offset): Remove unused field.
9620 (<init>): Modify one and add another constructor. Change callers.
9621 (allocateDirect): Removed - not used.
9622 (getImpl, putImpl): Make static and pass address explicitly,
9623 to make them useful for MappedByteBufferImpl.
9624 (get, put): Check for underflow. Modify for new getImpl.
9625 (getImpl): New native method where target is array.
9626 (get(byte[],int,int)): Use the above.
9627 (adjustAddress): New static native method.
9628 (slice, duplicate, asReadOnly): New implementations.
9629 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
9630 adjustAddress): New or updated native methods.
9632 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
9634 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
9635 overflow of fieldmapping.
9637 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
9639 * javax/swing/undo/UndoManager.java: Re-written from scratch.
9641 2004-02-14 Per Bothner <per@bothner.com>
9643 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
9644 Set closed before calling implCloseChannel, as in the spec.
9646 2004-02-09 Graydon Hoare <graydon@redhat.com>
9648 * javax/swing/ToggleButtonModel.java: Remove dead class.
9649 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
9650 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
9651 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
9652 * Makefile.am: Update for new and removed files.
9653 * Makefile.in: Regenerate.
9655 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
9656 * javax/swing/AbstractButton.java
9657 (AbstractButton): Initialize fields correctly in ctor.
9658 * javax/swing/JCheckbox.java
9659 (JCheckBox): Override painting flags.
9660 * javax/swing/DefaultButtonModel.java: Conform to sun.
9661 * javax/swing/JComponent.java (paint): Fill with background color
9663 (processComponentKeyEvent)
9666 (processMouseMotionEvent): Remove event-consuming empty methods.
9667 (getUIClassID): Return "ComponentUI" not "JComponent"
9668 * javax/swing/JFrame.java: Remove some debugging chatter.
9669 (JFrame): Subscribe to window events.
9670 * javax/swing/JRadioButton.java
9671 (JRadioButton): Override painting flags.
9672 * javax/swing/JRootPane.java
9673 (JRootPane): Set background from UIDefaults.
9674 * javax/swing/JToggleButton.java
9675 (ToggleButtonModel): New inner class.
9676 (JToggleButton): Override layout alighment.
9677 * javax/swing/SwingUtilities.java:
9678 (getLocalBounds): Return width and height, not x and y.
9679 (calculateInnerArea): Use local bounds, not bounds.
9680 (layoutCompoundLabel): Provide overridden form.
9681 (layoutCompoundLabel): Correct bugs.
9682 * javax/swing/UIDefaults.java: Correct comment.
9683 * javax/swing/plaf/basic/BasicButtonUI.java:
9684 Move most logic into defaults, external listener.
9685 (paintIcon): Implement icon painting.
9686 (paint): Fix state painting to conform to changes in model.
9687 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
9688 Remove most dead/wrong methods.
9689 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
9690 * javax/swing/plaf/basic/BasicIconFactory.java:
9691 (DummyIcon): New class.
9692 (getMenuItemCheckIcon)
9693 (getMenuItemArrowIcon)
9695 (getCheckBoxMenuItemIcon)
9696 (getRadioButtonMenuItemIcon)
9697 (createEmptyFrameIcon): Return DummyIcons, not null.
9698 (getCheckBoxIcon): Implement an icon that looks like sun's.
9699 (getRadioButtonIcon): Implement an icon that looks like sun's.
9700 * javax/swing/plaf/basic/BasicLookAndFeel.java
9701 (initComponentDefaults): Fix impossible values, add some missing.
9702 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
9703 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
9704 Remove most dead/wrong methods.
9706 (getDefaultIcon): New method.
9707 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
9708 Remove most dead/wrong methods.
9709 * javax/swing/plaf/metal/MetalLookAndFeel.java
9710 (getDefaults): Return super.getDefaults(), not BasicDefaults.
9711 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
9712 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
9713 Implement "clearing" as drawing, when on pixmap drawables.
9715 * javax/swing/JButton.java (getUIClassID):
9716 * javax/swing/JCheckBox.java (getUIClassID):
9717 * javax/swing/JEditorPane.java (getUIClassID):
9718 * javax/swing/JLabel.java (getUIClassID):
9719 * javax/swing/JList.java (getUIClassID):
9720 * javax/swing/JOptionPane.java (getUIClassID):
9721 * javax/swing/JPanel.java (getUIClassID):
9722 * javax/swing/JPasswordField.java (uiClassID):
9723 * javax/swing/JRadioButton.java (getUIClassID):
9724 * javax/swing/JRootPane.java (getUIClassID):
9725 * javax/swing/JScrollPane.java (getUIClassID):
9726 * javax/swing/JTabbedPane.java (getUIClassID):
9727 * javax/swing/JToggleButton.java (getUIClassID):
9728 * javax/swing/JTree.java (getUIClassID):
9729 * javax/swing/JViewport.java (getUIClassID):
9730 * javax/swing/text/JTextComponent.java (getUIClassID):
9731 Return "fooUI" not "Jfoo"
9733 2004-02-11 Michael Koch <konqueror@gmx.de>
9735 * java/net/DatagramSocket.java
9736 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
9738 (setBroadcast): Likewise.
9739 * java/net/MulticastSocket.java
9740 (setLoopbackMode): Likewise.
9741 * java/net/ServerSocket.java
9742 (setReuseAddress): Likewise.
9743 * java/net/Socket.java
9744 (setTcpNoDelay): Likewise.
9745 (setSoLinger): Likewise.
9746 (setOOBInline): Likewise.
9747 (setKeepAlive): Likewise.
9748 (setReuseAddress): Likewise.
9749 * java/net/URLConnection.java
9750 (setContentHandler): Replace == with equals().
9751 * java/net/URLStreamHandler.java
9752 (hostSEquals): Fix checking host addresses.
9753 (toExternalForm): Dont check protocol for null. We know already its
9756 2004-02-10 David Jee <djee@redhat.com>
9758 * java/awt/BorderLayout.java
9759 (calcCompSize): Invisible components get zero dimensions.
9760 * java/awt/Button.java
9761 (setLabel): Set actionCommand.
9762 * java/awt/Component.java
9763 (show): Invalidate component and parent container.
9766 2004-02-10 David Jee <djee@redhat.com>
9768 * java/awt/GridBagLayout.java
9769 (GridBagLayout): New private field, internalcomptable.
9770 (lookupInternalConstraints): New method.
9771 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
9772 (GetLayoutInfo): Reimplement.
9773 (calcCellSizes): Ignore rows/columns with size 0.
9775 2004-02-10 Michael Koch <konqueror@gmx.de>
9777 * gnu/java/awt/EmbeddedWindow.java
9778 (setHandle): Use java.awt.Component.getPeer() instead of
9779 java.awt.Component.peer directly.
9781 2004-02-10 David Jee <djee@redhat.com>
9783 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
9784 (gtkSetLabel): New native method definition.
9785 (setLabel): Use gtkSetLabel.
9786 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
9787 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
9789 2004-02-10 Alan Modra <amodra@bigpond.net.au>
9791 * include/powerpc-signal.h: Revert 2004-01-21 change.
9792 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
9793 from syscall for ppc32 versions.
9795 2004-02-08 Per Bothner <per@bothner.com>
9797 * java/nio/ByteBuffer.java (shiftDown): New helper method.
9798 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
9799 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
9800 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
9801 Pass ByteOrder parameter to most methods, since the underlying
9802 ByteBuffer's order isn't always what we should use.
9803 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
9804 * java/nio/DirectByteBufferImpl.java: Likewise.
9805 Use ByteBufferHelper methods.
9806 * java/nio/MappedByteBufferImpl.java: Likewise.
9807 (compact): Use shiftDown.
9808 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
9809 (get, put): Use ByteBufferHelper.
9810 (compact): Use new shiftDown method.
9811 (duplicate(boolean)): New helper method.
9812 (duplicate, asReadOnlyBuffer): Use it.
9813 (order): Return endian field.
9814 * java/nio/DoubleViewBufferImpl.java: Likewise.
9815 * java/nio/FloatViewBufferImpl.java: Likewise.
9816 * java/nio/IntViewBufferImpl.java: Likewise.
9817 * java/nio/LongViewBufferImpl.java: Likewise.
9818 * java/nio/ShortViewBufferImpl.java: Likewise.
9819 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
9820 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
9821 (compact): Re-implement using shiftDown.
9823 2004-02-08 Andreas Jaeger <aj@suse.de>
9825 * include/x86_64-signal.h: Fix typo.
9827 2004-02-08 Diego Novillo <dnovillo@redhat.com>
9829 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
9831 (HANDLE_DIVIDE_OVERFLOW): Likewise.
9833 2004-02-06 Michael Koch <konqueror@gmx.de>
9835 * java/io/ObjectInputStream.java
9836 (currentClassLoader): Reverted to old version of this method.
9838 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
9840 * java/io/ObjectInputStream.java: Made all calls
9841 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
9842 use cached info from ObjectStreamClass. (readClassDescriptor):
9843 Cache more information in ObjectStreamClass. (processResolution,
9844 readFields): Use cached info from ObjectStreamClass.
9845 (newObject): Throw exception instead of returning null for failure.
9846 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
9847 setCharField, setDoubleField, setFloatField, setIntField,
9848 setLongField, setShortField, setObjectField, readObjectParams):
9849 Removed. (dumpElement, dumpElementln): Removed dump flag condition
9851 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
9852 (setClass): Added call to cacheMethods() (findMethod): New method.
9853 (cacheMethods): New method. (ObjectStreamClass): Added call to
9854 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
9855 AccessController.doPrivileged to invoke setAccessible.
9856 (readObjectMethod, readResolveMethod, realClassIsSerializable,
9857 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
9859 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
9860 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
9861 isPrimitive): Made safe for cases where type == null.
9862 (setBooleanField, setByteField, setCharField, setShortField,
9863 setIntField, setLongField, setFloatField, setDoubleField,
9864 setObjectField): New methods.
9866 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
9868 * java/awt/Component.java (getFont): Return a default font
9871 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
9872 (Scrollbar (int, int, int, int, int)): Make default page
9874 (setValues): Only call peer.setValues if one of the values has
9876 (generateName): New method.
9877 (getUniqueLong): New method.
9878 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
9879 (range_scrollbar): Remove structure.
9880 (post_adjustment_event): Remove function.
9881 (post_change_event): Accept jobject argument.
9882 (create): Cast jints to gdoubles. Round scrollbar values to the
9883 nearest integer. Clamp min, max and value settings.
9884 (connectJObject): Connect hook to widget->window.
9885 (connectSignals): Remove range_scrollbar structure variables.
9886 Remove "move-slider" connection. Pass global peer reference to
9887 "value-changed" callback.
9888 (setLineIncrement): Cast jint value to gdouble.
9889 (setPageIncrement): Likewise.
9890 (setValues): Likewise. Clamp min, max and value settings.
9892 2004-02-05 Michael Koch <konqueror@gmx.de>
9894 * javax/swing/AbstractCellEditor.java
9895 (getCellEditorValue): Removed.
9896 * javax/swing/Box.java: Reformated.
9897 (serialVersionUID): New field.
9898 * javax/swing/ButtonGroup.java:
9899 Removed some weird whitespace.
9900 * javax/swing/CellEditor.java: Reformated.
9901 * javax/swing/CellRendererPane.java
9902 (serialVersionUID): New field.
9903 (AccessibleCellRendererPaneserialVersionUID): New field.
9904 * javax/swing/DefaultListModel.java
9905 (serialVersionUID): New field.
9906 * javax/swing/JEditorPane.java
9907 (serialVersionUID): New field.
9908 (setPage): Throws IOException.
9909 (addHyperlinkListener): Implemented.
9910 (removeHyperlinkListener): Implemented.
9911 (getHyperlinkListener): New method.
9912 * javax/swing/JFileChooser.java
9913 (serialVersionUID): New field.
9914 (AccessibleJFileChooser.serialVersionUID): New field.
9915 (addActionListener): Implemented.
9916 (removeActionListener): Implemented.
9917 (getActionListeners): New method.
9918 * javax/swing/JFormattedTextField.java
9919 (serialVersionUID): New field.
9920 (AbstractFormatter.serialVersionUID): New field.
9921 (clone): Throws CloneNotSupportedException
9922 (setEditValid): Add missing argument.
9923 (stringToValue): Throws ParseExcpetion.
9924 (valueToString): Throws ParseException.
9925 (commitEdit): Throws ParseException.
9926 * javax/swing/JLabel.java
9927 (serialVersionUID): New field.
9928 * javax/swing/JList.java
9929 (serialVersionUID): New field.
9930 (addListSelectionListener): Reformated.
9931 (removeListSelectionListener): Reformated.
9932 (getListSelectionListeners): New method.
9933 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
9935 (serialVersionUID): New field.
9936 * javax/swing/table/AbstractTableModel.java
9937 (getValueAt): Removed.
9938 (getColumnCount): Removed.
9939 (getRowCount): Removed.
9941 2004-02-05 Michael Koch <konqueror@gmx.de>
9943 * java/awt/datatransfer/DataFlavor.java
9944 (imageFlavor): Javadoc added.
9945 (javaJVMLocalObjectType): Fixed.
9947 2004-02-05 Michael Koch <konqueror@gmx.de>
9949 * java/lang/Thread.java
9950 (Thread): Reordered.
9951 (setContextClassLoader): Fixed javadoc comment.
9952 (setPriority): Reordered.
9954 (initialize_native): Reordered.
9955 (gen_name): Reordered.
9957 2004-02-05 Michael Koch <konqueror@gmx.de>
9959 * java/lang/Thread.java: Reordered fields, reformated much code,
9960 no functional changes, some variables renamed, javadoc comments
9963 2004-02-05 Michael Koch <konqueror@gmx.de>
9965 * java/util/zip/Deflater.java,
9966 java/util/zip/DeflaterOutputStream.java,
9967 java/util/zip/GZIPInputStream.java:
9968 Reformated and javadoc comments merged from classpath.
9970 2004-02-05 Michael Koch <konqueror@gmx.de>
9972 * gnu/java/nio/NIOServerSocket.java
9973 (impl): Unused, removed.
9974 * gnu/java/nio/SocketChannelImpl.java
9975 (finnishConnect): Don't throw NoConnectionPendingException if not
9976 connected or no connection pending.
9978 2004-02-02 Graydon Hoare <graydon@redhat.com>
9980 * javax/swing/SwingUtilities.java: Many new functions.
9981 * java/awt/Container.java (LightweightDispatcher): Reimplement.
9982 * javax/swing/basic/BasicGraphicsUtils.java
9983 (getPreferredButtonSize): Start layout from top-left corner.
9985 2004-02-04 Olga Rodimina <rodimina@redhat.com>
9987 * java/awt/geom/AffineTransform.java:
9988 Corrected comments on the field definitions for
9990 (shear): Fixed few errors that caused shear
9991 transformation to be performed incorrectly.
9992 (createInverse): Fixed to return correct
9993 inverse of the given matrix.
9995 2004-02-03 Tom Tromey <tromey@redhat.com>
9997 * java/lang/natPosixProcess.cc (startProcess): Handle case where
9998 PATH or LD_LIBRARY_PATH is not set in parent environment.
10000 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
10002 * gnu/java/awt/peer/gtk/GtkListPeer.java,
10003 java/awt/BorderLayout.java, java/awt/CardLayout.java,
10004 java/awt/CheckboxGroup.java, java/awt/Choice.java,
10005 java/awt/Component.java, java/awt/Container.java,
10006 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
10007 java/awt/LayoutManager2.java, java/awt/List.java,
10008 java/awt/Menu.java, java/awt/MenuBar.java,
10009 java/awt/MenuItem.java, java/awt/Polygon.java,
10010 java/awt/Rectangle.java, java/awt/ScrollPane.java,
10011 java/awt/Scrollbar.java, java/awt/TextArea.java,
10012 java/awt/TextField.java,
10013 java/awt/image/renderable/RenderContext.java,
10014 javax/swing/JApplet.java: Fix handling of alias methods, where a
10015 method has been deprecated in favour of a new one with the same
10016 funtion but a different name. Put the method implementation in
10017 the deprecated method and have the new method call the
10018 deprecated one. Make all other code call the new method.
10020 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
10022 * gnu/java/nio/DatagramChannelImpl.java
10023 (inChannelOperation): New field.
10024 (isInChannelOperation): New accessor.
10025 (setInChannelOperation): New modifier.
10026 (receive): Use capacity() - position() of destination
10027 buffer instead of remaining(). Set and reset our "in
10028 channel operation indicator" before and after delegating
10029 the receive to our datagram socket. Removed testing code.
10030 Update destination buffer's current position if it is
10031 backed by a byte array (hasArray() is true).
10032 (send): Set and reset our "in channel operation indicator"
10033 before and after delegating the send to our datagram socket.
10034 Removed testing code. Update source buffer's current position
10035 if it is backed by a byte array (hasArray() is true).
10036 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
10037 Use capacity() - position() of destination buffer instead
10039 * java/net/DatagramSocket.java (receive): Don't throw an
10040 IllegalBlockingModeException if we have a non-blocking
10041 channel which initiated this operation.
10044 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
10046 * configure.in: Add pkgconfig check for glib and gthread.
10047 * configure: Regenerate.
10049 2004-02-01 Michael Koch <konqueror@gmx.de>
10051 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
10053 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
10054 * verify.cc (debug_print): Mark 'fmt' unused.
10056 2004-01-30 Michael Koch <konqueror@gmx.de>
10058 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
10059 * configure: Regenerated.
10060 * glib-2.0.m4: Removed.
10061 * gtk-2.0.m4: Removed.
10062 * libart.m4: Removed.
10063 * pkg.m4: New file.
10065 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
10067 * gnu/java/net/PlainSocketImpl.java
10068 (inChannelOperation): New field.
10069 (isInChannelOperation): New accessor.
10070 (setInChannelOperation): New modifier.
10071 * gnu/java/nio/ServerSocketChannelImpl.java
10072 (accept): Set and reset our server socket's PlainSocketImpl's
10073 "in channel operation" indicator before and after delegating
10074 the accept to our server socket.
10075 * gnu/java/nio/SocketChannelImpl.java
10076 (connect): Set and reset our socket's PlainSocketImpl's "in channel
10077 operation" indicator before and after delegating the operation to
10081 * java/net/ServerSocket.java (implAccept): Don't throw an
10082 IllegalBlockingModeException if we have a non-blocking
10083 channel which initiated this accept operation.
10084 * java/net/Socket.java (connect): Don't throw an
10085 IllegalBlockingModeException if we have a non-blocking
10086 channel which initiated this connect operation.
10087 * java/nio/channels/spi/AbstractSelectableChannel.java
10088 (configureBlocking): Only call implConfigureBlocking() if
10089 the desired blocking mode is different from our current one.
10091 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
10093 * java/io/BufferedReader.java (sbuf): New field.
10094 (readLine): Use String.valueOf instead of new String() as per
10095 Per Bothner's suggestion. Use instance sbuf field instead of a
10096 local StringBuffer instance.
10097 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
10098 caller's buffer to refill().
10099 (read(void)): Pass our internal work buffer to refill if our
10100 input queue is empty.
10101 (refill): Changed return type to int. Use the specified buffer
10102 instead of our work buffer as per Bryce McKinlay's suggestion.
10103 Return the number of characters read or -1 for EOF.
10105 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
10107 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
10109 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
10111 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
10112 * Makefile.in: Re-generated.
10113 * gnu/awt/xlib/XFontPeer.java: New file.
10114 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
10115 (setClip): Commented out debug printout.
10116 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
10117 (getFontPeer): Return XFontPeer.
10118 (getLocalGraphicsEnvironment): New method.
10119 (getClasspathFontPeer): New method.
10120 (createFont): New method.
10122 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
10124 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
10127 2004-01-29 Kim Ho <kho@redhat.com>
10129 * gnu/java/awt/peer/gtk/GtkFramePeer.java
10130 (gtkLayoutSetVisible): New method
10131 (setMenuBar): Hide layout before setting MenuBar
10132 and reshow it after.
10133 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10134 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
10136 2004-01-28 Michael Koch <konqueror@gmx.de>
10138 * gnu/java/lang/ClassHelper.java
10139 (getPackagePortion): Removed.
10141 2004-01-28 Michael Koch <konqueror@gmx.de>
10143 * javax/swing/JComponent.java
10144 (listenerList): Initalize globally.
10145 (ancestor_list): Removed.
10146 (veto_list): Removed.
10147 (change_list): Removed.
10148 (get_veto_list): Removed.
10149 (get_change_list): Removed.
10150 (get_ancestor_list): Removed.
10151 (removeAncestorListener): Reimplemented.
10152 (removePropertyChangeListener): Likewise.
10153 (removeVetoableChangeListener): Likewise.
10154 (addAncestorListener): Likewise.
10155 (addPropertyChangeListener): Likewise.
10156 (addVetoableChangeListener): Likewise.
10157 (getListeners): New method.
10158 (getAncestorListeners): Likewise.
10159 (getVetoableChangeListeners): Likewise.
10160 (fireVetoableChange): Throws PropertyVetoException.
10161 * javax/swing/JEditorPane.java
10162 (JEditorPane): Throws IOException.
10164 2004-01-28 David Jee <djee@redhat.com>
10166 * gnu/java/awt/peer/gtk/GtkFramePeer.java
10167 (create): Set the default foreground color to
10168 java.awt.SystemColor.windowText.
10170 2004-01-27 Michael Koch <konqueror@gmx.de>
10172 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
10173 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
10174 Reindented to merge with classpath.
10176 2004-01-27 David Jee <djee@redhat.com>
10178 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10179 (addExposeFilter): Handle GtkFramePeer separately.
10180 (removeExposeFilter): Likewise.
10182 2004-01-27 Michael Koch <konqueror@gmx.de>
10184 * gnu/java/net/protocol/http/Connection.java
10185 (getOutputStream): Fixed typo.
10187 2004-01-27 Michael Koch <konqueror@gmx.de>
10189 * java/lang/Class.java
10190 (getConstructor): Removed SecurityException from throws clause.
10191 (_getConstructors): Likewise.
10192 (getConstructors): Likewise.
10193 (getDeclaredConstructor): Likewise.
10194 (getDeclaredClasses): Likewise.
10195 (getDeclaredConstructors): Likewise.
10196 (getDeclaredField): Likewise.
10197 (getDeclaredMethod): Likewise.
10198 (getDeclaredMethods): Likewise.
10199 (getField): Likewise.
10200 (getMethod): Likewise.
10201 (getMethods): Likewise.
10203 2004-01-27 Kim Ho <kho@redhat.com>
10205 * gnu/java/awt/peer/gtk/GtkFramePeer.java
10206 (removeMenuBarPeer): Remove MenuBarPeer argument.
10207 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
10208 (dispose): Call native method.
10209 * java/awt/Frame.java (setMenuBar): Create and remove
10210 MenuBar peers only if the Frame has a peer.
10211 (addNotify): Create the MenuBar peer if one exists.
10212 (removeNotify): Remove MenuBar peer if one exists.
10213 * java/awt/Menu.java: Fix imports.
10214 (addNotify): Don't use full class name.
10215 (removeNotify): Call removeNotify on all children.
10216 * java/awt/MenuBar.java (removeNotify): Call
10217 removeNotify on all children.
10218 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10219 (removeMenuBarPeer): Remove MenuBarPeer argument.
10220 Iterate through children to find the Frame's MenuBar.
10221 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
10223 (dispose): Remove references to the MenuComponent.
10225 2004-01-27 Michael Koch <konqueror@gmx.de>
10227 * javax/swing/AbstractCellEditor.java: Reformated.
10228 * javax/swing/DefaultListSelectionModel.java
10229 (listenerList): Made protected.
10230 (addListSelectionListener): Javadoc added.
10231 (removeListSelectionListener): Likewise.
10232 (getListeners): Likewise.
10233 (getListSelectionListeners): Likewise.
10234 * javax/swing/JComboBox.java: Merged copyright year.
10235 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
10237 2004-01-26 Andrew Haley <aph@redhat.com>
10239 * javax/swing/table/JTableHeader.java: Extend JComponent
10241 2004-01-26 Kim Ho <kho@redhat.com>
10243 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
10246 2004-01-26 Kim Ho <kho@redhat.com>
10248 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
10250 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
10251 height and let the Layout Managers readjust anything that
10253 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10254 (moveLayout): New method. Shift everything in the Gtk
10255 layout in the Y direction by an offset.
10257 2004-01-26 David Jee <djee@redhat.com>
10259 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10260 (handleEvent): Implemented. Handles PaintEvents.
10261 (paint): Implemented. Use GTK native methods to queue updates
10262 for this heavyweight peer.
10263 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10264 (handleEvent): Removed.
10265 * java/awt/Component.java
10266 (paint): Implemented. Explictly paint the heavyweight peer.
10267 (update): Clear the background for heavyweight components.
10268 (paintAll): No need to call peer.paint() anymore.
10269 (processEvent): Don't process PaintEvents here. It's now done in
10270 the peer's handleEvent().
10271 (processPaintEvent): Removed.
10272 * java/awt/Container.java
10273 (paint): No need to call super.paint(). Visit heavyweight
10275 (update): Don't clear the background here. It's done in
10276 Component.update().
10277 (visitChildren): Added check to not recurse into Containers.
10278 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10279 (filter_expose_event_handler): New method. Filter unwanted
10280 expose events while painting heavyweight peers.
10281 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
10282 New method. Connect filter and block pre_event_handler.
10283 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
10284 New method. Disconnect filter and unblock pre_event_handler.
10285 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
10286 New method. Invalidate and update given area.
10287 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10288 (pre_event_handler): Add checks for unwanted expose events.
10290 2004-01-26 David Jee <djee@redhat.com>
10292 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10293 (find_bg_color_widget): For GtkButton, return its child.
10295 2004-01-26 Kim Ho <kho@redhat.com>
10297 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
10299 (setMenuBar): Grab MenuBar height and change insets.
10300 (setBounds): Account for MenuBar height.
10301 (postInsetsChangedEvent): Ditto.
10302 (postSizeAllocateEvent): Remove.
10303 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10304 (menubar_resize_cb): Remove
10305 (setMenuBarPeer): Remove callback.
10306 (getMenuBarHeight): Use size requisition instead of
10309 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
10311 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
10312 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
10314 (setColumns): Remove FIXME -- peer will retrieve number of
10315 columns by calling getColumns.
10316 (setRows): Likewise for number of rows.
10317 (next_text_number): New field.
10318 (paramString): Fix param string.
10319 (generateName): New method.
10320 (getUniqueLong): New method.
10322 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
10324 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
10325 image observer of image loading status.
10326 (getImage (String)): Start image production.
10327 (getImage (URL)): Likewise.
10329 2004-01-25 Michael Koch <konqueror@gmx.de>
10331 * java/lang/Class.java: Imports reworked, reformated.
10332 (Class): Javadoc added.
10333 (forName): Likewise.
10334 (getClasses): Likewise.
10335 (getClassLoader): Likewise.
10336 (getComponentType): Likewise.
10337 (getConstructor): Likewise.
10338 (getConstructors): Likewise.
10339 (getDeclaredConstructor): Likewise.
10340 (getDeclaredClasses): Likewise.
10341 (getDeclaredConstructors): Likewise.
10342 (getDeclaredField): Likewise.
10343 (getDeclaredMethod): Likewise.
10344 (getDeclaredMethods): Likewise.
10345 (getDeclaringClass): Likewise.
10346 (getField): Likewise.
10347 (getInterfaces): Likewise.
10348 (getMethod): Likewise.
10349 (getMethods): Likewise.
10350 (getModifiers): Likewise.
10351 (getName): Likewise.
10352 (getResource): Likewise.
10353 (getResourceAsStream): Likewise.
10354 (getSigners): Likewise.
10355 (setSigners): Likewise.
10356 (getSuperclass): Likewise.
10357 (isArray): Likewise.
10358 (isAssignableFrom): Likewise.
10359 (isInstance): Likewise.
10360 (isInterface): Likewise.
10361 (isPrimitive): Likewise.
10362 (newInstance): Likewise.
10363 (getProtectionDomain): Likewise.
10364 (toString): Likewise.
10366 (initializeClass): Likewise.
10367 (finalize): Likewise.
10369 2004-01-24 Michael Koch <konqueror@gmx.de>
10371 * gnu/java/net/protocol/jar/Connection.java
10372 (hdrHash): Removed.
10374 (gotHeaders): Removed.
10375 (getHeaderField): Removed.
10376 (getHeaderFields): Removed.
10377 (getHeaderFieldKey): Removed.
10379 (getField): Removed.
10380 (getHeaders): Removed.
10382 2004-01-24 Michael Koch <konqueror@gmx.de>
10384 * Makefile.am: Added library version to gtk peer lib.
10385 * Makefile.in: Regenerated.
10387 2004-01-24 Michael Koch <konqueror@gmx.de>
10389 * java/util/zip/InflaterInputStream.java: Merged class documentation
10392 2004-01-21 Jakub Jelinek <jakub@redhat.com>
10394 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
10395 header. For __powerpc64__ provide the default-signal.h definitions
10397 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
10398 instead of the dummy definitions.
10399 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
10400 (powerpc64*-*): Remove with_libffi_default.
10401 Only add -mminimal-toc for 64-bit compilations.
10402 * configure.in: Use powerpc-signal.h on powerpc64 as well.
10403 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
10404 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
10405 * configure: Rebuilt.
10407 2004-01-23 Michael Koch <konqueror@gmx.de>
10409 * gnu/java/nio/FileLockImpl.java: Compile fixes.
10411 2004-01-23 Michael Koch <konqueror@gmx.de>
10413 * java/lang/VMClassLoader.java: Reworked imports.
10415 2004-01-23 Michael Koch <konqueror@gmx.de>
10417 * javax/swing/AbstractAction.java: Reformated.
10419 2004-01-23 Michael Koch <konqueror@gmx.de>
10421 * java/text/CollationElementIterator.java:
10422 (setText): New method.
10424 2004-01-23 Michael Koch <konqueror@gmx.de>
10426 * gnu/java/nio/FileLockImpl.java:
10427 Fixed filename in copyright.
10428 (released): Removed.
10429 (finalize): New method.
10430 * gnu/java/nio/natFileLockImpl.cc
10431 (releaseImpl): Implemented.
10432 * java/nio/channels/FileChannelImpl.java:
10434 (lock): Implemented.
10435 (lockImpl): New method.
10436 (tryLock): Implemented.
10437 (tryLockImpl): New method.
10438 * java/nio/channels/natFileChannelImpl.cc
10439 (lockImpl): New method.
10440 (tryLockImpl): New method.
10442 2004-01-23 Michael Koch <konqueror@gmx.de>
10444 * java/io/FileDescriptor.java
10445 (lock): New method.
10446 (tryLock): New method.
10447 (unlock): New method.
10448 * java/io/natFileDescriptorEcos.cc
10449 (lock): New method.
10450 (tryLock): New method.
10451 (unlock): New method.
10452 * java/io/natFileDescriptorPosix.cc
10453 (lock): New method.
10454 (tryLock): New method.
10455 (unlock): New method.
10456 * java/io/natFileDescriptorWin32.cc
10457 (lock): New method.
10458 (tryLock): New method.
10459 (unlock): New method.
10461 2004-01-23 Michael Koch <konqueror@gmx.de>
10463 * java/io/FileDescriptor.java
10464 (sync): Moved around, added javadoc.
10469 (setLength): Likewise.
10471 (getLength): Likewise.
10472 (getFilePointer): Likewise.
10474 (available): Likewise.
10475 (finalize): Likewise.
10477 2004-01-23 Michael Koch <konqueror@gmx.de>
10479 * javax/swing/AbstractAction.java: Reformated.
10480 (getPropertyChangeListeners): New method.
10481 * javax/swing/AbstractCellEditor.java: Reformated.
10482 (getCellEditorListeners): New method.
10483 * javax/swing/DefaultListSelectionModel.java
10484 (listenerList): New field.
10485 (listeners): Removed.
10486 (get_listeners): Removed.
10487 (addListSelectionListener): Rewritten.
10488 (removeListSelectionListener): Rewritten.
10489 (getListSelectionListeners): New method.
10490 (getListeners): New method.
10491 * javax/swing/JComboBox.java: Imports reworked.
10492 (addActionListener): Implemented.
10493 (removeActionListener): Implemented.
10494 (addItemListener): Implemented.
10495 (removeItemListener): Implemented.
10496 (addPopupMenuListener): Implemented.
10497 (removePopupMenuListener): Implemented.
10498 (getActionListeners): New method.
10499 (getItemListeners): New method.
10500 (getPopupMenuListeners): New method.
10502 2004-01-23 Michael Koch <konqueror@gmx.de>
10504 * gnu/java/net/protocol/http/Connection.java
10505 (connect): Don't initialize bufferedOutputStream if not needed.
10506 (sendRequest): Set property for content length if content is present.
10507 Write content only if present.
10508 (getOutputStream): Check if already connected, dont connect,
10509 initalize bufferedOutputStream if needed.
10511 2004-01-23 Michael Koch <konqueror@gmx.de>
10513 * java/io/FileDescriptor.java
10514 (in, out, err): Added javadoc.
10515 (static): Merged loading code.
10516 (fd, position): Moved around.
10518 2004-01-23 Michael Koch <konqueror@gmx.de>
10520 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
10523 2004-01-23 Michael Koch <konqueror@gmx.de>
10525 * java/lang/Class.java,
10526 java/lang/Object.java,
10527 java/lang/Thread.java: Merged copyright with classpath.
10529 2004-01-23 Michael Koch <konqueror@gmx.de>
10531 * java/io/FileDescriptor.java: Merged copyright with classpath to
10532 start merging this class.
10534 2004-01-22 Tom Tromey <tromey@redhat.com>
10537 * testsuite/libjava.lang/pr13107_2.xfail: New file.
10538 * testsuite/libjava.lang/pr13107_3.xfail: New file.
10539 * testsuite/libjava.lang/pr13107_3.java: New file.
10540 * testsuite/libjava.lang/pr13107_3.out: New file.
10541 * testsuite/libjava.lang/pr13107_2.java: New file.
10542 * testsuite/libjava.lang/pr13107_2.out: New file.
10543 * testsuite/libjava.lang/pr13107.java: New file.
10544 * testsuite/libjava.lang/pr13107.out: New file.
10545 * verify.cc (jsr_ptrs): Removed.
10546 (entry_points): Likewise.
10547 (struct subr_info): Likewise.
10548 (struct subr_entry_info): Likewise.
10549 (type_val::unused_by_subroutine_type): Likewise.
10550 (type::merge): Don't handle unused_by_subroutine_type.
10551 (type::print): Likewise.
10552 (state::flags): Removed.
10553 (state::subroutine): Likewise.
10554 (state::seen_subrs): Likewise.
10555 (state::NO_STACK): Likewise.
10556 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
10557 (state): Updated all methods.
10558 (state::clean_subrs): Removed.
10559 (state::state): Removed `ret_semantics' flag.
10560 (state::copy): Likewise.
10561 (state::add_subr): Removed.
10562 (state::enter_subroutine): Likewise.
10563 (type::set_return_address): New method.
10564 (handle_jsr_insn): Set return address on the type. Always
10565 invalidate PC after call.
10566 (check_nonrecursive_call): Removed.
10567 (~_Jv_BytecodeVerifier): Updated.
10568 (branch_prepass): Removed special handling of jsr.
10569 (note_branch_target): Likewise.
10570 (get_subroutine): Removed.
10571 (state::merge): Don't merge subroutines and don't handle
10572 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
10573 (state::note_variable): Removed.
10574 (state::is_unmerged_ret_state): Likewise.
10575 (state::print): Updated.
10576 (set_variable): Likewise.
10577 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
10578 and jsr_semantics arguments. Updated for new reverification
10580 (pop_jump): Rewrote.
10581 (construct_primitive_array_type): Updated.
10582 (state::next): Removed.
10583 (INVALID_STATE): New define.
10584 (state::INVALID): Removed.
10585 (state::NO_NEXT): New value.
10586 (state::pc, state::next): New fields.
10587 (state::get_pc): New method.
10588 (next_verify_pc): Removed.
10589 (next_verify_state): New field.
10590 (verify_instructions_0): Always check for falling off end.
10591 (linked): New type.
10592 (linked_utf8): Removed.
10593 (states): Changed type.
10594 (type::state_mergeable_p): New method.
10595 (state::state_mergeable_p): Likewise.
10596 (handle_ret_insn): Removed most code.
10597 (state::reverify): New method.
10598 (add_new_state): Likewise.
10599 (state::set_pc): Likewise.
10601 2004-01-22 Jeff Sturm <jsturm@one-point.com>
10604 * testsuite/libjava.compile/PR13733.java: New file.
10605 * testsuite/libjava.compile/PR13733.xfail: New file.
10607 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
10608 Michael Koch <konqueror@gmx.de>
10610 * javax/swing/table/DefaultTableCellRenderer.java
10611 (DefaultTableCellRenderer): Added javadoc for the class and for
10612 the constructor, Border instance, create an EmptyBorder.
10613 (UIResource): Removed the comment at the end of the class
10614 (setForeground): New method.
10615 (setBackground): New method.
10616 (updateUI): New method.
10617 (getTableCellRendererComponent): Rewritten with the help of
10618 dvholten and Stephane Meslin-Weber.
10619 (validate): New method.
10620 (repaint): New method.
10621 (firePropertyChange): New method.
10622 (setValue): New method.
10624 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
10626 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10627 (connectJObject): Replace printf calls with g_assert statements.
10628 Move property-notify-event signal connection to ...
10629 (connectSignals): Connect property-notify-event signal. Iterate
10630 through the vbox's children to find layout.
10632 2004-01-22 Graydon Hoare <graydon@redhat.com>
10634 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
10635 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
10636 Predicate static initialization on GtkToolkit.useGraphics2D().
10637 * java/awt/Component.java (processPaintEvent): Consume event.
10638 * javax/swing/AbstractButton.java: Reimplement, document.
10639 * javax/swing/DefaultButtonModel.java: Reimplement, document.
10640 * javax/swing/JComponent.java (paint): Use double buffer.
10641 (listenerList): Enable member.
10642 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
10643 * javax/swing/JToggleButton.java
10644 (JToggleButton): Modify model constructor.
10645 * javax/swing/SwingUtilities.java
10646 (layoutCompoundLabel): Adjust arithmetic.
10647 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
10648 * javax/swing/plaf/basic/BasicGraphicsUtils.java
10649 (getPreferredButtonSize): Include margins in calculation.
10650 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10651 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
10652 Receive up events from subordinate layout component.
10654 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
10656 * java/awt/Component.java (show): Set visible to true before
10659 2004-01-21 Kim Ho <kho@redhat.com>
10661 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
10663 (removeMenuBarPeer): Make package private.
10664 (setMenuBarPeer): Make package private.
10665 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10666 (menubar_resize_cb): Mark attributes unused.
10667 (getMenuBarHeight): ditto.
10669 2004-01-21 David Jee <djee@redhat.com>
10671 * java/awt/Container.java
10672 (LightweightDispatcher.handleEvent): Add an extra check to avoid
10673 dispatching MOUSE_ENTERED event twice. Translate the point for
10674 the mouse event target before dispatching the event.
10676 2004-01-20 Jakub Jelinek <jakub@redhat.com>
10678 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
10679 lib_org_w3c_dom_la_LDFLAGS): New.
10680 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
10681 * Makefile.in: Rebuilt.
10683 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
10685 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
10686 Calculate proper offsets for heavyweight components packed in
10687 lightweight containers.
10689 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
10690 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
10691 (native create): Add width parameter.
10692 (create): Calculate text entry width based on current font's
10693 metrics and number of columns. Set TextField's font if not
10694 already set. Call native create.
10695 (gtkEntryGetBorderWidth): New native method.
10696 (gtkEntryGetSize): Remove method.
10697 (getMinimumSize): Call minimumSize.
10698 (getPreferredSize): Call preferredSize.
10699 (minimumSize): Calculate minimum size based on backing
10700 GtkEntry's borders, font metrics and number of columns.
10701 (preferredSize): Likewise for preferred size.
10702 (get_border_width): New static function.
10704 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
10705 Override GtkWindowPeer's setResizable method to account for menu
10706 bar height when setting the frame's size.
10708 2004-01-19 Matthias Klose <doko@debian.org>
10710 * libtool-version: Increased `current' to 6.
10712 2004-01-19 Kim Ho <kho@redhat.com>
10714 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10715 (connectJObject): Iterate through the vbox's children to find layout.
10717 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10719 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
10720 isDispatchThread method to replace wrong test condition.
10722 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10724 * java/awt/EventQueue.java (pop): Prevent racing condition to add
10725 events to the queue out of order by acquiring locks in the proper
10726 order and not by releasing one before acquiring the other.
10728 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10730 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
10731 visible so that dialog can be reused.
10733 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10735 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
10736 events may be handled by any queue in the stack.
10738 2004-01-19 Kim Ho <kho@redhat.com>
10740 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
10741 MenuBarPeer parameter.
10742 (removeMenuBarPeer): New native method.
10743 (setMenuBar): Call remove if menu bar is null. Adjust insets
10745 (postSizeAllocateEvent): New method. Called when menu bar size is
10746 allocated. Adjust insets and redo layout.
10747 (GtkFramePeer): Set menu bar during frame creation.
10748 (postConfigureEvent): Adjust position and size to accomodate
10750 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
10751 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
10752 (addNotify): Create the peer if it doesn't exist and call addNotify
10753 for the menu's items.
10754 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
10755 * java/awt/MenuItem.java (addNotify): Create the peer if it
10757 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10758 (removeMenuBarPeer): New method. Remove menu bar on the current
10760 (setMenuBarPeer): Add the menu bar to the current frame and the
10761 callback for size-allocate events on the menu bar.
10762 (getMenuBarHeight): Add menu bar parameter.
10763 (menubar_resize_cb): New callback method for postSizeAllocate events.
10765 Also: Fix indentation on last ChangeLog entry.
10767 2004-01-16 Kim Ho <kho@redhat.com>
10769 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10770 (gtkWidgetGetDimensions): Remove.
10771 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10772 (gtkWidgetGetDimensions): Remove.
10774 2004-01-16 Tom Tromey <tromey@redhat.com>
10776 * java/awt/Container.java: Typo and indentation fixes.
10778 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
10779 * java/lang/natVMClassLoader.cc: ...here. New file.
10780 * Makefile.in: Rebuilt.
10781 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
10783 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10785 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
10786 Discard GDK_ENTER_NOTIFY related to ungrabs.
10788 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10790 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
10791 is called for an intermediate queue.
10793 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
10795 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10796 (window_property_changed_cb): Set id_set.
10798 2004-01-16 Kim Ho <kho@redhat.com>
10800 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
10801 it is a FileDialog and has dimensions of 0 by 0, then the initial
10802 size is set to size request plus insets.
10803 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10804 (gtkWidgetGetDimensions): Override method.
10805 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10806 (gtkWidgetGetDimensions): Override method. Returns size request plus
10809 2004-01-16 Andrew Haley <aph@redhat.com>
10811 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
10812 * sysdep/i386/locks.h: Likewise.
10814 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10816 * java/awt/EventDispatchThread.java (run): Stop running when
10818 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
10819 Reset the queue after transferring its contents.
10820 (push): Start a new dispatch thread if none is running.
10822 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
10824 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10825 (doPolygon): set fill rule of polygon to
10826 WIND_EVEN_ODD by default.
10828 2004-01-15 Olga Rodimina <rodimina@redhat.com>
10830 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10831 Implemented rendering hints related methods.
10832 (getDefaultHints): New helper method. Returns
10833 default rendering hints.
10834 (walkPath): changed to normalize path if
10835 the KEY_STROKE_CONTROL key is in "normalize" mode.
10836 (draw3DRect): changed coordinates of rectangle by +0.5
10837 if in "normalize" mode.
10839 2004-01-15 Tom Tromey <tromey@redhat.com>
10841 * Makefile.in: Rebuilt.
10842 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
10843 (%.lo: %.java) Filter out StackTrace.lo.
10845 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
10847 * configure.in: Add in AC_PREREQ(2.13)
10848 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
10851 2004-01-14 Nathan Bryant <nbryant@optonline.net>
10852 Tom Tromey <tromey@redhat.com>
10855 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
10856 array to superclass.
10857 (init): Changed interface; add URLs here.
10858 (initialize): New static method.
10859 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
10860 (_Jv_RunMain): ... not here.
10862 2004-01-14 Michael Koch <konqueror@gmx.de>
10864 * java/text/MessageFormat.java:
10865 Added descriptions to exceptions.
10866 This fixes PR libgcj/2429.
10868 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10870 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
10871 (push): Make sure push is performed at the top of the thread stack.
10873 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10875 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
10876 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
10877 (native create): Add width and height parameters. Set text
10878 view's size request according to new parameters.
10879 (create): Calculate text view size based on current font's
10880 metrics and number of rows and columns. Set TextArea's font if
10881 not already set. Call native create.
10882 (getMinimumSize): Call minimumSize.
10883 (getPreferredSize): Call preferredSize.
10884 (getHScrollbarHeight): New method.
10885 (getVScrollbarWidth): New method.
10886 (minimumSize): Calculate minimum size based on scrollbar
10887 visibility, scrollbar sizes, font metrics and number of rows and
10889 (preferredSize): Likewise for preferred size.
10890 (gtkTextGetSize): Remove method.
10892 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10894 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10895 (initializeInsets): Remove method.
10896 (GtkComponentPeer): Initialize insets field. Remove call to
10898 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
10900 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
10902 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
10903 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
10904 (latestInsets): Remove field.
10905 (native create): Add insets parameter. Call
10906 window_get_frame_extents. Set the window's default size and
10907 size request based on its frame extents.
10908 (create): Initialize insets.
10909 (postInsetsChangedEvent): New method.
10910 (postConfigureEvent): Remove parameters top, left, bottom,
10911 right. Remove insets-related logic.
10912 (connectJObject): Handle property-notify-event.
10913 (window_get_frame_extents, request_frame_extents,
10914 property_notify_predicate, window_property_changed_cb): New
10916 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10917 (pre_event_handler): Remove insets-related logic for configure
10919 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
10920 Update postConfigureEvent signature.
10922 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10924 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
10925 to handle Window "Closing" events.
10927 2004-01-13 David Jee <djee@redhat.com>
10929 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10930 (setBackground): New method. Children with no explicitly-set
10931 background will be repainted with the parent container's new
10934 2004-01-13 David Jee <djee@redhat.com>
10936 * Makefile.am: Add BitwiseXORComposite.java.
10937 * Makefile.in: Regenerated.
10938 * gcj/Makefile.in: Regenerated.
10939 * include/Makefile.in: Regenerated.
10940 * testsuite/Makefile.in: Regenerated.
10942 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10944 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
10945 not show modal dialogs twice and so that it allows showing a modal
10946 dialog from another modal dialog.
10948 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10950 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
10951 and run secondary dispatch thread to process event queue while this
10954 2004-01-12 Graydon Hoare <graydon@redhat.com>
10956 * gnu/java/awt/gtk/GdkGraphics2D.java
10957 (static): Check GtkToolkit before initializing static state.
10958 (Graphics2D): Don't construct transform with 0.5 unit offset.
10960 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
10962 * gnu/java/awt/BitwiseXORComposite.java: Add.
10963 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
10964 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
10965 (BitwiseXORComposite): Remove inner class.
10967 2004-01-11 Michael Koch <konqueror@gmx.de>
10969 * gnu/java/lang/reflect/TypeSignature.java
10970 (getEncodingOfClass): Documentation fixed.
10971 (getClassForEncoding): Give class loader to Class.forName().
10972 Documentation fixed.
10974 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
10976 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
10978 2004-01-11 Michael Koch <konqueror@gmx.de>
10980 * javax/swing/undo/StateEditable.java
10981 (RCSID): Removed redundant modifiers.
10983 2004-01-10 Michael Koch <konqueror@gmx.de>
10985 * javax/print/attribute/EnumSyntax.java
10986 (getStringTable): Made protected.
10987 (getEnumValueTable): Likewise.
10988 * javax/print/attribute/standard/JobKOctetsProcessed.java
10989 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
10990 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
10991 (JobMediaSheetsCompleted): Made class final.
10992 * javax/print/attribute/standard/OutputDeviceAssigned.java
10993 (getName): Fixed typo.
10994 * javax/print/attribute/standard/RequestingUserName.java
10995 (serialVersionUID): Fixed value.
10997 2004-01-10 Michael Koch <konqueror@gmx.de>
10999 * javax/swing/plaf/basic/BasicButtonUI.java,
11000 javax/swing/plaf/basic/BasicCheckBoxUI.java,
11001 javax/swing/plaf/basic/BasicListUI.java,
11002 javax/swing/plaf/basic/BasicOptionPaneUI.java,
11003 javax/swing/plaf/basic/BasicPanelUI.java,
11004 javax/swing/plaf/basic/BasicRadioButtonUI.java,
11005 javax/swing/plaf/basic/BasicScrollPaneUI.java,
11006 javax/swing/plaf/basic/BasicToggleButtonUI.java,
11007 javax/swing/plaf/basic/BasicViewportUI.java:
11008 Fixed import statements.
11010 2004-01-10 Michael Koch <konqueror@gmx.de>
11012 * gnu/java/awt/image/ImageDecoder.java
11013 (produce): Made public.
11014 * gnu/java/awt/peer/GLightweightPeer.java,
11015 gnu/java/awt/peer/gtk/GtkToolkit.java:
11018 2004-01-10 Michael Koch <konqueror@gmx.de>
11020 * javax/swing/JRadioButtonMenuItem.java,
11021 javax/swing/JSeparator.java,
11022 javax/swing/JSplitPane.java,
11023 javax/swing/JTextPane.java,
11024 javax/swing/JToolBar.java,
11025 javax/swing/ListCellRenderer.java,
11026 javax/swing/ListModel.java,
11027 javax/swing/MenuElement.java,
11028 javax/swing/OverlayLayout.java,
11029 javax/swing/ProgressMonitor.java,
11030 javax/swing/ProgressMonitorInputStream.java,
11031 javax/swing/Renderer.java,
11032 javax/swing/RootPaneContainer.java,
11033 javax/swing/Scrollable.java,
11034 javax/swing/SingleSelectionModel.java,
11035 javax/swing/ToolTipManager.java,
11036 javax/swing/ViewportLayout.java,
11037 javax/swing/event/DocumentEvent.java,
11038 javax/swing/event/SwingPropertyChangeSupport.java,
11039 javax/swing/event/TreeSelectionEvent.java,
11040 javax/swing/event/UndoableEditEvent.java,
11041 javax/swing/text/AbstractDocument.java,
11042 javax/swing/text/AttributeSet.java,
11043 javax/swing/text/Caret.java,
11044 javax/swing/text/ComponentView.java,
11045 javax/swing/text/DefaultCaret.java,
11046 javax/swing/text/DefaultEditorKit.java,
11047 javax/swing/text/Document.java,
11048 javax/swing/text/EditorKit.java,
11049 javax/swing/text/GapContent.java,
11050 javax/swing/text/Keymap.java,
11051 javax/swing/text/MutableAttributeSet.java,
11052 javax/swing/text/PlainEditorKit.java,
11053 javax/swing/text/Segment.java,
11054 javax/swing/text/Style.java,
11055 javax/swing/text/StyledDocument.java,
11056 javax/swing/text/StyledEditorKit.java,
11057 javax/swing/text/TextAction.java,
11058 javax/swing/text/View.java: Fixed import statements.
11060 2004-01-08 Graydon Hoare <graydon@redhat.com>
11062 * javax/swing/JLayeredPane.java: Rewrite to accomodate
11063 djee@redhat.com's recent inverse ordering of Container elements.
11065 2004-01-09 Michael Koch <konqueror@gmx.de>
11067 * gnu/java/lang/ArrayHelper.java
11068 (equalsArray): Removed.
11070 2004-01-09 Andrew Haley <aph@redhat.com>
11072 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
11073 a Utf8Const field before looking at its class.
11075 2004-01-09 Michael Koch <konqueror@gmx.de>
11077 * javax/print/attribute/standard/DocumentName.java,
11078 javax/print/attribute/standard/JobHoldUntil.java,
11079 javax/print/attribute/standard/JobMessageFromOperator.java,
11080 javax/print/attribute/standard/JobName.java,
11081 javax/print/attribute/standard/JobOriginatingUserName.java,
11082 javax/print/attribute/standard/OutputDeviceAssigned.java,
11083 javax/print/attribute/standard/PrinterInfo.java,
11084 javax/print/attribute/standard/PrinterLocation.java,
11085 javax/print/attribute/standard/PrinterMakeAndModel.java,
11086 javax/print/attribute/standard/PrinterMessageFromOperator.java,
11087 javax/print/attribute/standard/PrinterName.java,
11088 javax/print/attribute/standard/RequestingUserName.java: New files.
11089 * Makefile.am (javax_source_files): Added new files.
11090 * Makefile.in: Regenerated.
11092 2004-01-09 Michael Koch <konqueror@gmx.de>
11094 * javax/swing/AbstractAction.java,
11095 javax/swing/AbstractSet.java,
11096 javax/swing/Action.java,
11097 javax/swing/ActionMap.java,
11098 javax/swing/BoundedRangeModel.java,
11099 javax/swing/ButtonModel.java,
11100 javax/swing/CellEditor.java,
11101 javax/swing/CellRendererPane.java,
11102 javax/swing/ComboBoxEditor.java,
11103 javax/swing/DebugGraphics.java,
11104 javax/swing/DefaultCellEditor.java,
11105 javax/swing/DefaultCellRenderer.java,
11106 javax/swing/DefaultComboBoxModel.java,
11107 javax/swing/DefaultDesktopManager.java,
11108 javax/swing/DefaultFocusManager.java,
11109 javax/swing/DefaultListCellRenderer.java,
11110 javax/swing/Icon.java,
11111 javax/swing/JButton.java,
11112 javax/swing/JCheckBoxMenuItem.java,
11113 javax/swing/JDesktopPane.java,
11114 javax/swing/JEditorPane.java,
11115 javax/swing/JMenu.java,
11116 javax/swing/JPanel.java,
11117 javax/swing/JPasswordField.java,
11118 javax/swing/JPopupMenu.java,
11119 javax/swing/JProgressBar.java: Reworked imports.
11121 2004-01-09 Michael Koch <konqueror@gmx.de>
11123 * java/awt/geom/PathIterator.java
11124 (WIND_EVEN_ODD): Removed redundant modifiers.
11125 (WIND_NON_ZERO): Likewise.
11126 (SEG_MOVETO): Likewise.
11127 (SEG_LINETO): Likewise.
11128 (SEG_QUADTO): Likewise.
11129 (SEG_CUBICTO): Likewise.
11130 (SEG_CLOSE): Likewise.
11131 * java/awt/image/SinglePixelPackedSampleModel.java:
11132 Removed redundant semicolon.
11133 * java/io/ObjectInputStream.java
11134 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
11135 * java/util/logging/Filter.java
11136 (isLoggable): Removed redundant modifier.
11137 * java/util/logging/LogManager.java:
11138 Removed redundant semicolon.
11139 * java/util/logging/XMLFormatter.java
11140 (format): Removed unused variable "key".
11142 2004-01-08 Fernando Nasser <fnasser@redhat.com>
11144 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
11145 New name for the former setFile native method.
11146 (setFile): New method.
11147 (setDirectory): Implemented.
11148 (connectSignals): New native method.
11149 (setFilenameFilter): Improve comment.
11150 (getGraphics): Comment.
11151 (gtkHideFileDialog): New method.
11152 (gtkDisposeFileDialog): New method.
11153 (gtkSetFilename): New method.
11154 * java/awt/Dialog.java (show): Block on modal dialogs, but only
11155 for FileDialog for now.
11156 (hide): New method.
11157 (dispose): New method.
11158 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
11159 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
11160 deprecated creation functions. Make dialog modal. Add it to the
11162 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
11164 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
11166 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
11168 (window_closed): New function.
11169 (ok_clicked): New function.
11170 (cancel_clicked): New function.
11172 2004-01-08 Michael Koch <konqueror@gmx.de>
11174 * javax/swing/JLayeredPane.java: Revert changes to standard
11175 boilerplate, reworked imports.
11177 2004-01-07 Tom Tromey <tromey@redhat.com>
11180 * verify.cc (state::merge): Copy changed locals out of subroutine
11182 (state::FLAG_CHANGED): New const.
11183 (state::FLAG_UNUSED): Likewise.
11184 (state::local_changed): Removed. Updated all users.
11185 (state::flags): New field.
11186 (state::merge): Added jsr_semantics argument, more logic.
11187 (push_jump_merge): Added jsr_semantics argument.
11188 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
11189 merging through the jsr instruction.
11191 2004-01-07 Tom Tromey <tromey@redhat.com>
11193 * scripts/MakeDefaultMimeTypes.java: Use \n, not
11196 2004-01-07 Graydon Hoare <graydon@redhat.com>
11198 * java/awt/Container.java (LightweightDispatcher): Implement.
11199 (visitChild): Reuse graphics object.
11200 (dispatchEventImpl): Optionally dispatch to lightweight.
11201 (addNotifyContainerChildren): Build LightweightDispatcher.
11203 2004-01-07 David Jee <djee@redhat.com>
11205 * java/awt/Container.java
11206 (update): Clear only the clipped region, instead of clearing the
11208 (visitChildren): Visit children in descending order.
11210 2004-01-07 Michael Koch <konqueror@gmx.de>
11212 * java/lang/reflect/Array.java: Merged documentation with classpath.
11214 2004-01-07 Michael Koch <konqueror@gmx.de>
11216 * java/text/CollationElementIterator.java
11217 (textIndex): Renamed from index.
11218 * java/text/CollationKey.java
11219 (collator): New member.
11220 (CollationKey): New argument for parent collator.
11221 (equals): Check for same collator, source string and key array.
11222 * java/text/RuleBasedCollator.java:
11224 (RuleBasedCollator): Don't re-initialize frenchAccents with default
11226 (getCollationElementIterator): Rewritten.
11227 (getCollationKey): Added new argument to CollationKey constructor.
11229 2004-01-07 Michael Koch <konqueror@gmx.de>
11231 * gnu/java/nio/DatagramChannelImpl.java
11232 (blocking): Removed.
11233 (DatagramChannelImpl): Call configureBlocking().
11234 (implConfigureBlocking): Dont initialize blocking.
11235 * gnu/java/nio/ServerSocketChannelImpl.java
11236 (blocking): Removed.
11237 (ServerSocketChannelImpl): Call configureBlocking().
11238 (implConfigureBlocking): Dont initialize blocking.
11239 * gnu/java/nio/SocketChannelImpl.java
11240 (blocking): Removed.
11241 (SocketChannelImpl): Call configureBlocking().
11242 (implConfigureBlocking): Dont initialize blocking.
11243 (connect): Use isBlocking().
11244 * java/nio/channels/spi/AbstractSelectableChannel.java
11245 (configureBlocking): Use blockingLock() instead of LOCK.
11246 Set blocking after successfully called implConfigureBlocking().
11247 (register): Use blockingLock() instead of LOCK.
11249 2004-01-07 Michael Koch <konqueror@gmx.de>
11251 * java/net/ServerSocket.java (isBound): Fixed documentation.
11253 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
11255 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
11256 (changeEvent): Create event object on demand.
11257 (DefaultBoundedRangeModel, toString, setValue, setExtent,
11258 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
11259 fireStateChanged): Re-written.
11260 * javax/swing/event/EventListenerList.java: Reformatted, document
11262 (toString): Implemented.
11263 (getListeners): Re-written.
11264 (remove): Re-written.
11266 (NO_LISTENERS): New singleton field.
11267 (listenerList): Declare as transient; document.
11268 (serialVersionUID): Document.
11269 (getListenerCount(Class)): More efficient implementation,
11270 also accepts null argument. Improve Javadoc.
11271 (getListenerCount()): Remove unnecessary cast; docfix.
11272 * javax/swing/undo/UndoableEditSupport.java:
11273 Re-format, document.
11274 (UndoableEditSupport): Set realSource field. Improve documentation.
11275 (_postEdit): Iterate over cloned listener vector.
11276 (toString): Don't emit realSource.
11277 (beginUpdate, endUpdate): Support nested updates.
11278 (postEdit): Use compound edit if present.
11280 2004-01-06 Graydon Hoare <graydon@redhat.com>
11282 * java/awt/Container.java (swapComponents): Add forgotten
11283 function, required for JLayeredPane change.
11285 2004-01-06 Michael Koch <konqueror@gmx.de>
11287 * java/text/CollationElementIterator.java: Reformated.
11288 (CollationElementIterator): Changed order of arguments.
11289 * java/text/RuleBasedCollator.java
11290 (RuleBasedCollator): Merged class documentation.
11291 (CollationElement): Added documentation.
11292 (compare): Reformated, renamed arguments.
11293 (equals): Likewise.
11294 (getCollationElementIterator): Likewise.
11295 (getCollationKey): Likewise.
11297 2004-01-06 Graydon Hoare <graydon@redhat.com>
11299 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
11301 2004-01-06 Michael Koch <konqueror@gmx.de>
11303 * gnu/java/net/protocol/file/Connection.java:
11304 Reformated copyright.
11305 (hdrHash): Removed.
11307 (gotHeaders): Removed.
11308 (getHeaderField): Removed.
11309 (getHeaderField): Removed.
11310 (getHeaderFieldKey): Removed.
11312 (getField): Removed.
11313 (getHeaders): Removed.
11315 2004-01-06 Michael Koch <konqueror@gmx.de>
11317 * javax/print/attribute/standard/DateTimeAtCompleted.java,
11318 javax/print/attribute/standard/DateTimeAtCreation.java,
11319 javax/print/attribute/standard/DateTimeAtProcessing.java,
11320 javax/print/attribute/standard/JobImpressionsCompleted.java,
11321 javax/print/attribute/standard/JobKOctets.java,
11322 javax/print/attribute/standard/JobKOctetsProcessed.java,
11323 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
11324 javax/print/attribute/standard/JobPrioritySupported.java: New files.
11325 * Makefile.am (javax_source_files): Added new files.
11326 * Makefile.in: Regenerated.
11328 2004-01-06 Michael Koch <konqueror@gmx.de>
11330 * java/net/URLConnection.java
11331 (contentHandler): Removed.
11333 (getHeaderFields): Return an empty map instead of null.
11334 (getContent): Connect if needed, renamed "cType" to "type" and
11335 "contentHandler" to "ch" and made it a local variable.
11336 (getPermission): Don't use package in class name.
11337 (setDefaultRequestProperty): Fixed typo in documentation.
11338 (initializeDateFormats): Made locale a local variable.
11340 2004-01-06 Michael Koch <konqueror@gmx.de>
11342 * java/lang/Package.java
11343 (getPackage): Get the current class loader directly.
11344 * java/lang/SecurityManager.java
11345 (currentLoadedClass): Dont iterate over class contexts.
11346 (classLoaderDepth): Don't check class loaders if everything is allowed.
11348 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
11350 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
11351 (pre_event_handler): Set all insets to 0 when a Configure event
11352 is received for a GtkPlug.
11353 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
11354 Make handle long, not int.
11355 (EmbeddedWindow()): New constructor.
11356 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
11358 (setHandle): New method.
11359 (getHandle): Return long, not int.
11360 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
11362 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
11363 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
11364 (create(long)): Take long parameter, not int. Cast gtk_plug_new
11365 argument to GdkNativeWindow.
11366 (construct): New method.
11367 (embed): New method.
11369 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
11370 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
11371 (create(int, int)): New method.
11372 (create): Call new create method.
11373 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
11375 (childResized): Remove native implementation. Implement in
11377 (getHScrollbarHeight, getVScrollbarWidth): Call
11378 gtk_widget_size_request to get scrollbar dimensions.
11379 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
11380 call getVScrollbarWidth and getHScrollbarHeight when vertical
11381 and horizontal scrollbars respectively are needed.
11382 (doLayout): Enlarge child if it is smaller than the viewport.
11384 2004-01-05 Fernando Nasser <fnasser@redhat.com>
11386 * java/awt/Dialog.java (constructor): Accept null title as per spec.
11387 * java/awt/FileDialog.java (constructor): Throw exception on invalid
11388 argument as per spec.
11390 2004-01-05 Fernando Nasser <fnasser@redhat.com>
11392 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
11394 (remove): Ditto. Also, Check for valid argument.
11395 (removeAll): Use peer interface method.
11396 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
11397 native add function.
11398 (nativeRemove): New name for native remove function.
11399 (getHistory): New native function.
11400 (constructor): Generate ItemEvent.
11401 (add): Ditto, if selection is changed.
11402 (remove): Ditto, ditto.
11403 (removeAll): Add implementation.
11404 (handleEvent): Remove. Dead code.
11405 (choicePostItemEvent): Add comment.
11406 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
11407 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
11408 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
11409 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
11410 comments and fix condition to change selection.
11411 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
11412 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
11413 remove all capability.
11414 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
11415 (item_activate): Add cast to remove compiler warning.
11417 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
11419 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
11420 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
11421 (getPreferredSize): Call preferredSize.
11422 (preferredSize): Call gtkWidgetGetPreferredDimensions.
11423 (getMinimumSize): Call minimumSize.
11424 (minimumSize): Call gtkWidgetGetPreferredDimensions.
11425 (gtkWidgetGetDimensions): Return the peer widget's current size
11427 (gtkWidgetGetPreferredDimensions): Return the peer widget's
11428 natural size request.
11430 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
11432 Thanks to Brian Gough <bjg@network-theory.com>
11433 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
11434 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
11436 2004-01-04 Matthias Klose <doko@debian.org>
11438 * aclocal.m4: Rebuilt using "aclocal -I .".
11439 * configure: Rebuilt.
11441 2004-01-03 Per Bothner <per@bothner.com>
11443 * java/util/Date.java (parse): Fix a number of problems.
11444 (skipParens): Remove no-longer-needed method.