1 2004-10-18 Michael Koch <konqueror@gmx.de>
3 * java/net/Inet4Address.java: Merged file header and javadocs.
4 * java/net/Inet6Address.java: Likewise.
5 * java/net/InetAddress.java
6 (getCanonicalHostName): Create Inet4Address object instead of
7 InetAddress and add comment regarding IPv6.
8 (toString): Simplified.
10 2004-10-18 Michael Koch <konqueror@gmx.de>
12 * gnu/java/net/protocol/http/Connection.java,
13 java/nio/MappedByteBufferImpl.java,
14 java/text/RuleBasedCollator.java,
15 java/util/ResourceBundle.java:
16 Reworked import statements.
18 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
20 * java/security/IdentityScope.java
21 (systemScope): Removed useless initializer.
22 * java/security/Policy.java
23 (currentPolicy): Likewise.
25 2004-10-18 Michael Koch <konqueror@gmx.de>
27 * java/lang/System.java: Revert accidential change.
29 2004-10-18 Michael Koch <konqueror@gmx.de>
31 * java/lang/Math.java,
32 java/lang/Package.java,
33 java/lang/Runtime.java,
34 java/lang/StrictMath.java,
35 java/lang/System.java,
36 java/lang/Thread.java,
37 java/lang/ThreadLocal.java,
39 Reworked import statements, HTML in javadocs and modifier orders.
41 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
43 * java/util/Timer.java
44 (nr): Removed useless initializer.
45 * java/util/logging/LogRecord.java
46 (lastSeqNum): Likewise.
47 * javax/naming/spi/NamingManager.java
48 (icfb, ofb): Likewise.
50 2004-10-18 Michael Koch <konqueror@gmx.de>
52 * gnu/java/net/PlainDatagramSocketImpl.java:
53 Reworked import statements.
54 * gnu/java/security/provider/DSAParameters.java:
55 Fixed copyrigth years.
56 * java/net/JarURLConnection.java:
57 Fixed HTML in @author tags.
60 2004-10-18 Michael Koch <konqueror@gmx.de>
62 * java/rmi/activation/ActivationSystem.java
63 (SYSTEM_PORT): Initialize with correct port number.
65 2004-10-18 Michael Koch <konqueror@gmx.de>
67 * java/lang/reflect/Proxy.java: Improved javadocs.
69 2004-10-18 Michael Koch <konqueror@gmx.de>
71 * java/lang/reflect/AccessibleObject.java
72 (checkPermission): Removed redundant final modifier.
73 (secureSetAccessible): Likewise.
74 * java/lang/reflect/Proxy.java:
75 Reworked import statements.
76 (generate): Removed redundant final modifier.
77 * java/lang/reflect/ReflectPermission.java:
78 Reorder package declaration and import statement.
80 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
82 * java/lang/reflect/Proxy.java
83 (count): Removed useless initializer.
85 2004-10-17 Michael Koch <konqueror@gmx.de>
87 * java/net/BindException.java,
88 java/net/ConnectException.java,
89 java/net/ContentHandler.java,
90 java/net/ContentHandlerFactory.java,
91 java/net/DatagramPacket.java,
92 java/net/DatagramSocket.java,
93 java/net/DatagramSocketImpl.java,
94 java/net/DatagramSocketImplFactory.java,
95 java/net/FileNameMap.java,
96 java/net/HttpURLConnection.java,
97 java/net/MalformedURLException.java,
98 java/net/MulticastSocket.java,
99 java/net/NetworkInterface.java,
100 java/net/NoRouteToHostException.java,
101 java/net/PasswordAuthentication.java,
102 java/net/PortUnreachableException.java,
103 java/net/ProtocolException.java,
104 java/net/ServerSocket.java,
105 java/net/Socket.java,
106 java/net/SocketException.java,
107 java/net/SocketImpl.java,
108 java/net/SocketImplFactory.java,
109 java/net/SocketOptions.java,
110 java/net/SocketPermission.java,
111 java/net/SocketTimeoutException.java,
113 java/net/URISyntaxException.java,
115 java/net/URLDecoder.java,
116 java/net/URLEncoder.java,
117 java/net/URLStreamHandler.java,
118 java/net/URLStreamHandlerFactory.java,
119 java/net/UnknownHostException.java,
120 java/net/UnknownServiceException.java:
121 Big import statement and @author tag cleanup.
123 2004-10-17 Michael Koch <konqueror@gmx.de>
125 * gnu/java/security/OID.java,
126 gnu/java/security/provider/DSAParameters.java,
127 gnu/java/security/provider/DSASignature.java,
128 gnu/java/security/x509/X500DistinguishedName.java,
129 gnu/java/security/x509/X509CRL.java:
130 Import statements cleaned up.
132 2004-10-16 Michael Koch <konqueror@gmx.de>
134 * gnu/java/nio/NIODatagramSocket.java,
135 gnu/java/nio/ServerSocketChannelImpl.java:
136 Reorganized import statements.
138 2004-10-16 Michael Koch <konqueror@gmx.de>
140 * gnu/java/rmi/RMIMarshalledObjectOutputStream.java
141 gnu/java/rmi/rmic/RMIC.java,
142 gnu/java/rmi/server/RMIHashes.java,
143 gnu/java/rmi/server/RMIObjectInputStream.java,
144 gnu/java/rmi/server/RMIObjectOutputStream.java,
145 gnu/java/rmi/server/UnicastConnection.java,
146 gnu/java/rmi/server/UnicastConnectionManager.java,
147 gnu/java/rmi/server/UnicastRemoteCall.java,
148 gnu/java/rmi/server/UnicastServer.java,
149 gnu/java/rmi/server/UnicastServerRef.java,
150 java/rmi/MarshalledObject.java,
151 java/rmi/Naming.java,
152 java/rmi/RMISecurityManager.java,
153 java/rmi/Remote.java,
154 java/rmi/activation/Activatable.java,
155 java/rmi/activation/ActivationDesc.java,
156 java/rmi/activation/ActivationGroup.java,
157 java/rmi/activation/ActivationGroupDesc.java,
158 java/rmi/activation/ActivationGroupID.java,
159 java/rmi/activation/ActivationID.java,
160 java/rmi/activation/ActivationInstantiator.java,
161 java/rmi/activation/ActivationMonitor.java,
162 java/rmi/activation/ActivationSystem.java,
163 java/rmi/activation/Activator.java,
164 java/rmi/dgc/DGC.java,
165 java/rmi/dgc/Lease.java,
166 java/rmi/dgc/VMID.java,
167 java/rmi/registry/LocateRegistry.java,
168 java/rmi/registry/Registry.java,
169 java/rmi/registry/RegistryHandler.java,
170 java/rmi/server/LoaderHandler.java,
171 java/rmi/server/LogStream.java,
172 java/rmi/server/ObjID.java,
173 java/rmi/server/Operation.java,
174 java/rmi/server/RMIClassLoader.java,
175 java/rmi/server/RMIClassLoaderSpi.java,
176 java/rmi/server/RMIClientSocketFactory.java,
177 java/rmi/server/RMIFailureHandler.java,
178 java/rmi/server/RMIServerSocketFactory.java,
179 java/rmi/server/RMISocketFactory.java,
180 java/rmi/server/RemoteCall.java,
181 java/rmi/server/RemoteObject.java,
182 java/rmi/server/RemoteRef.java,
183 java/rmi/server/RemoteServer.java,
184 java/rmi/server/RemoteStub.java,
185 java/rmi/server/ServerRef.java,
186 java/rmi/server/Skeleton.java,
187 java/rmi/server/SkeletonMismatchException.java,
188 java/rmi/server/UID.java,
189 java/rmi/server/UnicastRemoteObject.java,
190 java/rmi/server/Unreferenced.java:
191 File headers and import statements cleaned up.
193 2004-10-16 Michael Koch <konqueror@gmx.de>
195 * libjava/gnu/java/nio/charset/UTF_16.java,
196 libjava/gnu/java/nio/charset/UTF_16BE.java,
197 libjava/gnu/java/nio/charset/UTF_16LE.java,
198 libjava/java/nio/ByteOrder.java,
199 libjava/java/nio/MappedByteBuffer.java,
200 libjava/java/nio/channels/Channels.java,
201 libjava/java/nio/channels/spi/SelectorProvider.java,
202 libjava/java/nio/charset/Charset.java:
205 2004-10-16 Michael Koch <konqueror@gmx.de>
207 * gnu/java/nio/charset/UTF_16Encoder.java
208 (UTF_16Encoder): Fixed maxBytesPerChar handling.
210 2004-10-16 Michael Koch <konqueror@gmx.de>
212 * java/math/BigDecimal.java, java/math/BigInteger.java:
213 Reorganized import statements, removed redundant and
214 reorganized modifiers.
216 2004-10-16 Michael Koch <konqueror@gmx.de>
218 * gnu/java/beans/ExplicitBeanInfo.java:
219 Explicitely import java.awt.Image.
220 (getIcon): Fixed off-by-one error.
222 2004-10-15 Andrew Haley <aph@redhat.com>
224 * Makefile.am (nat_files, xlib_nat_files): New.
225 * Makefile.in: Regenerate.
227 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
229 * jni.cc (_Jv_JNIMethod::call): Use ffi_java_raw_call instead of
230 ffi_raw_call if FFI_NATIVE_RAW_API is not defined.
232 2004-10-13 Andrew Haley <aph@redhat.com>
234 * interpret.cc (_Jv_InterpMethod::run): Initialize
235 _Jv_StartOfInterpreter.
236 (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): Functions removed.
237 (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): New variables.
238 * gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Use
239 _Unwind_FindEnclosingFunction to discover whether PC is within the
242 2004-10-12 Rutger Ovidius <ovidr@users.sourceforge.net>
245 * testsuite/libjava.lang/md5test.java: New file.
246 * testsuite/libjava.lang/md5test.out: Likewise.
247 * testsuite/libjava.lang/shatest.java: Likewise.
248 * testsuite/libjava.lang/shatest.out: Likewise.
250 2004-10-11 Richard Henderson <rth@redhat.com>
252 * include/posix-threads.h <__alpha__> (_Jv_ThreadId_t): Use void*.
253 (_Jv_ThreadSelf): Use __builtin_thread_pointer.
255 2004-10-08 Bryce McKinlay <mckinlay@redhat.com>
257 * java/util/Calendar.java (set): Invalidate DST_OFFSET
258 field as a DST boundary may have been crossed.
259 * java/util/GregorianCalendar.java (add): Throw
260 IllegalArgumentException on attempt to add to DST_OFFSET or
261 ZONE_OFFSET fields. Update javadoc.
263 2004-10-09 Michael Koch <konqueror@gmx.de>
265 * java/io/CharArrayWriter.java
266 (resize): Removed redundant 'final' modifier.
267 * java/io/DataInputStream.java
268 (readFully): Throw IndexOutOfBoundsException of len < 0.
269 * java/io/FileDescriptor.java,
270 java/io/FileInputStream.java,
271 java/io/FileOutputStream.java,
272 java/io/ObjectOutputStream.java,
273 java/io/ObjectStreamClass.java,
274 java/io/PipedInputStream.java,
275 java/io/RandomAccessFile.java:
276 Reorganized import statements.
278 2004-10-09 Michael Koch <konqueror@gmx.de>
280 * gnu/java/rmi/rmic/RMIC.java,
281 gnu/java/rmi/server/RMIHashes.java,
282 gnu/java/rmi/server/RMIObjectInputStream.java,
283 gnu/java/rmi/server/UnicastConnection.java,
284 gnu/java/rmi/server/UnicastConnectionManager.java,
285 gnu/java/rmi/server/UnicastRemoteCall.java,
286 gnu/java/rmi/server/UnicastServerRef.java:
287 Reworked import statements and fixed file headers.
289 2004-10-04 Loren J. Rittle <ljrittle@acm.org>
291 * configure.ac (*-*-freebsd[[1234]]*): Refine error message
293 * configure: Rebuilt.
295 2004-09-30 Tom Tromey <tromey@redhat.com>
297 * java/text/MessageFormat.java (Field): Constructor now
300 2004-09-30 Tom Tromey <tromey@redhat.com>
302 * javax/crypto/MacSpi.java: Fixed typo.
304 2004-09-30 Michael Koch <konqueror@gmx.de>
306 * java/net/InetAddress.java: Reformatted.
307 (loopback): Initialize with Inet4Address object.
308 (static): Initialize ANY_IF with Inet4Address object.
309 (InetAddress): Removed unused package-private constructor.
311 2004-09-30 Michael Koch <konqueror@gmx.de>
313 * java/beans/Beans.java,
314 java/beans/EventHandler.java,
315 java/beans/EventSetDescriptor.java,
316 java/beans/Introspector.java,
317 java/beans/PropertyEditorManager.java,
318 java/beans/beancontext/BeanContext.java,
319 java/beans/beancontext/BeanContextChild.java,
320 java/beans/beancontext/BeanContextChildSupport.java,
321 java/beans/beancontext/BeanContextMembershipEvent.java:
322 Reordered import statements and removed redundant modifiers.
324 2004-09-29 Tom Tromey <tromey@redhat.com>
327 * Makefile.in: Rebuilt.
328 * Makefile.am (libgcj-@gcc_version@.jar): Include properties
330 (all_property_files): New macro.
332 * Makefile.in: Rebuilt.
333 * Makefile.am (ordinary_java_source_files): Re-sorted.
334 (libgcj.la): Moved to old location near lib-gnu-awt-xlib.la.
336 2004-09-28 Tom Tromey <tromey@redhat.com>
338 * jni.cc (_Jv_JNI_RegisterNatives): Formatting fixlets.
341 * Makefile.am (libgcj.la): Restored.
342 * Makefile.in: Rebuilt.
344 2004-09-28 Michael Koch <konqueror@gmx.de>
346 * java/net/URLConnection.java: Reformatted.
347 * java/net/URLClassLoader.java: Reformatted.
348 (getContent): Reordered return of content.
349 (getContentHandler): Don't check for null explicitely.
351 2004-09-27 Michael Koch <konqueror@gmx.de>
353 * java/io/BufferedInputStream.java
354 (BufferedInputStream): Added Jeroen Frijters to authors.
355 (count): Don't explicitely initialize with default value.
357 (marklimit): Likewise.
358 (read): Changed boolean expression to match GNU classpath' version.
359 (reset): Add proper message to exception.
360 (skip): Check for closed stream.
363 2004-09-26 Per Bothner <per@bothner.com>
365 * prims.cc (unblock_signal): Annotate signum with __unused__ to
366 avoid warnings in the non-POSIX_VERSION case.
367 Also, we only need this function if either HANDLE_SEGV or HANDLE_FPE,
368 so place it inside an #if block.
369 * include/default-signal.h (SIGNAL_HANDLER): Parameters are __unused__.
370 * include/i386-signal.h (SIGNAL_HANDLER): Likewise
371 * include/mips-signal.h (SIGNAL_HANDLER): Likewise
372 * include/sparc-signal.h (SIGNAL_HANDLER): Likewise
374 2004-09-26 Per Bothner <per@bothner.com>
376 * prims.cc (process_gcj_properties): Optimization.
378 2004-09-26 Per Bothner <per@bothner.com>
380 * java/util/Collections.java (sort): Copy from array in forwards
381 order, rather than reverse order which may be much less efficient.
383 2004-09-26 Mark Wielaard <mark@klomp.org>
385 * java/lang/System.java (properties): Make package private.
386 * java/lang/Throwable.java (StaticData.nl): Initialize through
387 directly accessing System.properties.getProperty().
389 * java/lang/Throwable.java (nl): Remove static field.
390 (StaticData): New private static inner class.
391 (stackTraceStringBuffer): Use StaticData.nl.
393 2004-09-26 Casey Marshall <csm@gnu.org>
395 * java/security/ProtectionDomain.java
396 (<init>(CodeSource,PermissionCollection)): set `staticBinding' to
399 * java/security/SecureClassLoader.java
400 (defineClass): make protection domain dynamically bound.
401 (getPermissions): call `getCurrentPolicy' to avoid permission
404 2004-09-25 Mark Wielaard <mark@klomp.org>
406 * Makefile.am (core_java_source_files): Add VMTimeZone.java.
407 (nat_source_files): Rename natTimeZone.cc to natVMTimeZone.cc.
408 * Makefile.in: Regenerated.
410 * gcj/javaprims.h: Regenerated.
412 * java/util/TimeZone.java (defaultZone): Use VMTimeZone.
413 (getDefaultTimeZone): Make package private. Check that GMToffset
414 contains at least one digit.
415 (getDefaultTimeZoneId, readTimeZoneFile, readtzFile): (Re)Moved to
417 * util/VMTimeZone.java: New file with above methods.
419 * java/util/natTimeZone.cc: Removed (renamed).
420 * java/util/natVMTimeZone.cc: Added (renamed).
422 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
424 * java/util/TimeZone.java
425 (getDefaultTimeZone): Fixed test to distinguish between hours and
426 minutes in specified timezone.
428 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
430 * java/lang/reflect/Proxy.java (getPackage, ClassFactory): Fixed
431 handling of default package. (generate): Removed confused comments
432 and code about making Method and Field accessible.
434 2004-09-25 Tom Tromey <tromey@redhat.com>
437 * testsuite/libjava.compile/pr17500.java: New file.
439 2004-09-25 Shashank Bapat <shashankbapat@yahoo.com>
440 Mark Wielaard <mark@klomp.org>
442 * gnu/regexp/RE.java (initialize): Add RETokenLookAhead support.
443 * gnu/regexp/RETokenLookAhead.java: New file.
445 * Makefile.am (ordinary_java_source_files): Add RETokenLookAhead.java.
446 * Makefile.in: Regenerated.
448 2004-09-25 Michael Koch <konqueror@gmx.de>
450 * java/io/ObjectStreamField.java:
451 Removed unused import statement.
453 2004-09-24 Tom Tromey <tromey@redhat.com>
456 * testsuite/libjava.compile/pr15656.xfail: New file.
457 * testsuite/libjava.compile/pr15656.java: new file.
460 * testsuite/libjava.lang/pr16789.out: New file.
461 * testsuite/libjava.lang/pr16789.java: New file.
463 2004-09-24 Andrew Haley <aph@redhat.com>
466 * testsuite/libjava.compile/AssertBug.java: New file.
468 2004-09-24 Casey Marshall <csm@gnu.org>
470 * java/util/PropertyPermissionCollection.java
471 (implies): avoid infinite loop.
473 2004-09-24 Andrew John Hughes <gnu_andrew@member.fsf.org>
475 * javax/security/auth/PrivateCredentialPermission.java
476 (PrivateCredentialPermission): added serialization UID
479 2004-09-24 Ilya Perminov <iperminov@logicalsoft.com>
481 * gnu/java/rmi/server/UnicastServer.java
482 (incomingMessageCall): Added code to handle Errors.
483 * gnu/java/rmi/server/UnicastServerRef.java
484 (incomingMessageCall): Added code to handle Errors.
487 2004-09-24 Tom Tromey <tromey@redhat.com>
489 * java/lang/ClassLoader.java (loadedClasses): Declare as HashMap.
490 (definedPackages): Likewise.
492 2004-09-24 Michael Koch <konqueror@gmx.de>
494 * java/io/ObjectInputStream.java:
497 2004-09-24 Casey Marshall <csm@gnu.org>
499 * java/io/ObjectInputStream.java (callReadMethod): re-throw
500 `ClassNotFoundException'.
502 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
504 * java/io/ObjectInputStream.java (readObject): Delegate instantation
505 of Externalizable classes to ObjectStreamClass.
506 * java/io/ObjectStreamClass.java (newInstance): New method to
507 instantiate Externalizable (while ignoring the accessibility of
508 the constructor). (constructor): New field to cache the constructor.
510 2004-09-24 Mark Wielaard <mark@klomp.org>
512 * java/net/URL.java (systemClassLoader): New static field.
513 (getURLStreamHandler): Always use system/application classloader
514 for finding URLStreamhandler. Remove unecessary instanceof checks.
516 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
519 (set): This method now matches the behaviour of the JDK.
520 (DEFAULT_SEARCH_PATH): Added "gnu.inet".
522 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
524 * java/net/URL.java (URL): Delete whitespaces in the protocol string.
526 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
528 * java/net/URL.java (URL(String,String,int,String,URLStreamHandler):
529 Don't set authority if host isn't specified.
531 2004-09-24 Michael Koch <konqueror@gmx.de>
533 * gnu/java/nio/PipeImpl.java: Use VMPipe for native stuff.
534 * gnu/java/nio/SelectorImpl.java: Use VMSelector for native stuff.
535 * gnu/java/nio/VMPipe.java,
536 gnu/java/nio/VMSelector.java:
538 * gnu/java/nio/natPipeImplEcos.cc,
539 gnu/java/nio/natPipeImplPosix.cc,
540 gnu/java/nio/natPipeImplWin32.cc:
542 * gnu/java/nio/natSelectorImplEcos.cc,
543 gnu/java/nio/natSelectorImplPosix.cc,
544 gnu/java/nio/natSelectorImplWin32.cc:
545 Ported to VMSelector.
546 * Makefile.am: Added new files gnu/java/nio/VMPipe.java and
547 gnu/java/nio/VMSelector.java.
548 * Makefile.in: Regenerated.
550 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
552 * java/lang/StackTraceElement.java
553 (className): Renamed field to declaringClass to be compatible
554 with Sun serialization format.
556 2004-09-23 Michael Koch <konqueror@gmx.de>
558 * java/applet/AppletContext.java,
559 java/applet/Applet.java,
560 java/applet/AppletStub.java,
561 java/applet/AudioClip.java:
562 Jalopied and checkstyle clean.
564 2004-09-23 Mark Wielaard <mark@klomp.org>
566 * java/util/Collections.java
567 (binarySearch(List, Object, Comparator)): Explicitly
568 reverse direction in list iterator.
569 (rotate): Just return when list is empty.
571 2004-09-23 Tom Tromey <tromey@redhat.com>
574 * testsuite/libjava.compile/pr17329.java: New file.
577 * testsuite/libjava.jacks/jacks.xfail: Added 9.2-implicit-6 and
580 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
582 * Makefile.am: Run aclocal with -I ../config
583 * acinclude.m4: Delete macros picked up from ../config and tidy.
584 (AM_ICONV,AM_LC_MESSAGES, PKG_CHECK_MODULES): Delete.
585 * aclocal.m4, configure, Makefile.in, gcj/Makefile.in: Regenerate.
586 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
588 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
590 * aclocal.m4: Regenerate with aclocal 1.9.2.
591 * configure: Regenerate.
592 * Makefile.in, gcj/Makefile.in: Regenerate with automake 1.9.2.
593 * include/Makefile.in, testsuite/Makefile.in: Likewise.
595 2004-09-22 David Daney <ddaney@avtrex.com>
598 * java/net/URL.java (URL): Copy userInfo from context.
599 (getUserInfo): Return cached userInfo if present.
601 2004-09-22 Tom Tromey <tromey@redhat.com>
604 * mauve-libgcj: Enable java.lang.Character tests.
606 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
608 * Makefile.am (lib_org_ietf_jgss_la_DEPENDENCIES): Add missing
610 (lib_org_ietf_jgss_la_LIBADD): Likewise.
611 * Makefile.in: Regenerated.
613 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
615 * configure.ac: Introduce AC_C_BIGENDIAN_CROSS for WORDS_BIGENDIAN.
616 * configure: Regenerate.
617 * include/config.h.in: Likewise.
618 * jni/gtk-peer/gtkpeer.h (SWAPU32): Introduce macro to swap pixels.
619 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c: Moved SWAPU32
621 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
622 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_getImagePixels): Convert
623 pixels from 0xBBGGRRAA to 0xAARRGGBB only on Little Endian
625 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c (area_updated):
628 2004-09-22 Tom Tromey <tromey@redhat.com>
631 * java/util/zip/GZIPInputStream.java (read): Avoid sign extension
633 * java/util/zip/InflaterInputStream.java (onebytebuffer): New
635 (read()): New overload.
637 2004-09-21 Tom Tromey <tromey@redhat.com>
639 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
642 2004-09-21 Michael Koch <konqueror@gmx.de>
644 * java/net/Socket.java
645 (getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
647 2004-09-21 Casey Marshall <csm@gnu.org>
649 * javax/crypto/MacSpi.java (clone): Provide meaningful
652 2004-09-21 Tom Tromey <tromey@redhat.com>
655 * Makefile.in: Rebuilt.
656 * Makefile.am (MOSTLYCLEANFILES): Removed.
657 (mostlyclean-local): Remove header files.
659 2004-09-21 Casey Marshall <csm@gnu.org>
661 * java/security/cert/X509CRLSelector.java:
662 (match): remove unreachable try-catch clauses.
663 Reported by: Dalibor Topic <robilad@kaffe.org>
665 2004-09-21 Mark Wielaard <mark@klomp.org>
667 * java/util/TreeMap.java (root): Don't initialize.
668 (TreeMap(Comparator)): Call fabricateTree(0).
669 (fabricateTree): Initialize root and size when count is 0.
671 2004-09-21 Sven de Marothy <sven@physto.se>
673 * java/nio/ByteBuffer.java (hashCode): Implemented.
674 * java/nio/CharBuffer.java: Likewise.
675 * java/nio/DoubleBuffer.java: Likewise.
676 * java/nio/FloatBuffer.java: Likewise.
677 * java/nio/LongBuffer.java: Likewise.
678 * java/nio/IntBuffer.java: Likewise.
679 * java/nio/ShortBuffer.java: Likewise.
681 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
683 * javax/security/auth/x500/X500Principal.java: Fix some merge glitches.
685 2004-09-21 Michael Koch <konqueror@gmx.de>
687 * javax/net/ssl/SSLServerSocket.java:
688 Removed comment about "Do not edit this file, it's generated.".
690 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
692 Import the big Crypto/Jessie/Security merge from Classpath.
694 * Makefile.am: Add imported files.
695 * Makefile.in: Regenerate.
697 2004-08-14 Casey Marshall <csm@gnu.org>
699 The Big Crypto Merge of 2004.
701 * javax/security/auth/x500/X500Principal.java: Replaced with GNU
704 Files imported from GNU Crypto.
705 * javax/crypto/BadPaddingException.java
706 * javax/crypto/Cipher.java
707 * javax/crypto/CipherInputStream.java
708 * javax/crypto/CipherOutputStream.java
709 * javax/crypto/CipherSpi.java
710 * javax/crypto/EncryptedPrivateKeyInfo.java
711 * javax/crypto/ExemptionMechanism.java
712 * javax/crypto/ExemptionMechanismException.java
713 * javax/crypto/ExemptionMechanismSpi.java
714 * javax/crypto/IllegalBlockSizeException.java
715 * javax/crypto/KeyAgreement.java
716 * javax/crypto/KeyAgreementSpi.java
717 * javax/crypto/KeyGenerator.java
718 * javax/crypto/KeyGeneratorSpi.java
719 * javax/crypto/Mac.java
720 * javax/crypto/MacSpi.java
721 * javax/crypto/Makefile.am
722 * javax/crypto/NoSuchPaddingException.java
723 * javax/crypto/NullCipher.java
724 * javax/crypto/NullCipherImpl.java
725 * javax/crypto/SealedObject.java
726 * javax/crypto/SecretKey.java
727 * javax/crypto/SecretKeyFactory.java
728 * javax/crypto/SecretKeyFactorySpi.java
729 * javax/crypto/ShortBufferException.java
730 * javax/crypto/interfaces/DHKey.java
731 * javax/crypto/interfaces/DHPrivateKey.java
732 * javax/crypto/interfaces/DHPublicKey.java
733 * javax/crypto/interfaces/PBEKey.java
734 * javax/crypto/spec/DESKeySpec.java
735 * javax/crypto/spec/DESedeKeySpec.java
736 * javax/crypto/spec/DHGenParameterSpec.java
737 * javax/crypto/spec/DHParameterSpec.java
738 * javax/crypto/spec/DHPrivateKeySpec.java
739 * javax/crypto/spec/DHPublicKeySpec.java
740 * javax/crypto/spec/IvParameterSpec.java
741 * javax/crypto/spec/PBEKeySpec.java
742 * javax/crypto/spec/PBEParameterSpec.java
743 * javax/crypto/spec/RC2ParameterSpec.java
744 * javax/crypto/spec/RC5ParameterSpec.java
745 * javax/crypto/spec/SecretKeySpec.java
746 * javax/security/auth/AuthPermission.java
747 * javax/security/auth/DestroyFailedException.java
748 * javax/security/auth/Destroyable.java
749 * javax/security/auth/Policy.java
750 * javax/security/auth/PrivateCredentialPermission.java
751 * javax/security/auth/RefreshFailedException.java
752 * javax/security/auth/Refreshable.java
753 * javax/security/auth/Subject.java
754 * javax/security/auth/SubjectDomainCombiner.java
755 * javax/security/auth/callback/Callback.java
756 * javax/security/auth/callback/CallbackHandler.java
757 * javax/security/auth/callback/ChoiceCallback.java
758 * javax/security/auth/callback/ConfirmationCallback.java
759 * javax/security/auth/callback/LanguageCallback.java
760 * javax/security/auth/callback/NameCallback.java
761 * javax/security/auth/callback/PasswordCallback.java
762 * javax/security/auth/callback/TextInputCallback.java
763 * javax/security/auth/callback/TextOutputCallback.java
764 * javax/security/auth/callback/UnsupportedCallbackException.java
765 * javax/security/auth/login/AccountExpiredException.java
766 * javax/security/auth/login/AppConfigurationEntry.java
767 * javax/security/auth/login/Configuration.java
768 * javax/security/auth/login/CredentialExpiredException.java
769 * javax/security/auth/login/FailedLoginException.java
770 * javax/security/auth/login/LoginContext.java
771 * javax/security/auth/login/LoginException.java
772 * javax/security/auth/login/NullConfiguration.java
773 * javax/security/auth/x500/X500PrivateCredential.java
774 * javax/security/sasl/AuthenticationException.java
775 * javax/security/sasl/AuthorizeCallback.java
776 * javax/security/sasl/RealmCallback.java
777 * javax/security/sasl/RealmChoiceCallback.java
778 * javax/security/sasl/Sasl.java
779 * javax/security/sasl/SaslClient.java
780 * javax/security/sasl/SaslClientFactory.java
781 * javax/security/sasl/SaslException.java
782 * javax/security/sasl/SaslServer.java
783 * javax/security/sasl/SaslServerFactory.java
784 * org/ietf/jgss/ChannelBinding.java
785 * org/ietf/jgss/GSSContext.java
786 * org/ietf/jgss/GSSCredential.java
787 * org/ietf/jgss/GSSException.java
788 * org/ietf/jgss/GSSManager.java
789 * org/ietf/jgss/GSSName.java
790 * org/ietf/jgss/MessageProp.java
791 * org/ietf/jgss/Oid.java
792 * org/ietf/jgss/MessagesBundle.properties
794 Files imported from Jessie <http://www.nongnu.org/jessie/>
795 * javax/net/ServerSocketFactory.java
796 * javax/net/SocketFactory.java
797 * javax/net/VanillaServerSocketFactory.java
798 * javax/net/VanillaSocketFactory.java
799 * javax/net/ssl/HandshakeCompletedEvent.java
800 * javax/net/ssl/HandshakeCompletedListener.java
801 * javax/net/ssl/HostnameVerifier.java
802 * javax/net/ssl/HttpsURLConnection.java
803 * javax/net/ssl/KeyManager.java
804 * javax/net/ssl/KeyManagerFactory.java
805 * javax/net/ssl/KeyManagerFactorySpi.java
806 * javax/net/ssl/ManagerFactoryParameters.java
807 * javax/net/ssl/SSLContext.java
808 * javax/net/ssl/SSLContextSpi.java
809 * javax/net/ssl/SSLException.java
810 * javax/net/ssl/SSLHandshakeException.java
811 * javax/net/ssl/SSLKeyException.java
812 * javax/net/ssl/SSLPeerUnverifiedException.java
813 * javax/net/ssl/SSLPermission.java
814 * javax/net/ssl/SSLProtocolException.java
815 * javax/net/ssl/SSLServerSocket.java
816 * javax/net/ssl/SSLServerSocketFactory.java
817 * javax/net/ssl/SSLSession.java
818 * javax/net/ssl/SSLSessionBindingEvent.java
819 * javax/net/ssl/SSLSessionBindingListener.java
820 * javax/net/ssl/SSLSessionContext.java
821 * javax/net/ssl/SSLSocket.java
822 * javax/net/ssl/SSLSocketFactory.java
823 * javax/net/ssl/TrivialHostnameVerifier.java
824 * javax/net/ssl/TrustManager.java
825 * javax/net/ssl/TrustManagerFactory.java
826 * javax/net/ssl/TrustManagerFactorySpi.java
827 * javax/net/ssl/X509KeyManager.java
828 * javax/net/ssl/X509TrustManager.java
829 * javax/security/cert/Certificate.java
830 * javax/security/cert/CertificateEncodingException.java
831 * javax/security/cert/CertificateException.java
832 * javax/security/cert/CertificateExpiredException.java
833 * javax/security/cert/CertificateNotYetValidException.java
834 * javax/security/cert/CertificateParsingException.java
835 * javax/security/cert/X509CertBridge.java
836 * javax/security/cert/X509Certificate.java
838 2004-08-20 Casey Marshall <csm@gnu.org>
840 * java/security/cert/X509CRLSelector.java: New file.
841 * java/security/cert/X509CertSelector.java: New file.
843 2004-09-15 Michael Koch <konqueror@gmx.de>
845 * gnu/java/net/protocol/file/Handler.java
846 (openConnection): Don't throw exception if host part for file: URI is
847 present. setURL() keeps file: protocol if ftp: protocol is not
850 2004-09-14 Richard Henderson <rth@redhat.com>
852 * java/lang/natPosixProcess.cc (waitForSignal): Ignore return
855 2004-09-12 Tom Tromey <tromey@redhat.com>
857 * javax/naming/CompoundName.java (CompoundName): Don't check for
858 separator in "flat" case.
860 2004-09-12 Michael Koch <konqueror@gmx.de>
862 * libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces
863 AM_CONFIG_HEADER by AC_CONFIG_FILES.
864 * libltdl/Makefile.in, libltdl/aclocal.m4, libltdl/configure:
867 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
870 * win32-threads.cc (_Jv_ThreadInitData): Zero out thread
871 handle in newly-allocated _Jv_Thread_t.
872 (_Jv_ThreadDestroyData): Close thread handle.
873 (_Jv_ThreadStart): Remove obsolete comment.
874 Store handle of newly-created thread in _Jv_Thread_t.
875 * include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
876 before including <windows.h>
877 #define _Jv_HaveCondDestroy
879 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
881 * java/lang/natThread.cc (finalize_native): Destroy
882 join conditional variable and mutex if these destroy
883 operations are supported.
885 2004-09-10 Dalibor Topic <robilad@kaffe.org>
887 * gnu/java/net/protocol/file/Connection.java (permission): New field.
888 (DEFAULT_PERMISSION): New constant.
889 (Connection): Create a FilePermission with permission to read file.
891 2004-09-10 Michael Koch <konqueror@gmx.de>
893 * gnu/java/net/protocol/file/Connection.java
894 (getLastModified): Moved around.
895 (getPermission): Return stored permission.
897 2004-09-10 Michael Koch <konqueror@gmx.de>
899 * Makefile.in: Regenerate.
901 2004-09-10 Michael Koch <konqueror@gmx.de>
903 * Makefile.am: Reverted accidently commited stuff.
904 * configure: Regenerated.
906 2004-09-10 Michael Koch <konqueror@gmx.de>
908 * gnu/java/net/protocol/file/Connection.java
909 (lineSeparator): Made non-final.
911 (connect): Initialize lineSeparator lazily. Use ByteArrayInputStream
912 instead of StringBufferInputStream.
914 2004-09-10 Michael Koch <konqueror@gmx.de>
916 * gnu/java/net/protocol/file/Connection.java
917 (connect): Handle file is a directory case.
919 2004-09-10 Michael Koch <konqueror@gmx.de>
922 (xlib_includes): Removed.
923 (AM_CPPFLAGS): Renamed from INCLUDES.
924 (lib_gnu_awt_xlib_la_CPPFLAGS): New automake variable.
925 * Makefile.in: Regenerate.
927 2004-09-09 Michael Koch <konqueror@gmx.de>
929 * java/security/ProtectionDomain.java,
930 * java/util/PropertyPermissionCollection.java:
931 Fixed javadocs all over.
933 2004-09-09 Sven de Marothy <sven@physto.se>
935 Patch from David Gilbert <david.gilbert@object-refinery.com>
936 * java/lang/Comparable.java: Fixed documentation errors.
937 * java/util/Arrays.java: Likewise.
939 2004-09-09 Andrew John Hughes <gnu_andrew@member.fsf.org>
941 * java/net/Inet4Address.java
942 (Inet4Address): Added comment to serialization UID.
943 * java/text/Format.java
944 (Format): Added comment to serialization UID.
946 2004-09-09 Michael Koch <konqueror@gmx.de>
948 * java/lang/System.java
949 (err): Fixed javadoci to point to setErr() and not setOut().
951 2004-09-09 Jeroen Frijters <jeroen@frijters.net>
953 (normalizePath): Added special case for windows systems.
955 2004-09-09 Michael Koch <konqueror@gmx.de>
958 (dupSeparator): Made private.
959 (File(URI)): New constructor.
960 (getParentFile): Fixed javadoc.
961 (createTempFile): Reformated.
962 (setReadOnly): Added comment.
963 (deleteOnExit): Merged javadoc with classpath version.
965 2004-09-09 Michael Koch <konqueror@gmx.de>
967 * Makefile.am: Don't try to include deps.mk.
968 * Makefile.in: Regenerated.
970 2004-09-08 Bryce McKinlay <mckinlay@redhat.com>
972 * configure.ac (AC_CONFIG_COMMANDS): Don't create subdirectories and
974 * configure: Rebuilt.
976 2004-09-04 Mohan Embar <gnustuff@thisiscool.com>
978 * java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces):
979 Changed pfn from static local to local.
981 2004-09-03 Bryce McKinlay <mckinlay@redhat.com>
982 H.J. Lu <hongjiu.lu@intel.com>
985 * Makefile.am (GCJCOMPILE): Remove definition.
986 (AM_CFLAGS): Add -fclasspath and -fbootclasspath flags.
987 Use LTGCJCOMPILE, not GCJCOMPILE, to build .lo targets.
988 * Makefile.in: Rebuilt.
990 2004-09-03 Kelley Cook <kcook@gcc.gnu.org>
992 * configure.ac (enable-gc-debug): Update help for new syntax.
993 * configure: Regenerate.
995 2004-09-03 David Daney <ddaney@avtrex.com>
997 * include/mips-signal.h: Update copyright.
999 2004-09-03 David Daney <ddaney@avtrex.com>
1001 * configure.host: Use -fno-use-divide-subroutine for mips*-*-linux*.
1002 * include/mips-signal.h: Added HANDLE_FPE support.
1004 2004-08-31 Michael Koch <konqueror@gmx.de>
1006 * javax/swing/plaf/basic/BasicTextAreaUI.java
1007 (create): New method.
1008 * javax/swing/text/DefaultHighlighter.java
1009 (DefaultHighlightPainter.debugRect): Removed.
1010 * javax/swing/text/StyleContext.java
1011 (DEFAULT_STYLE): New field.
1013 2004-08-31 Michael Koch <konqueror@gmx.de>
1015 * javax/swing/plaf/basic/BasicLookAndFeel.java
1016 (initComponentDefaults): Add keybindings for selection.backward and
1017 selection-forward for text components.
1018 * javax/swing/plaf/basic/BasicTextUI.java
1019 (paintSafely): Paint highlight only when something is actually
1021 * javax/swing/text/DefaultCaret.java
1022 (handleHighlight): New method.
1023 (setSelectionVisible): Don't do anything when nothing changes.
1025 (moveDot): Reimplemented. Handle highlight.
1026 (setDot): Set mark too. Handle highlight.
1027 (getSelectionPainter): New method.
1028 * javax/swing/text/DefaultEditorKit.java
1029 (defaultActions): Added new actions for text selection.
1030 * javax/swing/text/DefaultHighlighter.java
1031 (DefaultHighlightPainter): New inner class.
1032 (DefaultPainter): New field.
1033 (paint): Implemented.
1034 * javax/swing/text/PlainView.java
1035 (paint): Don't draw background here again.
1036 * javax/swing/text/Utilities.java
1037 (getTabbedTextWidth): Use width of ' ' instead of 'm' for tabsize.
1038 (drawTabbedText): Likewise.
1040 2004-08-31 Graydon Hoare <graydon@redhat.com>
1042 * javax/swing/JComponent.java
1043 (resetKeyboardActions): Add null checks.
1045 2004-08-31 Graydon Hoare <graydon@redhat.com>
1047 * javax/swing/DefaultButtonModel.java:
1048 Skip group notification when no group is set.
1050 2004-08-31 Graydon Hoare <graydon@redhat.com>
1052 * javax/swing/JColorChooser.java:
1053 Make a couple inner classes static, for jikes.
1055 2004-08-31 Michael Koch <konqueror@gmx.de>
1057 * javax/swing/plaf/basic/BasicTextUI.java
1058 (RottView.modelToView): New method.
1059 (UpdateHandler): Renamed from EventHandler.
1060 (updateHandler): Renamed from eventHandler.
1061 (modelToView): Implemented.
1062 * javax/swing/text/AbstractDocument.java
1063 (BranchElement.getElement): Return null for non-existing indeces.
1064 (BranchElement.getElementIndex): Return 0 in some corner cases.
1065 * javax/swing/text/FieldView.java
1066 (modelToView): New method.
1067 * javax/swing/text/PlainView.java
1068 (modelToView): Made public.
1070 2004-08-31 Kim Ho <kho@redhat.com>
1072 * Makefile.am: New files.
1073 * Makefile.in: Regenerate.
1074 * gcj/Makefile.in: Regenerate.
1075 * include/Makefile.in: Regenerate.
1076 * java/awt/Color.java: Fix documentation.
1077 (RGBtoHSB): Use floats for conversions.
1078 * javax/swing/ButtonGroup.java: Run Jalopy.
1079 (setSelected): Reimplement.
1080 * javax/swing/DefaultButtonModel.java: Run Jalopy.
1081 (changeState): Let ButtonGroup know that the button
1083 * javax/swing/JColorChooser.java: Implement.
1084 * javax/swing/JLabel.java: Run Jalopy.
1085 * javax/swing/JSpinner.java: Run Jalopy.
1086 (setValue): New method.
1087 * javax/swing/JTabbedPane.java: Run Jalopy.
1088 (removeTabAt): Call correct remove method.
1089 * javax/swing/SpinnerNumberModel.java: Run Jalopy.
1090 (getPreviousValue): Compare minimum value.
1091 * javax/swing/Timer.java: Run Jalopy.
1092 (run): Comment out println.
1093 * javax/swing/ToolTipManager.java:
1094 (mouseMoved): Get new tooltip text for location.
1095 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
1097 * javax/swing/colorchooser/ColorChooserComponentFactory.java:
1099 * javax/swing/colorchooser/DefaultColorSelectionModel.java:
1101 (setSelectedColor): Fire ChangeEvent.
1102 * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
1103 New file. Implement.
1104 * javax/swing/colorchooser/DefaultPreviewPanel.java:
1106 * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
1108 * javax/swing/colorchooser/DefaultSwatchChooserPanel.java:
1110 * javax/swing/plaf/basic/BasicArrowButton.java:
1111 (getArrow): Fix size of upward pointing button.
1112 * javax/swing/plaf/basic/BasicColorChooserUI.java:
1114 * javax/swing/plaf/basic/BasicSliderUI.java:
1115 (getWidthOfWidestLabel): Use preferred dimensions.
1116 (getHeightOfTallestLabel): Ditto.
1117 * javax/swing/plaf/basic/BasicSpinnerUI.java:
1119 (mousePressed): Disable changes to spinner if it is not enabled.
1120 * testsuite/Makefile.in: Regenerate.
1123 2004-08-31 Michael Koch <konqueror@gmx.de>
1125 * javax/swing/plaf/basic/BasicTableHeaderUI.java,
1126 javax/swing/plaf/basic/BasicTableUI.java:
1127 Added copyright notice.
1129 2004-08-31 Olga Rodimina <rodimina@redhat.com>
1131 * Makefile.am: Added new files.
1132 * Makefile.in: Regenerate.
1133 * javax/swing/ComboBoxEditor.java: Added javadocs.
1134 * javax/swing/ComboBoxModel.java: Likewise.
1135 * javax/swing/DefaultComboBoxModel.java: Implemented.
1136 * javax/swing/DefaultListCellRenderer.java: Added javadocs
1137 and ran through jalopy to fix formatting style.
1138 (getListCellRendererComponent): Use appropriate border
1139 if renderer has focus and use noFocusBorder when it doesn't.
1140 * javax/swing/JComboBox.java: Implemented.
1141 * javax/swing/JList.java:
1142 (locationToIndex): New Method. Implemented.
1143 (indexToLocation): New Method.
1144 * javax/swing/JPopupMenu.java:
1145 (visible): New field.
1146 (isVisible): Changed to use new field above.
1147 (setVisible): Likewise.
1148 * javax/swing/MutableComboBoxModel.java: Added javadocs.
1149 * javax/swing/plaf/basic/BasicArrowButton.java:
1150 (shadow): Changed default color to Color.gray.
1151 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
1152 UI delegate for JComboBox.
1153 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
1154 Popup menu containing list of JComboBox's items.
1155 * javax/swing/plaf/basic/BasicComboBoxEditor.java: New File.
1156 * javax/swing/plaf/basic/BasicComboBoxRenderer.java: New File.
1157 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
1158 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
1159 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
1160 (popupMenuWillBecomeVisible): Set selected path to the first
1161 element only if it is of type MenuElement. Also fix formatting
1163 * javax/swing/plaf/basic/ComboPopup.java: Added javadocs and missing
1166 2004-08-31 Michael Koch <konqueror@gmx.de>
1168 * javax/swing/text/AbstractDocument.java
1169 (createBranchElement): Use new constructor of BranchElement.
1170 (createLeafElement): Renamed arguments.
1171 (getRootElements): Implemented.
1172 (BranchElement.start): Removed.
1173 (BranchElement.end): Likewise.
1174 (BranchElement.BranchElement): Fixed arguments.
1175 (BranchElement.getEndOffset): Reimplemented.
1176 (BranchElement.getStartOffset): Likewis.
1177 * javax/swing/text/DefaultCaret.java
1178 (paint): Draw simple vertical line as caret instead of a rectangle.
1179 * javax/swing/text/JTextComponent.java
1180 (setText): Use doc directly.
1181 * javax/swing/text/PlainView.java
1182 (nextTabStop): Implemented.
1183 * javax/swing/text/Utilities.java
1184 (drawTabbedText): nextTabStop() returns an absolute x position.
1185 (getTabbedTextWidth): Likewise.
1187 2004-08-31 Graydon Hoare <graydon@redhat.com>
1189 * java/awt/Component.java
1190 (isFocusTraversable): Predicate on isLightweight()
1191 (setFocusable): Set isFocusTraversableOverridden.
1192 (requestFocus): Predicate peer dispatch on !isLightweight()
1193 (requestFocusInWindow): Likewise.
1194 (dispatchEventImpl): Coordinate with KeyboardFocusManager.
1195 * java/awt/Container.java
1196 (dispatchEventImpl): Predicate on event mask.
1197 (LightweightDispatcher): Remove focus machinery.
1198 * java/awt/DefaultFocusTraversalPolicy.java
1199 (accept): Expand predicate to include isFocusable().
1200 * java/awt/DefaultKeyboardFocusManager.java:
1201 Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
1202 * java/awt/KeyboardFocusManager.java
1203 (redispatchEvent): Synchronize on event to prevent feedback.
1204 * javax/swing/AbstractButton.java
1205 (ButtonFocusListener): Remove class.
1206 (init): Set focusPainted, focusable.
1207 * javax/swing/ActionMap.java (get): Check parent for null.
1208 * javax/swing/InputMap.java (get): Likewise.
1209 * javax/swing/JComponent.java
1210 (inputMap_whenFocused): New InputMap.
1211 (inputMap_whenAncestorOfFocused): Likewise.
1212 (inputMap_whenInFocusedWindow): Likewise.
1213 (getActionForKeyStroke): Rewrite.
1214 (getConditionForKeystroke): Likewise.
1215 (ActionListenerProxy): New private class.
1216 (setInputMap): Implement.
1217 (getInputMap): Likewise.
1218 (setActionMap): Likewise.
1219 (getActionMap): Likewise.
1220 (processComponentKeyEvent): New empty method.
1221 (processKeyEvent): Implement.
1222 (processKeyBinding): Likewise.
1223 (resetKeyboardActions): Rewrite.
1224 * javax/swing/KeyStroke.java: Rewrite.
1225 * javax/swing/SwingUtilities.java
1226 (notifyAction): Implement.
1227 (replaceUIActionMap): Likewise.
1228 (replaceUIInputMap): Likewise.
1229 * javax/swing/plaf/basic/BasicButtonListener.java
1230 (focusGained): Implement.
1231 (focusLost): Repaint if focusPainted().
1232 (installKeyboardActions): Install pressed / released actions.
1233 (uninstallKeyboardActions): Implement.
1234 * javax/swing/plaf/basic/BasicButtonUI.java
1235 (focusColor): New field.
1236 (installDefaults): Load focus color, install input map.
1237 (installKeyboardActions): Implement.
1238 (uninstallKeyboardActions): Likewise.
1239 (paintFocus): Rewrite.
1240 * javax/swing/plaf/basic/BasicLookAndFeel.java
1241 (Button.focus): New default, midPurple.
1242 * javax/swing/plaf/basic/BasicTextUI.java
1244 (installUI): Get doc from kit, load defaults.
1245 (getKeymapName): Implement.
1246 (createKeymap): Likewise.
1247 (installKeyboardActions): Likewise.
1248 (getInputMap): Likewise.
1249 (getActionMap): Likewise.
1250 (createActionMap): Likewise.
1251 * javax/swing/text/AbstractDocument.java
1252 (getStartPosition): Implement.
1253 (getEndPosition): Likewise.
1254 * javax/swing/text/DefaultEditorKit.java
1255 (CopyAction): New class.
1256 (CutAction): Likewise.
1257 (DefaultKeyTypedAction): Likewise.
1258 (InsertBreakAction): Likewise.
1259 (InsertContentAction): Likewise.
1260 (InsertTabAction): Likewise.
1261 (PasteAction): Likewise.
1262 (defaultActions): New static table.
1263 (createCaret): Implement.
1264 (getActions): Likewise.
1265 * javax/swing/text/JTextComponent.java
1266 (KeymapWrapper): New private class.
1267 (KeymapActionMap): Likewise.
1268 (DefaultKeymap): New class.
1269 (keymaps): New static table.
1270 (keymap): New field.
1271 (getKeymap): Implement.
1272 (removeKeymap): Likewise.
1273 (addKeymap): Likewise.
1274 (setKeymap): Likewise.
1275 (loadKeymap): Likewise.
1276 (getActions): Likewise.
1277 (margin): New field.
1278 (JTextComponent): Build and install default keymap.
1279 * javax/swing/text/TextAction.java
1280 (textAction): Call super properly.
1281 (getTextComponent): Implement.
1282 * javax/swing/text/Utilities.java
1283 (drawTabbedText): Adjust position by ascent.
1285 2004-08-31 David Jee <djee@redhat.com>
1289 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
1290 (setEnabled): Make it a native method.
1291 * java/awt/DefaultKeyboardFocusManager.java
1292 (postProcessKeyEvent): Only post event if the menu item
1294 * java/awt/MenuItem.java:
1295 Private field 'enabled' should be true by default.
1296 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
1297 (setEnabled): New function.
1299 2004-08-31 David Jee <djee@redhat.com>
1303 * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
1304 (nativeSetHelpMenu): New native method declaration.
1305 (addHelpMenu): Call nativeSetHelpMenu().
1307 * java/awt/MenuBar.java
1308 (setHelpMenu): Call addNotify() on the new help menu.
1309 (add): Call addNotify() on the new menu.
1310 (addNotify): Set the help menu if one exists.
1311 * java/awt/peer/MenuBarPeer.java
1313 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
1314 (nativeSetHelpMenu): New method.
1316 2004-08-31 Graydon Hoare <graydon@redhat.com>
1318 * Makefile.am: Add new files.
1319 * Makefile.in: Regenerate.
1320 * javax/swing/Box.java: Fix setting of layout in ctor.
1321 * javax/swing/JScrollPane.java: Scroll headers as well.
1322 * javax/swing/JTable.java: Reimplement.
1323 * javax/swing/JViewPort.java: Only add non-null children.
1324 * javax/swing/ScrollPaneLayout.java: Correct header calculations.
1325 * javax/swing/Timer.java: Fix stopping null waker.
1326 * javax/swing/plaf/basic/BasicTableHeaderUI.java: New file.
1327 * javax/swing/plaf/basic/BasicTableUI.java: New file.
1328 * javax/swing/table/DefaultTableCellRenderer.java: Configure.
1329 * javax/swing/table/DefaultTableColumnModel.java: Flesh out.
1330 * javax/swing/table/DefaultTableModel.java: Clean up.
1331 * javax/swing/table/JTableHeader.java: Implement.
1333 2004-08-31 Mark Wielaard <mark@klomp.org>
1335 * javax/swing/JSpinner.java (getChangeListeners): Remove double
1338 2004-08-31 Mark Wielaard <mark@klomp.org>
1340 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
1341 Declare variables at top of functions/block.
1342 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Likewise.
1344 2004-08-31 Mark Wielaard <mark@klomp.org>
1346 * java/lang/Rectangle.java (intersects): Check r.width and r.height
1349 2004-08-31 Michael Koch <konqueror@gmx.de>
1351 * javax/swing/text/PlainView.java
1352 (selectedColor): New field.
1353 (unselectedColor): Likewise.
1355 (updateMetrics): New method.
1356 (lineToRect): Likewise.
1357 (modelToView): Likewise.
1358 (drawSelectedText): Use color from JTextComponent ad draw with
1360 (drawUnselectedText): Likewise.
1361 (paint): Initialize helper fields.
1362 * javax/swing/text/View.java
1363 (getChildAllocation): New method.
1364 (getViewIndex): Likewise.
1365 (getToolTipText): Likewise.
1367 2004-08-31 Michael Koch <konqueror@gmx.de>
1369 * javax/swing/text/Utilities.java
1370 (drawTabbedText): Reimplemented.
1371 (getTabbedTextWidth): Likewise.
1373 2004-08-31 Michael Koch <konqueror@gmx.de>
1375 * javax/swing/plaf/basic/BasicTextUI.java
1376 (installDefaults): Install caret and highlighter.
1377 (modelToView): Use Bias.Forward when calling sibling.
1378 * javax/swing/text/AbstractDocument.java
1379 (ElementEdit): Implements DocumentEvent.ElementChange.
1380 (ElementEdit.ElementEdit): New method.
1381 (ElementEdit.getChildrenAdded): Likewise.
1382 (ElementEdit.getChildrenRemoved): Likewise.
1383 (ElementEdit.getElement): Likewise.
1384 (ElementEdit.getIndex): Likewise.
1385 * javax/swing/text/DefaultCaret.java
1387 (textComponent): Renamed from parent, made private.
1388 (selectionVisible): Renamed from vis_sel, made private.
1389 (blinkRate): Renamed from blink, made private.
1390 (magicCaretPosition): Renamed from magic, made private.
1391 (visible): Renamed from vis, made private.
1392 (dot): Made private.
1394 (deinstall): Remove as MouseMotionListener.
1395 (install): Initialize textComponent first. Add as MouseMotionListener.
1396 (paint): Reimplemented.
1397 * javax/swing/text/JTextComponent.java
1398 (setCaret): Deinstall old caret, install new one and fire property
1399 change after setting property.
1400 (setHighlighter): Deinstall old highlighter, install new one and fire
1401 property change after setting property.
1402 (setCaretColor): Fire property change after setting property.
1403 (setDisabledTextColor): Likewise.
1404 (setSelectedTextColor): Likewise.
1405 (setSelectionColor): Likewise.
1406 (modelToView): New method.
1408 2004-08-31 Michael Koch <konqueror@gmx.de>
1410 * javax/swing/text/AbstractDocument.java
1411 (getText): Simplified.
1412 * javax/swing/text/Segment.java
1413 (current): New field.
1414 (current): Reimplemented.
1416 (getIndex): Likewise.
1419 (previous): Likewise.
1420 (setIndex): Likewise.
1422 2004-08-31 Michael Koch <konqueror@gmx.de>
1424 * javax/swing/plaf/basic/BasicButtonUI.java
1425 (defaultTextIconGap): Made protected.
1426 (defaultTextShiftOffset): Likewise.
1427 (textShiftOffset): New field.
1428 (clearTextShiftOffset): New method.
1429 (getTextShiftOffset): Likewise.
1430 (setTextShiftOffset): Likewise.
1432 2004-08-31 Michael Koch <konqueror@gmx.de>
1434 * javax/swing/plaf/basic/BasicTextUI.java
1435 (installUI): Add eventHandler as property listener.
1436 (uninstallUI): remove eventHandler as propert listener.
1437 (installDefaults): Added comment.
1438 (installListeners): Likewise.
1439 (installKeyboardActions): Likewise.
1440 (uninstallDefaults): Likewise.
1441 (uninstallListeners): Likewise.
1442 (uninstallKeyboardActions): Likewise.
1444 2004-08-31 Michael Koch <konqueror@gmx.de>
1446 * javax/swing/text/AbstractDocument.java:
1447 Fixed some typos in comments.
1448 (insertString): Reimplemented.
1450 (replace): New method.
1451 (children): Dont use fully qualified class name.
1452 (DefaultDocumentEvent.offset): Renamed from off.
1453 (DefaultDocumentEvent.length): Renamed from len.
1454 (DefaultDocumentEvent.type): New field.
1455 (DefaultDocumentEvent.DefaultDocumentEvent): New constructor.
1456 (DefaultDocumentEvent.getType): Implemented.
1458 2004-08-31 Michael Koch <konqueror@gmx.de>
1460 * javax/swing/plaf/basic/BasicTextUI.java
1461 (RootView.textComponent): Removed.
1462 (RootView.RootView): Don't initialize textComponent.
1463 (RootView.getViewFactory): New method.
1464 (EventHandler): New inner class.
1465 (rootView): Initialize at instance creation.
1466 (eventHandler): New field.
1467 (installUI): Don't create view hierarchy directly,
1468 call modelChanged() instead.
1469 (modelChanged): New method.
1470 * javax/swing/text/JTextComponent.java
1471 (setDocument): Fire property change event.
1473 2004-08-31 Michael Koch <konqueror@gmx.de>
1475 * javax/swing/plaf/basic/BasicTextUI.java
1476 (RootView.paint): Removed debug output.
1477 (paintSafely): Draw highlighter before text.
1478 (paintBackground): Use background color of text component.
1479 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
1482 2004-08-31 Michael Koch <konqueror@gmx.de>
1484 * javax/swing/plaf/basic/BasicToolBarUI.java
1485 (BasicToolBarUI): Fixed arguments for constructor.
1486 (createUI): Fixed creation of object.
1488 2004-08-31 Michael Koch <konqueror@gmx.de>
1490 * javax/swing/DefaultListSelectionModel.java
1491 (fireValueChanged): Renamed from fireSelectionValueChanged,
1494 2004-08-31 Michael Koch <konqueror@gmx.de>
1496 * javax/swing/text/TabSet.java
1497 (TabSet): Implements java.io.Serializable.
1498 * javax/swing/text/TabStop.java
1499 (TabStop): Implements java.io.Serializable.
1500 (TabStop): Made public.
1502 2004-08-31 Michael Koch <konqueror@gmx.de>
1504 * javax/swing/JComponent.java
1505 (setUI): Fire PropertyChange.
1506 * javax/swing/JLabel.java
1507 (text): Renamed from labelText.
1508 (horizontalAlignment): New default vlaue.
1509 (icon): Renamed from activeIcon.
1510 (displayedMnemonic): Renamed from mnemonicKey, added default value.
1511 (displayedMnemonicIndex): Renamed from underlineChar.
1512 (setDisplayedMnemonic): Reimplemented.
1513 * javax/swing/JRadioButton.java
1514 (JRadioButton): New constructors.
1515 * javax/swing/JTextField.java
1516 (JTextField): Throw exception if colums < 0, initialitialz
1517 this.columns directly and initialize document with text conditionally.
1519 2004-08-31 Michael Koch <konqueror@gmx.de>
1521 * javax/swing/plaf/basic/BasicFormattedTextFieldUI.java,
1522 javax/swing/plaf/basic/BasicPasswordFieldUI.java,
1523 javax/swing/plaf/basic/BasicTextAreaUI.java: New files.
1524 * javax/swing/text/FieldView.java
1525 (paint): Just call super method for now.
1526 * Makefile.am: Added new files.
1527 * Makefile.in: Regenerated.
1529 2004-08-31 Ka-Hing Cheung <kahing@javabsp.org>
1531 * javax/swing/AbstractSpinnerModel.java,
1532 javax/swing/JSpinner.java,
1533 javax/swing/SpinnerNumberModel.java,
1534 javax/swing/plaf/basic/BasicSpinnerUI.java:
1536 * javax/swing/plaf/basic/BasicLookAndFeel.java
1537 (initClassDefaults): Added defaults for BasicSpinnerUI.
1539 2004-08-31 Michael Koch <konqueror@gmx.de>
1541 * Makefile.am: Added new files.
1542 * Makefile.in: Regenerated.
1544 2004-08-31 Michael Koch <konqueror@gmx.de>
1546 * javax/swing/TransferHandler.java,
1547 javax/swing/plaf/basic/ComboPopup.java: New files
1548 * Makefile.am: Added javax/swing/TransferHandler.java and
1549 javax/swing/plaf/basic/ComboPopup.java
1550 * Makefile.in: Regenerated.
1552 2004-08-31 Roman Kennke <roman@ontographics.com>
1554 * javax/swing/text/Utilities.java: New file.
1556 2004-08-31 Michael Koch <konqueror@gmx.de>
1558 * Makefile.am: Added javax/swing/text/Utilities.java.
1559 * Makefile.in: Regenerated.
1561 2004-08-31 Graydon Hoare <graydon@redhat.com>
1563 * javax/swing/text/SimpleAttributeSet.java: New file.
1564 * javax/swing/text/StyleConstants.java: New file.
1565 * javax/swing/text/StyleContext.java: New file.
1566 * javax/swing/text/TabSet.java: New file.
1567 * javax/swing/text/TabStop.java: New file.
1568 * javax/swing/text/AbstactDocument.java:
1569 (AbstractElement): Implement attribute support.
1570 * javax/swing/text/AttributeSet.java
1571 (NameAttribute): New static field.
1572 (ResolveAttribute): New static field.
1573 * Makefile.am: Update for new files.
1574 * Makefile.in: Regenerate.
1576 2004-08-31 Craig Black <craig.black@aonix.com>
1578 * gnu/java/awt/peer/gtk/GdkGraphics.java
1579 (drawImage): Add support for scaling pixmaps.
1580 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1581 (copyAndScalePixmap): New native method.
1583 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1586 * jni/gtk-peer/gthread-jni.c: Include stdio.h. Eliminate
1587 type-punning compiler warnings using unions.
1588 (throw): Replace bzero with memset.
1590 2004-08-31 Andreas Tobler <a.tobler@schweiz.ch>
1591 Thomas Fitzsimmons <fitzsim@redhat.com>
1593 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: Move
1594 NSA_PB macros to gtkpeer.h. Include gtkpeer.h.
1595 * jni/gtk-peer/gtkpeer.h: Move NSA_PB macros here.
1596 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1597 (nativeSetIconImageFromDecoder): Use NSA_GET_PB_PTR macro.
1599 2004-08-31 Mark Wielaard <mark@klomp.org>
1601 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
1602 #include gdk.h, not gtk.h. #include jni.h, native_state.h, string.h
1603 and stdlib.h, not gtkpeer.h.
1604 (*vm): New static variable.
1605 (areaPreparedID): Make static.
1606 (areaUpdatedID): Likewise.
1607 (area_prepared): Get and use JNIEnv through stored JavaVM *vm.
1608 (area_prepared): Likewise.
1609 (area_updated): Likewise.
1611 (initStaticState): Initialize *vm javaVM.
1612 (pumpBytes): Use given env, not global gdk_env.
1614 2004-08-31 Mark Wielaard <mark@klomp.org>
1616 * java/awt/geom/CubicCurve2D.java (solveCubic): Removed duplicate
1619 2004-08-31 Sven de Marothy <sven@physto.se>
1621 * java/awt/geom/CubicCurve2D.java: Reindent.
1622 (contains): Implemented.
1623 (intersects): Implemented.
1624 * java/awt/geom/QuadCurve2D.java: Likewise.
1625 * java/awt/geom/GeneralPath.java: Reindent and document.
1626 Fully (re)implemented using separate xpoints and ypoints
1628 * java/awt/geom/RoundRectangle2D.java: Several bugfixes (Bug #6007).
1630 2004-08-31 Michael Koch <konqueror@gmx.de>
1632 * javax/swing/JMenuItem.java
1633 (getMenuDragMouseListeners): New method.
1634 (getMenuKeyListeners): Likewise.
1636 2004-08-31 Michael Koch <konqueror@gmx.de>
1638 * javax/swing/AbstractButton.java
1639 (model): Made protected.
1640 (actionListener): Likewise.
1641 (changeListener): Likewise.
1642 (itemListener): Likewise.
1643 (multiClickThreshhold): New field.
1644 (getActionListeners): New method.
1645 (getChangeListeners): Likewise.
1646 (getItemListeners): Likewise.
1647 (fireItemStateChanged): Simplified implementation.
1648 (fireActionPerformed): Likewise.
1649 (fireStateChanged): Likewise.
1650 (getMultiClickThreshhold): New method.
1651 (setMultiClickThreshhold): Likewise.
1653 2004-08-31 Tom Tromey <tromey@redhat.com>
1655 * java/awt/image/Kernel.java (clone): Use super.clone().
1657 2004-08-31 David Jee <djee@redhat.com>
1660 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1661 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1662 (nativeSetIconImageFromData): New native method declaration.
1663 (setIconImage): Handle images not produced from GdkPixbufDecoder.
1664 * gnu/java/awt/peer/gtk/GtkImage.java
1665 (getPixelCache): New method.
1666 (getColorModel): New method.
1667 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1668 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1669 (free_pixbuf_data): New helper function.
1670 (nativeSetIconImageFromData): New function.
1672 2004-08-31 Graydon Hoare <graydon@redhat.com>
1675 * javax/swing/JLayeredPane.java
1676 (setLayer): Permit changing layer after addition.
1677 (setPosition): Permit over-length positions.
1678 (layerToRange): Compare intValue()s.
1679 * javax/swing/Box.java (createHorizontalBox): Implement.
1680 (createRigidArea): Likewise.
1681 (createVerticalBox): Likewise.
1683 2004-08-31 Kim Ho <kho@redhat.com>
1685 * java/awt/Component.java:
1686 (processMouseEvent): Consume event after
1687 listeners process it.
1688 (processMouseMotionEvent): ditto.
1689 (processMouseWheelEvent): ditto.
1690 * java/awt/Container.java:
1691 (acquireComponentForMouseEvent):
1692 Do not dispatch to events that have been
1693 removed from the Container.
1694 (handleEvent): Consume the MouseEvents.
1695 * javax/swing/RepaintManager.java:
1696 (paintDirtyRegions): Do not add to list of
1697 damaged areas if the component has no root.
1699 2004-08-31 Michael Koch <konqueror@gmx.de>
1701 * javax/swing/plaf/basic/BasicMenuItemUI.java: Clean ip imports.
1703 2004-08-31 Mark Wielaard <mark@klomp.org>
1705 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
1706 null when a MissingResourceException is thrown. Should never happen.
1708 2004-08-31 Mark Wielaard <mark@klomp.org>
1710 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1711 when argument is null.
1713 2004-08-31 Mark Wielaard <mark@klomp.org>
1715 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1716 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
1717 Define hid at start of function.
1718 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
1721 2004-08-31 Mark Wielaard <mark@klomp.org>
1723 * gnu/java/awt/EmbeddedWindow.java: Reindent.
1724 * javax/swing/JButton.java: Reindent.
1725 * javax/swing/JCheckBox.java: Reindent.
1727 2004-08-31 Mark Wielaard <mark@klomp.org>
1729 * Makefile.am (gtk_c_source_files): Added
1730 jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c.
1731 (gtk_awt_peer_sources): Added
1732 gnu/java/awt/peer/gtk/GThreadMutex.java and
1733 gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java.
1734 * Makefile.in: Regenerated.
1736 2004-08-31 Archie Cobbs <archie@dellroad.org>
1738 * jni/gtk-peer/gthread-jni.c: don't #include nonexistent files
1740 2004-08-31 Steven Augart <augart@watson.ibm.com>
1742 * jni/gtk-peer/gthread-jni.c (c-font-lock-extra-types):
1743 Added jfieldID, jmethodID.
1745 2004-08-31 Mark Wielaard <mark@klomp.org>
1747 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1748 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): Initialize
1749 gdk_env before calling any gdk or gtk function.
1751 * gnu/java/awt/peer/gtk/GtkMainThread.java (gtkInitCalled): New field.
1752 (GtkMainThread): Call wait() in while loop waiting for gtkInitCalled.
1753 (run): Set gtkInitCalled.
1755 2004-08-31 Steven Augart <augart@watson.ibm.com>
1757 * gnu/java/awt/peer/gtk/GtkMainThread.java (run): Pass the value of
1758 the gnu.classpath.awt.gtk.portable.native.sync system property to C.
1760 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1761 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): New argument,
1762 portableNativeSync. Delegate PORTABLE_NATIVE_SYNC work to
1764 (init_glib_threads): New function.
1766 2004-08-31 Mark Wielaard <mark@klomp.org>
1768 * jni/gtk-peer/gthread-jni.c: Define MIN_, MAX_ and NORM_
1769 PRIORITY when not already defined in header file.
1771 2004-08-31 Mark Wielaard <mark@klomp.org>
1773 * jni/gtk-peer/gthread-jni.c (setup_cache): Call
1774 ExceptionOccurred, not ExceptionCheck, when we don't have JNI 1.2.
1776 2004-08-31 Steven Augart <augart@watson.ibm.com>
1778 * gnu/native/jni/gtk-peer/gthread-jni.c: Indentation fixes.
1779 Implemented missing functions for GTK2.
1780 Added error handling.
1781 Renamed static functions out of the g_ namespace.
1782 Added TRACE_API_CALLS, EXPLAIN_TROUBLE, EXPLAIN_BROKEN,
1783 EXPLAIN_BADLY_BROKEN, and DELETE_LOCAL_REFS options.
1784 Rewrote global-reference code.
1785 Eliminated cascading errors.
1786 (mutex_trylock_jni_impl) Fully implemented.
1787 (cond_timed_wait_jni_impl) Went from millisecond to microsecond
1789 (setup_cache) New function.
1790 (mutex_cond_wait_jni_impl, mutex_cond_timed_wait_jni_impl) Fixed
1791 bug where they were not unlocking the GMutex associated with the
1792 condition variable during the wait on that condition variable.
1794 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
1795 native/jni/gtk-peer/gthread-jni.c,
1796 native/jni/gtk-peer/gthread-jni.h
1797 (g_thread_jni_functions): Renamed to ...
1798 (portable_native_sync_jni_functions): this name.
1799 (gdk_vm): Renamed to...
1800 (the_vm): this name.
1802 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1803 (gdk_vm): Removed duplicate definition.
1804 (gtkInit): Removed stray message to stdout.
1805 (gtkInit): Use g_malloc and g_free instead of malloc and free.
1806 (gtkInit): Fix a const assignment bug.
1807 (gtkInit): Simplified code.
1809 * gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
1810 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
1811 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h,
1812 gnu/java/awt/peer/gtk/GThreadMutex.java:
1815 2004-08-31 Mark Wielaard <mark@klomp.org>
1817 * javax/swing/Box.java: Put FIXME comment above class declaration.
1818 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1819 * javax/swing/JCheckBox.java: Likewise.
1820 * javax/swing/JDialog.java: Likewise.
1821 * javax/swing/JRadioButton.java: Likewise.
1822 * javax/swing/JToggleButton.java: Likewise.
1823 * javax/swing/UIManager.java: Likewise.
1824 * javax/swing/border/TitledBorder.java: Likewise.
1825 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1826 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1827 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1828 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1829 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1830 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1831 * javax/swing/text/JTextComponent.java: Likewise.
1833 2004-08-31 David Jee <djee@redhat.com>
1836 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1837 (setIconImage): Add a FIXME for unhandled cases.
1839 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1842 * gnu/awt/LightweightRedirector.java: Call getModifiersEx, not
1843 getModifiers. Replace old button masks with new ones.
1844 * gnu/awt/xlib/XEventLoop.java: Likewise.
1845 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Likewise.
1846 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1847 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
1848 * gnu/java/awt/peer/gtk/GtkListPeer.java: Likewise.
1849 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
1850 * java/awt/AWTKeyStroke.java: Remove old modifier masks.
1851 * java/awt/Component.java: Replace old modifier masks with new
1853 * java/awt/Container.java: Call getModifiersEx, not
1855 * java/awt/DefaultKeyboardFocusManager.java: Likewise. Remove
1857 * javax/swing/JMenuItem.java: Replace old button masks with new
1859 * javax/swing/KeyStroke.java: Call getModifiersEx, not
1861 * javax/swing/SwingUtilities.java: Likewise.
1862 * javax/swing/plaf/basic/BasicButtonListener.java: Likewise.
1863 * javax/swing/plaf/basic/BasicInternalFrameUI.java: Likewise.
1864 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Replace old
1865 mask macros with new ones.
1866 * jni/gtk-peer/gtkpeer.h: Replace old button and modifier mask
1867 macros with new ones representing new masks.
1869 2004-08-31 Craig Black <craig.black@aonix.com>
1871 * gnu/java/awt/peer/gtk/GdkGraphics.java
1872 (drawRoundRect): Implemented.
1873 (fillRoundRect): Implemented.
1874 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1875 (drawRoundRect): Reimplemented to match GdkGraphics.
1876 (fillRoundRect): Reimplemented to match GdkGraphics.
1878 2004-08-31 Mark Wielaard <mark@klomp.org>
1880 * Makefile.in: Regenerated.
1882 2004-08-31 Michael Koch <konqueror@gmx.de>
1884 * gnu/java/awt/EmbeddedWindow.java
1885 (addNotify): Use AccessController to allow execution of privileged
1888 2004-08-31 Michael Koch <konqueror@gmx.de>
1890 * gnu/java/awt/EmbeddedWindow.java
1892 (addNotify): Set peer via reflection.
1893 (setWindowPeer): Removed.
1894 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1895 * Makefile.am (nat_source_files):
1896 Removed gnu/java/awt/natEmbeddedWindow.cc.
1898 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1900 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
1901 and gnu/java/security/action/SetAccessibleAction.java.
1903 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1905 * gnu/java/security/action/GetPropertyAction.java (setParameters):
1906 Renamed from 'setName'. New 2-argument form with default value.
1907 (run): Pass default 'value' parameter to System.getProperty().
1908 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
1911 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1913 * gnu/java/security/action/GetPropertyAction.java: New class.
1914 * gnu/java/security/action/SetAccessibleAction.java: New class.
1916 2004-08-31 David Jee <djee@redhat.com>
1918 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1919 (setIconImage): Check if image is null.
1921 2004-08-31 David Jee <djee@redhat.com>
1923 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1924 (create): Set the icon image.
1925 (nativeSetIconImage): New native method declaration.
1926 (setIconImage): Implement.
1927 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1928 (nativeSetIconImage): New function.
1930 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1932 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1933 (filenameFilterCallback): Declare local variable accepted before use.
1935 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1937 * gnu/java/awt/ComponentDataBlitOp.java:
1940 2004-08-31 Tom Tromey <tromey@redhat.com>
1942 * gnu/java/awt/peer/GLightweightPeer.java,
1943 gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1944 gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1945 javax/swing/JScrollPane.java: Removed
1948 2004-08-31 David Jee <djee@redhat.com>
1950 * java/awt/DefaultKeyboardFocusManager.java
1951 (postProcessKeyEvent): Only activate MenuShortcuts on KEY_PRESSED
1952 event. Fix shift modifier checking.
1953 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1954 (accel_attach): Remove.
1955 (setupAccelGroup): Remove calls to accel_attach.
1957 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1959 * gnu/java/awt/peer/gtk/GtkArg.java: Remove file.
1960 * gnu/java/awt/peer/gtk/GtkArgList.java: Remove file.
1962 * Makefile.am (gtk_awt_peer_sources): Remove GtkArg.java and
1964 (gtk_c_files): Use CAIRO_CFLAGS and PANGOFT2_CFLAGS, not _LIBS.
1965 * Makefile.in: Regenerate.
1966 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1967 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1968 (create(String)): New method.
1969 (create): Call new create method.
1970 (getArgs): Remove method.
1971 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
1972 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
1973 (nativeCreate): Rename to create.
1974 (gtkSetLabel): Rename to gtkButtonSetLabel.
1975 (gtkToggleButtonSetActive): New method.
1976 (create): Call gtkToggleButtonSetActive and gtkButtonSetLabel.
1977 (setState): Replace set call with gtkToggleButtonSetActive.
1978 (setLabel): Replace gtkSetLabel call with gtkButtonSetLabel.
1979 (getArgs): Remove method.
1980 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1981 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1982 (gtkWidgetSetSensitive): New method.
1983 (gtkWidgetSetParent): Likewise.
1984 (GtkComponentPeer): Call setParent, setComponentBounds and
1985 setVisibleAndEnabled.
1986 (setParent): New method.
1987 (setComponentBounds): New method.
1988 (setVisibleAndEnabled): New method.
1989 (setEnabled): Call gtkWidgetSetSensitive.
1990 (getArgs): Remove method.
1991 Remove all set methods.
1992 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Call
1993 gtkWindowSetModal, setTitle and setResizable.
1994 (getArgs): Remove method.
1995 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1996 (setComponentBounds): New method.
1997 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
1998 Replace set call with gtkWindowSetResizable.
1999 (getArgs): Remove method.
2000 (create): Call setTitle and setResizable.
2001 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
2002 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2003 (gtkWindowSetTitle): New method.
2004 (gtkWindowSetResizable): New method.
2005 (gtkWindowSetModal): New method.
2006 (setParent): New method.
2007 (setVisibleAndEnabled): New method.
2008 (getArgs): Remove method.
2009 (setTitle): Call gtkWindowSetTitle.
2010 (setResizable): Call gtkWindowSetResizable.
2011 * jni/gtk-peer/gtkpeer.h [DEBUG_LOCKING]: New define to turn on
2012 and off locking instrumentation.
2014 2004-08-31 Kim Ho <kho@redhat.com>
2016 * Makefile.am: Add new file.
2017 * Makefile.in: Regenerate.
2018 * gcj/Makefile.in: Regenerate
2019 * include/Makefile.in:
2020 * java/awt/Container.java:
2021 (acquireComponentForMouseEvent): Respect
2022 the event mask when looking for candidate.
2023 * javax/swing/JComponent.java:
2024 Remove toolTip field.
2025 (createToolTip): Create a tooltip on demand.
2026 (setToolTipText): Register with the ToolTipManager.
2027 (getToolTipText(MouseEvent)): Return getToolTipText().
2028 * javax/swing/JToolTip.java: Implement.
2029 * javax/swing/Timer.java: Jalopy.
2030 (restart): Call stop, then start.
2031 (stop): Interrupt the timer rather than wait for
2032 the timer to come to a stop naturally.
2033 * javax/swing/ToolTipManager.java: Implement.
2034 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2035 Change ToolTip.background color.
2036 * javax/swing/plaf/basic/BasicToolTipUI.java:
2038 * testsuite/Makefile.in: Regenerate
2040 2004-08-31 Jerry Quinn <jlquinn@optonline.net>
2042 * java/awt/image/DirectColorModel.java (DirectColorModel): Fix
2043 constructor param comments.
2045 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
2047 * java/awt/Component.java: Document AWT 1.0 event handler
2050 2004-08-31 Roman Kennke <roman@ontographics.com>
2052 * javax/swing/Box.java:
2053 (createGlue): Implemented
2054 (createHorizontalGlue): Implemented
2055 (createHorizontalStrut): Implemented
2056 (createVerticalGlue): Implemented
2057 (createVerticalStrut): Implemented
2059 2004-08-31 David Jee <djee@redhat.com>
2061 * gnu/java/awt/peer/gtk/GtkChoicePeer.java
2062 (GtkChoicePeer): Do not automatically select first item.
2063 (getHistory): Remove.
2064 (nativeGetSelected): New method.
2065 (nativeRemoveAll): New method.
2066 (add): Use nativeGetSelected() instead of getHistory().
2068 (removeAll): Call nativeRemoveAll().
2069 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
2070 (create): Migrate to GtkComboBox.
2072 (nativeAdd): Likewise.
2073 (nativeRemove): Likewise.
2075 (nativeRemoveAll): New method.
2076 (nativeGetSelected): New method.
2077 (selection_changed): New method.
2078 (getHistory): Remove.
2079 (item_activate): Remove.
2080 (item_removed): Remove.
2081 (connect_choice_item_selectable_hook): Remove.
2083 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
2085 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create): Use tf
2086 variable in setEditable call.
2088 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
2089 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
2090 (gtkWidgetSetBackground): New method.
2091 (gtkWidgetSetForeground): Likewise.
2092 (create): Set peer's editable state based on awtComponent's.
2094 * java/awt/Button.java (Button()): Use empty string rather than
2095 null in no-label constructor.
2097 2004-08-31 Roman Kennke <roman@ontographics.com>
2099 * javax/swing/BoxLayout.java: Reimplement.
2101 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
2103 * gnu/java/awt/peer/gtk/GdkGraphics.java,
2104 gnu_java_awt_peer_gtk_GdkGraphics.c
2105 (initState(GtkComponentPeer)): Don't return array of colour
2107 (GdkGraphics(int,int)): Set default font to size 12.
2108 (GdkGraphics(GtkComponentPeer)): Set graphics colour to
2109 component's foreground colour.
2110 * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
2111 gnu_java_awt_peer_gtk_GdkGraphics2D.c
2112 (initState(GtkComponentPeer)): Don't return array of colour
2114 (GdkGraphics2D(GtkComponentPeer)): Set foreground and background
2115 colours to component's colours.
2116 (current_colors_of_widget): Remove function.
2117 * gnu/java/awt/peer/gtk/GtkOffScreenImage.java (getGraphics):
2118 Return a new graphics object.
2119 * java/awt/Font.java (toString): Fix format.
2120 * java/awt/Graphics.java (toString): Likewise.
2122 2004-08-31 Craig Black <craig.black@aonix.com>
2124 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
2125 (addTearOff): New function.
2126 * gnu/java/awt/peer/gtk/GtkMenuPeer.java (addTearOff):
2128 (init): Call addTearOff() when menu.isTearOff().
2130 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
2132 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2133 Default implementation.
2134 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2135 Implement using GdkPixbufDecoder.
2137 2004-08-31 David Jee <djee@redhat.com>
2139 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
2140 (GtkComponentPeer): Use gtkWidgetGetPreferredDimensions() for
2141 setting the size of GtkFileDialogPeers.
2142 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2143 (gtkWidgetGetPreferredDimensions): For widgets extending GtkWindow,
2144 use their default sizes rather than their natural requisitions.
2146 2004-08-31 Michael Koch <konqueror@gmx.de>
2148 * javax/swing/JFormattedTextField.java
2149 (JFormattedTextField): Implemented.
2150 * javax/swing/text/DefaultEditorKit.java
2151 (BeepAction): New inner class.
2152 * javax/swing/text/Segment.java
2153 (partialReturn): New field.
2154 (setPartialReturn): New method.
2155 (isPartialReturn): Likewise.
2156 * javax/swing/text/View.java
2157 (createFragment): Fixed typo.
2158 (getStartOffset): New method.
2159 (getEndOffset): Likewise.
2161 2004-08-31 Michael Koch <konqueror@gmx.de>
2163 * javax/swing/table/DefaultTableColumnModel.java
2164 (serialVersionUID): Made private.
2165 (listenerList): Initialize.
2166 (changeEvent): Initialize.
2167 * javax/swing/table/JTableHeader.java
2168 (JTableHeader): New constructors.
2169 (createDefaultColumnModel): New method.
2170 * javax/swing/table/TableColumn.java
2171 (setHeaderRenderer): Simplified code.
2172 (setCellRenderer): Likewise.
2173 (setWidth): Likewise.
2175 2004-08-31 Tom Tromey <tromey@redhat.com>
2177 * java/text/AttributedString.java (AttributedString): Use
2178 ArrayList to build array of attribute ranges. Don't use
2179 `attribs' before it is set.
2181 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
2183 * HACKING: Remove reference to special automake. No longer needed.
2185 2004-08-30 Tom Tromey <tromey@redhat.com>
2187 * gnu/java/security/util/Prime.java (generateRandomPrime): Use
2188 return result from `add'.
2190 2004-08-30 Tom Tromey <tromey@redhat.com>
2192 * java/rmi/server/UID.java (UID): Read `nextCount', not count.
2194 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
2196 * gnu/java/security/der/DEREncodingException.java: Remove whitespaces.
2198 2004-08-30 Jeroen Frijters <jeroen@frijters.net>
2200 * java/io/File.java File(String,String): Fixed handling of empty
2203 2004-08-30 Casey Marshall <csm@gnu.org>
2205 Author e-mail updated for all files.
2206 * gnu/java/security/OID.java (equals): Test if the aurgment is an
2208 (compareTo): Use `equals'.
2209 * gnu/java/security/der/BitString.java (equals): Test if the
2210 argument is an instance of BitString.
2211 * gnu/java/security/der/DERReader.java: Removed NIO imports. Made
2212 class final. Made fields private.
2213 (<init>): New constructor.
2215 (makeString): Made static; don't use NIO.
2216 (fromIso88591, fromUtf16Be, fromUtf8): New methods.
2217 * gnu/java/security/der/DERWriter.java: Fixed imports.
2218 (writeString): Don't use NIO.
2219 (toIso88591, toUtf16Be, toUtf8): New methods.
2220 * gnu/java/security/der/DERValue.java: Formatting changes only.
2221 * gnu/java/security/der/DER.java: Likewise.
2223 2004-08-30 Tom Tromey <tromey@redhat.com>
2225 * java/nio/CharBuffer.java (put): Fix typo.
2226 * java/nio/DoubleBuffer.java (put): Fix typo.
2227 * java/nio/FloatBuffer.java (put): Fix typo.
2228 * java/nio/IntBuffer.java (put): Fix typo.
2229 * java/nio/LongBuffer.java (put): Fix typo.
2230 * java/nio/ShortBuffer.java (put): Fix typo.
2232 2004-08-30 Florian Weimer <fw@deneb.enyo.de>
2234 * java/nio/ByteBuffer.java (put): Fix typo.
2236 2004-08-30 Casey Marshall <csm@gnu.org>
2238 * java/security/DummyKeyPairGenerator.java (clone): Removed
2239 useless instanceof check.
2240 * java/security/DummyMessageDigest.java (clone): Likewise.
2241 * java/security/DummySignature.java (clone): Likewise.
2242 * java/security/MessageDigest.java (clone): Remove useless
2244 * java/security/MessageDigestSpi.java (clone): Likewise.
2245 * java/security/Signature.java (clone): Provide meaningful
2247 * java/security/SignatureSpi.java (clone): Likewise.
2249 2004-08-29 Mark Wielaard <mark@klomp.org>
2251 * java/util/Arrays.java
2252 (sort(byte[], int, int)): Check fromIndex < 0.
2253 (sort(char[], int, int)): Likewise.
2254 (sort(short[], int, int)): Likewise.
2255 (sort(int[], int, int)): Likewise.
2256 (sort(long[], int, int)): Likewise.
2257 (sort(float[], int, int)): Likewise.
2258 (sort(double[], int, int)): Likewise.
2259 (sort(Object[], int, int, Comparator)): Likewise.
2260 (qsort(byte[], int, int)): Honor lower bound from in insertion sort.
2261 (qsort(char[], int, int)): Likewise.
2262 (qsort(short[], int, int)): Likewise.
2263 (qsort(int[], int, int)): Likewise.
2264 (qsort(long[], int, int)): Likewise.
2265 (qsort(float[], int, int)): Likewise.
2266 (qsort(double[], int, int)): Likewise.
2268 2004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
2270 * java/util/AbstractCollection.java, java/util/AbstractList.java,
2271 java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
2272 java/util/ArrayList.java, java/util/Arrays.java,
2273 java/util/BitSet.java, java/util/Calendar.java,
2274 java/util/Collection.java, java/util/ListIterator.java,
2275 java/util/Map.java, java/util/SortedSet.java:
2276 Added additional exceptions to documentation, along
2277 with some additions and corrections.
2279 2004-08-27 Hans Boehm <Hans.Boehm@hp.com>
2281 * configure.ac: Handle --enable-gc-debug.
2282 * configure: Regenerate.
2283 * include/config.h.in (LIBGCJ_GC_DEBUG): Add.
2284 * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files.
2285 Rearrange include file order.
2286 (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set.
2287 (GC_finalize_all, GC_debug_generic_malloc): Don't declare.
2288 (disable_gc_mutex): Delete along with all references.
2289 (_Jv_MarkObj, _Jv_MarkArray): Use public types,
2290 adjust for debug header size.
2291 (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for
2293 (_Jv_AllocArray): Declare min_heap_addr only if needed.
2294 (gcj_describe_type_fn): New.
2295 (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind.
2296 Register gcj_describe_type_fn.
2297 * include/boehm-gc.h:
2298 (_Jv_AllocObj, _Jv_allocPtrFreeObj):
2299 Don't define, but declare, for debug case.
2300 * java/lang/natObject.cc:
2301 (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set.
2303 2004-08-26 Mark Wielaard <mark@klomp.org>
2305 Fixes PR libgcj/17002:
2306 * java/util/TimeZone.java (defaultZone): Try a couple of ways to get
2307 a TimeZoneId string and then try to convert that to a TimeZone with
2308 getDefaultSystemTimeZone(String).
2309 (timezones0): Changed type from Hashtable to HashMap.
2310 (timezones): Create HashMap, not Hashtable.
2311 (getDefaultTimeZone): New method, rewritten from CNI version.
2312 (readTimeZoneFile): New method.
2313 (readtzFile): Likewise.
2314 (skipFully): Likewise.
2315 * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
2316 getDefaultTimeZoneId and rewritten.
2317 (getDefaultTimeZoneId): Rewritten in java.
2319 2004-08-25 David Daney <daney@avtrex.com>
2321 * Makefile.am (AM_GCJFLAGS): Add LIBGCJ_JAVAFLAGS.
2322 * Makefile.in: Regenerated.
2324 2004-08-23 Bryce McKinlay <mckinlay@redhat.com>
2326 * prims.cc (JVMPI_NOTIFY_ALLOC): New macro. Call jvmpi_notify_alloc
2327 only if jvmpi is enabled.
2328 (jvmpi_notify_alloc): Don't check if jvmpi is enabled here.
2329 (_Jv_AllocObjectNoFinalizer): Use JVMPI_NOTIFY_ALLOC.
2330 (_Jv_AllocString): Likewise.
2331 (_Jv_AllocPtrFreeObject): Likewise.
2333 2004-08-23 Hans Boehm <Hans.Boehm@hp.com>
2335 * defineclass.cc: Include <stdio.h>.
2336 * java/lang/natClassLoader.cc: Include <stdio.h>.
2338 2004-08-21 Andreas Tobler <a.tobler@schweiz.ch>
2339 Michael Koch <konqueror@gmx.de>
2341 * Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.
2342 * Makefile.in: Regenerated.
2344 2004-08-20 Michael Koch <konqueror@gmx.de>
2346 * configure.ac: Replaced all AC_TRY_COMPILE macros with
2347 AC_COMPILE_IFELSE macros.
2349 2004-08-20 Michael Koch <konqueror@gmx.de>
2351 * configure.in: Renamed to configure.ac.
2352 * configure.ac: New file.
2353 * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
2354 include/config.h.in, testsuite/Makefile.in: Regenerated.
2356 2004-08-20 Michael Koch <konqueror@gmx.de>
2358 * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
2359 * aclocal.m4, configure: Regenerated.
2361 2004-08-19 Thomas Fitzsimmons <fitzsim@redhat.com>
2362 Michael Koch <konqueror@gmx.de>
2364 * configure.in, Makefile.am: Ported to automake 1.9.
2365 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
2366 include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
2369 2004-08-19 Tom Tromey <tromey@redhat.com>
2371 * java/net/DatagramSocket.java: Fixed typo.
2373 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2376 * java/net/URI.java (string): New field. Make all other fields
2378 (readObject): Implemented.
2379 (writeObject): Implemented.
2380 (URI): Set 'string'.
2382 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2385 * java/util/logging/Handler.java (isLoggable): Accept record if its
2386 log level equals the threshold level. From Robin Green.
2388 2004-08-18 David Daney <ddaney@avtrex.com>
2390 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
2393 2004-08-17 Michael Koch <konqueror@gmx.de>
2395 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
2396 * Makefile.in: Regenerated.
2398 2004-08-16 Tom Tromey <tromey@redhat.com>
2401 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
2403 2004-08-16 Michael Koch <konqueror@gmx.de>
2406 (math_c_files): Renamed from c_files.
2407 (math_c_source_files): Renamed from c_source_files.
2410 include/Makefile.in,
2411 testsuite/Makefile.in: Regenerated.
2413 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
2415 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
2416 to avoid autoconf warning.
2417 * configure: Rebuilt.
2419 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
2421 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
2422 localhostAddress to loopbackAddress.
2423 * java/net/natInetAddressWin32.cc (lookup): Likewise.
2425 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2427 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
2428 boehm-gc's include dirs.
2429 * configure: Rebuilt.
2430 * include/boehm-gc.h: Include gc_config.h.
2432 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2434 * java/net/InetAddress.java (loopbackAddress): Renamed from
2436 (getByName): Return loopback address for null hostname, without
2437 security check. Use lookup(), not getAllByName.
2438 (getAllByName): Return loopback address for null hostname, without
2440 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
2443 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2446 Reported by Robin Green.
2447 * defineclass.cc (handleField): Don't throw exception on unrecognised
2448 modifier. Add FIXME comments for spec compliance.
2449 (handleMethod): Likewise.
2451 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
2454 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
2455 (Almost everywhere): add LOG calls, fix, add comments.
2456 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
2457 Add explicit check for LOCKED bit in slow case (PR 16662).
2458 (_Jv_MonitorExit): Add casts in debug-only code.
2459 Always release LOCKED bit before throwing exception.
2460 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
2461 isn't. Handle easy cases without lock acquisition.
2462 (Object::wait): Use NotifyAll for lock inflation.
2464 2004-08-12 David Daney <ddaney@avtrex.com>
2466 * testsuite/libjava.lang/Process_1.java: New test.
2467 * testsuite/libjava.lang/Process_2.java: New test.
2468 * testsuite/libjava.lang/Process_3.java: New test.
2469 * testsuite/libjava.lang/Process_4.java: New test.
2470 * testsuite/libjava.lang/Process_5.java: New test.
2471 * testsuite/libjava.lang/Process_6.java: New test.
2472 * testsuite/libjava.lang/Process_1.out: Expected result.
2473 * testsuite/libjava.lang/Process_2.out: Expected result.
2474 * testsuite/libjava.lang/Process_3.out: Expected result.
2475 * testsuite/libjava.lang/Process_4.out: Expected result.
2476 * testsuite/libjava.lang/Process_5.out: Expected result.
2477 * testsuite/libjava.lang/Process_6.out: Expected result.
2479 2004-08-12 David Daney <ddaney@avtrex.com>
2482 * java/lang/PosixProcess.java: Rewrote.
2483 * java/lang/natPosixProcess.cc: Rewrote.
2484 * java/lang/Runtime.java (execInternal): Declare throws IOException.
2485 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
2486 * posix-threads.cc (block_sigchld) New function.
2487 (_Jv_ThreadRegister) Use it.
2488 (_Jv_ThreadStart) Use it.
2489 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
2490 * Makefile.am: ... to specify extra native headers.
2491 * configure: Regenerated.
2492 * include/config.h: Regenerated.
2493 * Makefile.in: Regenerated.
2494 * gcj/Makefile.in: Regenerated.
2495 * include/Makefile.in: Regenerated.
2496 * testsuite/Makefile.in: Regenerated.
2498 2004-08-12 Diego Novillo <dnovillo@redhat.com>
2500 PR tree-optimization/16867
2501 * testsuite/libjava.lang/PR16867.java: New test.
2503 2004-08-09 Per Bothner <per@bothner.com>
2505 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
2506 with private fields and access methods.
2507 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
2508 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
2509 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
2510 ( _Jv_makeUtf8Const): Rewrite using new constructors.
2511 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
2512 * defineclass.cc: Use new _Utf8Const access/convenience methods.
2514 * resolve.cc: Likewise.
2515 * gcj/field.h: Likewise.
2516 * include/jvm.h: Likewise.
2517 * java/lang/Class.h: Likewise.
2518 * java/lang/natClass.cc: Likwise.
2519 * java/lang/natClassLoader.cc: Likewise
2520 * java/lang/reflect/natMethod.cc: Likewise
2521 * verify.cc: Likewise.
2522 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
2523 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
2525 2004-08-10 Andrew Haley <aph@redhat.com>
2527 * testsuite/libjava.lang/err14.java: New file.
2528 * testsuite/libjava.lang/err14.out: New file.
2530 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
2532 * Makefile.am: Fix missing rename from x_nat_headers to
2534 * Makefile.in: Regenerated.
2536 2004-08-04 Andrew Haley <aph@redhat.com>
2538 * java/security/BasicPermission.java: Don't check wildcards.
2540 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2541 Michael Koch <konqueror@gmx.de>
2543 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
2544 * configure.in: Replaced all usages of AC_LINK_FILES by
2547 configure: Regenerated.
2549 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2550 Michael Koch <konqueror@gmx.de>
2552 * acconfig.h: Removed.
2553 * Makefile.am: Rename variables for xlib peer to include xlib and
2554 gtk_c_headers to gtk_jni_headers.
2555 * Makefile.in: Regenerated.
2557 2004-08-04 Andrew Haley <aph@redhat.com>
2559 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
2562 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
2564 * configure.in: Eliminate uses of changequote (mostly by quoting []).
2565 Replace most top level 'dnl' comments with '#' comments, conforming
2566 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
2568 * configure: Rebuilt.
2570 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
2572 * acinclude.m4: Include no-executables.m4.
2573 * aclocal.m4: Rebuild.
2574 * configure.in: Convert to the autoconf 2.59 version of
2575 of the no-executables hack, and also of the nonstandard CXX
2576 hack and the multilibbed CC and CXX hack. Change prerequisite
2578 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
2579 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
2580 testsuite/Makefile.in: Regenerate.
2582 2004-08-03 Tom Tromey <tromey@redhat.com>
2584 * jni.cc: Reindented.
2586 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2588 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
2590 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2592 * testsuite/libjava.compile/PR16701.java: New test.
2594 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
2596 * java/util/Collection.java, java/util/List.java,
2597 java/util/Map.java, java/util/Set.java,
2598 java/util/SortedMap.java, java/util/SortedSet.java:
2599 Added additional exceptions to documentation.
2601 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
2604 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
2605 * configure. Regenerate.
2606 * include/win32.h: Explicitly include winsock2.h
2607 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
2610 2004-07-30 Michael Koch <konqueror@gmx.de>
2612 * java/util/zip/GZIPInputStream.java
2613 (GZIPInputStream): Increase buffer size to 4k.
2614 * java/util/zip/GZIPOutputStream.java
2615 (GZIPOutputStream): Likewise.
2616 * java/util/zip/Inflater.java
2617 (setInput): Merged formating with GNU classpath.
2618 * java/util/zip/InflaterInputStream.java
2619 (InflaterInputStream): Increase buffer size to 4k.
2620 (fill): Throw exception if stream ends early.
2621 (read): Merged endless-loop with GNU classpath.
2622 (skip): Increase buffer size to 2k.
2624 2004-07-30 Michael Koch <konqueror@gmx.de>
2626 * gnu/java/awt/EmbeddedWindow.java
2627 (addNotify): Use AccessController to allow execution of privileged
2630 2004-07-29 Michael Koch <konqueror@gmx.de>
2632 * gnu/java/lang/MainThread.java:
2633 Explicitely import used classes.
2634 (args): Make it type String[].
2636 2004-07-29 Dalibor Topic <robilad@kaffe.org>
2638 * gnu/java/awt/ComponentDataBlitOp.java,
2639 gnu/java/beans/ExplicitBeanInfo.java,
2640 gnu/java/beans/IntrospectionIncubator.java,
2641 gnu/java/beans/editors/ColorEditor.java,
2642 gnu/java/beans/editors/FontEditor.java,
2643 gnu/java/beans/editors/NativeBooleanEditor.java,
2644 gnu/java/beans/editors/NativeByteEditor.java,
2645 gnu/java/beans/editors/NativeDoubleEditor.java,
2646 gnu/java/beans/editors/NativeFloatEditor.java,
2647 gnu/java/beans/editors/NativeIntEditor.java,
2648 gnu/java/beans/editors/NativeLongEditor.java,
2649 gnu/java/beans/editors/NativeShortEditor.java,
2650 gnu/java/beans/editors/StringEditor.java,
2651 gnu/java/io/ClassLoaderObjectInputStream.java,
2652 gnu/java/io/decode/Decoder.java,
2653 gnu/java/io/encode/Encoder.java,
2654 gnu/java/lang/ClassHelper.java,
2655 gnu/java/locale/Calendar.java,
2656 gnu/java/locale/Calendar_de.java,
2657 gnu/java/locale/Calendar_en.java,
2658 gnu/java/locale/Calendar_nl.java,
2659 gnu/java/locale/LocaleInformation_de.java,
2660 gnu/java/locale/LocaleInformation_en.java,
2661 gnu/java/locale/LocaleInformation_nl.java:
2664 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2666 * README: Remove obsolete info. Update bug URL.
2668 * NEWS: Updated with news up to GCC 3.4 release.
2670 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2672 * gnu/java/security/action/GetPropertyAction.java (setParameters):
2673 Renamed from 'setName'. New 2-argument form with default value.
2674 (run): Pass default 'value' parameter to System.getProperty().
2675 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
2677 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
2680 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2682 * configure.in: Check for minimum GTK version 2.4 requirement.
2683 * configure: Rebuilt.
2685 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2687 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
2688 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
2690 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
2692 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
2693 address. Reduce sleep times. Synchronize with target threads before
2694 attempting to interrupt them. Don't try to calibrate yeild count,
2695 instead, always loop for a fixed time.
2696 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
2697 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
2698 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
2699 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
2700 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
2701 * testsuite/libjava.lang/pr179.java: Likewise.
2702 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
2703 time. Remove upper bounds check on sleep time.
2705 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2707 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
2708 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
2710 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2712 * java/io/File.java (toURI): Throw RuntimeException, not
2714 * java/lang/Runtime.java (exit): Qualify static sleep() call with
2715 class name, not instance.
2717 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
2719 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
2720 and gnu/java/security/action/SetAccessibleAction.java.
2721 * Makefile.in: Rebuilt.
2723 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2725 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
2726 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
2728 (DECLARE_PRIM_TYPE): Don't declare array vtables.
2729 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
2730 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
2732 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
2734 * Makefile.am: Replace jar, rmic and rmiregistry references with
2735 gjar, grmic and grmiregistry.
2736 * configure.in: Likewise.
2737 * Makefile.in: Regenerate.
2738 * configure: Likewise.
2739 * gcj/Makefile.in: Likewise.
2740 * include/Makefile.in: Likewise.
2741 * testsuite/Makefile.in: Likewise.
2743 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2745 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
2746 for privileged getProperty calls.
2747 * java/io/ObjectOutputStream.java (getField): No longer static. Use
2748 SetAccessibleAction instead of anonymous class for doPrivileged call.
2749 (getMethod): Likewise.
2750 (setAccessible): New field. PrivilegedAction object to use when
2751 calling setAccessible.
2752 * java/io/ObjectStreamClass.java (calculateOffsets): Use
2753 SetAccessibleAction instead of anonymous class for diPrivileged call.
2754 (setFields): Likewise.
2755 (getClassUID): Likewise.
2756 (findMethod): Likewise.
2757 * gnu/java/security/action/GetPropertyAction.java: New class.
2758 * gnu/java/security/action/SetAccessibleAction.java: New class.
2760 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2762 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
2764 * testsuite/libjava.lang/Serialization.java: New test.
2765 * testsuite/libjava.lang/Serialization.out: New.
2767 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2769 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
2770 missed in last commit.
2772 2004-07-23 Mark Wielaard <mark@klomp.org>
2774 * java/lang/System.java (static): Set http.agent system property when
2776 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
2777 from system property inside AccessController.doPrivileged() call.
2778 (proxyPort): Made package private.
2779 (proxyInUse): Likewise.
2780 (proxyHost): Likewise.
2781 (userAgent): Likewise.
2783 2004-07-23 Mark Wielaard <mark@klomp.org>
2785 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
2788 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
2790 * Makefile.am (ordinary_java_source_files): Add
2791 DefaultContentHandlerFactory.java.
2792 * Makefile.in: Rebuilt.
2793 * java/net/URLConnection.java (defaultFactory): New field.
2795 (getContentHandler): Renamed from 'setContentHandler'. Try
2796 defaultFactory after user-set factory, if any. Search for content
2797 handler implementations in gnu.java.net.content, not gnu.gcj.content.
2798 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
2800 (getLastModified): Implemented.
2801 (getPermission): Create file permission here, instead of in
2803 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
2805 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
2807 (getLastModified): Implemented.
2808 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2809 Default implementation.
2810 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2811 Implement using GdkPixbufDecoder.
2813 2004-07-21 Michael Koch <konqueror@gmx.de>
2815 * javax/swing/JTextArea.java
2816 (setLineWrap): Fire property change event after new value is set.
2817 (setTabSize): Likewise.
2819 2004-07-21 Michael Koch <konqueror@gmx.de>
2821 * javax/swing/JTable.java
2822 (autoCreateColumnsFromModel): New field.
2823 (autoResizeMode): Likewise.
2824 (cellEditor): Likewise.
2825 (cellSelectionEnabled): Likewise.
2826 (columnModel): Likewise.
2827 (dataModel): Likewise.
2828 (defaultEditorsByColumnClass): Likewise.
2829 (defaultRenderersByColumnClass): Likewise.
2830 (editingColumn): Likewise.
2831 (editingRow): Likewise.
2832 (gridColor): Likewise.
2833 (preferredViewportSize): Likewise.
2834 (rowHeight): Likewise.
2835 (rowMargin): Likewise.
2836 (rowSelectionAllowed): Likewise.
2837 (selectionBackground): Likewise.
2838 (selectionForeground): Likewise.
2839 (selectionModel): Likewise.
2840 (showHorizontalLines): Likewise.
2841 (showVerticalLines): Likewise.
2842 (tableHeader): Likewise.
2843 (JTable): Implemented.
2844 (getColumnModel): Likewise.
2845 (getSelectedRow): Likewise.
2846 (getSelectionModel): Likewise.
2847 (setModel): Likewise.
2848 (setSelectionModel): Likewise.
2849 (createScrollPaneForTable): New method.
2850 (createDefaultDataModel): Likewise.
2851 (createDefaultListSelectionModel): Likewise.
2852 (getModel): Likewise.
2853 (getTableHeader): Likewise.
2854 (setTableHeader): Likewise.
2855 (getColumnSelectionAllowed): Likewise.
2856 (setColumnSelectionAllowed): Likewise.
2857 (getRowSelectionAllowed): Likewise.
2858 (setRowSelectionAllowed): Likewise.
2859 (getAutoResizeMode): Likewise.
2860 (setAutoResizeMode): Likewise.
2861 (getColumnCount): Likewise.
2862 (getRowCount): Likewise.
2863 (getCellRenderer): Likewise.
2864 * javax/swing/JTree.java
2865 (cellRenderer): New field.
2866 (editable): Likewise.
2867 (rootVisible): Likewise.
2868 (showsRootHandles): Likewise.
2869 (getModel): New method.
2870 (setModel): Likewise.
2871 (isEditable): Likewise.
2872 (setEditable): Likewise.
2873 (isRootVisbile): Likewise.
2874 (setRootVisible): Likewise.
2875 (getShowsRootHandles): Likewise.
2876 (setShowRootHandles): Likewise.
2877 (getCellRenderer): Likewise.
2878 (setCellRenderer): Likewise.
2880 2004-07-21 Michael Koch <konqueror@gmx.de>
2882 * javax/swing/JFormattedTextField.java
2883 (setDocument): Implemented.
2884 * javax/swing/JRootPane.java:
2886 * javax/swing/JTable.java
2887 (getDefaultRenderer): New method.
2888 * javax/swing/JTextField.java
2889 (setFont): Likewise.
2890 (getPreferredSize): Likewise.
2891 * javax/swing/JToggleButton.java
2892 (getAccessibleContext): Fix javadoc.
2893 * javax/swing/JTree.java:
2895 * javax/swing/JViewport.java:
2898 2004-07-21 David Jee <djee@redhat.com>
2900 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
2901 Collect all native method declaration at the top.
2902 (create): Set the filename filter if necessary.
2903 (setDirectory): Call nativeSetDirectory().
2904 (setFilenameFilter): Implement.
2905 (filenameFilterCallback): New method.
2906 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2907 (create): Configure dialog to show hidden files.
2908 (filenameFilterCallback): New function.
2909 (nativeSetFilenameFilter): New function.
2910 (nativeSetDirectory): New function.
2912 2004-07-21 Kim Ho <kho@redhat.com>
2914 * javax/swing/plaf/basic/BasicSliderUI.java:
2916 (paintTrack): Fill the track before painting
2919 2004-07-21 Graydon Hoare <graydon@redhat.com>
2921 patch from Roman Kennke <roman@ontographics.com>
2922 * javax/swing/Spring.java: New file.
2923 * javax/swing/SpringLayout.java: New file.
2924 * Makefile.am: Add new files.
2925 * Makefile.in: Regenerate.
2927 2004-07-21 Graydon Hoare <graydon@redhat.com>
2929 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
2930 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
2931 * javax/swing/ScrollPaneLayout.java: Likewise.
2933 2004-07-21 Kim Ho <kho@redhat.com>
2935 * javax/swing/DefaultDesktopManager.java:
2936 (findMinimum): Removed.
2937 (resizeFrame): Trust the UI to pass valid
2939 * javax/swing/JOptionPane.java:
2940 Implemented showInternalXXXDialog methods.
2941 (startModal): New method.
2942 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2943 (BorderListener::mouseDragged): Verify that the new
2944 bounds are valid before passing them to the DesktopManager.
2945 (preferredLayoutSize): Delegate
2947 (minimumLayoutSize): Ditto.
2948 (getSize): New method.
2949 (GlassPaneDispatcher): Reimplemented by copying
2950 a stripped down LightweightDispatcher from Container.
2951 (getMinimumSize): Call minimumLayoutSize.
2952 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
2954 (mousePressed): Add ability to properly close
2956 * javax/swing/plaf/basic/BasicToolBarUI.java:
2957 (DragWindow): Set owner for DragWindow.
2959 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2961 * java/awt/image/ShortLookupTable.java: New file.
2962 * java/awt/image/ByteLookupTable.java: New file.
2963 * Makefile.am: Added new files.
2964 * Makefile.in: Regenerated.
2966 2004-07-21 David Jee <djee@redhat.com>
2968 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2969 (create(GtkContainerPeer)): New native method.
2970 (create()): Call native create(), passing in the parent frame
2971 as the paramter. Natively set the current file and directory.
2972 (setFile): Construct an absolute filename before passing it to
2974 (nativeGetDirectory): New method.
2975 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2976 (window_closed): Removed.
2977 (ok_clicked): Likewise.
2978 (cancel_clicked): Likewise.
2979 (handle_response): New method.
2980 (create): Use GtkFileChooserDialog.
2981 (connectSignals): Connect to handle_response.
2982 (nativeGetDirectory): New method.
2983 (nativeSetFile): Use GtkFileChooserDialog.
2985 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2987 * java/awt/image/LookupTable.java: New file.
2988 * Makefile.am: Added new file.
2989 * Makefile.in: Regenerated.
2991 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2993 * java/awt/image/Kernel.java: New file.
2994 * Makefile.am: Added new file.
2995 * Makefile.in: Regenerated.
2997 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2999 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
3000 * javax/swing/JMenu.java: Likewise.
3001 * javax/swing/JMenuBar.java: Likewise.
3002 (MARGIN_CHANGED_PROPERTY): New property.
3003 (setMargin): Implemented.
3004 * javax/swing/JMenuItem.java: Fixed javadocs.
3005 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
3006 (LABEL_CHANGED_PROPERTY): New property.
3007 (add): changed to use createActionComponent.
3008 (createActionComponent): Implemented.
3009 (setLabel): Fire PropertyChangeEvent if label property
3011 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
3012 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3013 (ContainerHandler): Repaint if margin property has changed.
3014 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3015 (installUI): Call installComponents().
3016 (uninstallUI): Call uinstallComponents().
3017 * javax/swing/plaf/basic/BasicMenuUI.java:
3019 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3022 2004-07-21 Kim Ho <kho@redhat.com>
3024 * javax/swing/plaf/basic/BasicToolBarUI.java:
3025 (DragWindow): Use the right constructor.
3027 2004-07-21 Kim Ho <kho@redhat.com>
3029 * javax/swing/JToolBar.java:
3030 (layoutContainer): Use getComponents.
3031 * javax/swing/plaf/basic/BasicToolBarUI.java:
3032 (DragWindow): Don't use SwingUtilities'
3034 (ToolBarDialog): ditto.
3036 2004-07-21 Kim Ho <kho@redhat.com>
3038 * javax/swing/JRootPane.java:
3040 (layoutContainer): Set the glasspane's size to
3041 be the same as the content pane.
3042 (createGlassPane): Set opaque property to false.
3044 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3046 * java/awt/Component.java (requestFocus()): Don't handle Panels
3048 (requestFocus(boolean)): Likewise.
3049 (requestFocusInWindow(boolean)): Likewise.
3050 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
3051 Set GTK_CAN_FOCUS flag.
3053 2004-07-21 Kim Ho <kho@redhat.com>
3055 * Makefile.am: Added new file.
3056 * Makefile.in: Regenerated.
3057 * gcj/Makefile.in: Regenerated.
3058 * include/Makefile.in: Regenerated.
3059 * javax/swing/AbstractButton.java:
3060 Add rollOverEnabled property.
3061 (setRolloverEnabled): Use new property.
3062 (isRolloverEnabled): Use new property.
3063 * javax/swing/JTabbedPane.java:
3064 (setComponent): Remove useless JTabbedPane.this.
3065 * javax/swing/JToolBar.java: Finish implementation.
3066 * javax/swing/plaf/basic/BasicArrowButton.java:
3067 (paint): Moved border painting to a border.
3068 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3069 Change JToolBar look and feel defaults.
3070 * javax/swing/plaf/basic/BasicOptionPaneUI.java
3071 (actionPerformed): Return Integer index instead of name.
3072 (addButtonComponents): Check to see if component is
3074 (createMessageArea): Don't use components that are not
3076 (getIconForType): Use temporary icons.
3077 * javax/swing/plaf/basic/BasicSliderUI.java:
3078 (mousePressed): Do not return if it's on thumb.
3079 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
3080 (paintMinorTickForVertSlider): ditto.
3081 (paintMajorTickForHorizSlider): ditto.
3082 (paintMajorTickForVertSlider): ditto.
3083 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
3084 Add a border around the SplitPaneDivider.
3085 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
3087 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
3088 New file. Implemented.
3089 * javax/swing/plaf/basic/BasicToolBarUI.java:
3091 * testsuite/Makefile.in: Regenerated.
3093 2004-07-21 Graydon Hoare <graydon@redhat.com>
3095 * javax/swing/Timer.java (run): Queue events each time cycle.
3097 2004-07-21 David Jee <djee@redhat.com>
3099 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3100 (imageComplete): Call image.imageComplete().
3101 * java/awt/image/MemoryImageSource.java:
3102 Reimplement consumers as a Vector instead of a Hashtable. This is
3103 because enumeration on a Hashtable is not thread-safe.
3104 (addConsumer): Adapt to Vector consumers.
3105 (isConsumer): Adapt to Vector consumers.
3106 (removeConsumer): Adapt to Vector consumers.
3107 (startProduction): Adapt to Vector consumers. Call imageComplete()
3108 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
3109 (newPixels): Adapt to Vector consumers.
3110 (sendPicture): Set the color model of the image consumer.
3111 (newPixels(IIII)): Adapt to Vector consumers.
3112 (newPixels(IIIIB)): Adapt to Vector consumers.
3114 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3116 * java/awt/Component.java (deliverEvent): Implement.
3117 (postEvent): Implement.
3118 (handleEvent): Implement.
3119 (translateEvent): New method.
3120 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
3121 * java/awt/Container.java (deliverEvent): Implement.
3122 * java/awt/Event.java (paramString): Fix formatting.
3123 * java/awt/Font.java (toString): Likewise.
3124 * java/awt/Window.java (postEvent): Implement.
3126 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3128 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3129 Set window's focus owner upon receiving a FOCUS_LOST event.
3130 * java/awt/Window.java (Window()): Refocus the previously
3131 focused component within the window when the window regains the
3133 (setFocusOwner): New method.
3134 * java/awt/Component.java (requestFocus): Add FIXME.
3136 * libgcj.pc.in: Remove library flags.
3138 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3140 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
3141 MOUSE_PRESSED event.
3142 * java/awt/Component.java (requestFocus()): Handle Panel
3143 specially. Post FOCUS_LOST event on opposite component.
3144 (requestFocus(boolean)): Likewise.
3145 (requestFocusInWindow(boolean)): Likewise.
3146 (paramString): Reorder dimension fields.
3147 * java/awt/Container.java (paramString): Fix string format.
3148 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3149 Handle FOCUS_LOST events. Don't handle Windows specially. Only
3150 process key events if the focus owner is non-null.
3151 (dispatchKeyEvent): Likewise.
3152 * java/awt/Frame.java (paramString): Fix formatting.
3153 (generateName): New method.
3154 (getUniqueLong): Likewise.
3155 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
3156 the temporary focus owner is null. If so, return the permanent
3158 * java/awt/Panel.java (generateName): New method.
3159 (getUniqueLong): Likewise.
3160 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
3161 signal handling to make callbacks more specific.
3163 2004-07-21 Michael Koch <konqueror@gmx.de>
3165 * javax/swing/text/Position.java
3166 (Bias): Implemented.
3168 2004-07-21 Michael Koch <konqueror@gmx.de>
3170 * javax/swing/LookAndFeel.java
3171 (provideErrorFeedback): New method.
3173 2004-07-21 Michael Koch <konqueror@gmx.de>
3175 * javax/swing/JTextArea.java
3176 (tabSize): New field.
3177 (getTabSize): New method.
3178 (setTabSize): Likewise.
3180 2004-07-21 Michael Koch <konqueror@gmx.de>
3182 * javax/swing/ActionMap.java:
3183 Fixed javadocs all over.
3184 (serialVersionUID): Made private.
3185 (parent): Don't explicitely initialize with default value.
3187 (keys): Reimplemented.
3188 (allKeys): Likewise.
3189 (convertSet): Removed.
3190 * javax/swing/ComponentInputMap.java:
3191 Fixed javadocs all over.
3192 (ComponentInputMap): Implemented.
3196 (SetParent): Likewise.
3197 (getComponent): Likewise.
3198 * javax/swing/InputMap.java:
3199 Fixed javadocs all over.
3200 (serialVersionUID): Made private.
3201 (parent): Don't explicitely initialize with default value.
3203 (keys): Reimplemented.
3204 (allKeys): Likewise.
3205 (convertSet): Removed.
3207 2004-07-21 Michael Koch <konqueror@gmx.de>
3209 * javax/swing/ActionMap.java,
3210 javax/swing/ComponentInputMap.java,
3211 javax/swing/InputMap.java,
3212 javax/swing/table/DefaultTableColumnModel.java,
3213 javax/swing/table/TableColumn.java,
3214 javax/swing/table/TableColumnModel.java,
3215 javax/swing/table/TableModel.java,
3216 javax/swing/text/AbstractDocument.java,
3217 javax/swing/text/TextAction.java:
3220 2004-07-21 Graydon Hoare <graydon@redhat.com>
3222 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
3223 Make method non-static.
3224 * javax/swing/AbstractButton.java:
3225 Rename fields to match property names where possible.
3226 (iconTextGap): New property.
3227 * javax/swing/JCheckBox.java: Match AbstractButton changes.
3228 (init) New method, call from after various constructors.
3229 * javax/swing/JComponent.java (revalidate):
3230 Invalidate before queueing repair.
3231 * javax/swing/JList.java (getPreferredScrollableViewportSize):
3232 Reimplement in terms of visibleRowCount property.
3233 * javax/swing/JMenuButton.java: Match AbstractButton changes.
3234 * javax/swing/JScrollPane.java (createScrollListener):
3235 Remove tracing chatter.
3236 * javax/swing/JToggleButton.java: Match AbstractButton changes.
3237 * javax/swing/RepaintManager.java (addInvalidComponent):
3239 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
3241 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
3242 Mimic sun behavior on top left/right positioning.
3243 * javax/swing/ViewportLayout.java (preferredLayoutSize):
3244 Remove mistaken use of preferredScrollableViewportSize here.
3245 (layoutContainer): Use view's preferred size as basis.
3246 * javax/swing/plaf/basic/BasicButtonUI.java:
3247 Set, get, and use textIconGap property.
3248 (paint) Paint text returned from layout (with ellipsis).
3249 * javax/swing/plaf/basic/BasicListUI.java:
3250 Remove tracing chatter, correct various minor calculations.
3251 (getCellBounds): Update layout state before calculating.
3252 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
3253 Use margin default similar to sun's.
3254 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
3255 (createIncreaseIcon): Center icon, minimize margins.
3256 (createDecreaseIcon): Likewise.
3257 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
3259 (installUI): Call it.
3260 (uninstallDefaults): Implement.
3261 (uninstallUI): Call it.
3262 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
3263 Call existing Window constructor.
3264 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
3265 Set clip before painting.
3267 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3269 * javax/swing/JMenuItem.java:
3270 (processMouseEvent): Reimplemented to deal with
3272 (createMenuDragMouseEvent): New private helper method.
3273 Creates MenuDragMouseEvent.
3274 * javax/swing/MenuSelectionManager.java
3275 (componentForPoint): Implemented.
3276 (isComponentPartOfCurrentMenu): Made public.
3277 (processMouseEvent): Reimplemented to deal with
3279 (setSelectedPath): Corrected small mistake that caused
3280 path to be set incorrectly.
3281 (getPath): If given component is JMenu then also add this
3282 menu's popup menu to the selected path.
3283 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3285 (getPreferredSize): Call getPreferredMenuItemSize().
3286 (getPreferredItemSize): Moved code from getPreferredSize to here.
3287 (installListeners): Install MouseMotionListeners.
3288 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
3289 if mouse wasn't released in the bounds of this menu item.
3290 (MenuDragMouseHandler): Implemented.
3291 * javax/swing/plaf/basic/BasicMenuUI.java:
3292 (installListeners): Install MouseMotionListener and
3293 MenuDrageMouseListener.
3294 (MenuDragMouseHandler): Implemented.
3295 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3296 (uninstallListeners): Implemented.
3298 2004-07-21 Michael Koch <konqueror@gmx.de>
3300 * javax/swing/JCheckBox.java: Reformated.
3301 (JCheckBox): Fixed all constructors.
3302 (isBorderPaintedFlat): New method.
3303 (setBorderPaintedFlat): New method.
3304 * javax/swing/JEditorPane.java
3305 (createEditorKitForContentType): Made public.
3306 (scrollToReference): Likewise.
3307 * javax/swing/JTextArea.java
3308 (setLineWrap): Fire property change.
3309 * javax/swing/JToggleButton.java
3310 (JToggleButton): New constructor.
3311 (JToggleButton): Simplified.
3312 * javax/swing/text/AttributeSet.java
3313 (FontAttribute): Renamed from FontCharacterAttribute.
3314 * javax/swing/text/JTextComponent.java
3315 (KeyBinBinding): Added javadoc.
3316 (JTextComponent): Likewise.
3317 (getAccessibleContext): Fixed javadoc.
3318 * javax/swing/text/View.java
3319 (View): Added javadoc.
3320 * javax/swing/text/TabableView.java: New file.
3321 * Makefile.am: Added javax/swing/text/TabableView.java.
3322 * Makefile.in: Regenerated.
3324 2004-07-21 Graydon Hoare <graydon@redhat.com>
3326 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
3327 * gnu/java/awt/peer/gtk/GtkToolkit.java
3328 (GtkErrorImage): New helper class.
3329 (bufferedImageOrError): New helper method.
3330 (createImage): Use it.
3332 2004-07-21 David Jee <djee@redhat.com>
3334 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3335 (setCaretPosition): Scroll the text view so the new caret position
3336 is visible on screen.
3338 2004-07-21 David Jee <djee@redhat.com>
3340 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3341 (setBounds): Do not validate awtComponent here.
3342 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
3343 (getPreferredSize): New method.
3344 * java/awt/ScrollPane.java
3345 (ScrollPane): Set default size to 100x100.
3346 (addNotify): If child is not a Panel, wrap it with a new Panel.
3347 (paramString): Implement.
3349 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3351 * javax/swing/JMenu.java:
3352 (setSelected): Display popup menu only if this menu
3353 is showing on the screen.
3354 * javax/swing/JPopupMenu.java:
3355 (processMouseEvent): Added comment.
3356 (processKeyEvent): Likewise.
3357 * javax/swing/MenuSelectionManager.java:
3358 (clearSelectedPath): Only fireStateChanged() after
3359 selected path was changed, not before.
3360 (setSelectedPath): Likewise.
3361 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3362 (paintMenuItem): Corrected position of menu item's
3364 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3365 (installUI): Correct setDefaultLightWeightPopupEnabled call.
3366 (popupMenuCanceled): Reimplemented.
3367 (popupMenuWillBecomeVisible): Select first menu item by default
3368 when displaying free floating popup menus.
3369 (TopWindowListener): Reimplemented.
3371 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3373 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
3374 Panel from being painted twice when it is first shown.
3376 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3378 * java/awt/Window.java: Reverted changes from my
3379 previous patch for creating window without an owner.
3380 * javax/swing/SwingUtilities.java:
3381 (SwingUtilities.OwnerFrame): made static.
3382 (OwnerFrame.setVisible): New method. Overridden with
3383 empty implementation.
3384 (OwnerFrame.isShowing): New method. Ovverridden
3385 to return always true.
3387 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3389 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3390 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3391 (GtkComponentPeer): Remove temporary try/catch block.
3392 (setVisible): Call show and hide.
3393 (show): Make native.
3395 (getArgs): Don't add "visible" argument.
3396 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3397 (property_notify_predicate): Return Bool instead of int.
3398 (find_layout): New function.
3399 (connectJObject): Call find_layout.
3400 (connectSignals): Likewise.
3401 (moveLayout): Likewise.
3402 (gtkLayoutSetVisible): Likewise.
3404 2004-07-21 Mark Wielaard <mark@klomp.org>
3406 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3407 on notifier object before calling notifyAll().
3409 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3411 * java/awt/Window.java: Changed constructors to use new
3412 method that is described below. Constructors call this
3413 methods only if newly created window should have an owner.
3414 (setWindowOwner): New method. Implementation for
3415 this method is moved from this(owner,configuration).
3416 * javax/swing/JWindow.java:
3417 (JWindow): Reimplement to use SwingUtilities.ownerFrame
3419 * javax/swing/SwingUtilities.java:
3420 (ownerFrame): Change type of this field to OwnerFrame.
3421 (getOwnerFrame): Changed to return object of type OwnerFrame.
3422 (SwingUtilities.OwnerFrame): New class. Represents owner
3423 of a Window that is not provided with one.
3425 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3427 * javax/swing/AbstractButton.java:
3428 (configurePropertiesFromAction): Set action command
3429 to button's text by default if action command is not
3430 explicitely specified.
3431 * javax/swing/JMenu.java: Remove unnecessary listener
3432 and methods relevant to it.
3433 (setSelected): Reimplemented.
3434 (menuSelectionChanged): Moved most part of implementation to
3435 setSelected() and call it instead.
3436 * javax/swing/JMenuItem.java:
3437 (init): Comment out statement that sets paint_border to false.
3438 (configurePropertiesFromAction): Do not set accelerator
3440 (menuSelectionChanged): Change selected index in the selection
3441 model of menu item's parent.
3442 * javax/swing/JPopupMenu.java:
3443 (remove): Set constraints.fill field to GridBagConstraints.BOTH
3444 instead of GridBagConstraints.HORIZONTAL.
3446 (createActionChangeListener): Implemented.
3447 (setVisible): Correct location of HeavyWeightMenu and
3448 don't firePopupMenuCanceled().
3449 (menuSelectionChanged): Implemented.
3450 (ActionChangeListener): New Listener. Implemented.
3451 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3452 (BasicMenuBarUI.ContainerHandler): Implemented.
3453 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3454 (paintMenuItem): Uncommented out code that paints
3455 icon, now that icons are working properly.
3456 (PropertyChangeListener): Implemented.
3457 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3459 (topWindowListener): New field.
3460 (Constructor): initialize topWindowListener.
3461 (BasicPopupMenuUI.TopWindowListener): Implemented.
3462 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
3463 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
3466 2004-07-21 Michael Koch <konqueror@gmx.de>
3468 * javax/swing/plaf/basic/BasicButtonUI.java
3469 (paintFocus): Fixed method signature.
3470 (paintButtonPressed): Likewise.
3471 (paintButtonNormal): Likewise.
3472 (paintText): New method.
3473 * javax/swing/plaf/basic/BasicLabelUI.java
3474 (paint): Re-indented.
3475 * javax/swing/plaf/basic/BasicTextUI.java
3476 (installUI): Set parent textComponent to opaque.
3477 * javax/swing/text/DefaultHighlighter.java
3478 (checkPositions): New helper method.
3479 (addHighlight): Throws BadLocationException, check positions.
3480 (changeHighlight): Likewise.
3481 * javax/swing/text/EditorKit.java
3482 (EditorKit): Implements Serializable.
3483 * javax/swing/text/JTextComponent.java
3484 (getUI): Added javadoc.
3486 (upadteUI): Added javadoc, don't revalidate and repaint.
3488 2004-07-21 David Jee <djee@redhat.com>
3490 * java/awt/GridBagLayout.java
3491 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
3492 * javax/swing/AbstractButton.java
3493 (setText): Reindent.
3494 * javax/swing/RepaintManager.java
3495 (addInvalidComponent): Find the first ancestor that isValidateRoot().
3497 2004-07-21 Michael Koch <konqueror@gmx.de>
3499 * javax/swing/JFormattedTextField.java
3501 (JFormattedTextField): Implemented.
3502 (getValue): Likewise.
3503 (setValue): Likewise.
3504 * javax/swing/LookAndFeel.java
3505 (getSupportsWindowDecorations): New method.
3506 * javax/swing/UIDefaults.java:
3507 Use java.beans.PropertyChangeSupport instead of doing all ourself.
3508 (addPropertyChangeListener): Made public.
3509 (addResourceBundle): Likewise.
3510 (removeResourceBundle): Likewise.
3511 (setDefaultLocale): Likewise.
3512 * javax/swing/plaf/basic/BasicRootPaneUI.java
3513 (BasicRootPaneUI): Implements PropertyChangeListener.
3514 (propertyChange): New method.
3515 * javax/swing/plaf/basic/BasicTextUI.java
3516 (BasicHighlighter): New inner class.
3517 (createHighlighter): New method.
3518 * javax/swing/plaf/basic/BasicToolBarUI.java
3519 (DragWindow): Extends java.awt.Window.
3520 * javax/swing/text/JTextComponent.java
3521 (getDocument): Removed debug output.
3522 * javax/swing/plaf/basic/BasicTextFieldUI.java,
3523 javax/swing/text/DefaultHighlighter.java,
3524 javax/swing/text/FieldView.java,
3525 javax/swing/text/PlainView.java: New files.
3526 * Makefile.am: Added new files.
3527 * Makefile.in: Regenerated.
3529 2004-07-21 Michael Koch <konqueror@gmx.de>
3531 * javax/swing/JEditorPane.java
3532 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
3533 (createEditorKitForContentType): Likewise.
3534 * javax/swing/text/DefaultEditorKit.java
3535 (serialVersionUID): Added constant field.
3536 (EndOfLineStringPropery): Fixed typo.
3537 (DefaultEditorKit): New constructor.
3538 * javax/swing/text/Segment.java:
3539 Import java.text.CharacterIterator.
3540 * javax/swing/text/CharacterIterator.java,
3541 javax/swing/text/PlainEditorKit.java: Removed.
3542 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
3543 javax/swing/text/PlainEditorKit.java.
3544 * Makefile.in: Regenerated.
3546 2004-07-21 Michael Koch <konqueror@gmx.de>
3548 * javax/swing/JButton.java,
3549 javax/swing/text/DefaultEditorKit.java,
3550 javax/swing/text/EditorKit.java,
3551 javax/swing/text/Segment.java,
3552 javax/swing/text/StyledEditorKit.java:
3555 2004-07-21 Michael Koch <konqueror@gmx.de>
3557 * javax/swing/ImageIcon.java
3559 (description): Renamed from descr.
3560 (ImageIcon): Added missing constructors.
3561 (setParent): Removed.
3562 (setImageObserver): New method.
3563 (getImageObserver): New method.
3564 (paintIcon): Handle observer = null.
3565 * javax/swing/JButton.java
3566 (removeNotify): Fixed javadoc.
3567 (updateUI): Simplified.
3568 * javax/swing/JRootPane.java
3569 (serialVersionUID): New constant field.
3570 * javax/swing/UIManager.java:
3571 Fixed javadocs all over.
3572 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
3573 * javax/swing/text/AbstractDocument.java
3574 (createPosition): Throws BadLocationException.
3575 (getText): Likewise.
3577 * javax/swing/text/ComponentView.java
3578 (modelToView): Likewise.
3579 * javax/swing/text/DefaultEditorKit.java:
3580 Made all public methods public.
3581 (read): Throws BadLocationException and IOException.
3583 * javax/swing/text/EditorKit.java:
3584 Made all public methods public.
3585 (serialVersionUID): New constant field.
3586 (clone): New method.
3587 (read): Throws BadLocationException and IOException.
3589 * javax/swing/text/Segment.java
3590 (array): Made public.
3593 (Segment): New constructors.
3594 (clone): Reimplemented.
3595 * javax/swing/text/StyledEditorKit.java
3596 (serialVersionUID): New constant field.
3598 2004-07-21 Graydon Hoare <graydon@redhat.com>
3600 * java/awt/image/BufferedImage.java
3601 (getSource): Implement.
3602 * javax/swing/ImageIcon.java
3603 (ImageIcon): Implement ctor.
3604 * javax/swing/ScrollPaneLayout.java
3605 (preferredLayoutSize): Be more careful about nulls.
3607 2004-07-21 Michael Koch <konqueror@gmx.de>
3609 * javax/swing/text/AttributeSet.java
3610 (CharacterAttribute): New interface
3611 (ColorAttribute): Likewise.
3612 (FontCharacterAttribute): Likewise.
3613 (ParagraphAttribute): Likewise.
3614 * javax/swing/text/DefaultCaret.java
3615 (moveCaret): New method.
3616 (positionCaret): Likewise.
3617 (repaint): Made protected.
3618 * javax/swing/text/JTextComponent.java
3619 (KeyBinding): Made it static.
3620 * javax/swing/text/View.java
3621 (getContainer): Honor parent == null.
3623 2004-07-21 Michael Koch <konqueror@gmx.de>
3625 * javax/swing/text/AbstractDocument.java:
3628 2004-07-21 Michael Koch <konqueror@gmx.de>
3630 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3631 Import javax.swing.UIManager explicitely.
3632 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
3633 (ScrollingButton): Made it static.
3635 2004-07-21 Michael Koch <konqueror@gmx.de>
3637 * javax/swing/UIDefaults.java
3638 (ActiveValue): Made public.
3639 (LazyValue): Likewise.
3640 * javax/swing/plaf/basic/BasicTextUI.java
3641 (RootView): Reintroduced.
3643 (rootView): New field.
3644 (installUI): Create document if needed, initialize rootView.
3645 (uninstallUI): Hanle rootView.
3647 (getRootView): Likewise.
3648 (setView): Likewise.
3649 * javax/swing/text/DefaultCaret.java:
3650 Renamed all "evt" variables to "event".
3652 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3654 * libgcj.spec.in: Add -l-java-util-logging.
3656 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
3658 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3659 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
3660 gtk-xft-dpi can no calculate the right value.
3661 (dpi_changed_cb): Mark *pspec as unsused.
3663 2004-07-21 David Jee <djee@redhat.com>
3665 * java/awt/Component.java
3666 (move): Delegate to setBounds().
3668 (reshape): Fix so it repaints parent and self only when necessary.
3670 2004-07-21 David Jee <djee@redhat.com>
3672 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3673 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3674 (GtkComponentPeer): Revert previous patch from 2004-06-22.
3675 (setVisible): Likewise.
3678 (getArgs): Likewise.
3679 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3680 (property_notify_predicate): Likewise.
3681 (find_layout): Likewise.
3682 (connectJObject): Likewise.
3683 (connectSignals): Likewise.
3684 (moveLayout): Likewise.
3685 (gtkLayoutSetVisible): Likewise.
3687 2004-07-21 Graydon Hoare <graydon@redhat.com>
3693 (rmiregistry_LDADD): Add lib-java-util-logging.la
3694 * Makefile.in: Regenerate.
3696 2004-07-21 Michael Koch <konqueror@gmx.de>
3698 * javax/swing/text/AbstractDocument.java
3699 (replace): Dont use protected method of java.util.Vector directly.
3701 2004-07-21 Michael Koch <konqueror@gmx.de>
3703 * javax/swing/plaf/basic/BasicTextUI.java
3704 (installUI): Call specialized install methods.
3705 (installDefaults): New method.
3706 (installListeners): Likewise.
3707 (installKeyboardActions): Likewise.
3708 (uninstallUI): Likewise.
3709 (uninstallDefaults): New method.
3710 (uninstallListeners): Likewise.
3711 (uninstallKeyboardActions): Likewise.
3712 (getPropertyPrefix): New abstract method.
3713 (paint): Made final, just call paintSafely().
3714 (paintSavely): New method.
3715 (paintBackground): Likewise.
3716 (getVisibleEditorRect): Likewise.
3717 * javax/swing/text/LayeredHighlighter.java,
3718 javax/swing/text/TabExpander.java: New files.
3719 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
3720 and javax/swing/text/TabExpander.java.
3721 * Makefile.in: Regenerated.
3723 2004-07-21 Michael Koch <konqueror@gmx.de>
3725 * javax/swing/plaf/basic/BasicTextUI.java
3726 (BasicTextUI): Made abstract.
3727 (BasicCaret): New inner class.
3728 (view): Don't explicitely initialize with "null".
3729 (textComponent): New field.
3730 (textColor): Removed.
3731 (disabledTextColor): Removed.
3732 (normalBackgroundColor): Removed.
3733 (RootView): Removed commented out inner class.
3734 (createUI): Removed.
3735 (createCaret): New method.
3736 (getComponent): Likewise.
3737 (installUI): Initialize textComponent only.
3738 (getPreferredSize): Use installed JTextComponent.
3739 (setView): New method.
3741 * javax/swing/text/JTextComponent.java
3742 (highlighter): New field.
3743 (caretColor): Likewise.
3744 (disabledTextColor): Likewise.
3745 (seletedTextColor): Likewise.
3746 (selectionColor): Likewise.
3747 (setUI): New method.
3748 (getCaretColor): Likewise.
3749 (setCaretColor): Likewise.
3750 (getDisabledColor): Likewise.
3751 (setDisabledColor): Likewise.
3752 (getSelectedTextColor): Likewise.
3753 (setSelectedTextColor): Likewise.
3754 (getSelectionColor): Likewise.
3755 (setSelectionColor): Likewise.
3756 (getHighlighter): Likewise.
3757 (setHighlighter): Likewise.
3758 (replaceSelection): Likewise.
3760 2004-07-21 Michael Koch <konqueror@gmx.de>
3762 * javax/swing/plaf/basic/BasicScrollPaneUI.java
3763 (BasicScrollPaneUI): Implements ScrollPaneConstants.
3764 * javax/swing/plaf/basic/BasicToolBarUI.java
3765 (BasicToolBarUI): Implements SwingConstants.
3767 2004-07-21 Michael Koch <konqueror@gmx.de>
3769 * javax/swing/JPopupMenu.java: Removed CVS tags.
3770 * javax/swing/UIDefaults.java: Reformatted.
3771 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3772 Explicitely import used classes.
3774 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3776 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3777 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3778 (GtkComponentPeer): Remove temporary try/catch block.
3779 (setVisible): Call show and hide.
3780 (show): Make native.
3782 (getArgs): Don't add "visible" argument.
3783 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3784 (property_notify_predicate): Return Bool instead of int.
3785 (find_layout): New function.
3786 (connectJObject): Call find_layout.
3787 (connectSignals): Likewise.
3788 (moveLayout): Likewise.
3789 (gtkLayoutSetVisible): Likewise.
3791 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3793 * javax/swing/AbstractButton.java:
3794 (setDisplayedMnemonicIndex): Check if button
3795 text is not null before checking its length.
3796 * javax/swing/JMenuItem.java:
3797 (processMouseEvent): Disarm menu item if mouse has
3799 * javax/swing/plaf/basic/BasicMenuUI.java:
3800 (MouseInputHandler.mouseEntered): Do not raise
3801 popup menu if this menu is already selected.
3802 (MouseInputHandler.mousePressed): Do not fire
3804 (MenuHandler): Implemented.
3806 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3808 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
3809 (getSelectedObjects): Implemented.
3810 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
3811 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
3812 Added javadoc for few methods.
3813 (processMouseEvent): Made public.
3814 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
3815 (processMouseEvent): Likewise.
3817 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3819 * javax/swing/AbstractButton.java:
3820 (init): Set display mnemonic index to -1.
3821 (setMnemonic(char)): Use setMnemonic(int).
3822 (setMnemonic(int)): Set display mnemonic index.
3823 (getDisplayedMnemonicIndex): Change method signature
3824 by removing 'index' parameter.
3825 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3826 Added default for Menu.selectionBackground.
3827 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3828 (paintMenuItem): Change background color of the selected
3830 (paintText): Paint differently when menu item is disabled.
3831 Also paint mnemonic if it appears in the menu item's label.
3832 (paintAccelerator): Paint accelerator differently
3833 if menu item is disabled.
3834 * javax/swing/plaf/basic/BasicMenuUI.java:
3835 (installDefaults): Install defaults for
3836 selectionForeground and selectionBackground.
3837 (uninstallDefaults): Uninstall defauls for
3838 selectionForeground and selectionBackground.
3840 2004-07-21 Michael Koch <konqueror@gmx.de>
3842 * javax/swing/text/AbstractDocument.java
3843 (BranchElement): Implemented.
3844 (LeafElement): Implemented.
3845 * javax/swing/text/DefaultCaret.java:
3846 Import used classes.
3847 (serialVersionUID): New constant.
3848 * javax/swing/text/JTextComponent.java
3849 (AccessibleJTextComponent): Removed dead declaration.
3850 (caretPos): Removed.
3851 (setCaret): New method.
3852 * javax/swing/text/PlainDocument.java
3853 (rootElement): New field.
3854 (PlainDocument): Initialize rootElement.
3855 (createDefaultRoot): New method.
3856 (getDefaultRootElement): Implemented.
3857 * javax/swing/text/View.java: Reformatted.
3858 * javax/swing/text/ViewFactory.java
3859 (create): Added javadoc.
3861 2004-07-21 Michael Koch <konqueror@gmx.de>
3863 * javax/swing/ToolTipManager.java: Reformatted.
3865 2004-07-21 Rodimina Olga <rodimina@redhat.com>
3867 * javax/swing/AbstractButton.java
3868 (changeEvent): New field.
3869 (fireItemStateChanged): Change source of the event
3870 to 'this' before firing it to button listeners.
3871 (fireActionPerformed): Likewise.
3872 (fireStateChanged): Likewise.
3873 (createActionListener): Do not set source
3874 of the event to AbstractButton.
3875 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3876 (ContainerHandler.componentAdded): Removed
3877 print out statement.
3878 (ContainerHandler.componentRemoved): Likewise.
3880 2004-07-21 Michael Koch <konqueror@gmx.de>
3882 * javax/swing/text/Highlighter.java: New file.
3883 * Makefile.am: Added javax/swing/text/Highlighter.java.
3884 * Makefile.in: Regenerated.
3886 2004-07-21 Michael Koch <konqueror@gmx.de>
3888 * javax/swing/ToolTipManager.java
3889 (stillInsideTimerAction): Fixed constructor arguments.
3890 (outsideTimerAction): Likewise.
3891 (insideTimerAction): Likewise.
3893 2004-07-21 Michael Koch <konqueror@gmx.de>
3895 * javax/swing/JButton.java: Reformatted.
3896 * javax/swing/JFormattedTextField.java
3897 (getUIClassID): Implemented.
3898 * javax/swing/JRootPane.java
3899 (serialVersionUID): New constant.
3900 * javax/swing/JTextField.java
3902 (JTextField): Simplified.
3903 (getUIClassID): New method.
3904 (getActionListeners): Added @since tag.
3905 (setColumns): Invalidate layout and repaint.
3906 (getHorizontalAlignment): New method.
3907 (setHorizontalAlignment): New method.
3908 (selectAll): Removed.
3909 * javax/swing/SwingUtilities.java
3910 (getAncestorOfClass): Removed redundant @see tag.
3911 (isLeftMouseButton): Fixed implementation.
3912 (isMiddleMouseButton): Likewise.
3913 (isRightMouseButton): Likewise.
3914 * javax/swing/text/AbstractDocument.java
3915 (AttributeContext.addAttribute): New method.
3916 (AttributeContext.addAttributes): New method.
3917 (AttributeContext.getEmptySet): New method.
3918 (AttributeContext.reclaim): New method.
3919 (AttributeContext.removeAttribute): New method.
3920 (AttributeContext.removeAttributes): New method.
3921 * javax/swing/text/Document.java
3922 (createPosition): Throws BadLocationException.
3923 (getText): Likewise.
3925 * javax/swing/text/JTextComponent.java
3926 (getText): Return null if no document is set. Catch
3927 BadLocationException.
3929 (updateUI): Simplified.
3931 2004-07-21 Michael Koch <konqueror@gmx.de>
3933 * javax/swing/JButton.java
3934 (removeNotify): Fixed javadoc.
3935 (updateUI): Simplified.
3937 2004-07-21 David Jee <djee@redhat.com>
3939 * gnu/java/awt/image/ImageDecoder.java
3940 (startProduction): Only add consumer if it's not added yet.
3941 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
3942 (GdkPixbufDecoder): Don't call initState() here.
3943 (produce): Call initState() here, to ensure area_prepared and
3944 area_updated signals are properly connected.
3945 * gnu/java/awt/peer/gtk/GtkImage.java
3946 (setColorModel): Use equals() to compare ColorModel objects.
3947 (setPixels): Likewise.
3948 * java/awt/image/ColorModel.java
3949 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
3950 * java/awt/image/RGBImageFilter.java
3951 (setColorModel): Set consumer's color model.
3952 (setPixels): Use equals() to compare ColorModel objects.
3954 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
3956 * java/net/URLConnection.java (position): New field.
3957 (dateFormat1, dateFormat2, dateFormat3): Removed.
3958 (dateFormats): New field.
3959 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
3960 each time instead of re-allocating.
3961 (initializeDateFormats): Initialize 'dateFormats'.
3963 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3966 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
3969 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3971 * java/net/Socket.java (getImpl): Now private. Remove comment.
3973 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3975 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
3976 of chained Writer when calling super-constructor.
3977 * java/io/FilterWriter.java (FilterWriter): Likewise.
3978 * java/io/PrintWriter.java (PrintWriter): Likewise.
3980 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
3982 * prims.cc (process_gcj_properties): Don't increment i within LHS
3985 2004-07-19 Per Bothner <per@bothner.com>
3987 Print -verbose:message on "loading", not initialization.
3988 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
3989 * defineclass.cc (_Jv_ClassReader::parse): Print message if
3990 gcj::verbose_class_flag.
3991 * java/lang/natClass.cc (initializeClass): Don't print message here.
3992 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
3993 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
3994 (_Jv_PrepareCompiledClass): Likewise.
3996 2004-07-18 Matthias Klose <doko@debian.org>
3998 * configure.in: Substitute target_noncanonical.
3999 * configure: Regenerate
4001 2004-07-17 Michael Koch <konqueror@gmx.de>
4003 * java/lang/String.java: Fixed javadocs all over.
4005 2004-07-17 Mark Wielaard <mark@klomp.org>
4007 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
4008 when size is smaller.
4009 * java/io/RandomAccessFile.java (setLength): Use truncate for
4010 shrinking the file and seek plus write for expanding the file.
4012 2004-07-17 Michael Koch <konqueror@gmx.de>
4014 * gnu/java/nio/channels/natFileChannelPosix.cc
4015 (implTruncate): Always save current position. Only reposition file
4016 pointer to where we started if not beyond new lenght. Reposition file
4017 pointer to file length if it points beyond the end of file.
4019 2004-07-17 Mark Wielaard <mark@klomp.org>
4021 * javax/swing/Box.java: Put FIXME comment above class declaration.
4022 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
4023 * javax/swing/JCheckBox.java: Likewise.
4024 * javax/swing/JDialog.java: Likewise.
4025 * javax/swing/JRadioButton.java: Likewise.
4026 * javax/swing/JToggleButton.java: Likewise.
4027 * javax/swing/UIManager.java: Likewise.
4028 * javax/swing/border/TitledBorder.java: Likewise.
4029 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
4030 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
4031 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
4032 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
4033 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
4034 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
4035 * javax/swing/text/JTextComponent.java: Likewise.
4037 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
4039 * java/net/DatagramPacket.java (setAddress): Removed check for
4042 2004-07-17 Michael Koch <konqueror@gmx.de>
4044 * java/net/DatagramSocket.java
4045 (getLocalAddress): Check if socket is bound or not.
4046 * java/net/Socket.java
4047 (getLocalAddrss): Check if socket is bound or not.
4048 (getPort): Return -1 when not connected. Dont check getImpl() for
4050 (setReuseAddress): Check if socket is closed.
4051 (isConnected): Check if getImpl() returns null.
4053 2004-07-17 Mark Wielaard <mark@klomp.org>
4055 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
4056 on notifier object before calling notifyAll().
4058 2004-07-17 Michael Koch <konqueror@gmx.de>
4060 * gnu/java/nio/channels/FileChannelImpl.java
4061 (finalize): Added javadoc.
4063 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
4065 * java/text/CollationElementIterator.java
4066 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
4067 (setText): Use ArrayList instead of Vector.
4069 2004-07-17 Michael Koch <konqueror@gmx.de>
4071 * java/nio/ByteOrder.java
4072 (static): Removed. Not needed.
4073 Thanks to Patrick Reali for noticing.
4074 * java/nio/charset/CharsetDecoder.java
4075 (decode): Fix for classpath bug #9177: Reset state before flipping.
4077 2004-07-17 Michael Koch <konqueror@gmx.de>
4079 * java/security/Security.java: Fixed javadocs all over.
4081 2004-07-17 Michael Koch <konqueror@gmx.de>
4083 * gnu/java/awt/EmbeddedWindow.java
4085 (addNotify): Set peer via reflection.
4086 (setWindowPeer): Removed.
4087 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
4088 * Makefile.am (nat_source_files):
4089 Removed gnu/java/awt/natEmbeddedWindow.cc.
4090 * Makefile.in: Regenerated.
4092 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
4094 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
4096 * configure: Regenerated.
4098 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
4100 * configure.in: Use build_noncanonical rather than build_alias.
4101 * configure: Rebuild.
4103 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
4104 by logic refactoring. Move default definition of NATIVE closer
4105 to first alternate definition.
4106 * configure: Regenerate.
4108 * Makefile.am: Set ZIP and GCJH directly using autoconf.
4109 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
4110 gcj/Makefile.in: Regenerate.
4111 * configure.in: Set ZIP and GCJH. Remove redundant condition
4112 in AM_CONDITIONAL(NATIVE,...)
4113 * configure: Regenerate.
4115 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
4117 * configure.in: Use target_noncanonical rather than
4118 target_alias for forward-compatibility with autoconf 2.59.
4119 * configure: Regenerate.
4120 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
4121 testsuite/Makefile.am: Substitute target_noncanonical.
4122 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4123 testsuite/Makefile.in: Regenerate.
4125 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
4126 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
4127 * acinclude.m4: Include acx.m4.
4128 * aclocal.m4: Regenerate.
4129 * configure: Regenerate.
4131 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
4134 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
4135 (decimalFormat): New static variable.
4137 (getTime): New. Override Date.getTime().
4138 (toString): Synchronize. Use decimalFormat to format nanos value
4139 correctly. Truncate extra zeros.
4140 (before): Compare getNanos() only if getTime() is equal.
4143 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
4145 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
4146 * configure.in: ...here.
4147 * aclocal.m4: Regenerate.
4148 * configure: Regenerate.
4150 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
4151 * configure: Rebuilt with autoconf 2.13.
4152 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4153 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
4155 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
4158 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
4160 * Makefile.in: Rebuilt.
4161 * testsuite/libjava.lang/LargeFile.java: New test case.
4162 * testsuite/libjava.lang/LargeFile.out: New file.
4164 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
4166 * java/beans/EventHandler.java: Remove debugging statements.
4168 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
4170 * java/beans/EventHandler.java: New file.
4171 * Makefile.am (awt_java_source_files): Add EventHandler.java.
4172 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4173 testsuite/Makefile.in: Regenerate.
4175 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
4177 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
4178 flag to the gcj_setup.
4179 (gcj_jacks_run): Check tclsh version and launch jacks directly with
4181 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
4182 deprecation flag change. 58 XFAILS removed.
4184 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
4186 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
4187 -fno-use-divide-subroutine.
4188 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
4189 (HANDLE_FPE): Define.
4190 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
4191 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
4192 (HANDLE_DIVIDE_OVERFLOW): Define.
4194 2004-07-14 Michael Koch <konqueror@gmx.de>
4195 Matthias Klose <doko@debian.org>
4197 * java/awt/im/InputContext.java: Initialize in, line.
4199 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
4201 * interpret.cc (run): Correctly access libffi return values of
4202 integral smaller-than-int type; these are implicitly promoted.
4204 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
4207 * interpret.cc (compile_mutex): New.
4208 (_Jv_InitInterpreter): New. Initialize compile_mutex.
4209 (run): Lock compile_mutex before calling compile() if compilation is
4211 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
4212 * include/java-interp.h (_Jv_InitInterpreter): Declare.
4214 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
4217 * include/jvm.h (_Jv_value): New union type.
4218 * gcj/field.h (_Jv_Field): Add new _addr union field variants
4219 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
4222 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
4224 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
4225 * gnu/awt/xlib/XOffScreenImage.java
4226 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
4227 constructor argument. Add constructor using ImageProducer.
4228 (getSource): Implement.
4229 (imageComplete): New method.
4230 (setColorModel): New method.
4231 (setDimensions): New method.
4232 (setHints): New method.
4233 (setPixels): New method.
4234 (setProperties): New method.
4235 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
4236 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
4238 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
4241 * prims.cc (_Jv_CreateJavaVM): Fix comment.
4242 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
4243 (finalizerReady): Now native.
4245 (runFinalizers): Removed.
4246 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
4247 a primitive lock, and don't hold it while running the finalizers.
4248 (runFinalizers): Implement. Don't aquire any Java lock.
4249 (finalizerReady): Use lock primitives to signal finalizer thread.
4251 2004-07-11 Mark Wielaard <mark@klomp.org>
4253 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
4254 * java/net/URLStreamHandler.java (parseURL): When url file part
4255 doesn't contain a '/' just ignore context.
4257 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
4259 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
4260 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
4261 (MAKE_THROW_FRAME): Do not modify PSW address.
4262 (INIT_SEGV): Install SIGINFO-style signal handler.
4263 (INIT_FPE): Likewise.
4265 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
4267 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
4268 status. 21 xfail's removed, 1 added.
4270 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
4272 * gcj/javaprims.h: Regenerate CNI namespace definitions.
4274 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
4276 * java/text/MessageFormat.java
4277 (formatInternal): Append "{n}" if argument n is unavailable.
4278 (format(Object, StringBuffer, FieldPosition)): This
4279 should be equivalent to format(Object[],
4280 StringBuffer, FieldPosition).
4282 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4284 * java.util.Calendar.java (cache): New private static field. Cached
4285 mappings of locales->calendar classes.
4286 (ctorArgTypes): New private static field. Singleton argument for
4287 calendar class constructor lookup.
4288 (getInstance): Cache Locale->Calendar class mappings using HashMap.
4289 Optimize by bypassing reflection instantiation for the
4290 GregorianCalendar case.
4292 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4294 * java/util/Calendar.java: Use getSystemClassLoader as argument for
4295 ResourceBundle.getBundle() calls.
4296 * java/util/GregorianCalendar.java: Likewise.
4297 * java/util/Currency.java: Likewise.
4298 * java/text/BreakIterator.java: Likewise.
4299 * java/text/Collator.java: Likewise.
4300 * java/text/DateFormat.java: Likewise.
4301 * java/text/DateFormatSymbols.java: Likewise.
4302 * java/text/DecimalFormatSymbols.java: Likewise.
4303 * java/text/NumberFormat.java: Likewise.
4304 * java/awt/Window.java: Likewise.
4306 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4308 * java/util/ResourceBundle.java (bundleCache): Renamed from
4309 resourceBundleCache. Update comments.
4310 (getObject): Don't catch MissingResourceException.
4311 (getBundle(String)): Remove 'final'. Use system classloader if
4312 getCallingClassLoader returned null.
4313 (getBundle(String, Locale)): Likewise.
4314 (BundleKey): New private class. HashMap key for bundle cache lookup.
4315 (lookupKey): New. Singleton instance of BundleKey.
4316 (nullEntry): New. Cache entry to represent failed lookups.
4317 (getBundle(String, Locale, ClassLoader)): Re-written to use new
4318 caching strategy, no-allocation lookup, and new tryBundle methods.
4319 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
4320 name using given classloader.
4321 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
4322 baseName for given Locale and attempt to load bundle.
4324 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4326 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
4327 illegal protected method calls.
4329 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4331 Fix or remove some bogus test cases.
4332 * testsuite/libjava.compile/pr10459_2.java: Removed.
4333 * testsuite/libjava.compile/pr10459.java: Test using its own method,
4335 * testsuite/libjava.compile/inner_data.java: Test against its own
4338 2004-07-09 Michael Koch <konqueror@gmx.de>
4340 * scripts/unicode-muncher.pl: Updated to version 2.1
4341 from GNU classpath. Added some clarifications on where to find the
4342 needed files from www.unicode.org.
4343 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
4344 gnu/gcj/convert/UnicodeData-3.0.0.txt:
4345 Removed, these can directly be downloaded from www.unicode.org if
4347 * gnu/java/lang/CharData.java: Regenerated.
4348 * include/java-chartables.h: Regenerated.
4349 * Makefile.am (ordinary_java_source_files):
4350 Removed gnu/java/lang/CharData.java.
4351 * Makefile.in: Regenerated.
4353 2004-07-09 Michael Koch <konqueror@gmx.de>
4355 * java/security/AccessControlContext.java,
4356 java/security/SecureClassLoader.java:
4359 2004-07-09 Michael Koch <konqueror@gmx.de>
4361 * java/io/ObjectInputStream.java (readFields): Use long datatype
4362 when shifting byte values more then 24 bits left.
4364 2004-07-09 Michael Koch <konqueror@gmx.de>
4366 * java/util/zip/DeflaterOutputStream.java,
4367 java/util/zip/GZIPInputStream.java,
4368 java/util/zip/GZIPOutputStream.java,
4369 java/util/zip/InflaterInputStream.java:
4370 Reformatted. Added javadocs. Reordered all stuff.
4371 Renamed variables to be more clear.
4373 2004-07-09 Michael Koch <konqueror@gmx.de>
4375 * javax/imageio/IIOException.java,
4376 javax/imageio/event/IIOReadProgressListener.java,
4377 javax/imageio/event/IIOReadUpdateListener.java,
4378 javax/imageio/event/IIOReadWarningListener.java,
4379 javax/imageio/event/IIOWriteProgressListener.java,
4380 javax/imageio/event/IIOWriteWarningListener.java:
4382 * Makefile.am: Added new files.
4383 * Makefile.in: Regenerated.
4385 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
4387 * java/text/RuleBasedCollator.java
4388 (mergeRules): Use ArrayList instead of Vector.
4389 (subParseString): likewise.
4390 (parseString): likewise.
4391 (buildCollationVector): likewise.
4392 (getCollationKey): likewise.
4394 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4396 * java/text/DateFormat.java (parse):
4397 Improved javadoc. Improved exception message.
4399 2004-07-09 Mark Wielaard <mark@klomp.org>
4401 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
4402 interrupted() method to clear interupt flag of our Thread.
4404 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4406 * java/nio/Buffer.java,
4407 java/nio/ByteBuffer.java,
4408 java/nio/ByteBufferHelper.java,
4409 java/nio/ByteBufferImpl.java,
4410 java/nio/CharBuffer.java,
4411 java/nio/CharBufferImpl.java,
4412 java/nio/CharViewBufferImpl.java,
4413 java/nio/DirectByteBufferImpl.java,
4414 java/nio/DoubleBuffer.java,
4415 java/nio/DoubleBufferImpl.java,
4416 java/nio/DoubleViewBufferImpl.java,
4417 java/nio/FloatBuffer.java,
4418 java/nio/FloatBufferImpl.java,
4419 java/nio/FloatViewBufferImpl.java,
4420 java/nio/IntBuffer.java,
4421 java/nio/IntBufferImpl.java,
4422 java/nio/IntViewBufferImpl.java,
4423 java/nio/LongBuffer.java,
4424 java/nio/LongBufferImpl.java,
4425 java/nio/LongViewBufferImpl.java,
4426 java/nio/MappedByteBufferImpl.java,
4427 java/nio/ShortBuffer.java,
4428 java/nio/ShortBufferImpl.java,
4429 java/nio/ShortViewBufferImpl.java:
4430 Fixed javadocs all over. Improved input error
4433 * java/nio/Buffer.java
4434 (checkForUnderflow, checkForOverflow, checkIndex,
4435 checkIfReadOnly, checkArraySize): New helper methods
4438 * java/nio/ByteBufferHelper.java
4439 (checkRemainingForRead, checkRemainingForWrite,
4440 checkAvailableForRead, checkAvailableForWrite): Removed
4441 no longer needed methods.
4443 2004-07-09 Michael Koch <konqueror@gmx.de>
4445 * gnu/regexp/CharIndexedInputStream.java:
4446 Reordered imports to match classpath.
4448 2004-07-09 Michael Koch <konqueror@gmx.de>
4450 * gnu/java/awt/EmbeddedWindow.java:
4451 Load native library for setWindowPeer method.
4453 2004-07-08 Randolph Chung <tausq@debian.org>
4455 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
4456 * configure: Regenerate.
4457 * configure.host: Set can_unwind_signal for hppa*-linux.
4458 * include/pa-signal.h: New file.
4460 2004-07-07 Per Bothner <per@bothner.com>
4462 * Makefile.am: Add rules to build libgij from just gij.cc.
4464 * include/jvm.h (namespace jcj): Declare verbose_class_flag
4465 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
4466 (initializeClass): If verbose_class_flag, print message.
4467 * gij.cc (main): Handle -verbose:class flag.
4469 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
4471 * configure.host: Enable hash synchronization on Darwin.
4472 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
4473 ';', since this is a comment on Darwin.
4474 (compare_and_swap_release): Likewise.
4476 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
4478 * java/net/URLStreamHandler.java (parseURL): Canonicalize
4479 file portion of URL in addition to spec for file: protocol.
4481 2004-07-05 Anthony Green <green@redhat.com>
4483 * java/io/File.java (toURI): Merge from Classpath.
4485 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4487 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
4488 before passing to URL constructor. Rethrow any MalformedURLException
4489 as a RuntimeException. Catch MalformedURLException specifically, not
4492 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4494 * java/util/Locale.java (readObject): Intern strings read from object
4497 2004-07-04 Michael Koch <konqueror@gmx.de>
4499 * gnu/gcj/runtime/FirstThread.java,
4500 gnu/gcj/runtime/natFirstThread.cc: Removed.
4501 * gnu/java/lang/MainThread.java,
4502 gnu/java/lang/natMainThread.cc: New files.
4503 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
4504 * Makefile.am: Added new files and removed deleted ones.
4505 * Makefile.in: Regenerated.
4507 2004-07-03 Mark Wielaard <mark@klomp.org>
4508 Anthony Green <green@redhat.com>
4510 * java/net/URL.java (getFile): Clarify return value doc.
4511 (getPath): Return null if file is empty - not empty String.
4512 (set): Convert protocol to lower case before doing anything.
4513 Only change the protocol handler if it's different.
4515 2004-07-03 Anthony Green <green@redhat.com>
4517 * java/net/URL.java (URL): Convert protocol to lower case before
4518 doing anything, so we getURLStreamHandler() with the proper value.
4520 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
4522 * java/util/Locale.java (hashcode): Made transient.
4523 (hashCode): No longer synchronized.
4524 (equals): Remove comment.
4525 (writeObject): No longer synchronized. Implement using writeObject
4526 calls instead of tweaking hashCode field. Update doc.
4527 (readObject): Implement using readObject calls.
4529 2004-06-26 Geoffrey Keating <geoffk@apple.com>
4530 Andreas Tobler <a.tobler@schweiz.ch>
4532 * configure.host (powerpc-*-darwin*): New case, define
4534 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
4535 * configure: Regenerate.
4536 * include/darwin-signal.h: New.
4538 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
4540 * java/beans/Statement.java (doExecute): Fix formatting.
4542 2004-06-29 Per Bothner <per@bothner.com>
4544 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
4545 etc etc): Remove needless parenthesis, which causes __stdcall__
4546 attribute on MinGW to get ignored.
4548 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
4550 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
4552 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
4554 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
4556 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
4558 * java/beans/Expression.java: New file.
4559 * java/beans/Statement.java: New file.
4560 * Makefile.am: Added new files.
4561 * Makefile.in: Re-generate.
4563 2004-06-27 Mark Wielaard <mark@klomp.org>
4565 * java/io/FilePermission.java (usingPerms): Removed.
4566 (actionsString): Made final.
4567 (cachePerms): Renamed to checkPerms.
4568 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
4570 (FilePermission): Check arguments, call checkPerms().
4571 (equals): Remove cachePerms() call.
4572 (implies): Likewise.
4574 2004-06-27 Mark Wielaard <mark@klomp.org>
4576 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
4578 (sendRequest): Use new field in user-agent http agent.
4580 2004-06-27 Mark Wielaard <mark@klomp.org>
4582 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
4583 when argument is null.
4585 2004-06-26 Mark Wielaard <mark@klomp.org>
4587 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
4588 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
4590 (cancel_clicked): Likewise.
4592 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
4594 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
4595 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
4596 can not calculate the right value.
4597 (dpi_changed_cb): Likewise. Mark *pspec as unused.
4599 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
4601 * testsuite/libjava.jacks/jacks.xfail: Remove
4602 15.9.1-qualified-concrete-20.
4604 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4606 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
4607 encoding name to iconv.
4608 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4610 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4613 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
4614 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
4615 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4617 2004-06-21 Andrew Haley <aph@redhat.com>
4619 * java/io/ObjectOutputStream.java: Add DEBUG statements
4621 (dumpElementln): New method.
4623 * java/io/ObjectInputStream.java
4624 (currentClassLoader): Make native.
4625 (callersClassLoader): New field.
4627 (readObject): ENDBLOCKDATA is generated if the class has a write
4628 method, not if it has a read method.
4629 (readObject): Save and restore this.currentObject and
4630 this.currentObjectStreamClass around calls to callReadMethod().
4631 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
4634 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
4636 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
4639 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4641 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
4642 if desired, before the default class loader is initialised.
4643 Call INIT_SEGV only if HANDLE_SEGV is defined.
4645 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4647 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
4648 directory only if it actually exists.
4650 2004-06-18 Graydon Hoare <graydon@redhat.com>
4652 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4653 Fix up non-ansi comments.
4655 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4657 * javax/swing/text/AbstractDocument.java: Adding missing import
4658 for javax.swing.event.EventListenerList.
4659 * javax/swing/text/DefaultCaret.java: Likewise.
4661 2004-06-17 Michael Koch <konqueror@gmx.de>
4663 * javax/swing/JToolBar.java
4665 (JToolBar): Use Component.setName(String) instead of doing it all
4667 * javax/swing/Timer.java
4668 (queueEvent): Added missing modifier.
4670 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
4672 * Makefile.am: Added new file.
4673 * Makefile.in: Re-generate.
4674 * javax/swing/JMenu.java:
4675 (insertSeparator): Implemented.
4676 * javax/swing/JPopupMenu.java:
4677 (JPopupMenu.Separator): Implemented.
4678 * javax/swing/MenuSelectionManager.java:
4679 (processMouseEvent): Use java.awt.Component
4680 for event source instead of javax.swing.JComponent.
4681 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
4682 New File. Implemented.
4684 2004-06-16 David Jee <djee@redhat.com>
4686 * java/awt/GridBagLayout.java
4687 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
4688 Make sure pos_x and pos_y are never negative.
4690 2004-04-16 Andrew Overholt <overholt@redhat.com>
4692 * Makefile.am: Add new file.
4693 * Makefile.in: Re-generate.
4694 * javax/swing/JToolBar.java
4695 Partially implemented.
4696 * javax/swing/plaf/basic/BasicToolBarUI.java
4697 New file. Partially implemented.
4699 2004-06-16 Graydon Hoare <graydon@redhat.com>
4701 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
4702 (setComposite): Accept AlphaComposite arguments.
4703 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
4704 (createBufferedImage): Add new overloads.
4705 * gnu/java/awt/peer/gtk/GtkToolkit.java
4706 (createImage): Use GdkPixbufDecoder.createBufferedImage
4707 when useGraphics2D() is true.
4708 (getImage): Delegate to createImage.
4709 * javax/swing/JList.java
4711 (getFirstVisibleIndex):
4712 (getLastVisibleIndex):
4714 (ensureIndexIsVisible): New methods.
4715 * javax/swing/Timer.java: Reimplement.
4717 2004-06-16 Michael Koch <konqueror@gmx.de>
4719 * javax/swing/text/AbstractDocument.java
4720 (AbstracElement): Made public, implements java.io.Serializable.
4721 (AttributeContext): Made public.
4722 (BranchElement): Likewise.
4723 (Content): Likewise.
4724 (DefaultDocumentEvent): Made public, extends
4725 javax.swing.undo.CompoundEdit.
4726 (ElementEdit): Made public, extends
4727 javax.swing.undo.AbstractUndoableEdit.
4728 (LeafElement): Made public.
4729 (LeafElement.LeafElement): Made public.
4731 2004-06-16 Michael Koch <konqueror@gmx.de>
4733 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
4734 methods (that were obviously never be intended to get included hi this
4735 class. Added some methods too.
4737 2004-06-16 Michael Koch <konqueror@gmx.de>
4739 * javax/swing/text/PlainDocument.java
4740 (serialVersionUID): New constant.
4741 (lineLimitAttribute): Likewise.
4742 (tabSizeAttribute): Likewise.
4743 (tabSize): New field.
4744 (PlainDocument): Made public.
4745 (PlainDocument): New constructor.
4747 2004-06-16 Michael Koch <konqueror@gmx.de>
4749 * javax/swing/text/AbstractDocument.java
4750 (insertString): Throws BadLocationException.
4751 * javax/swing/text/Document.java
4752 (insertString): Likewise.
4753 * javax/swing/text/JTextComponent.java:
4754 Javadocs and comments cleaned up.
4756 2004-06-16 Michael Koch <konqueror@gmx.de>
4758 * javax/swing/event/UndoableEditListener.java: Reformatted.
4759 * javax/swing/text/AbstractDocument.java
4760 (AbstractDocument): Implements java.io.Serializable.
4761 (doc_list): Removed.
4762 (undo_list): Removed.
4763 (AbstractElement.serialVerionUID): New field.
4764 (BranchElement.serialVerionUID): Likewise.
4765 (DefaultDocumentEvent.serialVerionUID): Likewise.
4766 (ElementEdit.serialVerionUID): Likewise.
4767 (LeafElement.serialVerionUID): Likewise.
4768 (serialVerionUID): Likewise.
4769 (BAD_LOCATION): New constant.
4770 (BidiElementName): Likewise.
4771 (ContentElementName): Likewise.
4772 (ParagraphElementName): Likewise.
4773 (SectionElementName): Likewise.
4774 (ElementNameAttribute): Likewise.
4775 (AbstractDocument): Made protected.
4776 (AbstractDocument): New construtor.
4777 (listenerList): New field.
4778 (fireChangedUpdate): Implemented.
4779 (fireInsertUpdate): Likewise.
4780 (fireRemoveUpdate): Likewise.
4781 (fireUndoableEditUpdate): Likewise.
4782 (getListeners): Likewise.
4783 (addDocumentListener): Likewise.
4784 (removeDocumentListener): Likewise.
4785 (addUndoableEditListener): Likewise.
4786 (removeUndoableEditListener): Likewise.
4787 (getDocumentListeners): New method.
4788 (getUndoableEditListeners): Likewise.
4789 (getAsynchronousLoadPriority): Made public.
4790 (getBidiRootElement): Likewise.
4791 (setAsynchronousLoadPriority): Likewise.
4792 (setDocumentProperties): Likewise.
4793 * javax/swing/text/BadLocationException.java
4794 (serialVerionUID): New field.
4795 * javax/swing/text/DefaultCaret.java
4796 (changeEvent): New field.
4797 (listenerList): Likewise.
4799 (addChangeListener): Reimplemented.
4800 (removeChangeListener): Likewise.
4801 (getListeners): New method.
4802 (getChangeListeners): Likwise.
4803 (getComponent): Likewise.
4804 * javax/swing/text/GapContent.java
4805 (GapContent): Implements java.io.Serializable.
4806 (serialVerionUID): New field.
4808 2004-06-16 Michael Koch <konqueror@gmx.de>
4810 * javax/swing/JTree.java
4811 (treeModel): New field.
4812 (JTree): New constructors, one existing one made public.
4813 (createTreeModel): New method.
4814 (addTreeExpansionListener): Likewise.
4815 (removeTreeExpansionListener): Likewise.
4816 (getTreeExpansionListeners): Likewise.
4817 (fireTreeCollapsed): Likewise.
4818 (fireTreeExpanded): Likewise.
4819 (addTreeSelectionListener): Likewise.
4820 (removeTreeSelectionListener): Likewise.
4821 (getTreeSelectionListeners): Likewise.
4822 (fireValueChanged): Likewise.
4823 (addTreeWillExpandListener): Likewise.
4824 (removeTreeWillExpandListener): Likewise.
4825 (getTreeWillExpandListeners): Likewise.
4826 (fireTreeWillCollapse): Likewise.
4827 (fireTreeWillExpand): Likewise.
4829 2004-06-16 Michael Koch <konqueror@gmx.de>
4831 * javax/swing/JTree.java: Reformatted.
4833 2004-06-16 Michael Koch <konqueror@gmx.de>
4835 * javax/swing/JTextArea.java: New file.
4836 * javax/swing/JTextField.java
4838 (notifyAction): New constant.
4839 (columns): New field.
4840 (JTextField): New constructors.
4841 (createDefaultModel): New method.
4842 (addActionListener): Reimplmemented.
4843 (removeActionListener): Reimplemented.
4844 (getActionListeners): New method.
4845 (fireActionPerformed): New method.
4846 (getColumns): New method.
4847 (setColumne): New method.
4848 * javax/swing/text/JTextComponent.java
4849 (AccessibleJTextComponent.serialVersionUID): New field.
4850 (serialVersionUID): Likewise.
4851 (DEFAULT_KEYMAP): Likewise.
4852 (FOCUS_ACCELERATOR_KEY): Likewise.
4853 (doc): Made private.
4854 (icon_gap): Likewise.
4857 (JTextComponent): Some constructors removed.
4858 (getScrollableTracksViewportHeight): New method.
4859 (getScrollableTracksViewportWidth): Likewise.
4860 * Makefile.am: Added javax/swing/JTextArea.java.
4861 * Makefile.in: Regenerated.
4863 2004-06-15 Graydon Hoare <graydon@redhat.com>
4865 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
4866 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
4867 * javax/swing/JViewport.java
4868 (getExtentSize): Return size rather than preferred size.
4869 (toViewCoordinates): New methods.
4870 (getViewSize): Return size rather than preferred size.
4871 (setViewSize): Note view size as set.
4872 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
4873 * javax/swing/plaf/basic/BasicScrollBarUI.java
4874 (getPreferredSize): Don't redo layout.
4875 * javax/swing/plaf/basic/BasicViewportUI.java
4876 (paint): Translate image properly and eat exceptions.
4878 2004-06-15 Kim Ho <kho@redhat.com>
4880 * javax/swing/JTabbedPane.java
4881 (setComponent): Remove old component and
4883 (setSelectedIndex): Don't operate on the
4884 components if they're null. Don't set index
4885 on the model if the index is the same.
4886 (insertTab): Don't add or hide the component
4887 if it's null. Repaint the container.
4888 * javax/swing/plaf/basic/BasicLookAndFeel.java
4889 Change colors for TabbedPane.
4890 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
4891 (mousePressed): Re-layout and paint the component.
4892 (layoutContainer): Don't set location on the view.
4893 (ScrollingViewport::paint): Remove.
4895 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
4897 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4898 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
4900 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
4901 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
4902 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
4904 (drawLine): Call gdk_flush before leaving GDK critical region.
4905 (fillRect): Likewise.
4906 (drawRect): Likewise.
4907 (copyArea): Likewise.
4908 (copyPixmap): Likewise.
4909 (clearRect): Likewise.
4910 (drawArc): Likewise.
4911 (drawPolyline): Likewise.
4912 (drawPolygon): Likewise.
4913 (fillPolygon): Likewise.
4914 (fillArc): Likewise.
4915 (drawOval): Likewise.
4916 (fillOval): Likewise.
4918 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
4920 (GdkFontMetrics): Add style argument to initState call.
4921 (stringWidth(String,int,int,String)): Add style parameter.
4922 (stringWidth(String)): Add style argument to stringWidth call.
4923 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
4924 (initState): Set pango font style and weight based on AWT style
4925 parameter. Pass default GTK language to
4926 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
4927 simply dividing by PANGO_SCALE.
4928 (stringWidth): Set pango font style and weight based on AWT style
4931 * java/awt/Button.java (next_button_number): New field.
4932 (paramString): Change output.
4933 (generateName): New method.
4934 (getUniqueLong): New method.
4936 2004-06-14 Kim Ho <kho@redhat.com>
4938 * javax/swing/JTabbedPane.java:
4939 (setComponentAt): Set the component, not
4941 * javax/swing/plaf/basic/BasicDesktopIconUI.java
4942 (actionPerformed): Let deiconize catch exception.
4944 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4946 * javax/swing/JPopupMenu.java:
4947 (setVisible): Corrected location of a
4948 heavyweight popup menu.
4950 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4952 * javax/swing/MenuSelectionManager.java:
4953 Ran through jalopy to fix formatting style.
4955 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4957 * javax/swing/JLayeredPane.java:
4958 (remove): Revalidate and repaint layered pane after
4959 the component was removed.
4960 javax/swing/JMenu.java:
4961 (setVisible): Display popup menu at the user location,
4962 if one was set by the user.
4963 (setMenuLocation): Reimplemented. Fixed javadoc.
4964 * javax/swing/JMenuBar.java: Added javadoc.
4965 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
4966 (MODEL_CHANGED_PROPERTY): New Property.
4967 (isSelected): Implemented.
4968 (setBorderPainted): Fire PropertyChangeEvent
4969 if paintBorder property changes.
4970 (setSelected): Implemented.
4971 (setSelectionModel): Implemented.
4972 * javax/swing/JPopupMenu.java: Added Javadoc
4973 (pack): Implemented.
4974 (setVisible): Reimplemented.
4975 (show): Fixed location.
4976 (JPopupMenu.LigthWeightPopup): Reimplemented to use
4977 Container instead of JPanel.
4978 * javax/swing/MenuSelectionManager.java: Added Javadocs.
4979 (clearSelectedPath): Reimplemented to clear selectedPath
4981 (processMouseEvent): Reimplemented.
4982 (setSelectedPath): Fire stateChange event indicating that
4983 selected menu path has changed.
4984 (getPath): Change to use ArrayList instead of Vector.
4985 * javax/swing/plaf/basic/BasicMenuBarUI.java:
4986 (installUI): call installKeyboardActions().
4987 (uninstallUI): call uninstallKeyboardActions().
4989 2004-06-13 Michael Koch <konqueror@gmx.de>
4991 * javax/swing/text/DefaultCaret.java,
4992 javax/swing/text/BadLocationException.java:
4995 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
4997 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
4998 DEFAULT_COLS): New variables.
4999 (create): Don't allow 0 rows or 0 columns. Instead, set the
5000 values to DEFAULT_ROWS or DEFAULT_COLS.
5001 (getMinimumSize): Likewise.
5002 (getPreferredSize): Likewise.
5003 (minimumSize): Likewise.
5004 (preferredSize): Likewise.
5005 (create): Set peer's editable state.
5006 * java/awt/TextArea.java (TextArea()): Set rows and columns to
5007 zero. Update javadocs.
5008 (TextArea(String)): Likewise.
5009 (TextArea(int,int)): Fix javadocs.
5010 (TextArea(String,int,int,int)): Only throw exception if one of
5011 rows or columns is zero. Fix javadocs.
5013 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
5015 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
5016 addition to Components.
5018 * java/awt/MenuItem.java (dispatchEventImpl): If the event
5019 wasn't consumed by normal processing, send it to the parent
5022 * gnu/java/awt/peer/gtk/GtkImagePainter.java
5023 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
5026 2004-06-11 David Jee <djee@redhat.com>
5028 * java/awt/MediaTracker.java
5029 (addImage(Image,int)): Call imageUpdate() to udpate image status.
5030 (addImage(Image,int,int,int)): Likewise.
5032 2004-06-11 Michael Koch <konqueror@gmx.de>
5034 * javax/swing/text/AbstractDocument.java,
5035 javax/swing/text/Document.java,
5036 javax/swing/text/GapContent.java,
5037 javax/swing/text/JTextComponent.java,
5038 javax/swing/text/PlainDocument.java:
5041 2004-06-11 Michael Koch <konqueror@gmx.de>
5043 * javax/swing/JRootPane.java
5044 (AccessibleJRootPane.serialVersionUID): New field.
5045 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
5046 (AccessibleJRootPane.getAccessibleRole): New method.
5047 (RootLayout): Implements Serializable.
5048 (RootLayout.serialVersionUID): New field.
5049 (RootLayout.RootLayout): New constructor.
5050 (setJMenuBar): Made public.
5051 (getJMenuBar): Likewise.
5052 (JRootPane): Likewise.
5053 (createContentPane): Likewise.
5054 (createGlassPane): Likewise.
5055 (createLayeredPane): Likewise.
5057 2004-06-11 Michael Koch <konqueror@gmx.de>
5059 * javax/swing/SwingUtilities.java
5060 (isLeftMouseButton): Fixed javadoc.
5061 (isMiddleMouseButton): Likewise.
5062 (isRightMouseButton): Likewise.
5064 2004-06-11 Michael Koch <konqueror@gmx.de>
5066 * javax/swing/JScrollPane.java
5067 (serialVersionUID): New field.
5068 (columnHeader): Made protected.
5069 (rowHeader): Likewise.
5070 (lowerLeft): Likewise.
5071 (lowerRight): Likewise.
5072 (upperLeft): Likewise.
5073 (upperRight): Likewise.
5074 (horizontalScrollBar): Likewise.
5075 (horizontalScrollBarPolicy): Likewise.
5076 (verticalScrollBar): Likewise.
5077 (verticalScrollBarPolicy): Likewise.
5078 (viewport): Likewise.
5080 2004-06-11 Michael Koch <konqueror@gmx.de>
5082 * javax/swing/LookAndFeel.java: Fixed javadocs.
5084 2004-06-11 Michael Koch <konqueror@gmx.de>
5086 * javax/swing/JEditorPane.java: Fixed javadocs.
5087 (JEditorPane): Removed redundant call to to this().
5088 (fireHyperlinkUpdate): Implemented.
5090 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5092 * javax/swing/JMenu.java: Fixed file name
5093 in the file comment.
5095 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5097 * javax/swing/JMenu.java: Added javadoc.
5098 (JMenu): Added MenuChangeListener to listen to
5099 ChangeEvents occuring in menu's model.
5100 (insert): Throw IllegalArgumentException if
5101 index is less than 0
5102 (setSelected): Reimplement.
5103 (setPopupMenuVisible): Call menu's model isEnabled()
5104 (setDelay): Throw IllegalArgumentException if
5105 given amount of delay is less than 0.
5106 (createActionComponent): Implemented.
5107 (createActionChangeListener): Implemented.
5108 (addSeparator): Implemented.
5109 (getItem): Throw IllegalArgumentException if index is
5111 (getItemCount): Implemented.
5112 (fireMenuSelected): Changed to use menuEvent.
5113 (fireMenuDeselected): Likewise.
5114 (fireMenuCanceled): Likewise.
5115 (setAccelerator): Changed to throw an error if this
5117 (doClick): Implemented.
5118 (JMenu.ActionChangedListener): New inner class to handle
5119 PropertyChangeEvents occuring in the actions associated with menu.
5120 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
5121 (BasicMenuUI): Added PropertyChangeListener to the menu.
5122 (createChangeListener): Implemented.
5123 (createMenuDragMouseListener): Likewise.
5124 (createMenuKeyListener): Likewise.
5125 (createPropertyChangeListener): Likewise.
5126 (uninstallListeners): Likewise.
5127 (BasicMenuUI.MouseInputHandler): Reimplemented.
5128 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
5129 (BasicMenuUI.ChangeHandler): Likewise.
5130 (BasicMenuUI.MenuDragMouseHandler): Likewise.
5131 (BasicMenuUI.MenuKeyHandler): Likewise.
5133 2004-06-10 David Jee <djee@redhat.com>
5135 * java/awt/MediaTracker.java
5136 (imageUpdate): Only do notifyAll() if the image is complete.
5138 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5140 * javax/swing/JApplet.java:
5141 (getJMenuBar): Made public.
5142 (setJMenuBar): Likewise.
5143 * javax/swing/JFrame.java:
5144 (getJMenuBar): Made public.
5145 (setJMenuBar): Likewise.
5146 * javax/swing/JWindow.java:
5147 (getJMenuBar): Removed.
5148 (setJMenuBar): Removed.
5150 2004-06-10 Michael Koch <konqueror@gmx.de>
5152 * javax/swing/JEditorPane.java
5153 (createEditorKitForContentType): Fixed visibility.
5154 (fireHyperlinkUpdate): Likewise.
5155 (getContentType): Likewise.
5156 (getEditorKit): Likewise.
5157 (getEditorKitForContentType): Likewise.
5158 (getPage): Likewise.
5160 (registerEditorKitForContentTyoe): Likewise.
5161 (replaceSelection): Likewise.
5162 (setContentType): Likewise.
5163 (setEditorKit): Likewise.
5164 (setPage): Likewise.
5166 2004-06-10 Michael Koch <konqueror@gmx.de>
5168 * javax/swing/Timer.java
5169 (Timer): New constructor.
5170 * javax/swing/plaf/basic/BasicProgressBarUI.java
5171 (animationTimer): Don't initialize at construction.
5172 (startAnimationTimer): Added since tag.
5173 (stopAnimationTimer): Likewise.
5174 (installUI): Use new Timer constructor.
5175 * javax/swing/plaf/basic/BasicScrollBarUI.java
5176 (installUI): Likewise.
5177 * javax/swing/plaf/basic/BasicSliderUI.java
5178 (installUI): Likewise.
5180 2004-06-10 Michael Koch <konqueror@gmx.de>
5182 * javax/swing/ButtonGroup.java
5183 (serialVersionUID): Made private.
5184 (buttons): Renamed from v, added javadoc.
5185 (sel): Added javadoc.
5186 (ButtonGroup): Likewise.
5189 (getElements): Likewise.
5190 (getSelection): Likewise.
5191 (setSelected): Likewise.
5192 (isSelected): Likewise.
5193 (getButtonCount): Likewise.
5195 2004-06-10 Michael Koch <konqueror@gmx.de>
5197 * javax/swing/ButtonGroup.java,
5198 javax/swing/ImageIcon.java,
5199 javax/swing/JEditorPane.java,
5200 javax/swing/JRootPane.java,
5201 javax/swing/JTextField.java,
5202 javax/swing/LookAndFeel.java,
5203 javax/swing/plaf/basic/BasicTextUI.java:
5206 2004-06-10 Michael Koch <konqueror@gmx.de>
5208 * javax/swing/text/Style.java: Added javadocs.
5210 2004-06-10 Michael Koch <konqueror@gmx.de>
5212 * javax/swing/JComponent.java
5213 (fireVetoableChange): Removed redundant cast.
5214 * javax/swing/JLabel.java
5215 (getDisabledIcon): Save icon for next call.
5217 2004-06-10 Michael Koch <konqueror@gmx.de>
5219 * javax/swing/KeyStroke.java
5220 (getKeyStroke(char,boolean)): Marked deprecated.
5222 2004-06-10 Michael Koch <konqueror@gmx.de>
5224 * javax/swing/DefaultCellEditor.java,
5225 javax/swing/GrayFilter.java,
5226 javax/swing/event/DocumentEvent.java,
5227 javax/swing/text/JTextComponent.java,
5228 javax/swing/text/MutableAttributeSet.java:
5231 2004-06-10 Michael Koch <konqueror@gmx.de>
5233 * javax/swing/plaf/BorderUIResource.java:
5234 Added serialVersionUID all over.
5236 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
5238 * javax/swing/undo/UndoManager.java: Re-written from scratch.
5240 2004-06-10 Michael Koch <konqueror@gmx.de>
5242 * javax/swing/table/DefaultTableCellRenderer.java
5243 (noFocusBorder): Initialize directly.
5245 2004-06-10 Michael Koch <konqueror@gmx.de>
5247 * javax/swing/plaf/basic/BasicArrowButton.java
5248 (setDirection): Use method argument.
5250 2004-06-10 Michael Koch <konqueror@gmx.de>
5252 * javax/swing/plaf/BorderUIResource.java,
5253 javax/swing/plaf/ComponentUI.java,
5254 javax/swing/undo/CompoundEdit.java,
5255 javax/swing/undo/StateEdit.java:
5256 Fixed javadocs all over.
5258 2004-06-10 Michael Koch <konqueror@gmx.de>
5260 * javax/swing/DefaultButtonModel.java
5261 (ARMED): Made public final, fixed value.
5262 (ENABLED): Likewise.
5263 (PRESSED): Likewise.
5264 (ROLLOVER): Likewise.
5265 (SELECTED): Likewise.
5266 (stateMask): Initialize directly.
5267 (listenerList): Likewise.
5268 (mnemonic): Likewise.
5269 (fireStateChanged): Removed argument, use changeEvent as event.
5270 All places where this method is called are fixed too.
5271 (getActionCommant): Fixed javadoc.
5272 (setGroup): Fixed javadoc.
5273 (getGroup): New method.
5275 2004-06-09 Olga Rodimina <rodimina@redhat.com>
5277 * javax/swing/AbstractButton.java
5278 (AbstractButton): Use init() to initialize the button.
5279 (init): New Method. Initializes AbstractButton.
5280 * javax/swing/JMenuItem.java: Documented.
5281 (JMenuItem): Reimplemented.
5282 (init): Implemented.
5283 (setEnabled): Changed to call super.setEnabled()
5284 (processMouseEvent): Reimplemented.
5285 (fireMenuKeyPressed): Implemented.
5286 (fireMenuKeyReleased): Implemented.
5287 (fireMenuKeyTyped): Implemented.
5288 (menuSelectionChanged): disarm the model if the menu item was
5290 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
5291 (getPath): Change to use ArrayList instead of Vector.
5292 (getPreferredSize): Renamed variable.
5293 (paintMenuItem): Paint margin area of menu item.
5294 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
5295 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
5296 menu item's bounds before clearing the selection.
5298 2004-06-09 David Jee <djee@redhat.com>
5300 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
5301 (GtkTextComponentPeer): Set caret position to 0.
5302 * java/awt/TextComponent.java
5303 (setText): Set caret position to 0.
5304 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5305 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
5306 Handle GtkScrolledWindow separately. Fix signal handler blocking.
5307 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
5309 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5310 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
5313 2004-06-09 Kim Ho <kho@redhat.com>
5315 * Makefile.am: New files
5316 * Makefile.in: Regenerated
5317 * java/awt/Container.java
5318 (getComponentAt): Removed.
5319 * javax/swing/AbstractAction.java
5320 (ENABLED_PROPERTY): New property.
5321 (putValue): Fire PropertyChangeEvents.
5322 (setEnabled): ditto.
5323 (firePropertyChange): Javadoc and implement
5325 * javax/swing/AbstractButton.java
5326 (setAction): Don't create PropertyChangeListener
5327 if new Action is null.
5328 (setIcon): Don't set icon till after comparing
5330 (configurePropertiesFromAction): Check mnemonic
5331 key before calling intValue().
5332 (createActionPropertyChangeListener): Check
5333 properties rather than bulk change.
5334 * javax/swing/DefaultDesktopManager.java:
5336 * javax/swing/DesktopManager.java:
5338 * javax/swing/JComponent.java
5339 (fireVetoableChange): Implement.
5340 (paintImmediately): Use root component.
5341 * javax/swing/JDesktopPane.java: Implement
5342 * javax/swing/JInternalFrame.java: Implement
5343 * javax/swing/JLabel.java
5344 (getDisabledIcon): Return grayscaled icon if
5345 no disabled icon specified.
5346 * javax/swing/JMenuBar.java
5347 (getComponentAtIndex): Use getComponent
5348 * javax/swing/JOptionPane.java
5349 (getDesktopPaneForComponent): Use SwingUtilities'
5351 (getFrameForComponent): ditto.
5352 * javax/swing/JSplitPane.java
5353 (remove): Use getComponent.
5354 * javax/swing/SwingUtilities.java
5355 (convertPoint): Implement.
5356 * javax/swing/plaf/basic/BasicButtonUI.java
5357 (paintButtonNormal): Check opaqueness before
5359 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
5361 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
5363 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
5365 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
5367 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5368 Change InternalFrame and Desktop colors.
5370 2004-06-09 David Jee <djee@redhat.com>
5372 * java/awt/Container.java
5373 (remove): Do not set component to invisible.
5375 2004-06-09 Michael Koch <konqueror@gmx.de>
5377 * javax/swing/tree/DefaultMutableTreeNode.java
5378 (getLeafCount): Renamed enum to e.
5380 2004-06-09 Michael Koch <konqueror@gmx.de>
5382 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5383 (positionForMouseEvent): Removed redundant semicolon.
5384 (continueDrag): Use method arguments.
5386 2004-06-09 Michael Koch <konqueror@gmx.de>
5388 * javax/swing/border/TitledBorder.java,
5389 javax/swing/filechooser/FileSystemView.java,
5390 javax/swing/plaf/basic/BasicButtonListener.java,
5391 javax/swing/plaf/basic/BasicGraphicsUtils.java,
5392 javax/swing/plaf/basic/BasicLabelUI.java,
5393 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
5394 javax/swing/plaf/basic/BasicScrollBarUI.java,
5395 javax/swing/plaf/basic/BasicScrollPaneUI.java,
5396 javax/swing/plaf/basic/BasicSliderUI.java,
5397 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
5398 javax/swing/plaf/basic/BasicToggleButtonUI.java,
5399 javax/swing/table/JTableHeader.java,
5400 javax/swing/text/AbstractDocument.java,
5401 javax/swing/text/DefaultCaret.java,
5402 javax/swing/text/StyledEditorKit.java,
5403 javax/swing/tree/DefaultTreeCellEditor.java:
5404 Reworked import statements.
5406 2004-06-08 Graydon Hoare <graydon@redhat.com>
5408 * javax/swing/Box.java: Temporarily comment out code
5409 broken due to visibility bug.
5411 2004-06-09 Michael Koch <konqueror@gmx.de>
5413 * javax/swing/ImageIcon.java
5414 (ImageIcon): Added missing constructor.
5416 2004-06-08 Michael Koch <konqueror@gmx.de>
5418 * javax/swing/JToggleButton.java
5419 (JToggleButton): New constructor.
5420 (getAccessibleContext): Moved documentation into javadoc.
5421 (getUIClassID): Likewise.
5423 2004-06-08 Michael Koch <konqueror@gmx.de>
5425 * javax/swing/AbstractButton.java
5426 (getDisabledIcon): Create disabled icon if none exists yet.
5428 2004-06-08 Michael Koch <konqueror@gmx.de>
5430 * javax/swing/plaf/basic/BasicLookAndFeel.java
5431 (initClassDefaults): Added FormattedTextFieldUI.
5432 (loadResourceBundle): Renamed enum to e.
5434 2004-06-08 Michael Koch <konqueror@gmx.de>
5436 * javax/swing/plaf/basic/BasicButtonUI.java
5437 (paintIcon): Simplified.
5438 (paintText): Paint disabled button correctly.
5440 2004-06-08 Michael Koch <konqueror@gmx.de>
5442 * javax/swing/JComponent.java
5443 (createToolTip): Use official JToolTip API.
5445 2004-06-08 Michael Koch <konqueror@gmx.de>
5447 * javax/swing/JToolTip.java
5448 (JToolTip): No arguments in API.
5449 (setTipText): New method.
5451 2004-06-08 Michael Koch <konqueror@gmx.de>
5453 * javax/swing/SwingUtilities.java
5454 (isLeftMouseButton): New method.
5455 (isMiddleMouseButton): New method.
5456 (isRightMouseButton): New method.
5458 2004-06-08 Michael Koch <konqueror@gmx.de>
5460 * javax/swing/AbstractButton.java,
5461 javax/swing/CellRendererPane.java,
5462 javax/swing/JCheckBoxMenuItem.java,
5463 javax/swing/JColorChooser.java,
5464 javax/swing/JComboBox.java,
5465 javax/swing/JComponent.java,
5466 javax/swing/JDesktopPane.java,
5467 javax/swing/JFileChooser.java,
5468 javax/swing/JMenu.java,
5469 javax/swing/JMenuItem.java,
5470 javax/swing/JOptionPane.java,
5471 javax/swing/JPasswordField.java,
5472 javax/swing/JPopupMenu.java,
5473 javax/swing/JProgressBar.java,
5474 javax/swing/JRadioButtonMenuItem.java,
5475 javax/swing/JScrollBar.java,
5476 javax/swing/JSeparator.java,
5477 javax/swing/JSlider.java,
5478 javax/swing/JSplitPane.java,
5479 javax/swing/JTabbedPane.java,
5480 javax/swing/JTextField.java,
5481 javax/swing/JToolBar.java,
5482 javax/swing/text/JTextComponent.java:
5483 Fixed all constructors of accessibility classes.
5485 2004-06-08 Michael Koch <konqueror@gmx.de>
5487 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
5490 2004-06-08 Michael Koch <konqueror@gmx.de>
5492 * javax/swing/Box.java
5493 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
5494 (AccessibleBoxFiller.serialVersionUID): New member variable.
5495 * javax/swing/DefaultButtonModel.java
5496 (stateMask): Made protected.
5497 (listenerList): Likewise.
5498 (changeEvent): Likewise.
5500 (mnemonic): Likewise.
5501 (actionCommand): Likewise.
5502 (getListeners): New method.
5503 (getActionListeners): New method.
5504 (getItemListeners): New method.
5505 (getChangeListeners): New method.
5506 (fireItemStateChanged): Simplified.
5507 (fireActionPerformed): Simplified.
5508 (fireStateChanged): Simplified.
5509 * javax/swing/JFrame.java
5510 (JFrame): Implements WindowContants.
5511 (HIDE_ON_CLOSE): Removed.
5512 (EXIT_ON_CLOSE): Removed.
5513 (DISPOSE_ON_CLOSE): Removed.
5514 (DO_NOTHING_ON_CLOSE): Removed.
5515 (processWindowEvent): Exit with code 0.
5516 (setDefaultCloseOperation): Do security check before setting value.
5517 * javax/swing/JOptionPane.java
5518 (message): Initialize only in constructor.
5519 * javax/swing/JToolTip.java: Removed unused imports.
5520 * javax/swing/JViewport.java
5521 (serialVersionUID): New member variable.
5522 (SIMPLE_SCROLL_MODE): Made final, fixed value.
5523 (BLIT_SCROLL_MODE): Likewise.
5524 (BACKINGSTORE_SCROLL_MODE): Likewise.
5525 (scrollUnderway): Made protected.
5526 (isViewSizeSet): Likewise.
5527 * javax/swing/ListModel.java: Fixed javadoc.
5528 * javax/swing/Popup.java: Likewise.
5529 * javax/swing/RepaintManager.java
5530 (paintDirtyRegions): Don't use internal classes of
5531 java.util.AbstractMap.
5532 * javax/swing/ScrollPaneConstants.java: Reindented.
5533 * javax/swing/ScrollPaneLayout.java
5534 (viewport): Made protected.
5535 (verticalScrollBar): Made protected, renamed to vsb.
5536 (horizontalScrollBar): Made protected, renamed to hsb.
5537 (rowHeader): Made protected, renamed to rowHead.
5538 (columnHeader): Made protected, renamed to colHead.
5539 (lowerLeft): Made protected.
5540 (lowerRight): Made protected.
5541 (upperLeft): Made protected.
5542 (upperRight): Made protected.
5543 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
5544 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
5546 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
5548 * java/awt/MediaTracker.java (imageUpdate): Only set status to
5549 LOADING if flags has SOMEBITS set.
5551 2004-06-07 Michael Koch <konqueror@gmx.de>
5553 * javax/swing/AbstractButton.java: Reorganized imports.
5554 * javax/swing/ActionMap.java: Likewise.
5555 * javax/swing/DefaultButtonModel.java: Likewise.
5556 * javax/swing/DefaultListModel.java: Likewise.
5557 * javax/swing/ImageIcon.java: Likewise.
5558 (serialVersionUID): New member variable.
5559 * javax/swing/JComboBox.java: Reorganized imports.
5560 * javax/swing/JComponent.java: Likewise.
5561 (ui): Made protected.
5562 (listenerList): Made protected.
5563 (TOOL_TIP_TEXT_KEY): New constant.
5564 (scrollRectToVisible): Removed redundant null check.
5565 * javax/swing/JFrame.java: Reorganized imports.
5566 * javax/swing/JInternalFrame.java: Reorganized imports.
5567 * javax/swing/JProgressBar.java: Likewise.
5568 * javax/swing/JRootPane.java: Likewise.
5569 * javax/swing/JScrollBar.java: Likewise.
5570 * javax/swing/JSeparator.java: Likewise.
5571 * javax/swing/JSlider.java: Likewise.
5572 * javax/swing/JTabbedPane.java: Likewise.
5573 * javax/swing/JTextField.java: Likewise.
5574 * javax/swing/JToolBar.java: Likewise.
5575 * javax/swing/JTree.java: Likewise.
5576 * javax/swing/JViewport.java: Likewise.
5577 * javax/swing/JWindow.java: Likewise.
5578 * javax/swing/KeyStroke.java: Likewise.
5579 * javax/swing/LookAndFeel.java: Likewise.
5580 * javax/swing/MenuSelectionManager.java: Likewise.
5581 * javax/swing/SwingUtilities.java: Likewise.
5582 * javax/swing/Timer.java: Likewise.
5583 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
5584 * javax/swing/JList.java
5585 (HORIZONTAL_WRAP): Made final, fixed value.
5586 (VERTICAL): Likewise.
5587 (VERTICAL_WRAP): Likewise.
5589 2004-06-07 Michael Koch <konqueror@gmx.de>
5591 * javax/swing/AbstractButton.java
5592 (serialVersionUID): New member variable.
5593 (AccessibleAbstractButton.serialVersionUID): Likewise.
5594 (AbstractButton): Made public.
5595 * javax/swing/Box.java
5596 (AccessibleBox.serialVersionUID): New member variable.
5597 (Filler.serialVersionUID): Likewise.
5598 * javax/swing/DefaultListSelectionModel.java
5599 (serialVersionUID): Likewise.
5600 * javax/swing/JApplet.java
5601 (serialVersionUID): Likewise.
5602 * javax/swing/JCheckBox.java
5603 (serialVersionUID): Likewise.
5604 * javax/swing/JCheckBoxMenuItem.java
5605 (serialVersionUID): Likewise.
5606 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
5607 * javax/swing/JColorChooser.java
5608 (serialVersionUID): Likewise.
5609 (AccessibleJColorChooser.serialVersionUID): Likewise.
5610 * javax/swing/JComponent.java
5611 (serialVersionUID): Made private.
5612 (AccessibleJComponent.serialVersionUID): New member variable.
5613 * javax/swing/JDesktopPane.java
5614 (serialVersionUID): Likewise.
5615 * javax/swing/JDialog.java
5616 (serialVersionUID): Likewise.
5617 * javax/swing/JFormattedTextField.java
5618 (serialVersionUID): Fixed value.
5619 * javax/swing/JFrame.java
5620 (serialVersionUID): New member variable.
5621 (getDefaultCloseOpertation): Made public.
5622 * javax/swing/JLayeredPane.java
5623 (serialVersionUID): Likewise.
5624 (LAYER_PROPERTY): Made final, fixed value.
5625 (JLayeredPane): Made public.
5626 * javax/swing/JMenu.java
5627 (AccessibleJMenu.serialVersionUID): New member variable.
5628 (WinListener.serialVersionUID): Likewise.
5629 * javax/swing/JMenuBar.java
5630 (serialVersionUID): Likewise.
5631 (getComponentAtIndex): Added @deprecated tag.
5632 * javax/swing/JMenuItem.java
5633 (serialVersionUID): New member variable.
5634 (AccessibleJMenuItem.serialVersionUID): Likewise.
5635 * javax/swing/JOptionPane.java
5636 (serialVersionUID): Likewise.
5637 (AccessibleJOptionPane.serialVersionUID): Likewise.
5638 * javax/swing/JPopupMenu.java
5639 (serialVersionUID): Likewise.
5640 (AccessibleJPopupMenu.serialVersionUID): Likewise.
5641 (getPopupMenuListeners): New method.
5642 (getComponentAtIndex): Added @deprecated tag.
5643 * javax/swing/JProgressBar.java
5644 (serialVersionUID): New member variable.
5645 (AccessibleJProgressBar.serialVersionUID): Likewise.
5646 * javax/swing/JRadioButton.java
5647 (serialVersionUID): Likewise.
5648 * javax/swing/JRadioButtonMenuItem.java
5649 (serialVersionUID): Likewise.
5650 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
5651 * javax/swing/JScrollBar.java
5652 (serialVersionUID): Likewise.
5653 (AccessibleJScrollBar.serialVersionUID): Likewise.
5654 * javax/swing/JSeparator.java
5655 (serialVersionUID): Likewise.
5656 (AccessibleJSeparator.serialVersionUID): Likewise.
5657 * javax/swing/JSlider.java: Fixed javadocs.
5658 (AccessibleJSlider.serialVersionUID): New member variable.
5659 * javax/swing/JSplitPane.java: Added copyright statement.
5660 (serialVersionUID): New member variable.
5661 (AccessibleJSplitPane.serialVersionUID): Likewise.
5662 * javax/swing/JTabbedPane.java
5663 (serialVersionUID): Likewise.
5664 (AccessibleJTabbedPane.serialVersionUID): Likewise.
5665 (ModelListener.serialVersionUID): Likewise.
5666 (ModelListener.ModelListener): New constructor.
5667 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
5668 (WRAP_TAB_LAYOUT): Likewise.
5669 * javax/swing/JTable.java
5670 (serialVersionUID): New member variable.
5671 * javax/swing/JToggleButton.java
5672 (serialVersionUID): Likewise.
5673 (ToggleButtonModel): Made static.
5674 (ToggleButtonModel.serialVersionUID): New member variable.
5675 * javax/swing/JToolTip.java
5676 (serialVersionUID): Likewise.
5677 * javax/swing/JTree.java
5678 (serialVersionUID): Likewise.
5679 * javax/swing/JWindow.java
5680 (serialVersionUID): Likewise.
5681 * javax/swing/Timer.java
5682 (serialVersionUID): Likewise.
5684 2004-06-06 Michael Koch <konqueror@gmx.de>
5686 * javax/swing/SwingConstants.java
5687 (NEXT): New constant.
5688 (PREVIOUS): Likewise.
5689 * javax/swing/UIManager.java
5690 (LookAndFeel): Made public.
5691 (LookAndFeel.getClassName): Likewise.
5692 (LookAndFeel.getName): Likewise.
5694 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5696 * javax/swing/JCheckBoxMenuItem.java:
5698 * javax/swing/JMenu.java: Likewise.
5699 * javax/swing/JMenuBar.java: Likewise.
5700 * javax/swing/JMenuItem.java: Likewise.
5701 * javax/swing/JPopupMenu.java: Likewise.
5702 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5703 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5704 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5705 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5706 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5707 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5708 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5710 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5712 * javax/swing/plaf/basic/BasicMenuUI.java:
5713 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5714 Call getPath() from super class instead.
5716 2004-05-31 David Jee <djee@redhat.com>
5718 * java/awt/Container.java
5719 (remove): Set component visibility to false after removing it.
5721 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
5723 * java/awt/Component.java (getForeground): Return SystemColor if
5725 (getBackground): Likewise.
5727 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5728 (item_highlighted): New function.
5729 (connectSignals): Set item_highlighted as list's select
5732 * java/applet/Applet.java: Revert changes from 2004-04-29,
5733 2004-03-15 and 2004-03-14.
5735 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5736 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
5739 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
5740 "Dialog" as the default font.
5741 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
5743 * java/awt/Component.java (getFont): Return "Dialog" font by
5745 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
5746 Multiply size argument to pango_font_description_set_size by the
5747 DPI conversion factor rather than by PANGO_SCALE.
5748 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
5749 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
5750 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
5751 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
5752 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
5753 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
5754 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
5755 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
5756 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
5757 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5758 Divide baseline y coordinate by DPI conversion factor rather
5759 than by PANGO_SCALE.
5760 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
5761 (area_prepared): Fix typo.
5762 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
5763 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
5764 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
5765 (dpi_conversion_factor): New global variable.
5766 (init_dpi_conversion_factor): New function to calculate and
5767 track DPI conversion factor.
5768 (dpi_changed_cb): New callback.
5769 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
5771 2004-05-27 David Jee <djee@redhat.com>
5773 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5774 (getGraphics): Return a new GdkGraphics instance.
5775 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5776 (getGraphics): Call super.getGraphics().
5778 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5780 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5781 (setNativeBounds): Clamp width and height values to >= 0.
5783 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5784 (find_fg_color_widget): Handle GtkOptionMenu specially.
5786 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5787 (pre_event_handler): Only post configure events to visible
5790 2004-05-26 David Jee <djee@redhat.com>
5792 * java/awt/BorderLayout.java
5793 (layoutContainer): Fix size calculations.
5795 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5797 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5798 (window_wm_protocols_filter): Remove function.
5799 (create): Remove filter that removes WM_TAKE_FOCUS client
5802 2004-06-17 Anthony Green <green@redhat.com>
5804 * java/util/zip/ZipFile.java (getInputStream): Return null if
5807 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
5808 directory contents to the class path.
5810 2004-06-15 Andrew Haley <aph@redhat.com>
5812 * java/lang/natSystem.cc (getenv0): Don't assume environment
5813 variable is Latin 1 coded.
5815 2004-06-14 Andreas Jaeger <aj@suse.de>
5817 * configure.in: Support --enable-version-specific-runtime-libs.
5818 * configure: Regenerated.
5820 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
5822 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
5823 to pass ClassLoader argument.
5824 * java/util/GregorianCalendar.java: Likewise.
5825 * java/util/Currency.java: Likewise.
5826 * java/text/BreakIterator.java: Likewise.
5827 * java/text/Collator.java: Likewise.
5828 * java/text/DateFormat.java: Likewise.
5829 * java/text/DateFormatSymbols.java: Likewise.
5830 * java/text/DecimalFormatSymbols.java: Likewise.
5831 * java/text/NumberFormat.java: Likewise.
5832 * java/awt/Window.java: Likewise.
5834 2004-06-14 Andrew Haley <aph@redhat.com>
5836 * java/lang/System.java: (getenv0): New method.
5837 (getenv): Add security check. Do the right thing.
5838 * java/lang/natSystem.cc (getenv0): New method.
5840 2004-06-12 Mark Wielaard <mark@klomp.org>
5842 * javax/swing/RepaintManager.java
5843 (paintDirtyRegions): Use entrySet(), not values().
5845 2004-06-10 Mark Wielaard <mark@klomp.org>
5847 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
5850 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
5852 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
5853 when we already know the answer.
5854 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
5855 (setStartRule,setEndRule): Don't take abs of day number.
5856 (getOffset): Clarify docs. Add argument checks.
5857 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
5858 (equals,hasSameRules,toString,readObject): Use startTimeMode and
5861 2004-06-10 Tom Tromey <tromey@redhat.com>
5863 * interpret.cc (run): Handle wide fload.
5865 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
5867 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
5869 2004-06-05 Michael Koch <konqueror@gmx.de>
5871 * javax/swing/SwingConstants.java
5872 (NEXT): New constant.
5873 (PREVIOUS): Likewise.
5875 2004-06-05 Michael Koch <konqueror@gmx.de>
5877 * javax/swing/UIManager.java
5878 (LookAndFeel): Made public.
5879 (LookAndFeel.getName): Likewise.
5880 (LookAndFeel.getClassName): Likewise.
5882 2004-06-03 Michael Koch <konqueror@gmx.de>
5884 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5885 (requestFocus): Revert last changes.
5886 (gtkRequestFocus): Removed.
5887 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5888 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5890 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
5891 Reverted last patch.
5892 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5893 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
5894 Reverted comment change.
5896 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5898 * javax/swing/JCheckBoxMenuItem.java:
5900 * javax/swing/JMenu.java: Likewise.
5901 * javax/swing/JMenuBar.java: Likewise.
5902 * javax/swing/JMenuItem.java: Likewise.
5903 * javax/swing/JPopupMenu.java: Likewise.
5904 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5905 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5906 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5907 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5908 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5909 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5910 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5912 2004-06-01 Tom Tromey <tromey@redhat.com>
5914 * java/io/ObjectStreamField.java: Cleaned up imports.
5916 2004-06-01 Michael Koch <konqueror@gmx.de>
5918 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
5920 2004-06-01 Mark Wielaard <mark@klomp.org>
5922 * java/io/Writer.java (Writer(Object)): Fixed API doc.
5924 2004-06-01 Michael Koch <konqueror@gmx.de>
5926 * java/security/Security.java
5927 (insertProviderAt): Use equals() instead of ==.
5928 (removeProvicer): Likewise.
5929 (getProvider): Likewise.
5930 * java/security/Signature.java
5931 (sign): Don't set state to UNINITIALIZED.
5934 2004-06-01 Mark Wielaard <mark@klomp.org>
5936 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
5937 Implement by calling gtkRequestFocus.
5938 (gtkRequestFocus): New native method.
5939 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5940 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
5942 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5944 (filter_expose_event_handler):
5946 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5947 (menu_pos): Mark static.
5949 2004-06-01 Michael Koch <konqueror@gmx.de>
5951 * java/text/CollationElementIterator.java,
5952 java/text/CollationKey.java,
5953 java/text/RuleBasedCollator.java: New versions from GNU classpath.
5954 * testsuite/libjava.mauve/xfails: Removed all
5955 java.text.CollationElementIterator tests.
5957 2004-06-01 Michael Koch <konqueror@gmx.de>
5959 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
5961 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
5962 Java 1.5 keyword usage.
5964 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5966 * javax/swing/plaf/basic/BasicMenuUI.java:
5967 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5968 Call getPath() from super class instead.
5970 2004-05-31 Michael Koch <konqueror@gmx.de>
5972 * java/io/SequenceInputStream.java:
5973 Rename enum to e because enum is a keyword in Java 1.5.
5975 2004-05-31 Michael Koch <konqueror@gmx.de>
5977 * gnu/java/rmi/rmic/CompilerProcess.java:
5978 Fixed javadoc to by XHTML compliant.
5980 2004-05-30 Mark Wielaard <mark@klomp.org>
5982 * java/awt/Toolkit.java (loadSystemColors): Implement.
5984 2004-05-30 Michael Koch <konqueror@gmx.de>
5986 * java/lang/System.java: Reordered imports.
5988 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
5990 * java/text/DecimalFormat.java
5991 (parse): Fixed parsing of decimal strings. Number of maximum
5992 digits to be read should now work.
5993 * java/text/SimpleDateFormat.java
5994 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
5995 formatter. This fixes DateFormatTest.
5997 2004-05-30 Michael Koch <konqueror@gmx.de>
5999 * java/nio/Buffer.java
6000 (limit): Fixed off by one error.
6001 * java/nio/CharBuffer.java
6002 (wrap): Fixed arguments, added javadocs.
6004 2004-05-30 Michael Koch <konqueror@gmx.de>
6006 * gnu/java/beans/BeanInfoEmbryo.java,
6007 java/awt/im/InputContext.java,
6008 javax/swing/tree/DefaultMutableTreeNode.java:
6009 Rename enum to e because enum is a keyword in Java 1.5.
6011 2004-05-30 Michael Koch <konqueror@gmx.de>
6013 * gnu/java/math/MPN.java,
6014 java/awt/geom/Arc2D.java:
6015 Fixed javadocs all over.
6017 2004-05-30 Michael Koch <konqueror@gmx.de>
6019 * java/awt/DefaultKeyboardFocusManager.java
6020 (dispatchEvent): Call method to get key event dispatchers.
6021 (dispatchKeyEvent): Call method to get key event post processors.
6022 * javax/swing/JComponent.java
6023 (listenerList): Made protected.
6024 * javax/swing/JOptionPane.java
6025 (message): Don't initialize.
6026 (JOptionPane): Set message text.
6027 * javax/swing/JPopupMenu.java
6028 (show): Fixed typo in argument name.
6029 * javax/swing/RepaintManager.java
6030 (paintDirtyRegions): Use public API of java.util.Map.
6031 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
6032 (positionForMouseEvent): Removed redundant ';'.
6033 (continueDrag): Use method arguments.
6035 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
6037 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
6040 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
6042 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
6044 * gnu/gcj/RawDataManaged.java: New file.
6045 * java/lang/Thread.java (data): Declare as RawDataManaged.
6046 * java/lang/natThread.cc (init_native): Cast natThread data to
6047 RawDataManaged, not jobject.
6048 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
6049 * Makefile.in: Rebuilt.
6051 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
6053 * java/util/SimpleTimeZone.java: Reverting my last change until I
6054 can fix it properly.
6056 2004-05-27 Michael Koch <konqueror@gmx.de>
6058 * javax/swing/JPopupMenu.java
6059 (isVisible): Do not use visible directly.
6060 (setVisible): Likewise.
6061 * javax/swing/JWindow.java
6062 (JWindow): call accessible constructor.
6063 * javax/swing/RepaintManager.java
6064 (paintDirtyRegions): Use public methods to obtain iterator.
6066 2004-05-25 David Jee <djee@redhat.com>
6068 * java/awt/Container.java
6069 (remove): Set component's parent to null only after we removed the
6070 component from its parent's layout manager.
6072 2004-05-25 David Jee <djee@redhat.com>
6074 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6075 (GtkComponentPeer): Set bounds regardless of whether awtComponent
6077 * gnu/java/awt/peer/gtk/GtkListPeer.java
6078 (getSize): Change native method declaration.
6079 (minimumSize): Pass visible row count into getSize().
6080 (preferredSize): Likewise.
6081 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
6082 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
6083 natural size. Use visible row count to determine the final height
6086 2004-05-21 Graydon Hoare <graydon@redhat.com>
6088 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6089 (setClip): Minor correction to order of operations.
6091 * javax/swing/JScrollPane.java: Extend sketchy implementation.
6092 * javax/swing/ScrollPaneLayout.java: Likewise.
6093 * javax/swing/JViewPort.java: Likewise.
6094 * javax/swing/ViewportLayout.java: Likewise.
6096 * javax/swing/JComponent.java: Rewrite.
6097 * javax/swing/RepaintManager.java: Likewise.
6099 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
6100 * javax/swing/JList.java
6101 (setSelectedIndices):
6102 (getSelectedIndices):
6103 (getSelectedValues): New functions.
6104 (getPreferredScrollableViewportSize): Return preferred size.
6105 (getScrollableUnitIncrement):
6106 (getScrollableBlockIncrement): Initial implementations.
6107 * javax/swing/JRootPane.java: Clean up slightly.
6112 (isValidateRoot): Add overrides from JComponent.
6113 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
6114 * javax/swing/UIManager.java (getDimension): Return the dimension.
6116 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
6117 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
6118 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
6119 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
6120 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
6121 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
6122 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
6123 * javax/swing/plaf/basic/BasicRootPaneUI.java:
6124 Likewise, and set background.
6125 * javax/swing/plaf/basic/BasicListUI.java:
6126 Likewise, and improve a bit.
6127 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6128 Likewise, and adjust calculations.
6129 * javax/swing/plaf/basic/BasicViewportUI.java:
6130 Likewise, and improve a bit.
6131 * javax/swing/plaf/basic/BasicLookAndFeel.java
6132 (Button.margin): Shrink.
6134 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
6135 Hack to set horizontal always, workaround pango.
6137 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
6138 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6139 Synchronize more often, check cairo status after ops,
6140 handle changes to cairo pattern API, check for disposal.
6142 2004-05-21 Olga Rodimina <rodimina@redhat.com>
6144 * javax/swing/plaf/basic/BasicMenuItemUI.java:
6145 (BasicMenuItemUI): Create propertyChangeListener.
6146 (getPath):Implemented.
6147 (installListeners): Add propertyChangeListener to menuItem.
6148 (uninstallListeners): Remove propertyChangeListener from menuItem.
6149 (update): Implemented.
6150 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
6151 (mouseEntered): Take insets of popup menu into account when
6152 calculating position of popup menu.
6154 2004-05-18 Olga Rodimina <rodimina@redhat.com>
6156 * Makefile.am: Added new file.
6157 * Makefile.in: Regenerate.
6158 * javax/swing/JMenuBar.java:
6159 Started implementation.
6160 * javax/swing/JPopupMenu.java:
6161 (setVisible): Fixed location of lightweight/mediumweight
6163 (show): Fixed location of PopupMenu.
6164 * javax/swing/plaf/basic/BasicMenuBarUI.java:
6165 New file. UI Delegate for JMenuBar.
6166 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
6167 (mouseEntered): Corrected position of the submenu.
6169 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
6171 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
6172 to _gtk_accel_group_attach.
6173 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
6176 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
6177 package access. Don't override setFont.
6178 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
6179 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
6180 gtkWidgetRequestFocus package access.
6181 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
6183 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
6184 Give gtkWidgetRequestFocus package access.
6185 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
6186 gtkWidgetRequestFocus package access. Don't override setFont.
6187 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
6189 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6190 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
6192 (gtkSetFont): Likewise.
6193 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
6195 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6196 (gtkSetFont): Whitespace fix.
6198 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6199 (gtkWidgetSetUsize): Remove method.
6201 2004-05-18 David Jee <djee@redhat.com>
6203 * java/awt/image/MemoryImageSource.java
6204 (newPixels(int,int,int,int,boolean)): Set only the specified
6205 rectangle of pixels.
6206 (newPixels(byte[],ColorModel,int,int)): Implement.
6207 (newPixels(int[],ColorModel,int,int)): Implement.
6209 2004-05-18 Olga Rodimina <rodimina@redhat.com>
6211 * Makefile.am: Added new file.
6212 * Makefile.in: Regenerate.
6213 * javax/swing/JMenu.java: Started
6215 * javax/swing/JPopupMenu.java:
6216 (insert): If specified index is -1, then
6217 add component at the end.
6218 (isPopupTrigger): Reimplemented.
6219 (JPopupMenu.LightWeightPopup): setBounds
6220 of the lightWeightPopup before adding it
6222 (javax/swing/plaf/basic/BasicIconFactory.java):
6223 (getMenuArrowIcon): Implemented.
6224 * javax/swing/plaf/basic/BasicMenuItemUI.java:
6225 (getPreferredSize): Add size of the arrow icon
6226 if this menu item is instance of JMenu.
6227 (paintMenuItem): Paint arrow icon if this
6228 menu item is a submenu.
6229 * javax/swing/plaf/basic/BasicMenuUI.java:
6230 New File. UI Delegate for JMenu.
6232 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
6234 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
6235 Post KEY_TYPED events.
6236 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6237 (generates_key_typed_event): Remove function.
6239 2004-05-17 Olga Rodimina <rodimina@redhat.com>
6241 * javax/swing/JRootPane.java
6242 (JRootPane.RootLayout): Reimplemented to
6243 set bounds of contentPane and menuBar.
6244 (setJMenuBar): Add menu bar to the layered pane.
6245 (createLayeredPane): Set layout of layeredPane
6247 * javax/swing/JLayeredPane.java:
6248 (addImpl): Calculate index of the component in the
6249 layeredPane according to the specified position within
6252 2004-05-17 David Jee <djee@redhat.com>
6254 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6255 (setPixels): Change color model to the default model after
6257 * java/awt/image/MemoryImageSource.java
6258 (newPixels): Set only the specified rectangle of pixels.
6260 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
6262 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
6263 -l-java-beans -l-javax-accessibility -l-javax-swing.
6265 * java/awt/AWTEvent.java (toString): Print source's name rather
6266 than the source itself.
6268 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
6270 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
6272 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
6273 (gdk_color_to_java_color): New function.
6274 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
6276 2004-05-12 David Jee <djee@redhat.com>
6278 * java/awt/image/RGBImageFilter.java:
6279 Initialize origmodel as null.
6280 (makeColor): Fix pixel component order.
6281 (filterRGBPixels): Fix pixel iteration.
6282 (setPixels): Add extra checks for index color model. Convert pixels
6283 to default color model if necessary.
6284 (convertColorModelToDefault): New override method for byte pixels.
6285 (convertColorModelToDefault): For int pixels, fix pixel iteration.
6286 (makeColorbyDefaultCM): New override method for byte pixels.
6287 (makeColorbyDefaultCM): For int pixel, add color model as argument.
6288 (makeColor): Fix pixel component order.
6290 2004-05-11 Kim Ho <kho@redhat.com>
6292 * javax/swing/Box.java:
6293 Comment out more parts of Box.Filler.
6295 2004-05-11 Kim Ho <kho@redhat.com>
6297 * javax/swing/Box.java:
6298 Remove reference to AccessibleAWTComponent so
6301 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6303 * gnu/java/awt/peer/gtk/GtkListPeer.java,
6304 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
6305 implementation of list peer to use GtkTreeView instead of
6306 deprecated GtkCList.
6308 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
6310 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6311 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
6312 (handleEvent): Remove keyChar argument to
6313 gtkWidgetDispatchKeyEvent calls.
6314 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
6316 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6317 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
6318 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
6321 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
6323 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6324 (gtkWidgetRequestFocus): Mark protected.
6325 (GtkComponentPeer): Only set the peer's bounds if its component
6327 * java/awt/Component.java (static): Set the default keyboard
6329 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
6330 requestFocusInWindow(temporary)): Don't request focus if the
6331 component is not showing. Get tree lock before traversing
6332 component hierarchy.
6333 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
6334 Only set the global focus owner if it is not a Window.
6335 (processKeyEvent): Consume keystrokes associated with the focus
6336 traversal keystroke.
6337 (focusPreviousComponent, focusNextComponent, upFocusCycle,
6338 downFocusCycle): Call requestFocusInWindow instead of
6340 * java/awt/EventDispatchThread.java (run): Move setting of
6341 default keyboard focus manager to Component.java.
6342 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6343 (awt_keycode_to_keysym): New function.
6344 (gtkWidgetDispatchKeyEvent): Finish implementation.
6345 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6346 (pre_event_handler): Add FIXME comment.
6348 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
6349 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6350 (gtkWidgetRequestFocus): New method.
6351 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
6352 disable Tab and Shift-Tab keystrokes.
6353 (addNotify, appendText, insertText, replaceText): Simplify peer
6355 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
6356 (connectSignals): Remove connections to "commit" signals.
6357 Remove C++-style comments.
6359 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
6360 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6361 (handleEvent): Activate GTK button when the space bar key is
6363 (gtkActivate): New method.
6365 2004-05-06 David Jee <djee@redhat.com>
6367 * java/awt/image/CropImageFilter.java
6368 (setPixels): Implement for byte array pixels.
6369 * java/awt/image/ReplicateScaleFilter.java
6370 (setPixels): Implement for byte array pixels.
6371 (replicatePixels): Overload for byte array pixels.
6373 2004-05-06 Kim Ho <kho@redhat.com>
6375 * javax/swing/Box.java:
6376 (getAccessibleContext): Return an instance of the
6379 2004-05-05 David Jee <djee@redhat.com>
6381 * gnu/java/awt/peer/gtk/GdkGraphics.java
6382 (drawImage): When component is null, use SystemColor.window as
6383 the default bgcolor.
6384 * gnu/java/awt/peer/gtk/GtkImage.java
6385 (setPixels): We can avoid iterating through the pixel rows only
6387 * java/awt/Image.java
6388 (getScaledInstance): Partially implement.
6389 * java/awt/image/CropImageFilter.java
6390 (setProperties): Fix "filter" property.
6391 (setPixels): Implement.
6392 * java/awt/image/ReplicateScaleFilter.java
6393 (setDimensions): Use scaled dimensions.
6394 (setPixels): Implement.
6395 (replicatePixels): New method.
6397 2004-05-05 David Jee <djee@redhat.com>
6399 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6400 (convertPixels): If either pixels or model is null, return null.
6401 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
6402 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
6403 is null, do nothing and return.
6405 2004-05-03 Kim Ho <kho@redhat.com>
6407 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
6408 (getGraphics): Like GtkFramePeer, the Graphics
6409 object needs to be translate to account for
6411 (postMouseEvent): New method. Account for
6413 (postExposeEvent): ditto.
6414 * javax/swing/Box.java: Stubbed.
6415 * javax/swing/JDialog.java: Ran through jalopy
6417 (JDialog): Call SwingUtilities' getOwnerFrame
6419 (setLayout): Check isRootPaneCheckingEnabled
6420 * javax/swing/JOptionPane.java: Re-implemented.
6421 * javax/swing/SwingUtilities.java:
6422 (getOwnerFrame): Static method to grab a default
6423 owner frame for Dialogs that don't specify owners.
6424 * javax/swing/event/SwingPropertyChangeSupport.java:
6425 (firePropertyChange): Fix early exit condition.
6426 * javax/swing/plaf/basic/BasicLabelUI.java:
6427 (paint): Avoid painting text if it is null
6429 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
6432 2004-05-03 Olga Rodimina <rodimina@redhat.com>
6434 * Makefile.am: Added new file.
6435 * Makefile.in: Regenerate.
6436 * javax/swing/JPopupMenu.java:
6437 Started implementation.
6438 * javax/swing/JWindow.java
6439 (JWindow): call super() if parent for window
6441 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
6442 New File. UI Delegate for JPopupMenu.
6444 2004-04-30 Olga Rodimina <rodimina@redhat.com>
6446 * javax/swing/JApplet.java: Indicated that JApplet
6447 implements RootPaneContainer and made method of this
6449 * javax/swing/JFrame.java: Ditto.
6450 * javax/swing/JWindow.java: Ditto.
6452 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
6454 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6455 (nativeSetBounds): Call gdk_window_move in addition to
6458 * java/applet/Applet.java (preferredSize): Call parent's
6459 preferredSize if the applet stub is null.
6460 (minimumSize): Likewise for parent's minimumSize.
6462 2004-04-27 Olga Rodimina <rodimina@redhat.com>
6464 * javax/swing/JMenuItem.java
6465 (createActionPropertyChangeListener): Implemented.
6466 (processMouseEvent): Ditto.
6467 (fireMenuDragMouseEntered): Ditto.
6468 (fireMenuDragMouseExited): Ditto.
6469 (fireMenuDragMouseDragged): Ditto.
6470 (fireMenuDragMouseReleased): Ditto.
6471 (menuSelectionChanged): Ditto.
6472 (getSubElements): Ditto.
6473 (getComponent): Ditto.
6474 (addMenuDragMouseListener): Ditto.
6475 (removeMenuDragMouseListener):Ditto.
6476 (addMenuKeyListener): Ditto.
6477 (removeMenuKeyListener): Ditto.
6478 * javax/swing/plaf/basic/BasicMenuItemUI.java
6479 (doClick): Imlemented.
6480 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
6481 Don't handle mouse events here. Pass them to
6482 MenuSelectionManager.
6484 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6485 Used correct version of jalopy configuration
6486 file to fix style in the files below.
6488 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6490 * javax/swing/JCheckBoxMenuItem.java:
6491 Fixed style and removed unnecessary comments.
6492 * javax/swing/JMenuItem.java: Ditto.
6493 * javax/swing/JRadioButtonMenuItem.java: Ditto.
6494 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
6495 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
6496 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
6498 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
6500 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
6503 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
6505 * java/awt/ContainerOrderFocusTraversalPolicy.java
6506 (getComponentAfter): Start from current component and work up
6507 the component hierarchy until an acceptable component is found.
6508 Synchronize on tree lock.
6509 (getComponentBefore): Likewise.
6511 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
6513 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
6514 focus-related debugging messages.
6515 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
6516 * java/awt/EventDispatchThread.java: Likewise.
6517 * java/awt/KeyboardFocusManager.java: Likewise.
6518 * java/awt/Window.java: Likewise.
6519 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
6520 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6522 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
6523 new C++-style comments to C-style comments.
6524 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6526 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
6527 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6528 (handleEvent): Dispatch key press and key release events to
6530 (requestFocus): Post a FOCUS_GAINED event to the event queue.
6531 (gtkWidgetRequestFocus): New method.
6532 (gtkWidgetDispatchKeyEvent): Likewise.
6533 * java/awt/Component.java (requestFocus, requestFocus(boolean),
6534 requestFocusInWindow, requestFocusInWindow(boolean),
6535 getFocusCycleRootAncestor, nextFocus, transferFocus,
6536 transferFocusBackward, transferFocusUpCycle, hasFocus,
6537 isFocusOwner): Implement and document focus-handling methods.
6538 (setFocusTraversalKeys): Inherit focus traversal keys when
6539 keystrokes argument is null. Fix focus-handling documentation
6541 * java/awt/Container.java (setFocusTraversalKeys,
6542 getFocusTraversalKeys, areFocusTraversalKeysSet,
6543 isFocusCycleRoot, setFocusTraversalPolicy,
6544 getFocusTraversalPolicy, isFocusTraversalPolicySet,
6545 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
6546 Implement and document focus-handling methods.
6547 (transferFocusBackward): Remove method.
6548 (readObject, writeObject): Implement and document serialization
6550 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
6552 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
6554 * java/awt/DefaultKeyboardFocusManager.java: Implement and
6556 * java/awt/EventDispatchThread.java (run): Set default keyboard
6557 focus manager. Attempt to dispatch each event to the keyboard
6558 focus manager before normal dispatch.
6559 * java/awt/KeyboardFocusManager.java: Implement and partially
6561 * java/awt/Window.java (Window): Set focusCycleRoot to true.
6562 (show): Focus initial component when window is shown for the
6564 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6565 (pre_event_handler): Replace complex key press and key release
6566 logic with simple callbacks into GtkComponentPeer.
6567 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
6569 2004-04-21 Olga Rodimina <rodimina@redhat.com>
6571 * javax/swing/MenuSelectionManager.java
6572 (componentForPoint): Added new method.
6573 (defaultManager): New Method. Implemented.
6574 (getSelectedPath): Ditto.
6575 (isComponentPartOfCurrentMenu): Ditto.
6576 (processKeyEvent): Added new method.
6577 (processMouseEvent): New Method. Implemented.
6578 (setSelectedPath): Ditto.
6581 2004-04-19 Kim Ho <kho@redhat.com>
6583 * java/awt/Container.java:
6584 (remove): Set the component's parent to null.
6585 (getComponentAt): Implement.
6586 * javax/swing/JComponent.java:
6587 (JComponent): Initialize defaultLocale
6588 (getDefaultLocale): Implement.
6589 (setDefaultLocale): ditto.
6590 * javax/swing/JSlider.java:
6591 (JSlider): Fix calculation of value.
6592 * javax/swing/JSplitPane.java: Implement.
6593 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6594 Change SplitPane's default divider size.
6595 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6596 (paint): Remove unused code.
6597 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
6598 Added comments and ran through jalopy.
6599 (setBasicSplitPaneUI): Get reference to hidden divider
6600 and set up one touch buttons if necessary.
6601 (setBorder): Fire propertyChangeEvent only if
6602 borders are different.
6603 (getPreferredSize): Defer to layout manager.
6604 (propertyChange): Implement.
6605 (oneTouchExpandableChanged): ditto.
6606 (createLeftOneTouchButton): Use BasicArrowButton.
6607 (createRightOneTouchButton): ditto.
6608 (moveDividerTo): New method. Moves the divider
6609 to a set location based on the last divider location.
6610 (BasicSplitPaneDivider::MouseHandler): Implement.
6611 (BasicSplitPaneDivider::OneTouchButton): Removed.
6612 (BasicSplitPaneDivider::DragController): Implement.
6613 (BasicSplitPaneDivider::VerticalDragController):
6615 (BasicSplitPaneDivider::DividerLayout): ditto.
6616 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
6617 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
6618 (calculateLayoutInfo): Don't show component if it's
6620 (paintTab): Fix title paint logic.
6622 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
6625 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
6626 (setStartRule,setEndRule): Don't take abs of day number.
6627 (getOffset): Clarify docs. Add argument checks.
6628 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
6629 (equals,hasSameRules,toString,readObject): Use startTimeMode and
6631 * testsuite/libjava.mauve/xfails
6632 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
6634 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
6636 Layout interfaces during preparation, not initialization.
6637 * java/lang/natClass.cc (initializeClass): Move
6638 _Jv_LayoutInterfaceMethods call...
6639 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
6641 2004-05-19 Anthony Green <green@localhost.localdomain>
6643 * Makefile.am (awt_java_source_files): Remove javax.rmi and
6645 * Makefile.in: Rebuilt.
6646 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
6647 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
6648 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
6649 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
6650 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
6651 gnu/javax/rmi/CORBA/DelegateFactory.java,
6652 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
6653 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
6654 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
6655 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
6656 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
6657 gnu/javax/rmi/PortableServer.java: Remove files.
6659 2004-05-19 Anthony Green <green@redhat.com>
6661 * Makefile.am: Define JAVA_EXT_DIRS.
6662 * Makefile.in: Rebuilt.
6663 * java/lang/natRuntime.cc (insertSystemProperties): Set
6664 java.ext.dirs property.
6666 2004-05-16 Mark Wielaard <mark@klomp.org>
6668 * java/io/Writer.java (Writer(Object)): Check for null lock object.
6670 2004-05-15 Mark Wielaard <mark@klomp.org>
6672 * doc/cni.sgml: Removed, merged into gcj.texi.
6674 2004-05-15 Mark Wielaard <mark@klomp.org>
6676 * Makefile.am (ordinary_java_source_files): Add new javax.print
6678 * Makefile.in: Regenerated.
6680 2004-05-15 Michael Koch <konqueror@gmx.de>
6682 * javax/print/attribute/standard/DateTimeAtCompleted.java,
6683 javax/print/attribute/standard/DateTimeAtCreation.java,
6684 javax/print/attribute/standard/DateTimeAtProcessing.java,
6685 javax/print/attribute/standard/DocumentName.java,
6686 javax/print/attribute/standard/JobHoldUntil.java,
6687 javax/print/attribute/standard/JobImpressionsCompleted.java,
6688 javax/print/attribute/standard/JobMessageFromOperator.java,
6689 javax/print/attribute/standard/JobName.java,
6690 javax/print/attribute/standard/JobOriginatingUserName.java,
6691 javax/print/attribute/standard/JobPriority.java,
6692 javax/print/attribute/standard/JobPrioritySupported.java,
6693 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6694 javax/print/attribute/standard/OutputDeviceAssigned.java,
6695 javax/print/attribute/standard/PrinterInfo.java,
6696 javax/print/attribute/standard/PrinterLocation.java,
6697 javax/print/attribute/standard/PrinterMakeAndModel.java,
6698 javax/print/attribute/standard/PrinterMessageFromOperator.java,
6699 javax/print/attribute/standard/PrinterName.java,
6700 javax/print/attribute/standard/QueuedJobCount.java,
6701 javax/print/attribute/standard/RequestingUserName.java:
6702 Fixed javadocs all over.
6704 2004-05-15 Michael Koch <konqueror@gmx.de>
6706 * javax/print/DocFlavor.java,
6707 javax/print/attribute/standard/ColorSupported.java,
6708 javax/print/attribute/standard/Compression.java,
6709 javax/print/attribute/standard/CopiesSupported.java,
6710 javax/print/attribute/standard/Fidelity.java,
6711 javax/print/attribute/standard/Finishings.java,
6712 javax/print/attribute/standard/JobImpressionsSupported.java,
6713 javax/print/attribute/standard/JobKOctetsSupported.java,
6714 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6715 javax/print/attribute/standard/JobSheets.java,
6716 javax/print/attribute/standard/JobState.java,
6717 javax/print/attribute/standard/JobStateReason.java,
6718 javax/print/attribute/standard/JobStateReasons.java,
6719 javax/print/attribute/standard/Media.java,
6720 javax/print/attribute/standard/MediaSizeName.java,
6721 javax/print/attribute/standard/MultipleDocumentHandling.java,
6722 javax/print/attribute/standard/NumberUpSupported.java,
6723 javax/print/attribute/standard/OrientationRequested.java,
6724 javax/print/attribute/standard/PDLOverrideSupported.java,
6725 javax/print/attribute/standard/PageRanges.java,
6726 javax/print/attribute/standard/PresentationDirection.java,
6727 javax/print/attribute/standard/PrintQuality.java,
6728 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6729 javax/print/attribute/standard/PrinterMoreInfo.java,
6730 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6731 javax/print/attribute/standard/PrinterResolution.java,
6732 javax/print/attribute/standard/PrinterState.java,
6733 javax/print/attribute/standard/PrinterStateReason.java,
6734 javax/print/attribute/standard/PrinterStateReasons.java,
6735 javax/print/attribute/standard/PrinterURI.java,
6736 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6737 javax/print/attribute/standard/Severity.java,
6738 javax/print/attribute/standard/SheetCollate.java,
6739 javax/print/attribute/standard/Sides.java:
6740 Added serialVersionUID and removed final keyword where it doenst
6743 2004-05-15 Michael Koch <konqueror@gmx.de>
6745 * javax/print/PrintServiceLookup.java: New file.
6747 2004-05-15 Michael Koch <konqueror@gmx.de>
6749 * javax/print/DocFlavor.java:
6750 Implemented all flavor classes.
6752 2004-05-15 Michael Koch <konqueror@gmx.de>
6754 * javax/print/attribute/standard/ColorSupported.java,
6755 javax/print/attribute/standard/Compression.java,
6756 javax/print/attribute/standard/CopiesSupported.java,
6757 javax/print/attribute/standard/Fidelity.java,
6758 javax/print/attribute/standard/Finishings.java,
6759 javax/print/attribute/standard/JobImpressionsSupported.java,
6760 javax/print/attribute/standard/JobKOctetsSupported.java,
6761 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6762 javax/print/attribute/standard/JobSheets.java,
6763 javax/print/attribute/standard/JobState.java,
6764 javax/print/attribute/standard/JobStateReason.java,
6765 javax/print/attribute/standard/JobStateReasons.java,
6766 javax/print/attribute/standard/Media.java,
6767 javax/print/attribute/standard/MediaSizeName.java,
6768 javax/print/attribute/standard/MultipleDocumentHandling.java,
6769 javax/print/attribute/standard/NumberUpSupported.java,
6770 javax/print/attribute/standard/OrientationRequested.java,
6771 javax/print/attribute/standard/PDLOverrideSupported.java,
6772 javax/print/attribute/standard/PageRanges.java,
6773 javax/print/attribute/standard/PresentationDirection.java,
6774 javax/print/attribute/standard/PrintQuality.java,
6775 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6776 javax/print/attribute/standard/PrinterMoreInfo.java,
6777 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6778 javax/print/attribute/standard/PrinterResolution.java,
6779 javax/print/attribute/standard/PrinterState.java,
6780 javax/print/attribute/standard/PrinterStateReason.java,
6781 javax/print/attribute/standard/PrinterStateReasons.java,
6782 javax/print/attribute/standard/PrinterURI.java,
6783 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6784 javax/print/attribute/standard/Severity.java,
6785 javax/print/attribute/standard/SheetCollate.java,
6786 javax/print/attribute/standard/Sides.java: New files.
6788 2004-05-15 Michael Koch <konqueror@gmx.de>
6790 * javax/print/Doc.java
6791 (getPrintData): Throws IOException.
6792 (getReaderForText): Likewise.
6793 (getStreamForBytes): Likewise.
6794 * javax/print/DocFlavor.java:
6795 Fixed filename in copyright.
6796 (serialVersionUID): New field.
6797 * javax/print/ServiceUIFactory.java:
6798 Made all constants final.
6799 * javax/print/AttributeException.java
6800 javax/print/MultiDoc.java
6801 javax/print/MultiDocPrintJob.java
6802 javax/print/MultiDocPrintService.java
6803 javax/print/StreamPrintService.java
6804 javax/print/URIException.java: New files.
6805 * javax/print/Makefile.am
6806 (EXTRA_DIST): Added all new files.
6808 2004-05-15 Michael Koch <konqueror@gmx.de>
6810 * javax/print/attribute/standard/Copies.java,
6811 javax/print/attribute/standard/DateTimeAtCompleted.java,
6812 javax/print/attribute/standard/DateTimeAtCreation.java,
6813 javax/print/attribute/standard/DateTimeAtProcessing.java,
6814 javax/print/attribute/standard/DocumentName.java,
6815 javax/print/attribute/standard/JobHoldUntil.java,
6816 javax/print/attribute/standard/JobImpressions.java,
6817 javax/print/attribute/standard/JobImpressionsCompleted.java,
6818 javax/print/attribute/standard/JobKOctets.java,
6819 javax/print/attribute/standard/JobKOctetsProcessed.java,
6820 javax/print/attribute/standard/JobMediaSheets.java,
6821 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
6822 javax/print/attribute/standard/JobMessageFromOperator.java,
6823 javax/print/attribute/standard/JobName.java,
6824 javax/print/attribute/standard/JobOriginatingUserName.java,
6825 javax/print/attribute/standard/JobPriority.java,
6826 javax/print/attribute/standard/JobPrioritySupported.java,
6827 javax/print/attribute/standard/NumberOfDocuments.java,
6828 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6829 javax/print/attribute/standard/NumberUp.java,
6830 javax/print/attribute/standard/OutputDeviceAssigned.java,
6831 javax/print/attribute/standard/PagesPerMinute.java,
6832 javax/print/attribute/standard/PagesPerMinuteColor.java:
6833 Fixed @return tag all over.
6835 2004-05-15 Michael Koch <konqueror@gmx.de>
6837 * javax/print/attribute/AttributeSetUtilities.java
6838 (verifyCategoryForValue): Fixed typo in javadoc.
6839 * javax/print/attribute/HashAttributeSet.java
6840 (containsKey): Fixed @return tag.
6841 (comtainsValue): Likewise.
6843 * javax/print/attribute/IntegerSyntax.java
6845 * javax/print/attribute/ResolutionSyntax.java
6847 (getCrossFeedResolution): Removed unused code.
6848 (getFeedResolution): Likewise.
6849 * javax/print/attribute/SetOfIntegerSyntax.java
6850 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
6851 (equals): Fixed @return tag.
6852 * javax/print/attribute/TextSyntax.java
6853 (TextSyntax): Take locale into account.
6854 (hashCode): Better implementation.
6856 2004-05-15 Michael Koch <konqueror@gmx.de>
6858 * javax/print/CancelablePrintJob.java,
6859 javax/print/Doc.java,
6860 javax/print/DocFlavor.java,
6861 javax/print/DocPrintJob.java,
6862 javax/print/FlavorException.java,
6863 javax/print/PrintException.java,
6864 javax/print/PrintService.java,
6865 javax/print/ServiceUIFactory.java: New files.
6867 2004-05-15 Mark Wielaard <mark@klomp.org>
6869 * gnu/regexp/CharIndexedReader.java: Removed.
6870 * gnu/regexp/REFilterReader.java: Likewise.
6871 * gnu/regexp/RETokenLookAhead.java: Likewise.
6872 * Makefile.am (ordinary_java_source_files): Remove above classes.
6873 * Makefile.in: Regenerated.
6875 2004-05-14 Tom Tromey <tromey@redhat.com>
6877 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
6878 not `XGraphicsConfiguration.XOffScreenImage'.
6880 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
6882 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
6884 2004-05-14 Steven Augart <augart@watson.ibm.com>
6886 * include/jni.h (_Jv_func): Removed.
6887 (struct JNINativeInterface): Use `void *' for reserved slots.
6888 (struct JNIInvokeInterface): Likewise.
6890 2004-05-11 Michael Koch <konqueror@gmx.de>
6892 * gnu/java/net/natPlainSocketImplPosix.cc
6893 (read): Fixed typo in expression.
6895 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
6897 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
6898 ld_library_additions. Adjust all calls to libjava_invoke to match
6901 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
6902 path to cxxflagslist.
6903 Pass path of libstdc++ to libjava_invoke.
6905 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
6906 libjava_invoke arguments.
6908 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
6910 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
6913 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
6915 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
6916 main binary against the JNI shared library.
6918 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6920 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
6921 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
6922 (SimpleTimeZone): Tweak docs. Add new variation.
6923 (setStartRule,setEndRule): Add new variations. Use
6924 startTimeMode and endTimeMode.
6926 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6928 * java/util/Calendar.java (getActualMinimum,
6929 getActualMaximum): Remove abstract. Implement.
6931 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6933 Run the jni tests using the interpreter.
6934 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
6935 options_cxx to shared lib compile command.
6936 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
6937 they are used to link the shared lib, not the main binary.
6938 Use libjava_invoke to run gij.
6940 2004-05-06 Michael Koch <konqueror@gmx.de>
6942 * java/util/logging/Level.java
6943 (parse): Use == instead of String.equals().
6945 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6947 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
6948 verify_field_signature and verify_method_signature, not
6949 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
6950 (_Jv_ClassReader::handleField): Likewise.
6951 (_Jv_ClassReader::handleMethod): Likewise.
6953 2004-05-06 Michael Koch <konqueror@gmx.de>
6955 * javax/swing/table/TableColumn.java:
6958 2004-05-06 Michael Koch <konqueror@gmx.de>
6960 * javax/imageio/spi/ImageReaderWriterSpi.java
6961 (ImageReaderWriterSpi): Made it public.
6962 * javax/imageio/stream/ImageInputStream.java:
6965 2004-05-06 Michael Koch <konqueror@gmx.de>
6967 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6970 2004-05-06 Michael Koch <konqueror@gmx.de>
6972 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
6973 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
6975 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
6976 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
6977 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
6978 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
6979 their own source file.
6980 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6981 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
6982 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
6983 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
6984 (create): Define variable on top of function.
6985 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
6986 (menu_pos): Prototyped.
6987 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6988 (setTitle): Removed.
6989 * jni/gtk-peer/gthread-jni.c
6990 (gdk_threads_wake): Removed.
6991 * Makefile.am (gtk_c_source_files): Added new files
6992 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
6993 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
6994 * Makefile.in: Regenerated.
6996 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
6998 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
7001 2004-05-05 Mark Wielaard <mark@klomp.org>
7003 * javax/swing/AbstractButton.java: Replace special HTML entities with
7005 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
7006 * javax/swing/DefaultButtonModel.java: Likewise.
7007 * javax/swing/DefaultListModel.java: Likewise.
7008 * javax/swing/JList.java: Likewise.
7009 * javax/swing/JSlider.java: Likewise.
7010 * javax/swing/ListModel.java: Likewise.
7011 * javax/swing/Popup.java: Likewise.
7012 * javax/swing/SwingUtilities.java: Likewise.
7014 2004-05-05 Michael Koch <konqueror@gmx.de>
7016 * javax/swing/AbstractButton.java,
7017 javax/swing/ActionMap.java,
7018 javax/swing/DefaultButtonModel.java,
7019 javax/swing/DefaultListModel.java,
7020 javax/swing/ImageIcon.java,
7021 javax/swing/JComboBox.java,
7022 javax/swing/JComponent.java,
7023 javax/swing/JFrame.java,
7024 javax/swing/JInternalFrame.java,
7025 javax/swing/JMenuBar.java,
7026 javax/swing/JMenuItem.java,
7027 javax/swing/JOptionPane.java,
7028 javax/swing/JProgressBar.java,
7029 javax/swing/JRootPane.java,
7030 javax/swing/JScrollBar.java,
7031 javax/swing/JScrollPane.java,
7032 javax/swing/JSeparator.java,
7033 javax/swing/JSlider.java,
7034 javax/swing/JTabbedPane.java,
7035 javax/swing/JTable.java,
7036 javax/swing/JTextField.java,
7037 javax/swing/JToolBar.java,
7038 javax/swing/JToolTip.java,
7039 javax/swing/JTree.java,
7040 javax/swing/JViewport.java,
7041 javax/swing/JWindow.java,
7042 javax/swing/KeyStroke.java,
7043 javax/swing/LookAndFeel.java,
7044 javax/swing/SwingUtilities.java,
7045 javax/swing/Timer.java,
7046 javax/swing/ToolTipManager.java,
7047 javax/swing/UIDefaults.java,
7048 javax/swing/border/TitledBorder.java,
7049 javax/swing/filechooser/FileSystemView.java,
7050 javax/swing/plaf/basic/BasicButtonListener.java,
7051 javax/swing/plaf/basic/BasicButtonUI.java,
7052 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
7053 javax/swing/plaf/basic/BasicGraphicsUtils.java,
7054 javax/swing/plaf/basic/BasicLabelUI.java,
7055 javax/swing/plaf/basic/BasicMenuItemUI.java,
7056 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
7057 javax/swing/plaf/basic/BasicRootPaneUI.java,
7058 javax/swing/plaf/basic/BasicScrollBarUI.java,
7059 javax/swing/plaf/basic/BasicScrollPaneUI.java,
7060 javax/swing/plaf/basic/BasicSliderUI.java,
7061 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
7062 javax/swing/plaf/basic/BasicToggleButtonUI.java,
7063 javax/swing/table/JTableHeader.java,
7064 javax/swing/text/AbstractDocument.java,
7065 javax/swing/text/DefaultCaret.java,
7066 javax/swing/text/StyledEditorKit.java,
7067 javax/swing/tree/DefaultTreeCellEditor.java:
7070 2004-05-05 Michael Koch <konqueror@gmx.de>
7072 * java/util/prefs/AbstractPreferences.java
7073 (AbstractPreferences): Added parenthesis for clarity.
7074 Closes classpath bug #7940.
7076 2004-05-05 Tom Tromey <tromey@redhat.com>
7078 * javax/naming/CompoundName.java (endsWith): Look at correct
7079 element of source name.
7081 2004-05-05 Mark Wielaard <mark@klomp.org>
7083 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
7084 * java/util/HashMap.java (rehash): Add entry at start of bucket.
7086 2004-05-05 Tom Tromey <tromey@redhat.com>
7088 * java/io/BufferedReader.java (skip): Removed unused
7091 2004-05-05 Michael Koch <konqueror@gmx.de>
7093 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
7095 2004-05-05 Dalibor Topic <robilad@kaffe.org>
7097 * java/text/AttributedString.java,
7098 java/text/AttributedStringIterator.java,
7099 java/text/Collator.java,
7100 java/text/DecimalFormatSymbols.java,
7101 java/text/NumberFormat.java,
7102 java/text/RuleBasedCollator.java:
7105 2004-05-05 Tom Tromey <tromey@redhat.com>
7107 * java/text/Format.java: Cleaned up imports.
7108 * java/text/DecimalFormat.java: Cleaned up imports.
7109 * java/security/SecureRandom.java: Cleaned up imports.
7110 (SecureRandom): Removed unused variable.
7111 * java/security/UnresolvedPermission.java: Cleaned up imports.
7112 * java/util/Date.java (parse): Removed unused variable.
7113 * java/util/ResourceBundle.java: Cleaned up imports.
7114 (getBundle): Removed unused variable.
7115 (tryBundle): Likewise.
7116 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
7118 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7120 * java/text/SimpleDateFormat.java:
7121 (formatWithAttribute): New method. It implements
7122 the formatting process with attributes.
7123 (format): Use formatWithAttribute.
7124 (formatToCharacterIterator): New method. Use
7125 formatWithAttribute.
7127 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7129 * java/text/MessageFormat.java:
7130 (class Field): New class.
7131 (formatToCharacterIterator): New method.
7132 (format): Use formatInternal now.
7133 (formatInternal): New method. String formatter should
7134 be done here (with attributes). Attributes merging supported.
7135 (parse): More documentation.
7136 (getFormatsByArgumentIndex): New method.
7137 (setFormatByArgumentIndex): New method.
7138 (setFormatsByArgumentIndex): New method.
7140 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7142 * java/text/DecimalFormat.java
7143 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
7144 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
7145 (parse): Fixed handling of exponentiation notation and grouping.
7147 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7149 * java/text/DecimalFormat.java
7150 (scanFix): Build attribute array. Fixed error reporting.
7151 (applyPatternWithSymbols): Store attributes for the prefix and
7153 (formatInternal): New method. Changed the way the string is
7154 computed. Implemented attributes. Cleant up rounding in
7155 exponential notation.
7156 (format): Use formatInternal.
7157 (formatToCharacterIterator): New method.
7158 (exponentRound, negativePrefixRanges, positivePrefixRanges,
7159 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
7160 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
7163 2004-05-04 Dalibor Topic <robilad@kaffe.org>
7165 * java/security/interfaces/DSAKeyPairGenerator.java,
7166 java/security/interfaces/DSAPrivateKey.java,
7167 java/security/interfaces/DSAPublicKey.java,
7168 java/security/interfaces/RSAPrivateKey.java,
7169 java/security/interfaces/RSAPublicKey.java:
7172 2004-05-04 Michael Koch <konqueror@gmx.de>
7174 * java/nio/ByteBuffer.java,
7175 java/nio/CharBuffer.java,
7176 java/nio/DoubleBuffer.java,
7177 java/nio/FloatBuffer.java,
7178 java/nio/IntBuffer.java,
7179 java/nio/LongBuffer.java,
7180 java/nio/ShortBuffer.java:
7181 (compareTo): Fixed bogus implementation in all buffer classes.
7183 2004-05-04 Ingo Proetel <proetel@aicas.com>
7185 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
7186 32 bit pixels not 8 bit pixels.
7187 (isCompatibleRaster): Added javadoc comment.
7189 2004-05-04 Ingo Proetel <proetel@aicas.com>
7191 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
7194 2004-05-04 Ingo Proetel <proetel@aicas.com>
7196 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
7197 (getColorModel): Return the actual color model.
7198 (getRaster): Implemented.
7199 (ColorRaster): New inner class.
7200 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
7202 * java/awt/Color.java (<init>): Make exception more verbose.
7203 (createContext): Use ColorModel when creating a PaintContext.
7205 2004-05-04 Michael Koch <konqueror@gmx.de>
7207 * gnu/java/text/CharacterBreakIterator.java
7208 (previous): Removed unused variable.
7210 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
7212 * gnu/java/text/FormatBuffer.java,
7213 gnu/java/text/AttributedFormatBuffer.java,
7214 gnu/java/text/StringFormatBuffer.java: New classes to implement
7215 attributed iterators in java.text.
7216 * gnu/java/text/FormatCharacterIterator.java: Moved
7217 from java/text as it is an internal class.
7218 * java/text/FormatCharacterIterator.java: Removed.
7219 * java/text/Format.java:
7220 Import gnu.java.text.FormatCharacterIterator.
7221 * Makefile.am (java_source_files): Added new files.
7222 * Makefile.in: Regenerated.
7225 2004-05-04 Mark Wielaard <mark@klomp.org>
7227 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
7229 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
7231 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
7232 * Makefile.in: Rebuilt.
7234 2004-05-03 Mark Wielaard <mark@klomp.org>
7236 * gnu/java/security/der/DERReader.java: Call static methods staticly.
7237 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
7239 (set(String, String, int, String, String, String, String, String)):
7240 Assign this.file to path or path + "?" + query.
7241 * java/util/Arrays.java: Call static methods staticly.
7242 * java/util/zip/ZipEntry.java: Likewise.
7243 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
7244 dir to this.direction.
7245 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
7246 Assign static field only once.
7247 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
7249 2004-05-03 Mark Wielaard <mark@klomp.org>
7251 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
7252 unused variables hScrollbarHeight and vScrollbarWidth.
7253 (preferredSize): Likewise.
7254 * gnu/java/security/provider/DSAParameters.java (engineToString):
7255 Removed unused call to System.getProperty("line.seperator");
7256 * java/security/Security.java (loadProviders): Return result.
7258 2004-05-03 Tom Tromey <tromey@redhat.com>
7260 * java/net/URLStreamHandler.java (toExternalForm): Removed
7263 * java/math/BigDecimal.java (divide): Removed unused variable.
7264 * java/lang/Throwable.java: Cleaned up imports.
7265 * java/lang/ClassLoader.java: Cleaned up imports.
7266 * java/io/FilePermission.java (implies): Removed unused
7268 * java/awt/TextComponent.java: Removed unused import.
7269 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
7270 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
7271 * gnu/java/text/WordBreakIterator.java: Removed unused import.
7272 * gnu/java/text/SentenceBreakIterator.java: Removed unused
7274 * gnu/java/text/LineBreakIterator.java: Removed unused import.
7275 * gnu/java/text/CharacterBreakIterator.java: Removed
7277 * gnu/java/security/provider/DSAKeyPairGenerator.java:
7279 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
7280 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
7282 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
7283 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
7284 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
7285 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
7286 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
7287 (lookupProviders): Removed unused variable.
7288 (loadNextServiceProvider): Likewise.
7289 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
7291 2004-05-03 Michael Koch <konqueror@gmx.de>
7293 Fixes PR libgcj/14695:
7294 * java/net/NetworkInterface.java
7295 (getByName): Return null when no interface was found.
7297 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
7298 Tom Tromey <tromey@redhat.com>
7300 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
7301 additional option "-Wmissing-prototypes" for compiling C sources.
7302 Print actual filename for pass/fail rather than $name.c.
7303 * testsuite/libjava.jni/PR15133.java: New testcase file.
7304 * testsuite/libjava.jni/PR15133.c: Likewise.
7305 * testsuite/libjava.jni/PR15133.out: Likewise.
7307 2004-04-30 Roger Sayle <roger@eyesopen.com>
7309 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
7312 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
7314 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
7315 limit the maximum heap size to avoid unnecessary thrashing.
7317 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
7319 * java/text/CollationElementIterator.java (reset): Reset
7320 lookahead variables.
7322 2004-04-23 Mark Wielaard <mark@klomp.org>
7324 * jni/classpath/jcl.c: Changed C++ comments into C comments.
7326 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7328 * java/sql/DriverManager.java:
7331 2004-04-23 Michael Koch <konqueror@gmx.de>
7334 (hashcode): Don't initialize with default value explicitely.
7335 (getContent): Removed redundant "final" keyword.
7336 (openStream): Likewise.
7337 (getURLStreamHandler): Fixed coding style.
7338 * java/net/URLConnection.java
7339 (defaultAllowUserInteraction): Don't initialize with default value
7341 (connected): Likewise.
7342 (doOutput): Likewise.
7343 (ifModifiedSince): Likewise.
7344 (dateformats_initialized): Likewise.
7345 (setURLStreamHander): Use StreamTokenizer where it belongs to.
7347 2004-04-23 Michael Koch <konqueror@gmx.de>
7349 * gnu/java/nio/channels/FileChannelImpl.java
7350 (SET, CUR): Unused, removed.
7351 (read): Implement here directly.
7352 (implRead): Removed.
7353 (write): Implement here directly.
7354 (implWrite): Removed.
7356 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7358 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
7359 javax/rmi/CORBA/Stub.java,
7360 javax/rmi/CORBA/Util.java,
7361 javax/rmi/CORBA/ValueHandler.java,
7362 javax/rmi/CORBA/ValueHandler.java,
7363 javax/rmi/PortableRemoteObject.java:
7366 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7368 * java/util/jar/JarFile.java,
7369 java/util/jar/JarInputStream.java,
7370 java/util/jar/JarOutputStream.java,
7371 java/util/jar/Manifest.java:
7374 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7376 * java/util/ArrayList.java,
7377 java/util/Calendar.java,
7378 java/util/Currency.java,
7379 java/util/HashMap.java,
7380 java/util/HashSet.java,
7381 java/util/Hashtable.java,
7382 java/util/LinkedList.java,
7383 java/util/Properties.java,
7384 java/util/PropertyPermission.java,
7385 java/util/TimeZone.java,
7386 java/util/TreeMap.java,
7387 java/util/TreeSet.java,
7388 java/util/Vector.java,
7389 java/util/WeakHashMap.java:
7392 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7394 * java/util/logging/FileHandler.java,
7395 java/util/logging/Formatter.java,
7396 java/util/logging/Handler.java,
7397 java/util/logging/Logger.java,
7398 java/util/logging/SimpleFormatter.java,
7399 java/util/logging/XMLFormatter.java:
7402 2004-04-22 Mark Wielaard <mark@klomp.org>
7404 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
7405 -Wno-long-long flags variable.
7406 (gtk_c_files): Use PEDANTIC_CFLAGS.
7407 * Makefile.in: Regenerated.
7409 2004-04-22 Mark Wielaard <mark@klomp.org>
7411 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7412 Changed C++ comments into C comments.
7413 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
7416 2004-04-22 Michael Koch <konqueror@gmx.de>
7418 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
7419 Merged copyright year with GNU classpath.
7421 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7423 * javax/security/auth/x500/X500Principal.java:
7426 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7428 * javax/swing/JSlider.java:
7429 Fixed HTML tags in comments.
7431 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7433 * javax/accessibility/AccessibleText.java:
7436 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
7438 * java/net/URLStreamHandler.java
7439 (parseURL): Convert the file path to using '/' instead of native
7442 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
7445 (userInfo): New field.
7446 (URL): Set authority to the right value.
7447 (setURL): Fixed authority and file initialization.
7448 * java/net/URLStreamHandler.java
7449 (parseURL): Take care of the query tag. Build authority.
7450 (toExternalForm): Fixed URL building using authority.
7452 2004-04-22 Michael Koch <konqueror@gmx.de>
7454 * java/net/Socket.java
7455 (impl): Made package-private.
7456 * java/net/ServerSocket.java
7457 (implAccept): Access Socket.impl field directly.
7459 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7461 * java/util/prefs/Preferences.java,
7462 java/util/prefs/InvalidPreferencesFormatException.java,
7463 java/util/prefs/BackingStoreException.java,
7464 java/util/prefs/AbstractPreferences.java:
7467 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7469 * java/util/regex/Matcher.java,
7470 java/util/regex/Pattern.java:
7473 2004-04-22 Michael Koch <konqueror@gmx.de>
7475 * java/nio/charset/IllegalCharsetNameException.java
7476 (charsetName): Made private.
7477 (IllegalCharsetNameException): Added @param tag to javadoc.
7478 (getCharsetName): Added @return tag to javadoc.
7479 * java/nio/charset/MalformedInputException.java
7480 (MalformedInputException): Added @param tag to javadoc.
7481 (getInputLength): Revised method description, added @return tag.
7482 (getMessage): Added @return tag.
7484 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
7486 * java/awt/Font.java (deriveFont): Implement missing variants.
7487 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
7490 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
7492 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
7493 Set method->index values for interface methods to their itable index.
7494 (initializeClass): Call _Jv_LayoutInterfaceMethods.
7496 2004-04-21 Michael Koch <konqueror@gmx.de>
7498 * java/nio/DirectByteBufferImpl.java
7499 (shiftDown): Made static, give address as argument and
7500 provide a convenience method that overwrites shiftDown in
7501 ByteBufferImpl and calls the native shiftDown.
7502 * java/nio/MappedByteBufferImpl.java
7503 (): Use optimized method in DirectByteBufferImpl.
7504 * java/nio/natDirectByteBufferImpl.cc
7505 (shiftDown): Changed method signature. Removed usage of array_offset.
7507 2004-04-21 Michael Koch <konqueror@gmx.de>
7509 * gnu/java/net/natPlainSocketImplPosix.cc
7510 (SocketInputStream::read): Make sure returned data is a byte value.
7512 2004-04-21 Michael Koch <konqueror@gmx.de>
7514 * gnu/classpath/ServiceFactory.java,
7515 gnu/classpath/ServiceProviderLoadingAction.java,
7516 javax/imageio/ImageReader.java,
7517 javax/imageio/ImageTranscoder.java,
7518 javax/imageio/ImageWriter.java,
7519 javax/imageio/package.html,
7520 javax/imageio/spi/IIOServiceProvider.java,
7521 javax/imageio/spi/ImageInputStreamSpi.java,
7522 javax/imageio/spi/ImageOutputStreamSpi.java,
7523 javax/imageio/spi/ImageReaderWriterSpi.java,
7524 javax/imageio/spi/ImageTranscoderSpi.java,
7525 javax/imageio/spi/RegisterableService.java,
7526 javax/imageio/spi/ServiceRegistry.java,
7527 javax/imageio/spi/package.html,
7528 javax/imageio/stream/IIOByteBuffer.java,
7529 javax/imageio/stream/ImageInputStream.java,
7530 javax/imageio/stream/ImageOutputStream.java,
7531 javax/imageio/stream/package.html:
7534 (ordinary_java_source_files): Added
7535 gnu/classpath/ServiceFactory.java and
7536 gnu/classpath/ServiceProviderLoadingAction.java.
7537 (javax_source_files): Added
7538 javax/imageio/ImageReader.java,
7539 javax/imageio/ImageTranscoder.java,
7540 javax/imageio/ImageWriter.java,
7541 javax/imageio/spi/IIOServiceProvider.java,
7542 javax/imageio/spi/ImageInputStreamSpi.java,
7543 javax/imageio/spi/ImageOutputStreamSpi.java,
7544 javax/imageio/spi/ImageReaderWriterSpi.java,
7545 javax/imageio/spi/ImageTranscoderSpi.java,
7546 javax/imageio/spi/RegisterableService.java,
7547 javax/imageio/spi/ServiceRegistry.java,
7548 javax/imageio/stream/IIOByteBuffer.java,
7549 javax/imageio/stream/ImageInputStream.java and
7550 javax/imageio/stream/ImageOutputStream.java.
7551 * Makefile.in: Regenerated.
7553 2004-04-21 Michael Koch <konqueror@gmx.de>
7555 * java/util/Properties.java
7556 (load): Fix wrongly merged fix.
7558 2004-04-21 Mark Wielaard <mark@klomp.org>
7560 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
7561 malloc and free buf.
7563 2004-04-21 Dalibor Topic <robilad@kaffe.org>
7565 * javax/naming/AuthenticationException.java,
7566 javax/naming/AuthenticationNotSupportedException.java,
7567 javax/naming/CannotProceedException.java,
7568 javax/naming/CommunicationException.java,
7569 javax/naming/CompoundName.java,
7570 javax/naming/ConfigurationException.java,
7571 javax/naming/ContextNotEmptyException.java,
7572 javax/naming/InitialContext.java,
7573 javax/naming/InsufficientResourcesException.java,
7574 javax/naming/InterruptedNamingException.java,
7575 javax/naming/LimitExceededException.java,
7576 javax/naming/LinkException.java,
7577 javax/naming/LinkLoopException.java,
7578 javax/naming/LinkRef.java,
7579 javax/naming/MalformedLinkException.java,
7580 javax/naming/Name.java,
7581 javax/naming/NameAlreadyBoundException.java,
7582 javax/naming/NameNotFoundException.java,
7583 javax/naming/NamingSecurityException.java,
7584 javax/naming/NoInitialContextException.java,
7585 javax/naming/NoPermissionException.java,
7586 javax/naming/NotContextException.java,
7587 javax/naming/PartialResultException.java,
7588 javax/naming/ReferralException.java,
7589 javax/naming/ServiceUnavailableException.java,
7590 javax/naming/SizeLimitExceededException.java,
7591 javax/naming/TimeLimitExceededException.java,
7592 javax/naming/directory/Attribute.java,
7593 javax/naming/directory/Attributes.java,
7594 javax/naming/directory/SearchResult.java,
7595 javax/naming/event/NamingExceptionEvent.java,
7596 javax/naming/spi/ResolveResult.java:
7599 2004-04-21 Mark Wielaard <mark@klomp.org>
7601 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
7602 Changed C++ comments into C comments. Removed commented out code.
7603 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7605 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
7607 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
7609 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
7611 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
7613 * native/jni/gtk-peer/gthread-jni.c:
7616 2004-04-21 Mark Wielaard <mark@klomp.org>
7618 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
7619 static fields defined in interface.
7620 * javax/awt/JDialog.java: Likewise.
7621 (JDialog): Make constructors public.
7622 (getDefaultCloseOperation): Make public.
7623 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
7624 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
7625 * javax/swing/JViewport.java (JViewport): Make constructor public.
7627 2004-04-21 Michael Koch <konqueror@gmx.de>
7629 * java/util/Map.java
7630 (Entry): Removed redundant "static" modifier.
7631 * java/text/AttributedCharacterIterator.java:
7632 Updated copyright year.
7634 2004-04-20 Michael Koch <konqueror@gmx.de>
7636 * javax/naming/directory/SearchControls.java:
7637 Don't explicitely extend java.lang.Object.
7638 * javax/naming/spi/DirStateFactory.java:
7639 Merged copyright year with GNU classpath.
7641 2004-04-20 Michael Koch <konqueror@gmx.de>
7643 * java/nio/channels/Channels.java:
7644 Merged coding style with GNU classpath.
7646 2004-04-20 Michael Koch <konqueror@gmx.de>
7648 * java/net/ServerSocket.java
7649 Merged coding style from GNU classpath.
7651 2004-04-20 Michael Koch <konqueror@gmx.de>
7653 * java/io/BufferedWriter.java:
7654 Reordered variables to be at top of the class.
7655 (localFlush): Removed redundant final keyword.
7657 2004-04-20 Ingo Proetel <proetel@aicas.com>
7659 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
7661 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7663 * java/text/DecimalFormat.java (scanFix): Removed suffix check
7664 for percent and permill check.
7666 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7668 * java/text/FieldPosition.java
7669 (FieldPosition) Constructor now behaves as it should according
7670 to the java documentation.
7672 2004-04-20 Mark Wielaard <mark@klomp.org>
7674 * java/util/Properties.java: Use the word umlaut, not ä in api
7677 2004-04-20 Michael Koch <konqueror@gmx.de>
7679 * java/nio/Buffer.java,
7680 java/nio/channels/AlreadyConnectedException.java,
7681 java/nio/channels/AsynchronousCloseException.java,
7682 java/nio/channels/ByteChannel.java,
7683 java/nio/channels/CancelledKeyException.java,
7684 java/nio/channels/Channel.java,
7685 java/nio/channels/Channels.java,
7686 java/nio/channels/ClosedByInterruptException.java,
7687 java/nio/channels/ClosedChannelException.java,
7688 java/nio/channels/ClosedSelectorException.java,
7689 java/nio/channels/ConnectionPendingException.java,
7690 java/nio/channels/DatagramChannel.java,
7691 java/nio/channels/FileChannel.java,
7692 java/nio/channels/FileLock.java,
7693 java/nio/channels/FileLockInterruptionException.java,
7694 java/nio/channels/GatheringByteChannel.java,
7695 java/nio/channels/IllegalBlockingModeException.java,
7696 java/nio/channels/IllegalSelectorException.java,
7697 java/nio/channels/InterruptibleChannel.java,
7698 java/nio/channels/NoConnectionPendingException.java,
7699 java/nio/channels/NonReadableChannelException.java,
7700 java/nio/channels/NonWritableChannelException.java,
7701 java/nio/channels/NotYetBoundException.java,
7702 java/nio/channels/NotYetConnectedException.java,
7703 java/nio/channels/OverlappingFileLockException.java,
7704 java/nio/channels/Pipe.java,
7705 java/nio/channels/ReadableByteChannel.java,
7706 java/nio/channels/ScatteringByteChannel.java,
7707 java/nio/channels/SelectableChannel.java,
7708 java/nio/channels/SelectionKey.java,
7709 java/nio/channels/Selector.java,
7710 java/nio/channels/ServerSocketChannel.java,
7711 java/nio/channels/SocketChannel.java,
7712 java/nio/channels/UnresolvedAddressException.java,
7713 java/nio/channels/UnsupportedAddressTypeException.java,
7714 java/nio/channels/WritableByteChannel.java,
7715 java/nio/channels/spi/AbstractInterruptibleChannel.java,
7716 java/nio/channels/spi/AbstractSelectableChannel.java,
7717 java/nio/channels/spi/AbstractSelectionKey.java,
7718 java/nio/channels/spi/AbstractSelector.java,
7719 java/nio/channels/spi/SelectorProvider.java,
7720 java/nio/charset/spi/CharsetProvider.java:
7721 Fixed javadocs and jalopied all over java.nio.
7723 2004-04-20 Michael Koch <konqueror@gmx.de>
7725 * java/nio/ByteBufferImpl.java,
7726 java/nio/CharBufferImpl.java,
7727 java/nio/DirectByteBufferImpl.java,
7728 java/nio/DoubleBufferImpl.java,
7729 java/nio/DoubleViewBufferImpl.java,
7730 java/nio/FloatBufferImpl.java,
7731 java/nio/FloatViewBufferImpl.java,
7732 java/nio/IntBufferImpl.java,
7733 java/nio/IntViewBufferImpl.java,
7734 java/nio/LongBufferImpl.java,
7735 java/nio/LongViewBufferImpl.java,
7736 java/nio/MappedByteBufferImpl.java,
7737 java/nio/ShortBufferImpl.java,
7738 java/nio/ShortViewBufferImpl.java:
7739 Made sure all classes are final and removed final keyword from all
7742 2004-04-20 Michael Koch <konqueror@gmx.de>
7744 * java/rmi/MarshalledObject.java,
7745 java/rmi/Naming.java,
7746 java/rmi/RemoteException.java,
7747 java/rmi/activation/ActivationException.java,
7748 java/rmi/server/ServerCloneException.java,
7749 java/security/AccessController.java,
7750 java/security/AlgorithmParameterGenerator.java,
7751 java/security/AlgorithmParameters.java,
7752 java/security/CodeSource.java,
7753 java/security/Identity.java,
7754 java/security/IdentityScope.java,
7755 java/security/KeyPairGenerator.java,
7756 java/security/KeyStore.java,
7757 java/security/Security.java,
7758 java/security/Signature.java,
7759 java/security/SignatureSpi.java,
7760 java/security/SignedObject.java,
7761 java/security/spec/DSAParameterSpec.java,
7762 java/security/spec/DSAPrivateKeySpec.java,
7763 java/security/spec/DSAPublicKeySpec.java,
7764 java/sql/Array.java,
7765 java/sql/DatabaseMetaData.java,
7766 java/sql/ResultSet.java,
7767 java/text/ChoiceFormat.java,
7768 java/text/CollationElementIterator.java,
7769 java/text/CollationKey.java,
7770 java/text/Collator.java,
7771 java/text/DateFormat.java,
7772 java/text/DateFormatSymbols.java,
7773 java/text/DecimalFormatSymbols.java,
7774 java/text/Format.java,
7775 java/text/ParsePosition.java,
7776 java/text/RuleBasedCollator.java,
7777 java/text/SimpleDateFormat.java,
7778 java/text/StringCharacterIterator.java,
7779 java/util/Collections.java,
7780 java/util/PropertyResourceBundle.java,
7781 java/util/ResourceBundle.java,
7782 java/util/StringTokenizer.java,
7783 java/util/jar/Attributes.java,
7784 java/util/logging/ConsoleHandler.java,
7785 java/util/logging/LogManager.java,
7786 java/util/logging/MemoryHandler.java,
7787 java/util/logging/SocketHandler.java,
7788 javax/naming/NamingException.java:
7789 Fixed javadoc, coding style and argument names all over.
7791 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7793 * java/io/FileDescriptor.java: (FileDescriptor) Added public
7794 constructor. (valid) Added null check.
7796 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7798 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
7799 * java/io/FileOutputStream.java
7800 (FileOutputStream) Reorganized constructors. Constructors now
7801 check whether the given path is directory.
7803 2004-04-20 Michael Koch <konqueror@gmx.de>
7805 * java/net/Authenticator.java,
7806 java/net/BindException.java,
7807 java/net/ConnectException.java,
7808 java/net/ContentHandler.java,
7809 java/net/ContentHandlerFactory.java,
7810 java/net/DatagramPacket.java,
7811 java/net/DatagramSocket.java,
7812 java/net/DatagramSocketImpl.java,
7813 java/net/DatagramSocketImplFactory.java,
7814 java/net/FileNameMap.java,
7815 java/net/HttpURLConnection.java,
7816 java/net/Inet4Address.java,
7817 java/net/Inet6Address.java,
7818 java/net/InetAddress.java,
7819 java/net/InetSocketAddress.java,
7820 java/net/JarURLConnection.java,
7821 java/net/MalformedURLException.java,
7822 java/net/MulticastSocket.java,
7823 java/net/NetPermission.java,
7824 java/net/NetworkInterface.java,
7825 java/net/NoRouteToHostException.java,
7826 java/net/PasswordAuthentication.java,
7827 java/net/PortUnreachableException.java,
7828 java/net/ProtocolException.java,
7829 java/net/ServerSocket.java,
7830 java/net/Socket.java,
7831 java/net/SocketAddress.java,
7832 java/net/SocketException.java,
7833 java/net/SocketImpl.java,
7834 java/net/SocketImplFactory.java,
7835 java/net/SocketOptions.java,
7836 java/net/SocketPermission.java,
7837 java/net/SocketTimeoutException.java,
7839 java/net/URISyntaxException.java,
7841 java/net/URLClassLoader.java,
7842 java/net/URLConnection.java,
7843 java/net/URLDecoder.java,
7844 java/net/URLEncoder.java,
7845 java/net/URLStreamHandler.java,
7846 java/net/URLStreamHandlerFactory.java,
7847 java/net/UnknownHostException.java,
7848 java/net/UnknownServiceException.java:
7849 Fixed javadocs, coding style and argument names all over.
7851 2004-04-20 Michael Koch <konqueror@gmx.de>
7853 * java/lang/Byte.java,
7854 java/lang/CharSequence.java,
7855 java/lang/ClassLoader.java,
7856 java/lang/Compiler.java,
7857 java/lang/Double.java,
7858 java/lang/Float.java,
7859 java/lang/Integer.java,
7860 java/lang/Long.java,
7861 java/lang/Math.java,
7862 java/lang/Number.java,
7863 java/lang/Package.java,
7864 java/lang/Runtime.java,
7865 java/lang/RuntimePermission.java,
7866 java/lang/SecurityManager.java,
7867 java/lang/Short.java,
7868 java/lang/StringBuffer.java,
7869 java/lang/System.java,
7870 java/lang/ThreadGroup.java,
7871 java/lang/Throwable.java,
7872 java/lang/reflect/InvocationHandler.java,
7873 java/lang/reflect/Proxy.java:
7874 Fixed javadocs, coding style and argument names all over.
7876 2004-04-20 Michael Koch <konqueror@gmx.de>
7878 * java/io/BufferedWriter.java,
7879 java/io/ByteArrayInputStream.java,
7880 java/io/CharArrayWriter.java,
7881 java/io/DataInput.java,
7882 java/io/DataInputStream.java,
7884 java/io/FilterInputStream.java,
7885 java/io/InputStream.java,
7886 java/io/InputStreamReader.java,
7887 java/io/ObjectInputStream.java,
7888 java/io/ObjectStreamClass.java,
7889 java/io/PipedInputStream.java,
7890 java/io/PipedReader.java,
7891 java/io/PushbackInputStream.java,
7892 java/io/PushbackReader.java,
7893 java/io/RandomAccessFile.java,
7894 java/io/SerializablePermission.java,
7895 java/io/StreamTokenizer.java,
7896 java/io/StringWriter.java,
7897 java/io/WriteAbortedException.java,
7898 java/io/Writer.java:
7899 Fixed javadocs all over, rename arguments to match javadocs,
7902 2004-04-20 Ingo Proetel <proetel@aicas.com>
7904 * java/awt/FontMetrics.java:
7905 (charsWidth): fixed accumulation of total_width
7906 (getWidth): simple default implementation
7907 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
7908 in Rectangle constructor.
7909 * java/awt/image/Raster.java (toString): Added method.
7910 * java/awt/image/SampleModel.java (<init>): Added error cause
7911 information to thrown exception.
7912 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
7914 (setDataElements): New method.
7915 (setPixels): New method.
7916 (toString): New method.
7918 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7920 * java/awt/image/ComponentColorModel.java
7921 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
7922 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
7923 Mauve tests on this method. Improved documentation.
7925 2004-04-20 Michael Koch <konqueror@gmx.de>
7927 * javax/swing/JLayeredPane.java,
7928 javax/swing/plaf/BorderUIResource.java,
7929 javax/swing/plaf/ComponentUI.java,
7930 javax/swing/undo/CompoundEdit.java,
7931 javax/swing/undo/StateEdit.java:
7932 Fixed HTML tags in javadocs all over.
7934 2004-04-20 Michael Koch <konqueror@gmx.de>
7936 * javax/print/attribute/EnumSyntax.java
7937 (getOffset): Made protected.
7938 * javax/print/attribute/HashAttributeSet.java
7939 (HashAttributeSet): Likewise.
7940 * javax/print/attribute/ResolutionSyntax.java
7941 (getFeedResolution): Fixed typo in exception name.
7942 (getCrossFeedResolution): Likewise.
7943 * javax/print/attribute/SetOfIntegerSyntax.java
7944 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
7945 * javax/print/attribute/TextSyntax.java
7946 (TextSyntax): Handle locale correctly.
7947 (hashCode): Calc better hashcode value.
7948 (equals): Fixed @return tag.
7949 (toString): New method.
7951 2004-04-20 Michael Koch <konqueror@gmx.de>
7953 * gnu/java/nio/FileLockImpl.java
7954 (static): Removed, not needed anymore.
7955 * gnu/java/nio/channels/FileChannelImpl.java
7956 (FileChannelImpl): Made final.
7957 (mode): Made private.
7958 (READ, WRITE, APPEND): Made public.
7959 (EXCL, SYNC, DSYNC): Likewise.
7960 (static): Load native JNI library, when needed.
7961 (length): Unused, removed.
7962 (available): Made public.
7963 (implPosition): Throws IOException.
7965 (implTruncate): Likewise.
7969 2004-04-20 Michael Koch <konqueror@gmx.de>
7971 * java/awt/AWTPermission.java,
7972 java/awt/Component.java,
7973 java/awt/ComponentOrientation.java,,
7974 java/awt/Dialog.java,
7975 java/awt/FontMetrics.java,
7976 java/awt/Graphics.java,
7977 java/awt/datatransfer/DataFlavor.java,
7978 java/beans/Introspector.java,
7979 java/beans/PropertyEditor.java,
7980 java/beans/PropertyEditorManager.java,
7981 java/beans/beancontext/BeanContextServiceProvider.java:
7982 Fixed HTML tags in javadocs all over.
7984 2004-04-20 Mark Wielaard <mark@klomp.org>
7986 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
7987 MissingResourceException is thrown.
7988 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
7989 null when a MissingResourceException is thrown. Should never happen.
7991 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7993 * java/awt/image/DataBufferShort.java,
7994 java/awt/image/DataBufferFloat.java,
7995 java/awt/image/DataBufferDouble.java,
7996 java/awt/image/PixelInterleavedSampleModel.java: New files.
7997 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
7998 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
8000 2004-04-20 Michael Koch <konqueror@gmx.de>
8002 * Makefile.am (java_source_files): Added
8003 java/awt/image/DataBufferDouble.java,
8004 java/awt/image/DataBufferFloat.java,
8005 java/awt/image/DataBufferShort.java and
8006 java/awt/image/PixelInterleavedSampleModel.java.
8007 * Makefile.in: Regenerated.
8009 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
8011 * gcj/cni.h (JvAllocObject): Remove these obsolete,
8012 undocumented CNI calls.
8013 * include/java-interp.h (_Jv_InterpClass): No longer
8014 extends java.lang.Class.
8015 * java/lang/Class.h (Class): Add new field `aux_info'.
8016 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
8017 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
8018 Use Class->aux_info instead.
8019 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
8020 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
8021 Use Class->aux_info instead.
8022 * java/io/natObjectInputStream.cc (allocateObject): Use
8024 * java/lang/natClass.cc (newInstance): Likewise.
8025 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
8026 * java/lang/natObject.cc (clone): Likewise.
8027 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
8028 * java/lang/natVMClassLoader.cc (defineClass): Don't use
8029 JvAllocObject. Allocate klass->aux_info here for interpreted
8032 2004-04-17 Mark Wielaard <mark@klomp.org>
8034 * javax/swing/JToggleButton.java (ToggleButtonModel):
8035 Make public static inner class.
8036 * javax/swing/JTabbedPane.java (setComponentAt):
8037 Call Page.setComponent().
8038 (SCROLL_TAB_LAYOUT): Make public, value is 1.
8039 (WRAP_TAB_LAYOUT): Make public, value is 0.
8040 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
8041 Make private static inner class.
8043 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
8045 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
8046 arguments to match new signature. Remove FIXME comments.
8048 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
8050 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
8052 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
8055 2004-04-02 Olga Rodimina <rodimina@redhat.com>
8057 * Makefile.am: Added new file.
8058 * Makefile.in: Regenerate.
8059 * javax/swing/ImageIcon.java:
8060 (ImageIcon(file)): set description of the icon
8062 * javax/swing/JCheckBoxMenuItem.java:
8063 Mostly Implemented. Work in progress.
8064 * javax/swing/JRadioButtonMenuItem.java:
8065 Reimplement constructors to use JToggleButtonModel.
8066 * javax/swing/plaf/basic/BasicIconFactory.java:
8067 (getCheckBoxMenuItemIcon): return check box
8069 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8070 paint menu item selected only when it is armed and
8073 2004-04-02 David Jee <djee@redhat.com>
8075 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
8076 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
8077 * java/awt/Component.java
8078 (add): Set the parent of the popup as this component.
8079 * java/awt/PopupMenu.java
8080 (addNotify): Create popup menu when peer is null.
8081 (show): Call addNotify() if peer is null.
8082 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
8083 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
8084 argument for gtk_menu_popup() as zero. This causes the popup menu to
8085 respond to any mouse button.
8087 2004-03-31 Olga Rodimina <rodimina@redhat.com>
8089 * Makefile.am: Added new file.
8090 * Makefile.in: Regenerate.
8091 * javax/swing/JRadioButtonMenuItem.java:
8093 * javax/swing/plaf/basic/BasicIconFactory.java:
8094 (getRadioButtonMenuItemIcon): Return
8096 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8097 (getPreferredSize): Add size of checkIcon if it
8099 (installDefaults): Don't initialize checkIcon.
8100 It's value will be set in subclasses.
8101 (uninstallDefaults): remove uninstallation of
8103 (paint): Moved code to paintMenuItem().
8104 (paintMenuItem): Implemented.
8105 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
8106 UI delegate for JRadioButtonMenuItem.
8108 2004-03-29 Olga Rodimina <rodimina@redhat.com>
8110 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8111 Corrected position of the accelerator.
8113 2004-03-29 Olga Rodimina <rodimina@redhat.com>
8115 * Makefile.am: Added new file.
8116 * Makefile.in: Regenerate.
8117 * javax/swing/JMenuItem.java: Partly
8118 implemented. Work in progress
8119 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8120 Changed default value of acceleratorDelimiter.
8121 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8122 New class. Partly implemented.
8124 2004-03-26 Mark Wielaard <mark@klomp.org>
8126 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8127 (item_activate): Declare label before use.
8128 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8129 (gtkSetFont): Removed unused variable label.
8130 (addExposeFilter): Declare variables before use.
8131 (removeExposeFilter): Likewise.
8132 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8133 (ok_clicked): Declare str_fileName before use.
8135 2004-03-26 David Jee <djee@redhat.com>
8137 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
8138 (addSeparator): Remove.
8139 * java/awt/Menu.java
8140 (separator): Remove static final MenuItem field.
8141 (separatorLabel): New static final String field.
8142 (addSeparator): Do not use peer method; use add(MenuItem) instead.
8143 Use separatorLabel to denote that it is a separator.
8144 (insertSeparator): Create a new MenuItem with separatorLabel, instead
8145 of reusing the static separator instance, because a MenuItem instance
8146 can't be added more than once without being cloned.
8147 * java/awt/peer/MenuPeer.java
8148 (addSeparator): Remove from interface.
8150 2004-03-26 David Jee <djee@redhat.com>
8152 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
8153 (connectSignals): New native method declaration.
8154 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
8155 * java/awt/MenuItem.java
8156 (getActionCommand): Return the label if the action command is not set.
8157 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
8158 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
8159 gtk_menu_shell_append().
8160 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
8161 (item_activate): Fix argument type.
8162 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
8164 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
8166 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
8167 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
8168 given. Add the menu widget's top-level GtkWindow to the global window
8169 group, so it can grab the pointer.
8170 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
8171 gtk_menu_shell_append().
8173 2004-03-23 Graydon Hoare <graydon@redhat.com>
8175 * java/text/AttributedString.java
8176 (addAttribute): Fix off-by-one.
8177 (getIterator): Likewise.
8178 * java/text/AttributedStringIterator.java
8179 (getRunLimit): Correct logic.
8180 (getRunStart): Likewise.
8181 (getAttribute): Fix inequality.
8182 (getAttributes): Likewise.
8183 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
8185 2004-03-23 Kim Ho <kho@redhat.com>
8187 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
8188 (calculateSizes): Return real width and height.
8190 2004-03-23 Kim Ho <kho@redhat.com>
8192 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
8193 (calculateTabRects): Set the selectedRun before
8194 trying to rotate tabs.
8196 2004-03-23 Kim Ho <kho@redhat.com>
8198 * Makefile.am: New file
8199 * Makefile.in: Regenerate
8200 * java/awt/Graphics.java: (drawRect):
8201 Draw to the correct point.
8202 * javax/swing/DefaultSingleSelectionModel.java
8203 (isSelected): Return true if the selected index
8205 * javax/swing/JLabel.java: Do not change mnemonic
8206 index if text is null.
8207 * javax/swing/JProgressBar.java: Use JComponent's
8209 * javax/swing/JScrollBar.java: Ditto.
8210 * javax/swing/JSlider.java: Ditto.
8211 * javax/swing/JTabbedPane.java: Reimplement.
8212 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8213 Add defaults for TabbedPane.
8214 * javax/swing/plaf/basic/BasicArrowButton.java:
8216 * javax/swing/plaf/basic/BasicProgressBarUI.java:
8217 (paintDeterminate): Don't paint String if it's
8219 (paintIndeterminate): ditto.
8220 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
8223 2004-03-19 Michael Koch <konqueror@gmx.de>
8225 * java/awt/image/AffineTransformOp.java
8226 (AffineTransformOp): Made public.
8227 * javax/swing/JComponent.java
8228 (listenerList): Made protected.
8229 (accessibleContext): Likewise.
8230 * javax/swing/JList.java
8231 (valueChanged): Dont use internal fields of ListSelectionEvent.
8232 * javax/swing/JViewport.java
8233 (getView): Dont use internal fields of Component.
8234 (addImpl): Likewise.
8235 * javax/swing/Timer.java
8236 (isRunning): Made public.
8239 * javax/swing/UIDefaults.java
8240 (getInt): Made public.
8241 * javax/swing/plaf/basic/BasicListUI.java
8242 (mousePressed): Dont use internal fields of MouseEvent.
8243 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
8244 * javax/swing/plaf/basic/BasicScrollBarUI.java
8245 (arrowIcon): Made static.
8246 * javax/swing/plaf/basic/BasicViewportUI.java
8247 (stateChanged): Dont use internal field on ChangeEvent.
8248 * javax/swing/text/JTextComponent.java
8249 (getUI): Call UIManager.getUI().
8250 (updateUI): Use getUI().
8252 2004-03-19 Graydon Hoare <graydon@redhat.com>
8254 * javax/swing/JComponent.java: Turn off double buffer by default.
8255 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
8256 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8257 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
8258 Use cairo to copy areas.
8259 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
8260 Initialize and set clip region.
8262 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
8264 * java/applet/Applet.java (preferredSize): Override deprecated
8265 variant of getPreferredSize.
8266 (minimumSize): Override deprecated variant of getMinimumSize.
8268 2004-03-15 Olga Rodimina <rodimina@redhat.com>
8270 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8271 (drawImage(img,xform,bgcolor,obs)): New Method.
8272 Helper function that every drawImage method will
8274 (drawRaster): Added new parameter, bgcolor. All
8275 transparent pixels are changed to bgcolor before
8277 (drawRenderedImage): Fixed to use changed drawRaster().
8278 (drawImage(image,xform,obs): Fixed to use new helper function
8279 (drawImage(image,op,x,y)): Ditto.
8280 (drawImage (img,x,y,observer)): Ditto.
8281 ((PainterThread) bgcolor): New Field.
8282 ((PainterThread) (setPixels)): Changed all transparent pixels
8284 (drawImage(img,x,y,width,height,bgcolor,observer)):
8285 Fixed FIXME - all the transparent pixels are
8286 changed to the specified bgcolor.
8287 (drawImage(img, x, y, width, height, observer): Changed to
8289 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
8290 Fixed FIXME- changed all transparent pixels to bgcolor.
8291 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
8292 Changed to use function above.
8294 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
8296 * java/applet/Applet.java (dimensions): New field.
8297 (getDimensions): New method.
8298 (getPreferredSize): Call getDimensions.
8299 (getMinimumSize): Likewise.
8301 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8303 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
8304 * jni/classpath/jnilink.c: Likewise.
8306 * java/applet/Applet.java (getPreferredSize): New method.
8307 (getMinimumSize): New method.
8309 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
8311 * prims.cc (_Jv_AllocObject): Remove `size' argument.
8312 (_Jv_AllocObjectNoFinalizer): Likewise.
8313 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
8314 (_Jv_AllocPtrFreeObject): Likewise.
8315 (_Jv_AllocString): Moved from natString.cc. Call collector interface
8316 directly even in the JVMPI case.
8317 * gcj/cni.h (JvAllocObject): Remove `size' argument from
8318 _Jv_AllocObject calls.
8319 * gcj/javaprims.h: Update prototypes.
8320 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
8321 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
8322 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
8324 2004-04-14 Andrew Haley <aph@redhat.com>
8325 Bryce McKinlay <mckinlay@redhat.com>
8327 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
8328 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
8329 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
8331 * testsuite/libjava.lang/InvokeInterface.java: New file.
8332 * testsuite/libjava.lang/InvokeInterface.out: New file.
8334 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
8336 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
8338 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
8339 StackTraceElement directly.
8340 (newElement): New native helper method to create StackTraceElement
8341 bypassing Java access control.
8342 (createStackTraceElement): Use newElement() instead of directly
8343 calling StackTraceElement's constructor.
8344 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
8346 2004-04-01 Michael Koch <konqueror@gmx.de>
8348 * java/lang/SecurityManager.java
8349 (checkAwtEventQueueAccess): Implemented.
8351 2004-04-01 Gary Benson <gbenson@redhat.com>
8353 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
8354 (_Jv_SearchMethodInClass): Likewise.
8356 2004-03-26 Peter Moon <peterm@miraculum.com>
8358 * java/text/NumberFormat.java: Fix spelling of setCurrency
8361 2004-03-21 Anthony Green <green@redhat.com>
8363 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
8364 recursion when searching for the system ClassLoader.
8366 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
8368 * java/net/ServerSocket.java
8369 (accept): Close the socket when error occured.
8371 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
8373 * java/net/URI.java (parseURI): Added unquoting.
8374 (unquote): New method.
8375 (quoteAuthority): Implemented.
8376 (quote(String,String)): New method.
8377 (quotePath): Implemented.
8378 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
8379 (getSchemeSpecificPart): Removed FIXME comment.
8380 (getRawAuthority): Return new rawAuthority field.
8381 (getAuthority): Removed FIXME comment.
8382 (getRawUserInfo): Return new rawUserInfo field.
8383 (getUserInfo): Removed FIXME comment.
8384 (getRawPath): Return new rawPath field.
8385 (getPath): Removed FIXME comment.
8386 (getRawQuery): Return new rawQuery field.
8387 (getQuery): Removed FIXME comment.
8388 (getRawFragment): Return new rawFragment field.
8389 (getFragment): Removed FIXME comment.
8391 2004-03-20 Michael Koch <konqueror@gmx.de>
8393 * java/net/URLConnection.java: Merged copyright year with classpath.
8395 2004-03-20 Norbert Frese <postfach@nfrese.net>
8397 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
8398 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
8399 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
8401 (getObjectInputStream): Return object reference, throw IOException if null.
8402 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
8403 (getObjectOutputStream): Return object reference, throw IOException if null.
8404 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
8405 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
8406 (UnicastConnectionManager): Throw RemoteException if port is not available.
8407 (getInstance): Throw RemoteException.
8408 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
8409 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
8410 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8411 Collect Exceptions which are returned by a rmi-call and fix void returns.
8412 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
8413 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8414 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
8415 (dispatch): Answer ping messages which are sent by other java implementions.
8416 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
8417 for every rmi-message and fix void return problems.
8418 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
8419 (UnicastServerRef): Throw RemoteException.
8420 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
8421 In some situations it is necessary to export a subclass of the class which has the _Stub.
8422 For instance when the class with has the _Stub is abstract.
8423 (findStubSkelClass): New method which looks for the class which has the _Stub.
8424 (getClientHost): Implementated.
8425 * gcc/libjava/java/rmi/server/RemoteServer.java
8426 (getClientHost): Implementated.
8427 * gcc/libjava/Makefile.am (rmi_java_source_files):
8428 Added gnu/java/rmi/server/RMIIncomingThread.java.
8429 * Makefile.in: Regenerated.
8431 2004-03-20 Michael Koch <konqueror@gmx.de>
8433 * java/net/InetAddress.java
8434 (getLocalHostname): Added javadoc.
8436 2004-03-19 Per Bothner <per@bothner.com>
8438 * configure.in: FILE variable overrides FLATFORM when linking
8439 natFileChannelXXX.cc.
8441 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
8442 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
8444 2004-03-19 Per Bothner <per@bothner.com>
8446 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
8447 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
8448 * Makefile.am: Update accordingly.
8449 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
8450 as aliases for UnicodeLittle and UnicodeBig.
8452 2004-03-20 Mark Wielaard <mark@klomp.org>
8454 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8455 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
8456 Don't access ws when it is null.
8457 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
8460 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
8462 * java/lang/ThreadGroup.java (list): Changed print to println.
8464 2004-03-19 Mark Wielaard <mark@klomp.org>
8466 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
8469 2004-02-10 Randolph Chung <tausq@debian.org>
8471 * configure.in: Build java for hppa target.
8472 * configure: Regenerate.
8473 * libjava/configure.host (hppa-*): Add target.
8474 * libjava/sysdeps/pa/lock.h: New file.
8476 2004-03-19 Mark Wielaard <mark@klomp.org>
8478 Reported by Stephen Crawley
8479 * java/io/FilePermission.java (implies): Use String.length() -1 to
8480 access last char of String.
8482 2004-03-19 Michael Koch <konqueror@gmx.de>
8484 * java/awt/image/AffineTransformOp.java
8485 (AffineTransformOp): Made public.
8486 * javax/swing/JComponent.java
8487 (listenerList): Made protected.
8488 (accessibleContext): Likewise.
8489 * javax/swing/JList.java
8490 (valueChanged): Dont use internal fields of ListSelectionEvent.
8491 * javax/swing/JViewport.java
8492 (getView): Dont use internal fields of Component.
8493 (addImpl): Likewise.
8494 * javax/swing/Timer.java
8495 (isRunning): Made public.
8498 * javax/swing/UIDefaults.java
8499 (getInt): Made public.
8500 * javax/swing/plaf/basic/BasicListUI.java
8501 (mousePressed): Dont use internal fields of MouseEvent.
8502 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
8503 * javax/swing/plaf/basic/BasicScrollBarUI.java
8504 (arrowIcon): Made static.
8505 * javax/swing/plaf/basic/BasicViewportUI.java
8506 (stateChanged): Dont use internal field on ChangeEvent.
8507 * javax/swing/text/JTextComponent.java
8508 (getUI): Call UIManager.getUI().
8509 (updateUI): Use getUI().
8511 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8513 * verify.cc: Undef PC.
8515 2004-03-18 Michael Koch <konqueror@gmx.de>
8517 * java/nio/channels/spi/AbstractSelectableChannel.java
8518 (keys): Initialize at declaration.
8519 (locate): keys cant be null.
8521 (addSelectionKey): New method.
8522 (removeSelectionKey): New method.
8523 * java/nio/channels/spi/AbstractSelectionKey.java
8524 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
8525 * java/nio/channels/spi/AbstractSelector.java
8526 (provider): Javadoc added.
8527 (cancelledKeys): Javadoc added.
8528 (cancelKey): Javadoc added, add key to cancelledKeys.
8529 (deregister): Implemented.
8531 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8533 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
8534 MAP_FAILED to void *.
8536 2004-03-12 Graydon Hoare <graydon@redhat.com>
8538 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
8539 * javax/swing/JComponent.java (paint): Use persistent double buffer.
8540 * javax/swing/JList.java (ListListener): Revalidate on changes.
8541 * javax/swing/JScrollPane.java: Reimplement.
8542 * javax/swing/JViewport.java: Reimplement.
8543 * javax/swing/ScrollPaneLayout.java: Reimplement.
8544 * javax/swing/ViewportLayout.java: Tidy up.
8545 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
8546 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
8547 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
8548 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
8551 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
8553 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8554 (window_wm_protocols_filter): New function.
8555 (window_focus_in_cb): Remove function.
8556 (window_focus_out_cb): Likewise.
8557 (window_focus_or_active_state_change_cb): New function.
8558 (create): Add filter that removes WM_TAKE_FOCUS client messages.
8559 (connectSignals): Don't attach handlers to focus-in-event or
8560 focus-out-event signals. Handle notify signal.
8562 2004-03-11 David Jee <djee@redhat.com>
8564 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8565 (gtkSetLabel): New native method declaration.
8566 (setLabel): Use gtkSetLabel.
8567 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8568 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
8570 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
8572 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
8573 black when color argument is null.
8575 2004-03-10 Kim Ho <kho@redhat.com>
8577 * java/awt/Container.java: Remove check
8580 2004-03-10 Kim Ho <kho@redhat.com>
8582 * java/awt/Container.java: (visitChild):
8583 Remove candidate clip. Use the component
8585 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8586 (handleEvent): Use the PaintEvent's clip.
8588 2004-03-10 Kim Ho <kho@redhat.com>
8590 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8591 (handleEvent): Don't set the clip for the
8594 2004-03-09 Graydon Hoare <graydon@redhat.com>
8596 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
8597 Fix double <-> fixed macros, reset font transform.
8598 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
8601 2004-03-09Â Kim Ho <kho@redhat.com>
8603 * java/awt/Container.java: (visitChild): Move
8604 the x and y coordinate of the component rectangle
8605 to correct position.
8606 (handleEvent): Forward drag events to the pressed
8608 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8610 (ArrowButtonListener::mousePressed): Stop the
8612 (mouseDragged): Implement.
8613 (TrackListener::mousePressed): Only react if
8614 the press doesn't occur on the thumb, otherwise
8615 just set the offset.
8616 (TrackListener::mouseReleased): Unset the isAdjusting
8618 (createIncreaseIcon): Switch icon.
8619 (createDecreaseIcon): Switch icon.
8620 (calculatePreferredSize): Use width.
8621 (getThumbBounds): Use the top as the lower value.
8622 (layoutVScrollBar): Switch the button locations.
8623 (paintIncreaseHighlight): Paint correct side of thumb.
8624 (paintDecreaseHighlight): ditto.
8625 (valueForYPosition): Use top as the lower value.
8626 * javax/swing/plaf/basic/BasicSliderUI.java:
8628 (mouseDragged): Implement.
8629 (mousePressed): Only react when the thumb isn't
8630 pressed, otherwise just set offset.
8631 (mouseReleased): Handle a release of the thumb.
8632 (scrollDueToClickInTrack): Stop the timer first.
8633 * javax/swing/JProgressBar.java:
8634 (setString): Fix change condition.
8635 * javax/swing/JSeparator.java:
8638 2004-03-08 David Jee <djee@redhat.com>
8640 * java/awt/image/AffineTransformOp.java:
8641 (filter): Use Graphics2D interface instead of directly using the
8644 2004-03-05 David Jee <djee@redhat.com>
8646 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
8647 (handleEvent): Action events are generated upon MOUSE_RELEASED.
8648 * java/awt/Container.java
8649 (acquireComponentForMouseEvent): Fixed.
8650 (handleEvent): Fixed.
8651 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8652 (state_to_awt_mods_with_button_states): New method.
8653 (pre_event_handler): Fixed mouse event generation.
8655 2004-03-05 Olga Rodimina <rodimina@redhat.com>
8657 gnu/java/awt/peer/gtk/GdkGraphics2D.java
8658 (GdkGraphics2D (BufferedImage)): Initialize
8659 pixmap associated with specified BufferedImage.
8660 (setPaint): Changed implementation of Texture
8661 Paint to use AffineTransformOp.
8662 * java/awt/image/AffineTransformOp.java
8663 (createCompatibleDestRaster): Throw RasterFormatException
8664 if resulting width or height of raster is 0.
8666 2004-03-04 Olga Rodimina <rodimina@redhat.com>
8668 * java/awt/image/AffineTransformOp.java:
8669 Removed unnecessary field interpolationType.
8670 Formatted some of the lines to be consistent with
8672 (AffineTransformOp): Create new RenderingHints
8673 containing specified interpolation type.
8674 (createCompatibleDestImage): Implemented.
8675 (createCompatibleDestRaster): Implemented.
8676 (filter): Implemented.
8677 (getBounds2D(BufferedImage)): Implemented.
8678 (getBounds2D(Raster)): Implemented.
8679 (getInterpolationType): Get interpolation value from
8682 2004-03-04 David Jee <djee@redhat.com>
8684 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8685 (setFont): Check if child peers are null.
8687 2004-03-04 Graydon Hoare <graydon@redhat.com>
8689 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
8691 (libjava_arguments): Add new libraries to argument list.
8693 2004-03-02 Olga Rodimina <rodimina@redhat.com>
8695 * Makefile.am: Added java/awt/image/AffineTransformOp.java
8696 * Makefile.in: Re-generated.
8697 * java/awt/image/AffineTransformOp.java: New Class.
8699 2004-03-01 Olga Rodimina <rodimina@redhat.com>
8701 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8702 (setPaint): Interpret correctly TexturePaint's
8704 (drawImage): Fixed scale factors of the affine
8707 2004-02-27 David Jee <djee@redhat.com>
8709 * gnu/java/awt/peer/gtk/GdkGraphics.java
8710 (GdkGraphics(Component)): Inherit font from component.
8711 (drawString): Use font style.
8712 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8713 (gtkSetFont): New native method declaration.
8714 (setFont): New method.
8715 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8716 (gtkSetFont): New native method declaration.
8717 (setFont): Call new native method gtkSetFont.
8718 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8719 (setFont): For all child components who do not their fonts set,
8720 set their peers' fonts with this container's font.
8721 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
8722 Move all native method declarations to the top for readability.
8723 (gtkSetFont): New native method declaration.
8724 (setFont): New method.
8725 * java/awt/Component.java
8726 (setFont): Invalidate after setting the font.
8727 * java/awt/Container.java
8728 (invalidateTree): New method.
8729 (setFont): Invalidate the container tree after setting the font.
8730 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
8731 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
8732 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8733 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
8734 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8735 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
8736 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
8737 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
8739 2004-02-27 Olga Rodimina <rodimina@redhat.com>
8741 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8742 (updateBufferedImage): New helper function.
8743 Updates BufferedImage in memory if it was changed.
8744 (draw): changed to update BufferedImage in memory after
8745 this drawing operation
8747 (draw3DRect): Ditto.
8748 (fill3DRect): Ditto.
8750 (drawRaster): Ditto.
8751 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
8752 no affine transformation.
8753 (drawGlyphVector): Ditto.
8755 2004-02-26 Olga Rodimina <rodimina@redhat.com>
8757 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8758 (isBufferedImageGraphics): New Helper function.
8759 Returns true if this graphics2d can be used to draw
8760 into buffered image and false otherwise.
8761 (updateImagePixels): New Helper function.
8762 Updates pixels in the BufferedImage.
8763 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8764 (getImagePixels): New function. Returns pixels
8765 of the buffered image associated with
8768 2004-02-26 David Jee <djee@redhat.com>
8770 * java/awt/BorderLayout.java
8771 (layoutContainer): Fix width and height calculations to ensure
8772 that they're non-negative.
8773 * java/awt/Component.java
8774 (setBackground): If c is null, inherit from closest ancestor whose
8775 background color is set.
8777 2004-02-26 Kim Ho <kho@redhat.com>
8779 * Makefile.am: Add new files.
8780 * Makefile.in: Re-generate.
8781 * javax/swing/JProgressBar.java:
8782 (JProgressBar(int, int int)): Throw
8783 IllegalArgumentException if orientation is
8785 (JProgressBar(BoundedRangeModel)): Create
8786 ChangeListener and register it. UpdateUI.
8787 (getChangeListeners): Implement.
8788 (setModel): Reset ChangeListener.
8789 * javax/swing/JScrollBar.java: Implement.
8790 * javax/swing/JSeparator.java: Implement.
8791 * javax/swing/JSlider.java:
8792 (JSlider(int, int, int, int)): Throw
8793 IllegalArgumentException if orientation
8795 (getChangeListeners): Fix method name.
8796 * javax/swing/SwingUtilities.java:
8797 (layoutCompoundLabel): If there is no text,
8798 set the text rectangle dimensions to 0.
8799 * javax/swing/plaf/basic/BasicButtonUI.java:
8800 (paint): If there is no text, don't paint it.
8801 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8803 * javax/swing/plaf/basic/BasicSeparatorUI.java:
8805 * javax/swing/plaf/basic/BasicSliderUI.java:
8806 (propertyChange): If the model changes, change
8807 the listeners accordingly.
8809 2004-02-25 Graydon Hoare <graydon@redhat.com>
8811 * javax/swing/AbstractButton.java: Add "final" qualifiers.
8812 * javax/swing/JList.java: Reimplement.
8813 * javax/swing/DefaultListSelectionModel.java: Reimplement.
8814 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
8815 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
8816 * javax/swing/ListModel.java: Javadoc.
8817 * javax/swing/ListSelectionModel.java: Add missing methods.
8818 * javax/swing/AbstractListModel.java: Javadoc and corrections.
8819 * javax/swing/DefaultListModel.java: Javadoc and corrections.
8820 * javax/swing/ListModel.java: Javadoc and corrections.
8821 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
8823 2004-02-25 David Jee <djee@redhat.com>
8825 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8826 (GtkFontPeer): Change default size to 12.
8827 * gnu/java/awt/peer/gtk/GtkToolkit.java
8828 (getFontPeer): Change default size to 12.
8829 (getClasspathFontPeer): Likewise. Set default name to "Default".
8830 * java/awt/Font.java
8831 (Font(Map)): Call Font(String,Map).
8832 (Font(String,Map)): If attrs is null, initialize it as an empty
8833 HashMap, which will ensure that the Font will get default attributes.
8835 2004-02-25 David Jee <djee@redhat.com>
8837 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8838 (GtkFontPeer(String,int)): Call the new constructor with size 1.
8839 (GtkFontPeer(String,int,int)): New constructor with size attribute.
8840 * gnu/java/awt/peer/gtk/GtkToolkit.java
8841 (getFontPeer(String,int)): Call the new overload method with size 1.
8842 (getFontPeer(String,int,int)): New method. Overloaded with size
8844 (getClasspathFontPeer): Set the size of the font.
8846 2004-02-24 Olga Rodimina <rodimina@redhat.com>
8848 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8849 (bimage): New field.
8850 (GdkGraphics2D): New Constructor. Constructs Graphics
8851 object that can be used to draw into the Buffered Image.
8852 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8853 (GdkGraphicsEnvironment): Fixed to include public
8855 (createGraphics): Implemented.
8856 * gnu/java/awt/peer/gtk/GtkToolkit.java
8857 (getLocalGraphicsEnvironment): Implemented.
8858 * java/awt/GraphicsEnvironment.java:
8859 (getLocalGraphicsEnvironment): Implemented.
8860 * java/awt/image/BufferedImage.java:
8861 (createGraphics): Implemented.
8863 2004-02-24 David Jee <djee@redhat.com>
8865 * java/awt/Component.java
8866 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
8867 * java/awt/Container.java
8868 (addNotifyContainerChildren): Fix event enabling.
8870 2004-02-23 Olga Rodimina <rodimina@redhat.com>
8872 * Makefile.am: Added
8873 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
8874 * Makefile.in: Re-generated.
8875 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8878 2004-02-19 Kim Ho <kho@redhat.com>
8880 * Makefile.am: Add BasicProgressBarUI
8881 * Makefile.in: Regenerate.
8882 * javax/swing/JProgressBar.java:
8884 * javax/swing/plaf/basic/BasicLookAndFeel.java
8885 Add constants for JProgressBar.
8886 * javax/swing/plaf/basic/BasicProgressBarUI.java
8888 * javax/swing/plaf/basic/BasicSliderUI.java
8890 (calculateGeometry): New method
8891 (paint): Remove unnecessary size calculations.
8893 2004-02-18 Olga Rodimina <rodimina@redhat.com>
8895 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8896 (drawRaster): Fixed small error that caused
8897 imageToUser transformation to be set incorrectly.
8898 (toString): Implemented.
8900 2004-02-18 David Jee <djee@redhat.com>
8902 * java/awt/CardLayout.java
8903 (addLayoutComponent): Show the first component added as the default.
8904 (removeLayoutComponent): After removing, show the next component.
8905 (gotoComponent): If there is only one component, show it and return.
8907 2004-02-18 Kim Ho <kho@redhat.com>
8909 * javax/swing/JSlider.java: Re-order
8911 * javax/swing/JLabel.java: Re-order
8913 * javax/swing/JComponent.java:
8914 (addPropertyChangeListener):
8916 (removePropertyChangeListener):
8918 (firePropertyChangeEvent):
8921 2004-02-17 David Jee <djee@redhat.com>
8923 * java/awt/Component.java
8924 (show): Dispatch ComponentEvent via system event queue.
8928 (reshape): Likewise.
8929 * java/awt/Window.java
8930 (setBoundsCallback): Likewise.
8932 2004-02-17 David Jee <djee@redhat.com>
8934 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8935 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
8936 Use gtk_widget_set_size_request() instead of the deprecated
8937 gtk_widget_set_usize().
8939 2004-02-17 Kim Ho <kho@redhat.com>
8941 * javax/swing/JSlider.java: Fix comments and
8942 make property strings constants.
8943 (createStandardLabels): Use the labels
8944 preferred size as bounds.
8945 * javax/swing/plaf/basic/BasicSliderUI.java
8947 (ScrollHandler::actionPerformed): Don't
8948 calculate the timer stop value. Let the
8949 MouseListeners find the stop location.
8950 (getPreferredHorizontalSize): Re-implement.
8951 (getPreferredVerticalSize): ditto.
8952 (getMinimumHorizontalSize): ditto.
8953 (getMinimumVerticalSize): ditto.
8954 (getPreferredSize): ditto.
8955 (getMinimumSize): ditto.
8956 (getMaximumSize): ditto.
8957 (paintTicks): Use doubles to find the
8959 (paintHorizontalLabel):Â Use preferredSize
8960 as initial width and height.
8961 (paintVerticalLabel): ditto.
8963 2004-02-17 Kim Ho <kho@redhat.com>
8965 * javax/swing/JLabel.java: Changed
8966 property strings to constants.
8967 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
8969 (setText): Change mnemonic index if
8971 (setDisplayedMnemonicIndex): Fire property
8973 (getDisplayedMnemonicIndex): Remove check
8976 2004-02-17 Olga Rodimina <rodimina@redhat.com>
8978 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8979 (drawImage(img,xform,obs)): Invert xform before
8980 passing the xform to cairo.
8981 (drawImage(img,x,y,bgcolor,obs)): Implemented.
8982 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
8984 (drawImage (img,x,y,w,h,obs)): Implemented.
8985 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
8986 bgcolor,obs)): Partly implemented.
8987 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
8989 * java/awt/image/BufferedImage.java:
8990 (copyData): if dest is null, create raster with same
8991 dimensions as the current image.
8993 2004-02-16 Graydon Hoare <graydon@redhat.com>
8995 * javax/swing/plaf/basic/BasicLabelUI.java
8996 (getPreferredSize): Use layoutCL.
8997 * javax/swing/plaf/basic/BasicGraphicsUtils.java
8998 (getPreferredButtonSize): Start with empty view rect, layout using
8999 component's preferred alignment.
9000 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
9003 2004-02-16 David Jee <djee@redhat.com>
9005 * java/awt/Component.java
9006 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
9007 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
9008 (move): Erase old bounds and repaint new bounds. Dispatch
9009 COMPONENT_MOVED ComponentEvent.
9010 (resize): Erase old bounds and repaint new bounds. Dispatch
9011 COMPONENT_RESIZED ComponentEvent.
9012 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
9014 * java/awt/Window.java
9015 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
9018 2004-02-16 Olga Rodimina <rodimina@redhat.com>
9020 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
9021 (setRenderingHint): Added implementation of
9022 Interpolation rendering hints.
9023 (setRenderingHints): Ditto.
9024 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
9025 (drawPixels): fixed to allow user to choose type
9026 of filtering that should be used when displaying images.
9027 (cairoSurfaceSetFilter): New method. Sets filter type for
9028 interpolation of pixel values.
9030 2004-02-16 David Jee <djee@redhat.com>
9032 * java/awt/GridBagLayout.java
9033 (calcCellSizes): Rows or columns with zero sizes should still be
9034 considered for extra space distribution.
9036 2004-02-16 Kim Ho <kho@redhat.com>
9038 * javax/swing/JLabel.java: Re-implement.
9039 * javax/swing/plaf/basic/BasicLabelUI.java
9041 * javax/swing/plaf/basic/BasicLookAndFeel.java:
9044 2004-02-16 Kim Ho <kho@redhat.com>
9046 * javax/swing/JSlider.java: Fix indentation and comments.
9047 (setModel): Remove null check to conform with Sun's.
9048 (setOrientation): Throw exception if not
9049 HORIZONTAL or VERTICAL.
9050 (getInverted): Use private variable instead of
9051 ComponentOrientation.
9052 (setInverted): ditto.
9053 * javax/swing/plaf/basic/BasicSliderUI.java:
9054 Fix indentation and comments.
9055 (propertyChange): Remove check for inverted slider, handle
9057 (getMinimumSize): Return preferred size.
9058 (getMaximumSize): ditto.
9059 (calculateFocusRect): Don't relocate rectangle.
9060 (drawInverted): Return XOR of the slider's inversion and
9061 the component's orientation.
9062 (paint): Update leftToRightCache
9064 2004-02-13 David Jee <djee@redhat.com>
9066 * java/awt/GridBagLayout.java
9067 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
9068 code to helper methods.
9069 (sortBySpan): New helper method.
9070 (distributeSizeAndWeight): Likewise.
9071 (calcCellWeights): Likewise.
9072 (calcCellSizes): Add comments.
9074 2004-02-13 David Jee <djee@redhat.com>
9076 * java/awt/Component.java
9077 (show): Only do something if component is invisible at the moment.
9078 (hide): Only do something if component is visible at the moment.
9079 (reshape): If lightweight, erase old bounds and repaint new bounds.
9081 2004-02-13 Kim Ho <kho@redhat.com>
9083 * Makefile.am: Updated for new file.
9084 * Makefile.in: Regenerated.
9085 * javax/swing/JSlider.java: Reimplement.
9086 * javax/swing/SwingUtilities.java
9087 (layoutCompoundLabel): Use icon height
9089 (paintComponent): Implement.
9090 * javax/swing/plaf/basic/BasicLookAndFeel.java:
9091 Add JSlider defaults.
9092 * javax/swing/plaf/basic/BasicSliderUI.java:
9093 Implement. New file.
9095 2004-03-17 Michael Koch <konqueror@gmx.de>
9097 * gnu/java/net/PlainDatagramSocketImpl.java
9098 (RECEIVE_LOCK): New member field.
9099 (SEND_LOCK): New member field.
9100 (send0): New method.
9101 (send): Synchronize on SEND_LOCK.
9102 (receive0): New method.
9103 (receive): Synchronize on RECEIVE_LOCK.
9104 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
9105 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
9106 gnu/java/net/natPlainDatagramSocketImplWin32.cc
9107 (send0): Renamed from send.
9108 (receive0): Renamed from receive.
9109 2004-03-17 Michael Koch <konqueror@gmx.de>
9111 * gnu/java/net/natPlainSocketImplPosix.cc
9112 (write): Just call write(jbyteArray, offset, len).
9113 (read): Just call read(jbyteArray, offset, len).
9115 2004-03-16 Michael Koch <konqueror@gmx.de>
9117 * javax/swing/JTabbedPane.java
9118 (serialVersionUID): New field.
9120 2004-03-16 Norbert Frese <postfach@nfrese.net>
9122 * java/net/InetAddress.java
9123 (getByName): Handle hostname == "" case.
9125 2004-03-16 Dalibor Topic <robilad@kaffe.org>
9127 Reported by: Adam Heath <doogie@debian.org>
9128 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
9131 2004-03-15 Michael Koch <konqueror@gmx.de>
9133 * java/util/Locale.java: Reverting my last patch
9134 and add a comment why the original version was okay.
9136 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
9138 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
9139 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
9140 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
9141 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
9143 2004-03-12 Michael Koch <konqueror@gmx.de>
9145 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
9147 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
9149 * java/net/URI.java (toURL): Implemented.
9151 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
9154 (URI_REGEXP) updated to contain scheme specific part.
9155 (SCHEME_SPEC_PART_GROUP) new constant.
9156 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
9157 updated to make room for SCHEME_SPEC_PART_GROUP.
9158 (parseURI) parse scheme specific part.
9159 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
9160 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
9161 getQuery, getFragment) implemented.
9163 2004-03-12 Dalibor Topic <robilad@kaffe.org>
9165 * libraries/javalib/java/net/URI.java
9166 partially implemented using java.util.regex.
9167 (URI_REGEXP) new constant. Used to parse URIs.
9168 (SCHEME_GROUP) new constant representing index of scheme group
9170 (AUTHORITY_GROUP) new constant representing index of authority
9171 group in parsed URI.
9172 (PATH_GROUP) new constant representing index of path group in
9174 (QUERY_GROUP) new constant representing index of query group in
9176 (FRAGMENT_GROUP) new constant representing index of fragment
9177 group in parsed URI.
9178 (getURIGroup) new static utility method.
9179 (parseURI) implemented.
9180 (quote) stub for new static utility method.
9181 (quoteAuthority) stub for new static utility method.
9182 (quoteHost) stub for new static utility method.
9183 (quotePath) stub for new static utility method.
9184 (quoteUserInfo) stub for new static utility method.
9186 (create) don't throw URISyntaxException. Implemented.
9187 (toString) implemented.
9189 2004-03-12 Michael Koch <konqueror@gmx.de>
9191 * java/net/HttpURLConnection.java
9192 (getResponseCode): Fix another typo in javadoc.
9194 2004-03-11 Michael Koch <konqueror@gmx.de>
9196 * java/util/logging/Level.java
9197 (parse): Use String.equals() instead of ==.
9199 2004-03-11 Michael Koch <konqueror@gmx.de>
9201 * gnu/java/net/protocol/jar/Connection.java
9202 (getContentLength): New method.
9204 2004-03-11 Michael Koch <konqueror@gmx.de>
9206 * gnu/java/net/PlainSocketImpl.java:
9207 Reformated to merge better with classpath's version.
9209 2004-03-11 Michael Koch <konqueror@gmx.de>
9211 * java/util/Locale.java
9212 (getISO3Language): Use String.equals() instead of ==.
9213 (getISO3Country): Likewise.
9215 2004-03-11 Dalibor Topic <robilad@kaffe.org>
9217 * java/text/AttributedString.java
9218 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
9219 Use HashMap instead of Hashtable since value can be null, and
9220 you can not store a null value in a Hashtable.
9222 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
9224 * java/text/AttributedStringIterator.java
9225 (getAllAttributesKey): Return only keys concerned
9226 by the current iterator.
9227 (getAttributes): Use strict inequality for
9230 2004-03-11 Michael Koch <konqueror@gmx.de>
9232 * java/net/HttpURLConnection.java:
9233 Fixed typo in javadoc.
9235 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
9237 * java/io/BufferedInputStream.java (marktarget): New field for max
9239 (CHUNKSIZE): New constant for incremental mark buffer allocation.
9240 (mark): Use new fields.
9242 (read(byte[],int,int)): Likewise.
9246 2004-03-11 Mark Wielaard <mark@klomp.org>
9248 * java/beans/BeanDescriptor.java (BeanDescriptor):
9249 Set the FeatureDescriptor programmatic name.
9251 2004-03-11 Michael Koch <konqueror@gmx.de>
9253 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
9254 This file was was just copied form java/io/natFileDescriptorEcos.cc
9255 and never changed to compile correctly.
9257 2004-03-11 Michael Koch <konqueror@gmx.de>
9259 * gnu/java/nio/PipeImpl.java
9260 (SourceChannelImpl): Made final.
9261 (read): Implemented.
9262 (SinkChannelImpl): Made final.
9263 (write): Implemented.
9265 2004-03-11 Michael Koch <konqueror@gmx.de>
9267 * gnu/java/net/PlainDatagramSocketImpl.java:
9268 Reformated to match classpath's version more.
9270 2004-03-11 Michael Koch <konqueror@gmx.de>
9272 * gnu/java/awt/peer/ClasspathFontPeer.java:
9273 Fixed javadoc to be correct xhtml.
9274 * gnu/java/awt/peer/gtk/GtkArgList.java
9275 (add): Use Boolean.valueOf() instead of new Boolean().
9277 2004-03-09 Michael Koch <konqueror@gmx.de>
9279 * java/lang/Thread.java
9280 (runnable): Moved around.
9281 (daemon): Renamed from daemon_flag.
9282 (contextClassLoader): Renamed from context_class_loader.
9283 (Thread): Reordered constructors.
9284 (activeCount): Use group directly.
9285 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
9286 (holdsLock): Reworked javadoc.
9287 (setDaemon): Reworked.
9288 * java/lang/natThread.cc
9291 2004-03-08 Anthony Green <green@redhat.com>
9293 * Makefile.am: Build property resource files into libgcj.
9294 * Makefile.in: Rebuilt.
9295 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
9296 java/util/regex/PatternSyntaxException.java,
9297 gnu/regexp/CharIndexed.java,
9298 gnu/regexp/CharIndexedCharArray.java,
9299 gnu/regexp/CharIndexedInputStream.java,
9300 gnu/regexp/CharIndexedReader.java,
9301 gnu/regexp/CharIndexedString.java,
9302 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
9303 gnu/regexp/REException.java,
9304 gnu/regexp/REFilterInputStream.java,
9305 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
9306 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
9307 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
9308 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
9309 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
9310 gnu/regexp/RETokenLookAhead.java,
9311 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
9312 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
9313 gnu/regexp/RETokenStart.java,
9314 gnu/regexp/RETokenWordBoundary.java,
9315 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
9317 2004-03-03 Per Bothner <per@bothner.com>
9319 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
9320 Optimize when argument is a FileChannelImpl.
9321 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
9323 * java/nio/channels/natChannels.cc: New file for new native methods.
9324 * Makefile.am: Update accordingly.
9326 2004-03-02 Jan Hubicka <jh@suse.cz>
9328 * configure.host: Pass -fno-omit-frame-pointer for i386.
9329 * configure.in: Likewise.
9330 * configure: Regenerate.
9332 2004-03-01 Per Bothner <per@bothner.com>
9334 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
9336 2004-02-29 Per Bothner <per@bothner.com>
9338 * java/nio/channels/FileChannelImpl.java: Moved to package
9339 gnu/java/nio/channels, since we need to refer to it from java.io.
9340 * java/nio/channels/natFileChannelImpl.cc: Removed file.
9341 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
9342 from java/nio/channels. Don't depend on FileDescriptor.
9343 (in, out, err): New static fields.
9345 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
9346 from FileDescriptor.
9347 (by): Removed MappedByteBuffer field.
9348 (map): New working implementation.
9349 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
9350 some code "ported" from natFileDescriptoPosix.cc.
9351 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
9352 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
9353 * java/io/FileDescriptor.java: Implement on top of FileChannel.
9354 Remove native methods.
9355 * Makefile.am, configure.in: Updated accordingly.
9357 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
9358 (ch): New FileChannelImpl field. Update constructor to match.
9359 (releaseImpl): Remove native method. Instead ...
9360 (release): Call unlock on channel.
9361 * gnu/java/nio/natFileLockImpl.cc: Removed file.
9363 * java/io/natFileDescriptorEcos.cc: Remove file.
9364 * java/io/natFileDescriptorPosix.cc: Remove file.
9365 * java/io/natFileDescriptorWin32.cc: Remove file.
9366 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
9367 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
9368 (<init>(FileChannelImpl)): New package-private constructor.
9369 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
9370 (available, close, read, skip): Implement using FileChannelImpl.
9371 (getFD): Allocate FileDescriptor if needed.
9372 (getChannel): Is now trivial.
9373 * java/io/FileOutputStream.java: Corresponding changes.
9374 * java/io/RandomAccessFile.java: Corresponding changes.
9376 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
9377 unmapImpl): New dummy methods, to be overridden by subclass.
9378 (finalize, isLoaded, load, force): New methods.
9379 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
9380 Now works, at least for read mapping.
9382 * java/lang/natPosixProcess.cc (startProcess): Implement standard
9383 streams using FileChannelImpl, not FileDescriptor.
9384 * java/lang/natWin32Process.cc (startProcess): Likewise.
9386 2004-02-28 Michael Koch <konqueror@gmx.de>
9388 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
9391 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
9393 * java/io/ObjectInputStream.java
9394 (readClassDescriptor): Keep elements of the mapping non null.
9395 (checkTypeConsistency): New method.
9396 (readFields): Fixed main loop and base logic. Small reindentation.
9397 * java/io/ObjectStreamField.java
9398 (lookupField): New method to update the field reference.
9399 (checkFieldType): New method.
9400 * java/io/ObjectStreamClass.java
9401 (setClass, setFields): Call lookupField when building the field
9402 database. Check the real field type.
9404 2004-02-28 Michael Koch <konqueror@gmx.de>
9406 * java/nio/ByteOrder.java
9407 (nativeOrder): Use equals() to compare strings.
9409 2004-02-26 Michael Koch <konqueror@gmx.de>
9411 * gnu/java/nio/FileLockImpl.java
9412 (finalize): Made protected.
9413 * java/nio/channels/FileChannel.java
9414 (MapMode.READ_ONLY): Made final.
9415 (MapMode.READ_WRITE): Made final.
9416 (MapMode.PRIVATE): Made final.
9417 * java/nio/channels/SocketChannel.java
9418 (open): Simplified code.
9419 * java/nio/channels/spi/AbstractSelectableChannel.java
9420 (registered): Unused, removed.
9421 (keyFor): Check channel is open, only locate key
9422 and not add a new one.
9423 (register): Don't delete attachments.
9425 2004-02-26 Michael Koch <konqueror@gmx.de>
9427 * gnu/java/awt/ComponentDataBlitOp.java
9428 (INSTANCE): Made final.
9429 * gnu/java/awt/image/ImageDecoder.java:
9431 (cm): Unused, removed.
9433 2004-02-26 Michael Koch <konqueror@gmx.de>
9435 * gnu/java/nio/DatagramChannelImpl.java
9436 (send): Check if target address is resolved.
9438 2004-02-26 Michael Koch <konqueror@gmx.de>
9440 * Makefile.am: Generate and install headers for inner classes in
9441 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
9442 * Makefile.in: Regenerated.
9444 2004-02-24 Anthony Green <green@redhat.com>
9446 * java/lang/StringBuffer.java: No need to NULL out remainder of
9447 buffer since ensureCapacity_unsynchronized will have done this for
9450 2004-02-20 Michael Koch <konqueror@gmx.de>
9452 * gnu/java/net/protocol/jar/Handler.java
9453 (): Removed unneeded check for file != null. java.net.URL.getFile()
9454 returns an empty string but never null.
9456 2004-02-20 Michael Koch <konqueror@gmx.de>
9458 * gnu/gcj/convert/Convert.java
9459 (main): Use equals() to compare strings.
9461 2004-02-20 Michael Koch <konqueror@gmx.de>
9463 * javax/swing/AbstractButton.java: Made several constants final.
9464 (getRolloverSelectedIcon): Made public.
9465 (getSelectedIcon): Made public.
9467 2004-02-16 Per Bothner <per@bothner.com>
9469 * java/nio/CharBufferImpl.java: Inline super constructor.
9470 * java/nio/DoubleBufferImpl.java: Likewise.
9471 * java/nio/FloatBufferImpl.java: Likewise.
9472 * java/nio/IntBufferImpl.java: Likewise.
9473 * java/nio/LongBufferImpl.java: Likewise.
9474 * java/nio/ShortBufferImpl.java: Likewise.
9475 * java/nio/CharBuffer.java: Remove unused constructor.
9476 * java/nio/DoubleBuffer.java: Likewise.
9477 * java/nio/FloatBuffer.java: Likewise.
9478 * java/nio/IntBuffer.java: Likewise.
9479 * java/nio/LongBuffer.java: Likewise.
9480 * java/nio/ShortBuffer.java: Likewise.
9481 * java/nio/CharViewBufferImpl.java: New convenience constructor.
9482 Fix buggy call to super constructor.
9483 * java/nio/DoubleViewBufferImpl.java: Likewise.
9484 * java/nio/FloatViewBufferImpl.java: Likewise.
9485 * java/nio/IntViewBufferImpl.java: Likewise.
9486 * java/nio/LongViewBufferImpl.java: Likewise.
9487 * java/nio/ShortViewBufferImpl.java: Likewise.
9489 * java/nio/ByteBuffer.java (endian): Make non-private so other
9490 java.nio classes can inherit it.
9491 (<init>): Don't bother clearing array_offset.
9492 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
9493 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
9494 Remove redundant test.
9496 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
9497 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
9498 Use new XxxViewBufferImpl constructors.
9499 * java/nio/MappedByteBufferImpl.java: Likewise.
9500 * java/nio/DirectByteBufferImpl.java: Likewise.
9502 * java/nio/ByteBufferImpl.java: Remove one constructor.
9503 Inline super in remaining constructor.
9504 * java/nio/ByteBuffer.java: Remove unused constructor.
9506 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
9508 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
9509 * java/nio/DirectByteBufferImpl.java (owner): New field.
9510 (offset): Remove unused field.
9511 (<init>): Modify one and add another constructor. Change callers.
9512 (allocateDirect): Removed - not used.
9513 (getImpl, putImpl): Make static and pass address explicitly,
9514 to make them useful for MappedByteBufferImpl.
9515 (get, put): Check for underflow. Modify for new getImpl.
9516 (getImpl): New native method where target is array.
9517 (get(byte[],int,int)): Use the above.
9518 (adjustAddress): New static native method.
9519 (slice, duplicate, asReadOnly): New implementations.
9520 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
9521 adjustAddress): New or updated native methods.
9523 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
9525 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
9526 overflow of fieldmapping.
9528 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
9530 * javax/swing/undo/UndoManager.java: Re-written from scratch.
9532 2004-02-14 Per Bothner <per@bothner.com>
9534 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
9535 Set closed before calling implCloseChannel, as in the spec.
9537 2004-02-09 Graydon Hoare <graydon@redhat.com>
9539 * javax/swing/ToggleButtonModel.java: Remove dead class.
9540 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
9541 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
9542 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
9543 * Makefile.am: Update for new and removed files.
9544 * Makefile.in: Regenerate.
9546 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
9547 * javax/swing/AbstractButton.java
9548 (AbstractButton): Initialize fields correctly in ctor.
9549 * javax/swing/JCheckbox.java
9550 (JCheckBox): Override painting flags.
9551 * javax/swing/DefaultButtonModel.java: Conform to sun.
9552 * javax/swing/JComponent.java (paint): Fill with background color
9554 (processComponentKeyEvent)
9557 (processMouseMotionEvent): Remove event-consuming empty methods.
9558 (getUIClassID): Return "ComponentUI" not "JComponent"
9559 * javax/swing/JFrame.java: Remove some debugging chatter.
9560 (JFrame): Subscribe to window events.
9561 * javax/swing/JRadioButton.java
9562 (JRadioButton): Override painting flags.
9563 * javax/swing/JRootPane.java
9564 (JRootPane): Set background from UIDefaults.
9565 * javax/swing/JToggleButton.java
9566 (ToggleButtonModel): New inner class.
9567 (JToggleButton): Override layout alighment.
9568 * javax/swing/SwingUtilities.java:
9569 (getLocalBounds): Return width and height, not x and y.
9570 (calculateInnerArea): Use local bounds, not bounds.
9571 (layoutCompoundLabel): Provide overridden form.
9572 (layoutCompoundLabel): Correct bugs.
9573 * javax/swing/UIDefaults.java: Correct comment.
9574 * javax/swing/plaf/basic/BasicButtonUI.java:
9575 Move most logic into defaults, external listener.
9576 (paintIcon): Implement icon painting.
9577 (paint): Fix state painting to conform to changes in model.
9578 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
9579 Remove most dead/wrong methods.
9580 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
9581 * javax/swing/plaf/basic/BasicIconFactory.java:
9582 (DummyIcon): New class.
9583 (getMenuItemCheckIcon)
9584 (getMenuItemArrowIcon)
9586 (getCheckBoxMenuItemIcon)
9587 (getRadioButtonMenuItemIcon)
9588 (createEmptyFrameIcon): Return DummyIcons, not null.
9589 (getCheckBoxIcon): Implement an icon that looks like sun's.
9590 (getRadioButtonIcon): Implement an icon that looks like sun's.
9591 * javax/swing/plaf/basic/BasicLookAndFeel.java
9592 (initComponentDefaults): Fix impossible values, add some missing.
9593 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
9594 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
9595 Remove most dead/wrong methods.
9597 (getDefaultIcon): New method.
9598 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
9599 Remove most dead/wrong methods.
9600 * javax/swing/plaf/metal/MetalLookAndFeel.java
9601 (getDefaults): Return super.getDefaults(), not BasicDefaults.
9602 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
9603 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
9604 Implement "clearing" as drawing, when on pixmap drawables.
9606 * javax/swing/JButton.java (getUIClassID):
9607 * javax/swing/JCheckBox.java (getUIClassID):
9608 * javax/swing/JEditorPane.java (getUIClassID):
9609 * javax/swing/JLabel.java (getUIClassID):
9610 * javax/swing/JList.java (getUIClassID):
9611 * javax/swing/JOptionPane.java (getUIClassID):
9612 * javax/swing/JPanel.java (getUIClassID):
9613 * javax/swing/JPasswordField.java (uiClassID):
9614 * javax/swing/JRadioButton.java (getUIClassID):
9615 * javax/swing/JRootPane.java (getUIClassID):
9616 * javax/swing/JScrollPane.java (getUIClassID):
9617 * javax/swing/JTabbedPane.java (getUIClassID):
9618 * javax/swing/JToggleButton.java (getUIClassID):
9619 * javax/swing/JTree.java (getUIClassID):
9620 * javax/swing/JViewport.java (getUIClassID):
9621 * javax/swing/text/JTextComponent.java (getUIClassID):
9622 Return "fooUI" not "Jfoo"
9624 2004-02-11 Michael Koch <konqueror@gmx.de>
9626 * java/net/DatagramSocket.java
9627 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
9629 (setBroadcast): Likewise.
9630 * java/net/MulticastSocket.java
9631 (setLoopbackMode): Likewise.
9632 * java/net/ServerSocket.java
9633 (setReuseAddress): Likewise.
9634 * java/net/Socket.java
9635 (setTcpNoDelay): Likewise.
9636 (setSoLinger): Likewise.
9637 (setOOBInline): Likewise.
9638 (setKeepAlive): Likewise.
9639 (setReuseAddress): Likewise.
9640 * java/net/URLConnection.java
9641 (setContentHandler): Replace == with equals().
9642 * java/net/URLStreamHandler.java
9643 (hostSEquals): Fix checking host addresses.
9644 (toExternalForm): Dont check protocol for null. We know already its
9647 2004-02-10 David Jee <djee@redhat.com>
9649 * java/awt/BorderLayout.java
9650 (calcCompSize): Invisible components get zero dimensions.
9651 * java/awt/Button.java
9652 (setLabel): Set actionCommand.
9653 * java/awt/Component.java
9654 (show): Invalidate component and parent container.
9657 2004-02-10 David Jee <djee@redhat.com>
9659 * java/awt/GridBagLayout.java
9660 (GridBagLayout): New private field, internalcomptable.
9661 (lookupInternalConstraints): New method.
9662 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
9663 (GetLayoutInfo): Reimplement.
9664 (calcCellSizes): Ignore rows/columns with size 0.
9666 2004-02-10 Michael Koch <konqueror@gmx.de>
9668 * gnu/java/awt/EmbeddedWindow.java
9669 (setHandle): Use java.awt.Component.getPeer() instead of
9670 java.awt.Component.peer directly.
9672 2004-02-10 David Jee <djee@redhat.com>
9674 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
9675 (gtkSetLabel): New native method definition.
9676 (setLabel): Use gtkSetLabel.
9677 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
9678 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
9680 2004-02-10 Alan Modra <amodra@bigpond.net.au>
9682 * include/powerpc-signal.h: Revert 2004-01-21 change.
9683 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
9684 from syscall for ppc32 versions.
9686 2004-02-08 Per Bothner <per@bothner.com>
9688 * java/nio/ByteBuffer.java (shiftDown): New helper method.
9689 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
9690 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
9691 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
9692 Pass ByteOrder parameter to most methods, since the underlying
9693 ByteBuffer's order isn't always what we should use.
9694 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
9695 * java/nio/DirectByteBufferImpl.java: Likewise.
9696 Use ByteBufferHelper methods.
9697 * java/nio/MappedByteBufferImpl.java: Likewise.
9698 (compact): Use shiftDown.
9699 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
9700 (get, put): Use ByteBufferHelper.
9701 (compact): Use new shiftDown method.
9702 (duplicate(boolean)): New helper method.
9703 (duplicate, asReadOnlyBuffer): Use it.
9704 (order): Return endian field.
9705 * java/nio/DoubleViewBufferImpl.java: Likewise.
9706 * java/nio/FloatViewBufferImpl.java: Likewise.
9707 * java/nio/IntViewBufferImpl.java: Likewise.
9708 * java/nio/LongViewBufferImpl.java: Likewise.
9709 * java/nio/ShortViewBufferImpl.java: Likewise.
9710 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
9711 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
9712 (compact): Re-implement using shiftDown.
9714 2004-02-08 Andreas Jaeger <aj@suse.de>
9716 * include/x86_64-signal.h: Fix typo.
9718 2004-02-08 Diego Novillo <dnovillo@redhat.com>
9720 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
9722 (HANDLE_DIVIDE_OVERFLOW): Likewise.
9724 2004-02-06 Michael Koch <konqueror@gmx.de>
9726 * java/io/ObjectInputStream.java
9727 (currentClassLoader): Reverted to old version of this method.
9729 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
9731 * java/io/ObjectInputStream.java: Made all calls
9732 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
9733 use cached info from ObjectStreamClass. (readClassDescriptor):
9734 Cache more information in ObjectStreamClass. (processResolution,
9735 readFields): Use cached info from ObjectStreamClass.
9736 (newObject): Throw exception instead of returning null for failure.
9737 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
9738 setCharField, setDoubleField, setFloatField, setIntField,
9739 setLongField, setShortField, setObjectField, readObjectParams):
9740 Removed. (dumpElement, dumpElementln): Removed dump flag condition
9742 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
9743 (setClass): Added call to cacheMethods() (findMethod): New method.
9744 (cacheMethods): New method. (ObjectStreamClass): Added call to
9745 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
9746 AccessController.doPrivileged to invoke setAccessible.
9747 (readObjectMethod, readResolveMethod, realClassIsSerializable,
9748 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
9750 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
9751 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
9752 isPrimitive): Made safe for cases where type == null.
9753 (setBooleanField, setByteField, setCharField, setShortField,
9754 setIntField, setLongField, setFloatField, setDoubleField,
9755 setObjectField): New methods.
9757 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
9759 * java/awt/Component.java (getFont): Return a default font
9762 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
9763 (Scrollbar (int, int, int, int, int)): Make default page
9765 (setValues): Only call peer.setValues if one of the values has
9767 (generateName): New method.
9768 (getUniqueLong): New method.
9769 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
9770 (range_scrollbar): Remove structure.
9771 (post_adjustment_event): Remove function.
9772 (post_change_event): Accept jobject argument.
9773 (create): Cast jints to gdoubles. Round scrollbar values to the
9774 nearest integer. Clamp min, max and value settings.
9775 (connectJObject): Connect hook to widget->window.
9776 (connectSignals): Remove range_scrollbar structure variables.
9777 Remove "move-slider" connection. Pass global peer reference to
9778 "value-changed" callback.
9779 (setLineIncrement): Cast jint value to gdouble.
9780 (setPageIncrement): Likewise.
9781 (setValues): Likewise. Clamp min, max and value settings.
9783 2004-02-05 Michael Koch <konqueror@gmx.de>
9785 * javax/swing/AbstractCellEditor.java
9786 (getCellEditorValue): Removed.
9787 * javax/swing/Box.java: Reformated.
9788 (serialVersionUID): New field.
9789 * javax/swing/ButtonGroup.java:
9790 Removed some weird whitespace.
9791 * javax/swing/CellEditor.java: Reformated.
9792 * javax/swing/CellRendererPane.java
9793 (serialVersionUID): New field.
9794 (AccessibleCellRendererPaneserialVersionUID): New field.
9795 * javax/swing/DefaultListModel.java
9796 (serialVersionUID): New field.
9797 * javax/swing/JEditorPane.java
9798 (serialVersionUID): New field.
9799 (setPage): Throws IOException.
9800 (addHyperlinkListener): Implemented.
9801 (removeHyperlinkListener): Implemented.
9802 (getHyperlinkListener): New method.
9803 * javax/swing/JFileChooser.java
9804 (serialVersionUID): New field.
9805 (AccessibleJFileChooser.serialVersionUID): New field.
9806 (addActionListener): Implemented.
9807 (removeActionListener): Implemented.
9808 (getActionListeners): New method.
9809 * javax/swing/JFormattedTextField.java
9810 (serialVersionUID): New field.
9811 (AbstractFormatter.serialVersionUID): New field.
9812 (clone): Throws CloneNotSupportedException
9813 (setEditValid): Add missing argument.
9814 (stringToValue): Throws ParseExcpetion.
9815 (valueToString): Throws ParseException.
9816 (commitEdit): Throws ParseException.
9817 * javax/swing/JLabel.java
9818 (serialVersionUID): New field.
9819 * javax/swing/JList.java
9820 (serialVersionUID): New field.
9821 (addListSelectionListener): Reformated.
9822 (removeListSelectionListener): Reformated.
9823 (getListSelectionListeners): New method.
9824 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
9826 (serialVersionUID): New field.
9827 * javax/swing/table/AbstractTableModel.java
9828 (getValueAt): Removed.
9829 (getColumnCount): Removed.
9830 (getRowCount): Removed.
9832 2004-02-05 Michael Koch <konqueror@gmx.de>
9834 * java/awt/datatransfer/DataFlavor.java
9835 (imageFlavor): Javadoc added.
9836 (javaJVMLocalObjectType): Fixed.
9838 2004-02-05 Michael Koch <konqueror@gmx.de>
9840 * java/lang/Thread.java
9841 (Thread): Reordered.
9842 (setContextClassLoader): Fixed javadoc comment.
9843 (setPriority): Reordered.
9845 (initialize_native): Reordered.
9846 (gen_name): Reordered.
9848 2004-02-05 Michael Koch <konqueror@gmx.de>
9850 * java/lang/Thread.java: Reordered fields, reformated much code,
9851 no functional changes, some variables renamed, javadoc comments
9854 2004-02-05 Michael Koch <konqueror@gmx.de>
9856 * java/util/zip/Deflater.java,
9857 java/util/zip/DeflaterOutputStream.java,
9858 java/util/zip/GZIPInputStream.java:
9859 Reformated and javadoc comments merged from classpath.
9861 2004-02-05 Michael Koch <konqueror@gmx.de>
9863 * gnu/java/nio/NIOServerSocket.java
9864 (impl): Unused, removed.
9865 * gnu/java/nio/SocketChannelImpl.java
9866 (finnishConnect): Don't throw NoConnectionPendingException if not
9867 connected or no connection pending.
9869 2004-02-02 Graydon Hoare <graydon@redhat.com>
9871 * javax/swing/SwingUtilities.java: Many new functions.
9872 * java/awt/Container.java (LightweightDispatcher): Reimplement.
9873 * javax/swing/basic/BasicGraphicsUtils.java
9874 (getPreferredButtonSize): Start layout from top-left corner.
9876 2004-02-04 Olga Rodimina <rodimina@redhat.com>
9878 * java/awt/geom/AffineTransform.java:
9879 Corrected comments on the field definitions for
9881 (shear): Fixed few errors that caused shear
9882 transformation to be performed incorrectly.
9883 (createInverse): Fixed to return correct
9884 inverse of the given matrix.
9886 2004-02-03 Tom Tromey <tromey@redhat.com>
9888 * java/lang/natPosixProcess.cc (startProcess): Handle case where
9889 PATH or LD_LIBRARY_PATH is not set in parent environment.
9891 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
9893 * gnu/java/awt/peer/gtk/GtkListPeer.java,
9894 java/awt/BorderLayout.java, java/awt/CardLayout.java,
9895 java/awt/CheckboxGroup.java, java/awt/Choice.java,
9896 java/awt/Component.java, java/awt/Container.java,
9897 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
9898 java/awt/LayoutManager2.java, java/awt/List.java,
9899 java/awt/Menu.java, java/awt/MenuBar.java,
9900 java/awt/MenuItem.java, java/awt/Polygon.java,
9901 java/awt/Rectangle.java, java/awt/ScrollPane.java,
9902 java/awt/Scrollbar.java, java/awt/TextArea.java,
9903 java/awt/TextField.java,
9904 java/awt/image/renderable/RenderContext.java,
9905 javax/swing/JApplet.java: Fix handling of alias methods, where a
9906 method has been deprecated in favour of a new one with the same
9907 funtion but a different name. Put the method implementation in
9908 the deprecated method and have the new method call the
9909 deprecated one. Make all other code call the new method.
9911 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
9913 * gnu/java/nio/DatagramChannelImpl.java
9914 (inChannelOperation): New field.
9915 (isInChannelOperation): New accessor.
9916 (setInChannelOperation): New modifier.
9917 (receive): Use capacity() - position() of destination
9918 buffer instead of remaining(). Set and reset our "in
9919 channel operation indicator" before and after delegating
9920 the receive to our datagram socket. Removed testing code.
9921 Update destination buffer's current position if it is
9922 backed by a byte array (hasArray() is true).
9923 (send): Set and reset our "in channel operation indicator"
9924 before and after delegating the send to our datagram socket.
9925 Removed testing code. Update source buffer's current position
9926 if it is backed by a byte array (hasArray() is true).
9927 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
9928 Use capacity() - position() of destination buffer instead
9930 * java/net/DatagramSocket.java (receive): Don't throw an
9931 IllegalBlockingModeException if we have a non-blocking
9932 channel which initiated this operation.
9935 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
9937 * configure.in: Add pkgconfig check for glib and gthread.
9938 * configure: Regenerate.
9940 2004-02-01 Michael Koch <konqueror@gmx.de>
9942 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
9944 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
9945 * verify.cc (debug_print): Mark 'fmt' unused.
9947 2004-01-30 Michael Koch <konqueror@gmx.de>
9949 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
9950 * configure: Regenerated.
9951 * glib-2.0.m4: Removed.
9952 * gtk-2.0.m4: Removed.
9953 * libart.m4: Removed.
9956 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
9958 * gnu/java/net/PlainSocketImpl.java
9959 (inChannelOperation): New field.
9960 (isInChannelOperation): New accessor.
9961 (setInChannelOperation): New modifier.
9962 * gnu/java/nio/ServerSocketChannelImpl.java
9963 (accept): Set and reset our server socket's PlainSocketImpl's
9964 "in channel operation" indicator before and after delegating
9965 the accept to our server socket.
9966 * gnu/java/nio/SocketChannelImpl.java
9967 (connect): Set and reset our socket's PlainSocketImpl's "in channel
9968 operation" indicator before and after delegating the operation to
9972 * java/net/ServerSocket.java (implAccept): Don't throw an
9973 IllegalBlockingModeException if we have a non-blocking
9974 channel which initiated this accept operation.
9975 * java/net/Socket.java (connect): Don't throw an
9976 IllegalBlockingModeException if we have a non-blocking
9977 channel which initiated this connect operation.
9978 * java/nio/channels/spi/AbstractSelectableChannel.java
9979 (configureBlocking): Only call implConfigureBlocking() if
9980 the desired blocking mode is different from our current one.
9982 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
9984 * java/io/BufferedReader.java (sbuf): New field.
9985 (readLine): Use String.valueOf instead of new String() as per
9986 Per Bothner's suggestion. Use instance sbuf field instead of a
9987 local StringBuffer instance.
9988 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
9989 caller's buffer to refill().
9990 (read(void)): Pass our internal work buffer to refill if our
9991 input queue is empty.
9992 (refill): Changed return type to int. Use the specified buffer
9993 instead of our work buffer as per Bryce McKinlay's suggestion.
9994 Return the number of characters read or -1 for EOF.
9996 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9998 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
10000 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
10002 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
10003 * Makefile.in: Re-generated.
10004 * gnu/awt/xlib/XFontPeer.java: New file.
10005 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
10006 (setClip): Commented out debug printout.
10007 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
10008 (getFontPeer): Return XFontPeer.
10009 (getLocalGraphicsEnvironment): New method.
10010 (getClasspathFontPeer): New method.
10011 (createFont): New method.
10013 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
10015 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
10018 2004-01-29 Kim Ho <kho@redhat.com>
10020 * gnu/java/awt/peer/gtk/GtkFramePeer.java
10021 (gtkLayoutSetVisible): New method
10022 (setMenuBar): Hide layout before setting MenuBar
10023 and reshow it after.
10024 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10025 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
10027 2004-01-28 Michael Koch <konqueror@gmx.de>
10029 * gnu/java/lang/ClassHelper.java
10030 (getPackagePortion): Removed.
10032 2004-01-28 Michael Koch <konqueror@gmx.de>
10034 * javax/swing/JComponent.java
10035 (listenerList): Initalize globally.
10036 (ancestor_list): Removed.
10037 (veto_list): Removed.
10038 (change_list): Removed.
10039 (get_veto_list): Removed.
10040 (get_change_list): Removed.
10041 (get_ancestor_list): Removed.
10042 (removeAncestorListener): Reimplemented.
10043 (removePropertyChangeListener): Likewise.
10044 (removeVetoableChangeListener): Likewise.
10045 (addAncestorListener): Likewise.
10046 (addPropertyChangeListener): Likewise.
10047 (addVetoableChangeListener): Likewise.
10048 (getListeners): New method.
10049 (getAncestorListeners): Likewise.
10050 (getVetoableChangeListeners): Likewise.
10051 (fireVetoableChange): Throws PropertyVetoException.
10052 * javax/swing/JEditorPane.java
10053 (JEditorPane): Throws IOException.
10055 2004-01-28 David Jee <djee@redhat.com>
10057 * gnu/java/awt/peer/gtk/GtkFramePeer.java
10058 (create): Set the default foreground color to
10059 java.awt.SystemColor.windowText.
10061 2004-01-27 Michael Koch <konqueror@gmx.de>
10063 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
10064 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
10065 Reindented to merge with classpath.
10067 2004-01-27 David Jee <djee@redhat.com>
10069 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10070 (addExposeFilter): Handle GtkFramePeer separately.
10071 (removeExposeFilter): Likewise.
10073 2004-01-27 Michael Koch <konqueror@gmx.de>
10075 * gnu/java/net/protocol/http/Connection.java
10076 (getOutputStream): Fixed typo.
10078 2004-01-27 Michael Koch <konqueror@gmx.de>
10080 * java/lang/Class.java
10081 (getConstructor): Removed SecurityException from throws clause.
10082 (_getConstructors): Likewise.
10083 (getConstructors): Likewise.
10084 (getDeclaredConstructor): Likewise.
10085 (getDeclaredClasses): Likewise.
10086 (getDeclaredConstructors): Likewise.
10087 (getDeclaredField): Likewise.
10088 (getDeclaredMethod): Likewise.
10089 (getDeclaredMethods): Likewise.
10090 (getField): Likewise.
10091 (getMethod): Likewise.
10092 (getMethods): Likewise.
10094 2004-01-27 Kim Ho <kho@redhat.com>
10096 * gnu/java/awt/peer/gtk/GtkFramePeer.java
10097 (removeMenuBarPeer): Remove MenuBarPeer argument.
10098 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
10099 (dispose): Call native method.
10100 * java/awt/Frame.java (setMenuBar): Create and remove
10101 MenuBar peers only if the Frame has a peer.
10102 (addNotify): Create the MenuBar peer if one exists.
10103 (removeNotify): Remove MenuBar peer if one exists.
10104 * java/awt/Menu.java: Fix imports.
10105 (addNotify): Don't use full class name.
10106 (removeNotify): Call removeNotify on all children.
10107 * java/awt/MenuBar.java (removeNotify): Call
10108 removeNotify on all children.
10109 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10110 (removeMenuBarPeer): Remove MenuBarPeer argument.
10111 Iterate through children to find the Frame's MenuBar.
10112 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
10114 (dispose): Remove references to the MenuComponent.
10116 2004-01-27 Michael Koch <konqueror@gmx.de>
10118 * javax/swing/AbstractCellEditor.java: Reformated.
10119 * javax/swing/DefaultListSelectionModel.java
10120 (listenerList): Made protected.
10121 (addListSelectionListener): Javadoc added.
10122 (removeListSelectionListener): Likewise.
10123 (getListeners): Likewise.
10124 (getListSelectionListeners): Likewise.
10125 * javax/swing/JComboBox.java: Merged copyright year.
10126 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
10128 2004-01-26 Andrew Haley <aph@redhat.com>
10130 * javax/swing/table/JTableHeader.java: Extend JComponent
10132 2004-01-26 Kim Ho <kho@redhat.com>
10134 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
10137 2004-01-26 Kim Ho <kho@redhat.com>
10139 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
10141 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
10142 height and let the Layout Managers readjust anything that
10144 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10145 (moveLayout): New method. Shift everything in the Gtk
10146 layout in the Y direction by an offset.
10148 2004-01-26 David Jee <djee@redhat.com>
10150 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10151 (handleEvent): Implemented. Handles PaintEvents.
10152 (paint): Implemented. Use GTK native methods to queue updates
10153 for this heavyweight peer.
10154 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10155 (handleEvent): Removed.
10156 * java/awt/Component.java
10157 (paint): Implemented. Explictly paint the heavyweight peer.
10158 (update): Clear the background for heavyweight components.
10159 (paintAll): No need to call peer.paint() anymore.
10160 (processEvent): Don't process PaintEvents here. It's now done in
10161 the peer's handleEvent().
10162 (processPaintEvent): Removed.
10163 * java/awt/Container.java
10164 (paint): No need to call super.paint(). Visit heavyweight
10166 (update): Don't clear the background here. It's done in
10167 Component.update().
10168 (visitChildren): Added check to not recurse into Containers.
10169 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10170 (filter_expose_event_handler): New method. Filter unwanted
10171 expose events while painting heavyweight peers.
10172 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
10173 New method. Connect filter and block pre_event_handler.
10174 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
10175 New method. Disconnect filter and unblock pre_event_handler.
10176 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
10177 New method. Invalidate and update given area.
10178 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10179 (pre_event_handler): Add checks for unwanted expose events.
10181 2004-01-26 David Jee <djee@redhat.com>
10183 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10184 (find_bg_color_widget): For GtkButton, return its child.
10186 2004-01-26 Kim Ho <kho@redhat.com>
10188 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
10190 (setMenuBar): Grab MenuBar height and change insets.
10191 (setBounds): Account for MenuBar height.
10192 (postInsetsChangedEvent): Ditto.
10193 (postSizeAllocateEvent): Remove.
10194 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10195 (menubar_resize_cb): Remove
10196 (setMenuBarPeer): Remove callback.
10197 (getMenuBarHeight): Use size requisition instead of
10200 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
10202 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
10203 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
10205 (setColumns): Remove FIXME -- peer will retrieve number of
10206 columns by calling getColumns.
10207 (setRows): Likewise for number of rows.
10208 (next_text_number): New field.
10209 (paramString): Fix param string.
10210 (generateName): New method.
10211 (getUniqueLong): New method.
10213 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
10215 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
10216 image observer of image loading status.
10217 (getImage (String)): Start image production.
10218 (getImage (URL)): Likewise.
10220 2004-01-25 Michael Koch <konqueror@gmx.de>
10222 * java/lang/Class.java: Imports reworked, reformated.
10223 (Class): Javadoc added.
10224 (forName): Likewise.
10225 (getClasses): Likewise.
10226 (getClassLoader): Likewise.
10227 (getComponentType): Likewise.
10228 (getConstructor): Likewise.
10229 (getConstructors): Likewise.
10230 (getDeclaredConstructor): Likewise.
10231 (getDeclaredClasses): Likewise.
10232 (getDeclaredConstructors): Likewise.
10233 (getDeclaredField): Likewise.
10234 (getDeclaredMethod): Likewise.
10235 (getDeclaredMethods): Likewise.
10236 (getDeclaringClass): Likewise.
10237 (getField): Likewise.
10238 (getInterfaces): Likewise.
10239 (getMethod): Likewise.
10240 (getMethods): Likewise.
10241 (getModifiers): Likewise.
10242 (getName): Likewise.
10243 (getResource): Likewise.
10244 (getResourceAsStream): Likewise.
10245 (getSigners): Likewise.
10246 (setSigners): Likewise.
10247 (getSuperclass): Likewise.
10248 (isArray): Likewise.
10249 (isAssignableFrom): Likewise.
10250 (isInstance): Likewise.
10251 (isInterface): Likewise.
10252 (isPrimitive): Likewise.
10253 (newInstance): Likewise.
10254 (getProtectionDomain): Likewise.
10255 (toString): Likewise.
10257 (initializeClass): Likewise.
10258 (finalize): Likewise.
10260 2004-01-24 Michael Koch <konqueror@gmx.de>
10262 * gnu/java/net/protocol/jar/Connection.java
10263 (hdrHash): Removed.
10265 (gotHeaders): Removed.
10266 (getHeaderField): Removed.
10267 (getHeaderFields): Removed.
10268 (getHeaderFieldKey): Removed.
10270 (getField): Removed.
10271 (getHeaders): Removed.
10273 2004-01-24 Michael Koch <konqueror@gmx.de>
10275 * Makefile.am: Added library version to gtk peer lib.
10276 * Makefile.in: Regenerated.
10278 2004-01-24 Michael Koch <konqueror@gmx.de>
10280 * java/util/zip/InflaterInputStream.java: Merged class documentation
10283 2004-01-21 Jakub Jelinek <jakub@redhat.com>
10285 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
10286 header. For __powerpc64__ provide the default-signal.h definitions
10288 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
10289 instead of the dummy definitions.
10290 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
10291 (powerpc64*-*): Remove with_libffi_default.
10292 Only add -mminimal-toc for 64-bit compilations.
10293 * configure.in: Use powerpc-signal.h on powerpc64 as well.
10294 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
10295 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
10296 * configure: Rebuilt.
10298 2004-01-23 Michael Koch <konqueror@gmx.de>
10300 * gnu/java/nio/FileLockImpl.java: Compile fixes.
10302 2004-01-23 Michael Koch <konqueror@gmx.de>
10304 * java/lang/VMClassLoader.java: Reworked imports.
10306 2004-01-23 Michael Koch <konqueror@gmx.de>
10308 * javax/swing/AbstractAction.java: Reformated.
10310 2004-01-23 Michael Koch <konqueror@gmx.de>
10312 * java/text/CollationElementIterator.java:
10313 (setText): New method.
10315 2004-01-23 Michael Koch <konqueror@gmx.de>
10317 * gnu/java/nio/FileLockImpl.java:
10318 Fixed filename in copyright.
10319 (released): Removed.
10320 (finalize): New method.
10321 * gnu/java/nio/natFileLockImpl.cc
10322 (releaseImpl): Implemented.
10323 * java/nio/channels/FileChannelImpl.java:
10325 (lock): Implemented.
10326 (lockImpl): New method.
10327 (tryLock): Implemented.
10328 (tryLockImpl): New method.
10329 * java/nio/channels/natFileChannelImpl.cc
10330 (lockImpl): New method.
10331 (tryLockImpl): New method.
10333 2004-01-23 Michael Koch <konqueror@gmx.de>
10335 * java/io/FileDescriptor.java
10336 (lock): New method.
10337 (tryLock): New method.
10338 (unlock): New method.
10339 * java/io/natFileDescriptorEcos.cc
10340 (lock): New method.
10341 (tryLock): New method.
10342 (unlock): New method.
10343 * java/io/natFileDescriptorPosix.cc
10344 (lock): New method.
10345 (tryLock): New method.
10346 (unlock): New method.
10347 * java/io/natFileDescriptorWin32.cc
10348 (lock): New method.
10349 (tryLock): New method.
10350 (unlock): New method.
10352 2004-01-23 Michael Koch <konqueror@gmx.de>
10354 * java/io/FileDescriptor.java
10355 (sync): Moved around, added javadoc.
10360 (setLength): Likewise.
10362 (getLength): Likewise.
10363 (getFilePointer): Likewise.
10365 (available): Likewise.
10366 (finalize): Likewise.
10368 2004-01-23 Michael Koch <konqueror@gmx.de>
10370 * javax/swing/AbstractAction.java: Reformated.
10371 (getPropertyChangeListeners): New method.
10372 * javax/swing/AbstractCellEditor.java: Reformated.
10373 (getCellEditorListeners): New method.
10374 * javax/swing/DefaultListSelectionModel.java
10375 (listenerList): New field.
10376 (listeners): Removed.
10377 (get_listeners): Removed.
10378 (addListSelectionListener): Rewritten.
10379 (removeListSelectionListener): Rewritten.
10380 (getListSelectionListeners): New method.
10381 (getListeners): New method.
10382 * javax/swing/JComboBox.java: Imports reworked.
10383 (addActionListener): Implemented.
10384 (removeActionListener): Implemented.
10385 (addItemListener): Implemented.
10386 (removeItemListener): Implemented.
10387 (addPopupMenuListener): Implemented.
10388 (removePopupMenuListener): Implemented.
10389 (getActionListeners): New method.
10390 (getItemListeners): New method.
10391 (getPopupMenuListeners): New method.
10393 2004-01-23 Michael Koch <konqueror@gmx.de>
10395 * gnu/java/net/protocol/http/Connection.java
10396 (connect): Don't initialize bufferedOutputStream if not needed.
10397 (sendRequest): Set property for content length if content is present.
10398 Write content only if present.
10399 (getOutputStream): Check if already connected, dont connect,
10400 initalize bufferedOutputStream if needed.
10402 2004-01-23 Michael Koch <konqueror@gmx.de>
10404 * java/io/FileDescriptor.java
10405 (in, out, err): Added javadoc.
10406 (static): Merged loading code.
10407 (fd, position): Moved around.
10409 2004-01-23 Michael Koch <konqueror@gmx.de>
10411 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
10414 2004-01-23 Michael Koch <konqueror@gmx.de>
10416 * java/lang/Class.java,
10417 java/lang/Object.java,
10418 java/lang/Thread.java: Merged copyright with classpath.
10420 2004-01-23 Michael Koch <konqueror@gmx.de>
10422 * java/io/FileDescriptor.java: Merged copyright with classpath to
10423 start merging this class.
10425 2004-01-22 Tom Tromey <tromey@redhat.com>
10428 * testsuite/libjava.lang/pr13107_2.xfail: New file.
10429 * testsuite/libjava.lang/pr13107_3.xfail: New file.
10430 * testsuite/libjava.lang/pr13107_3.java: New file.
10431 * testsuite/libjava.lang/pr13107_3.out: New file.
10432 * testsuite/libjava.lang/pr13107_2.java: New file.
10433 * testsuite/libjava.lang/pr13107_2.out: New file.
10434 * testsuite/libjava.lang/pr13107.java: New file.
10435 * testsuite/libjava.lang/pr13107.out: New file.
10436 * verify.cc (jsr_ptrs): Removed.
10437 (entry_points): Likewise.
10438 (struct subr_info): Likewise.
10439 (struct subr_entry_info): Likewise.
10440 (type_val::unused_by_subroutine_type): Likewise.
10441 (type::merge): Don't handle unused_by_subroutine_type.
10442 (type::print): Likewise.
10443 (state::flags): Removed.
10444 (state::subroutine): Likewise.
10445 (state::seen_subrs): Likewise.
10446 (state::NO_STACK): Likewise.
10447 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
10448 (state): Updated all methods.
10449 (state::clean_subrs): Removed.
10450 (state::state): Removed `ret_semantics' flag.
10451 (state::copy): Likewise.
10452 (state::add_subr): Removed.
10453 (state::enter_subroutine): Likewise.
10454 (type::set_return_address): New method.
10455 (handle_jsr_insn): Set return address on the type. Always
10456 invalidate PC after call.
10457 (check_nonrecursive_call): Removed.
10458 (~_Jv_BytecodeVerifier): Updated.
10459 (branch_prepass): Removed special handling of jsr.
10460 (note_branch_target): Likewise.
10461 (get_subroutine): Removed.
10462 (state::merge): Don't merge subroutines and don't handle
10463 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
10464 (state::note_variable): Removed.
10465 (state::is_unmerged_ret_state): Likewise.
10466 (state::print): Updated.
10467 (set_variable): Likewise.
10468 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
10469 and jsr_semantics arguments. Updated for new reverification
10471 (pop_jump): Rewrote.
10472 (construct_primitive_array_type): Updated.
10473 (state::next): Removed.
10474 (INVALID_STATE): New define.
10475 (state::INVALID): Removed.
10476 (state::NO_NEXT): New value.
10477 (state::pc, state::next): New fields.
10478 (state::get_pc): New method.
10479 (next_verify_pc): Removed.
10480 (next_verify_state): New field.
10481 (verify_instructions_0): Always check for falling off end.
10482 (linked): New type.
10483 (linked_utf8): Removed.
10484 (states): Changed type.
10485 (type::state_mergeable_p): New method.
10486 (state::state_mergeable_p): Likewise.
10487 (handle_ret_insn): Removed most code.
10488 (state::reverify): New method.
10489 (add_new_state): Likewise.
10490 (state::set_pc): Likewise.
10492 2004-01-22 Jeff Sturm <jsturm@one-point.com>
10495 * testsuite/libjava.compile/PR13733.java: New file.
10496 * testsuite/libjava.compile/PR13733.xfail: New file.
10498 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
10499 Michael Koch <konqueror@gmx.de>
10501 * javax/swing/table/DefaultTableCellRenderer.java
10502 (DefaultTableCellRenderer): Added javadoc for the class and for
10503 the constructor, Border instance, create an EmptyBorder.
10504 (UIResource): Removed the comment at the end of the class
10505 (setForeground): New method.
10506 (setBackground): New method.
10507 (updateUI): New method.
10508 (getTableCellRendererComponent): Rewritten with the help of
10509 dvholten and Stephane Meslin-Weber.
10510 (validate): New method.
10511 (repaint): New method.
10512 (firePropertyChange): New method.
10513 (setValue): New method.
10515 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
10517 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10518 (connectJObject): Replace printf calls with g_assert statements.
10519 Move property-notify-event signal connection to ...
10520 (connectSignals): Connect property-notify-event signal. Iterate
10521 through the vbox's children to find layout.
10523 2004-01-22 Graydon Hoare <graydon@redhat.com>
10525 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
10526 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
10527 Predicate static initialization on GtkToolkit.useGraphics2D().
10528 * java/awt/Component.java (processPaintEvent): Consume event.
10529 * javax/swing/AbstractButton.java: Reimplement, document.
10530 * javax/swing/DefaultButtonModel.java: Reimplement, document.
10531 * javax/swing/JComponent.java (paint): Use double buffer.
10532 (listenerList): Enable member.
10533 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
10534 * javax/swing/JToggleButton.java
10535 (JToggleButton): Modify model constructor.
10536 * javax/swing/SwingUtilities.java
10537 (layoutCompoundLabel): Adjust arithmetic.
10538 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
10539 * javax/swing/plaf/basic/BasicGraphicsUtils.java
10540 (getPreferredButtonSize): Include margins in calculation.
10541 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10542 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
10543 Receive up events from subordinate layout component.
10545 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
10547 * java/awt/Component.java (show): Set visible to true before
10550 2004-01-21 Kim Ho <kho@redhat.com>
10552 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
10554 (removeMenuBarPeer): Make package private.
10555 (setMenuBarPeer): Make package private.
10556 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10557 (menubar_resize_cb): Mark attributes unused.
10558 (getMenuBarHeight): ditto.
10560 2004-01-21 David Jee <djee@redhat.com>
10562 * java/awt/Container.java
10563 (LightweightDispatcher.handleEvent): Add an extra check to avoid
10564 dispatching MOUSE_ENTERED event twice. Translate the point for
10565 the mouse event target before dispatching the event.
10567 2004-01-20 Jakub Jelinek <jakub@redhat.com>
10569 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
10570 lib_org_w3c_dom_la_LDFLAGS): New.
10571 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
10572 * Makefile.in: Rebuilt.
10574 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
10576 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
10577 Calculate proper offsets for heavyweight components packed in
10578 lightweight containers.
10580 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
10581 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
10582 (native create): Add width parameter.
10583 (create): Calculate text entry width based on current font's
10584 metrics and number of columns. Set TextField's font if not
10585 already set. Call native create.
10586 (gtkEntryGetBorderWidth): New native method.
10587 (gtkEntryGetSize): Remove method.
10588 (getMinimumSize): Call minimumSize.
10589 (getPreferredSize): Call preferredSize.
10590 (minimumSize): Calculate minimum size based on backing
10591 GtkEntry's borders, font metrics and number of columns.
10592 (preferredSize): Likewise for preferred size.
10593 (get_border_width): New static function.
10595 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
10596 Override GtkWindowPeer's setResizable method to account for menu
10597 bar height when setting the frame's size.
10599 2004-01-19 Matthias Klose <doko@debian.org>
10601 * libtool-version: Increased `current' to 6.
10603 2004-01-19 Kim Ho <kho@redhat.com>
10605 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10606 (connectJObject): Iterate through the vbox's children to find layout.
10608 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10610 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
10611 isDispatchThread method to replace wrong test condition.
10613 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10615 * java/awt/EventQueue.java (pop): Prevent racing condition to add
10616 events to the queue out of order by acquiring locks in the proper
10617 order and not by releasing one before acquiring the other.
10619 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10621 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
10622 visible so that dialog can be reused.
10624 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10626 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
10627 events may be handled by any queue in the stack.
10629 2004-01-19 Kim Ho <kho@redhat.com>
10631 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
10632 MenuBarPeer parameter.
10633 (removeMenuBarPeer): New native method.
10634 (setMenuBar): Call remove if menu bar is null. Adjust insets
10636 (postSizeAllocateEvent): New method. Called when menu bar size is
10637 allocated. Adjust insets and redo layout.
10638 (GtkFramePeer): Set menu bar during frame creation.
10639 (postConfigureEvent): Adjust position and size to accomodate
10641 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
10642 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
10643 (addNotify): Create the peer if it doesn't exist and call addNotify
10644 for the menu's items.
10645 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
10646 * java/awt/MenuItem.java (addNotify): Create the peer if it
10648 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10649 (removeMenuBarPeer): New method. Remove menu bar on the current
10651 (setMenuBarPeer): Add the menu bar to the current frame and the
10652 callback for size-allocate events on the menu bar.
10653 (getMenuBarHeight): Add menu bar parameter.
10654 (menubar_resize_cb): New callback method for postSizeAllocate events.
10656 Also: Fix indentation on last ChangeLog entry.
10658 2004-01-16 Kim Ho <kho@redhat.com>
10660 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10661 (gtkWidgetGetDimensions): Remove.
10662 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10663 (gtkWidgetGetDimensions): Remove.
10665 2004-01-16 Tom Tromey <tromey@redhat.com>
10667 * java/awt/Container.java: Typo and indentation fixes.
10669 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
10670 * java/lang/natVMClassLoader.cc: ...here. New file.
10671 * Makefile.in: Rebuilt.
10672 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
10674 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10676 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
10677 Discard GDK_ENTER_NOTIFY related to ungrabs.
10679 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10681 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
10682 is called for an intermediate queue.
10684 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
10686 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10687 (window_property_changed_cb): Set id_set.
10689 2004-01-16 Kim Ho <kho@redhat.com>
10691 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
10692 it is a FileDialog and has dimensions of 0 by 0, then the initial
10693 size is set to size request plus insets.
10694 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10695 (gtkWidgetGetDimensions): Override method.
10696 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10697 (gtkWidgetGetDimensions): Override method. Returns size request plus
10700 2004-01-16 Andrew Haley <aph@redhat.com>
10702 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
10703 * sysdep/i386/locks.h: Likewise.
10705 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10707 * java/awt/EventDispatchThread.java (run): Stop running when
10709 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
10710 Reset the queue after transferring its contents.
10711 (push): Start a new dispatch thread if none is running.
10713 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
10715 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10716 (doPolygon): set fill rule of polygon to
10717 WIND_EVEN_ODD by default.
10719 2004-01-15 Olga Rodimina <rodimina@redhat.com>
10721 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10722 Implemented rendering hints related methods.
10723 (getDefaultHints): New helper method. Returns
10724 default rendering hints.
10725 (walkPath): changed to normalize path if
10726 the KEY_STROKE_CONTROL key is in "normalize" mode.
10727 (draw3DRect): changed coordinates of rectangle by +0.5
10728 if in "normalize" mode.
10730 2004-01-15 Tom Tromey <tromey@redhat.com>
10732 * Makefile.in: Rebuilt.
10733 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
10734 (%.lo: %.java) Filter out StackTrace.lo.
10736 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
10738 * configure.in: Add in AC_PREREQ(2.13)
10739 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
10742 2004-01-14 Nathan Bryant <nbryant@optonline.net>
10743 Tom Tromey <tromey@redhat.com>
10746 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
10747 array to superclass.
10748 (init): Changed interface; add URLs here.
10749 (initialize): New static method.
10750 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
10751 (_Jv_RunMain): ... not here.
10753 2004-01-14 Michael Koch <konqueror@gmx.de>
10755 * java/text/MessageFormat.java:
10756 Added descriptions to exceptions.
10757 This fixes PR libgcj/2429.
10759 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10761 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
10762 (push): Make sure push is performed at the top of the thread stack.
10764 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10766 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
10767 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
10768 (native create): Add width and height parameters. Set text
10769 view's size request according to new parameters.
10770 (create): Calculate text view size based on current font's
10771 metrics and number of rows and columns. Set TextArea's font if
10772 not already set. Call native create.
10773 (getMinimumSize): Call minimumSize.
10774 (getPreferredSize): Call preferredSize.
10775 (getHScrollbarHeight): New method.
10776 (getVScrollbarWidth): New method.
10777 (minimumSize): Calculate minimum size based on scrollbar
10778 visibility, scrollbar sizes, font metrics and number of rows and
10780 (preferredSize): Likewise for preferred size.
10781 (gtkTextGetSize): Remove method.
10783 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10785 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10786 (initializeInsets): Remove method.
10787 (GtkComponentPeer): Initialize insets field. Remove call to
10789 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
10791 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
10793 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
10794 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
10795 (latestInsets): Remove field.
10796 (native create): Add insets parameter. Call
10797 window_get_frame_extents. Set the window's default size and
10798 size request based on its frame extents.
10799 (create): Initialize insets.
10800 (postInsetsChangedEvent): New method.
10801 (postConfigureEvent): Remove parameters top, left, bottom,
10802 right. Remove insets-related logic.
10803 (connectJObject): Handle property-notify-event.
10804 (window_get_frame_extents, request_frame_extents,
10805 property_notify_predicate, window_property_changed_cb): New
10807 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10808 (pre_event_handler): Remove insets-related logic for configure
10810 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
10811 Update postConfigureEvent signature.
10813 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10815 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
10816 to handle Window "Closing" events.
10818 2004-01-13 David Jee <djee@redhat.com>
10820 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10821 (setBackground): New method. Children with no explicitly-set
10822 background will be repainted with the parent container's new
10825 2004-01-13 David Jee <djee@redhat.com>
10827 * Makefile.am: Add BitwiseXORComposite.java.
10828 * Makefile.in: Regenerated.
10829 * gcj/Makefile.in: Regenerated.
10830 * include/Makefile.in: Regenerated.
10831 * testsuite/Makefile.in: Regenerated.
10833 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10835 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
10836 not show modal dialogs twice and so that it allows showing a modal
10837 dialog from another modal dialog.
10839 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10841 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
10842 and run secondary dispatch thread to process event queue while this
10845 2004-01-12 Graydon Hoare <graydon@redhat.com>
10847 * gnu/java/awt/gtk/GdkGraphics2D.java
10848 (static): Check GtkToolkit before initializing static state.
10849 (Graphics2D): Don't construct transform with 0.5 unit offset.
10851 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
10853 * gnu/java/awt/BitwiseXORComposite.java: Add.
10854 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
10855 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
10856 (BitwiseXORComposite): Remove inner class.
10858 2004-01-11 Michael Koch <konqueror@gmx.de>
10860 * gnu/java/lang/reflect/TypeSignature.java
10861 (getEncodingOfClass): Documentation fixed.
10862 (getClassForEncoding): Give class loader to Class.forName().
10863 Documentation fixed.
10865 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
10867 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
10869 2004-01-11 Michael Koch <konqueror@gmx.de>
10871 * javax/swing/undo/StateEditable.java
10872 (RCSID): Removed redundant modifiers.
10874 2004-01-10 Michael Koch <konqueror@gmx.de>
10876 * javax/print/attribute/EnumSyntax.java
10877 (getStringTable): Made protected.
10878 (getEnumValueTable): Likewise.
10879 * javax/print/attribute/standard/JobKOctetsProcessed.java
10880 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
10881 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
10882 (JobMediaSheetsCompleted): Made class final.
10883 * javax/print/attribute/standard/OutputDeviceAssigned.java
10884 (getName): Fixed typo.
10885 * javax/print/attribute/standard/RequestingUserName.java
10886 (serialVersionUID): Fixed value.
10888 2004-01-10 Michael Koch <konqueror@gmx.de>
10890 * javax/swing/plaf/basic/BasicButtonUI.java,
10891 javax/swing/plaf/basic/BasicCheckBoxUI.java,
10892 javax/swing/plaf/basic/BasicListUI.java,
10893 javax/swing/plaf/basic/BasicOptionPaneUI.java,
10894 javax/swing/plaf/basic/BasicPanelUI.java,
10895 javax/swing/plaf/basic/BasicRadioButtonUI.java,
10896 javax/swing/plaf/basic/BasicScrollPaneUI.java,
10897 javax/swing/plaf/basic/BasicToggleButtonUI.java,
10898 javax/swing/plaf/basic/BasicViewportUI.java:
10899 Fixed import statements.
10901 2004-01-10 Michael Koch <konqueror@gmx.de>
10903 * gnu/java/awt/image/ImageDecoder.java
10904 (produce): Made public.
10905 * gnu/java/awt/peer/GLightweightPeer.java,
10906 gnu/java/awt/peer/gtk/GtkToolkit.java:
10909 2004-01-10 Michael Koch <konqueror@gmx.de>
10911 * javax/swing/JRadioButtonMenuItem.java,
10912 javax/swing/JSeparator.java,
10913 javax/swing/JSplitPane.java,
10914 javax/swing/JTextPane.java,
10915 javax/swing/JToolBar.java,
10916 javax/swing/ListCellRenderer.java,
10917 javax/swing/ListModel.java,
10918 javax/swing/MenuElement.java,
10919 javax/swing/OverlayLayout.java,
10920 javax/swing/ProgressMonitor.java,
10921 javax/swing/ProgressMonitorInputStream.java,
10922 javax/swing/Renderer.java,
10923 javax/swing/RootPaneContainer.java,
10924 javax/swing/Scrollable.java,
10925 javax/swing/SingleSelectionModel.java,
10926 javax/swing/ToolTipManager.java,
10927 javax/swing/ViewportLayout.java,
10928 javax/swing/event/DocumentEvent.java,
10929 javax/swing/event/SwingPropertyChangeSupport.java,
10930 javax/swing/event/TreeSelectionEvent.java,
10931 javax/swing/event/UndoableEditEvent.java,
10932 javax/swing/text/AbstractDocument.java,
10933 javax/swing/text/AttributeSet.java,
10934 javax/swing/text/Caret.java,
10935 javax/swing/text/ComponentView.java,
10936 javax/swing/text/DefaultCaret.java,
10937 javax/swing/text/DefaultEditorKit.java,
10938 javax/swing/text/Document.java,
10939 javax/swing/text/EditorKit.java,
10940 javax/swing/text/GapContent.java,
10941 javax/swing/text/Keymap.java,
10942 javax/swing/text/MutableAttributeSet.java,
10943 javax/swing/text/PlainEditorKit.java,
10944 javax/swing/text/Segment.java,
10945 javax/swing/text/Style.java,
10946 javax/swing/text/StyledDocument.java,
10947 javax/swing/text/StyledEditorKit.java,
10948 javax/swing/text/TextAction.java,
10949 javax/swing/text/View.java: Fixed import statements.
10951 2004-01-08 Graydon Hoare <graydon@redhat.com>
10953 * javax/swing/JLayeredPane.java: Rewrite to accomodate
10954 djee@redhat.com's recent inverse ordering of Container elements.
10956 2004-01-09 Michael Koch <konqueror@gmx.de>
10958 * gnu/java/lang/ArrayHelper.java
10959 (equalsArray): Removed.
10961 2004-01-09 Andrew Haley <aph@redhat.com>
10963 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
10964 a Utf8Const field before looking at its class.
10966 2004-01-09 Michael Koch <konqueror@gmx.de>
10968 * javax/print/attribute/standard/DocumentName.java,
10969 javax/print/attribute/standard/JobHoldUntil.java,
10970 javax/print/attribute/standard/JobMessageFromOperator.java,
10971 javax/print/attribute/standard/JobName.java,
10972 javax/print/attribute/standard/JobOriginatingUserName.java,
10973 javax/print/attribute/standard/OutputDeviceAssigned.java,
10974 javax/print/attribute/standard/PrinterInfo.java,
10975 javax/print/attribute/standard/PrinterLocation.java,
10976 javax/print/attribute/standard/PrinterMakeAndModel.java,
10977 javax/print/attribute/standard/PrinterMessageFromOperator.java,
10978 javax/print/attribute/standard/PrinterName.java,
10979 javax/print/attribute/standard/RequestingUserName.java: New files.
10980 * Makefile.am (javax_source_files): Added new files.
10981 * Makefile.in: Regenerated.
10983 2004-01-09 Michael Koch <konqueror@gmx.de>
10985 * javax/swing/AbstractAction.java,
10986 javax/swing/AbstractSet.java,
10987 javax/swing/Action.java,
10988 javax/swing/ActionMap.java,
10989 javax/swing/BoundedRangeModel.java,
10990 javax/swing/ButtonModel.java,
10991 javax/swing/CellEditor.java,
10992 javax/swing/CellRendererPane.java,
10993 javax/swing/ComboBoxEditor.java,
10994 javax/swing/DebugGraphics.java,
10995 javax/swing/DefaultCellEditor.java,
10996 javax/swing/DefaultCellRenderer.java,
10997 javax/swing/DefaultComboBoxModel.java,
10998 javax/swing/DefaultDesktopManager.java,
10999 javax/swing/DefaultFocusManager.java,
11000 javax/swing/DefaultListCellRenderer.java,
11001 javax/swing/Icon.java,
11002 javax/swing/JButton.java,
11003 javax/swing/JCheckBoxMenuItem.java,
11004 javax/swing/JDesktopPane.java,
11005 javax/swing/JEditorPane.java,
11006 javax/swing/JMenu.java,
11007 javax/swing/JPanel.java,
11008 javax/swing/JPasswordField.java,
11009 javax/swing/JPopupMenu.java,
11010 javax/swing/JProgressBar.java: Reworked imports.
11012 2004-01-09 Michael Koch <konqueror@gmx.de>
11014 * java/awt/geom/PathIterator.java
11015 (WIND_EVEN_ODD): Removed redundant modifiers.
11016 (WIND_NON_ZERO): Likewise.
11017 (SEG_MOVETO): Likewise.
11018 (SEG_LINETO): Likewise.
11019 (SEG_QUADTO): Likewise.
11020 (SEG_CUBICTO): Likewise.
11021 (SEG_CLOSE): Likewise.
11022 * java/awt/image/SinglePixelPackedSampleModel.java:
11023 Removed redundant semicolon.
11024 * java/io/ObjectInputStream.java
11025 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
11026 * java/util/logging/Filter.java
11027 (isLoggable): Removed redundant modifier.
11028 * java/util/logging/LogManager.java:
11029 Removed redundant semicolon.
11030 * java/util/logging/XMLFormatter.java
11031 (format): Removed unused variable "key".
11033 2004-01-08 Fernando Nasser <fnasser@redhat.com>
11035 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
11036 New name for the former setFile native method.
11037 (setFile): New method.
11038 (setDirectory): Implemented.
11039 (connectSignals): New native method.
11040 (setFilenameFilter): Improve comment.
11041 (getGraphics): Comment.
11042 (gtkHideFileDialog): New method.
11043 (gtkDisposeFileDialog): New method.
11044 (gtkSetFilename): New method.
11045 * java/awt/Dialog.java (show): Block on modal dialogs, but only
11046 for FileDialog for now.
11047 (hide): New method.
11048 (dispose): New method.
11049 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
11050 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
11051 deprecated creation functions. Make dialog modal. Add it to the
11053 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
11055 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
11057 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
11059 (window_closed): New function.
11060 (ok_clicked): New function.
11061 (cancel_clicked): New function.
11063 2004-01-08 Michael Koch <konqueror@gmx.de>
11065 * javax/swing/JLayeredPane.java: Revert changes to standard
11066 boilerplate, reworked imports.
11068 2004-01-07 Tom Tromey <tromey@redhat.com>
11071 * verify.cc (state::merge): Copy changed locals out of subroutine
11073 (state::FLAG_CHANGED): New const.
11074 (state::FLAG_UNUSED): Likewise.
11075 (state::local_changed): Removed. Updated all users.
11076 (state::flags): New field.
11077 (state::merge): Added jsr_semantics argument, more logic.
11078 (push_jump_merge): Added jsr_semantics argument.
11079 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
11080 merging through the jsr instruction.
11082 2004-01-07 Tom Tromey <tromey@redhat.com>
11084 * scripts/MakeDefaultMimeTypes.java: Use \n, not
11087 2004-01-07 Graydon Hoare <graydon@redhat.com>
11089 * java/awt/Container.java (LightweightDispatcher): Implement.
11090 (visitChild): Reuse graphics object.
11091 (dispatchEventImpl): Optionally dispatch to lightweight.
11092 (addNotifyContainerChildren): Build LightweightDispatcher.
11094 2004-01-07 David Jee <djee@redhat.com>
11096 * java/awt/Container.java
11097 (update): Clear only the clipped region, instead of clearing the
11099 (visitChildren): Visit children in descending order.
11101 2004-01-07 Michael Koch <konqueror@gmx.de>
11103 * java/lang/reflect/Array.java: Merged documentation with classpath.
11105 2004-01-07 Michael Koch <konqueror@gmx.de>
11107 * java/text/CollationElementIterator.java
11108 (textIndex): Renamed from index.
11109 * java/text/CollationKey.java
11110 (collator): New member.
11111 (CollationKey): New argument for parent collator.
11112 (equals): Check for same collator, source string and key array.
11113 * java/text/RuleBasedCollator.java:
11115 (RuleBasedCollator): Don't re-initialize frenchAccents with default
11117 (getCollationElementIterator): Rewritten.
11118 (getCollationKey): Added new argument to CollationKey constructor.
11120 2004-01-07 Michael Koch <konqueror@gmx.de>
11122 * gnu/java/nio/DatagramChannelImpl.java
11123 (blocking): Removed.
11124 (DatagramChannelImpl): Call configureBlocking().
11125 (implConfigureBlocking): Dont initialize blocking.
11126 * gnu/java/nio/ServerSocketChannelImpl.java
11127 (blocking): Removed.
11128 (ServerSocketChannelImpl): Call configureBlocking().
11129 (implConfigureBlocking): Dont initialize blocking.
11130 * gnu/java/nio/SocketChannelImpl.java
11131 (blocking): Removed.
11132 (SocketChannelImpl): Call configureBlocking().
11133 (implConfigureBlocking): Dont initialize blocking.
11134 (connect): Use isBlocking().
11135 * java/nio/channels/spi/AbstractSelectableChannel.java
11136 (configureBlocking): Use blockingLock() instead of LOCK.
11137 Set blocking after successfully called implConfigureBlocking().
11138 (register): Use blockingLock() instead of LOCK.
11140 2004-01-07 Michael Koch <konqueror@gmx.de>
11142 * java/net/ServerSocket.java (isBound): Fixed documentation.
11144 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
11146 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
11147 (changeEvent): Create event object on demand.
11148 (DefaultBoundedRangeModel, toString, setValue, setExtent,
11149 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
11150 fireStateChanged): Re-written.
11151 * javax/swing/event/EventListenerList.java: Reformatted, document
11153 (toString): Implemented.
11154 (getListeners): Re-written.
11155 (remove): Re-written.
11157 (NO_LISTENERS): New singleton field.
11158 (listenerList): Declare as transient; document.
11159 (serialVersionUID): Document.
11160 (getListenerCount(Class)): More efficient implementation,
11161 also accepts null argument. Improve Javadoc.
11162 (getListenerCount()): Remove unnecessary cast; docfix.
11163 * javax/swing/undo/UndoableEditSupport.java:
11164 Re-format, document.
11165 (UndoableEditSupport): Set realSource field. Improve documentation.
11166 (_postEdit): Iterate over cloned listener vector.
11167 (toString): Don't emit realSource.
11168 (beginUpdate, endUpdate): Support nested updates.
11169 (postEdit): Use compound edit if present.
11171 2004-01-06 Graydon Hoare <graydon@redhat.com>
11173 * java/awt/Container.java (swapComponents): Add forgotten
11174 function, required for JLayeredPane change.
11176 2004-01-06 Michael Koch <konqueror@gmx.de>
11178 * java/text/CollationElementIterator.java: Reformated.
11179 (CollationElementIterator): Changed order of arguments.
11180 * java/text/RuleBasedCollator.java
11181 (RuleBasedCollator): Merged class documentation.
11182 (CollationElement): Added documentation.
11183 (compare): Reformated, renamed arguments.
11184 (equals): Likewise.
11185 (getCollationElementIterator): Likewise.
11186 (getCollationKey): Likewise.
11188 2004-01-06 Graydon Hoare <graydon@redhat.com>
11190 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
11192 2004-01-06 Michael Koch <konqueror@gmx.de>
11194 * gnu/java/net/protocol/file/Connection.java:
11195 Reformated copyright.
11196 (hdrHash): Removed.
11198 (gotHeaders): Removed.
11199 (getHeaderField): Removed.
11200 (getHeaderField): Removed.
11201 (getHeaderFieldKey): Removed.
11203 (getField): Removed.
11204 (getHeaders): Removed.
11206 2004-01-06 Michael Koch <konqueror@gmx.de>
11208 * javax/print/attribute/standard/DateTimeAtCompleted.java,
11209 javax/print/attribute/standard/DateTimeAtCreation.java,
11210 javax/print/attribute/standard/DateTimeAtProcessing.java,
11211 javax/print/attribute/standard/JobImpressionsCompleted.java,
11212 javax/print/attribute/standard/JobKOctets.java,
11213 javax/print/attribute/standard/JobKOctetsProcessed.java,
11214 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
11215 javax/print/attribute/standard/JobPrioritySupported.java: New files.
11216 * Makefile.am (javax_source_files): Added new files.
11217 * Makefile.in: Regenerated.
11219 2004-01-06 Michael Koch <konqueror@gmx.de>
11221 * java/net/URLConnection.java
11222 (contentHandler): Removed.
11224 (getHeaderFields): Return an empty map instead of null.
11225 (getContent): Connect if needed, renamed "cType" to "type" and
11226 "contentHandler" to "ch" and made it a local variable.
11227 (getPermission): Don't use package in class name.
11228 (setDefaultRequestProperty): Fixed typo in documentation.
11229 (initializeDateFormats): Made locale a local variable.
11231 2004-01-06 Michael Koch <konqueror@gmx.de>
11233 * java/lang/Package.java
11234 (getPackage): Get the current class loader directly.
11235 * java/lang/SecurityManager.java
11236 (currentLoadedClass): Dont iterate over class contexts.
11237 (classLoaderDepth): Don't check class loaders if everything is allowed.
11239 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
11241 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
11242 (pre_event_handler): Set all insets to 0 when a Configure event
11243 is received for a GtkPlug.
11244 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
11245 Make handle long, not int.
11246 (EmbeddedWindow()): New constructor.
11247 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
11249 (setHandle): New method.
11250 (getHandle): Return long, not int.
11251 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
11253 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
11254 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
11255 (create(long)): Take long parameter, not int. Cast gtk_plug_new
11256 argument to GdkNativeWindow.
11257 (construct): New method.
11258 (embed): New method.
11260 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
11261 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
11262 (create(int, int)): New method.
11263 (create): Call new create method.
11264 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
11266 (childResized): Remove native implementation. Implement in
11268 (getHScrollbarHeight, getVScrollbarWidth): Call
11269 gtk_widget_size_request to get scrollbar dimensions.
11270 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
11271 call getVScrollbarWidth and getHScrollbarHeight when vertical
11272 and horizontal scrollbars respectively are needed.
11273 (doLayout): Enlarge child if it is smaller than the viewport.
11275 2004-01-05 Fernando Nasser <fnasser@redhat.com>
11277 * java/awt/Dialog.java (constructor): Accept null title as per spec.
11278 * java/awt/FileDialog.java (constructor): Throw exception on invalid
11279 argument as per spec.
11281 2004-01-05 Fernando Nasser <fnasser@redhat.com>
11283 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
11285 (remove): Ditto. Also, Check for valid argument.
11286 (removeAll): Use peer interface method.
11287 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
11288 native add function.
11289 (nativeRemove): New name for native remove function.
11290 (getHistory): New native function.
11291 (constructor): Generate ItemEvent.
11292 (add): Ditto, if selection is changed.
11293 (remove): Ditto, ditto.
11294 (removeAll): Add implementation.
11295 (handleEvent): Remove. Dead code.
11296 (choicePostItemEvent): Add comment.
11297 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
11298 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
11299 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
11300 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
11301 comments and fix condition to change selection.
11302 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
11303 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
11304 remove all capability.
11305 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
11306 (item_activate): Add cast to remove compiler warning.
11308 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
11310 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
11311 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
11312 (getPreferredSize): Call preferredSize.
11313 (preferredSize): Call gtkWidgetGetPreferredDimensions.
11314 (getMinimumSize): Call minimumSize.
11315 (minimumSize): Call gtkWidgetGetPreferredDimensions.
11316 (gtkWidgetGetDimensions): Return the peer widget's current size
11318 (gtkWidgetGetPreferredDimensions): Return the peer widget's
11319 natural size request.
11321 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
11323 Thanks to Brian Gough <bjg@network-theory.com>
11324 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
11325 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
11327 2004-01-04 Matthias Klose <doko@debian.org>
11329 * aclocal.m4: Rebuilt using "aclocal -I .".
11330 * configure: Rebuilt.
11332 2004-01-03 Per Bothner <per@bothner.com>
11334 * java/util/Date.java (parse): Fix a number of problems.
11335 (skipParens): Remove no-longer-needed method.