1 2004-10-18 Michael Koch <konqueror@gmx.de>
4 java/lang/Package.java,
5 java/lang/Runtime.java,
6 java/lang/StrictMath.java,
9 java/lang/ThreadLocal.java,
11 Reworked import statements, HTML in javadocs and modifier orders.
13 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
15 * java/util/Timer.java
16 (nr): Removed useless initializer.
17 * java/util/logging/LogRecord.java
18 (lastSeqNum): Likewise.
19 * javax/naming/spi/NamingManager.java
20 (icfb, ofb): Likewise.
22 2004-10-18 Michael Koch <konqueror@gmx.de>
24 * gnu/java/net/PlainDatagramSocketImpl.java:
25 Reworked import statements.
26 * gnu/java/security/provider/DSAParameters.java:
27 Fixed copyrigth years.
28 * java/net/JarURLConnection.java:
29 Fixed HTML in @author tags.
32 2004-10-18 Michael Koch <konqueror@gmx.de>
34 * java/rmi/activation/ActivationSystem.java
35 (SYSTEM_PORT): Initialize with correct port number.
37 2004-10-18 Michael Koch <konqueror@gmx.de>
39 * java/lang/reflect/Proxy.java: Improved javadocs.
41 2004-10-18 Michael Koch <konqueror@gmx.de>
43 * java/lang/reflect/AccessibleObject.java
44 (checkPermission): Removed redundant final modifier.
45 (secureSetAccessible): Likewise.
46 * java/lang/reflect/Proxy.java:
47 Reworked import statements.
48 (generate): Removed redundant final modifier.
49 * java/lang/reflect/ReflectPermission.java:
50 Reorder package declaration and import statement.
52 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
54 * java/lang/reflect/Proxy.java
55 (count): Removed useless initializer.
57 2004-10-17 Michael Koch <konqueror@gmx.de>
59 * java/net/BindException.java,
60 java/net/ConnectException.java,
61 java/net/ContentHandler.java,
62 java/net/ContentHandlerFactory.java,
63 java/net/DatagramPacket.java,
64 java/net/DatagramSocket.java,
65 java/net/DatagramSocketImpl.java,
66 java/net/DatagramSocketImplFactory.java,
67 java/net/FileNameMap.java,
68 java/net/HttpURLConnection.java,
69 java/net/MalformedURLException.java,
70 java/net/MulticastSocket.java,
71 java/net/NetworkInterface.java,
72 java/net/NoRouteToHostException.java,
73 java/net/PasswordAuthentication.java,
74 java/net/PortUnreachableException.java,
75 java/net/ProtocolException.java,
76 java/net/ServerSocket.java,
78 java/net/SocketException.java,
79 java/net/SocketImpl.java,
80 java/net/SocketImplFactory.java,
81 java/net/SocketOptions.java,
82 java/net/SocketPermission.java,
83 java/net/SocketTimeoutException.java,
85 java/net/URISyntaxException.java,
87 java/net/URLDecoder.java,
88 java/net/URLEncoder.java,
89 java/net/URLStreamHandler.java,
90 java/net/URLStreamHandlerFactory.java,
91 java/net/UnknownHostException.java,
92 java/net/UnknownServiceException.java:
93 Big import statement and @author tag cleanup.
95 2004-10-17 Michael Koch <konqueror@gmx.de>
97 * gnu/java/security/OID.java,
98 gnu/java/security/provider/DSAParameters.java,
99 gnu/java/security/provider/DSASignature.java,
100 gnu/java/security/x509/X500DistinguishedName.java,
101 gnu/java/security/x509/X509CRL.java:
102 Import statements cleaned up.
104 2004-10-16 Michael Koch <konqueror@gmx.de>
106 * gnu/java/nio/NIODatagramSocket.java,
107 gnu/java/nio/ServerSocketChannelImpl.java:
108 Reorganized import statements.
110 2004-10-16 Michael Koch <konqueror@gmx.de>
112 * gnu/java/rmi/RMIMarshalledObjectOutputStream.java
113 gnu/java/rmi/rmic/RMIC.java,
114 gnu/java/rmi/server/RMIHashes.java,
115 gnu/java/rmi/server/RMIObjectInputStream.java,
116 gnu/java/rmi/server/RMIObjectOutputStream.java,
117 gnu/java/rmi/server/UnicastConnection.java,
118 gnu/java/rmi/server/UnicastConnectionManager.java,
119 gnu/java/rmi/server/UnicastRemoteCall.java,
120 gnu/java/rmi/server/UnicastServer.java,
121 gnu/java/rmi/server/UnicastServerRef.java,
122 java/rmi/MarshalledObject.java,
123 java/rmi/Naming.java,
124 java/rmi/RMISecurityManager.java,
125 java/rmi/Remote.java,
126 java/rmi/activation/Activatable.java,
127 java/rmi/activation/ActivationDesc.java,
128 java/rmi/activation/ActivationGroup.java,
129 java/rmi/activation/ActivationGroupDesc.java,
130 java/rmi/activation/ActivationGroupID.java,
131 java/rmi/activation/ActivationID.java,
132 java/rmi/activation/ActivationInstantiator.java,
133 java/rmi/activation/ActivationMonitor.java,
134 java/rmi/activation/ActivationSystem.java,
135 java/rmi/activation/Activator.java,
136 java/rmi/dgc/DGC.java,
137 java/rmi/dgc/Lease.java,
138 java/rmi/dgc/VMID.java,
139 java/rmi/registry/LocateRegistry.java,
140 java/rmi/registry/Registry.java,
141 java/rmi/registry/RegistryHandler.java,
142 java/rmi/server/LoaderHandler.java,
143 java/rmi/server/LogStream.java,
144 java/rmi/server/ObjID.java,
145 java/rmi/server/Operation.java,
146 java/rmi/server/RMIClassLoader.java,
147 java/rmi/server/RMIClassLoaderSpi.java,
148 java/rmi/server/RMIClientSocketFactory.java,
149 java/rmi/server/RMIFailureHandler.java,
150 java/rmi/server/RMIServerSocketFactory.java,
151 java/rmi/server/RMISocketFactory.java,
152 java/rmi/server/RemoteCall.java,
153 java/rmi/server/RemoteObject.java,
154 java/rmi/server/RemoteRef.java,
155 java/rmi/server/RemoteServer.java,
156 java/rmi/server/RemoteStub.java,
157 java/rmi/server/ServerRef.java,
158 java/rmi/server/Skeleton.java,
159 java/rmi/server/SkeletonMismatchException.java,
160 java/rmi/server/UID.java,
161 java/rmi/server/UnicastRemoteObject.java,
162 java/rmi/server/Unreferenced.java:
163 File headers and import statements cleaned up.
165 2004-10-16 Michael Koch <konqueror@gmx.de>
167 * libjava/gnu/java/nio/charset/UTF_16.java,
168 libjava/gnu/java/nio/charset/UTF_16BE.java,
169 libjava/gnu/java/nio/charset/UTF_16LE.java,
170 libjava/java/nio/ByteOrder.java,
171 libjava/java/nio/MappedByteBuffer.java,
172 libjava/java/nio/channels/Channels.java,
173 libjava/java/nio/channels/spi/SelectorProvider.java,
174 libjava/java/nio/charset/Charset.java:
177 2004-10-16 Michael Koch <konqueror@gmx.de>
179 * gnu/java/nio/charset/UTF_16Encoder.java
180 (UTF_16Encoder): Fixed maxBytesPerChar handling.
182 2004-10-16 Michael Koch <konqueror@gmx.de>
184 * java/math/BigDecimal.java, java/math/BigInteger.java:
185 Reorganized import statements, removed redundant and
186 reorganized modifiers.
188 2004-10-16 Michael Koch <konqueror@gmx.de>
190 * gnu/java/beans/ExplicitBeanInfo.java:
191 Explicitely import java.awt.Image.
192 (getIcon): Fixed off-by-one error.
194 2004-10-15 Andrew Haley <aph@redhat.com>
196 * Makefile.am (nat_files, xlib_nat_files): New.
197 * Makefile.in: Regenerate.
199 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
201 * jni.cc (_Jv_JNIMethod::call): Use ffi_java_raw_call instead of
202 ffi_raw_call if FFI_NATIVE_RAW_API is not defined.
204 2004-10-13 Andrew Haley <aph@redhat.com>
206 * interpret.cc (_Jv_InterpMethod::run): Initialize
207 _Jv_StartOfInterpreter.
208 (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): Functions removed.
209 (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): New variables.
210 * gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Use
211 _Unwind_FindEnclosingFunction to discover whether PC is within the
214 2004-10-12 Rutger Ovidius <ovidr@users.sourceforge.net>
217 * testsuite/libjava.lang/md5test.java: New file.
218 * testsuite/libjava.lang/md5test.out: Likewise.
219 * testsuite/libjava.lang/shatest.java: Likewise.
220 * testsuite/libjava.lang/shatest.out: Likewise.
222 2004-10-11 Richard Henderson <rth@redhat.com>
224 * include/posix-threads.h <__alpha__> (_Jv_ThreadId_t): Use void*.
225 (_Jv_ThreadSelf): Use __builtin_thread_pointer.
227 2004-10-08 Bryce McKinlay <mckinlay@redhat.com>
229 * java/util/Calendar.java (set): Invalidate DST_OFFSET
230 field as a DST boundary may have been crossed.
231 * java/util/GregorianCalendar.java (add): Throw
232 IllegalArgumentException on attempt to add to DST_OFFSET or
233 ZONE_OFFSET fields. Update javadoc.
235 2004-10-09 Michael Koch <konqueror@gmx.de>
237 * java/io/CharArrayWriter.java
238 (resize): Removed redundant 'final' modifier.
239 * java/io/DataInputStream.java
240 (readFully): Throw IndexOutOfBoundsException of len < 0.
241 * java/io/FileDescriptor.java,
242 java/io/FileInputStream.java,
243 java/io/FileOutputStream.java,
244 java/io/ObjectOutputStream.java,
245 java/io/ObjectStreamClass.java,
246 java/io/PipedInputStream.java,
247 java/io/RandomAccessFile.java:
248 Reorganized import statements.
250 2004-10-09 Michael Koch <konqueror@gmx.de>
252 * gnu/java/rmi/rmic/RMIC.java,
253 gnu/java/rmi/server/RMIHashes.java,
254 gnu/java/rmi/server/RMIObjectInputStream.java,
255 gnu/java/rmi/server/UnicastConnection.java,
256 gnu/java/rmi/server/UnicastConnectionManager.java,
257 gnu/java/rmi/server/UnicastRemoteCall.java,
258 gnu/java/rmi/server/UnicastServerRef.java:
259 Reworked import statements and fixed file headers.
261 2004-10-04 Loren J. Rittle <ljrittle@acm.org>
263 * configure.ac (*-*-freebsd[[1234]]*): Refine error message
265 * configure: Rebuilt.
267 2004-09-30 Tom Tromey <tromey@redhat.com>
269 * java/text/MessageFormat.java (Field): Constructor now
272 2004-09-30 Tom Tromey <tromey@redhat.com>
274 * javax/crypto/MacSpi.java: Fixed typo.
276 2004-09-30 Michael Koch <konqueror@gmx.de>
278 * java/net/InetAddress.java: Reformatted.
279 (loopback): Initialize with Inet4Address object.
280 (static): Initialize ANY_IF with Inet4Address object.
281 (InetAddress): Removed unused package-private constructor.
283 2004-09-30 Michael Koch <konqueror@gmx.de>
285 * java/beans/Beans.java,
286 java/beans/EventHandler.java,
287 java/beans/EventSetDescriptor.java,
288 java/beans/Introspector.java,
289 java/beans/PropertyEditorManager.java,
290 java/beans/beancontext/BeanContext.java,
291 java/beans/beancontext/BeanContextChild.java,
292 java/beans/beancontext/BeanContextChildSupport.java,
293 java/beans/beancontext/BeanContextMembershipEvent.java:
294 Reordered import statements and removed redundant modifiers.
296 2004-09-29 Tom Tromey <tromey@redhat.com>
299 * Makefile.in: Rebuilt.
300 * Makefile.am (libgcj-@gcc_version@.jar): Include properties
302 (all_property_files): New macro.
304 * Makefile.in: Rebuilt.
305 * Makefile.am (ordinary_java_source_files): Re-sorted.
306 (libgcj.la): Moved to old location near lib-gnu-awt-xlib.la.
308 2004-09-28 Tom Tromey <tromey@redhat.com>
310 * jni.cc (_Jv_JNI_RegisterNatives): Formatting fixlets.
313 * Makefile.am (libgcj.la): Restored.
314 * Makefile.in: Rebuilt.
316 2004-09-28 Michael Koch <konqueror@gmx.de>
318 * java/net/URLConnection.java: Reformatted.
319 * java/net/URLClassLoader.java: Reformatted.
320 (getContent): Reordered return of content.
321 (getContentHandler): Don't check for null explicitely.
323 2004-09-27 Michael Koch <konqueror@gmx.de>
325 * java/io/BufferedInputStream.java
326 (BufferedInputStream): Added Jeroen Frijters to authors.
327 (count): Don't explicitely initialize with default value.
329 (marklimit): Likewise.
330 (read): Changed boolean expression to match GNU classpath' version.
331 (reset): Add proper message to exception.
332 (skip): Check for closed stream.
335 2004-09-26 Per Bothner <per@bothner.com>
337 * prims.cc (unblock_signal): Annotate signum with __unused__ to
338 avoid warnings in the non-POSIX_VERSION case.
339 Also, we only need this function if either HANDLE_SEGV or HANDLE_FPE,
340 so place it inside an #if block.
341 * include/default-signal.h (SIGNAL_HANDLER): Parameters are __unused__.
342 * include/i386-signal.h (SIGNAL_HANDLER): Likewise
343 * include/mips-signal.h (SIGNAL_HANDLER): Likewise
344 * include/sparc-signal.h (SIGNAL_HANDLER): Likewise
346 2004-09-26 Per Bothner <per@bothner.com>
348 * prims.cc (process_gcj_properties): Optimization.
350 2004-09-26 Per Bothner <per@bothner.com>
352 * java/util/Collections.java (sort): Copy from array in forwards
353 order, rather than reverse order which may be much less efficient.
355 2004-09-26 Mark Wielaard <mark@klomp.org>
357 * java/lang/System.java (properties): Make package private.
358 * java/lang/Throwable.java (StaticData.nl): Initialize through
359 directly accessing System.properties.getProperty().
361 * java/lang/Throwable.java (nl): Remove static field.
362 (StaticData): New private static inner class.
363 (stackTraceStringBuffer): Use StaticData.nl.
365 2004-09-26 Casey Marshall <csm@gnu.org>
367 * java/security/ProtectionDomain.java
368 (<init>(CodeSource,PermissionCollection)): set `staticBinding' to
371 * java/security/SecureClassLoader.java
372 (defineClass): make protection domain dynamically bound.
373 (getPermissions): call `getCurrentPolicy' to avoid permission
376 2004-09-25 Mark Wielaard <mark@klomp.org>
378 * Makefile.am (core_java_source_files): Add VMTimeZone.java.
379 (nat_source_files): Rename natTimeZone.cc to natVMTimeZone.cc.
380 * Makefile.in: Regenerated.
382 * gcj/javaprims.h: Regenerated.
384 * java/util/TimeZone.java (defaultZone): Use VMTimeZone.
385 (getDefaultTimeZone): Make package private. Check that GMToffset
386 contains at least one digit.
387 (getDefaultTimeZoneId, readTimeZoneFile, readtzFile): (Re)Moved to
389 * util/VMTimeZone.java: New file with above methods.
391 * java/util/natTimeZone.cc: Removed (renamed).
392 * java/util/natVMTimeZone.cc: Added (renamed).
394 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
396 * java/util/TimeZone.java
397 (getDefaultTimeZone): Fixed test to distinguish between hours and
398 minutes in specified timezone.
400 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
402 * java/lang/reflect/Proxy.java (getPackage, ClassFactory): Fixed
403 handling of default package. (generate): Removed confused comments
404 and code about making Method and Field accessible.
406 2004-09-25 Tom Tromey <tromey@redhat.com>
409 * testsuite/libjava.compile/pr17500.java: New file.
411 2004-09-25 Shashank Bapat <shashankbapat@yahoo.com>
412 Mark Wielaard <mark@klomp.org>
414 * gnu/regexp/RE.java (initialize): Add RETokenLookAhead support.
415 * gnu/regexp/RETokenLookAhead.java: New file.
417 * Makefile.am (ordinary_java_source_files): Add RETokenLookAhead.java.
418 * Makefile.in: Regenerated.
420 2004-09-25 Michael Koch <konqueror@gmx.de>
422 * java/io/ObjectStreamField.java:
423 Removed unused import statement.
425 2004-09-24 Tom Tromey <tromey@redhat.com>
428 * testsuite/libjava.compile/pr15656.xfail: New file.
429 * testsuite/libjava.compile/pr15656.java: new file.
432 * testsuite/libjava.lang/pr16789.out: New file.
433 * testsuite/libjava.lang/pr16789.java: New file.
435 2004-09-24 Andrew Haley <aph@redhat.com>
438 * testsuite/libjava.compile/AssertBug.java: New file.
440 2004-09-24 Casey Marshall <csm@gnu.org>
442 * java/util/PropertyPermissionCollection.java
443 (implies): avoid infinite loop.
445 2004-09-24 Andrew John Hughes <gnu_andrew@member.fsf.org>
447 * javax/security/auth/PrivateCredentialPermission.java
448 (PrivateCredentialPermission): added serialization UID
451 2004-09-24 Ilya Perminov <iperminov@logicalsoft.com>
453 * gnu/java/rmi/server/UnicastServer.java
454 (incomingMessageCall): Added code to handle Errors.
455 * gnu/java/rmi/server/UnicastServerRef.java
456 (incomingMessageCall): Added code to handle Errors.
459 2004-09-24 Tom Tromey <tromey@redhat.com>
461 * java/lang/ClassLoader.java (loadedClasses): Declare as HashMap.
462 (definedPackages): Likewise.
464 2004-09-24 Michael Koch <konqueror@gmx.de>
466 * java/io/ObjectInputStream.java:
469 2004-09-24 Casey Marshall <csm@gnu.org>
471 * java/io/ObjectInputStream.java (callReadMethod): re-throw
472 `ClassNotFoundException'.
474 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
476 * java/io/ObjectInputStream.java (readObject): Delegate instantation
477 of Externalizable classes to ObjectStreamClass.
478 * java/io/ObjectStreamClass.java (newInstance): New method to
479 instantiate Externalizable (while ignoring the accessibility of
480 the constructor). (constructor): New field to cache the constructor.
482 2004-09-24 Mark Wielaard <mark@klomp.org>
484 * java/net/URL.java (systemClassLoader): New static field.
485 (getURLStreamHandler): Always use system/application classloader
486 for finding URLStreamhandler. Remove unecessary instanceof checks.
488 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
491 (set): This method now matches the behaviour of the JDK.
492 (DEFAULT_SEARCH_PATH): Added "gnu.inet".
494 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
496 * java/net/URL.java (URL): Delete whitespaces in the protocol string.
498 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
500 * java/net/URL.java (URL(String,String,int,String,URLStreamHandler):
501 Don't set authority if host isn't specified.
503 2004-09-24 Michael Koch <konqueror@gmx.de>
505 * gnu/java/nio/PipeImpl.java: Use VMPipe for native stuff.
506 * gnu/java/nio/SelectorImpl.java: Use VMSelector for native stuff.
507 * gnu/java/nio/VMPipe.java,
508 gnu/java/nio/VMSelector.java:
510 * gnu/java/nio/natPipeImplEcos.cc,
511 gnu/java/nio/natPipeImplPosix.cc,
512 gnu/java/nio/natPipeImplWin32.cc:
514 * gnu/java/nio/natSelectorImplEcos.cc,
515 gnu/java/nio/natSelectorImplPosix.cc,
516 gnu/java/nio/natSelectorImplWin32.cc:
517 Ported to VMSelector.
518 * Makefile.am: Added new files gnu/java/nio/VMPipe.java and
519 gnu/java/nio/VMSelector.java.
520 * Makefile.in: Regenerated.
522 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
524 * java/lang/StackTraceElement.java
525 (className): Renamed field to declaringClass to be compatible
526 with Sun serialization format.
528 2004-09-23 Michael Koch <konqueror@gmx.de>
530 * java/applet/AppletContext.java,
531 java/applet/Applet.java,
532 java/applet/AppletStub.java,
533 java/applet/AudioClip.java:
534 Jalopied and checkstyle clean.
536 2004-09-23 Mark Wielaard <mark@klomp.org>
538 * java/util/Collections.java
539 (binarySearch(List, Object, Comparator)): Explicitly
540 reverse direction in list iterator.
541 (rotate): Just return when list is empty.
543 2004-09-23 Tom Tromey <tromey@redhat.com>
546 * testsuite/libjava.compile/pr17329.java: New file.
549 * testsuite/libjava.jacks/jacks.xfail: Added 9.2-implicit-6 and
552 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
554 * Makefile.am: Run aclocal with -I ../config
555 * acinclude.m4: Delete macros picked up from ../config and tidy.
556 (AM_ICONV,AM_LC_MESSAGES, PKG_CHECK_MODULES): Delete.
557 * aclocal.m4, configure, Makefile.in, gcj/Makefile.in: Regenerate.
558 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
560 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
562 * aclocal.m4: Regenerate with aclocal 1.9.2.
563 * configure: Regenerate.
564 * Makefile.in, gcj/Makefile.in: Regenerate with automake 1.9.2.
565 * include/Makefile.in, testsuite/Makefile.in: Likewise.
567 2004-09-22 David Daney <ddaney@avtrex.com>
570 * java/net/URL.java (URL): Copy userInfo from context.
571 (getUserInfo): Return cached userInfo if present.
573 2004-09-22 Tom Tromey <tromey@redhat.com>
576 * mauve-libgcj: Enable java.lang.Character tests.
578 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
580 * Makefile.am (lib_org_ietf_jgss_la_DEPENDENCIES): Add missing
582 (lib_org_ietf_jgss_la_LIBADD): Likewise.
583 * Makefile.in: Regenerated.
585 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
587 * configure.ac: Introduce AC_C_BIGENDIAN_CROSS for WORDS_BIGENDIAN.
588 * configure: Regenerate.
589 * include/config.h.in: Likewise.
590 * jni/gtk-peer/gtkpeer.h (SWAPU32): Introduce macro to swap pixels.
591 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c: Moved SWAPU32
593 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
594 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_getImagePixels): Convert
595 pixels from 0xBBGGRRAA to 0xAARRGGBB only on Little Endian
597 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c (area_updated):
600 2004-09-22 Tom Tromey <tromey@redhat.com>
603 * java/util/zip/GZIPInputStream.java (read): Avoid sign extension
605 * java/util/zip/InflaterInputStream.java (onebytebuffer): New
607 (read()): New overload.
609 2004-09-21 Tom Tromey <tromey@redhat.com>
611 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
614 2004-09-21 Michael Koch <konqueror@gmx.de>
616 * java/net/Socket.java
617 (getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
619 2004-09-21 Casey Marshall <csm@gnu.org>
621 * javax/crypto/MacSpi.java (clone): Provide meaningful
624 2004-09-21 Tom Tromey <tromey@redhat.com>
627 * Makefile.in: Rebuilt.
628 * Makefile.am (MOSTLYCLEANFILES): Removed.
629 (mostlyclean-local): Remove header files.
631 2004-09-21 Casey Marshall <csm@gnu.org>
633 * java/security/cert/X509CRLSelector.java:
634 (match): remove unreachable try-catch clauses.
635 Reported by: Dalibor Topic <robilad@kaffe.org>
637 2004-09-21 Mark Wielaard <mark@klomp.org>
639 * java/util/TreeMap.java (root): Don't initialize.
640 (TreeMap(Comparator)): Call fabricateTree(0).
641 (fabricateTree): Initialize root and size when count is 0.
643 2004-09-21 Sven de Marothy <sven@physto.se>
645 * java/nio/ByteBuffer.java (hashCode): Implemented.
646 * java/nio/CharBuffer.java: Likewise.
647 * java/nio/DoubleBuffer.java: Likewise.
648 * java/nio/FloatBuffer.java: Likewise.
649 * java/nio/LongBuffer.java: Likewise.
650 * java/nio/IntBuffer.java: Likewise.
651 * java/nio/ShortBuffer.java: Likewise.
653 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
655 * javax/security/auth/x500/X500Principal.java: Fix some merge glitches.
657 2004-09-21 Michael Koch <konqueror@gmx.de>
659 * javax/net/ssl/SSLServerSocket.java:
660 Removed comment about "Do not edit this file, it's generated.".
662 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
664 Import the big Crypto/Jessie/Security merge from Classpath.
666 * Makefile.am: Add imported files.
667 * Makefile.in: Regenerate.
669 2004-08-14 Casey Marshall <csm@gnu.org>
671 The Big Crypto Merge of 2004.
673 * javax/security/auth/x500/X500Principal.java: Replaced with GNU
676 Files imported from GNU Crypto.
677 * javax/crypto/BadPaddingException.java
678 * javax/crypto/Cipher.java
679 * javax/crypto/CipherInputStream.java
680 * javax/crypto/CipherOutputStream.java
681 * javax/crypto/CipherSpi.java
682 * javax/crypto/EncryptedPrivateKeyInfo.java
683 * javax/crypto/ExemptionMechanism.java
684 * javax/crypto/ExemptionMechanismException.java
685 * javax/crypto/ExemptionMechanismSpi.java
686 * javax/crypto/IllegalBlockSizeException.java
687 * javax/crypto/KeyAgreement.java
688 * javax/crypto/KeyAgreementSpi.java
689 * javax/crypto/KeyGenerator.java
690 * javax/crypto/KeyGeneratorSpi.java
691 * javax/crypto/Mac.java
692 * javax/crypto/MacSpi.java
693 * javax/crypto/Makefile.am
694 * javax/crypto/NoSuchPaddingException.java
695 * javax/crypto/NullCipher.java
696 * javax/crypto/NullCipherImpl.java
697 * javax/crypto/SealedObject.java
698 * javax/crypto/SecretKey.java
699 * javax/crypto/SecretKeyFactory.java
700 * javax/crypto/SecretKeyFactorySpi.java
701 * javax/crypto/ShortBufferException.java
702 * javax/crypto/interfaces/DHKey.java
703 * javax/crypto/interfaces/DHPrivateKey.java
704 * javax/crypto/interfaces/DHPublicKey.java
705 * javax/crypto/interfaces/PBEKey.java
706 * javax/crypto/spec/DESKeySpec.java
707 * javax/crypto/spec/DESedeKeySpec.java
708 * javax/crypto/spec/DHGenParameterSpec.java
709 * javax/crypto/spec/DHParameterSpec.java
710 * javax/crypto/spec/DHPrivateKeySpec.java
711 * javax/crypto/spec/DHPublicKeySpec.java
712 * javax/crypto/spec/IvParameterSpec.java
713 * javax/crypto/spec/PBEKeySpec.java
714 * javax/crypto/spec/PBEParameterSpec.java
715 * javax/crypto/spec/RC2ParameterSpec.java
716 * javax/crypto/spec/RC5ParameterSpec.java
717 * javax/crypto/spec/SecretKeySpec.java
718 * javax/security/auth/AuthPermission.java
719 * javax/security/auth/DestroyFailedException.java
720 * javax/security/auth/Destroyable.java
721 * javax/security/auth/Policy.java
722 * javax/security/auth/PrivateCredentialPermission.java
723 * javax/security/auth/RefreshFailedException.java
724 * javax/security/auth/Refreshable.java
725 * javax/security/auth/Subject.java
726 * javax/security/auth/SubjectDomainCombiner.java
727 * javax/security/auth/callback/Callback.java
728 * javax/security/auth/callback/CallbackHandler.java
729 * javax/security/auth/callback/ChoiceCallback.java
730 * javax/security/auth/callback/ConfirmationCallback.java
731 * javax/security/auth/callback/LanguageCallback.java
732 * javax/security/auth/callback/NameCallback.java
733 * javax/security/auth/callback/PasswordCallback.java
734 * javax/security/auth/callback/TextInputCallback.java
735 * javax/security/auth/callback/TextOutputCallback.java
736 * javax/security/auth/callback/UnsupportedCallbackException.java
737 * javax/security/auth/login/AccountExpiredException.java
738 * javax/security/auth/login/AppConfigurationEntry.java
739 * javax/security/auth/login/Configuration.java
740 * javax/security/auth/login/CredentialExpiredException.java
741 * javax/security/auth/login/FailedLoginException.java
742 * javax/security/auth/login/LoginContext.java
743 * javax/security/auth/login/LoginException.java
744 * javax/security/auth/login/NullConfiguration.java
745 * javax/security/auth/x500/X500PrivateCredential.java
746 * javax/security/sasl/AuthenticationException.java
747 * javax/security/sasl/AuthorizeCallback.java
748 * javax/security/sasl/RealmCallback.java
749 * javax/security/sasl/RealmChoiceCallback.java
750 * javax/security/sasl/Sasl.java
751 * javax/security/sasl/SaslClient.java
752 * javax/security/sasl/SaslClientFactory.java
753 * javax/security/sasl/SaslException.java
754 * javax/security/sasl/SaslServer.java
755 * javax/security/sasl/SaslServerFactory.java
756 * org/ietf/jgss/ChannelBinding.java
757 * org/ietf/jgss/GSSContext.java
758 * org/ietf/jgss/GSSCredential.java
759 * org/ietf/jgss/GSSException.java
760 * org/ietf/jgss/GSSManager.java
761 * org/ietf/jgss/GSSName.java
762 * org/ietf/jgss/MessageProp.java
763 * org/ietf/jgss/Oid.java
764 * org/ietf/jgss/MessagesBundle.properties
766 Files imported from Jessie <http://www.nongnu.org/jessie/>
767 * javax/net/ServerSocketFactory.java
768 * javax/net/SocketFactory.java
769 * javax/net/VanillaServerSocketFactory.java
770 * javax/net/VanillaSocketFactory.java
771 * javax/net/ssl/HandshakeCompletedEvent.java
772 * javax/net/ssl/HandshakeCompletedListener.java
773 * javax/net/ssl/HostnameVerifier.java
774 * javax/net/ssl/HttpsURLConnection.java
775 * javax/net/ssl/KeyManager.java
776 * javax/net/ssl/KeyManagerFactory.java
777 * javax/net/ssl/KeyManagerFactorySpi.java
778 * javax/net/ssl/ManagerFactoryParameters.java
779 * javax/net/ssl/SSLContext.java
780 * javax/net/ssl/SSLContextSpi.java
781 * javax/net/ssl/SSLException.java
782 * javax/net/ssl/SSLHandshakeException.java
783 * javax/net/ssl/SSLKeyException.java
784 * javax/net/ssl/SSLPeerUnverifiedException.java
785 * javax/net/ssl/SSLPermission.java
786 * javax/net/ssl/SSLProtocolException.java
787 * javax/net/ssl/SSLServerSocket.java
788 * javax/net/ssl/SSLServerSocketFactory.java
789 * javax/net/ssl/SSLSession.java
790 * javax/net/ssl/SSLSessionBindingEvent.java
791 * javax/net/ssl/SSLSessionBindingListener.java
792 * javax/net/ssl/SSLSessionContext.java
793 * javax/net/ssl/SSLSocket.java
794 * javax/net/ssl/SSLSocketFactory.java
795 * javax/net/ssl/TrivialHostnameVerifier.java
796 * javax/net/ssl/TrustManager.java
797 * javax/net/ssl/TrustManagerFactory.java
798 * javax/net/ssl/TrustManagerFactorySpi.java
799 * javax/net/ssl/X509KeyManager.java
800 * javax/net/ssl/X509TrustManager.java
801 * javax/security/cert/Certificate.java
802 * javax/security/cert/CertificateEncodingException.java
803 * javax/security/cert/CertificateException.java
804 * javax/security/cert/CertificateExpiredException.java
805 * javax/security/cert/CertificateNotYetValidException.java
806 * javax/security/cert/CertificateParsingException.java
807 * javax/security/cert/X509CertBridge.java
808 * javax/security/cert/X509Certificate.java
810 2004-08-20 Casey Marshall <csm@gnu.org>
812 * java/security/cert/X509CRLSelector.java: New file.
813 * java/security/cert/X509CertSelector.java: New file.
815 2004-09-15 Michael Koch <konqueror@gmx.de>
817 * gnu/java/net/protocol/file/Handler.java
818 (openConnection): Don't throw exception if host part for file: URI is
819 present. setURL() keeps file: protocol if ftp: protocol is not
822 2004-09-14 Richard Henderson <rth@redhat.com>
824 * java/lang/natPosixProcess.cc (waitForSignal): Ignore return
827 2004-09-12 Tom Tromey <tromey@redhat.com>
829 * javax/naming/CompoundName.java (CompoundName): Don't check for
830 separator in "flat" case.
832 2004-09-12 Michael Koch <konqueror@gmx.de>
834 * libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces
835 AM_CONFIG_HEADER by AC_CONFIG_FILES.
836 * libltdl/Makefile.in, libltdl/aclocal.m4, libltdl/configure:
839 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
842 * win32-threads.cc (_Jv_ThreadInitData): Zero out thread
843 handle in newly-allocated _Jv_Thread_t.
844 (_Jv_ThreadDestroyData): Close thread handle.
845 (_Jv_ThreadStart): Remove obsolete comment.
846 Store handle of newly-created thread in _Jv_Thread_t.
847 * include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
848 before including <windows.h>
849 #define _Jv_HaveCondDestroy
851 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
853 * java/lang/natThread.cc (finalize_native): Destroy
854 join conditional variable and mutex if these destroy
855 operations are supported.
857 2004-09-10 Dalibor Topic <robilad@kaffe.org>
859 * gnu/java/net/protocol/file/Connection.java (permission): New field.
860 (DEFAULT_PERMISSION): New constant.
861 (Connection): Create a FilePermission with permission to read file.
863 2004-09-10 Michael Koch <konqueror@gmx.de>
865 * gnu/java/net/protocol/file/Connection.java
866 (getLastModified): Moved around.
867 (getPermission): Return stored permission.
869 2004-09-10 Michael Koch <konqueror@gmx.de>
871 * Makefile.in: Regenerate.
873 2004-09-10 Michael Koch <konqueror@gmx.de>
875 * Makefile.am: Reverted accidently commited stuff.
876 * configure: Regenerated.
878 2004-09-10 Michael Koch <konqueror@gmx.de>
880 * gnu/java/net/protocol/file/Connection.java
881 (lineSeparator): Made non-final.
883 (connect): Initialize lineSeparator lazily. Use ByteArrayInputStream
884 instead of StringBufferInputStream.
886 2004-09-10 Michael Koch <konqueror@gmx.de>
888 * gnu/java/net/protocol/file/Connection.java
889 (connect): Handle file is a directory case.
891 2004-09-10 Michael Koch <konqueror@gmx.de>
894 (xlib_includes): Removed.
895 (AM_CPPFLAGS): Renamed from INCLUDES.
896 (lib_gnu_awt_xlib_la_CPPFLAGS): New automake variable.
897 * Makefile.in: Regenerate.
899 2004-09-09 Michael Koch <konqueror@gmx.de>
901 * java/security/ProtectionDomain.java,
902 * java/util/PropertyPermissionCollection.java:
903 Fixed javadocs all over.
905 2004-09-09 Sven de Marothy <sven@physto.se>
907 Patch from David Gilbert <david.gilbert@object-refinery.com>
908 * java/lang/Comparable.java: Fixed documentation errors.
909 * java/util/Arrays.java: Likewise.
911 2004-09-09 Andrew John Hughes <gnu_andrew@member.fsf.org>
913 * java/net/Inet4Address.java
914 (Inet4Address): Added comment to serialization UID.
915 * java/text/Format.java
916 (Format): Added comment to serialization UID.
918 2004-09-09 Michael Koch <konqueror@gmx.de>
920 * java/lang/System.java
921 (err): Fixed javadoci to point to setErr() and not setOut().
923 2004-09-09 Jeroen Frijters <jeroen@frijters.net>
925 (normalizePath): Added special case for windows systems.
927 2004-09-09 Michael Koch <konqueror@gmx.de>
930 (dupSeparator): Made private.
931 (File(URI)): New constructor.
932 (getParentFile): Fixed javadoc.
933 (createTempFile): Reformated.
934 (setReadOnly): Added comment.
935 (deleteOnExit): Merged javadoc with classpath version.
937 2004-09-09 Michael Koch <konqueror@gmx.de>
939 * Makefile.am: Don't try to include deps.mk.
940 * Makefile.in: Regenerated.
942 2004-09-08 Bryce McKinlay <mckinlay@redhat.com>
944 * configure.ac (AC_CONFIG_COMMANDS): Don't create subdirectories and
946 * configure: Rebuilt.
948 2004-09-04 Mohan Embar <gnustuff@thisiscool.com>
950 * java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces):
951 Changed pfn from static local to local.
953 2004-09-03 Bryce McKinlay <mckinlay@redhat.com>
954 H.J. Lu <hongjiu.lu@intel.com>
957 * Makefile.am (GCJCOMPILE): Remove definition.
958 (AM_CFLAGS): Add -fclasspath and -fbootclasspath flags.
959 Use LTGCJCOMPILE, not GCJCOMPILE, to build .lo targets.
960 * Makefile.in: Rebuilt.
962 2004-09-03 Kelley Cook <kcook@gcc.gnu.org>
964 * configure.ac (enable-gc-debug): Update help for new syntax.
965 * configure: Regenerate.
967 2004-09-03 David Daney <ddaney@avtrex.com>
969 * include/mips-signal.h: Update copyright.
971 2004-09-03 David Daney <ddaney@avtrex.com>
973 * configure.host: Use -fno-use-divide-subroutine for mips*-*-linux*.
974 * include/mips-signal.h: Added HANDLE_FPE support.
976 2004-08-31 Michael Koch <konqueror@gmx.de>
978 * javax/swing/plaf/basic/BasicTextAreaUI.java
979 (create): New method.
980 * javax/swing/text/DefaultHighlighter.java
981 (DefaultHighlightPainter.debugRect): Removed.
982 * javax/swing/text/StyleContext.java
983 (DEFAULT_STYLE): New field.
985 2004-08-31 Michael Koch <konqueror@gmx.de>
987 * javax/swing/plaf/basic/BasicLookAndFeel.java
988 (initComponentDefaults): Add keybindings for selection.backward and
989 selection-forward for text components.
990 * javax/swing/plaf/basic/BasicTextUI.java
991 (paintSafely): Paint highlight only when something is actually
993 * javax/swing/text/DefaultCaret.java
994 (handleHighlight): New method.
995 (setSelectionVisible): Don't do anything when nothing changes.
997 (moveDot): Reimplemented. Handle highlight.
998 (setDot): Set mark too. Handle highlight.
999 (getSelectionPainter): New method.
1000 * javax/swing/text/DefaultEditorKit.java
1001 (defaultActions): Added new actions for text selection.
1002 * javax/swing/text/DefaultHighlighter.java
1003 (DefaultHighlightPainter): New inner class.
1004 (DefaultPainter): New field.
1005 (paint): Implemented.
1006 * javax/swing/text/PlainView.java
1007 (paint): Don't draw background here again.
1008 * javax/swing/text/Utilities.java
1009 (getTabbedTextWidth): Use width of ' ' instead of 'm' for tabsize.
1010 (drawTabbedText): Likewise.
1012 2004-08-31 Graydon Hoare <graydon@redhat.com>
1014 * javax/swing/JComponent.java
1015 (resetKeyboardActions): Add null checks.
1017 2004-08-31 Graydon Hoare <graydon@redhat.com>
1019 * javax/swing/DefaultButtonModel.java:
1020 Skip group notification when no group is set.
1022 2004-08-31 Graydon Hoare <graydon@redhat.com>
1024 * javax/swing/JColorChooser.java:
1025 Make a couple inner classes static, for jikes.
1027 2004-08-31 Michael Koch <konqueror@gmx.de>
1029 * javax/swing/plaf/basic/BasicTextUI.java
1030 (RottView.modelToView): New method.
1031 (UpdateHandler): Renamed from EventHandler.
1032 (updateHandler): Renamed from eventHandler.
1033 (modelToView): Implemented.
1034 * javax/swing/text/AbstractDocument.java
1035 (BranchElement.getElement): Return null for non-existing indeces.
1036 (BranchElement.getElementIndex): Return 0 in some corner cases.
1037 * javax/swing/text/FieldView.java
1038 (modelToView): New method.
1039 * javax/swing/text/PlainView.java
1040 (modelToView): Made public.
1042 2004-08-31 Kim Ho <kho@redhat.com>
1044 * Makefile.am: New files.
1045 * Makefile.in: Regenerate.
1046 * gcj/Makefile.in: Regenerate.
1047 * include/Makefile.in: Regenerate.
1048 * java/awt/Color.java: Fix documentation.
1049 (RGBtoHSB): Use floats for conversions.
1050 * javax/swing/ButtonGroup.java: Run Jalopy.
1051 (setSelected): Reimplement.
1052 * javax/swing/DefaultButtonModel.java: Run Jalopy.
1053 (changeState): Let ButtonGroup know that the button
1055 * javax/swing/JColorChooser.java: Implement.
1056 * javax/swing/JLabel.java: Run Jalopy.
1057 * javax/swing/JSpinner.java: Run Jalopy.
1058 (setValue): New method.
1059 * javax/swing/JTabbedPane.java: Run Jalopy.
1060 (removeTabAt): Call correct remove method.
1061 * javax/swing/SpinnerNumberModel.java: Run Jalopy.
1062 (getPreviousValue): Compare minimum value.
1063 * javax/swing/Timer.java: Run Jalopy.
1064 (run): Comment out println.
1065 * javax/swing/ToolTipManager.java:
1066 (mouseMoved): Get new tooltip text for location.
1067 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
1069 * javax/swing/colorchooser/ColorChooserComponentFactory.java:
1071 * javax/swing/colorchooser/DefaultColorSelectionModel.java:
1073 (setSelectedColor): Fire ChangeEvent.
1074 * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
1075 New file. Implement.
1076 * javax/swing/colorchooser/DefaultPreviewPanel.java:
1078 * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
1080 * javax/swing/colorchooser/DefaultSwatchChooserPanel.java:
1082 * javax/swing/plaf/basic/BasicArrowButton.java:
1083 (getArrow): Fix size of upward pointing button.
1084 * javax/swing/plaf/basic/BasicColorChooserUI.java:
1086 * javax/swing/plaf/basic/BasicSliderUI.java:
1087 (getWidthOfWidestLabel): Use preferred dimensions.
1088 (getHeightOfTallestLabel): Ditto.
1089 * javax/swing/plaf/basic/BasicSpinnerUI.java:
1091 (mousePressed): Disable changes to spinner if it is not enabled.
1092 * testsuite/Makefile.in: Regenerate.
1095 2004-08-31 Michael Koch <konqueror@gmx.de>
1097 * javax/swing/plaf/basic/BasicTableHeaderUI.java,
1098 javax/swing/plaf/basic/BasicTableUI.java:
1099 Added copyright notice.
1101 2004-08-31 Olga Rodimina <rodimina@redhat.com>
1103 * Makefile.am: Added new files.
1104 * Makefile.in: Regenerate.
1105 * javax/swing/ComboBoxEditor.java: Added javadocs.
1106 * javax/swing/ComboBoxModel.java: Likewise.
1107 * javax/swing/DefaultComboBoxModel.java: Implemented.
1108 * javax/swing/DefaultListCellRenderer.java: Added javadocs
1109 and ran through jalopy to fix formatting style.
1110 (getListCellRendererComponent): Use appropriate border
1111 if renderer has focus and use noFocusBorder when it doesn't.
1112 * javax/swing/JComboBox.java: Implemented.
1113 * javax/swing/JList.java:
1114 (locationToIndex): New Method. Implemented.
1115 (indexToLocation): New Method.
1116 * javax/swing/JPopupMenu.java:
1117 (visible): New field.
1118 (isVisible): Changed to use new field above.
1119 (setVisible): Likewise.
1120 * javax/swing/MutableComboBoxModel.java: Added javadocs.
1121 * javax/swing/plaf/basic/BasicArrowButton.java:
1122 (shadow): Changed default color to Color.gray.
1123 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
1124 UI delegate for JComboBox.
1125 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
1126 Popup menu containing list of JComboBox's items.
1127 * javax/swing/plaf/basic/BasicComboBoxEditor.java: New File.
1128 * javax/swing/plaf/basic/BasicComboBoxRenderer.java: New File.
1129 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
1130 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
1131 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
1132 (popupMenuWillBecomeVisible): Set selected path to the first
1133 element only if it is of type MenuElement. Also fix formatting
1135 * javax/swing/plaf/basic/ComboPopup.java: Added javadocs and missing
1138 2004-08-31 Michael Koch <konqueror@gmx.de>
1140 * javax/swing/text/AbstractDocument.java
1141 (createBranchElement): Use new constructor of BranchElement.
1142 (createLeafElement): Renamed arguments.
1143 (getRootElements): Implemented.
1144 (BranchElement.start): Removed.
1145 (BranchElement.end): Likewise.
1146 (BranchElement.BranchElement): Fixed arguments.
1147 (BranchElement.getEndOffset): Reimplemented.
1148 (BranchElement.getStartOffset): Likewis.
1149 * javax/swing/text/DefaultCaret.java
1150 (paint): Draw simple vertical line as caret instead of a rectangle.
1151 * javax/swing/text/JTextComponent.java
1152 (setText): Use doc directly.
1153 * javax/swing/text/PlainView.java
1154 (nextTabStop): Implemented.
1155 * javax/swing/text/Utilities.java
1156 (drawTabbedText): nextTabStop() returns an absolute x position.
1157 (getTabbedTextWidth): Likewise.
1159 2004-08-31 Graydon Hoare <graydon@redhat.com>
1161 * java/awt/Component.java
1162 (isFocusTraversable): Predicate on isLightweight()
1163 (setFocusable): Set isFocusTraversableOverridden.
1164 (requestFocus): Predicate peer dispatch on !isLightweight()
1165 (requestFocusInWindow): Likewise.
1166 (dispatchEventImpl): Coordinate with KeyboardFocusManager.
1167 * java/awt/Container.java
1168 (dispatchEventImpl): Predicate on event mask.
1169 (LightweightDispatcher): Remove focus machinery.
1170 * java/awt/DefaultFocusTraversalPolicy.java
1171 (accept): Expand predicate to include isFocusable().
1172 * java/awt/DefaultKeyboardFocusManager.java:
1173 Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
1174 * java/awt/KeyboardFocusManager.java
1175 (redispatchEvent): Synchronize on event to prevent feedback.
1176 * javax/swing/AbstractButton.java
1177 (ButtonFocusListener): Remove class.
1178 (init): Set focusPainted, focusable.
1179 * javax/swing/ActionMap.java (get): Check parent for null.
1180 * javax/swing/InputMap.java (get): Likewise.
1181 * javax/swing/JComponent.java
1182 (inputMap_whenFocused): New InputMap.
1183 (inputMap_whenAncestorOfFocused): Likewise.
1184 (inputMap_whenInFocusedWindow): Likewise.
1185 (getActionForKeyStroke): Rewrite.
1186 (getConditionForKeystroke): Likewise.
1187 (ActionListenerProxy): New private class.
1188 (setInputMap): Implement.
1189 (getInputMap): Likewise.
1190 (setActionMap): Likewise.
1191 (getActionMap): Likewise.
1192 (processComponentKeyEvent): New empty method.
1193 (processKeyEvent): Implement.
1194 (processKeyBinding): Likewise.
1195 (resetKeyboardActions): Rewrite.
1196 * javax/swing/KeyStroke.java: Rewrite.
1197 * javax/swing/SwingUtilities.java
1198 (notifyAction): Implement.
1199 (replaceUIActionMap): Likewise.
1200 (replaceUIInputMap): Likewise.
1201 * javax/swing/plaf/basic/BasicButtonListener.java
1202 (focusGained): Implement.
1203 (focusLost): Repaint if focusPainted().
1204 (installKeyboardActions): Install pressed / released actions.
1205 (uninstallKeyboardActions): Implement.
1206 * javax/swing/plaf/basic/BasicButtonUI.java
1207 (focusColor): New field.
1208 (installDefaults): Load focus color, install input map.
1209 (installKeyboardActions): Implement.
1210 (uninstallKeyboardActions): Likewise.
1211 (paintFocus): Rewrite.
1212 * javax/swing/plaf/basic/BasicLookAndFeel.java
1213 (Button.focus): New default, midPurple.
1214 * javax/swing/plaf/basic/BasicTextUI.java
1216 (installUI): Get doc from kit, load defaults.
1217 (getKeymapName): Implement.
1218 (createKeymap): Likewise.
1219 (installKeyboardActions): Likewise.
1220 (getInputMap): Likewise.
1221 (getActionMap): Likewise.
1222 (createActionMap): Likewise.
1223 * javax/swing/text/AbstractDocument.java
1224 (getStartPosition): Implement.
1225 (getEndPosition): Likewise.
1226 * javax/swing/text/DefaultEditorKit.java
1227 (CopyAction): New class.
1228 (CutAction): Likewise.
1229 (DefaultKeyTypedAction): Likewise.
1230 (InsertBreakAction): Likewise.
1231 (InsertContentAction): Likewise.
1232 (InsertTabAction): Likewise.
1233 (PasteAction): Likewise.
1234 (defaultActions): New static table.
1235 (createCaret): Implement.
1236 (getActions): Likewise.
1237 * javax/swing/text/JTextComponent.java
1238 (KeymapWrapper): New private class.
1239 (KeymapActionMap): Likewise.
1240 (DefaultKeymap): New class.
1241 (keymaps): New static table.
1242 (keymap): New field.
1243 (getKeymap): Implement.
1244 (removeKeymap): Likewise.
1245 (addKeymap): Likewise.
1246 (setKeymap): Likewise.
1247 (loadKeymap): Likewise.
1248 (getActions): Likewise.
1249 (margin): New field.
1250 (JTextComponent): Build and install default keymap.
1251 * javax/swing/text/TextAction.java
1252 (textAction): Call super properly.
1253 (getTextComponent): Implement.
1254 * javax/swing/text/Utilities.java
1255 (drawTabbedText): Adjust position by ascent.
1257 2004-08-31 David Jee <djee@redhat.com>
1261 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
1262 (setEnabled): Make it a native method.
1263 * java/awt/DefaultKeyboardFocusManager.java
1264 (postProcessKeyEvent): Only post event if the menu item
1266 * java/awt/MenuItem.java:
1267 Private field 'enabled' should be true by default.
1268 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
1269 (setEnabled): New function.
1271 2004-08-31 David Jee <djee@redhat.com>
1275 * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
1276 (nativeSetHelpMenu): New native method declaration.
1277 (addHelpMenu): Call nativeSetHelpMenu().
1279 * java/awt/MenuBar.java
1280 (setHelpMenu): Call addNotify() on the new help menu.
1281 (add): Call addNotify() on the new menu.
1282 (addNotify): Set the help menu if one exists.
1283 * java/awt/peer/MenuBarPeer.java
1285 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
1286 (nativeSetHelpMenu): New method.
1288 2004-08-31 Graydon Hoare <graydon@redhat.com>
1290 * Makefile.am: Add new files.
1291 * Makefile.in: Regenerate.
1292 * javax/swing/Box.java: Fix setting of layout in ctor.
1293 * javax/swing/JScrollPane.java: Scroll headers as well.
1294 * javax/swing/JTable.java: Reimplement.
1295 * javax/swing/JViewPort.java: Only add non-null children.
1296 * javax/swing/ScrollPaneLayout.java: Correct header calculations.
1297 * javax/swing/Timer.java: Fix stopping null waker.
1298 * javax/swing/plaf/basic/BasicTableHeaderUI.java: New file.
1299 * javax/swing/plaf/basic/BasicTableUI.java: New file.
1300 * javax/swing/table/DefaultTableCellRenderer.java: Configure.
1301 * javax/swing/table/DefaultTableColumnModel.java: Flesh out.
1302 * javax/swing/table/DefaultTableModel.java: Clean up.
1303 * javax/swing/table/JTableHeader.java: Implement.
1305 2004-08-31 Mark Wielaard <mark@klomp.org>
1307 * javax/swing/JSpinner.java (getChangeListeners): Remove double
1310 2004-08-31 Mark Wielaard <mark@klomp.org>
1312 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
1313 Declare variables at top of functions/block.
1314 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Likewise.
1316 2004-08-31 Mark Wielaard <mark@klomp.org>
1318 * java/lang/Rectangle.java (intersects): Check r.width and r.height
1321 2004-08-31 Michael Koch <konqueror@gmx.de>
1323 * javax/swing/text/PlainView.java
1324 (selectedColor): New field.
1325 (unselectedColor): Likewise.
1327 (updateMetrics): New method.
1328 (lineToRect): Likewise.
1329 (modelToView): Likewise.
1330 (drawSelectedText): Use color from JTextComponent ad draw with
1332 (drawUnselectedText): Likewise.
1333 (paint): Initialize helper fields.
1334 * javax/swing/text/View.java
1335 (getChildAllocation): New method.
1336 (getViewIndex): Likewise.
1337 (getToolTipText): Likewise.
1339 2004-08-31 Michael Koch <konqueror@gmx.de>
1341 * javax/swing/text/Utilities.java
1342 (drawTabbedText): Reimplemented.
1343 (getTabbedTextWidth): Likewise.
1345 2004-08-31 Michael Koch <konqueror@gmx.de>
1347 * javax/swing/plaf/basic/BasicTextUI.java
1348 (installDefaults): Install caret and highlighter.
1349 (modelToView): Use Bias.Forward when calling sibling.
1350 * javax/swing/text/AbstractDocument.java
1351 (ElementEdit): Implements DocumentEvent.ElementChange.
1352 (ElementEdit.ElementEdit): New method.
1353 (ElementEdit.getChildrenAdded): Likewise.
1354 (ElementEdit.getChildrenRemoved): Likewise.
1355 (ElementEdit.getElement): Likewise.
1356 (ElementEdit.getIndex): Likewise.
1357 * javax/swing/text/DefaultCaret.java
1359 (textComponent): Renamed from parent, made private.
1360 (selectionVisible): Renamed from vis_sel, made private.
1361 (blinkRate): Renamed from blink, made private.
1362 (magicCaretPosition): Renamed from magic, made private.
1363 (visible): Renamed from vis, made private.
1364 (dot): Made private.
1366 (deinstall): Remove as MouseMotionListener.
1367 (install): Initialize textComponent first. Add as MouseMotionListener.
1368 (paint): Reimplemented.
1369 * javax/swing/text/JTextComponent.java
1370 (setCaret): Deinstall old caret, install new one and fire property
1371 change after setting property.
1372 (setHighlighter): Deinstall old highlighter, install new one and fire
1373 property change after setting property.
1374 (setCaretColor): Fire property change after setting property.
1375 (setDisabledTextColor): Likewise.
1376 (setSelectedTextColor): Likewise.
1377 (setSelectionColor): Likewise.
1378 (modelToView): New method.
1380 2004-08-31 Michael Koch <konqueror@gmx.de>
1382 * javax/swing/text/AbstractDocument.java
1383 (getText): Simplified.
1384 * javax/swing/text/Segment.java
1385 (current): New field.
1386 (current): Reimplemented.
1388 (getIndex): Likewise.
1391 (previous): Likewise.
1392 (setIndex): Likewise.
1394 2004-08-31 Michael Koch <konqueror@gmx.de>
1396 * javax/swing/plaf/basic/BasicButtonUI.java
1397 (defaultTextIconGap): Made protected.
1398 (defaultTextShiftOffset): Likewise.
1399 (textShiftOffset): New field.
1400 (clearTextShiftOffset): New method.
1401 (getTextShiftOffset): Likewise.
1402 (setTextShiftOffset): Likewise.
1404 2004-08-31 Michael Koch <konqueror@gmx.de>
1406 * javax/swing/plaf/basic/BasicTextUI.java
1407 (installUI): Add eventHandler as property listener.
1408 (uninstallUI): remove eventHandler as propert listener.
1409 (installDefaults): Added comment.
1410 (installListeners): Likewise.
1411 (installKeyboardActions): Likewise.
1412 (uninstallDefaults): Likewise.
1413 (uninstallListeners): Likewise.
1414 (uninstallKeyboardActions): Likewise.
1416 2004-08-31 Michael Koch <konqueror@gmx.de>
1418 * javax/swing/text/AbstractDocument.java:
1419 Fixed some typos in comments.
1420 (insertString): Reimplemented.
1422 (replace): New method.
1423 (children): Dont use fully qualified class name.
1424 (DefaultDocumentEvent.offset): Renamed from off.
1425 (DefaultDocumentEvent.length): Renamed from len.
1426 (DefaultDocumentEvent.type): New field.
1427 (DefaultDocumentEvent.DefaultDocumentEvent): New constructor.
1428 (DefaultDocumentEvent.getType): Implemented.
1430 2004-08-31 Michael Koch <konqueror@gmx.de>
1432 * javax/swing/plaf/basic/BasicTextUI.java
1433 (RootView.textComponent): Removed.
1434 (RootView.RootView): Don't initialize textComponent.
1435 (RootView.getViewFactory): New method.
1436 (EventHandler): New inner class.
1437 (rootView): Initialize at instance creation.
1438 (eventHandler): New field.
1439 (installUI): Don't create view hierarchy directly,
1440 call modelChanged() instead.
1441 (modelChanged): New method.
1442 * javax/swing/text/JTextComponent.java
1443 (setDocument): Fire property change event.
1445 2004-08-31 Michael Koch <konqueror@gmx.de>
1447 * javax/swing/plaf/basic/BasicTextUI.java
1448 (RootView.paint): Removed debug output.
1449 (paintSafely): Draw highlighter before text.
1450 (paintBackground): Use background color of text component.
1451 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
1454 2004-08-31 Michael Koch <konqueror@gmx.de>
1456 * javax/swing/plaf/basic/BasicToolBarUI.java
1457 (BasicToolBarUI): Fixed arguments for constructor.
1458 (createUI): Fixed creation of object.
1460 2004-08-31 Michael Koch <konqueror@gmx.de>
1462 * javax/swing/DefaultListSelectionModel.java
1463 (fireValueChanged): Renamed from fireSelectionValueChanged,
1466 2004-08-31 Michael Koch <konqueror@gmx.de>
1468 * javax/swing/text/TabSet.java
1469 (TabSet): Implements java.io.Serializable.
1470 * javax/swing/text/TabStop.java
1471 (TabStop): Implements java.io.Serializable.
1472 (TabStop): Made public.
1474 2004-08-31 Michael Koch <konqueror@gmx.de>
1476 * javax/swing/JComponent.java
1477 (setUI): Fire PropertyChange.
1478 * javax/swing/JLabel.java
1479 (text): Renamed from labelText.
1480 (horizontalAlignment): New default vlaue.
1481 (icon): Renamed from activeIcon.
1482 (displayedMnemonic): Renamed from mnemonicKey, added default value.
1483 (displayedMnemonicIndex): Renamed from underlineChar.
1484 (setDisplayedMnemonic): Reimplemented.
1485 * javax/swing/JRadioButton.java
1486 (JRadioButton): New constructors.
1487 * javax/swing/JTextField.java
1488 (JTextField): Throw exception if colums < 0, initialitialz
1489 this.columns directly and initialize document with text conditionally.
1491 2004-08-31 Michael Koch <konqueror@gmx.de>
1493 * javax/swing/plaf/basic/BasicFormattedTextFieldUI.java,
1494 javax/swing/plaf/basic/BasicPasswordFieldUI.java,
1495 javax/swing/plaf/basic/BasicTextAreaUI.java: New files.
1496 * javax/swing/text/FieldView.java
1497 (paint): Just call super method for now.
1498 * Makefile.am: Added new files.
1499 * Makefile.in: Regenerated.
1501 2004-08-31 Ka-Hing Cheung <kahing@javabsp.org>
1503 * javax/swing/AbstractSpinnerModel.java,
1504 javax/swing/JSpinner.java,
1505 javax/swing/SpinnerNumberModel.java,
1506 javax/swing/plaf/basic/BasicSpinnerUI.java:
1508 * javax/swing/plaf/basic/BasicLookAndFeel.java
1509 (initClassDefaults): Added defaults for BasicSpinnerUI.
1511 2004-08-31 Michael Koch <konqueror@gmx.de>
1513 * Makefile.am: Added new files.
1514 * Makefile.in: Regenerated.
1516 2004-08-31 Michael Koch <konqueror@gmx.de>
1518 * javax/swing/TransferHandler.java,
1519 javax/swing/plaf/basic/ComboPopup.java: New files
1520 * Makefile.am: Added javax/swing/TransferHandler.java and
1521 javax/swing/plaf/basic/ComboPopup.java
1522 * Makefile.in: Regenerated.
1524 2004-08-31 Roman Kennke <roman@ontographics.com>
1526 * javax/swing/text/Utilities.java: New file.
1528 2004-08-31 Michael Koch <konqueror@gmx.de>
1530 * Makefile.am: Added javax/swing/text/Utilities.java.
1531 * Makefile.in: Regenerated.
1533 2004-08-31 Graydon Hoare <graydon@redhat.com>
1535 * javax/swing/text/SimpleAttributeSet.java: New file.
1536 * javax/swing/text/StyleConstants.java: New file.
1537 * javax/swing/text/StyleContext.java: New file.
1538 * javax/swing/text/TabSet.java: New file.
1539 * javax/swing/text/TabStop.java: New file.
1540 * javax/swing/text/AbstactDocument.java:
1541 (AbstractElement): Implement attribute support.
1542 * javax/swing/text/AttributeSet.java
1543 (NameAttribute): New static field.
1544 (ResolveAttribute): New static field.
1545 * Makefile.am: Update for new files.
1546 * Makefile.in: Regenerate.
1548 2004-08-31 Craig Black <craig.black@aonix.com>
1550 * gnu/java/awt/peer/gtk/GdkGraphics.java
1551 (drawImage): Add support for scaling pixmaps.
1552 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1553 (copyAndScalePixmap): New native method.
1555 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1558 * jni/gtk-peer/gthread-jni.c: Include stdio.h. Eliminate
1559 type-punning compiler warnings using unions.
1560 (throw): Replace bzero with memset.
1562 2004-08-31 Andreas Tobler <a.tobler@schweiz.ch>
1563 Thomas Fitzsimmons <fitzsim@redhat.com>
1565 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: Move
1566 NSA_PB macros to gtkpeer.h. Include gtkpeer.h.
1567 * jni/gtk-peer/gtkpeer.h: Move NSA_PB macros here.
1568 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1569 (nativeSetIconImageFromDecoder): Use NSA_GET_PB_PTR macro.
1571 2004-08-31 Mark Wielaard <mark@klomp.org>
1573 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
1574 #include gdk.h, not gtk.h. #include jni.h, native_state.h, string.h
1575 and stdlib.h, not gtkpeer.h.
1576 (*vm): New static variable.
1577 (areaPreparedID): Make static.
1578 (areaUpdatedID): Likewise.
1579 (area_prepared): Get and use JNIEnv through stored JavaVM *vm.
1580 (area_prepared): Likewise.
1581 (area_updated): Likewise.
1583 (initStaticState): Initialize *vm javaVM.
1584 (pumpBytes): Use given env, not global gdk_env.
1586 2004-08-31 Mark Wielaard <mark@klomp.org>
1588 * java/awt/geom/CubicCurve2D.java (solveCubic): Removed duplicate
1591 2004-08-31 Sven de Marothy <sven@physto.se>
1593 * java/awt/geom/CubicCurve2D.java: Reindent.
1594 (contains): Implemented.
1595 (intersects): Implemented.
1596 * java/awt/geom/QuadCurve2D.java: Likewise.
1597 * java/awt/geom/GeneralPath.java: Reindent and document.
1598 Fully (re)implemented using separate xpoints and ypoints
1600 * java/awt/geom/RoundRectangle2D.java: Several bugfixes (Bug #6007).
1602 2004-08-31 Michael Koch <konqueror@gmx.de>
1604 * javax/swing/JMenuItem.java
1605 (getMenuDragMouseListeners): New method.
1606 (getMenuKeyListeners): Likewise.
1608 2004-08-31 Michael Koch <konqueror@gmx.de>
1610 * javax/swing/AbstractButton.java
1611 (model): Made protected.
1612 (actionListener): Likewise.
1613 (changeListener): Likewise.
1614 (itemListener): Likewise.
1615 (multiClickThreshhold): New field.
1616 (getActionListeners): New method.
1617 (getChangeListeners): Likewise.
1618 (getItemListeners): Likewise.
1619 (fireItemStateChanged): Simplified implementation.
1620 (fireActionPerformed): Likewise.
1621 (fireStateChanged): Likewise.
1622 (getMultiClickThreshhold): New method.
1623 (setMultiClickThreshhold): Likewise.
1625 2004-08-31 Tom Tromey <tromey@redhat.com>
1627 * java/awt/image/Kernel.java (clone): Use super.clone().
1629 2004-08-31 David Jee <djee@redhat.com>
1632 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1633 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1634 (nativeSetIconImageFromData): New native method declaration.
1635 (setIconImage): Handle images not produced from GdkPixbufDecoder.
1636 * gnu/java/awt/peer/gtk/GtkImage.java
1637 (getPixelCache): New method.
1638 (getColorModel): New method.
1639 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1640 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1641 (free_pixbuf_data): New helper function.
1642 (nativeSetIconImageFromData): New function.
1644 2004-08-31 Graydon Hoare <graydon@redhat.com>
1647 * javax/swing/JLayeredPane.java
1648 (setLayer): Permit changing layer after addition.
1649 (setPosition): Permit over-length positions.
1650 (layerToRange): Compare intValue()s.
1651 * javax/swing/Box.java (createHorizontalBox): Implement.
1652 (createRigidArea): Likewise.
1653 (createVerticalBox): Likewise.
1655 2004-08-31 Kim Ho <kho@redhat.com>
1657 * java/awt/Component.java:
1658 (processMouseEvent): Consume event after
1659 listeners process it.
1660 (processMouseMotionEvent): ditto.
1661 (processMouseWheelEvent): ditto.
1662 * java/awt/Container.java:
1663 (acquireComponentForMouseEvent):
1664 Do not dispatch to events that have been
1665 removed from the Container.
1666 (handleEvent): Consume the MouseEvents.
1667 * javax/swing/RepaintManager.java:
1668 (paintDirtyRegions): Do not add to list of
1669 damaged areas if the component has no root.
1671 2004-08-31 Michael Koch <konqueror@gmx.de>
1673 * javax/swing/plaf/basic/BasicMenuItemUI.java: Clean ip imports.
1675 2004-08-31 Mark Wielaard <mark@klomp.org>
1677 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
1678 null when a MissingResourceException is thrown. Should never happen.
1680 2004-08-31 Mark Wielaard <mark@klomp.org>
1682 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1683 when argument is null.
1685 2004-08-31 Mark Wielaard <mark@klomp.org>
1687 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1688 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
1689 Define hid at start of function.
1690 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
1693 2004-08-31 Mark Wielaard <mark@klomp.org>
1695 * gnu/java/awt/EmbeddedWindow.java: Reindent.
1696 * javax/swing/JButton.java: Reindent.
1697 * javax/swing/JCheckBox.java: Reindent.
1699 2004-08-31 Mark Wielaard <mark@klomp.org>
1701 * Makefile.am (gtk_c_source_files): Added
1702 jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c.
1703 (gtk_awt_peer_sources): Added
1704 gnu/java/awt/peer/gtk/GThreadMutex.java and
1705 gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java.
1706 * Makefile.in: Regenerated.
1708 2004-08-31 Archie Cobbs <archie@dellroad.org>
1710 * jni/gtk-peer/gthread-jni.c: don't #include nonexistent files
1712 2004-08-31 Steven Augart <augart@watson.ibm.com>
1714 * jni/gtk-peer/gthread-jni.c (c-font-lock-extra-types):
1715 Added jfieldID, jmethodID.
1717 2004-08-31 Mark Wielaard <mark@klomp.org>
1719 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1720 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): Initialize
1721 gdk_env before calling any gdk or gtk function.
1723 * gnu/java/awt/peer/gtk/GtkMainThread.java (gtkInitCalled): New field.
1724 (GtkMainThread): Call wait() in while loop waiting for gtkInitCalled.
1725 (run): Set gtkInitCalled.
1727 2004-08-31 Steven Augart <augart@watson.ibm.com>
1729 * gnu/java/awt/peer/gtk/GtkMainThread.java (run): Pass the value of
1730 the gnu.classpath.awt.gtk.portable.native.sync system property to C.
1732 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1733 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): New argument,
1734 portableNativeSync. Delegate PORTABLE_NATIVE_SYNC work to
1736 (init_glib_threads): New function.
1738 2004-08-31 Mark Wielaard <mark@klomp.org>
1740 * jni/gtk-peer/gthread-jni.c: Define MIN_, MAX_ and NORM_
1741 PRIORITY when not already defined in header file.
1743 2004-08-31 Mark Wielaard <mark@klomp.org>
1745 * jni/gtk-peer/gthread-jni.c (setup_cache): Call
1746 ExceptionOccurred, not ExceptionCheck, when we don't have JNI 1.2.
1748 2004-08-31 Steven Augart <augart@watson.ibm.com>
1750 * gnu/native/jni/gtk-peer/gthread-jni.c: Indentation fixes.
1751 Implemented missing functions for GTK2.
1752 Added error handling.
1753 Renamed static functions out of the g_ namespace.
1754 Added TRACE_API_CALLS, EXPLAIN_TROUBLE, EXPLAIN_BROKEN,
1755 EXPLAIN_BADLY_BROKEN, and DELETE_LOCAL_REFS options.
1756 Rewrote global-reference code.
1757 Eliminated cascading errors.
1758 (mutex_trylock_jni_impl) Fully implemented.
1759 (cond_timed_wait_jni_impl) Went from millisecond to microsecond
1761 (setup_cache) New function.
1762 (mutex_cond_wait_jni_impl, mutex_cond_timed_wait_jni_impl) Fixed
1763 bug where they were not unlocking the GMutex associated with the
1764 condition variable during the wait on that condition variable.
1766 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
1767 native/jni/gtk-peer/gthread-jni.c,
1768 native/jni/gtk-peer/gthread-jni.h
1769 (g_thread_jni_functions): Renamed to ...
1770 (portable_native_sync_jni_functions): this name.
1771 (gdk_vm): Renamed to...
1772 (the_vm): this name.
1774 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1775 (gdk_vm): Removed duplicate definition.
1776 (gtkInit): Removed stray message to stdout.
1777 (gtkInit): Use g_malloc and g_free instead of malloc and free.
1778 (gtkInit): Fix a const assignment bug.
1779 (gtkInit): Simplified code.
1781 * gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
1782 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
1783 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h,
1784 gnu/java/awt/peer/gtk/GThreadMutex.java:
1787 2004-08-31 Mark Wielaard <mark@klomp.org>
1789 * javax/swing/Box.java: Put FIXME comment above class declaration.
1790 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1791 * javax/swing/JCheckBox.java: Likewise.
1792 * javax/swing/JDialog.java: Likewise.
1793 * javax/swing/JRadioButton.java: Likewise.
1794 * javax/swing/JToggleButton.java: Likewise.
1795 * javax/swing/UIManager.java: Likewise.
1796 * javax/swing/border/TitledBorder.java: Likewise.
1797 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1798 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1799 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1800 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1801 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1802 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1803 * javax/swing/text/JTextComponent.java: Likewise.
1805 2004-08-31 David Jee <djee@redhat.com>
1808 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1809 (setIconImage): Add a FIXME for unhandled cases.
1811 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1814 * gnu/awt/LightweightRedirector.java: Call getModifiersEx, not
1815 getModifiers. Replace old button masks with new ones.
1816 * gnu/awt/xlib/XEventLoop.java: Likewise.
1817 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Likewise.
1818 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1819 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
1820 * gnu/java/awt/peer/gtk/GtkListPeer.java: Likewise.
1821 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
1822 * java/awt/AWTKeyStroke.java: Remove old modifier masks.
1823 * java/awt/Component.java: Replace old modifier masks with new
1825 * java/awt/Container.java: Call getModifiersEx, not
1827 * java/awt/DefaultKeyboardFocusManager.java: Likewise. Remove
1829 * javax/swing/JMenuItem.java: Replace old button masks with new
1831 * javax/swing/KeyStroke.java: Call getModifiersEx, not
1833 * javax/swing/SwingUtilities.java: Likewise.
1834 * javax/swing/plaf/basic/BasicButtonListener.java: Likewise.
1835 * javax/swing/plaf/basic/BasicInternalFrameUI.java: Likewise.
1836 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Replace old
1837 mask macros with new ones.
1838 * jni/gtk-peer/gtkpeer.h: Replace old button and modifier mask
1839 macros with new ones representing new masks.
1841 2004-08-31 Craig Black <craig.black@aonix.com>
1843 * gnu/java/awt/peer/gtk/GdkGraphics.java
1844 (drawRoundRect): Implemented.
1845 (fillRoundRect): Implemented.
1846 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1847 (drawRoundRect): Reimplemented to match GdkGraphics.
1848 (fillRoundRect): Reimplemented to match GdkGraphics.
1850 2004-08-31 Mark Wielaard <mark@klomp.org>
1852 * Makefile.in: Regenerated.
1854 2004-08-31 Michael Koch <konqueror@gmx.de>
1856 * gnu/java/awt/EmbeddedWindow.java
1857 (addNotify): Use AccessController to allow execution of privileged
1860 2004-08-31 Michael Koch <konqueror@gmx.de>
1862 * gnu/java/awt/EmbeddedWindow.java
1864 (addNotify): Set peer via reflection.
1865 (setWindowPeer): Removed.
1866 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1867 * Makefile.am (nat_source_files):
1868 Removed gnu/java/awt/natEmbeddedWindow.cc.
1870 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1872 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
1873 and gnu/java/security/action/SetAccessibleAction.java.
1875 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1877 * gnu/java/security/action/GetPropertyAction.java (setParameters):
1878 Renamed from 'setName'. New 2-argument form with default value.
1879 (run): Pass default 'value' parameter to System.getProperty().
1880 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
1883 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1885 * gnu/java/security/action/GetPropertyAction.java: New class.
1886 * gnu/java/security/action/SetAccessibleAction.java: New class.
1888 2004-08-31 David Jee <djee@redhat.com>
1890 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1891 (setIconImage): Check if image is null.
1893 2004-08-31 David Jee <djee@redhat.com>
1895 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1896 (create): Set the icon image.
1897 (nativeSetIconImage): New native method declaration.
1898 (setIconImage): Implement.
1899 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1900 (nativeSetIconImage): New function.
1902 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1904 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1905 (filenameFilterCallback): Declare local variable accepted before use.
1907 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1909 * gnu/java/awt/ComponentDataBlitOp.java:
1912 2004-08-31 Tom Tromey <tromey@redhat.com>
1914 * gnu/java/awt/peer/GLightweightPeer.java,
1915 gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1916 gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1917 javax/swing/JScrollPane.java: Removed
1920 2004-08-31 David Jee <djee@redhat.com>
1922 * java/awt/DefaultKeyboardFocusManager.java
1923 (postProcessKeyEvent): Only activate MenuShortcuts on KEY_PRESSED
1924 event. Fix shift modifier checking.
1925 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1926 (accel_attach): Remove.
1927 (setupAccelGroup): Remove calls to accel_attach.
1929 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1931 * gnu/java/awt/peer/gtk/GtkArg.java: Remove file.
1932 * gnu/java/awt/peer/gtk/GtkArgList.java: Remove file.
1934 * Makefile.am (gtk_awt_peer_sources): Remove GtkArg.java and
1936 (gtk_c_files): Use CAIRO_CFLAGS and PANGOFT2_CFLAGS, not _LIBS.
1937 * Makefile.in: Regenerate.
1938 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1939 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1940 (create(String)): New method.
1941 (create): Call new create method.
1942 (getArgs): Remove method.
1943 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
1944 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
1945 (nativeCreate): Rename to create.
1946 (gtkSetLabel): Rename to gtkButtonSetLabel.
1947 (gtkToggleButtonSetActive): New method.
1948 (create): Call gtkToggleButtonSetActive and gtkButtonSetLabel.
1949 (setState): Replace set call with gtkToggleButtonSetActive.
1950 (setLabel): Replace gtkSetLabel call with gtkButtonSetLabel.
1951 (getArgs): Remove method.
1952 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1953 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1954 (gtkWidgetSetSensitive): New method.
1955 (gtkWidgetSetParent): Likewise.
1956 (GtkComponentPeer): Call setParent, setComponentBounds and
1957 setVisibleAndEnabled.
1958 (setParent): New method.
1959 (setComponentBounds): New method.
1960 (setVisibleAndEnabled): New method.
1961 (setEnabled): Call gtkWidgetSetSensitive.
1962 (getArgs): Remove method.
1963 Remove all set methods.
1964 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Call
1965 gtkWindowSetModal, setTitle and setResizable.
1966 (getArgs): Remove method.
1967 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1968 (setComponentBounds): New method.
1969 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
1970 Replace set call with gtkWindowSetResizable.
1971 (getArgs): Remove method.
1972 (create): Call setTitle and setResizable.
1973 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
1974 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1975 (gtkWindowSetTitle): New method.
1976 (gtkWindowSetResizable): New method.
1977 (gtkWindowSetModal): New method.
1978 (setParent): New method.
1979 (setVisibleAndEnabled): New method.
1980 (getArgs): Remove method.
1981 (setTitle): Call gtkWindowSetTitle.
1982 (setResizable): Call gtkWindowSetResizable.
1983 * jni/gtk-peer/gtkpeer.h [DEBUG_LOCKING]: New define to turn on
1984 and off locking instrumentation.
1986 2004-08-31 Kim Ho <kho@redhat.com>
1988 * Makefile.am: Add new file.
1989 * Makefile.in: Regenerate.
1990 * gcj/Makefile.in: Regenerate
1991 * include/Makefile.in:
1992 * java/awt/Container.java:
1993 (acquireComponentForMouseEvent): Respect
1994 the event mask when looking for candidate.
1995 * javax/swing/JComponent.java:
1996 Remove toolTip field.
1997 (createToolTip): Create a tooltip on demand.
1998 (setToolTipText): Register with the ToolTipManager.
1999 (getToolTipText(MouseEvent)): Return getToolTipText().
2000 * javax/swing/JToolTip.java: Implement.
2001 * javax/swing/Timer.java: Jalopy.
2002 (restart): Call stop, then start.
2003 (stop): Interrupt the timer rather than wait for
2004 the timer to come to a stop naturally.
2005 * javax/swing/ToolTipManager.java: Implement.
2006 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2007 Change ToolTip.background color.
2008 * javax/swing/plaf/basic/BasicToolTipUI.java:
2010 * testsuite/Makefile.in: Regenerate
2012 2004-08-31 Jerry Quinn <jlquinn@optonline.net>
2014 * java/awt/image/DirectColorModel.java (DirectColorModel): Fix
2015 constructor param comments.
2017 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
2019 * java/awt/Component.java: Document AWT 1.0 event handler
2022 2004-08-31 Roman Kennke <roman@ontographics.com>
2024 * javax/swing/Box.java:
2025 (createGlue): Implemented
2026 (createHorizontalGlue): Implemented
2027 (createHorizontalStrut): Implemented
2028 (createVerticalGlue): Implemented
2029 (createVerticalStrut): Implemented
2031 2004-08-31 David Jee <djee@redhat.com>
2033 * gnu/java/awt/peer/gtk/GtkChoicePeer.java
2034 (GtkChoicePeer): Do not automatically select first item.
2035 (getHistory): Remove.
2036 (nativeGetSelected): New method.
2037 (nativeRemoveAll): New method.
2038 (add): Use nativeGetSelected() instead of getHistory().
2040 (removeAll): Call nativeRemoveAll().
2041 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
2042 (create): Migrate to GtkComboBox.
2044 (nativeAdd): Likewise.
2045 (nativeRemove): Likewise.
2047 (nativeRemoveAll): New method.
2048 (nativeGetSelected): New method.
2049 (selection_changed): New method.
2050 (getHistory): Remove.
2051 (item_activate): Remove.
2052 (item_removed): Remove.
2053 (connect_choice_item_selectable_hook): Remove.
2055 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
2057 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create): Use tf
2058 variable in setEditable call.
2060 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
2061 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
2062 (gtkWidgetSetBackground): New method.
2063 (gtkWidgetSetForeground): Likewise.
2064 (create): Set peer's editable state based on awtComponent's.
2066 * java/awt/Button.java (Button()): Use empty string rather than
2067 null in no-label constructor.
2069 2004-08-31 Roman Kennke <roman@ontographics.com>
2071 * javax/swing/BoxLayout.java: Reimplement.
2073 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
2075 * gnu/java/awt/peer/gtk/GdkGraphics.java,
2076 gnu_java_awt_peer_gtk_GdkGraphics.c
2077 (initState(GtkComponentPeer)): Don't return array of colour
2079 (GdkGraphics(int,int)): Set default font to size 12.
2080 (GdkGraphics(GtkComponentPeer)): Set graphics colour to
2081 component's foreground colour.
2082 * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
2083 gnu_java_awt_peer_gtk_GdkGraphics2D.c
2084 (initState(GtkComponentPeer)): Don't return array of colour
2086 (GdkGraphics2D(GtkComponentPeer)): Set foreground and background
2087 colours to component's colours.
2088 (current_colors_of_widget): Remove function.
2089 * gnu/java/awt/peer/gtk/GtkOffScreenImage.java (getGraphics):
2090 Return a new graphics object.
2091 * java/awt/Font.java (toString): Fix format.
2092 * java/awt/Graphics.java (toString): Likewise.
2094 2004-08-31 Craig Black <craig.black@aonix.com>
2096 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
2097 (addTearOff): New function.
2098 * gnu/java/awt/peer/gtk/GtkMenuPeer.java (addTearOff):
2100 (init): Call addTearOff() when menu.isTearOff().
2102 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
2104 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2105 Default implementation.
2106 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2107 Implement using GdkPixbufDecoder.
2109 2004-08-31 David Jee <djee@redhat.com>
2111 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
2112 (GtkComponentPeer): Use gtkWidgetGetPreferredDimensions() for
2113 setting the size of GtkFileDialogPeers.
2114 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2115 (gtkWidgetGetPreferredDimensions): For widgets extending GtkWindow,
2116 use their default sizes rather than their natural requisitions.
2118 2004-08-31 Michael Koch <konqueror@gmx.de>
2120 * javax/swing/JFormattedTextField.java
2121 (JFormattedTextField): Implemented.
2122 * javax/swing/text/DefaultEditorKit.java
2123 (BeepAction): New inner class.
2124 * javax/swing/text/Segment.java
2125 (partialReturn): New field.
2126 (setPartialReturn): New method.
2127 (isPartialReturn): Likewise.
2128 * javax/swing/text/View.java
2129 (createFragment): Fixed typo.
2130 (getStartOffset): New method.
2131 (getEndOffset): Likewise.
2133 2004-08-31 Michael Koch <konqueror@gmx.de>
2135 * javax/swing/table/DefaultTableColumnModel.java
2136 (serialVersionUID): Made private.
2137 (listenerList): Initialize.
2138 (changeEvent): Initialize.
2139 * javax/swing/table/JTableHeader.java
2140 (JTableHeader): New constructors.
2141 (createDefaultColumnModel): New method.
2142 * javax/swing/table/TableColumn.java
2143 (setHeaderRenderer): Simplified code.
2144 (setCellRenderer): Likewise.
2145 (setWidth): Likewise.
2147 2004-08-31 Tom Tromey <tromey@redhat.com>
2149 * java/text/AttributedString.java (AttributedString): Use
2150 ArrayList to build array of attribute ranges. Don't use
2151 `attribs' before it is set.
2153 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
2155 * HACKING: Remove reference to special automake. No longer needed.
2157 2004-08-30 Tom Tromey <tromey@redhat.com>
2159 * gnu/java/security/util/Prime.java (generateRandomPrime): Use
2160 return result from `add'.
2162 2004-08-30 Tom Tromey <tromey@redhat.com>
2164 * java/rmi/server/UID.java (UID): Read `nextCount', not count.
2166 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
2168 * gnu/java/security/der/DEREncodingException.java: Remove whitespaces.
2170 2004-08-30 Jeroen Frijters <jeroen@frijters.net>
2172 * java/io/File.java File(String,String): Fixed handling of empty
2175 2004-08-30 Casey Marshall <csm@gnu.org>
2177 Author e-mail updated for all files.
2178 * gnu/java/security/OID.java (equals): Test if the aurgment is an
2180 (compareTo): Use `equals'.
2181 * gnu/java/security/der/BitString.java (equals): Test if the
2182 argument is an instance of BitString.
2183 * gnu/java/security/der/DERReader.java: Removed NIO imports. Made
2184 class final. Made fields private.
2185 (<init>): New constructor.
2187 (makeString): Made static; don't use NIO.
2188 (fromIso88591, fromUtf16Be, fromUtf8): New methods.
2189 * gnu/java/security/der/DERWriter.java: Fixed imports.
2190 (writeString): Don't use NIO.
2191 (toIso88591, toUtf16Be, toUtf8): New methods.
2192 * gnu/java/security/der/DERValue.java: Formatting changes only.
2193 * gnu/java/security/der/DER.java: Likewise.
2195 2004-08-30 Tom Tromey <tromey@redhat.com>
2197 * java/nio/CharBuffer.java (put): Fix typo.
2198 * java/nio/DoubleBuffer.java (put): Fix typo.
2199 * java/nio/FloatBuffer.java (put): Fix typo.
2200 * java/nio/IntBuffer.java (put): Fix typo.
2201 * java/nio/LongBuffer.java (put): Fix typo.
2202 * java/nio/ShortBuffer.java (put): Fix typo.
2204 2004-08-30 Florian Weimer <fw@deneb.enyo.de>
2206 * java/nio/ByteBuffer.java (put): Fix typo.
2208 2004-08-30 Casey Marshall <csm@gnu.org>
2210 * java/security/DummyKeyPairGenerator.java (clone): Removed
2211 useless instanceof check.
2212 * java/security/DummyMessageDigest.java (clone): Likewise.
2213 * java/security/DummySignature.java (clone): Likewise.
2214 * java/security/MessageDigest.java (clone): Remove useless
2216 * java/security/MessageDigestSpi.java (clone): Likewise.
2217 * java/security/Signature.java (clone): Provide meaningful
2219 * java/security/SignatureSpi.java (clone): Likewise.
2221 2004-08-29 Mark Wielaard <mark@klomp.org>
2223 * java/util/Arrays.java
2224 (sort(byte[], int, int)): Check fromIndex < 0.
2225 (sort(char[], int, int)): Likewise.
2226 (sort(short[], int, int)): Likewise.
2227 (sort(int[], int, int)): Likewise.
2228 (sort(long[], int, int)): Likewise.
2229 (sort(float[], int, int)): Likewise.
2230 (sort(double[], int, int)): Likewise.
2231 (sort(Object[], int, int, Comparator)): Likewise.
2232 (qsort(byte[], int, int)): Honor lower bound from in insertion sort.
2233 (qsort(char[], int, int)): Likewise.
2234 (qsort(short[], int, int)): Likewise.
2235 (qsort(int[], int, int)): Likewise.
2236 (qsort(long[], int, int)): Likewise.
2237 (qsort(float[], int, int)): Likewise.
2238 (qsort(double[], int, int)): Likewise.
2240 2004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
2242 * java/util/AbstractCollection.java, java/util/AbstractList.java,
2243 java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
2244 java/util/ArrayList.java, java/util/Arrays.java,
2245 java/util/BitSet.java, java/util/Calendar.java,
2246 java/util/Collection.java, java/util/ListIterator.java,
2247 java/util/Map.java, java/util/SortedSet.java:
2248 Added additional exceptions to documentation, along
2249 with some additions and corrections.
2251 2004-08-27 Hans Boehm <Hans.Boehm@hp.com>
2253 * configure.ac: Handle --enable-gc-debug.
2254 * configure: Regenerate.
2255 * include/config.h.in (LIBGCJ_GC_DEBUG): Add.
2256 * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files.
2257 Rearrange include file order.
2258 (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set.
2259 (GC_finalize_all, GC_debug_generic_malloc): Don't declare.
2260 (disable_gc_mutex): Delete along with all references.
2261 (_Jv_MarkObj, _Jv_MarkArray): Use public types,
2262 adjust for debug header size.
2263 (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for
2265 (_Jv_AllocArray): Declare min_heap_addr only if needed.
2266 (gcj_describe_type_fn): New.
2267 (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind.
2268 Register gcj_describe_type_fn.
2269 * include/boehm-gc.h:
2270 (_Jv_AllocObj, _Jv_allocPtrFreeObj):
2271 Don't define, but declare, for debug case.
2272 * java/lang/natObject.cc:
2273 (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set.
2275 2004-08-26 Mark Wielaard <mark@klomp.org>
2277 Fixes PR libgcj/17002:
2278 * java/util/TimeZone.java (defaultZone): Try a couple of ways to get
2279 a TimeZoneId string and then try to convert that to a TimeZone with
2280 getDefaultSystemTimeZone(String).
2281 (timezones0): Changed type from Hashtable to HashMap.
2282 (timezones): Create HashMap, not Hashtable.
2283 (getDefaultTimeZone): New method, rewritten from CNI version.
2284 (readTimeZoneFile): New method.
2285 (readtzFile): Likewise.
2286 (skipFully): Likewise.
2287 * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
2288 getDefaultTimeZoneId and rewritten.
2289 (getDefaultTimeZoneId): Rewritten in java.
2291 2004-08-25 David Daney <daney@avtrex.com>
2293 * Makefile.am (AM_GCJFLAGS): Add LIBGCJ_JAVAFLAGS.
2294 * Makefile.in: Regenerated.
2296 2004-08-23 Bryce McKinlay <mckinlay@redhat.com>
2298 * prims.cc (JVMPI_NOTIFY_ALLOC): New macro. Call jvmpi_notify_alloc
2299 only if jvmpi is enabled.
2300 (jvmpi_notify_alloc): Don't check if jvmpi is enabled here.
2301 (_Jv_AllocObjectNoFinalizer): Use JVMPI_NOTIFY_ALLOC.
2302 (_Jv_AllocString): Likewise.
2303 (_Jv_AllocPtrFreeObject): Likewise.
2305 2004-08-23 Hans Boehm <Hans.Boehm@hp.com>
2307 * defineclass.cc: Include <stdio.h>.
2308 * java/lang/natClassLoader.cc: Include <stdio.h>.
2310 2004-08-21 Andreas Tobler <a.tobler@schweiz.ch>
2311 Michael Koch <konqueror@gmx.de>
2313 * Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.
2314 * Makefile.in: Regenerated.
2316 2004-08-20 Michael Koch <konqueror@gmx.de>
2318 * configure.ac: Replaced all AC_TRY_COMPILE macros with
2319 AC_COMPILE_IFELSE macros.
2321 2004-08-20 Michael Koch <konqueror@gmx.de>
2323 * configure.in: Renamed to configure.ac.
2324 * configure.ac: New file.
2325 * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
2326 include/config.h.in, testsuite/Makefile.in: Regenerated.
2328 2004-08-20 Michael Koch <konqueror@gmx.de>
2330 * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
2331 * aclocal.m4, configure: Regenerated.
2333 2004-08-19 Thomas Fitzsimmons <fitzsim@redhat.com>
2334 Michael Koch <konqueror@gmx.de>
2336 * configure.in, Makefile.am: Ported to automake 1.9.
2337 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
2338 include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
2341 2004-08-19 Tom Tromey <tromey@redhat.com>
2343 * java/net/DatagramSocket.java: Fixed typo.
2345 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2348 * java/net/URI.java (string): New field. Make all other fields
2350 (readObject): Implemented.
2351 (writeObject): Implemented.
2352 (URI): Set 'string'.
2354 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2357 * java/util/logging/Handler.java (isLoggable): Accept record if its
2358 log level equals the threshold level. From Robin Green.
2360 2004-08-18 David Daney <ddaney@avtrex.com>
2362 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
2365 2004-08-17 Michael Koch <konqueror@gmx.de>
2367 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
2368 * Makefile.in: Regenerated.
2370 2004-08-16 Tom Tromey <tromey@redhat.com>
2373 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
2375 2004-08-16 Michael Koch <konqueror@gmx.de>
2378 (math_c_files): Renamed from c_files.
2379 (math_c_source_files): Renamed from c_source_files.
2382 include/Makefile.in,
2383 testsuite/Makefile.in: Regenerated.
2385 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
2387 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
2388 to avoid autoconf warning.
2389 * configure: Rebuilt.
2391 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
2393 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
2394 localhostAddress to loopbackAddress.
2395 * java/net/natInetAddressWin32.cc (lookup): Likewise.
2397 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2399 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
2400 boehm-gc's include dirs.
2401 * configure: Rebuilt.
2402 * include/boehm-gc.h: Include gc_config.h.
2404 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2406 * java/net/InetAddress.java (loopbackAddress): Renamed from
2408 (getByName): Return loopback address for null hostname, without
2409 security check. Use lookup(), not getAllByName.
2410 (getAllByName): Return loopback address for null hostname, without
2412 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
2415 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2418 Reported by Robin Green.
2419 * defineclass.cc (handleField): Don't throw exception on unrecognised
2420 modifier. Add FIXME comments for spec compliance.
2421 (handleMethod): Likewise.
2423 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
2426 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
2427 (Almost everywhere): add LOG calls, fix, add comments.
2428 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
2429 Add explicit check for LOCKED bit in slow case (PR 16662).
2430 (_Jv_MonitorExit): Add casts in debug-only code.
2431 Always release LOCKED bit before throwing exception.
2432 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
2433 isn't. Handle easy cases without lock acquisition.
2434 (Object::wait): Use NotifyAll for lock inflation.
2436 2004-08-12 David Daney <ddaney@avtrex.com>
2438 * testsuite/libjava.lang/Process_1.java: New test.
2439 * testsuite/libjava.lang/Process_2.java: New test.
2440 * testsuite/libjava.lang/Process_3.java: New test.
2441 * testsuite/libjava.lang/Process_4.java: New test.
2442 * testsuite/libjava.lang/Process_5.java: New test.
2443 * testsuite/libjava.lang/Process_6.java: New test.
2444 * testsuite/libjava.lang/Process_1.out: Expected result.
2445 * testsuite/libjava.lang/Process_2.out: Expected result.
2446 * testsuite/libjava.lang/Process_3.out: Expected result.
2447 * testsuite/libjava.lang/Process_4.out: Expected result.
2448 * testsuite/libjava.lang/Process_5.out: Expected result.
2449 * testsuite/libjava.lang/Process_6.out: Expected result.
2451 2004-08-12 David Daney <ddaney@avtrex.com>
2454 * java/lang/PosixProcess.java: Rewrote.
2455 * java/lang/natPosixProcess.cc: Rewrote.
2456 * java/lang/Runtime.java (execInternal): Declare throws IOException.
2457 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
2458 * posix-threads.cc (block_sigchld) New function.
2459 (_Jv_ThreadRegister) Use it.
2460 (_Jv_ThreadStart) Use it.
2461 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
2462 * Makefile.am: ... to specify extra native headers.
2463 * configure: Regenerated.
2464 * include/config.h: Regenerated.
2465 * Makefile.in: Regenerated.
2466 * gcj/Makefile.in: Regenerated.
2467 * include/Makefile.in: Regenerated.
2468 * testsuite/Makefile.in: Regenerated.
2470 2004-08-12 Diego Novillo <dnovillo@redhat.com>
2472 PR tree-optimization/16867
2473 * testsuite/libjava.lang/PR16867.java: New test.
2475 2004-08-09 Per Bothner <per@bothner.com>
2477 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
2478 with private fields and access methods.
2479 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
2480 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
2481 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
2482 ( _Jv_makeUtf8Const): Rewrite using new constructors.
2483 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
2484 * defineclass.cc: Use new _Utf8Const access/convenience methods.
2486 * resolve.cc: Likewise.
2487 * gcj/field.h: Likewise.
2488 * include/jvm.h: Likewise.
2489 * java/lang/Class.h: Likewise.
2490 * java/lang/natClass.cc: Likwise.
2491 * java/lang/natClassLoader.cc: Likewise
2492 * java/lang/reflect/natMethod.cc: Likewise
2493 * verify.cc: Likewise.
2494 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
2495 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
2497 2004-08-10 Andrew Haley <aph@redhat.com>
2499 * testsuite/libjava.lang/err14.java: New file.
2500 * testsuite/libjava.lang/err14.out: New file.
2502 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
2504 * Makefile.am: Fix missing rename from x_nat_headers to
2506 * Makefile.in: Regenerated.
2508 2004-08-04 Andrew Haley <aph@redhat.com>
2510 * java/security/BasicPermission.java: Don't check wildcards.
2512 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2513 Michael Koch <konqueror@gmx.de>
2515 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
2516 * configure.in: Replaced all usages of AC_LINK_FILES by
2519 configure: Regenerated.
2521 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2522 Michael Koch <konqueror@gmx.de>
2524 * acconfig.h: Removed.
2525 * Makefile.am: Rename variables for xlib peer to include xlib and
2526 gtk_c_headers to gtk_jni_headers.
2527 * Makefile.in: Regenerated.
2529 2004-08-04 Andrew Haley <aph@redhat.com>
2531 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
2534 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
2536 * configure.in: Eliminate uses of changequote (mostly by quoting []).
2537 Replace most top level 'dnl' comments with '#' comments, conforming
2538 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
2540 * configure: Rebuilt.
2542 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
2544 * acinclude.m4: Include no-executables.m4.
2545 * aclocal.m4: Rebuild.
2546 * configure.in: Convert to the autoconf 2.59 version of
2547 of the no-executables hack, and also of the nonstandard CXX
2548 hack and the multilibbed CC and CXX hack. Change prerequisite
2550 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
2551 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
2552 testsuite/Makefile.in: Regenerate.
2554 2004-08-03 Tom Tromey <tromey@redhat.com>
2556 * jni.cc: Reindented.
2558 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2560 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
2562 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2564 * testsuite/libjava.compile/PR16701.java: New test.
2566 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
2568 * java/util/Collection.java, java/util/List.java,
2569 java/util/Map.java, java/util/Set.java,
2570 java/util/SortedMap.java, java/util/SortedSet.java:
2571 Added additional exceptions to documentation.
2573 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
2576 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
2577 * configure. Regenerate.
2578 * include/win32.h: Explicitly include winsock2.h
2579 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
2582 2004-07-30 Michael Koch <konqueror@gmx.de>
2584 * java/util/zip/GZIPInputStream.java
2585 (GZIPInputStream): Increase buffer size to 4k.
2586 * java/util/zip/GZIPOutputStream.java
2587 (GZIPOutputStream): Likewise.
2588 * java/util/zip/Inflater.java
2589 (setInput): Merged formating with GNU classpath.
2590 * java/util/zip/InflaterInputStream.java
2591 (InflaterInputStream): Increase buffer size to 4k.
2592 (fill): Throw exception if stream ends early.
2593 (read): Merged endless-loop with GNU classpath.
2594 (skip): Increase buffer size to 2k.
2596 2004-07-30 Michael Koch <konqueror@gmx.de>
2598 * gnu/java/awt/EmbeddedWindow.java
2599 (addNotify): Use AccessController to allow execution of privileged
2602 2004-07-29 Michael Koch <konqueror@gmx.de>
2604 * gnu/java/lang/MainThread.java:
2605 Explicitely import used classes.
2606 (args): Make it type String[].
2608 2004-07-29 Dalibor Topic <robilad@kaffe.org>
2610 * gnu/java/awt/ComponentDataBlitOp.java,
2611 gnu/java/beans/ExplicitBeanInfo.java,
2612 gnu/java/beans/IntrospectionIncubator.java,
2613 gnu/java/beans/editors/ColorEditor.java,
2614 gnu/java/beans/editors/FontEditor.java,
2615 gnu/java/beans/editors/NativeBooleanEditor.java,
2616 gnu/java/beans/editors/NativeByteEditor.java,
2617 gnu/java/beans/editors/NativeDoubleEditor.java,
2618 gnu/java/beans/editors/NativeFloatEditor.java,
2619 gnu/java/beans/editors/NativeIntEditor.java,
2620 gnu/java/beans/editors/NativeLongEditor.java,
2621 gnu/java/beans/editors/NativeShortEditor.java,
2622 gnu/java/beans/editors/StringEditor.java,
2623 gnu/java/io/ClassLoaderObjectInputStream.java,
2624 gnu/java/io/decode/Decoder.java,
2625 gnu/java/io/encode/Encoder.java,
2626 gnu/java/lang/ClassHelper.java,
2627 gnu/java/locale/Calendar.java,
2628 gnu/java/locale/Calendar_de.java,
2629 gnu/java/locale/Calendar_en.java,
2630 gnu/java/locale/Calendar_nl.java,
2631 gnu/java/locale/LocaleInformation_de.java,
2632 gnu/java/locale/LocaleInformation_en.java,
2633 gnu/java/locale/LocaleInformation_nl.java:
2636 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2638 * README: Remove obsolete info. Update bug URL.
2640 * NEWS: Updated with news up to GCC 3.4 release.
2642 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2644 * gnu/java/security/action/GetPropertyAction.java (setParameters):
2645 Renamed from 'setName'. New 2-argument form with default value.
2646 (run): Pass default 'value' parameter to System.getProperty().
2647 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
2649 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
2652 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2654 * configure.in: Check for minimum GTK version 2.4 requirement.
2655 * configure: Rebuilt.
2657 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2659 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
2660 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
2662 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
2664 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
2665 address. Reduce sleep times. Synchronize with target threads before
2666 attempting to interrupt them. Don't try to calibrate yeild count,
2667 instead, always loop for a fixed time.
2668 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
2669 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
2670 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
2671 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
2672 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
2673 * testsuite/libjava.lang/pr179.java: Likewise.
2674 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
2675 time. Remove upper bounds check on sleep time.
2677 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2679 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
2680 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
2682 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2684 * java/io/File.java (toURI): Throw RuntimeException, not
2686 * java/lang/Runtime.java (exit): Qualify static sleep() call with
2687 class name, not instance.
2689 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
2691 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
2692 and gnu/java/security/action/SetAccessibleAction.java.
2693 * Makefile.in: Rebuilt.
2695 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2697 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
2698 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
2700 (DECLARE_PRIM_TYPE): Don't declare array vtables.
2701 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
2702 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
2704 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
2706 * Makefile.am: Replace jar, rmic and rmiregistry references with
2707 gjar, grmic and grmiregistry.
2708 * configure.in: Likewise.
2709 * Makefile.in: Regenerate.
2710 * configure: Likewise.
2711 * gcj/Makefile.in: Likewise.
2712 * include/Makefile.in: Likewise.
2713 * testsuite/Makefile.in: Likewise.
2715 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2717 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
2718 for privileged getProperty calls.
2719 * java/io/ObjectOutputStream.java (getField): No longer static. Use
2720 SetAccessibleAction instead of anonymous class for doPrivileged call.
2721 (getMethod): Likewise.
2722 (setAccessible): New field. PrivilegedAction object to use when
2723 calling setAccessible.
2724 * java/io/ObjectStreamClass.java (calculateOffsets): Use
2725 SetAccessibleAction instead of anonymous class for diPrivileged call.
2726 (setFields): Likewise.
2727 (getClassUID): Likewise.
2728 (findMethod): Likewise.
2729 * gnu/java/security/action/GetPropertyAction.java: New class.
2730 * gnu/java/security/action/SetAccessibleAction.java: New class.
2732 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2734 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
2736 * testsuite/libjava.lang/Serialization.java: New test.
2737 * testsuite/libjava.lang/Serialization.out: New.
2739 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2741 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
2742 missed in last commit.
2744 2004-07-23 Mark Wielaard <mark@klomp.org>
2746 * java/lang/System.java (static): Set http.agent system property when
2748 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
2749 from system property inside AccessController.doPrivileged() call.
2750 (proxyPort): Made package private.
2751 (proxyInUse): Likewise.
2752 (proxyHost): Likewise.
2753 (userAgent): Likewise.
2755 2004-07-23 Mark Wielaard <mark@klomp.org>
2757 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
2760 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
2762 * Makefile.am (ordinary_java_source_files): Add
2763 DefaultContentHandlerFactory.java.
2764 * Makefile.in: Rebuilt.
2765 * java/net/URLConnection.java (defaultFactory): New field.
2767 (getContentHandler): Renamed from 'setContentHandler'. Try
2768 defaultFactory after user-set factory, if any. Search for content
2769 handler implementations in gnu.java.net.content, not gnu.gcj.content.
2770 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
2772 (getLastModified): Implemented.
2773 (getPermission): Create file permission here, instead of in
2775 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
2777 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
2779 (getLastModified): Implemented.
2780 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2781 Default implementation.
2782 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2783 Implement using GdkPixbufDecoder.
2785 2004-07-21 Michael Koch <konqueror@gmx.de>
2787 * javax/swing/JTextArea.java
2788 (setLineWrap): Fire property change event after new value is set.
2789 (setTabSize): Likewise.
2791 2004-07-21 Michael Koch <konqueror@gmx.de>
2793 * javax/swing/JTable.java
2794 (autoCreateColumnsFromModel): New field.
2795 (autoResizeMode): Likewise.
2796 (cellEditor): Likewise.
2797 (cellSelectionEnabled): Likewise.
2798 (columnModel): Likewise.
2799 (dataModel): Likewise.
2800 (defaultEditorsByColumnClass): Likewise.
2801 (defaultRenderersByColumnClass): Likewise.
2802 (editingColumn): Likewise.
2803 (editingRow): Likewise.
2804 (gridColor): Likewise.
2805 (preferredViewportSize): Likewise.
2806 (rowHeight): Likewise.
2807 (rowMargin): Likewise.
2808 (rowSelectionAllowed): Likewise.
2809 (selectionBackground): Likewise.
2810 (selectionForeground): Likewise.
2811 (selectionModel): Likewise.
2812 (showHorizontalLines): Likewise.
2813 (showVerticalLines): Likewise.
2814 (tableHeader): Likewise.
2815 (JTable): Implemented.
2816 (getColumnModel): Likewise.
2817 (getSelectedRow): Likewise.
2818 (getSelectionModel): Likewise.
2819 (setModel): Likewise.
2820 (setSelectionModel): Likewise.
2821 (createScrollPaneForTable): New method.
2822 (createDefaultDataModel): Likewise.
2823 (createDefaultListSelectionModel): Likewise.
2824 (getModel): Likewise.
2825 (getTableHeader): Likewise.
2826 (setTableHeader): Likewise.
2827 (getColumnSelectionAllowed): Likewise.
2828 (setColumnSelectionAllowed): Likewise.
2829 (getRowSelectionAllowed): Likewise.
2830 (setRowSelectionAllowed): Likewise.
2831 (getAutoResizeMode): Likewise.
2832 (setAutoResizeMode): Likewise.
2833 (getColumnCount): Likewise.
2834 (getRowCount): Likewise.
2835 (getCellRenderer): Likewise.
2836 * javax/swing/JTree.java
2837 (cellRenderer): New field.
2838 (editable): Likewise.
2839 (rootVisible): Likewise.
2840 (showsRootHandles): Likewise.
2841 (getModel): New method.
2842 (setModel): Likewise.
2843 (isEditable): Likewise.
2844 (setEditable): Likewise.
2845 (isRootVisbile): Likewise.
2846 (setRootVisible): Likewise.
2847 (getShowsRootHandles): Likewise.
2848 (setShowRootHandles): Likewise.
2849 (getCellRenderer): Likewise.
2850 (setCellRenderer): Likewise.
2852 2004-07-21 Michael Koch <konqueror@gmx.de>
2854 * javax/swing/JFormattedTextField.java
2855 (setDocument): Implemented.
2856 * javax/swing/JRootPane.java:
2858 * javax/swing/JTable.java
2859 (getDefaultRenderer): New method.
2860 * javax/swing/JTextField.java
2861 (setFont): Likewise.
2862 (getPreferredSize): Likewise.
2863 * javax/swing/JToggleButton.java
2864 (getAccessibleContext): Fix javadoc.
2865 * javax/swing/JTree.java:
2867 * javax/swing/JViewport.java:
2870 2004-07-21 David Jee <djee@redhat.com>
2872 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
2873 Collect all native method declaration at the top.
2874 (create): Set the filename filter if necessary.
2875 (setDirectory): Call nativeSetDirectory().
2876 (setFilenameFilter): Implement.
2877 (filenameFilterCallback): New method.
2878 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2879 (create): Configure dialog to show hidden files.
2880 (filenameFilterCallback): New function.
2881 (nativeSetFilenameFilter): New function.
2882 (nativeSetDirectory): New function.
2884 2004-07-21 Kim Ho <kho@redhat.com>
2886 * javax/swing/plaf/basic/BasicSliderUI.java:
2888 (paintTrack): Fill the track before painting
2891 2004-07-21 Graydon Hoare <graydon@redhat.com>
2893 patch from Roman Kennke <roman@ontographics.com>
2894 * javax/swing/Spring.java: New file.
2895 * javax/swing/SpringLayout.java: New file.
2896 * Makefile.am: Add new files.
2897 * Makefile.in: Regenerate.
2899 2004-07-21 Graydon Hoare <graydon@redhat.com>
2901 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
2902 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
2903 * javax/swing/ScrollPaneLayout.java: Likewise.
2905 2004-07-21 Kim Ho <kho@redhat.com>
2907 * javax/swing/DefaultDesktopManager.java:
2908 (findMinimum): Removed.
2909 (resizeFrame): Trust the UI to pass valid
2911 * javax/swing/JOptionPane.java:
2912 Implemented showInternalXXXDialog methods.
2913 (startModal): New method.
2914 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2915 (BorderListener::mouseDragged): Verify that the new
2916 bounds are valid before passing them to the DesktopManager.
2917 (preferredLayoutSize): Delegate
2919 (minimumLayoutSize): Ditto.
2920 (getSize): New method.
2921 (GlassPaneDispatcher): Reimplemented by copying
2922 a stripped down LightweightDispatcher from Container.
2923 (getMinimumSize): Call minimumLayoutSize.
2924 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
2926 (mousePressed): Add ability to properly close
2928 * javax/swing/plaf/basic/BasicToolBarUI.java:
2929 (DragWindow): Set owner for DragWindow.
2931 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2933 * java/awt/image/ShortLookupTable.java: New file.
2934 * java/awt/image/ByteLookupTable.java: New file.
2935 * Makefile.am: Added new files.
2936 * Makefile.in: Regenerated.
2938 2004-07-21 David Jee <djee@redhat.com>
2940 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2941 (create(GtkContainerPeer)): New native method.
2942 (create()): Call native create(), passing in the parent frame
2943 as the paramter. Natively set the current file and directory.
2944 (setFile): Construct an absolute filename before passing it to
2946 (nativeGetDirectory): New method.
2947 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2948 (window_closed): Removed.
2949 (ok_clicked): Likewise.
2950 (cancel_clicked): Likewise.
2951 (handle_response): New method.
2952 (create): Use GtkFileChooserDialog.
2953 (connectSignals): Connect to handle_response.
2954 (nativeGetDirectory): New method.
2955 (nativeSetFile): Use GtkFileChooserDialog.
2957 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2959 * java/awt/image/LookupTable.java: New file.
2960 * Makefile.am: Added new file.
2961 * Makefile.in: Regenerated.
2963 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2965 * java/awt/image/Kernel.java: New file.
2966 * Makefile.am: Added new file.
2967 * Makefile.in: Regenerated.
2969 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2971 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
2972 * javax/swing/JMenu.java: Likewise.
2973 * javax/swing/JMenuBar.java: Likewise.
2974 (MARGIN_CHANGED_PROPERTY): New property.
2975 (setMargin): Implemented.
2976 * javax/swing/JMenuItem.java: Fixed javadocs.
2977 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
2978 (LABEL_CHANGED_PROPERTY): New property.
2979 (add): changed to use createActionComponent.
2980 (createActionComponent): Implemented.
2981 (setLabel): Fire PropertyChangeEvent if label property
2983 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
2984 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
2985 (ContainerHandler): Repaint if margin property has changed.
2986 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2987 (installUI): Call installComponents().
2988 (uninstallUI): Call uinstallComponents().
2989 * javax/swing/plaf/basic/BasicMenuUI.java:
2991 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2994 2004-07-21 Kim Ho <kho@redhat.com>
2996 * javax/swing/plaf/basic/BasicToolBarUI.java:
2997 (DragWindow): Use the right constructor.
2999 2004-07-21 Kim Ho <kho@redhat.com>
3001 * javax/swing/JToolBar.java:
3002 (layoutContainer): Use getComponents.
3003 * javax/swing/plaf/basic/BasicToolBarUI.java:
3004 (DragWindow): Don't use SwingUtilities'
3006 (ToolBarDialog): ditto.
3008 2004-07-21 Kim Ho <kho@redhat.com>
3010 * javax/swing/JRootPane.java:
3012 (layoutContainer): Set the glasspane's size to
3013 be the same as the content pane.
3014 (createGlassPane): Set opaque property to false.
3016 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3018 * java/awt/Component.java (requestFocus()): Don't handle Panels
3020 (requestFocus(boolean)): Likewise.
3021 (requestFocusInWindow(boolean)): Likewise.
3022 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
3023 Set GTK_CAN_FOCUS flag.
3025 2004-07-21 Kim Ho <kho@redhat.com>
3027 * Makefile.am: Added new file.
3028 * Makefile.in: Regenerated.
3029 * gcj/Makefile.in: Regenerated.
3030 * include/Makefile.in: Regenerated.
3031 * javax/swing/AbstractButton.java:
3032 Add rollOverEnabled property.
3033 (setRolloverEnabled): Use new property.
3034 (isRolloverEnabled): Use new property.
3035 * javax/swing/JTabbedPane.java:
3036 (setComponent): Remove useless JTabbedPane.this.
3037 * javax/swing/JToolBar.java: Finish implementation.
3038 * javax/swing/plaf/basic/BasicArrowButton.java:
3039 (paint): Moved border painting to a border.
3040 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3041 Change JToolBar look and feel defaults.
3042 * javax/swing/plaf/basic/BasicOptionPaneUI.java
3043 (actionPerformed): Return Integer index instead of name.
3044 (addButtonComponents): Check to see if component is
3046 (createMessageArea): Don't use components that are not
3048 (getIconForType): Use temporary icons.
3049 * javax/swing/plaf/basic/BasicSliderUI.java:
3050 (mousePressed): Do not return if it's on thumb.
3051 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
3052 (paintMinorTickForVertSlider): ditto.
3053 (paintMajorTickForHorizSlider): ditto.
3054 (paintMajorTickForVertSlider): ditto.
3055 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
3056 Add a border around the SplitPaneDivider.
3057 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
3059 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
3060 New file. Implemented.
3061 * javax/swing/plaf/basic/BasicToolBarUI.java:
3063 * testsuite/Makefile.in: Regenerated.
3065 2004-07-21 Graydon Hoare <graydon@redhat.com>
3067 * javax/swing/Timer.java (run): Queue events each time cycle.
3069 2004-07-21 David Jee <djee@redhat.com>
3071 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3072 (imageComplete): Call image.imageComplete().
3073 * java/awt/image/MemoryImageSource.java:
3074 Reimplement consumers as a Vector instead of a Hashtable. This is
3075 because enumeration on a Hashtable is not thread-safe.
3076 (addConsumer): Adapt to Vector consumers.
3077 (isConsumer): Adapt to Vector consumers.
3078 (removeConsumer): Adapt to Vector consumers.
3079 (startProduction): Adapt to Vector consumers. Call imageComplete()
3080 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
3081 (newPixels): Adapt to Vector consumers.
3082 (sendPicture): Set the color model of the image consumer.
3083 (newPixels(IIII)): Adapt to Vector consumers.
3084 (newPixels(IIIIB)): Adapt to Vector consumers.
3086 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3088 * java/awt/Component.java (deliverEvent): Implement.
3089 (postEvent): Implement.
3090 (handleEvent): Implement.
3091 (translateEvent): New method.
3092 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
3093 * java/awt/Container.java (deliverEvent): Implement.
3094 * java/awt/Event.java (paramString): Fix formatting.
3095 * java/awt/Font.java (toString): Likewise.
3096 * java/awt/Window.java (postEvent): Implement.
3098 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3100 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3101 Set window's focus owner upon receiving a FOCUS_LOST event.
3102 * java/awt/Window.java (Window()): Refocus the previously
3103 focused component within the window when the window regains the
3105 (setFocusOwner): New method.
3106 * java/awt/Component.java (requestFocus): Add FIXME.
3108 * libgcj.pc.in: Remove library flags.
3110 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3112 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
3113 MOUSE_PRESSED event.
3114 * java/awt/Component.java (requestFocus()): Handle Panel
3115 specially. Post FOCUS_LOST event on opposite component.
3116 (requestFocus(boolean)): Likewise.
3117 (requestFocusInWindow(boolean)): Likewise.
3118 (paramString): Reorder dimension fields.
3119 * java/awt/Container.java (paramString): Fix string format.
3120 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3121 Handle FOCUS_LOST events. Don't handle Windows specially. Only
3122 process key events if the focus owner is non-null.
3123 (dispatchKeyEvent): Likewise.
3124 * java/awt/Frame.java (paramString): Fix formatting.
3125 (generateName): New method.
3126 (getUniqueLong): Likewise.
3127 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
3128 the temporary focus owner is null. If so, return the permanent
3130 * java/awt/Panel.java (generateName): New method.
3131 (getUniqueLong): Likewise.
3132 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
3133 signal handling to make callbacks more specific.
3135 2004-07-21 Michael Koch <konqueror@gmx.de>
3137 * javax/swing/text/Position.java
3138 (Bias): Implemented.
3140 2004-07-21 Michael Koch <konqueror@gmx.de>
3142 * javax/swing/LookAndFeel.java
3143 (provideErrorFeedback): New method.
3145 2004-07-21 Michael Koch <konqueror@gmx.de>
3147 * javax/swing/JTextArea.java
3148 (tabSize): New field.
3149 (getTabSize): New method.
3150 (setTabSize): Likewise.
3152 2004-07-21 Michael Koch <konqueror@gmx.de>
3154 * javax/swing/ActionMap.java:
3155 Fixed javadocs all over.
3156 (serialVersionUID): Made private.
3157 (parent): Don't explicitely initialize with default value.
3159 (keys): Reimplemented.
3160 (allKeys): Likewise.
3161 (convertSet): Removed.
3162 * javax/swing/ComponentInputMap.java:
3163 Fixed javadocs all over.
3164 (ComponentInputMap): Implemented.
3168 (SetParent): Likewise.
3169 (getComponent): Likewise.
3170 * javax/swing/InputMap.java:
3171 Fixed javadocs all over.
3172 (serialVersionUID): Made private.
3173 (parent): Don't explicitely initialize with default value.
3175 (keys): Reimplemented.
3176 (allKeys): Likewise.
3177 (convertSet): Removed.
3179 2004-07-21 Michael Koch <konqueror@gmx.de>
3181 * javax/swing/ActionMap.java,
3182 javax/swing/ComponentInputMap.java,
3183 javax/swing/InputMap.java,
3184 javax/swing/table/DefaultTableColumnModel.java,
3185 javax/swing/table/TableColumn.java,
3186 javax/swing/table/TableColumnModel.java,
3187 javax/swing/table/TableModel.java,
3188 javax/swing/text/AbstractDocument.java,
3189 javax/swing/text/TextAction.java:
3192 2004-07-21 Graydon Hoare <graydon@redhat.com>
3194 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
3195 Make method non-static.
3196 * javax/swing/AbstractButton.java:
3197 Rename fields to match property names where possible.
3198 (iconTextGap): New property.
3199 * javax/swing/JCheckBox.java: Match AbstractButton changes.
3200 (init) New method, call from after various constructors.
3201 * javax/swing/JComponent.java (revalidate):
3202 Invalidate before queueing repair.
3203 * javax/swing/JList.java (getPreferredScrollableViewportSize):
3204 Reimplement in terms of visibleRowCount property.
3205 * javax/swing/JMenuButton.java: Match AbstractButton changes.
3206 * javax/swing/JScrollPane.java (createScrollListener):
3207 Remove tracing chatter.
3208 * javax/swing/JToggleButton.java: Match AbstractButton changes.
3209 * javax/swing/RepaintManager.java (addInvalidComponent):
3211 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
3213 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
3214 Mimic sun behavior on top left/right positioning.
3215 * javax/swing/ViewportLayout.java (preferredLayoutSize):
3216 Remove mistaken use of preferredScrollableViewportSize here.
3217 (layoutContainer): Use view's preferred size as basis.
3218 * javax/swing/plaf/basic/BasicButtonUI.java:
3219 Set, get, and use textIconGap property.
3220 (paint) Paint text returned from layout (with ellipsis).
3221 * javax/swing/plaf/basic/BasicListUI.java:
3222 Remove tracing chatter, correct various minor calculations.
3223 (getCellBounds): Update layout state before calculating.
3224 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
3225 Use margin default similar to sun's.
3226 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
3227 (createIncreaseIcon): Center icon, minimize margins.
3228 (createDecreaseIcon): Likewise.
3229 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
3231 (installUI): Call it.
3232 (uninstallDefaults): Implement.
3233 (uninstallUI): Call it.
3234 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
3235 Call existing Window constructor.
3236 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
3237 Set clip before painting.
3239 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3241 * javax/swing/JMenuItem.java:
3242 (processMouseEvent): Reimplemented to deal with
3244 (createMenuDragMouseEvent): New private helper method.
3245 Creates MenuDragMouseEvent.
3246 * javax/swing/MenuSelectionManager.java
3247 (componentForPoint): Implemented.
3248 (isComponentPartOfCurrentMenu): Made public.
3249 (processMouseEvent): Reimplemented to deal with
3251 (setSelectedPath): Corrected small mistake that caused
3252 path to be set incorrectly.
3253 (getPath): If given component is JMenu then also add this
3254 menu's popup menu to the selected path.
3255 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3257 (getPreferredSize): Call getPreferredMenuItemSize().
3258 (getPreferredItemSize): Moved code from getPreferredSize to here.
3259 (installListeners): Install MouseMotionListeners.
3260 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
3261 if mouse wasn't released in the bounds of this menu item.
3262 (MenuDragMouseHandler): Implemented.
3263 * javax/swing/plaf/basic/BasicMenuUI.java:
3264 (installListeners): Install MouseMotionListener and
3265 MenuDrageMouseListener.
3266 (MenuDragMouseHandler): Implemented.
3267 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3268 (uninstallListeners): Implemented.
3270 2004-07-21 Michael Koch <konqueror@gmx.de>
3272 * javax/swing/JCheckBox.java: Reformated.
3273 (JCheckBox): Fixed all constructors.
3274 (isBorderPaintedFlat): New method.
3275 (setBorderPaintedFlat): New method.
3276 * javax/swing/JEditorPane.java
3277 (createEditorKitForContentType): Made public.
3278 (scrollToReference): Likewise.
3279 * javax/swing/JTextArea.java
3280 (setLineWrap): Fire property change.
3281 * javax/swing/JToggleButton.java
3282 (JToggleButton): New constructor.
3283 (JToggleButton): Simplified.
3284 * javax/swing/text/AttributeSet.java
3285 (FontAttribute): Renamed from FontCharacterAttribute.
3286 * javax/swing/text/JTextComponent.java
3287 (KeyBinBinding): Added javadoc.
3288 (JTextComponent): Likewise.
3289 (getAccessibleContext): Fixed javadoc.
3290 * javax/swing/text/View.java
3291 (View): Added javadoc.
3292 * javax/swing/text/TabableView.java: New file.
3293 * Makefile.am: Added javax/swing/text/TabableView.java.
3294 * Makefile.in: Regenerated.
3296 2004-07-21 Graydon Hoare <graydon@redhat.com>
3298 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
3299 * gnu/java/awt/peer/gtk/GtkToolkit.java
3300 (GtkErrorImage): New helper class.
3301 (bufferedImageOrError): New helper method.
3302 (createImage): Use it.
3304 2004-07-21 David Jee <djee@redhat.com>
3306 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3307 (setCaretPosition): Scroll the text view so the new caret position
3308 is visible on screen.
3310 2004-07-21 David Jee <djee@redhat.com>
3312 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3313 (setBounds): Do not validate awtComponent here.
3314 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
3315 (getPreferredSize): New method.
3316 * java/awt/ScrollPane.java
3317 (ScrollPane): Set default size to 100x100.
3318 (addNotify): If child is not a Panel, wrap it with a new Panel.
3319 (paramString): Implement.
3321 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3323 * javax/swing/JMenu.java:
3324 (setSelected): Display popup menu only if this menu
3325 is showing on the screen.
3326 * javax/swing/JPopupMenu.java:
3327 (processMouseEvent): Added comment.
3328 (processKeyEvent): Likewise.
3329 * javax/swing/MenuSelectionManager.java:
3330 (clearSelectedPath): Only fireStateChanged() after
3331 selected path was changed, not before.
3332 (setSelectedPath): Likewise.
3333 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3334 (paintMenuItem): Corrected position of menu item's
3336 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3337 (installUI): Correct setDefaultLightWeightPopupEnabled call.
3338 (popupMenuCanceled): Reimplemented.
3339 (popupMenuWillBecomeVisible): Select first menu item by default
3340 when displaying free floating popup menus.
3341 (TopWindowListener): Reimplemented.
3343 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3345 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
3346 Panel from being painted twice when it is first shown.
3348 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3350 * java/awt/Window.java: Reverted changes from my
3351 previous patch for creating window without an owner.
3352 * javax/swing/SwingUtilities.java:
3353 (SwingUtilities.OwnerFrame): made static.
3354 (OwnerFrame.setVisible): New method. Overridden with
3355 empty implementation.
3356 (OwnerFrame.isShowing): New method. Ovverridden
3357 to return always true.
3359 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3361 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3362 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3363 (GtkComponentPeer): Remove temporary try/catch block.
3364 (setVisible): Call show and hide.
3365 (show): Make native.
3367 (getArgs): Don't add "visible" argument.
3368 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3369 (property_notify_predicate): Return Bool instead of int.
3370 (find_layout): New function.
3371 (connectJObject): Call find_layout.
3372 (connectSignals): Likewise.
3373 (moveLayout): Likewise.
3374 (gtkLayoutSetVisible): Likewise.
3376 2004-07-21 Mark Wielaard <mark@klomp.org>
3378 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3379 on notifier object before calling notifyAll().
3381 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3383 * java/awt/Window.java: Changed constructors to use new
3384 method that is described below. Constructors call this
3385 methods only if newly created window should have an owner.
3386 (setWindowOwner): New method. Implementation for
3387 this method is moved from this(owner,configuration).
3388 * javax/swing/JWindow.java:
3389 (JWindow): Reimplement to use SwingUtilities.ownerFrame
3391 * javax/swing/SwingUtilities.java:
3392 (ownerFrame): Change type of this field to OwnerFrame.
3393 (getOwnerFrame): Changed to return object of type OwnerFrame.
3394 (SwingUtilities.OwnerFrame): New class. Represents owner
3395 of a Window that is not provided with one.
3397 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3399 * javax/swing/AbstractButton.java:
3400 (configurePropertiesFromAction): Set action command
3401 to button's text by default if action command is not
3402 explicitely specified.
3403 * javax/swing/JMenu.java: Remove unnecessary listener
3404 and methods relevant to it.
3405 (setSelected): Reimplemented.
3406 (menuSelectionChanged): Moved most part of implementation to
3407 setSelected() and call it instead.
3408 * javax/swing/JMenuItem.java:
3409 (init): Comment out statement that sets paint_border to false.
3410 (configurePropertiesFromAction): Do not set accelerator
3412 (menuSelectionChanged): Change selected index in the selection
3413 model of menu item's parent.
3414 * javax/swing/JPopupMenu.java:
3415 (remove): Set constraints.fill field to GridBagConstraints.BOTH
3416 instead of GridBagConstraints.HORIZONTAL.
3418 (createActionChangeListener): Implemented.
3419 (setVisible): Correct location of HeavyWeightMenu and
3420 don't firePopupMenuCanceled().
3421 (menuSelectionChanged): Implemented.
3422 (ActionChangeListener): New Listener. Implemented.
3423 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3424 (BasicMenuBarUI.ContainerHandler): Implemented.
3425 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3426 (paintMenuItem): Uncommented out code that paints
3427 icon, now that icons are working properly.
3428 (PropertyChangeListener): Implemented.
3429 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3431 (topWindowListener): New field.
3432 (Constructor): initialize topWindowListener.
3433 (BasicPopupMenuUI.TopWindowListener): Implemented.
3434 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
3435 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
3438 2004-07-21 Michael Koch <konqueror@gmx.de>
3440 * javax/swing/plaf/basic/BasicButtonUI.java
3441 (paintFocus): Fixed method signature.
3442 (paintButtonPressed): Likewise.
3443 (paintButtonNormal): Likewise.
3444 (paintText): New method.
3445 * javax/swing/plaf/basic/BasicLabelUI.java
3446 (paint): Re-indented.
3447 * javax/swing/plaf/basic/BasicTextUI.java
3448 (installUI): Set parent textComponent to opaque.
3449 * javax/swing/text/DefaultHighlighter.java
3450 (checkPositions): New helper method.
3451 (addHighlight): Throws BadLocationException, check positions.
3452 (changeHighlight): Likewise.
3453 * javax/swing/text/EditorKit.java
3454 (EditorKit): Implements Serializable.
3455 * javax/swing/text/JTextComponent.java
3456 (getUI): Added javadoc.
3458 (upadteUI): Added javadoc, don't revalidate and repaint.
3460 2004-07-21 David Jee <djee@redhat.com>
3462 * java/awt/GridBagLayout.java
3463 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
3464 * javax/swing/AbstractButton.java
3465 (setText): Reindent.
3466 * javax/swing/RepaintManager.java
3467 (addInvalidComponent): Find the first ancestor that isValidateRoot().
3469 2004-07-21 Michael Koch <konqueror@gmx.de>
3471 * javax/swing/JFormattedTextField.java
3473 (JFormattedTextField): Implemented.
3474 (getValue): Likewise.
3475 (setValue): Likewise.
3476 * javax/swing/LookAndFeel.java
3477 (getSupportsWindowDecorations): New method.
3478 * javax/swing/UIDefaults.java:
3479 Use java.beans.PropertyChangeSupport instead of doing all ourself.
3480 (addPropertyChangeListener): Made public.
3481 (addResourceBundle): Likewise.
3482 (removeResourceBundle): Likewise.
3483 (setDefaultLocale): Likewise.
3484 * javax/swing/plaf/basic/BasicRootPaneUI.java
3485 (BasicRootPaneUI): Implements PropertyChangeListener.
3486 (propertyChange): New method.
3487 * javax/swing/plaf/basic/BasicTextUI.java
3488 (BasicHighlighter): New inner class.
3489 (createHighlighter): New method.
3490 * javax/swing/plaf/basic/BasicToolBarUI.java
3491 (DragWindow): Extends java.awt.Window.
3492 * javax/swing/text/JTextComponent.java
3493 (getDocument): Removed debug output.
3494 * javax/swing/plaf/basic/BasicTextFieldUI.java,
3495 javax/swing/text/DefaultHighlighter.java,
3496 javax/swing/text/FieldView.java,
3497 javax/swing/text/PlainView.java: New files.
3498 * Makefile.am: Added new files.
3499 * Makefile.in: Regenerated.
3501 2004-07-21 Michael Koch <konqueror@gmx.de>
3503 * javax/swing/JEditorPane.java
3504 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
3505 (createEditorKitForContentType): Likewise.
3506 * javax/swing/text/DefaultEditorKit.java
3507 (serialVersionUID): Added constant field.
3508 (EndOfLineStringPropery): Fixed typo.
3509 (DefaultEditorKit): New constructor.
3510 * javax/swing/text/Segment.java:
3511 Import java.text.CharacterIterator.
3512 * javax/swing/text/CharacterIterator.java,
3513 javax/swing/text/PlainEditorKit.java: Removed.
3514 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
3515 javax/swing/text/PlainEditorKit.java.
3516 * Makefile.in: Regenerated.
3518 2004-07-21 Michael Koch <konqueror@gmx.de>
3520 * javax/swing/JButton.java,
3521 javax/swing/text/DefaultEditorKit.java,
3522 javax/swing/text/EditorKit.java,
3523 javax/swing/text/Segment.java,
3524 javax/swing/text/StyledEditorKit.java:
3527 2004-07-21 Michael Koch <konqueror@gmx.de>
3529 * javax/swing/ImageIcon.java
3531 (description): Renamed from descr.
3532 (ImageIcon): Added missing constructors.
3533 (setParent): Removed.
3534 (setImageObserver): New method.
3535 (getImageObserver): New method.
3536 (paintIcon): Handle observer = null.
3537 * javax/swing/JButton.java
3538 (removeNotify): Fixed javadoc.
3539 (updateUI): Simplified.
3540 * javax/swing/JRootPane.java
3541 (serialVersionUID): New constant field.
3542 * javax/swing/UIManager.java:
3543 Fixed javadocs all over.
3544 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
3545 * javax/swing/text/AbstractDocument.java
3546 (createPosition): Throws BadLocationException.
3547 (getText): Likewise.
3549 * javax/swing/text/ComponentView.java
3550 (modelToView): Likewise.
3551 * javax/swing/text/DefaultEditorKit.java:
3552 Made all public methods public.
3553 (read): Throws BadLocationException and IOException.
3555 * javax/swing/text/EditorKit.java:
3556 Made all public methods public.
3557 (serialVersionUID): New constant field.
3558 (clone): New method.
3559 (read): Throws BadLocationException and IOException.
3561 * javax/swing/text/Segment.java
3562 (array): Made public.
3565 (Segment): New constructors.
3566 (clone): Reimplemented.
3567 * javax/swing/text/StyledEditorKit.java
3568 (serialVersionUID): New constant field.
3570 2004-07-21 Graydon Hoare <graydon@redhat.com>
3572 * java/awt/image/BufferedImage.java
3573 (getSource): Implement.
3574 * javax/swing/ImageIcon.java
3575 (ImageIcon): Implement ctor.
3576 * javax/swing/ScrollPaneLayout.java
3577 (preferredLayoutSize): Be more careful about nulls.
3579 2004-07-21 Michael Koch <konqueror@gmx.de>
3581 * javax/swing/text/AttributeSet.java
3582 (CharacterAttribute): New interface
3583 (ColorAttribute): Likewise.
3584 (FontCharacterAttribute): Likewise.
3585 (ParagraphAttribute): Likewise.
3586 * javax/swing/text/DefaultCaret.java
3587 (moveCaret): New method.
3588 (positionCaret): Likewise.
3589 (repaint): Made protected.
3590 * javax/swing/text/JTextComponent.java
3591 (KeyBinding): Made it static.
3592 * javax/swing/text/View.java
3593 (getContainer): Honor parent == null.
3595 2004-07-21 Michael Koch <konqueror@gmx.de>
3597 * javax/swing/text/AbstractDocument.java:
3600 2004-07-21 Michael Koch <konqueror@gmx.de>
3602 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3603 Import javax.swing.UIManager explicitely.
3604 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
3605 (ScrollingButton): Made it static.
3607 2004-07-21 Michael Koch <konqueror@gmx.de>
3609 * javax/swing/UIDefaults.java
3610 (ActiveValue): Made public.
3611 (LazyValue): Likewise.
3612 * javax/swing/plaf/basic/BasicTextUI.java
3613 (RootView): Reintroduced.
3615 (rootView): New field.
3616 (installUI): Create document if needed, initialize rootView.
3617 (uninstallUI): Hanle rootView.
3619 (getRootView): Likewise.
3620 (setView): Likewise.
3621 * javax/swing/text/DefaultCaret.java:
3622 Renamed all "evt" variables to "event".
3624 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3626 * libgcj.spec.in: Add -l-java-util-logging.
3628 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
3630 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3631 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
3632 gtk-xft-dpi can no calculate the right value.
3633 (dpi_changed_cb): Mark *pspec as unsused.
3635 2004-07-21 David Jee <djee@redhat.com>
3637 * java/awt/Component.java
3638 (move): Delegate to setBounds().
3640 (reshape): Fix so it repaints parent and self only when necessary.
3642 2004-07-21 David Jee <djee@redhat.com>
3644 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3645 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3646 (GtkComponentPeer): Revert previous patch from 2004-06-22.
3647 (setVisible): Likewise.
3650 (getArgs): Likewise.
3651 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3652 (property_notify_predicate): Likewise.
3653 (find_layout): Likewise.
3654 (connectJObject): Likewise.
3655 (connectSignals): Likewise.
3656 (moveLayout): Likewise.
3657 (gtkLayoutSetVisible): Likewise.
3659 2004-07-21 Graydon Hoare <graydon@redhat.com>
3665 (rmiregistry_LDADD): Add lib-java-util-logging.la
3666 * Makefile.in: Regenerate.
3668 2004-07-21 Michael Koch <konqueror@gmx.de>
3670 * javax/swing/text/AbstractDocument.java
3671 (replace): Dont use protected method of java.util.Vector directly.
3673 2004-07-21 Michael Koch <konqueror@gmx.de>
3675 * javax/swing/plaf/basic/BasicTextUI.java
3676 (installUI): Call specialized install methods.
3677 (installDefaults): New method.
3678 (installListeners): Likewise.
3679 (installKeyboardActions): Likewise.
3680 (uninstallUI): Likewise.
3681 (uninstallDefaults): New method.
3682 (uninstallListeners): Likewise.
3683 (uninstallKeyboardActions): Likewise.
3684 (getPropertyPrefix): New abstract method.
3685 (paint): Made final, just call paintSafely().
3686 (paintSavely): New method.
3687 (paintBackground): Likewise.
3688 (getVisibleEditorRect): Likewise.
3689 * javax/swing/text/LayeredHighlighter.java,
3690 javax/swing/text/TabExpander.java: New files.
3691 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
3692 and javax/swing/text/TabExpander.java.
3693 * Makefile.in: Regenerated.
3695 2004-07-21 Michael Koch <konqueror@gmx.de>
3697 * javax/swing/plaf/basic/BasicTextUI.java
3698 (BasicTextUI): Made abstract.
3699 (BasicCaret): New inner class.
3700 (view): Don't explicitely initialize with "null".
3701 (textComponent): New field.
3702 (textColor): Removed.
3703 (disabledTextColor): Removed.
3704 (normalBackgroundColor): Removed.
3705 (RootView): Removed commented out inner class.
3706 (createUI): Removed.
3707 (createCaret): New method.
3708 (getComponent): Likewise.
3709 (installUI): Initialize textComponent only.
3710 (getPreferredSize): Use installed JTextComponent.
3711 (setView): New method.
3713 * javax/swing/text/JTextComponent.java
3714 (highlighter): New field.
3715 (caretColor): Likewise.
3716 (disabledTextColor): Likewise.
3717 (seletedTextColor): Likewise.
3718 (selectionColor): Likewise.
3719 (setUI): New method.
3720 (getCaretColor): Likewise.
3721 (setCaretColor): Likewise.
3722 (getDisabledColor): Likewise.
3723 (setDisabledColor): Likewise.
3724 (getSelectedTextColor): Likewise.
3725 (setSelectedTextColor): Likewise.
3726 (getSelectionColor): Likewise.
3727 (setSelectionColor): Likewise.
3728 (getHighlighter): Likewise.
3729 (setHighlighter): Likewise.
3730 (replaceSelection): Likewise.
3732 2004-07-21 Michael Koch <konqueror@gmx.de>
3734 * javax/swing/plaf/basic/BasicScrollPaneUI.java
3735 (BasicScrollPaneUI): Implements ScrollPaneConstants.
3736 * javax/swing/plaf/basic/BasicToolBarUI.java
3737 (BasicToolBarUI): Implements SwingConstants.
3739 2004-07-21 Michael Koch <konqueror@gmx.de>
3741 * javax/swing/JPopupMenu.java: Removed CVS tags.
3742 * javax/swing/UIDefaults.java: Reformatted.
3743 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3744 Explicitely import used classes.
3746 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3748 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3749 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3750 (GtkComponentPeer): Remove temporary try/catch block.
3751 (setVisible): Call show and hide.
3752 (show): Make native.
3754 (getArgs): Don't add "visible" argument.
3755 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3756 (property_notify_predicate): Return Bool instead of int.
3757 (find_layout): New function.
3758 (connectJObject): Call find_layout.
3759 (connectSignals): Likewise.
3760 (moveLayout): Likewise.
3761 (gtkLayoutSetVisible): Likewise.
3763 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3765 * javax/swing/AbstractButton.java:
3766 (setDisplayedMnemonicIndex): Check if button
3767 text is not null before checking its length.
3768 * javax/swing/JMenuItem.java:
3769 (processMouseEvent): Disarm menu item if mouse has
3771 * javax/swing/plaf/basic/BasicMenuUI.java:
3772 (MouseInputHandler.mouseEntered): Do not raise
3773 popup menu if this menu is already selected.
3774 (MouseInputHandler.mousePressed): Do not fire
3776 (MenuHandler): Implemented.
3778 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3780 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
3781 (getSelectedObjects): Implemented.
3782 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
3783 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
3784 Added javadoc for few methods.
3785 (processMouseEvent): Made public.
3786 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
3787 (processMouseEvent): Likewise.
3789 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3791 * javax/swing/AbstractButton.java:
3792 (init): Set display mnemonic index to -1.
3793 (setMnemonic(char)): Use setMnemonic(int).
3794 (setMnemonic(int)): Set display mnemonic index.
3795 (getDisplayedMnemonicIndex): Change method signature
3796 by removing 'index' parameter.
3797 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3798 Added default for Menu.selectionBackground.
3799 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3800 (paintMenuItem): Change background color of the selected
3802 (paintText): Paint differently when menu item is disabled.
3803 Also paint mnemonic if it appears in the menu item's label.
3804 (paintAccelerator): Paint accelerator differently
3805 if menu item is disabled.
3806 * javax/swing/plaf/basic/BasicMenuUI.java:
3807 (installDefaults): Install defaults for
3808 selectionForeground and selectionBackground.
3809 (uninstallDefaults): Uninstall defauls for
3810 selectionForeground and selectionBackground.
3812 2004-07-21 Michael Koch <konqueror@gmx.de>
3814 * javax/swing/text/AbstractDocument.java
3815 (BranchElement): Implemented.
3816 (LeafElement): Implemented.
3817 * javax/swing/text/DefaultCaret.java:
3818 Import used classes.
3819 (serialVersionUID): New constant.
3820 * javax/swing/text/JTextComponent.java
3821 (AccessibleJTextComponent): Removed dead declaration.
3822 (caretPos): Removed.
3823 (setCaret): New method.
3824 * javax/swing/text/PlainDocument.java
3825 (rootElement): New field.
3826 (PlainDocument): Initialize rootElement.
3827 (createDefaultRoot): New method.
3828 (getDefaultRootElement): Implemented.
3829 * javax/swing/text/View.java: Reformatted.
3830 * javax/swing/text/ViewFactory.java
3831 (create): Added javadoc.
3833 2004-07-21 Michael Koch <konqueror@gmx.de>
3835 * javax/swing/ToolTipManager.java: Reformatted.
3837 2004-07-21 Rodimina Olga <rodimina@redhat.com>
3839 * javax/swing/AbstractButton.java
3840 (changeEvent): New field.
3841 (fireItemStateChanged): Change source of the event
3842 to 'this' before firing it to button listeners.
3843 (fireActionPerformed): Likewise.
3844 (fireStateChanged): Likewise.
3845 (createActionListener): Do not set source
3846 of the event to AbstractButton.
3847 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3848 (ContainerHandler.componentAdded): Removed
3849 print out statement.
3850 (ContainerHandler.componentRemoved): Likewise.
3852 2004-07-21 Michael Koch <konqueror@gmx.de>
3854 * javax/swing/text/Highlighter.java: New file.
3855 * Makefile.am: Added javax/swing/text/Highlighter.java.
3856 * Makefile.in: Regenerated.
3858 2004-07-21 Michael Koch <konqueror@gmx.de>
3860 * javax/swing/ToolTipManager.java
3861 (stillInsideTimerAction): Fixed constructor arguments.
3862 (outsideTimerAction): Likewise.
3863 (insideTimerAction): Likewise.
3865 2004-07-21 Michael Koch <konqueror@gmx.de>
3867 * javax/swing/JButton.java: Reformatted.
3868 * javax/swing/JFormattedTextField.java
3869 (getUIClassID): Implemented.
3870 * javax/swing/JRootPane.java
3871 (serialVersionUID): New constant.
3872 * javax/swing/JTextField.java
3874 (JTextField): Simplified.
3875 (getUIClassID): New method.
3876 (getActionListeners): Added @since tag.
3877 (setColumns): Invalidate layout and repaint.
3878 (getHorizontalAlignment): New method.
3879 (setHorizontalAlignment): New method.
3880 (selectAll): Removed.
3881 * javax/swing/SwingUtilities.java
3882 (getAncestorOfClass): Removed redundant @see tag.
3883 (isLeftMouseButton): Fixed implementation.
3884 (isMiddleMouseButton): Likewise.
3885 (isRightMouseButton): Likewise.
3886 * javax/swing/text/AbstractDocument.java
3887 (AttributeContext.addAttribute): New method.
3888 (AttributeContext.addAttributes): New method.
3889 (AttributeContext.getEmptySet): New method.
3890 (AttributeContext.reclaim): New method.
3891 (AttributeContext.removeAttribute): New method.
3892 (AttributeContext.removeAttributes): New method.
3893 * javax/swing/text/Document.java
3894 (createPosition): Throws BadLocationException.
3895 (getText): Likewise.
3897 * javax/swing/text/JTextComponent.java
3898 (getText): Return null if no document is set. Catch
3899 BadLocationException.
3901 (updateUI): Simplified.
3903 2004-07-21 Michael Koch <konqueror@gmx.de>
3905 * javax/swing/JButton.java
3906 (removeNotify): Fixed javadoc.
3907 (updateUI): Simplified.
3909 2004-07-21 David Jee <djee@redhat.com>
3911 * gnu/java/awt/image/ImageDecoder.java
3912 (startProduction): Only add consumer if it's not added yet.
3913 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
3914 (GdkPixbufDecoder): Don't call initState() here.
3915 (produce): Call initState() here, to ensure area_prepared and
3916 area_updated signals are properly connected.
3917 * gnu/java/awt/peer/gtk/GtkImage.java
3918 (setColorModel): Use equals() to compare ColorModel objects.
3919 (setPixels): Likewise.
3920 * java/awt/image/ColorModel.java
3921 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
3922 * java/awt/image/RGBImageFilter.java
3923 (setColorModel): Set consumer's color model.
3924 (setPixels): Use equals() to compare ColorModel objects.
3926 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
3928 * java/net/URLConnection.java (position): New field.
3929 (dateFormat1, dateFormat2, dateFormat3): Removed.
3930 (dateFormats): New field.
3931 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
3932 each time instead of re-allocating.
3933 (initializeDateFormats): Initialize 'dateFormats'.
3935 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3938 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
3941 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3943 * java/net/Socket.java (getImpl): Now private. Remove comment.
3945 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3947 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
3948 of chained Writer when calling super-constructor.
3949 * java/io/FilterWriter.java (FilterWriter): Likewise.
3950 * java/io/PrintWriter.java (PrintWriter): Likewise.
3952 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
3954 * prims.cc (process_gcj_properties): Don't increment i within LHS
3957 2004-07-19 Per Bothner <per@bothner.com>
3959 Print -verbose:message on "loading", not initialization.
3960 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
3961 * defineclass.cc (_Jv_ClassReader::parse): Print message if
3962 gcj::verbose_class_flag.
3963 * java/lang/natClass.cc (initializeClass): Don't print message here.
3964 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
3965 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
3966 (_Jv_PrepareCompiledClass): Likewise.
3968 2004-07-18 Matthias Klose <doko@debian.org>
3970 * configure.in: Substitute target_noncanonical.
3971 * configure: Regenerate
3973 2004-07-17 Michael Koch <konqueror@gmx.de>
3975 * java/lang/String.java: Fixed javadocs all over.
3977 2004-07-17 Mark Wielaard <mark@klomp.org>
3979 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
3980 when size is smaller.
3981 * java/io/RandomAccessFile.java (setLength): Use truncate for
3982 shrinking the file and seek plus write for expanding the file.
3984 2004-07-17 Michael Koch <konqueror@gmx.de>
3986 * gnu/java/nio/channels/natFileChannelPosix.cc
3987 (implTruncate): Always save current position. Only reposition file
3988 pointer to where we started if not beyond new lenght. Reposition file
3989 pointer to file length if it points beyond the end of file.
3991 2004-07-17 Mark Wielaard <mark@klomp.org>
3993 * javax/swing/Box.java: Put FIXME comment above class declaration.
3994 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
3995 * javax/swing/JCheckBox.java: Likewise.
3996 * javax/swing/JDialog.java: Likewise.
3997 * javax/swing/JRadioButton.java: Likewise.
3998 * javax/swing/JToggleButton.java: Likewise.
3999 * javax/swing/UIManager.java: Likewise.
4000 * javax/swing/border/TitledBorder.java: Likewise.
4001 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
4002 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
4003 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
4004 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
4005 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
4006 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
4007 * javax/swing/text/JTextComponent.java: Likewise.
4009 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
4011 * java/net/DatagramPacket.java (setAddress): Removed check for
4014 2004-07-17 Michael Koch <konqueror@gmx.de>
4016 * java/net/DatagramSocket.java
4017 (getLocalAddress): Check if socket is bound or not.
4018 * java/net/Socket.java
4019 (getLocalAddrss): Check if socket is bound or not.
4020 (getPort): Return -1 when not connected. Dont check getImpl() for
4022 (setReuseAddress): Check if socket is closed.
4023 (isConnected): Check if getImpl() returns null.
4025 2004-07-17 Mark Wielaard <mark@klomp.org>
4027 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
4028 on notifier object before calling notifyAll().
4030 2004-07-17 Michael Koch <konqueror@gmx.de>
4032 * gnu/java/nio/channels/FileChannelImpl.java
4033 (finalize): Added javadoc.
4035 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
4037 * java/text/CollationElementIterator.java
4038 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
4039 (setText): Use ArrayList instead of Vector.
4041 2004-07-17 Michael Koch <konqueror@gmx.de>
4043 * java/nio/ByteOrder.java
4044 (static): Removed. Not needed.
4045 Thanks to Patrick Reali for noticing.
4046 * java/nio/charset/CharsetDecoder.java
4047 (decode): Fix for classpath bug #9177: Reset state before flipping.
4049 2004-07-17 Michael Koch <konqueror@gmx.de>
4051 * java/security/Security.java: Fixed javadocs all over.
4053 2004-07-17 Michael Koch <konqueror@gmx.de>
4055 * gnu/java/awt/EmbeddedWindow.java
4057 (addNotify): Set peer via reflection.
4058 (setWindowPeer): Removed.
4059 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
4060 * Makefile.am (nat_source_files):
4061 Removed gnu/java/awt/natEmbeddedWindow.cc.
4062 * Makefile.in: Regenerated.
4064 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
4066 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
4068 * configure: Regenerated.
4070 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
4072 * configure.in: Use build_noncanonical rather than build_alias.
4073 * configure: Rebuild.
4075 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
4076 by logic refactoring. Move default definition of NATIVE closer
4077 to first alternate definition.
4078 * configure: Regenerate.
4080 * Makefile.am: Set ZIP and GCJH directly using autoconf.
4081 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
4082 gcj/Makefile.in: Regenerate.
4083 * configure.in: Set ZIP and GCJH. Remove redundant condition
4084 in AM_CONDITIONAL(NATIVE,...)
4085 * configure: Regenerate.
4087 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
4089 * configure.in: Use target_noncanonical rather than
4090 target_alias for forward-compatibility with autoconf 2.59.
4091 * configure: Regenerate.
4092 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
4093 testsuite/Makefile.am: Substitute target_noncanonical.
4094 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4095 testsuite/Makefile.in: Regenerate.
4097 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
4098 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
4099 * acinclude.m4: Include acx.m4.
4100 * aclocal.m4: Regenerate.
4101 * configure: Regenerate.
4103 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
4106 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
4107 (decimalFormat): New static variable.
4109 (getTime): New. Override Date.getTime().
4110 (toString): Synchronize. Use decimalFormat to format nanos value
4111 correctly. Truncate extra zeros.
4112 (before): Compare getNanos() only if getTime() is equal.
4115 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
4117 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
4118 * configure.in: ...here.
4119 * aclocal.m4: Regenerate.
4120 * configure: Regenerate.
4122 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
4123 * configure: Rebuilt with autoconf 2.13.
4124 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4125 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
4127 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
4130 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
4132 * Makefile.in: Rebuilt.
4133 * testsuite/libjava.lang/LargeFile.java: New test case.
4134 * testsuite/libjava.lang/LargeFile.out: New file.
4136 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
4138 * java/beans/EventHandler.java: Remove debugging statements.
4140 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
4142 * java/beans/EventHandler.java: New file.
4143 * Makefile.am (awt_java_source_files): Add EventHandler.java.
4144 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4145 testsuite/Makefile.in: Regenerate.
4147 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
4149 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
4150 flag to the gcj_setup.
4151 (gcj_jacks_run): Check tclsh version and launch jacks directly with
4153 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
4154 deprecation flag change. 58 XFAILS removed.
4156 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
4158 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
4159 -fno-use-divide-subroutine.
4160 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
4161 (HANDLE_FPE): Define.
4162 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
4163 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
4164 (HANDLE_DIVIDE_OVERFLOW): Define.
4166 2004-07-14 Michael Koch <konqueror@gmx.de>
4167 Matthias Klose <doko@debian.org>
4169 * java/awt/im/InputContext.java: Initialize in, line.
4171 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
4173 * interpret.cc (run): Correctly access libffi return values of
4174 integral smaller-than-int type; these are implicitly promoted.
4176 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
4179 * interpret.cc (compile_mutex): New.
4180 (_Jv_InitInterpreter): New. Initialize compile_mutex.
4181 (run): Lock compile_mutex before calling compile() if compilation is
4183 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
4184 * include/java-interp.h (_Jv_InitInterpreter): Declare.
4186 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
4189 * include/jvm.h (_Jv_value): New union type.
4190 * gcj/field.h (_Jv_Field): Add new _addr union field variants
4191 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
4194 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
4196 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
4197 * gnu/awt/xlib/XOffScreenImage.java
4198 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
4199 constructor argument. Add constructor using ImageProducer.
4200 (getSource): Implement.
4201 (imageComplete): New method.
4202 (setColorModel): New method.
4203 (setDimensions): New method.
4204 (setHints): New method.
4205 (setPixels): New method.
4206 (setProperties): New method.
4207 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
4208 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
4210 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
4213 * prims.cc (_Jv_CreateJavaVM): Fix comment.
4214 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
4215 (finalizerReady): Now native.
4217 (runFinalizers): Removed.
4218 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
4219 a primitive lock, and don't hold it while running the finalizers.
4220 (runFinalizers): Implement. Don't aquire any Java lock.
4221 (finalizerReady): Use lock primitives to signal finalizer thread.
4223 2004-07-11 Mark Wielaard <mark@klomp.org>
4225 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
4226 * java/net/URLStreamHandler.java (parseURL): When url file part
4227 doesn't contain a '/' just ignore context.
4229 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
4231 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
4232 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
4233 (MAKE_THROW_FRAME): Do not modify PSW address.
4234 (INIT_SEGV): Install SIGINFO-style signal handler.
4235 (INIT_FPE): Likewise.
4237 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
4239 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
4240 status. 21 xfail's removed, 1 added.
4242 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
4244 * gcj/javaprims.h: Regenerate CNI namespace definitions.
4246 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
4248 * java/text/MessageFormat.java
4249 (formatInternal): Append "{n}" if argument n is unavailable.
4250 (format(Object, StringBuffer, FieldPosition)): This
4251 should be equivalent to format(Object[],
4252 StringBuffer, FieldPosition).
4254 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4256 * java.util.Calendar.java (cache): New private static field. Cached
4257 mappings of locales->calendar classes.
4258 (ctorArgTypes): New private static field. Singleton argument for
4259 calendar class constructor lookup.
4260 (getInstance): Cache Locale->Calendar class mappings using HashMap.
4261 Optimize by bypassing reflection instantiation for the
4262 GregorianCalendar case.
4264 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4266 * java/util/Calendar.java: Use getSystemClassLoader as argument for
4267 ResourceBundle.getBundle() calls.
4268 * java/util/GregorianCalendar.java: Likewise.
4269 * java/util/Currency.java: Likewise.
4270 * java/text/BreakIterator.java: Likewise.
4271 * java/text/Collator.java: Likewise.
4272 * java/text/DateFormat.java: Likewise.
4273 * java/text/DateFormatSymbols.java: Likewise.
4274 * java/text/DecimalFormatSymbols.java: Likewise.
4275 * java/text/NumberFormat.java: Likewise.
4276 * java/awt/Window.java: Likewise.
4278 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4280 * java/util/ResourceBundle.java (bundleCache): Renamed from
4281 resourceBundleCache. Update comments.
4282 (getObject): Don't catch MissingResourceException.
4283 (getBundle(String)): Remove 'final'. Use system classloader if
4284 getCallingClassLoader returned null.
4285 (getBundle(String, Locale)): Likewise.
4286 (BundleKey): New private class. HashMap key for bundle cache lookup.
4287 (lookupKey): New. Singleton instance of BundleKey.
4288 (nullEntry): New. Cache entry to represent failed lookups.
4289 (getBundle(String, Locale, ClassLoader)): Re-written to use new
4290 caching strategy, no-allocation lookup, and new tryBundle methods.
4291 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
4292 name using given classloader.
4293 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
4294 baseName for given Locale and attempt to load bundle.
4296 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4298 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
4299 illegal protected method calls.
4301 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4303 Fix or remove some bogus test cases.
4304 * testsuite/libjava.compile/pr10459_2.java: Removed.
4305 * testsuite/libjava.compile/pr10459.java: Test using its own method,
4307 * testsuite/libjava.compile/inner_data.java: Test against its own
4310 2004-07-09 Michael Koch <konqueror@gmx.de>
4312 * scripts/unicode-muncher.pl: Updated to version 2.1
4313 from GNU classpath. Added some clarifications on where to find the
4314 needed files from www.unicode.org.
4315 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
4316 gnu/gcj/convert/UnicodeData-3.0.0.txt:
4317 Removed, these can directly be downloaded from www.unicode.org if
4319 * gnu/java/lang/CharData.java: Regenerated.
4320 * include/java-chartables.h: Regenerated.
4321 * Makefile.am (ordinary_java_source_files):
4322 Removed gnu/java/lang/CharData.java.
4323 * Makefile.in: Regenerated.
4325 2004-07-09 Michael Koch <konqueror@gmx.de>
4327 * java/security/AccessControlContext.java,
4328 java/security/SecureClassLoader.java:
4331 2004-07-09 Michael Koch <konqueror@gmx.de>
4333 * java/io/ObjectInputStream.java (readFields): Use long datatype
4334 when shifting byte values more then 24 bits left.
4336 2004-07-09 Michael Koch <konqueror@gmx.de>
4338 * java/util/zip/DeflaterOutputStream.java,
4339 java/util/zip/GZIPInputStream.java,
4340 java/util/zip/GZIPOutputStream.java,
4341 java/util/zip/InflaterInputStream.java:
4342 Reformatted. Added javadocs. Reordered all stuff.
4343 Renamed variables to be more clear.
4345 2004-07-09 Michael Koch <konqueror@gmx.de>
4347 * javax/imageio/IIOException.java,
4348 javax/imageio/event/IIOReadProgressListener.java,
4349 javax/imageio/event/IIOReadUpdateListener.java,
4350 javax/imageio/event/IIOReadWarningListener.java,
4351 javax/imageio/event/IIOWriteProgressListener.java,
4352 javax/imageio/event/IIOWriteWarningListener.java:
4354 * Makefile.am: Added new files.
4355 * Makefile.in: Regenerated.
4357 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
4359 * java/text/RuleBasedCollator.java
4360 (mergeRules): Use ArrayList instead of Vector.
4361 (subParseString): likewise.
4362 (parseString): likewise.
4363 (buildCollationVector): likewise.
4364 (getCollationKey): likewise.
4366 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4368 * java/text/DateFormat.java (parse):
4369 Improved javadoc. Improved exception message.
4371 2004-07-09 Mark Wielaard <mark@klomp.org>
4373 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
4374 interrupted() method to clear interupt flag of our Thread.
4376 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4378 * java/nio/Buffer.java,
4379 java/nio/ByteBuffer.java,
4380 java/nio/ByteBufferHelper.java,
4381 java/nio/ByteBufferImpl.java,
4382 java/nio/CharBuffer.java,
4383 java/nio/CharBufferImpl.java,
4384 java/nio/CharViewBufferImpl.java,
4385 java/nio/DirectByteBufferImpl.java,
4386 java/nio/DoubleBuffer.java,
4387 java/nio/DoubleBufferImpl.java,
4388 java/nio/DoubleViewBufferImpl.java,
4389 java/nio/FloatBuffer.java,
4390 java/nio/FloatBufferImpl.java,
4391 java/nio/FloatViewBufferImpl.java,
4392 java/nio/IntBuffer.java,
4393 java/nio/IntBufferImpl.java,
4394 java/nio/IntViewBufferImpl.java,
4395 java/nio/LongBuffer.java,
4396 java/nio/LongBufferImpl.java,
4397 java/nio/LongViewBufferImpl.java,
4398 java/nio/MappedByteBufferImpl.java,
4399 java/nio/ShortBuffer.java,
4400 java/nio/ShortBufferImpl.java,
4401 java/nio/ShortViewBufferImpl.java:
4402 Fixed javadocs all over. Improved input error
4405 * java/nio/Buffer.java
4406 (checkForUnderflow, checkForOverflow, checkIndex,
4407 checkIfReadOnly, checkArraySize): New helper methods
4410 * java/nio/ByteBufferHelper.java
4411 (checkRemainingForRead, checkRemainingForWrite,
4412 checkAvailableForRead, checkAvailableForWrite): Removed
4413 no longer needed methods.
4415 2004-07-09 Michael Koch <konqueror@gmx.de>
4417 * gnu/regexp/CharIndexedInputStream.java:
4418 Reordered imports to match classpath.
4420 2004-07-09 Michael Koch <konqueror@gmx.de>
4422 * gnu/java/awt/EmbeddedWindow.java:
4423 Load native library for setWindowPeer method.
4425 2004-07-08 Randolph Chung <tausq@debian.org>
4427 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
4428 * configure: Regenerate.
4429 * configure.host: Set can_unwind_signal for hppa*-linux.
4430 * include/pa-signal.h: New file.
4432 2004-07-07 Per Bothner <per@bothner.com>
4434 * Makefile.am: Add rules to build libgij from just gij.cc.
4436 * include/jvm.h (namespace jcj): Declare verbose_class_flag
4437 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
4438 (initializeClass): If verbose_class_flag, print message.
4439 * gij.cc (main): Handle -verbose:class flag.
4441 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
4443 * configure.host: Enable hash synchronization on Darwin.
4444 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
4445 ';', since this is a comment on Darwin.
4446 (compare_and_swap_release): Likewise.
4448 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
4450 * java/net/URLStreamHandler.java (parseURL): Canonicalize
4451 file portion of URL in addition to spec for file: protocol.
4453 2004-07-05 Anthony Green <green@redhat.com>
4455 * java/io/File.java (toURI): Merge from Classpath.
4457 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4459 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
4460 before passing to URL constructor. Rethrow any MalformedURLException
4461 as a RuntimeException. Catch MalformedURLException specifically, not
4464 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4466 * java/util/Locale.java (readObject): Intern strings read from object
4469 2004-07-04 Michael Koch <konqueror@gmx.de>
4471 * gnu/gcj/runtime/FirstThread.java,
4472 gnu/gcj/runtime/natFirstThread.cc: Removed.
4473 * gnu/java/lang/MainThread.java,
4474 gnu/java/lang/natMainThread.cc: New files.
4475 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
4476 * Makefile.am: Added new files and removed deleted ones.
4477 * Makefile.in: Regenerated.
4479 2004-07-03 Mark Wielaard <mark@klomp.org>
4480 Anthony Green <green@redhat.com>
4482 * java/net/URL.java (getFile): Clarify return value doc.
4483 (getPath): Return null if file is empty - not empty String.
4484 (set): Convert protocol to lower case before doing anything.
4485 Only change the protocol handler if it's different.
4487 2004-07-03 Anthony Green <green@redhat.com>
4489 * java/net/URL.java (URL): Convert protocol to lower case before
4490 doing anything, so we getURLStreamHandler() with the proper value.
4492 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
4494 * java/util/Locale.java (hashcode): Made transient.
4495 (hashCode): No longer synchronized.
4496 (equals): Remove comment.
4497 (writeObject): No longer synchronized. Implement using writeObject
4498 calls instead of tweaking hashCode field. Update doc.
4499 (readObject): Implement using readObject calls.
4501 2004-06-26 Geoffrey Keating <geoffk@apple.com>
4502 Andreas Tobler <a.tobler@schweiz.ch>
4504 * configure.host (powerpc-*-darwin*): New case, define
4506 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
4507 * configure: Regenerate.
4508 * include/darwin-signal.h: New.
4510 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
4512 * java/beans/Statement.java (doExecute): Fix formatting.
4514 2004-06-29 Per Bothner <per@bothner.com>
4516 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
4517 etc etc): Remove needless parenthesis, which causes __stdcall__
4518 attribute on MinGW to get ignored.
4520 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
4522 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
4524 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
4526 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
4528 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
4530 * java/beans/Expression.java: New file.
4531 * java/beans/Statement.java: New file.
4532 * Makefile.am: Added new files.
4533 * Makefile.in: Re-generate.
4535 2004-06-27 Mark Wielaard <mark@klomp.org>
4537 * java/io/FilePermission.java (usingPerms): Removed.
4538 (actionsString): Made final.
4539 (cachePerms): Renamed to checkPerms.
4540 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
4542 (FilePermission): Check arguments, call checkPerms().
4543 (equals): Remove cachePerms() call.
4544 (implies): Likewise.
4546 2004-06-27 Mark Wielaard <mark@klomp.org>
4548 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
4550 (sendRequest): Use new field in user-agent http agent.
4552 2004-06-27 Mark Wielaard <mark@klomp.org>
4554 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
4555 when argument is null.
4557 2004-06-26 Mark Wielaard <mark@klomp.org>
4559 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
4560 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
4562 (cancel_clicked): Likewise.
4564 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
4566 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
4567 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
4568 can not calculate the right value.
4569 (dpi_changed_cb): Likewise. Mark *pspec as unused.
4571 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
4573 * testsuite/libjava.jacks/jacks.xfail: Remove
4574 15.9.1-qualified-concrete-20.
4576 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4578 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
4579 encoding name to iconv.
4580 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4582 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4585 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
4586 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
4587 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4589 2004-06-21 Andrew Haley <aph@redhat.com>
4591 * java/io/ObjectOutputStream.java: Add DEBUG statements
4593 (dumpElementln): New method.
4595 * java/io/ObjectInputStream.java
4596 (currentClassLoader): Make native.
4597 (callersClassLoader): New field.
4599 (readObject): ENDBLOCKDATA is generated if the class has a write
4600 method, not if it has a read method.
4601 (readObject): Save and restore this.currentObject and
4602 this.currentObjectStreamClass around calls to callReadMethod().
4603 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
4606 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
4608 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
4611 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4613 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
4614 if desired, before the default class loader is initialised.
4615 Call INIT_SEGV only if HANDLE_SEGV is defined.
4617 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4619 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
4620 directory only if it actually exists.
4622 2004-06-18 Graydon Hoare <graydon@redhat.com>
4624 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4625 Fix up non-ansi comments.
4627 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4629 * javax/swing/text/AbstractDocument.java: Adding missing import
4630 for javax.swing.event.EventListenerList.
4631 * javax/swing/text/DefaultCaret.java: Likewise.
4633 2004-06-17 Michael Koch <konqueror@gmx.de>
4635 * javax/swing/JToolBar.java
4637 (JToolBar): Use Component.setName(String) instead of doing it all
4639 * javax/swing/Timer.java
4640 (queueEvent): Added missing modifier.
4642 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
4644 * Makefile.am: Added new file.
4645 * Makefile.in: Re-generate.
4646 * javax/swing/JMenu.java:
4647 (insertSeparator): Implemented.
4648 * javax/swing/JPopupMenu.java:
4649 (JPopupMenu.Separator): Implemented.
4650 * javax/swing/MenuSelectionManager.java:
4651 (processMouseEvent): Use java.awt.Component
4652 for event source instead of javax.swing.JComponent.
4653 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
4654 New File. Implemented.
4656 2004-06-16 David Jee <djee@redhat.com>
4658 * java/awt/GridBagLayout.java
4659 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
4660 Make sure pos_x and pos_y are never negative.
4662 2004-04-16 Andrew Overholt <overholt@redhat.com>
4664 * Makefile.am: Add new file.
4665 * Makefile.in: Re-generate.
4666 * javax/swing/JToolBar.java
4667 Partially implemented.
4668 * javax/swing/plaf/basic/BasicToolBarUI.java
4669 New file. Partially implemented.
4671 2004-06-16 Graydon Hoare <graydon@redhat.com>
4673 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
4674 (setComposite): Accept AlphaComposite arguments.
4675 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
4676 (createBufferedImage): Add new overloads.
4677 * gnu/java/awt/peer/gtk/GtkToolkit.java
4678 (createImage): Use GdkPixbufDecoder.createBufferedImage
4679 when useGraphics2D() is true.
4680 (getImage): Delegate to createImage.
4681 * javax/swing/JList.java
4683 (getFirstVisibleIndex):
4684 (getLastVisibleIndex):
4686 (ensureIndexIsVisible): New methods.
4687 * javax/swing/Timer.java: Reimplement.
4689 2004-06-16 Michael Koch <konqueror@gmx.de>
4691 * javax/swing/text/AbstractDocument.java
4692 (AbstracElement): Made public, implements java.io.Serializable.
4693 (AttributeContext): Made public.
4694 (BranchElement): Likewise.
4695 (Content): Likewise.
4696 (DefaultDocumentEvent): Made public, extends
4697 javax.swing.undo.CompoundEdit.
4698 (ElementEdit): Made public, extends
4699 javax.swing.undo.AbstractUndoableEdit.
4700 (LeafElement): Made public.
4701 (LeafElement.LeafElement): Made public.
4703 2004-06-16 Michael Koch <konqueror@gmx.de>
4705 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
4706 methods (that were obviously never be intended to get included hi this
4707 class. Added some methods too.
4709 2004-06-16 Michael Koch <konqueror@gmx.de>
4711 * javax/swing/text/PlainDocument.java
4712 (serialVersionUID): New constant.
4713 (lineLimitAttribute): Likewise.
4714 (tabSizeAttribute): Likewise.
4715 (tabSize): New field.
4716 (PlainDocument): Made public.
4717 (PlainDocument): New constructor.
4719 2004-06-16 Michael Koch <konqueror@gmx.de>
4721 * javax/swing/text/AbstractDocument.java
4722 (insertString): Throws BadLocationException.
4723 * javax/swing/text/Document.java
4724 (insertString): Likewise.
4725 * javax/swing/text/JTextComponent.java:
4726 Javadocs and comments cleaned up.
4728 2004-06-16 Michael Koch <konqueror@gmx.de>
4730 * javax/swing/event/UndoableEditListener.java: Reformatted.
4731 * javax/swing/text/AbstractDocument.java
4732 (AbstractDocument): Implements java.io.Serializable.
4733 (doc_list): Removed.
4734 (undo_list): Removed.
4735 (AbstractElement.serialVerionUID): New field.
4736 (BranchElement.serialVerionUID): Likewise.
4737 (DefaultDocumentEvent.serialVerionUID): Likewise.
4738 (ElementEdit.serialVerionUID): Likewise.
4739 (LeafElement.serialVerionUID): Likewise.
4740 (serialVerionUID): Likewise.
4741 (BAD_LOCATION): New constant.
4742 (BidiElementName): Likewise.
4743 (ContentElementName): Likewise.
4744 (ParagraphElementName): Likewise.
4745 (SectionElementName): Likewise.
4746 (ElementNameAttribute): Likewise.
4747 (AbstractDocument): Made protected.
4748 (AbstractDocument): New construtor.
4749 (listenerList): New field.
4750 (fireChangedUpdate): Implemented.
4751 (fireInsertUpdate): Likewise.
4752 (fireRemoveUpdate): Likewise.
4753 (fireUndoableEditUpdate): Likewise.
4754 (getListeners): Likewise.
4755 (addDocumentListener): Likewise.
4756 (removeDocumentListener): Likewise.
4757 (addUndoableEditListener): Likewise.
4758 (removeUndoableEditListener): Likewise.
4759 (getDocumentListeners): New method.
4760 (getUndoableEditListeners): Likewise.
4761 (getAsynchronousLoadPriority): Made public.
4762 (getBidiRootElement): Likewise.
4763 (setAsynchronousLoadPriority): Likewise.
4764 (setDocumentProperties): Likewise.
4765 * javax/swing/text/BadLocationException.java
4766 (serialVerionUID): New field.
4767 * javax/swing/text/DefaultCaret.java
4768 (changeEvent): New field.
4769 (listenerList): Likewise.
4771 (addChangeListener): Reimplemented.
4772 (removeChangeListener): Likewise.
4773 (getListeners): New method.
4774 (getChangeListeners): Likwise.
4775 (getComponent): Likewise.
4776 * javax/swing/text/GapContent.java
4777 (GapContent): Implements java.io.Serializable.
4778 (serialVerionUID): New field.
4780 2004-06-16 Michael Koch <konqueror@gmx.de>
4782 * javax/swing/JTree.java
4783 (treeModel): New field.
4784 (JTree): New constructors, one existing one made public.
4785 (createTreeModel): New method.
4786 (addTreeExpansionListener): Likewise.
4787 (removeTreeExpansionListener): Likewise.
4788 (getTreeExpansionListeners): Likewise.
4789 (fireTreeCollapsed): Likewise.
4790 (fireTreeExpanded): Likewise.
4791 (addTreeSelectionListener): Likewise.
4792 (removeTreeSelectionListener): Likewise.
4793 (getTreeSelectionListeners): Likewise.
4794 (fireValueChanged): Likewise.
4795 (addTreeWillExpandListener): Likewise.
4796 (removeTreeWillExpandListener): Likewise.
4797 (getTreeWillExpandListeners): Likewise.
4798 (fireTreeWillCollapse): Likewise.
4799 (fireTreeWillExpand): Likewise.
4801 2004-06-16 Michael Koch <konqueror@gmx.de>
4803 * javax/swing/JTree.java: Reformatted.
4805 2004-06-16 Michael Koch <konqueror@gmx.de>
4807 * javax/swing/JTextArea.java: New file.
4808 * javax/swing/JTextField.java
4810 (notifyAction): New constant.
4811 (columns): New field.
4812 (JTextField): New constructors.
4813 (createDefaultModel): New method.
4814 (addActionListener): Reimplmemented.
4815 (removeActionListener): Reimplemented.
4816 (getActionListeners): New method.
4817 (fireActionPerformed): New method.
4818 (getColumns): New method.
4819 (setColumne): New method.
4820 * javax/swing/text/JTextComponent.java
4821 (AccessibleJTextComponent.serialVersionUID): New field.
4822 (serialVersionUID): Likewise.
4823 (DEFAULT_KEYMAP): Likewise.
4824 (FOCUS_ACCELERATOR_KEY): Likewise.
4825 (doc): Made private.
4826 (icon_gap): Likewise.
4829 (JTextComponent): Some constructors removed.
4830 (getScrollableTracksViewportHeight): New method.
4831 (getScrollableTracksViewportWidth): Likewise.
4832 * Makefile.am: Added javax/swing/JTextArea.java.
4833 * Makefile.in: Regenerated.
4835 2004-06-15 Graydon Hoare <graydon@redhat.com>
4837 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
4838 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
4839 * javax/swing/JViewport.java
4840 (getExtentSize): Return size rather than preferred size.
4841 (toViewCoordinates): New methods.
4842 (getViewSize): Return size rather than preferred size.
4843 (setViewSize): Note view size as set.
4844 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
4845 * javax/swing/plaf/basic/BasicScrollBarUI.java
4846 (getPreferredSize): Don't redo layout.
4847 * javax/swing/plaf/basic/BasicViewportUI.java
4848 (paint): Translate image properly and eat exceptions.
4850 2004-06-15 Kim Ho <kho@redhat.com>
4852 * javax/swing/JTabbedPane.java
4853 (setComponent): Remove old component and
4855 (setSelectedIndex): Don't operate on the
4856 components if they're null. Don't set index
4857 on the model if the index is the same.
4858 (insertTab): Don't add or hide the component
4859 if it's null. Repaint the container.
4860 * javax/swing/plaf/basic/BasicLookAndFeel.java
4861 Change colors for TabbedPane.
4862 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
4863 (mousePressed): Re-layout and paint the component.
4864 (layoutContainer): Don't set location on the view.
4865 (ScrollingViewport::paint): Remove.
4867 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
4869 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4870 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
4872 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
4873 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
4874 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
4876 (drawLine): Call gdk_flush before leaving GDK critical region.
4877 (fillRect): Likewise.
4878 (drawRect): Likewise.
4879 (copyArea): Likewise.
4880 (copyPixmap): Likewise.
4881 (clearRect): Likewise.
4882 (drawArc): Likewise.
4883 (drawPolyline): Likewise.
4884 (drawPolygon): Likewise.
4885 (fillPolygon): Likewise.
4886 (fillArc): Likewise.
4887 (drawOval): Likewise.
4888 (fillOval): Likewise.
4890 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
4892 (GdkFontMetrics): Add style argument to initState call.
4893 (stringWidth(String,int,int,String)): Add style parameter.
4894 (stringWidth(String)): Add style argument to stringWidth call.
4895 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
4896 (initState): Set pango font style and weight based on AWT style
4897 parameter. Pass default GTK language to
4898 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
4899 simply dividing by PANGO_SCALE.
4900 (stringWidth): Set pango font style and weight based on AWT style
4903 * java/awt/Button.java (next_button_number): New field.
4904 (paramString): Change output.
4905 (generateName): New method.
4906 (getUniqueLong): New method.
4908 2004-06-14 Kim Ho <kho@redhat.com>
4910 * javax/swing/JTabbedPane.java:
4911 (setComponentAt): Set the component, not
4913 * javax/swing/plaf/basic/BasicDesktopIconUI.java
4914 (actionPerformed): Let deiconize catch exception.
4916 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4918 * javax/swing/JPopupMenu.java:
4919 (setVisible): Corrected location of a
4920 heavyweight popup menu.
4922 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4924 * javax/swing/MenuSelectionManager.java:
4925 Ran through jalopy to fix formatting style.
4927 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4929 * javax/swing/JLayeredPane.java:
4930 (remove): Revalidate and repaint layered pane after
4931 the component was removed.
4932 javax/swing/JMenu.java:
4933 (setVisible): Display popup menu at the user location,
4934 if one was set by the user.
4935 (setMenuLocation): Reimplemented. Fixed javadoc.
4936 * javax/swing/JMenuBar.java: Added javadoc.
4937 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
4938 (MODEL_CHANGED_PROPERTY): New Property.
4939 (isSelected): Implemented.
4940 (setBorderPainted): Fire PropertyChangeEvent
4941 if paintBorder property changes.
4942 (setSelected): Implemented.
4943 (setSelectionModel): Implemented.
4944 * javax/swing/JPopupMenu.java: Added Javadoc
4945 (pack): Implemented.
4946 (setVisible): Reimplemented.
4947 (show): Fixed location.
4948 (JPopupMenu.LigthWeightPopup): Reimplemented to use
4949 Container instead of JPanel.
4950 * javax/swing/MenuSelectionManager.java: Added Javadocs.
4951 (clearSelectedPath): Reimplemented to clear selectedPath
4953 (processMouseEvent): Reimplemented.
4954 (setSelectedPath): Fire stateChange event indicating that
4955 selected menu path has changed.
4956 (getPath): Change to use ArrayList instead of Vector.
4957 * javax/swing/plaf/basic/BasicMenuBarUI.java:
4958 (installUI): call installKeyboardActions().
4959 (uninstallUI): call uninstallKeyboardActions().
4961 2004-06-13 Michael Koch <konqueror@gmx.de>
4963 * javax/swing/text/DefaultCaret.java,
4964 javax/swing/text/BadLocationException.java:
4967 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
4969 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
4970 DEFAULT_COLS): New variables.
4971 (create): Don't allow 0 rows or 0 columns. Instead, set the
4972 values to DEFAULT_ROWS or DEFAULT_COLS.
4973 (getMinimumSize): Likewise.
4974 (getPreferredSize): Likewise.
4975 (minimumSize): Likewise.
4976 (preferredSize): Likewise.
4977 (create): Set peer's editable state.
4978 * java/awt/TextArea.java (TextArea()): Set rows and columns to
4979 zero. Update javadocs.
4980 (TextArea(String)): Likewise.
4981 (TextArea(int,int)): Fix javadocs.
4982 (TextArea(String,int,int,int)): Only throw exception if one of
4983 rows or columns is zero. Fix javadocs.
4985 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
4987 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
4988 addition to Components.
4990 * java/awt/MenuItem.java (dispatchEventImpl): If the event
4991 wasn't consumed by normal processing, send it to the parent
4994 * gnu/java/awt/peer/gtk/GtkImagePainter.java
4995 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
4998 2004-06-11 David Jee <djee@redhat.com>
5000 * java/awt/MediaTracker.java
5001 (addImage(Image,int)): Call imageUpdate() to udpate image status.
5002 (addImage(Image,int,int,int)): Likewise.
5004 2004-06-11 Michael Koch <konqueror@gmx.de>
5006 * javax/swing/text/AbstractDocument.java,
5007 javax/swing/text/Document.java,
5008 javax/swing/text/GapContent.java,
5009 javax/swing/text/JTextComponent.java,
5010 javax/swing/text/PlainDocument.java:
5013 2004-06-11 Michael Koch <konqueror@gmx.de>
5015 * javax/swing/JRootPane.java
5016 (AccessibleJRootPane.serialVersionUID): New field.
5017 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
5018 (AccessibleJRootPane.getAccessibleRole): New method.
5019 (RootLayout): Implements Serializable.
5020 (RootLayout.serialVersionUID): New field.
5021 (RootLayout.RootLayout): New constructor.
5022 (setJMenuBar): Made public.
5023 (getJMenuBar): Likewise.
5024 (JRootPane): Likewise.
5025 (createContentPane): Likewise.
5026 (createGlassPane): Likewise.
5027 (createLayeredPane): Likewise.
5029 2004-06-11 Michael Koch <konqueror@gmx.de>
5031 * javax/swing/SwingUtilities.java
5032 (isLeftMouseButton): Fixed javadoc.
5033 (isMiddleMouseButton): Likewise.
5034 (isRightMouseButton): Likewise.
5036 2004-06-11 Michael Koch <konqueror@gmx.de>
5038 * javax/swing/JScrollPane.java
5039 (serialVersionUID): New field.
5040 (columnHeader): Made protected.
5041 (rowHeader): Likewise.
5042 (lowerLeft): Likewise.
5043 (lowerRight): Likewise.
5044 (upperLeft): Likewise.
5045 (upperRight): Likewise.
5046 (horizontalScrollBar): Likewise.
5047 (horizontalScrollBarPolicy): Likewise.
5048 (verticalScrollBar): Likewise.
5049 (verticalScrollBarPolicy): Likewise.
5050 (viewport): Likewise.
5052 2004-06-11 Michael Koch <konqueror@gmx.de>
5054 * javax/swing/LookAndFeel.java: Fixed javadocs.
5056 2004-06-11 Michael Koch <konqueror@gmx.de>
5058 * javax/swing/JEditorPane.java: Fixed javadocs.
5059 (JEditorPane): Removed redundant call to to this().
5060 (fireHyperlinkUpdate): Implemented.
5062 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5064 * javax/swing/JMenu.java: Fixed file name
5065 in the file comment.
5067 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5069 * javax/swing/JMenu.java: Added javadoc.
5070 (JMenu): Added MenuChangeListener to listen to
5071 ChangeEvents occuring in menu's model.
5072 (insert): Throw IllegalArgumentException if
5073 index is less than 0
5074 (setSelected): Reimplement.
5075 (setPopupMenuVisible): Call menu's model isEnabled()
5076 (setDelay): Throw IllegalArgumentException if
5077 given amount of delay is less than 0.
5078 (createActionComponent): Implemented.
5079 (createActionChangeListener): Implemented.
5080 (addSeparator): Implemented.
5081 (getItem): Throw IllegalArgumentException if index is
5083 (getItemCount): Implemented.
5084 (fireMenuSelected): Changed to use menuEvent.
5085 (fireMenuDeselected): Likewise.
5086 (fireMenuCanceled): Likewise.
5087 (setAccelerator): Changed to throw an error if this
5089 (doClick): Implemented.
5090 (JMenu.ActionChangedListener): New inner class to handle
5091 PropertyChangeEvents occuring in the actions associated with menu.
5092 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
5093 (BasicMenuUI): Added PropertyChangeListener to the menu.
5094 (createChangeListener): Implemented.
5095 (createMenuDragMouseListener): Likewise.
5096 (createMenuKeyListener): Likewise.
5097 (createPropertyChangeListener): Likewise.
5098 (uninstallListeners): Likewise.
5099 (BasicMenuUI.MouseInputHandler): Reimplemented.
5100 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
5101 (BasicMenuUI.ChangeHandler): Likewise.
5102 (BasicMenuUI.MenuDragMouseHandler): Likewise.
5103 (BasicMenuUI.MenuKeyHandler): Likewise.
5105 2004-06-10 David Jee <djee@redhat.com>
5107 * java/awt/MediaTracker.java
5108 (imageUpdate): Only do notifyAll() if the image is complete.
5110 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5112 * javax/swing/JApplet.java:
5113 (getJMenuBar): Made public.
5114 (setJMenuBar): Likewise.
5115 * javax/swing/JFrame.java:
5116 (getJMenuBar): Made public.
5117 (setJMenuBar): Likewise.
5118 * javax/swing/JWindow.java:
5119 (getJMenuBar): Removed.
5120 (setJMenuBar): Removed.
5122 2004-06-10 Michael Koch <konqueror@gmx.de>
5124 * javax/swing/JEditorPane.java
5125 (createEditorKitForContentType): Fixed visibility.
5126 (fireHyperlinkUpdate): Likewise.
5127 (getContentType): Likewise.
5128 (getEditorKit): Likewise.
5129 (getEditorKitForContentType): Likewise.
5130 (getPage): Likewise.
5132 (registerEditorKitForContentTyoe): Likewise.
5133 (replaceSelection): Likewise.
5134 (setContentType): Likewise.
5135 (setEditorKit): Likewise.
5136 (setPage): Likewise.
5138 2004-06-10 Michael Koch <konqueror@gmx.de>
5140 * javax/swing/Timer.java
5141 (Timer): New constructor.
5142 * javax/swing/plaf/basic/BasicProgressBarUI.java
5143 (animationTimer): Don't initialize at construction.
5144 (startAnimationTimer): Added since tag.
5145 (stopAnimationTimer): Likewise.
5146 (installUI): Use new Timer constructor.
5147 * javax/swing/plaf/basic/BasicScrollBarUI.java
5148 (installUI): Likewise.
5149 * javax/swing/plaf/basic/BasicSliderUI.java
5150 (installUI): Likewise.
5152 2004-06-10 Michael Koch <konqueror@gmx.de>
5154 * javax/swing/ButtonGroup.java
5155 (serialVersionUID): Made private.
5156 (buttons): Renamed from v, added javadoc.
5157 (sel): Added javadoc.
5158 (ButtonGroup): Likewise.
5161 (getElements): Likewise.
5162 (getSelection): Likewise.
5163 (setSelected): Likewise.
5164 (isSelected): Likewise.
5165 (getButtonCount): Likewise.
5167 2004-06-10 Michael Koch <konqueror@gmx.de>
5169 * javax/swing/ButtonGroup.java,
5170 javax/swing/ImageIcon.java,
5171 javax/swing/JEditorPane.java,
5172 javax/swing/JRootPane.java,
5173 javax/swing/JTextField.java,
5174 javax/swing/LookAndFeel.java,
5175 javax/swing/plaf/basic/BasicTextUI.java:
5178 2004-06-10 Michael Koch <konqueror@gmx.de>
5180 * javax/swing/text/Style.java: Added javadocs.
5182 2004-06-10 Michael Koch <konqueror@gmx.de>
5184 * javax/swing/JComponent.java
5185 (fireVetoableChange): Removed redundant cast.
5186 * javax/swing/JLabel.java
5187 (getDisabledIcon): Save icon for next call.
5189 2004-06-10 Michael Koch <konqueror@gmx.de>
5191 * javax/swing/KeyStroke.java
5192 (getKeyStroke(char,boolean)): Marked deprecated.
5194 2004-06-10 Michael Koch <konqueror@gmx.de>
5196 * javax/swing/DefaultCellEditor.java,
5197 javax/swing/GrayFilter.java,
5198 javax/swing/event/DocumentEvent.java,
5199 javax/swing/text/JTextComponent.java,
5200 javax/swing/text/MutableAttributeSet.java:
5203 2004-06-10 Michael Koch <konqueror@gmx.de>
5205 * javax/swing/plaf/BorderUIResource.java:
5206 Added serialVersionUID all over.
5208 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
5210 * javax/swing/undo/UndoManager.java: Re-written from scratch.
5212 2004-06-10 Michael Koch <konqueror@gmx.de>
5214 * javax/swing/table/DefaultTableCellRenderer.java
5215 (noFocusBorder): Initialize directly.
5217 2004-06-10 Michael Koch <konqueror@gmx.de>
5219 * javax/swing/plaf/basic/BasicArrowButton.java
5220 (setDirection): Use method argument.
5222 2004-06-10 Michael Koch <konqueror@gmx.de>
5224 * javax/swing/plaf/BorderUIResource.java,
5225 javax/swing/plaf/ComponentUI.java,
5226 javax/swing/undo/CompoundEdit.java,
5227 javax/swing/undo/StateEdit.java:
5228 Fixed javadocs all over.
5230 2004-06-10 Michael Koch <konqueror@gmx.de>
5232 * javax/swing/DefaultButtonModel.java
5233 (ARMED): Made public final, fixed value.
5234 (ENABLED): Likewise.
5235 (PRESSED): Likewise.
5236 (ROLLOVER): Likewise.
5237 (SELECTED): Likewise.
5238 (stateMask): Initialize directly.
5239 (listenerList): Likewise.
5240 (mnemonic): Likewise.
5241 (fireStateChanged): Removed argument, use changeEvent as event.
5242 All places where this method is called are fixed too.
5243 (getActionCommant): Fixed javadoc.
5244 (setGroup): Fixed javadoc.
5245 (getGroup): New method.
5247 2004-06-09 Olga Rodimina <rodimina@redhat.com>
5249 * javax/swing/AbstractButton.java
5250 (AbstractButton): Use init() to initialize the button.
5251 (init): New Method. Initializes AbstractButton.
5252 * javax/swing/JMenuItem.java: Documented.
5253 (JMenuItem): Reimplemented.
5254 (init): Implemented.
5255 (setEnabled): Changed to call super.setEnabled()
5256 (processMouseEvent): Reimplemented.
5257 (fireMenuKeyPressed): Implemented.
5258 (fireMenuKeyReleased): Implemented.
5259 (fireMenuKeyTyped): Implemented.
5260 (menuSelectionChanged): disarm the model if the menu item was
5262 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
5263 (getPath): Change to use ArrayList instead of Vector.
5264 (getPreferredSize): Renamed variable.
5265 (paintMenuItem): Paint margin area of menu item.
5266 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
5267 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
5268 menu item's bounds before clearing the selection.
5270 2004-06-09 David Jee <djee@redhat.com>
5272 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
5273 (GtkTextComponentPeer): Set caret position to 0.
5274 * java/awt/TextComponent.java
5275 (setText): Set caret position to 0.
5276 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5277 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
5278 Handle GtkScrolledWindow separately. Fix signal handler blocking.
5279 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
5281 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5282 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
5285 2004-06-09 Kim Ho <kho@redhat.com>
5287 * Makefile.am: New files
5288 * Makefile.in: Regenerated
5289 * java/awt/Container.java
5290 (getComponentAt): Removed.
5291 * javax/swing/AbstractAction.java
5292 (ENABLED_PROPERTY): New property.
5293 (putValue): Fire PropertyChangeEvents.
5294 (setEnabled): ditto.
5295 (firePropertyChange): Javadoc and implement
5297 * javax/swing/AbstractButton.java
5298 (setAction): Don't create PropertyChangeListener
5299 if new Action is null.
5300 (setIcon): Don't set icon till after comparing
5302 (configurePropertiesFromAction): Check mnemonic
5303 key before calling intValue().
5304 (createActionPropertyChangeListener): Check
5305 properties rather than bulk change.
5306 * javax/swing/DefaultDesktopManager.java:
5308 * javax/swing/DesktopManager.java:
5310 * javax/swing/JComponent.java
5311 (fireVetoableChange): Implement.
5312 (paintImmediately): Use root component.
5313 * javax/swing/JDesktopPane.java: Implement
5314 * javax/swing/JInternalFrame.java: Implement
5315 * javax/swing/JLabel.java
5316 (getDisabledIcon): Return grayscaled icon if
5317 no disabled icon specified.
5318 * javax/swing/JMenuBar.java
5319 (getComponentAtIndex): Use getComponent
5320 * javax/swing/JOptionPane.java
5321 (getDesktopPaneForComponent): Use SwingUtilities'
5323 (getFrameForComponent): ditto.
5324 * javax/swing/JSplitPane.java
5325 (remove): Use getComponent.
5326 * javax/swing/SwingUtilities.java
5327 (convertPoint): Implement.
5328 * javax/swing/plaf/basic/BasicButtonUI.java
5329 (paintButtonNormal): Check opaqueness before
5331 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
5333 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
5335 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
5337 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
5339 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5340 Change InternalFrame and Desktop colors.
5342 2004-06-09 David Jee <djee@redhat.com>
5344 * java/awt/Container.java
5345 (remove): Do not set component to invisible.
5347 2004-06-09 Michael Koch <konqueror@gmx.de>
5349 * javax/swing/tree/DefaultMutableTreeNode.java
5350 (getLeafCount): Renamed enum to e.
5352 2004-06-09 Michael Koch <konqueror@gmx.de>
5354 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5355 (positionForMouseEvent): Removed redundant semicolon.
5356 (continueDrag): Use method arguments.
5358 2004-06-09 Michael Koch <konqueror@gmx.de>
5360 * javax/swing/border/TitledBorder.java,
5361 javax/swing/filechooser/FileSystemView.java,
5362 javax/swing/plaf/basic/BasicButtonListener.java,
5363 javax/swing/plaf/basic/BasicGraphicsUtils.java,
5364 javax/swing/plaf/basic/BasicLabelUI.java,
5365 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
5366 javax/swing/plaf/basic/BasicScrollBarUI.java,
5367 javax/swing/plaf/basic/BasicScrollPaneUI.java,
5368 javax/swing/plaf/basic/BasicSliderUI.java,
5369 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
5370 javax/swing/plaf/basic/BasicToggleButtonUI.java,
5371 javax/swing/table/JTableHeader.java,
5372 javax/swing/text/AbstractDocument.java,
5373 javax/swing/text/DefaultCaret.java,
5374 javax/swing/text/StyledEditorKit.java,
5375 javax/swing/tree/DefaultTreeCellEditor.java:
5376 Reworked import statements.
5378 2004-06-08 Graydon Hoare <graydon@redhat.com>
5380 * javax/swing/Box.java: Temporarily comment out code
5381 broken due to visibility bug.
5383 2004-06-09 Michael Koch <konqueror@gmx.de>
5385 * javax/swing/ImageIcon.java
5386 (ImageIcon): Added missing constructor.
5388 2004-06-08 Michael Koch <konqueror@gmx.de>
5390 * javax/swing/JToggleButton.java
5391 (JToggleButton): New constructor.
5392 (getAccessibleContext): Moved documentation into javadoc.
5393 (getUIClassID): Likewise.
5395 2004-06-08 Michael Koch <konqueror@gmx.de>
5397 * javax/swing/AbstractButton.java
5398 (getDisabledIcon): Create disabled icon if none exists yet.
5400 2004-06-08 Michael Koch <konqueror@gmx.de>
5402 * javax/swing/plaf/basic/BasicLookAndFeel.java
5403 (initClassDefaults): Added FormattedTextFieldUI.
5404 (loadResourceBundle): Renamed enum to e.
5406 2004-06-08 Michael Koch <konqueror@gmx.de>
5408 * javax/swing/plaf/basic/BasicButtonUI.java
5409 (paintIcon): Simplified.
5410 (paintText): Paint disabled button correctly.
5412 2004-06-08 Michael Koch <konqueror@gmx.de>
5414 * javax/swing/JComponent.java
5415 (createToolTip): Use official JToolTip API.
5417 2004-06-08 Michael Koch <konqueror@gmx.de>
5419 * javax/swing/JToolTip.java
5420 (JToolTip): No arguments in API.
5421 (setTipText): New method.
5423 2004-06-08 Michael Koch <konqueror@gmx.de>
5425 * javax/swing/SwingUtilities.java
5426 (isLeftMouseButton): New method.
5427 (isMiddleMouseButton): New method.
5428 (isRightMouseButton): New method.
5430 2004-06-08 Michael Koch <konqueror@gmx.de>
5432 * javax/swing/AbstractButton.java,
5433 javax/swing/CellRendererPane.java,
5434 javax/swing/JCheckBoxMenuItem.java,
5435 javax/swing/JColorChooser.java,
5436 javax/swing/JComboBox.java,
5437 javax/swing/JComponent.java,
5438 javax/swing/JDesktopPane.java,
5439 javax/swing/JFileChooser.java,
5440 javax/swing/JMenu.java,
5441 javax/swing/JMenuItem.java,
5442 javax/swing/JOptionPane.java,
5443 javax/swing/JPasswordField.java,
5444 javax/swing/JPopupMenu.java,
5445 javax/swing/JProgressBar.java,
5446 javax/swing/JRadioButtonMenuItem.java,
5447 javax/swing/JScrollBar.java,
5448 javax/swing/JSeparator.java,
5449 javax/swing/JSlider.java,
5450 javax/swing/JSplitPane.java,
5451 javax/swing/JTabbedPane.java,
5452 javax/swing/JTextField.java,
5453 javax/swing/JToolBar.java,
5454 javax/swing/text/JTextComponent.java:
5455 Fixed all constructors of accessibility classes.
5457 2004-06-08 Michael Koch <konqueror@gmx.de>
5459 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
5462 2004-06-08 Michael Koch <konqueror@gmx.de>
5464 * javax/swing/Box.java
5465 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
5466 (AccessibleBoxFiller.serialVersionUID): New member variable.
5467 * javax/swing/DefaultButtonModel.java
5468 (stateMask): Made protected.
5469 (listenerList): Likewise.
5470 (changeEvent): Likewise.
5472 (mnemonic): Likewise.
5473 (actionCommand): Likewise.
5474 (getListeners): New method.
5475 (getActionListeners): New method.
5476 (getItemListeners): New method.
5477 (getChangeListeners): New method.
5478 (fireItemStateChanged): Simplified.
5479 (fireActionPerformed): Simplified.
5480 (fireStateChanged): Simplified.
5481 * javax/swing/JFrame.java
5482 (JFrame): Implements WindowContants.
5483 (HIDE_ON_CLOSE): Removed.
5484 (EXIT_ON_CLOSE): Removed.
5485 (DISPOSE_ON_CLOSE): Removed.
5486 (DO_NOTHING_ON_CLOSE): Removed.
5487 (processWindowEvent): Exit with code 0.
5488 (setDefaultCloseOperation): Do security check before setting value.
5489 * javax/swing/JOptionPane.java
5490 (message): Initialize only in constructor.
5491 * javax/swing/JToolTip.java: Removed unused imports.
5492 * javax/swing/JViewport.java
5493 (serialVersionUID): New member variable.
5494 (SIMPLE_SCROLL_MODE): Made final, fixed value.
5495 (BLIT_SCROLL_MODE): Likewise.
5496 (BACKINGSTORE_SCROLL_MODE): Likewise.
5497 (scrollUnderway): Made protected.
5498 (isViewSizeSet): Likewise.
5499 * javax/swing/ListModel.java: Fixed javadoc.
5500 * javax/swing/Popup.java: Likewise.
5501 * javax/swing/RepaintManager.java
5502 (paintDirtyRegions): Don't use internal classes of
5503 java.util.AbstractMap.
5504 * javax/swing/ScrollPaneConstants.java: Reindented.
5505 * javax/swing/ScrollPaneLayout.java
5506 (viewport): Made protected.
5507 (verticalScrollBar): Made protected, renamed to vsb.
5508 (horizontalScrollBar): Made protected, renamed to hsb.
5509 (rowHeader): Made protected, renamed to rowHead.
5510 (columnHeader): Made protected, renamed to colHead.
5511 (lowerLeft): Made protected.
5512 (lowerRight): Made protected.
5513 (upperLeft): Made protected.
5514 (upperRight): Made protected.
5515 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
5516 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
5518 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
5520 * java/awt/MediaTracker.java (imageUpdate): Only set status to
5521 LOADING if flags has SOMEBITS set.
5523 2004-06-07 Michael Koch <konqueror@gmx.de>
5525 * javax/swing/AbstractButton.java: Reorganized imports.
5526 * javax/swing/ActionMap.java: Likewise.
5527 * javax/swing/DefaultButtonModel.java: Likewise.
5528 * javax/swing/DefaultListModel.java: Likewise.
5529 * javax/swing/ImageIcon.java: Likewise.
5530 (serialVersionUID): New member variable.
5531 * javax/swing/JComboBox.java: Reorganized imports.
5532 * javax/swing/JComponent.java: Likewise.
5533 (ui): Made protected.
5534 (listenerList): Made protected.
5535 (TOOL_TIP_TEXT_KEY): New constant.
5536 (scrollRectToVisible): Removed redundant null check.
5537 * javax/swing/JFrame.java: Reorganized imports.
5538 * javax/swing/JInternalFrame.java: Reorganized imports.
5539 * javax/swing/JProgressBar.java: Likewise.
5540 * javax/swing/JRootPane.java: Likewise.
5541 * javax/swing/JScrollBar.java: Likewise.
5542 * javax/swing/JSeparator.java: Likewise.
5543 * javax/swing/JSlider.java: Likewise.
5544 * javax/swing/JTabbedPane.java: Likewise.
5545 * javax/swing/JTextField.java: Likewise.
5546 * javax/swing/JToolBar.java: Likewise.
5547 * javax/swing/JTree.java: Likewise.
5548 * javax/swing/JViewport.java: Likewise.
5549 * javax/swing/JWindow.java: Likewise.
5550 * javax/swing/KeyStroke.java: Likewise.
5551 * javax/swing/LookAndFeel.java: Likewise.
5552 * javax/swing/MenuSelectionManager.java: Likewise.
5553 * javax/swing/SwingUtilities.java: Likewise.
5554 * javax/swing/Timer.java: Likewise.
5555 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
5556 * javax/swing/JList.java
5557 (HORIZONTAL_WRAP): Made final, fixed value.
5558 (VERTICAL): Likewise.
5559 (VERTICAL_WRAP): Likewise.
5561 2004-06-07 Michael Koch <konqueror@gmx.de>
5563 * javax/swing/AbstractButton.java
5564 (serialVersionUID): New member variable.
5565 (AccessibleAbstractButton.serialVersionUID): Likewise.
5566 (AbstractButton): Made public.
5567 * javax/swing/Box.java
5568 (AccessibleBox.serialVersionUID): New member variable.
5569 (Filler.serialVersionUID): Likewise.
5570 * javax/swing/DefaultListSelectionModel.java
5571 (serialVersionUID): Likewise.
5572 * javax/swing/JApplet.java
5573 (serialVersionUID): Likewise.
5574 * javax/swing/JCheckBox.java
5575 (serialVersionUID): Likewise.
5576 * javax/swing/JCheckBoxMenuItem.java
5577 (serialVersionUID): Likewise.
5578 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
5579 * javax/swing/JColorChooser.java
5580 (serialVersionUID): Likewise.
5581 (AccessibleJColorChooser.serialVersionUID): Likewise.
5582 * javax/swing/JComponent.java
5583 (serialVersionUID): Made private.
5584 (AccessibleJComponent.serialVersionUID): New member variable.
5585 * javax/swing/JDesktopPane.java
5586 (serialVersionUID): Likewise.
5587 * javax/swing/JDialog.java
5588 (serialVersionUID): Likewise.
5589 * javax/swing/JFormattedTextField.java
5590 (serialVersionUID): Fixed value.
5591 * javax/swing/JFrame.java
5592 (serialVersionUID): New member variable.
5593 (getDefaultCloseOpertation): Made public.
5594 * javax/swing/JLayeredPane.java
5595 (serialVersionUID): Likewise.
5596 (LAYER_PROPERTY): Made final, fixed value.
5597 (JLayeredPane): Made public.
5598 * javax/swing/JMenu.java
5599 (AccessibleJMenu.serialVersionUID): New member variable.
5600 (WinListener.serialVersionUID): Likewise.
5601 * javax/swing/JMenuBar.java
5602 (serialVersionUID): Likewise.
5603 (getComponentAtIndex): Added @deprecated tag.
5604 * javax/swing/JMenuItem.java
5605 (serialVersionUID): New member variable.
5606 (AccessibleJMenuItem.serialVersionUID): Likewise.
5607 * javax/swing/JOptionPane.java
5608 (serialVersionUID): Likewise.
5609 (AccessibleJOptionPane.serialVersionUID): Likewise.
5610 * javax/swing/JPopupMenu.java
5611 (serialVersionUID): Likewise.
5612 (AccessibleJPopupMenu.serialVersionUID): Likewise.
5613 (getPopupMenuListeners): New method.
5614 (getComponentAtIndex): Added @deprecated tag.
5615 * javax/swing/JProgressBar.java
5616 (serialVersionUID): New member variable.
5617 (AccessibleJProgressBar.serialVersionUID): Likewise.
5618 * javax/swing/JRadioButton.java
5619 (serialVersionUID): Likewise.
5620 * javax/swing/JRadioButtonMenuItem.java
5621 (serialVersionUID): Likewise.
5622 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
5623 * javax/swing/JScrollBar.java
5624 (serialVersionUID): Likewise.
5625 (AccessibleJScrollBar.serialVersionUID): Likewise.
5626 * javax/swing/JSeparator.java
5627 (serialVersionUID): Likewise.
5628 (AccessibleJSeparator.serialVersionUID): Likewise.
5629 * javax/swing/JSlider.java: Fixed javadocs.
5630 (AccessibleJSlider.serialVersionUID): New member variable.
5631 * javax/swing/JSplitPane.java: Added copyright statement.
5632 (serialVersionUID): New member variable.
5633 (AccessibleJSplitPane.serialVersionUID): Likewise.
5634 * javax/swing/JTabbedPane.java
5635 (serialVersionUID): Likewise.
5636 (AccessibleJTabbedPane.serialVersionUID): Likewise.
5637 (ModelListener.serialVersionUID): Likewise.
5638 (ModelListener.ModelListener): New constructor.
5639 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
5640 (WRAP_TAB_LAYOUT): Likewise.
5641 * javax/swing/JTable.java
5642 (serialVersionUID): New member variable.
5643 * javax/swing/JToggleButton.java
5644 (serialVersionUID): Likewise.
5645 (ToggleButtonModel): Made static.
5646 (ToggleButtonModel.serialVersionUID): New member variable.
5647 * javax/swing/JToolTip.java
5648 (serialVersionUID): Likewise.
5649 * javax/swing/JTree.java
5650 (serialVersionUID): Likewise.
5651 * javax/swing/JWindow.java
5652 (serialVersionUID): Likewise.
5653 * javax/swing/Timer.java
5654 (serialVersionUID): Likewise.
5656 2004-06-06 Michael Koch <konqueror@gmx.de>
5658 * javax/swing/SwingConstants.java
5659 (NEXT): New constant.
5660 (PREVIOUS): Likewise.
5661 * javax/swing/UIManager.java
5662 (LookAndFeel): Made public.
5663 (LookAndFeel.getClassName): Likewise.
5664 (LookAndFeel.getName): Likewise.
5666 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5668 * javax/swing/JCheckBoxMenuItem.java:
5670 * javax/swing/JMenu.java: Likewise.
5671 * javax/swing/JMenuBar.java: Likewise.
5672 * javax/swing/JMenuItem.java: Likewise.
5673 * javax/swing/JPopupMenu.java: Likewise.
5674 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5675 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5676 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5677 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5678 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5679 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5680 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5682 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5684 * javax/swing/plaf/basic/BasicMenuUI.java:
5685 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5686 Call getPath() from super class instead.
5688 2004-05-31 David Jee <djee@redhat.com>
5690 * java/awt/Container.java
5691 (remove): Set component visibility to false after removing it.
5693 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
5695 * java/awt/Component.java (getForeground): Return SystemColor if
5697 (getBackground): Likewise.
5699 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5700 (item_highlighted): New function.
5701 (connectSignals): Set item_highlighted as list's select
5704 * java/applet/Applet.java: Revert changes from 2004-04-29,
5705 2004-03-15 and 2004-03-14.
5707 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5708 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
5711 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
5712 "Dialog" as the default font.
5713 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
5715 * java/awt/Component.java (getFont): Return "Dialog" font by
5717 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
5718 Multiply size argument to pango_font_description_set_size by the
5719 DPI conversion factor rather than by PANGO_SCALE.
5720 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
5721 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
5722 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
5723 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
5724 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
5725 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
5726 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
5727 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
5728 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
5729 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5730 Divide baseline y coordinate by DPI conversion factor rather
5731 than by PANGO_SCALE.
5732 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
5733 (area_prepared): Fix typo.
5734 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
5735 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
5736 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
5737 (dpi_conversion_factor): New global variable.
5738 (init_dpi_conversion_factor): New function to calculate and
5739 track DPI conversion factor.
5740 (dpi_changed_cb): New callback.
5741 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
5743 2004-05-27 David Jee <djee@redhat.com>
5745 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5746 (getGraphics): Return a new GdkGraphics instance.
5747 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5748 (getGraphics): Call super.getGraphics().
5750 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5752 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5753 (setNativeBounds): Clamp width and height values to >= 0.
5755 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5756 (find_fg_color_widget): Handle GtkOptionMenu specially.
5758 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5759 (pre_event_handler): Only post configure events to visible
5762 2004-05-26 David Jee <djee@redhat.com>
5764 * java/awt/BorderLayout.java
5765 (layoutContainer): Fix size calculations.
5767 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5769 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5770 (window_wm_protocols_filter): Remove function.
5771 (create): Remove filter that removes WM_TAKE_FOCUS client
5774 2004-06-17 Anthony Green <green@redhat.com>
5776 * java/util/zip/ZipFile.java (getInputStream): Return null if
5779 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
5780 directory contents to the class path.
5782 2004-06-15 Andrew Haley <aph@redhat.com>
5784 * java/lang/natSystem.cc (getenv0): Don't assume environment
5785 variable is Latin 1 coded.
5787 2004-06-14 Andreas Jaeger <aj@suse.de>
5789 * configure.in: Support --enable-version-specific-runtime-libs.
5790 * configure: Regenerated.
5792 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
5794 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
5795 to pass ClassLoader argument.
5796 * java/util/GregorianCalendar.java: Likewise.
5797 * java/util/Currency.java: Likewise.
5798 * java/text/BreakIterator.java: Likewise.
5799 * java/text/Collator.java: Likewise.
5800 * java/text/DateFormat.java: Likewise.
5801 * java/text/DateFormatSymbols.java: Likewise.
5802 * java/text/DecimalFormatSymbols.java: Likewise.
5803 * java/text/NumberFormat.java: Likewise.
5804 * java/awt/Window.java: Likewise.
5806 2004-06-14 Andrew Haley <aph@redhat.com>
5808 * java/lang/System.java: (getenv0): New method.
5809 (getenv): Add security check. Do the right thing.
5810 * java/lang/natSystem.cc (getenv0): New method.
5812 2004-06-12 Mark Wielaard <mark@klomp.org>
5814 * javax/swing/RepaintManager.java
5815 (paintDirtyRegions): Use entrySet(), not values().
5817 2004-06-10 Mark Wielaard <mark@klomp.org>
5819 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
5822 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
5824 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
5825 when we already know the answer.
5826 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
5827 (setStartRule,setEndRule): Don't take abs of day number.
5828 (getOffset): Clarify docs. Add argument checks.
5829 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
5830 (equals,hasSameRules,toString,readObject): Use startTimeMode and
5833 2004-06-10 Tom Tromey <tromey@redhat.com>
5835 * interpret.cc (run): Handle wide fload.
5837 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
5839 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
5841 2004-06-05 Michael Koch <konqueror@gmx.de>
5843 * javax/swing/SwingConstants.java
5844 (NEXT): New constant.
5845 (PREVIOUS): Likewise.
5847 2004-06-05 Michael Koch <konqueror@gmx.de>
5849 * javax/swing/UIManager.java
5850 (LookAndFeel): Made public.
5851 (LookAndFeel.getName): Likewise.
5852 (LookAndFeel.getClassName): Likewise.
5854 2004-06-03 Michael Koch <konqueror@gmx.de>
5856 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5857 (requestFocus): Revert last changes.
5858 (gtkRequestFocus): Removed.
5859 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5860 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5862 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
5863 Reverted last patch.
5864 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5865 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
5866 Reverted comment change.
5868 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5870 * javax/swing/JCheckBoxMenuItem.java:
5872 * javax/swing/JMenu.java: Likewise.
5873 * javax/swing/JMenuBar.java: Likewise.
5874 * javax/swing/JMenuItem.java: Likewise.
5875 * javax/swing/JPopupMenu.java: Likewise.
5876 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5877 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5878 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5879 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5880 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5881 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5882 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5884 2004-06-01 Tom Tromey <tromey@redhat.com>
5886 * java/io/ObjectStreamField.java: Cleaned up imports.
5888 2004-06-01 Michael Koch <konqueror@gmx.de>
5890 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
5892 2004-06-01 Mark Wielaard <mark@klomp.org>
5894 * java/io/Writer.java (Writer(Object)): Fixed API doc.
5896 2004-06-01 Michael Koch <konqueror@gmx.de>
5898 * java/security/Security.java
5899 (insertProviderAt): Use equals() instead of ==.
5900 (removeProvicer): Likewise.
5901 (getProvider): Likewise.
5902 * java/security/Signature.java
5903 (sign): Don't set state to UNINITIALIZED.
5906 2004-06-01 Mark Wielaard <mark@klomp.org>
5908 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
5909 Implement by calling gtkRequestFocus.
5910 (gtkRequestFocus): New native method.
5911 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5912 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
5914 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5916 (filter_expose_event_handler):
5918 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5919 (menu_pos): Mark static.
5921 2004-06-01 Michael Koch <konqueror@gmx.de>
5923 * java/text/CollationElementIterator.java,
5924 java/text/CollationKey.java,
5925 java/text/RuleBasedCollator.java: New versions from GNU classpath.
5926 * testsuite/libjava.mauve/xfails: Removed all
5927 java.text.CollationElementIterator tests.
5929 2004-06-01 Michael Koch <konqueror@gmx.de>
5931 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
5933 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
5934 Java 1.5 keyword usage.
5936 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5938 * javax/swing/plaf/basic/BasicMenuUI.java:
5939 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5940 Call getPath() from super class instead.
5942 2004-05-31 Michael Koch <konqueror@gmx.de>
5944 * java/io/SequenceInputStream.java:
5945 Rename enum to e because enum is a keyword in Java 1.5.
5947 2004-05-31 Michael Koch <konqueror@gmx.de>
5949 * gnu/java/rmi/rmic/CompilerProcess.java:
5950 Fixed javadoc to by XHTML compliant.
5952 2004-05-30 Mark Wielaard <mark@klomp.org>
5954 * java/awt/Toolkit.java (loadSystemColors): Implement.
5956 2004-05-30 Michael Koch <konqueror@gmx.de>
5958 * java/lang/System.java: Reordered imports.
5960 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
5962 * java/text/DecimalFormat.java
5963 (parse): Fixed parsing of decimal strings. Number of maximum
5964 digits to be read should now work.
5965 * java/text/SimpleDateFormat.java
5966 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
5967 formatter. This fixes DateFormatTest.
5969 2004-05-30 Michael Koch <konqueror@gmx.de>
5971 * java/nio/Buffer.java
5972 (limit): Fixed off by one error.
5973 * java/nio/CharBuffer.java
5974 (wrap): Fixed arguments, added javadocs.
5976 2004-05-30 Michael Koch <konqueror@gmx.de>
5978 * gnu/java/beans/BeanInfoEmbryo.java,
5979 java/awt/im/InputContext.java,
5980 javax/swing/tree/DefaultMutableTreeNode.java:
5981 Rename enum to e because enum is a keyword in Java 1.5.
5983 2004-05-30 Michael Koch <konqueror@gmx.de>
5985 * gnu/java/math/MPN.java,
5986 java/awt/geom/Arc2D.java:
5987 Fixed javadocs all over.
5989 2004-05-30 Michael Koch <konqueror@gmx.de>
5991 * java/awt/DefaultKeyboardFocusManager.java
5992 (dispatchEvent): Call method to get key event dispatchers.
5993 (dispatchKeyEvent): Call method to get key event post processors.
5994 * javax/swing/JComponent.java
5995 (listenerList): Made protected.
5996 * javax/swing/JOptionPane.java
5997 (message): Don't initialize.
5998 (JOptionPane): Set message text.
5999 * javax/swing/JPopupMenu.java
6000 (show): Fixed typo in argument name.
6001 * javax/swing/RepaintManager.java
6002 (paintDirtyRegions): Use public API of java.util.Map.
6003 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
6004 (positionForMouseEvent): Removed redundant ';'.
6005 (continueDrag): Use method arguments.
6007 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
6009 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
6012 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
6014 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
6016 * gnu/gcj/RawDataManaged.java: New file.
6017 * java/lang/Thread.java (data): Declare as RawDataManaged.
6018 * java/lang/natThread.cc (init_native): Cast natThread data to
6019 RawDataManaged, not jobject.
6020 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
6021 * Makefile.in: Rebuilt.
6023 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
6025 * java/util/SimpleTimeZone.java: Reverting my last change until I
6026 can fix it properly.
6028 2004-05-27 Michael Koch <konqueror@gmx.de>
6030 * javax/swing/JPopupMenu.java
6031 (isVisible): Do not use visible directly.
6032 (setVisible): Likewise.
6033 * javax/swing/JWindow.java
6034 (JWindow): call accessible constructor.
6035 * javax/swing/RepaintManager.java
6036 (paintDirtyRegions): Use public methods to obtain iterator.
6038 2004-05-25 David Jee <djee@redhat.com>
6040 * java/awt/Container.java
6041 (remove): Set component's parent to null only after we removed the
6042 component from its parent's layout manager.
6044 2004-05-25 David Jee <djee@redhat.com>
6046 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6047 (GtkComponentPeer): Set bounds regardless of whether awtComponent
6049 * gnu/java/awt/peer/gtk/GtkListPeer.java
6050 (getSize): Change native method declaration.
6051 (minimumSize): Pass visible row count into getSize().
6052 (preferredSize): Likewise.
6053 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
6054 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
6055 natural size. Use visible row count to determine the final height
6058 2004-05-21 Graydon Hoare <graydon@redhat.com>
6060 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6061 (setClip): Minor correction to order of operations.
6063 * javax/swing/JScrollPane.java: Extend sketchy implementation.
6064 * javax/swing/ScrollPaneLayout.java: Likewise.
6065 * javax/swing/JViewPort.java: Likewise.
6066 * javax/swing/ViewportLayout.java: Likewise.
6068 * javax/swing/JComponent.java: Rewrite.
6069 * javax/swing/RepaintManager.java: Likewise.
6071 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
6072 * javax/swing/JList.java
6073 (setSelectedIndices):
6074 (getSelectedIndices):
6075 (getSelectedValues): New functions.
6076 (getPreferredScrollableViewportSize): Return preferred size.
6077 (getScrollableUnitIncrement):
6078 (getScrollableBlockIncrement): Initial implementations.
6079 * javax/swing/JRootPane.java: Clean up slightly.
6084 (isValidateRoot): Add overrides from JComponent.
6085 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
6086 * javax/swing/UIManager.java (getDimension): Return the dimension.
6088 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
6089 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
6090 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
6091 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
6092 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
6093 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
6094 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
6095 * javax/swing/plaf/basic/BasicRootPaneUI.java:
6096 Likewise, and set background.
6097 * javax/swing/plaf/basic/BasicListUI.java:
6098 Likewise, and improve a bit.
6099 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6100 Likewise, and adjust calculations.
6101 * javax/swing/plaf/basic/BasicViewportUI.java:
6102 Likewise, and improve a bit.
6103 * javax/swing/plaf/basic/BasicLookAndFeel.java
6104 (Button.margin): Shrink.
6106 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
6107 Hack to set horizontal always, workaround pango.
6109 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
6110 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6111 Synchronize more often, check cairo status after ops,
6112 handle changes to cairo pattern API, check for disposal.
6114 2004-05-21 Olga Rodimina <rodimina@redhat.com>
6116 * javax/swing/plaf/basic/BasicMenuItemUI.java:
6117 (BasicMenuItemUI): Create propertyChangeListener.
6118 (getPath):Implemented.
6119 (installListeners): Add propertyChangeListener to menuItem.
6120 (uninstallListeners): Remove propertyChangeListener from menuItem.
6121 (update): Implemented.
6122 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
6123 (mouseEntered): Take insets of popup menu into account when
6124 calculating position of popup menu.
6126 2004-05-18 Olga Rodimina <rodimina@redhat.com>
6128 * Makefile.am: Added new file.
6129 * Makefile.in: Regenerate.
6130 * javax/swing/JMenuBar.java:
6131 Started implementation.
6132 * javax/swing/JPopupMenu.java:
6133 (setVisible): Fixed location of lightweight/mediumweight
6135 (show): Fixed location of PopupMenu.
6136 * javax/swing/plaf/basic/BasicMenuBarUI.java:
6137 New file. UI Delegate for JMenuBar.
6138 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
6139 (mouseEntered): Corrected position of the submenu.
6141 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
6143 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
6144 to _gtk_accel_group_attach.
6145 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
6148 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
6149 package access. Don't override setFont.
6150 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
6151 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
6152 gtkWidgetRequestFocus package access.
6153 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
6155 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
6156 Give gtkWidgetRequestFocus package access.
6157 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
6158 gtkWidgetRequestFocus package access. Don't override setFont.
6159 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
6161 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6162 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
6164 (gtkSetFont): Likewise.
6165 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
6167 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6168 (gtkSetFont): Whitespace fix.
6170 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6171 (gtkWidgetSetUsize): Remove method.
6173 2004-05-18 David Jee <djee@redhat.com>
6175 * java/awt/image/MemoryImageSource.java
6176 (newPixels(int,int,int,int,boolean)): Set only the specified
6177 rectangle of pixels.
6178 (newPixels(byte[],ColorModel,int,int)): Implement.
6179 (newPixels(int[],ColorModel,int,int)): Implement.
6181 2004-05-18 Olga Rodimina <rodimina@redhat.com>
6183 * Makefile.am: Added new file.
6184 * Makefile.in: Regenerate.
6185 * javax/swing/JMenu.java: Started
6187 * javax/swing/JPopupMenu.java:
6188 (insert): If specified index is -1, then
6189 add component at the end.
6190 (isPopupTrigger): Reimplemented.
6191 (JPopupMenu.LightWeightPopup): setBounds
6192 of the lightWeightPopup before adding it
6194 (javax/swing/plaf/basic/BasicIconFactory.java):
6195 (getMenuArrowIcon): Implemented.
6196 * javax/swing/plaf/basic/BasicMenuItemUI.java:
6197 (getPreferredSize): Add size of the arrow icon
6198 if this menu item is instance of JMenu.
6199 (paintMenuItem): Paint arrow icon if this
6200 menu item is a submenu.
6201 * javax/swing/plaf/basic/BasicMenuUI.java:
6202 New File. UI Delegate for JMenu.
6204 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
6206 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
6207 Post KEY_TYPED events.
6208 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6209 (generates_key_typed_event): Remove function.
6211 2004-05-17 Olga Rodimina <rodimina@redhat.com>
6213 * javax/swing/JRootPane.java
6214 (JRootPane.RootLayout): Reimplemented to
6215 set bounds of contentPane and menuBar.
6216 (setJMenuBar): Add menu bar to the layered pane.
6217 (createLayeredPane): Set layout of layeredPane
6219 * javax/swing/JLayeredPane.java:
6220 (addImpl): Calculate index of the component in the
6221 layeredPane according to the specified position within
6224 2004-05-17 David Jee <djee@redhat.com>
6226 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6227 (setPixels): Change color model to the default model after
6229 * java/awt/image/MemoryImageSource.java
6230 (newPixels): Set only the specified rectangle of pixels.
6232 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
6234 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
6235 -l-java-beans -l-javax-accessibility -l-javax-swing.
6237 * java/awt/AWTEvent.java (toString): Print source's name rather
6238 than the source itself.
6240 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
6242 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
6244 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
6245 (gdk_color_to_java_color): New function.
6246 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
6248 2004-05-12 David Jee <djee@redhat.com>
6250 * java/awt/image/RGBImageFilter.java:
6251 Initialize origmodel as null.
6252 (makeColor): Fix pixel component order.
6253 (filterRGBPixels): Fix pixel iteration.
6254 (setPixels): Add extra checks for index color model. Convert pixels
6255 to default color model if necessary.
6256 (convertColorModelToDefault): New override method for byte pixels.
6257 (convertColorModelToDefault): For int pixels, fix pixel iteration.
6258 (makeColorbyDefaultCM): New override method for byte pixels.
6259 (makeColorbyDefaultCM): For int pixel, add color model as argument.
6260 (makeColor): Fix pixel component order.
6262 2004-05-11 Kim Ho <kho@redhat.com>
6264 * javax/swing/Box.java:
6265 Comment out more parts of Box.Filler.
6267 2004-05-11 Kim Ho <kho@redhat.com>
6269 * javax/swing/Box.java:
6270 Remove reference to AccessibleAWTComponent so
6273 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6275 * gnu/java/awt/peer/gtk/GtkListPeer.java,
6276 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
6277 implementation of list peer to use GtkTreeView instead of
6278 deprecated GtkCList.
6280 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
6282 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6283 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
6284 (handleEvent): Remove keyChar argument to
6285 gtkWidgetDispatchKeyEvent calls.
6286 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
6288 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6289 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
6290 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
6293 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
6295 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6296 (gtkWidgetRequestFocus): Mark protected.
6297 (GtkComponentPeer): Only set the peer's bounds if its component
6299 * java/awt/Component.java (static): Set the default keyboard
6301 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
6302 requestFocusInWindow(temporary)): Don't request focus if the
6303 component is not showing. Get tree lock before traversing
6304 component hierarchy.
6305 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
6306 Only set the global focus owner if it is not a Window.
6307 (processKeyEvent): Consume keystrokes associated with the focus
6308 traversal keystroke.
6309 (focusPreviousComponent, focusNextComponent, upFocusCycle,
6310 downFocusCycle): Call requestFocusInWindow instead of
6312 * java/awt/EventDispatchThread.java (run): Move setting of
6313 default keyboard focus manager to Component.java.
6314 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6315 (awt_keycode_to_keysym): New function.
6316 (gtkWidgetDispatchKeyEvent): Finish implementation.
6317 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6318 (pre_event_handler): Add FIXME comment.
6320 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
6321 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6322 (gtkWidgetRequestFocus): New method.
6323 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
6324 disable Tab and Shift-Tab keystrokes.
6325 (addNotify, appendText, insertText, replaceText): Simplify peer
6327 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
6328 (connectSignals): Remove connections to "commit" signals.
6329 Remove C++-style comments.
6331 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
6332 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6333 (handleEvent): Activate GTK button when the space bar key is
6335 (gtkActivate): New method.
6337 2004-05-06 David Jee <djee@redhat.com>
6339 * java/awt/image/CropImageFilter.java
6340 (setPixels): Implement for byte array pixels.
6341 * java/awt/image/ReplicateScaleFilter.java
6342 (setPixels): Implement for byte array pixels.
6343 (replicatePixels): Overload for byte array pixels.
6345 2004-05-06 Kim Ho <kho@redhat.com>
6347 * javax/swing/Box.java:
6348 (getAccessibleContext): Return an instance of the
6351 2004-05-05 David Jee <djee@redhat.com>
6353 * gnu/java/awt/peer/gtk/GdkGraphics.java
6354 (drawImage): When component is null, use SystemColor.window as
6355 the default bgcolor.
6356 * gnu/java/awt/peer/gtk/GtkImage.java
6357 (setPixels): We can avoid iterating through the pixel rows only
6359 * java/awt/Image.java
6360 (getScaledInstance): Partially implement.
6361 * java/awt/image/CropImageFilter.java
6362 (setProperties): Fix "filter" property.
6363 (setPixels): Implement.
6364 * java/awt/image/ReplicateScaleFilter.java
6365 (setDimensions): Use scaled dimensions.
6366 (setPixels): Implement.
6367 (replicatePixels): New method.
6369 2004-05-05 David Jee <djee@redhat.com>
6371 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6372 (convertPixels): If either pixels or model is null, return null.
6373 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
6374 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
6375 is null, do nothing and return.
6377 2004-05-03 Kim Ho <kho@redhat.com>
6379 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
6380 (getGraphics): Like GtkFramePeer, the Graphics
6381 object needs to be translate to account for
6383 (postMouseEvent): New method. Account for
6385 (postExposeEvent): ditto.
6386 * javax/swing/Box.java: Stubbed.
6387 * javax/swing/JDialog.java: Ran through jalopy
6389 (JDialog): Call SwingUtilities' getOwnerFrame
6391 (setLayout): Check isRootPaneCheckingEnabled
6392 * javax/swing/JOptionPane.java: Re-implemented.
6393 * javax/swing/SwingUtilities.java:
6394 (getOwnerFrame): Static method to grab a default
6395 owner frame for Dialogs that don't specify owners.
6396 * javax/swing/event/SwingPropertyChangeSupport.java:
6397 (firePropertyChange): Fix early exit condition.
6398 * javax/swing/plaf/basic/BasicLabelUI.java:
6399 (paint): Avoid painting text if it is null
6401 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
6404 2004-05-03 Olga Rodimina <rodimina@redhat.com>
6406 * Makefile.am: Added new file.
6407 * Makefile.in: Regenerate.
6408 * javax/swing/JPopupMenu.java:
6409 Started implementation.
6410 * javax/swing/JWindow.java
6411 (JWindow): call super() if parent for window
6413 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
6414 New File. UI Delegate for JPopupMenu.
6416 2004-04-30 Olga Rodimina <rodimina@redhat.com>
6418 * javax/swing/JApplet.java: Indicated that JApplet
6419 implements RootPaneContainer and made method of this
6421 * javax/swing/JFrame.java: Ditto.
6422 * javax/swing/JWindow.java: Ditto.
6424 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
6426 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6427 (nativeSetBounds): Call gdk_window_move in addition to
6430 * java/applet/Applet.java (preferredSize): Call parent's
6431 preferredSize if the applet stub is null.
6432 (minimumSize): Likewise for parent's minimumSize.
6434 2004-04-27 Olga Rodimina <rodimina@redhat.com>
6436 * javax/swing/JMenuItem.java
6437 (createActionPropertyChangeListener): Implemented.
6438 (processMouseEvent): Ditto.
6439 (fireMenuDragMouseEntered): Ditto.
6440 (fireMenuDragMouseExited): Ditto.
6441 (fireMenuDragMouseDragged): Ditto.
6442 (fireMenuDragMouseReleased): Ditto.
6443 (menuSelectionChanged): Ditto.
6444 (getSubElements): Ditto.
6445 (getComponent): Ditto.
6446 (addMenuDragMouseListener): Ditto.
6447 (removeMenuDragMouseListener):Ditto.
6448 (addMenuKeyListener): Ditto.
6449 (removeMenuKeyListener): Ditto.
6450 * javax/swing/plaf/basic/BasicMenuItemUI.java
6451 (doClick): Imlemented.
6452 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
6453 Don't handle mouse events here. Pass them to
6454 MenuSelectionManager.
6456 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6457 Used correct version of jalopy configuration
6458 file to fix style in the files below.
6460 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6462 * javax/swing/JCheckBoxMenuItem.java:
6463 Fixed style and removed unnecessary comments.
6464 * javax/swing/JMenuItem.java: Ditto.
6465 * javax/swing/JRadioButtonMenuItem.java: Ditto.
6466 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
6467 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
6468 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
6470 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
6472 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
6475 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
6477 * java/awt/ContainerOrderFocusTraversalPolicy.java
6478 (getComponentAfter): Start from current component and work up
6479 the component hierarchy until an acceptable component is found.
6480 Synchronize on tree lock.
6481 (getComponentBefore): Likewise.
6483 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
6485 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
6486 focus-related debugging messages.
6487 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
6488 * java/awt/EventDispatchThread.java: Likewise.
6489 * java/awt/KeyboardFocusManager.java: Likewise.
6490 * java/awt/Window.java: Likewise.
6491 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
6492 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6494 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
6495 new C++-style comments to C-style comments.
6496 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6498 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
6499 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6500 (handleEvent): Dispatch key press and key release events to
6502 (requestFocus): Post a FOCUS_GAINED event to the event queue.
6503 (gtkWidgetRequestFocus): New method.
6504 (gtkWidgetDispatchKeyEvent): Likewise.
6505 * java/awt/Component.java (requestFocus, requestFocus(boolean),
6506 requestFocusInWindow, requestFocusInWindow(boolean),
6507 getFocusCycleRootAncestor, nextFocus, transferFocus,
6508 transferFocusBackward, transferFocusUpCycle, hasFocus,
6509 isFocusOwner): Implement and document focus-handling methods.
6510 (setFocusTraversalKeys): Inherit focus traversal keys when
6511 keystrokes argument is null. Fix focus-handling documentation
6513 * java/awt/Container.java (setFocusTraversalKeys,
6514 getFocusTraversalKeys, areFocusTraversalKeysSet,
6515 isFocusCycleRoot, setFocusTraversalPolicy,
6516 getFocusTraversalPolicy, isFocusTraversalPolicySet,
6517 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
6518 Implement and document focus-handling methods.
6519 (transferFocusBackward): Remove method.
6520 (readObject, writeObject): Implement and document serialization
6522 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
6524 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
6526 * java/awt/DefaultKeyboardFocusManager.java: Implement and
6528 * java/awt/EventDispatchThread.java (run): Set default keyboard
6529 focus manager. Attempt to dispatch each event to the keyboard
6530 focus manager before normal dispatch.
6531 * java/awt/KeyboardFocusManager.java: Implement and partially
6533 * java/awt/Window.java (Window): Set focusCycleRoot to true.
6534 (show): Focus initial component when window is shown for the
6536 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6537 (pre_event_handler): Replace complex key press and key release
6538 logic with simple callbacks into GtkComponentPeer.
6539 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
6541 2004-04-21 Olga Rodimina <rodimina@redhat.com>
6543 * javax/swing/MenuSelectionManager.java
6544 (componentForPoint): Added new method.
6545 (defaultManager): New Method. Implemented.
6546 (getSelectedPath): Ditto.
6547 (isComponentPartOfCurrentMenu): Ditto.
6548 (processKeyEvent): Added new method.
6549 (processMouseEvent): New Method. Implemented.
6550 (setSelectedPath): Ditto.
6553 2004-04-19 Kim Ho <kho@redhat.com>
6555 * java/awt/Container.java:
6556 (remove): Set the component's parent to null.
6557 (getComponentAt): Implement.
6558 * javax/swing/JComponent.java:
6559 (JComponent): Initialize defaultLocale
6560 (getDefaultLocale): Implement.
6561 (setDefaultLocale): ditto.
6562 * javax/swing/JSlider.java:
6563 (JSlider): Fix calculation of value.
6564 * javax/swing/JSplitPane.java: Implement.
6565 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6566 Change SplitPane's default divider size.
6567 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6568 (paint): Remove unused code.
6569 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
6570 Added comments and ran through jalopy.
6571 (setBasicSplitPaneUI): Get reference to hidden divider
6572 and set up one touch buttons if necessary.
6573 (setBorder): Fire propertyChangeEvent only if
6574 borders are different.
6575 (getPreferredSize): Defer to layout manager.
6576 (propertyChange): Implement.
6577 (oneTouchExpandableChanged): ditto.
6578 (createLeftOneTouchButton): Use BasicArrowButton.
6579 (createRightOneTouchButton): ditto.
6580 (moveDividerTo): New method. Moves the divider
6581 to a set location based on the last divider location.
6582 (BasicSplitPaneDivider::MouseHandler): Implement.
6583 (BasicSplitPaneDivider::OneTouchButton): Removed.
6584 (BasicSplitPaneDivider::DragController): Implement.
6585 (BasicSplitPaneDivider::VerticalDragController):
6587 (BasicSplitPaneDivider::DividerLayout): ditto.
6588 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
6589 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
6590 (calculateLayoutInfo): Don't show component if it's
6592 (paintTab): Fix title paint logic.
6594 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
6597 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
6598 (setStartRule,setEndRule): Don't take abs of day number.
6599 (getOffset): Clarify docs. Add argument checks.
6600 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
6601 (equals,hasSameRules,toString,readObject): Use startTimeMode and
6603 * testsuite/libjava.mauve/xfails
6604 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
6606 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
6608 Layout interfaces during preparation, not initialization.
6609 * java/lang/natClass.cc (initializeClass): Move
6610 _Jv_LayoutInterfaceMethods call...
6611 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
6613 2004-05-19 Anthony Green <green@localhost.localdomain>
6615 * Makefile.am (awt_java_source_files): Remove javax.rmi and
6617 * Makefile.in: Rebuilt.
6618 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
6619 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
6620 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
6621 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
6622 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
6623 gnu/javax/rmi/CORBA/DelegateFactory.java,
6624 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
6625 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
6626 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
6627 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
6628 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
6629 gnu/javax/rmi/PortableServer.java: Remove files.
6631 2004-05-19 Anthony Green <green@redhat.com>
6633 * Makefile.am: Define JAVA_EXT_DIRS.
6634 * Makefile.in: Rebuilt.
6635 * java/lang/natRuntime.cc (insertSystemProperties): Set
6636 java.ext.dirs property.
6638 2004-05-16 Mark Wielaard <mark@klomp.org>
6640 * java/io/Writer.java (Writer(Object)): Check for null lock object.
6642 2004-05-15 Mark Wielaard <mark@klomp.org>
6644 * doc/cni.sgml: Removed, merged into gcj.texi.
6646 2004-05-15 Mark Wielaard <mark@klomp.org>
6648 * Makefile.am (ordinary_java_source_files): Add new javax.print
6650 * Makefile.in: Regenerated.
6652 2004-05-15 Michael Koch <konqueror@gmx.de>
6654 * javax/print/attribute/standard/DateTimeAtCompleted.java,
6655 javax/print/attribute/standard/DateTimeAtCreation.java,
6656 javax/print/attribute/standard/DateTimeAtProcessing.java,
6657 javax/print/attribute/standard/DocumentName.java,
6658 javax/print/attribute/standard/JobHoldUntil.java,
6659 javax/print/attribute/standard/JobImpressionsCompleted.java,
6660 javax/print/attribute/standard/JobMessageFromOperator.java,
6661 javax/print/attribute/standard/JobName.java,
6662 javax/print/attribute/standard/JobOriginatingUserName.java,
6663 javax/print/attribute/standard/JobPriority.java,
6664 javax/print/attribute/standard/JobPrioritySupported.java,
6665 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6666 javax/print/attribute/standard/OutputDeviceAssigned.java,
6667 javax/print/attribute/standard/PrinterInfo.java,
6668 javax/print/attribute/standard/PrinterLocation.java,
6669 javax/print/attribute/standard/PrinterMakeAndModel.java,
6670 javax/print/attribute/standard/PrinterMessageFromOperator.java,
6671 javax/print/attribute/standard/PrinterName.java,
6672 javax/print/attribute/standard/QueuedJobCount.java,
6673 javax/print/attribute/standard/RequestingUserName.java:
6674 Fixed javadocs all over.
6676 2004-05-15 Michael Koch <konqueror@gmx.de>
6678 * javax/print/DocFlavor.java,
6679 javax/print/attribute/standard/ColorSupported.java,
6680 javax/print/attribute/standard/Compression.java,
6681 javax/print/attribute/standard/CopiesSupported.java,
6682 javax/print/attribute/standard/Fidelity.java,
6683 javax/print/attribute/standard/Finishings.java,
6684 javax/print/attribute/standard/JobImpressionsSupported.java,
6685 javax/print/attribute/standard/JobKOctetsSupported.java,
6686 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6687 javax/print/attribute/standard/JobSheets.java,
6688 javax/print/attribute/standard/JobState.java,
6689 javax/print/attribute/standard/JobStateReason.java,
6690 javax/print/attribute/standard/JobStateReasons.java,
6691 javax/print/attribute/standard/Media.java,
6692 javax/print/attribute/standard/MediaSizeName.java,
6693 javax/print/attribute/standard/MultipleDocumentHandling.java,
6694 javax/print/attribute/standard/NumberUpSupported.java,
6695 javax/print/attribute/standard/OrientationRequested.java,
6696 javax/print/attribute/standard/PDLOverrideSupported.java,
6697 javax/print/attribute/standard/PageRanges.java,
6698 javax/print/attribute/standard/PresentationDirection.java,
6699 javax/print/attribute/standard/PrintQuality.java,
6700 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6701 javax/print/attribute/standard/PrinterMoreInfo.java,
6702 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6703 javax/print/attribute/standard/PrinterResolution.java,
6704 javax/print/attribute/standard/PrinterState.java,
6705 javax/print/attribute/standard/PrinterStateReason.java,
6706 javax/print/attribute/standard/PrinterStateReasons.java,
6707 javax/print/attribute/standard/PrinterURI.java,
6708 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6709 javax/print/attribute/standard/Severity.java,
6710 javax/print/attribute/standard/SheetCollate.java,
6711 javax/print/attribute/standard/Sides.java:
6712 Added serialVersionUID and removed final keyword where it doenst
6715 2004-05-15 Michael Koch <konqueror@gmx.de>
6717 * javax/print/PrintServiceLookup.java: New file.
6719 2004-05-15 Michael Koch <konqueror@gmx.de>
6721 * javax/print/DocFlavor.java:
6722 Implemented all flavor classes.
6724 2004-05-15 Michael Koch <konqueror@gmx.de>
6726 * javax/print/attribute/standard/ColorSupported.java,
6727 javax/print/attribute/standard/Compression.java,
6728 javax/print/attribute/standard/CopiesSupported.java,
6729 javax/print/attribute/standard/Fidelity.java,
6730 javax/print/attribute/standard/Finishings.java,
6731 javax/print/attribute/standard/JobImpressionsSupported.java,
6732 javax/print/attribute/standard/JobKOctetsSupported.java,
6733 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6734 javax/print/attribute/standard/JobSheets.java,
6735 javax/print/attribute/standard/JobState.java,
6736 javax/print/attribute/standard/JobStateReason.java,
6737 javax/print/attribute/standard/JobStateReasons.java,
6738 javax/print/attribute/standard/Media.java,
6739 javax/print/attribute/standard/MediaSizeName.java,
6740 javax/print/attribute/standard/MultipleDocumentHandling.java,
6741 javax/print/attribute/standard/NumberUpSupported.java,
6742 javax/print/attribute/standard/OrientationRequested.java,
6743 javax/print/attribute/standard/PDLOverrideSupported.java,
6744 javax/print/attribute/standard/PageRanges.java,
6745 javax/print/attribute/standard/PresentationDirection.java,
6746 javax/print/attribute/standard/PrintQuality.java,
6747 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6748 javax/print/attribute/standard/PrinterMoreInfo.java,
6749 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6750 javax/print/attribute/standard/PrinterResolution.java,
6751 javax/print/attribute/standard/PrinterState.java,
6752 javax/print/attribute/standard/PrinterStateReason.java,
6753 javax/print/attribute/standard/PrinterStateReasons.java,
6754 javax/print/attribute/standard/PrinterURI.java,
6755 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6756 javax/print/attribute/standard/Severity.java,
6757 javax/print/attribute/standard/SheetCollate.java,
6758 javax/print/attribute/standard/Sides.java: New files.
6760 2004-05-15 Michael Koch <konqueror@gmx.de>
6762 * javax/print/Doc.java
6763 (getPrintData): Throws IOException.
6764 (getReaderForText): Likewise.
6765 (getStreamForBytes): Likewise.
6766 * javax/print/DocFlavor.java:
6767 Fixed filename in copyright.
6768 (serialVersionUID): New field.
6769 * javax/print/ServiceUIFactory.java:
6770 Made all constants final.
6771 * javax/print/AttributeException.java
6772 javax/print/MultiDoc.java
6773 javax/print/MultiDocPrintJob.java
6774 javax/print/MultiDocPrintService.java
6775 javax/print/StreamPrintService.java
6776 javax/print/URIException.java: New files.
6777 * javax/print/Makefile.am
6778 (EXTRA_DIST): Added all new files.
6780 2004-05-15 Michael Koch <konqueror@gmx.de>
6782 * javax/print/attribute/standard/Copies.java,
6783 javax/print/attribute/standard/DateTimeAtCompleted.java,
6784 javax/print/attribute/standard/DateTimeAtCreation.java,
6785 javax/print/attribute/standard/DateTimeAtProcessing.java,
6786 javax/print/attribute/standard/DocumentName.java,
6787 javax/print/attribute/standard/JobHoldUntil.java,
6788 javax/print/attribute/standard/JobImpressions.java,
6789 javax/print/attribute/standard/JobImpressionsCompleted.java,
6790 javax/print/attribute/standard/JobKOctets.java,
6791 javax/print/attribute/standard/JobKOctetsProcessed.java,
6792 javax/print/attribute/standard/JobMediaSheets.java,
6793 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
6794 javax/print/attribute/standard/JobMessageFromOperator.java,
6795 javax/print/attribute/standard/JobName.java,
6796 javax/print/attribute/standard/JobOriginatingUserName.java,
6797 javax/print/attribute/standard/JobPriority.java,
6798 javax/print/attribute/standard/JobPrioritySupported.java,
6799 javax/print/attribute/standard/NumberOfDocuments.java,
6800 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6801 javax/print/attribute/standard/NumberUp.java,
6802 javax/print/attribute/standard/OutputDeviceAssigned.java,
6803 javax/print/attribute/standard/PagesPerMinute.java,
6804 javax/print/attribute/standard/PagesPerMinuteColor.java:
6805 Fixed @return tag all over.
6807 2004-05-15 Michael Koch <konqueror@gmx.de>
6809 * javax/print/attribute/AttributeSetUtilities.java
6810 (verifyCategoryForValue): Fixed typo in javadoc.
6811 * javax/print/attribute/HashAttributeSet.java
6812 (containsKey): Fixed @return tag.
6813 (comtainsValue): Likewise.
6815 * javax/print/attribute/IntegerSyntax.java
6817 * javax/print/attribute/ResolutionSyntax.java
6819 (getCrossFeedResolution): Removed unused code.
6820 (getFeedResolution): Likewise.
6821 * javax/print/attribute/SetOfIntegerSyntax.java
6822 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
6823 (equals): Fixed @return tag.
6824 * javax/print/attribute/TextSyntax.java
6825 (TextSyntax): Take locale into account.
6826 (hashCode): Better implementation.
6828 2004-05-15 Michael Koch <konqueror@gmx.de>
6830 * javax/print/CancelablePrintJob.java,
6831 javax/print/Doc.java,
6832 javax/print/DocFlavor.java,
6833 javax/print/DocPrintJob.java,
6834 javax/print/FlavorException.java,
6835 javax/print/PrintException.java,
6836 javax/print/PrintService.java,
6837 javax/print/ServiceUIFactory.java: New files.
6839 2004-05-15 Mark Wielaard <mark@klomp.org>
6841 * gnu/regexp/CharIndexedReader.java: Removed.
6842 * gnu/regexp/REFilterReader.java: Likewise.
6843 * gnu/regexp/RETokenLookAhead.java: Likewise.
6844 * Makefile.am (ordinary_java_source_files): Remove above classes.
6845 * Makefile.in: Regenerated.
6847 2004-05-14 Tom Tromey <tromey@redhat.com>
6849 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
6850 not `XGraphicsConfiguration.XOffScreenImage'.
6852 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
6854 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
6856 2004-05-14 Steven Augart <augart@watson.ibm.com>
6858 * include/jni.h (_Jv_func): Removed.
6859 (struct JNINativeInterface): Use `void *' for reserved slots.
6860 (struct JNIInvokeInterface): Likewise.
6862 2004-05-11 Michael Koch <konqueror@gmx.de>
6864 * gnu/java/net/natPlainSocketImplPosix.cc
6865 (read): Fixed typo in expression.
6867 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
6869 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
6870 ld_library_additions. Adjust all calls to libjava_invoke to match
6873 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
6874 path to cxxflagslist.
6875 Pass path of libstdc++ to libjava_invoke.
6877 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
6878 libjava_invoke arguments.
6880 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
6882 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
6885 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
6887 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
6888 main binary against the JNI shared library.
6890 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6892 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
6893 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
6894 (SimpleTimeZone): Tweak docs. Add new variation.
6895 (setStartRule,setEndRule): Add new variations. Use
6896 startTimeMode and endTimeMode.
6898 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6900 * java/util/Calendar.java (getActualMinimum,
6901 getActualMaximum): Remove abstract. Implement.
6903 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6905 Run the jni tests using the interpreter.
6906 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
6907 options_cxx to shared lib compile command.
6908 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
6909 they are used to link the shared lib, not the main binary.
6910 Use libjava_invoke to run gij.
6912 2004-05-06 Michael Koch <konqueror@gmx.de>
6914 * java/util/logging/Level.java
6915 (parse): Use == instead of String.equals().
6917 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6919 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
6920 verify_field_signature and verify_method_signature, not
6921 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
6922 (_Jv_ClassReader::handleField): Likewise.
6923 (_Jv_ClassReader::handleMethod): Likewise.
6925 2004-05-06 Michael Koch <konqueror@gmx.de>
6927 * javax/swing/table/TableColumn.java:
6930 2004-05-06 Michael Koch <konqueror@gmx.de>
6932 * javax/imageio/spi/ImageReaderWriterSpi.java
6933 (ImageReaderWriterSpi): Made it public.
6934 * javax/imageio/stream/ImageInputStream.java:
6937 2004-05-06 Michael Koch <konqueror@gmx.de>
6939 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6942 2004-05-06 Michael Koch <konqueror@gmx.de>
6944 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
6945 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
6947 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
6948 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
6949 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
6950 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
6951 their own source file.
6952 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6953 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
6954 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
6955 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
6956 (create): Define variable on top of function.
6957 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
6958 (menu_pos): Prototyped.
6959 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6960 (setTitle): Removed.
6961 * jni/gtk-peer/gthread-jni.c
6962 (gdk_threads_wake): Removed.
6963 * Makefile.am (gtk_c_source_files): Added new files
6964 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
6965 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
6966 * Makefile.in: Regenerated.
6968 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
6970 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
6973 2004-05-05 Mark Wielaard <mark@klomp.org>
6975 * javax/swing/AbstractButton.java: Replace special HTML entities with
6977 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
6978 * javax/swing/DefaultButtonModel.java: Likewise.
6979 * javax/swing/DefaultListModel.java: Likewise.
6980 * javax/swing/JList.java: Likewise.
6981 * javax/swing/JSlider.java: Likewise.
6982 * javax/swing/ListModel.java: Likewise.
6983 * javax/swing/Popup.java: Likewise.
6984 * javax/swing/SwingUtilities.java: Likewise.
6986 2004-05-05 Michael Koch <konqueror@gmx.de>
6988 * javax/swing/AbstractButton.java,
6989 javax/swing/ActionMap.java,
6990 javax/swing/DefaultButtonModel.java,
6991 javax/swing/DefaultListModel.java,
6992 javax/swing/ImageIcon.java,
6993 javax/swing/JComboBox.java,
6994 javax/swing/JComponent.java,
6995 javax/swing/JFrame.java,
6996 javax/swing/JInternalFrame.java,
6997 javax/swing/JMenuBar.java,
6998 javax/swing/JMenuItem.java,
6999 javax/swing/JOptionPane.java,
7000 javax/swing/JProgressBar.java,
7001 javax/swing/JRootPane.java,
7002 javax/swing/JScrollBar.java,
7003 javax/swing/JScrollPane.java,
7004 javax/swing/JSeparator.java,
7005 javax/swing/JSlider.java,
7006 javax/swing/JTabbedPane.java,
7007 javax/swing/JTable.java,
7008 javax/swing/JTextField.java,
7009 javax/swing/JToolBar.java,
7010 javax/swing/JToolTip.java,
7011 javax/swing/JTree.java,
7012 javax/swing/JViewport.java,
7013 javax/swing/JWindow.java,
7014 javax/swing/KeyStroke.java,
7015 javax/swing/LookAndFeel.java,
7016 javax/swing/SwingUtilities.java,
7017 javax/swing/Timer.java,
7018 javax/swing/ToolTipManager.java,
7019 javax/swing/UIDefaults.java,
7020 javax/swing/border/TitledBorder.java,
7021 javax/swing/filechooser/FileSystemView.java,
7022 javax/swing/plaf/basic/BasicButtonListener.java,
7023 javax/swing/plaf/basic/BasicButtonUI.java,
7024 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
7025 javax/swing/plaf/basic/BasicGraphicsUtils.java,
7026 javax/swing/plaf/basic/BasicLabelUI.java,
7027 javax/swing/plaf/basic/BasicMenuItemUI.java,
7028 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
7029 javax/swing/plaf/basic/BasicRootPaneUI.java,
7030 javax/swing/plaf/basic/BasicScrollBarUI.java,
7031 javax/swing/plaf/basic/BasicScrollPaneUI.java,
7032 javax/swing/plaf/basic/BasicSliderUI.java,
7033 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
7034 javax/swing/plaf/basic/BasicToggleButtonUI.java,
7035 javax/swing/table/JTableHeader.java,
7036 javax/swing/text/AbstractDocument.java,
7037 javax/swing/text/DefaultCaret.java,
7038 javax/swing/text/StyledEditorKit.java,
7039 javax/swing/tree/DefaultTreeCellEditor.java:
7042 2004-05-05 Michael Koch <konqueror@gmx.de>
7044 * java/util/prefs/AbstractPreferences.java
7045 (AbstractPreferences): Added parenthesis for clarity.
7046 Closes classpath bug #7940.
7048 2004-05-05 Tom Tromey <tromey@redhat.com>
7050 * javax/naming/CompoundName.java (endsWith): Look at correct
7051 element of source name.
7053 2004-05-05 Mark Wielaard <mark@klomp.org>
7055 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
7056 * java/util/HashMap.java (rehash): Add entry at start of bucket.
7058 2004-05-05 Tom Tromey <tromey@redhat.com>
7060 * java/io/BufferedReader.java (skip): Removed unused
7063 2004-05-05 Michael Koch <konqueror@gmx.de>
7065 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
7067 2004-05-05 Dalibor Topic <robilad@kaffe.org>
7069 * java/text/AttributedString.java,
7070 java/text/AttributedStringIterator.java,
7071 java/text/Collator.java,
7072 java/text/DecimalFormatSymbols.java,
7073 java/text/NumberFormat.java,
7074 java/text/RuleBasedCollator.java:
7077 2004-05-05 Tom Tromey <tromey@redhat.com>
7079 * java/text/Format.java: Cleaned up imports.
7080 * java/text/DecimalFormat.java: Cleaned up imports.
7081 * java/security/SecureRandom.java: Cleaned up imports.
7082 (SecureRandom): Removed unused variable.
7083 * java/security/UnresolvedPermission.java: Cleaned up imports.
7084 * java/util/Date.java (parse): Removed unused variable.
7085 * java/util/ResourceBundle.java: Cleaned up imports.
7086 (getBundle): Removed unused variable.
7087 (tryBundle): Likewise.
7088 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
7090 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7092 * java/text/SimpleDateFormat.java:
7093 (formatWithAttribute): New method. It implements
7094 the formatting process with attributes.
7095 (format): Use formatWithAttribute.
7096 (formatToCharacterIterator): New method. Use
7097 formatWithAttribute.
7099 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7101 * java/text/MessageFormat.java:
7102 (class Field): New class.
7103 (formatToCharacterIterator): New method.
7104 (format): Use formatInternal now.
7105 (formatInternal): New method. String formatter should
7106 be done here (with attributes). Attributes merging supported.
7107 (parse): More documentation.
7108 (getFormatsByArgumentIndex): New method.
7109 (setFormatByArgumentIndex): New method.
7110 (setFormatsByArgumentIndex): New method.
7112 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7114 * java/text/DecimalFormat.java
7115 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
7116 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
7117 (parse): Fixed handling of exponentiation notation and grouping.
7119 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7121 * java/text/DecimalFormat.java
7122 (scanFix): Build attribute array. Fixed error reporting.
7123 (applyPatternWithSymbols): Store attributes for the prefix and
7125 (formatInternal): New method. Changed the way the string is
7126 computed. Implemented attributes. Cleant up rounding in
7127 exponential notation.
7128 (format): Use formatInternal.
7129 (formatToCharacterIterator): New method.
7130 (exponentRound, negativePrefixRanges, positivePrefixRanges,
7131 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
7132 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
7135 2004-05-04 Dalibor Topic <robilad@kaffe.org>
7137 * java/security/interfaces/DSAKeyPairGenerator.java,
7138 java/security/interfaces/DSAPrivateKey.java,
7139 java/security/interfaces/DSAPublicKey.java,
7140 java/security/interfaces/RSAPrivateKey.java,
7141 java/security/interfaces/RSAPublicKey.java:
7144 2004-05-04 Michael Koch <konqueror@gmx.de>
7146 * java/nio/ByteBuffer.java,
7147 java/nio/CharBuffer.java,
7148 java/nio/DoubleBuffer.java,
7149 java/nio/FloatBuffer.java,
7150 java/nio/IntBuffer.java,
7151 java/nio/LongBuffer.java,
7152 java/nio/ShortBuffer.java:
7153 (compareTo): Fixed bogus implementation in all buffer classes.
7155 2004-05-04 Ingo Proetel <proetel@aicas.com>
7157 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
7158 32 bit pixels not 8 bit pixels.
7159 (isCompatibleRaster): Added javadoc comment.
7161 2004-05-04 Ingo Proetel <proetel@aicas.com>
7163 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
7166 2004-05-04 Ingo Proetel <proetel@aicas.com>
7168 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
7169 (getColorModel): Return the actual color model.
7170 (getRaster): Implemented.
7171 (ColorRaster): New inner class.
7172 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
7174 * java/awt/Color.java (<init>): Make exception more verbose.
7175 (createContext): Use ColorModel when creating a PaintContext.
7177 2004-05-04 Michael Koch <konqueror@gmx.de>
7179 * gnu/java/text/CharacterBreakIterator.java
7180 (previous): Removed unused variable.
7182 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
7184 * gnu/java/text/FormatBuffer.java,
7185 gnu/java/text/AttributedFormatBuffer.java,
7186 gnu/java/text/StringFormatBuffer.java: New classes to implement
7187 attributed iterators in java.text.
7188 * gnu/java/text/FormatCharacterIterator.java: Moved
7189 from java/text as it is an internal class.
7190 * java/text/FormatCharacterIterator.java: Removed.
7191 * java/text/Format.java:
7192 Import gnu.java.text.FormatCharacterIterator.
7193 * Makefile.am (java_source_files): Added new files.
7194 * Makefile.in: Regenerated.
7197 2004-05-04 Mark Wielaard <mark@klomp.org>
7199 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
7201 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
7203 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
7204 * Makefile.in: Rebuilt.
7206 2004-05-03 Mark Wielaard <mark@klomp.org>
7208 * gnu/java/security/der/DERReader.java: Call static methods staticly.
7209 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
7211 (set(String, String, int, String, String, String, String, String)):
7212 Assign this.file to path or path + "?" + query.
7213 * java/util/Arrays.java: Call static methods staticly.
7214 * java/util/zip/ZipEntry.java: Likewise.
7215 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
7216 dir to this.direction.
7217 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
7218 Assign static field only once.
7219 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
7221 2004-05-03 Mark Wielaard <mark@klomp.org>
7223 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
7224 unused variables hScrollbarHeight and vScrollbarWidth.
7225 (preferredSize): Likewise.
7226 * gnu/java/security/provider/DSAParameters.java (engineToString):
7227 Removed unused call to System.getProperty("line.seperator");
7228 * java/security/Security.java (loadProviders): Return result.
7230 2004-05-03 Tom Tromey <tromey@redhat.com>
7232 * java/net/URLStreamHandler.java (toExternalForm): Removed
7235 * java/math/BigDecimal.java (divide): Removed unused variable.
7236 * java/lang/Throwable.java: Cleaned up imports.
7237 * java/lang/ClassLoader.java: Cleaned up imports.
7238 * java/io/FilePermission.java (implies): Removed unused
7240 * java/awt/TextComponent.java: Removed unused import.
7241 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
7242 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
7243 * gnu/java/text/WordBreakIterator.java: Removed unused import.
7244 * gnu/java/text/SentenceBreakIterator.java: Removed unused
7246 * gnu/java/text/LineBreakIterator.java: Removed unused import.
7247 * gnu/java/text/CharacterBreakIterator.java: Removed
7249 * gnu/java/security/provider/DSAKeyPairGenerator.java:
7251 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
7252 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
7254 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
7255 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
7256 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
7257 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
7258 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
7259 (lookupProviders): Removed unused variable.
7260 (loadNextServiceProvider): Likewise.
7261 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
7263 2004-05-03 Michael Koch <konqueror@gmx.de>
7265 Fixes PR libgcj/14695:
7266 * java/net/NetworkInterface.java
7267 (getByName): Return null when no interface was found.
7269 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
7270 Tom Tromey <tromey@redhat.com>
7272 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
7273 additional option "-Wmissing-prototypes" for compiling C sources.
7274 Print actual filename for pass/fail rather than $name.c.
7275 * testsuite/libjava.jni/PR15133.java: New testcase file.
7276 * testsuite/libjava.jni/PR15133.c: Likewise.
7277 * testsuite/libjava.jni/PR15133.out: Likewise.
7279 2004-04-30 Roger Sayle <roger@eyesopen.com>
7281 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
7284 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
7286 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
7287 limit the maximum heap size to avoid unnecessary thrashing.
7289 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
7291 * java/text/CollationElementIterator.java (reset): Reset
7292 lookahead variables.
7294 2004-04-23 Mark Wielaard <mark@klomp.org>
7296 * jni/classpath/jcl.c: Changed C++ comments into C comments.
7298 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7300 * java/sql/DriverManager.java:
7303 2004-04-23 Michael Koch <konqueror@gmx.de>
7306 (hashcode): Don't initialize with default value explicitely.
7307 (getContent): Removed redundant "final" keyword.
7308 (openStream): Likewise.
7309 (getURLStreamHandler): Fixed coding style.
7310 * java/net/URLConnection.java
7311 (defaultAllowUserInteraction): Don't initialize with default value
7313 (connected): Likewise.
7314 (doOutput): Likewise.
7315 (ifModifiedSince): Likewise.
7316 (dateformats_initialized): Likewise.
7317 (setURLStreamHander): Use StreamTokenizer where it belongs to.
7319 2004-04-23 Michael Koch <konqueror@gmx.de>
7321 * gnu/java/nio/channels/FileChannelImpl.java
7322 (SET, CUR): Unused, removed.
7323 (read): Implement here directly.
7324 (implRead): Removed.
7325 (write): Implement here directly.
7326 (implWrite): Removed.
7328 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7330 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
7331 javax/rmi/CORBA/Stub.java,
7332 javax/rmi/CORBA/Util.java,
7333 javax/rmi/CORBA/ValueHandler.java,
7334 javax/rmi/CORBA/ValueHandler.java,
7335 javax/rmi/PortableRemoteObject.java:
7338 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7340 * java/util/jar/JarFile.java,
7341 java/util/jar/JarInputStream.java,
7342 java/util/jar/JarOutputStream.java,
7343 java/util/jar/Manifest.java:
7346 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7348 * java/util/ArrayList.java,
7349 java/util/Calendar.java,
7350 java/util/Currency.java,
7351 java/util/HashMap.java,
7352 java/util/HashSet.java,
7353 java/util/Hashtable.java,
7354 java/util/LinkedList.java,
7355 java/util/Properties.java,
7356 java/util/PropertyPermission.java,
7357 java/util/TimeZone.java,
7358 java/util/TreeMap.java,
7359 java/util/TreeSet.java,
7360 java/util/Vector.java,
7361 java/util/WeakHashMap.java:
7364 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7366 * java/util/logging/FileHandler.java,
7367 java/util/logging/Formatter.java,
7368 java/util/logging/Handler.java,
7369 java/util/logging/Logger.java,
7370 java/util/logging/SimpleFormatter.java,
7371 java/util/logging/XMLFormatter.java:
7374 2004-04-22 Mark Wielaard <mark@klomp.org>
7376 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
7377 -Wno-long-long flags variable.
7378 (gtk_c_files): Use PEDANTIC_CFLAGS.
7379 * Makefile.in: Regenerated.
7381 2004-04-22 Mark Wielaard <mark@klomp.org>
7383 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7384 Changed C++ comments into C comments.
7385 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
7388 2004-04-22 Michael Koch <konqueror@gmx.de>
7390 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
7391 Merged copyright year with GNU classpath.
7393 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7395 * javax/security/auth/x500/X500Principal.java:
7398 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7400 * javax/swing/JSlider.java:
7401 Fixed HTML tags in comments.
7403 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7405 * javax/accessibility/AccessibleText.java:
7408 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
7410 * java/net/URLStreamHandler.java
7411 (parseURL): Convert the file path to using '/' instead of native
7414 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
7417 (userInfo): New field.
7418 (URL): Set authority to the right value.
7419 (setURL): Fixed authority and file initialization.
7420 * java/net/URLStreamHandler.java
7421 (parseURL): Take care of the query tag. Build authority.
7422 (toExternalForm): Fixed URL building using authority.
7424 2004-04-22 Michael Koch <konqueror@gmx.de>
7426 * java/net/Socket.java
7427 (impl): Made package-private.
7428 * java/net/ServerSocket.java
7429 (implAccept): Access Socket.impl field directly.
7431 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7433 * java/util/prefs/Preferences.java,
7434 java/util/prefs/InvalidPreferencesFormatException.java,
7435 java/util/prefs/BackingStoreException.java,
7436 java/util/prefs/AbstractPreferences.java:
7439 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7441 * java/util/regex/Matcher.java,
7442 java/util/regex/Pattern.java:
7445 2004-04-22 Michael Koch <konqueror@gmx.de>
7447 * java/nio/charset/IllegalCharsetNameException.java
7448 (charsetName): Made private.
7449 (IllegalCharsetNameException): Added @param tag to javadoc.
7450 (getCharsetName): Added @return tag to javadoc.
7451 * java/nio/charset/MalformedInputException.java
7452 (MalformedInputException): Added @param tag to javadoc.
7453 (getInputLength): Revised method description, added @return tag.
7454 (getMessage): Added @return tag.
7456 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
7458 * java/awt/Font.java (deriveFont): Implement missing variants.
7459 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
7462 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
7464 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
7465 Set method->index values for interface methods to their itable index.
7466 (initializeClass): Call _Jv_LayoutInterfaceMethods.
7468 2004-04-21 Michael Koch <konqueror@gmx.de>
7470 * java/nio/DirectByteBufferImpl.java
7471 (shiftDown): Made static, give address as argument and
7472 provide a convenience method that overwrites shiftDown in
7473 ByteBufferImpl and calls the native shiftDown.
7474 * java/nio/MappedByteBufferImpl.java
7475 (): Use optimized method in DirectByteBufferImpl.
7476 * java/nio/natDirectByteBufferImpl.cc
7477 (shiftDown): Changed method signature. Removed usage of array_offset.
7479 2004-04-21 Michael Koch <konqueror@gmx.de>
7481 * gnu/java/net/natPlainSocketImplPosix.cc
7482 (SocketInputStream::read): Make sure returned data is a byte value.
7484 2004-04-21 Michael Koch <konqueror@gmx.de>
7486 * gnu/classpath/ServiceFactory.java,
7487 gnu/classpath/ServiceProviderLoadingAction.java,
7488 javax/imageio/ImageReader.java,
7489 javax/imageio/ImageTranscoder.java,
7490 javax/imageio/ImageWriter.java,
7491 javax/imageio/package.html,
7492 javax/imageio/spi/IIOServiceProvider.java,
7493 javax/imageio/spi/ImageInputStreamSpi.java,
7494 javax/imageio/spi/ImageOutputStreamSpi.java,
7495 javax/imageio/spi/ImageReaderWriterSpi.java,
7496 javax/imageio/spi/ImageTranscoderSpi.java,
7497 javax/imageio/spi/RegisterableService.java,
7498 javax/imageio/spi/ServiceRegistry.java,
7499 javax/imageio/spi/package.html,
7500 javax/imageio/stream/IIOByteBuffer.java,
7501 javax/imageio/stream/ImageInputStream.java,
7502 javax/imageio/stream/ImageOutputStream.java,
7503 javax/imageio/stream/package.html:
7506 (ordinary_java_source_files): Added
7507 gnu/classpath/ServiceFactory.java and
7508 gnu/classpath/ServiceProviderLoadingAction.java.
7509 (javax_source_files): Added
7510 javax/imageio/ImageReader.java,
7511 javax/imageio/ImageTranscoder.java,
7512 javax/imageio/ImageWriter.java,
7513 javax/imageio/spi/IIOServiceProvider.java,
7514 javax/imageio/spi/ImageInputStreamSpi.java,
7515 javax/imageio/spi/ImageOutputStreamSpi.java,
7516 javax/imageio/spi/ImageReaderWriterSpi.java,
7517 javax/imageio/spi/ImageTranscoderSpi.java,
7518 javax/imageio/spi/RegisterableService.java,
7519 javax/imageio/spi/ServiceRegistry.java,
7520 javax/imageio/stream/IIOByteBuffer.java,
7521 javax/imageio/stream/ImageInputStream.java and
7522 javax/imageio/stream/ImageOutputStream.java.
7523 * Makefile.in: Regenerated.
7525 2004-04-21 Michael Koch <konqueror@gmx.de>
7527 * java/util/Properties.java
7528 (load): Fix wrongly merged fix.
7530 2004-04-21 Mark Wielaard <mark@klomp.org>
7532 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
7533 malloc and free buf.
7535 2004-04-21 Dalibor Topic <robilad@kaffe.org>
7537 * javax/naming/AuthenticationException.java,
7538 javax/naming/AuthenticationNotSupportedException.java,
7539 javax/naming/CannotProceedException.java,
7540 javax/naming/CommunicationException.java,
7541 javax/naming/CompoundName.java,
7542 javax/naming/ConfigurationException.java,
7543 javax/naming/ContextNotEmptyException.java,
7544 javax/naming/InitialContext.java,
7545 javax/naming/InsufficientResourcesException.java,
7546 javax/naming/InterruptedNamingException.java,
7547 javax/naming/LimitExceededException.java,
7548 javax/naming/LinkException.java,
7549 javax/naming/LinkLoopException.java,
7550 javax/naming/LinkRef.java,
7551 javax/naming/MalformedLinkException.java,
7552 javax/naming/Name.java,
7553 javax/naming/NameAlreadyBoundException.java,
7554 javax/naming/NameNotFoundException.java,
7555 javax/naming/NamingSecurityException.java,
7556 javax/naming/NoInitialContextException.java,
7557 javax/naming/NoPermissionException.java,
7558 javax/naming/NotContextException.java,
7559 javax/naming/PartialResultException.java,
7560 javax/naming/ReferralException.java,
7561 javax/naming/ServiceUnavailableException.java,
7562 javax/naming/SizeLimitExceededException.java,
7563 javax/naming/TimeLimitExceededException.java,
7564 javax/naming/directory/Attribute.java,
7565 javax/naming/directory/Attributes.java,
7566 javax/naming/directory/SearchResult.java,
7567 javax/naming/event/NamingExceptionEvent.java,
7568 javax/naming/spi/ResolveResult.java:
7571 2004-04-21 Mark Wielaard <mark@klomp.org>
7573 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
7574 Changed C++ comments into C comments. Removed commented out code.
7575 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7577 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
7579 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
7581 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
7583 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
7585 * native/jni/gtk-peer/gthread-jni.c:
7588 2004-04-21 Mark Wielaard <mark@klomp.org>
7590 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
7591 static fields defined in interface.
7592 * javax/awt/JDialog.java: Likewise.
7593 (JDialog): Make constructors public.
7594 (getDefaultCloseOperation): Make public.
7595 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
7596 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
7597 * javax/swing/JViewport.java (JViewport): Make constructor public.
7599 2004-04-21 Michael Koch <konqueror@gmx.de>
7601 * java/util/Map.java
7602 (Entry): Removed redundant "static" modifier.
7603 * java/text/AttributedCharacterIterator.java:
7604 Updated copyright year.
7606 2004-04-20 Michael Koch <konqueror@gmx.de>
7608 * javax/naming/directory/SearchControls.java:
7609 Don't explicitely extend java.lang.Object.
7610 * javax/naming/spi/DirStateFactory.java:
7611 Merged copyright year with GNU classpath.
7613 2004-04-20 Michael Koch <konqueror@gmx.de>
7615 * java/nio/channels/Channels.java:
7616 Merged coding style with GNU classpath.
7618 2004-04-20 Michael Koch <konqueror@gmx.de>
7620 * java/net/ServerSocket.java
7621 Merged coding style from GNU classpath.
7623 2004-04-20 Michael Koch <konqueror@gmx.de>
7625 * java/io/BufferedWriter.java:
7626 Reordered variables to be at top of the class.
7627 (localFlush): Removed redundant final keyword.
7629 2004-04-20 Ingo Proetel <proetel@aicas.com>
7631 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
7633 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7635 * java/text/DecimalFormat.java (scanFix): Removed suffix check
7636 for percent and permill check.
7638 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7640 * java/text/FieldPosition.java
7641 (FieldPosition) Constructor now behaves as it should according
7642 to the java documentation.
7644 2004-04-20 Mark Wielaard <mark@klomp.org>
7646 * java/util/Properties.java: Use the word umlaut, not ä in api
7649 2004-04-20 Michael Koch <konqueror@gmx.de>
7651 * java/nio/Buffer.java,
7652 java/nio/channels/AlreadyConnectedException.java,
7653 java/nio/channels/AsynchronousCloseException.java,
7654 java/nio/channels/ByteChannel.java,
7655 java/nio/channels/CancelledKeyException.java,
7656 java/nio/channels/Channel.java,
7657 java/nio/channels/Channels.java,
7658 java/nio/channels/ClosedByInterruptException.java,
7659 java/nio/channels/ClosedChannelException.java,
7660 java/nio/channels/ClosedSelectorException.java,
7661 java/nio/channels/ConnectionPendingException.java,
7662 java/nio/channels/DatagramChannel.java,
7663 java/nio/channels/FileChannel.java,
7664 java/nio/channels/FileLock.java,
7665 java/nio/channels/FileLockInterruptionException.java,
7666 java/nio/channels/GatheringByteChannel.java,
7667 java/nio/channels/IllegalBlockingModeException.java,
7668 java/nio/channels/IllegalSelectorException.java,
7669 java/nio/channels/InterruptibleChannel.java,
7670 java/nio/channels/NoConnectionPendingException.java,
7671 java/nio/channels/NonReadableChannelException.java,
7672 java/nio/channels/NonWritableChannelException.java,
7673 java/nio/channels/NotYetBoundException.java,
7674 java/nio/channels/NotYetConnectedException.java,
7675 java/nio/channels/OverlappingFileLockException.java,
7676 java/nio/channels/Pipe.java,
7677 java/nio/channels/ReadableByteChannel.java,
7678 java/nio/channels/ScatteringByteChannel.java,
7679 java/nio/channels/SelectableChannel.java,
7680 java/nio/channels/SelectionKey.java,
7681 java/nio/channels/Selector.java,
7682 java/nio/channels/ServerSocketChannel.java,
7683 java/nio/channels/SocketChannel.java,
7684 java/nio/channels/UnresolvedAddressException.java,
7685 java/nio/channels/UnsupportedAddressTypeException.java,
7686 java/nio/channels/WritableByteChannel.java,
7687 java/nio/channels/spi/AbstractInterruptibleChannel.java,
7688 java/nio/channels/spi/AbstractSelectableChannel.java,
7689 java/nio/channels/spi/AbstractSelectionKey.java,
7690 java/nio/channels/spi/AbstractSelector.java,
7691 java/nio/channels/spi/SelectorProvider.java,
7692 java/nio/charset/spi/CharsetProvider.java:
7693 Fixed javadocs and jalopied all over java.nio.
7695 2004-04-20 Michael Koch <konqueror@gmx.de>
7697 * java/nio/ByteBufferImpl.java,
7698 java/nio/CharBufferImpl.java,
7699 java/nio/DirectByteBufferImpl.java,
7700 java/nio/DoubleBufferImpl.java,
7701 java/nio/DoubleViewBufferImpl.java,
7702 java/nio/FloatBufferImpl.java,
7703 java/nio/FloatViewBufferImpl.java,
7704 java/nio/IntBufferImpl.java,
7705 java/nio/IntViewBufferImpl.java,
7706 java/nio/LongBufferImpl.java,
7707 java/nio/LongViewBufferImpl.java,
7708 java/nio/MappedByteBufferImpl.java,
7709 java/nio/ShortBufferImpl.java,
7710 java/nio/ShortViewBufferImpl.java:
7711 Made sure all classes are final and removed final keyword from all
7714 2004-04-20 Michael Koch <konqueror@gmx.de>
7716 * java/rmi/MarshalledObject.java,
7717 java/rmi/Naming.java,
7718 java/rmi/RemoteException.java,
7719 java/rmi/activation/ActivationException.java,
7720 java/rmi/server/ServerCloneException.java,
7721 java/security/AccessController.java,
7722 java/security/AlgorithmParameterGenerator.java,
7723 java/security/AlgorithmParameters.java,
7724 java/security/CodeSource.java,
7725 java/security/Identity.java,
7726 java/security/IdentityScope.java,
7727 java/security/KeyPairGenerator.java,
7728 java/security/KeyStore.java,
7729 java/security/Security.java,
7730 java/security/Signature.java,
7731 java/security/SignatureSpi.java,
7732 java/security/SignedObject.java,
7733 java/security/spec/DSAParameterSpec.java,
7734 java/security/spec/DSAPrivateKeySpec.java,
7735 java/security/spec/DSAPublicKeySpec.java,
7736 java/sql/Array.java,
7737 java/sql/DatabaseMetaData.java,
7738 java/sql/ResultSet.java,
7739 java/text/ChoiceFormat.java,
7740 java/text/CollationElementIterator.java,
7741 java/text/CollationKey.java,
7742 java/text/Collator.java,
7743 java/text/DateFormat.java,
7744 java/text/DateFormatSymbols.java,
7745 java/text/DecimalFormatSymbols.java,
7746 java/text/Format.java,
7747 java/text/ParsePosition.java,
7748 java/text/RuleBasedCollator.java,
7749 java/text/SimpleDateFormat.java,
7750 java/text/StringCharacterIterator.java,
7751 java/util/Collections.java,
7752 java/util/PropertyResourceBundle.java,
7753 java/util/ResourceBundle.java,
7754 java/util/StringTokenizer.java,
7755 java/util/jar/Attributes.java,
7756 java/util/logging/ConsoleHandler.java,
7757 java/util/logging/LogManager.java,
7758 java/util/logging/MemoryHandler.java,
7759 java/util/logging/SocketHandler.java,
7760 javax/naming/NamingException.java:
7761 Fixed javadoc, coding style and argument names all over.
7763 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7765 * java/io/FileDescriptor.java: (FileDescriptor) Added public
7766 constructor. (valid) Added null check.
7768 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7770 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
7771 * java/io/FileOutputStream.java
7772 (FileOutputStream) Reorganized constructors. Constructors now
7773 check whether the given path is directory.
7775 2004-04-20 Michael Koch <konqueror@gmx.de>
7777 * java/net/Authenticator.java,
7778 java/net/BindException.java,
7779 java/net/ConnectException.java,
7780 java/net/ContentHandler.java,
7781 java/net/ContentHandlerFactory.java,
7782 java/net/DatagramPacket.java,
7783 java/net/DatagramSocket.java,
7784 java/net/DatagramSocketImpl.java,
7785 java/net/DatagramSocketImplFactory.java,
7786 java/net/FileNameMap.java,
7787 java/net/HttpURLConnection.java,
7788 java/net/Inet4Address.java,
7789 java/net/Inet6Address.java,
7790 java/net/InetAddress.java,
7791 java/net/InetSocketAddress.java,
7792 java/net/JarURLConnection.java,
7793 java/net/MalformedURLException.java,
7794 java/net/MulticastSocket.java,
7795 java/net/NetPermission.java,
7796 java/net/NetworkInterface.java,
7797 java/net/NoRouteToHostException.java,
7798 java/net/PasswordAuthentication.java,
7799 java/net/PortUnreachableException.java,
7800 java/net/ProtocolException.java,
7801 java/net/ServerSocket.java,
7802 java/net/Socket.java,
7803 java/net/SocketAddress.java,
7804 java/net/SocketException.java,
7805 java/net/SocketImpl.java,
7806 java/net/SocketImplFactory.java,
7807 java/net/SocketOptions.java,
7808 java/net/SocketPermission.java,
7809 java/net/SocketTimeoutException.java,
7811 java/net/URISyntaxException.java,
7813 java/net/URLClassLoader.java,
7814 java/net/URLConnection.java,
7815 java/net/URLDecoder.java,
7816 java/net/URLEncoder.java,
7817 java/net/URLStreamHandler.java,
7818 java/net/URLStreamHandlerFactory.java,
7819 java/net/UnknownHostException.java,
7820 java/net/UnknownServiceException.java:
7821 Fixed javadocs, coding style and argument names all over.
7823 2004-04-20 Michael Koch <konqueror@gmx.de>
7825 * java/lang/Byte.java,
7826 java/lang/CharSequence.java,
7827 java/lang/ClassLoader.java,
7828 java/lang/Compiler.java,
7829 java/lang/Double.java,
7830 java/lang/Float.java,
7831 java/lang/Integer.java,
7832 java/lang/Long.java,
7833 java/lang/Math.java,
7834 java/lang/Number.java,
7835 java/lang/Package.java,
7836 java/lang/Runtime.java,
7837 java/lang/RuntimePermission.java,
7838 java/lang/SecurityManager.java,
7839 java/lang/Short.java,
7840 java/lang/StringBuffer.java,
7841 java/lang/System.java,
7842 java/lang/ThreadGroup.java,
7843 java/lang/Throwable.java,
7844 java/lang/reflect/InvocationHandler.java,
7845 java/lang/reflect/Proxy.java:
7846 Fixed javadocs, coding style and argument names all over.
7848 2004-04-20 Michael Koch <konqueror@gmx.de>
7850 * java/io/BufferedWriter.java,
7851 java/io/ByteArrayInputStream.java,
7852 java/io/CharArrayWriter.java,
7853 java/io/DataInput.java,
7854 java/io/DataInputStream.java,
7856 java/io/FilterInputStream.java,
7857 java/io/InputStream.java,
7858 java/io/InputStreamReader.java,
7859 java/io/ObjectInputStream.java,
7860 java/io/ObjectStreamClass.java,
7861 java/io/PipedInputStream.java,
7862 java/io/PipedReader.java,
7863 java/io/PushbackInputStream.java,
7864 java/io/PushbackReader.java,
7865 java/io/RandomAccessFile.java,
7866 java/io/SerializablePermission.java,
7867 java/io/StreamTokenizer.java,
7868 java/io/StringWriter.java,
7869 java/io/WriteAbortedException.java,
7870 java/io/Writer.java:
7871 Fixed javadocs all over, rename arguments to match javadocs,
7874 2004-04-20 Ingo Proetel <proetel@aicas.com>
7876 * java/awt/FontMetrics.java:
7877 (charsWidth): fixed accumulation of total_width
7878 (getWidth): simple default implementation
7879 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
7880 in Rectangle constructor.
7881 * java/awt/image/Raster.java (toString): Added method.
7882 * java/awt/image/SampleModel.java (<init>): Added error cause
7883 information to thrown exception.
7884 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
7886 (setDataElements): New method.
7887 (setPixels): New method.
7888 (toString): New method.
7890 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7892 * java/awt/image/ComponentColorModel.java
7893 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
7894 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
7895 Mauve tests on this method. Improved documentation.
7897 2004-04-20 Michael Koch <konqueror@gmx.de>
7899 * javax/swing/JLayeredPane.java,
7900 javax/swing/plaf/BorderUIResource.java,
7901 javax/swing/plaf/ComponentUI.java,
7902 javax/swing/undo/CompoundEdit.java,
7903 javax/swing/undo/StateEdit.java:
7904 Fixed HTML tags in javadocs all over.
7906 2004-04-20 Michael Koch <konqueror@gmx.de>
7908 * javax/print/attribute/EnumSyntax.java
7909 (getOffset): Made protected.
7910 * javax/print/attribute/HashAttributeSet.java
7911 (HashAttributeSet): Likewise.
7912 * javax/print/attribute/ResolutionSyntax.java
7913 (getFeedResolution): Fixed typo in exception name.
7914 (getCrossFeedResolution): Likewise.
7915 * javax/print/attribute/SetOfIntegerSyntax.java
7916 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
7917 * javax/print/attribute/TextSyntax.java
7918 (TextSyntax): Handle locale correctly.
7919 (hashCode): Calc better hashcode value.
7920 (equals): Fixed @return tag.
7921 (toString): New method.
7923 2004-04-20 Michael Koch <konqueror@gmx.de>
7925 * gnu/java/nio/FileLockImpl.java
7926 (static): Removed, not needed anymore.
7927 * gnu/java/nio/channels/FileChannelImpl.java
7928 (FileChannelImpl): Made final.
7929 (mode): Made private.
7930 (READ, WRITE, APPEND): Made public.
7931 (EXCL, SYNC, DSYNC): Likewise.
7932 (static): Load native JNI library, when needed.
7933 (length): Unused, removed.
7934 (available): Made public.
7935 (implPosition): Throws IOException.
7937 (implTruncate): Likewise.
7941 2004-04-20 Michael Koch <konqueror@gmx.de>
7943 * java/awt/AWTPermission.java,
7944 java/awt/Component.java,
7945 java/awt/ComponentOrientation.java,,
7946 java/awt/Dialog.java,
7947 java/awt/FontMetrics.java,
7948 java/awt/Graphics.java,
7949 java/awt/datatransfer/DataFlavor.java,
7950 java/beans/Introspector.java,
7951 java/beans/PropertyEditor.java,
7952 java/beans/PropertyEditorManager.java,
7953 java/beans/beancontext/BeanContextServiceProvider.java:
7954 Fixed HTML tags in javadocs all over.
7956 2004-04-20 Mark Wielaard <mark@klomp.org>
7958 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
7959 MissingResourceException is thrown.
7960 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
7961 null when a MissingResourceException is thrown. Should never happen.
7963 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7965 * java/awt/image/DataBufferShort.java,
7966 java/awt/image/DataBufferFloat.java,
7967 java/awt/image/DataBufferDouble.java,
7968 java/awt/image/PixelInterleavedSampleModel.java: New files.
7969 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
7970 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
7972 2004-04-20 Michael Koch <konqueror@gmx.de>
7974 * Makefile.am (java_source_files): Added
7975 java/awt/image/DataBufferDouble.java,
7976 java/awt/image/DataBufferFloat.java,
7977 java/awt/image/DataBufferShort.java and
7978 java/awt/image/PixelInterleavedSampleModel.java.
7979 * Makefile.in: Regenerated.
7981 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
7983 * gcj/cni.h (JvAllocObject): Remove these obsolete,
7984 undocumented CNI calls.
7985 * include/java-interp.h (_Jv_InterpClass): No longer
7986 extends java.lang.Class.
7987 * java/lang/Class.h (Class): Add new field `aux_info'.
7988 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
7989 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
7990 Use Class->aux_info instead.
7991 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
7992 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
7993 Use Class->aux_info instead.
7994 * java/io/natObjectInputStream.cc (allocateObject): Use
7996 * java/lang/natClass.cc (newInstance): Likewise.
7997 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
7998 * java/lang/natObject.cc (clone): Likewise.
7999 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
8000 * java/lang/natVMClassLoader.cc (defineClass): Don't use
8001 JvAllocObject. Allocate klass->aux_info here for interpreted
8004 2004-04-17 Mark Wielaard <mark@klomp.org>
8006 * javax/swing/JToggleButton.java (ToggleButtonModel):
8007 Make public static inner class.
8008 * javax/swing/JTabbedPane.java (setComponentAt):
8009 Call Page.setComponent().
8010 (SCROLL_TAB_LAYOUT): Make public, value is 1.
8011 (WRAP_TAB_LAYOUT): Make public, value is 0.
8012 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
8013 Make private static inner class.
8015 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
8017 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
8018 arguments to match new signature. Remove FIXME comments.
8020 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
8022 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
8024 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
8027 2004-04-02 Olga Rodimina <rodimina@redhat.com>
8029 * Makefile.am: Added new file.
8030 * Makefile.in: Regenerate.
8031 * javax/swing/ImageIcon.java:
8032 (ImageIcon(file)): set description of the icon
8034 * javax/swing/JCheckBoxMenuItem.java:
8035 Mostly Implemented. Work in progress.
8036 * javax/swing/JRadioButtonMenuItem.java:
8037 Reimplement constructors to use JToggleButtonModel.
8038 * javax/swing/plaf/basic/BasicIconFactory.java:
8039 (getCheckBoxMenuItemIcon): return check box
8041 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8042 paint menu item selected only when it is armed and
8045 2004-04-02 David Jee <djee@redhat.com>
8047 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
8048 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
8049 * java/awt/Component.java
8050 (add): Set the parent of the popup as this component.
8051 * java/awt/PopupMenu.java
8052 (addNotify): Create popup menu when peer is null.
8053 (show): Call addNotify() if peer is null.
8054 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
8055 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
8056 argument for gtk_menu_popup() as zero. This causes the popup menu to
8057 respond to any mouse button.
8059 2004-03-31 Olga Rodimina <rodimina@redhat.com>
8061 * Makefile.am: Added new file.
8062 * Makefile.in: Regenerate.
8063 * javax/swing/JRadioButtonMenuItem.java:
8065 * javax/swing/plaf/basic/BasicIconFactory.java:
8066 (getRadioButtonMenuItemIcon): Return
8068 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8069 (getPreferredSize): Add size of checkIcon if it
8071 (installDefaults): Don't initialize checkIcon.
8072 It's value will be set in subclasses.
8073 (uninstallDefaults): remove uninstallation of
8075 (paint): Moved code to paintMenuItem().
8076 (paintMenuItem): Implemented.
8077 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
8078 UI delegate for JRadioButtonMenuItem.
8080 2004-03-29 Olga Rodimina <rodimina@redhat.com>
8082 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8083 Corrected position of the accelerator.
8085 2004-03-29 Olga Rodimina <rodimina@redhat.com>
8087 * Makefile.am: Added new file.
8088 * Makefile.in: Regenerate.
8089 * javax/swing/JMenuItem.java: Partly
8090 implemented. Work in progress
8091 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8092 Changed default value of acceleratorDelimiter.
8093 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8094 New class. Partly implemented.
8096 2004-03-26 Mark Wielaard <mark@klomp.org>
8098 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8099 (item_activate): Declare label before use.
8100 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8101 (gtkSetFont): Removed unused variable label.
8102 (addExposeFilter): Declare variables before use.
8103 (removeExposeFilter): Likewise.
8104 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8105 (ok_clicked): Declare str_fileName before use.
8107 2004-03-26 David Jee <djee@redhat.com>
8109 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
8110 (addSeparator): Remove.
8111 * java/awt/Menu.java
8112 (separator): Remove static final MenuItem field.
8113 (separatorLabel): New static final String field.
8114 (addSeparator): Do not use peer method; use add(MenuItem) instead.
8115 Use separatorLabel to denote that it is a separator.
8116 (insertSeparator): Create a new MenuItem with separatorLabel, instead
8117 of reusing the static separator instance, because a MenuItem instance
8118 can't be added more than once without being cloned.
8119 * java/awt/peer/MenuPeer.java
8120 (addSeparator): Remove from interface.
8122 2004-03-26 David Jee <djee@redhat.com>
8124 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
8125 (connectSignals): New native method declaration.
8126 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
8127 * java/awt/MenuItem.java
8128 (getActionCommand): Return the label if the action command is not set.
8129 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
8130 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
8131 gtk_menu_shell_append().
8132 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
8133 (item_activate): Fix argument type.
8134 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
8136 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
8138 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
8139 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
8140 given. Add the menu widget's top-level GtkWindow to the global window
8141 group, so it can grab the pointer.
8142 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
8143 gtk_menu_shell_append().
8145 2004-03-23 Graydon Hoare <graydon@redhat.com>
8147 * java/text/AttributedString.java
8148 (addAttribute): Fix off-by-one.
8149 (getIterator): Likewise.
8150 * java/text/AttributedStringIterator.java
8151 (getRunLimit): Correct logic.
8152 (getRunStart): Likewise.
8153 (getAttribute): Fix inequality.
8154 (getAttributes): Likewise.
8155 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
8157 2004-03-23 Kim Ho <kho@redhat.com>
8159 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
8160 (calculateSizes): Return real width and height.
8162 2004-03-23 Kim Ho <kho@redhat.com>
8164 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
8165 (calculateTabRects): Set the selectedRun before
8166 trying to rotate tabs.
8168 2004-03-23 Kim Ho <kho@redhat.com>
8170 * Makefile.am: New file
8171 * Makefile.in: Regenerate
8172 * java/awt/Graphics.java: (drawRect):
8173 Draw to the correct point.
8174 * javax/swing/DefaultSingleSelectionModel.java
8175 (isSelected): Return true if the selected index
8177 * javax/swing/JLabel.java: Do not change mnemonic
8178 index if text is null.
8179 * javax/swing/JProgressBar.java: Use JComponent's
8181 * javax/swing/JScrollBar.java: Ditto.
8182 * javax/swing/JSlider.java: Ditto.
8183 * javax/swing/JTabbedPane.java: Reimplement.
8184 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8185 Add defaults for TabbedPane.
8186 * javax/swing/plaf/basic/BasicArrowButton.java:
8188 * javax/swing/plaf/basic/BasicProgressBarUI.java:
8189 (paintDeterminate): Don't paint String if it's
8191 (paintIndeterminate): ditto.
8192 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
8195 2004-03-19 Michael Koch <konqueror@gmx.de>
8197 * java/awt/image/AffineTransformOp.java
8198 (AffineTransformOp): Made public.
8199 * javax/swing/JComponent.java
8200 (listenerList): Made protected.
8201 (accessibleContext): Likewise.
8202 * javax/swing/JList.java
8203 (valueChanged): Dont use internal fields of ListSelectionEvent.
8204 * javax/swing/JViewport.java
8205 (getView): Dont use internal fields of Component.
8206 (addImpl): Likewise.
8207 * javax/swing/Timer.java
8208 (isRunning): Made public.
8211 * javax/swing/UIDefaults.java
8212 (getInt): Made public.
8213 * javax/swing/plaf/basic/BasicListUI.java
8214 (mousePressed): Dont use internal fields of MouseEvent.
8215 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
8216 * javax/swing/plaf/basic/BasicScrollBarUI.java
8217 (arrowIcon): Made static.
8218 * javax/swing/plaf/basic/BasicViewportUI.java
8219 (stateChanged): Dont use internal field on ChangeEvent.
8220 * javax/swing/text/JTextComponent.java
8221 (getUI): Call UIManager.getUI().
8222 (updateUI): Use getUI().
8224 2004-03-19 Graydon Hoare <graydon@redhat.com>
8226 * javax/swing/JComponent.java: Turn off double buffer by default.
8227 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
8228 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8229 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
8230 Use cairo to copy areas.
8231 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
8232 Initialize and set clip region.
8234 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
8236 * java/applet/Applet.java (preferredSize): Override deprecated
8237 variant of getPreferredSize.
8238 (minimumSize): Override deprecated variant of getMinimumSize.
8240 2004-03-15 Olga Rodimina <rodimina@redhat.com>
8242 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8243 (drawImage(img,xform,bgcolor,obs)): New Method.
8244 Helper function that every drawImage method will
8246 (drawRaster): Added new parameter, bgcolor. All
8247 transparent pixels are changed to bgcolor before
8249 (drawRenderedImage): Fixed to use changed drawRaster().
8250 (drawImage(image,xform,obs): Fixed to use new helper function
8251 (drawImage(image,op,x,y)): Ditto.
8252 (drawImage (img,x,y,observer)): Ditto.
8253 ((PainterThread) bgcolor): New Field.
8254 ((PainterThread) (setPixels)): Changed all transparent pixels
8256 (drawImage(img,x,y,width,height,bgcolor,observer)):
8257 Fixed FIXME - all the transparent pixels are
8258 changed to the specified bgcolor.
8259 (drawImage(img, x, y, width, height, observer): Changed to
8261 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
8262 Fixed FIXME- changed all transparent pixels to bgcolor.
8263 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
8264 Changed to use function above.
8266 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
8268 * java/applet/Applet.java (dimensions): New field.
8269 (getDimensions): New method.
8270 (getPreferredSize): Call getDimensions.
8271 (getMinimumSize): Likewise.
8273 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8275 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
8276 * jni/classpath/jnilink.c: Likewise.
8278 * java/applet/Applet.java (getPreferredSize): New method.
8279 (getMinimumSize): New method.
8281 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
8283 * prims.cc (_Jv_AllocObject): Remove `size' argument.
8284 (_Jv_AllocObjectNoFinalizer): Likewise.
8285 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
8286 (_Jv_AllocPtrFreeObject): Likewise.
8287 (_Jv_AllocString): Moved from natString.cc. Call collector interface
8288 directly even in the JVMPI case.
8289 * gcj/cni.h (JvAllocObject): Remove `size' argument from
8290 _Jv_AllocObject calls.
8291 * gcj/javaprims.h: Update prototypes.
8292 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
8293 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
8294 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
8296 2004-04-14 Andrew Haley <aph@redhat.com>
8297 Bryce McKinlay <mckinlay@redhat.com>
8299 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
8300 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
8301 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
8303 * testsuite/libjava.lang/InvokeInterface.java: New file.
8304 * testsuite/libjava.lang/InvokeInterface.out: New file.
8306 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
8308 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
8310 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
8311 StackTraceElement directly.
8312 (newElement): New native helper method to create StackTraceElement
8313 bypassing Java access control.
8314 (createStackTraceElement): Use newElement() instead of directly
8315 calling StackTraceElement's constructor.
8316 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
8318 2004-04-01 Michael Koch <konqueror@gmx.de>
8320 * java/lang/SecurityManager.java
8321 (checkAwtEventQueueAccess): Implemented.
8323 2004-04-01 Gary Benson <gbenson@redhat.com>
8325 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
8326 (_Jv_SearchMethodInClass): Likewise.
8328 2004-03-26 Peter Moon <peterm@miraculum.com>
8330 * java/text/NumberFormat.java: Fix spelling of setCurrency
8333 2004-03-21 Anthony Green <green@redhat.com>
8335 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
8336 recursion when searching for the system ClassLoader.
8338 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
8340 * java/net/ServerSocket.java
8341 (accept): Close the socket when error occured.
8343 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
8345 * java/net/URI.java (parseURI): Added unquoting.
8346 (unquote): New method.
8347 (quoteAuthority): Implemented.
8348 (quote(String,String)): New method.
8349 (quotePath): Implemented.
8350 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
8351 (getSchemeSpecificPart): Removed FIXME comment.
8352 (getRawAuthority): Return new rawAuthority field.
8353 (getAuthority): Removed FIXME comment.
8354 (getRawUserInfo): Return new rawUserInfo field.
8355 (getUserInfo): Removed FIXME comment.
8356 (getRawPath): Return new rawPath field.
8357 (getPath): Removed FIXME comment.
8358 (getRawQuery): Return new rawQuery field.
8359 (getQuery): Removed FIXME comment.
8360 (getRawFragment): Return new rawFragment field.
8361 (getFragment): Removed FIXME comment.
8363 2004-03-20 Michael Koch <konqueror@gmx.de>
8365 * java/net/URLConnection.java: Merged copyright year with classpath.
8367 2004-03-20 Norbert Frese <postfach@nfrese.net>
8369 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
8370 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
8371 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
8373 (getObjectInputStream): Return object reference, throw IOException if null.
8374 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
8375 (getObjectOutputStream): Return object reference, throw IOException if null.
8376 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
8377 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
8378 (UnicastConnectionManager): Throw RemoteException if port is not available.
8379 (getInstance): Throw RemoteException.
8380 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
8381 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
8382 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8383 Collect Exceptions which are returned by a rmi-call and fix void returns.
8384 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
8385 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8386 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
8387 (dispatch): Answer ping messages which are sent by other java implementions.
8388 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
8389 for every rmi-message and fix void return problems.
8390 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
8391 (UnicastServerRef): Throw RemoteException.
8392 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
8393 In some situations it is necessary to export a subclass of the class which has the _Stub.
8394 For instance when the class with has the _Stub is abstract.
8395 (findStubSkelClass): New method which looks for the class which has the _Stub.
8396 (getClientHost): Implementated.
8397 * gcc/libjava/java/rmi/server/RemoteServer.java
8398 (getClientHost): Implementated.
8399 * gcc/libjava/Makefile.am (rmi_java_source_files):
8400 Added gnu/java/rmi/server/RMIIncomingThread.java.
8401 * Makefile.in: Regenerated.
8403 2004-03-20 Michael Koch <konqueror@gmx.de>
8405 * java/net/InetAddress.java
8406 (getLocalHostname): Added javadoc.
8408 2004-03-19 Per Bothner <per@bothner.com>
8410 * configure.in: FILE variable overrides FLATFORM when linking
8411 natFileChannelXXX.cc.
8413 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
8414 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
8416 2004-03-19 Per Bothner <per@bothner.com>
8418 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
8419 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
8420 * Makefile.am: Update accordingly.
8421 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
8422 as aliases for UnicodeLittle and UnicodeBig.
8424 2004-03-20 Mark Wielaard <mark@klomp.org>
8426 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8427 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
8428 Don't access ws when it is null.
8429 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
8432 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
8434 * java/lang/ThreadGroup.java (list): Changed print to println.
8436 2004-03-19 Mark Wielaard <mark@klomp.org>
8438 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
8441 2004-02-10 Randolph Chung <tausq@debian.org>
8443 * configure.in: Build java for hppa target.
8444 * configure: Regenerate.
8445 * libjava/configure.host (hppa-*): Add target.
8446 * libjava/sysdeps/pa/lock.h: New file.
8448 2004-03-19 Mark Wielaard <mark@klomp.org>
8450 Reported by Stephen Crawley
8451 * java/io/FilePermission.java (implies): Use String.length() -1 to
8452 access last char of String.
8454 2004-03-19 Michael Koch <konqueror@gmx.de>
8456 * java/awt/image/AffineTransformOp.java
8457 (AffineTransformOp): Made public.
8458 * javax/swing/JComponent.java
8459 (listenerList): Made protected.
8460 (accessibleContext): Likewise.
8461 * javax/swing/JList.java
8462 (valueChanged): Dont use internal fields of ListSelectionEvent.
8463 * javax/swing/JViewport.java
8464 (getView): Dont use internal fields of Component.
8465 (addImpl): Likewise.
8466 * javax/swing/Timer.java
8467 (isRunning): Made public.
8470 * javax/swing/UIDefaults.java
8471 (getInt): Made public.
8472 * javax/swing/plaf/basic/BasicListUI.java
8473 (mousePressed): Dont use internal fields of MouseEvent.
8474 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
8475 * javax/swing/plaf/basic/BasicScrollBarUI.java
8476 (arrowIcon): Made static.
8477 * javax/swing/plaf/basic/BasicViewportUI.java
8478 (stateChanged): Dont use internal field on ChangeEvent.
8479 * javax/swing/text/JTextComponent.java
8480 (getUI): Call UIManager.getUI().
8481 (updateUI): Use getUI().
8483 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8485 * verify.cc: Undef PC.
8487 2004-03-18 Michael Koch <konqueror@gmx.de>
8489 * java/nio/channels/spi/AbstractSelectableChannel.java
8490 (keys): Initialize at declaration.
8491 (locate): keys cant be null.
8493 (addSelectionKey): New method.
8494 (removeSelectionKey): New method.
8495 * java/nio/channels/spi/AbstractSelectionKey.java
8496 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
8497 * java/nio/channels/spi/AbstractSelector.java
8498 (provider): Javadoc added.
8499 (cancelledKeys): Javadoc added.
8500 (cancelKey): Javadoc added, add key to cancelledKeys.
8501 (deregister): Implemented.
8503 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8505 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
8506 MAP_FAILED to void *.
8508 2004-03-12 Graydon Hoare <graydon@redhat.com>
8510 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
8511 * javax/swing/JComponent.java (paint): Use persistent double buffer.
8512 * javax/swing/JList.java (ListListener): Revalidate on changes.
8513 * javax/swing/JScrollPane.java: Reimplement.
8514 * javax/swing/JViewport.java: Reimplement.
8515 * javax/swing/ScrollPaneLayout.java: Reimplement.
8516 * javax/swing/ViewportLayout.java: Tidy up.
8517 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
8518 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
8519 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
8520 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
8523 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
8525 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8526 (window_wm_protocols_filter): New function.
8527 (window_focus_in_cb): Remove function.
8528 (window_focus_out_cb): Likewise.
8529 (window_focus_or_active_state_change_cb): New function.
8530 (create): Add filter that removes WM_TAKE_FOCUS client messages.
8531 (connectSignals): Don't attach handlers to focus-in-event or
8532 focus-out-event signals. Handle notify signal.
8534 2004-03-11 David Jee <djee@redhat.com>
8536 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8537 (gtkSetLabel): New native method declaration.
8538 (setLabel): Use gtkSetLabel.
8539 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8540 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
8542 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
8544 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
8545 black when color argument is null.
8547 2004-03-10 Kim Ho <kho@redhat.com>
8549 * java/awt/Container.java: Remove check
8552 2004-03-10 Kim Ho <kho@redhat.com>
8554 * java/awt/Container.java: (visitChild):
8555 Remove candidate clip. Use the component
8557 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8558 (handleEvent): Use the PaintEvent's clip.
8560 2004-03-10 Kim Ho <kho@redhat.com>
8562 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8563 (handleEvent): Don't set the clip for the
8566 2004-03-09 Graydon Hoare <graydon@redhat.com>
8568 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
8569 Fix double <-> fixed macros, reset font transform.
8570 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
8573 2004-03-09Â Kim Ho <kho@redhat.com>
8575 * java/awt/Container.java: (visitChild): Move
8576 the x and y coordinate of the component rectangle
8577 to correct position.
8578 (handleEvent): Forward drag events to the pressed
8580 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8582 (ArrowButtonListener::mousePressed): Stop the
8584 (mouseDragged): Implement.
8585 (TrackListener::mousePressed): Only react if
8586 the press doesn't occur on the thumb, otherwise
8587 just set the offset.
8588 (TrackListener::mouseReleased): Unset the isAdjusting
8590 (createIncreaseIcon): Switch icon.
8591 (createDecreaseIcon): Switch icon.
8592 (calculatePreferredSize): Use width.
8593 (getThumbBounds): Use the top as the lower value.
8594 (layoutVScrollBar): Switch the button locations.
8595 (paintIncreaseHighlight): Paint correct side of thumb.
8596 (paintDecreaseHighlight): ditto.
8597 (valueForYPosition): Use top as the lower value.
8598 * javax/swing/plaf/basic/BasicSliderUI.java:
8600 (mouseDragged): Implement.
8601 (mousePressed): Only react when the thumb isn't
8602 pressed, otherwise just set offset.
8603 (mouseReleased): Handle a release of the thumb.
8604 (scrollDueToClickInTrack): Stop the timer first.
8605 * javax/swing/JProgressBar.java:
8606 (setString): Fix change condition.
8607 * javax/swing/JSeparator.java:
8610 2004-03-08 David Jee <djee@redhat.com>
8612 * java/awt/image/AffineTransformOp.java:
8613 (filter): Use Graphics2D interface instead of directly using the
8616 2004-03-05 David Jee <djee@redhat.com>
8618 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
8619 (handleEvent): Action events are generated upon MOUSE_RELEASED.
8620 * java/awt/Container.java
8621 (acquireComponentForMouseEvent): Fixed.
8622 (handleEvent): Fixed.
8623 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8624 (state_to_awt_mods_with_button_states): New method.
8625 (pre_event_handler): Fixed mouse event generation.
8627 2004-03-05 Olga Rodimina <rodimina@redhat.com>
8629 gnu/java/awt/peer/gtk/GdkGraphics2D.java
8630 (GdkGraphics2D (BufferedImage)): Initialize
8631 pixmap associated with specified BufferedImage.
8632 (setPaint): Changed implementation of Texture
8633 Paint to use AffineTransformOp.
8634 * java/awt/image/AffineTransformOp.java
8635 (createCompatibleDestRaster): Throw RasterFormatException
8636 if resulting width or height of raster is 0.
8638 2004-03-04 Olga Rodimina <rodimina@redhat.com>
8640 * java/awt/image/AffineTransformOp.java:
8641 Removed unnecessary field interpolationType.
8642 Formatted some of the lines to be consistent with
8644 (AffineTransformOp): Create new RenderingHints
8645 containing specified interpolation type.
8646 (createCompatibleDestImage): Implemented.
8647 (createCompatibleDestRaster): Implemented.
8648 (filter): Implemented.
8649 (getBounds2D(BufferedImage)): Implemented.
8650 (getBounds2D(Raster)): Implemented.
8651 (getInterpolationType): Get interpolation value from
8654 2004-03-04 David Jee <djee@redhat.com>
8656 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8657 (setFont): Check if child peers are null.
8659 2004-03-04 Graydon Hoare <graydon@redhat.com>
8661 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
8663 (libjava_arguments): Add new libraries to argument list.
8665 2004-03-02 Olga Rodimina <rodimina@redhat.com>
8667 * Makefile.am: Added java/awt/image/AffineTransformOp.java
8668 * Makefile.in: Re-generated.
8669 * java/awt/image/AffineTransformOp.java: New Class.
8671 2004-03-01 Olga Rodimina <rodimina@redhat.com>
8673 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8674 (setPaint): Interpret correctly TexturePaint's
8676 (drawImage): Fixed scale factors of the affine
8679 2004-02-27 David Jee <djee@redhat.com>
8681 * gnu/java/awt/peer/gtk/GdkGraphics.java
8682 (GdkGraphics(Component)): Inherit font from component.
8683 (drawString): Use font style.
8684 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8685 (gtkSetFont): New native method declaration.
8686 (setFont): New method.
8687 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8688 (gtkSetFont): New native method declaration.
8689 (setFont): Call new native method gtkSetFont.
8690 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8691 (setFont): For all child components who do not their fonts set,
8692 set their peers' fonts with this container's font.
8693 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
8694 Move all native method declarations to the top for readability.
8695 (gtkSetFont): New native method declaration.
8696 (setFont): New method.
8697 * java/awt/Component.java
8698 (setFont): Invalidate after setting the font.
8699 * java/awt/Container.java
8700 (invalidateTree): New method.
8701 (setFont): Invalidate the container tree after setting the font.
8702 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
8703 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
8704 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8705 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
8706 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8707 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
8708 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
8709 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
8711 2004-02-27 Olga Rodimina <rodimina@redhat.com>
8713 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8714 (updateBufferedImage): New helper function.
8715 Updates BufferedImage in memory if it was changed.
8716 (draw): changed to update BufferedImage in memory after
8717 this drawing operation
8719 (draw3DRect): Ditto.
8720 (fill3DRect): Ditto.
8722 (drawRaster): Ditto.
8723 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
8724 no affine transformation.
8725 (drawGlyphVector): Ditto.
8727 2004-02-26 Olga Rodimina <rodimina@redhat.com>
8729 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8730 (isBufferedImageGraphics): New Helper function.
8731 Returns true if this graphics2d can be used to draw
8732 into buffered image and false otherwise.
8733 (updateImagePixels): New Helper function.
8734 Updates pixels in the BufferedImage.
8735 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8736 (getImagePixels): New function. Returns pixels
8737 of the buffered image associated with
8740 2004-02-26 David Jee <djee@redhat.com>
8742 * java/awt/BorderLayout.java
8743 (layoutContainer): Fix width and height calculations to ensure
8744 that they're non-negative.
8745 * java/awt/Component.java
8746 (setBackground): If c is null, inherit from closest ancestor whose
8747 background color is set.
8749 2004-02-26 Kim Ho <kho@redhat.com>
8751 * Makefile.am: Add new files.
8752 * Makefile.in: Re-generate.
8753 * javax/swing/JProgressBar.java:
8754 (JProgressBar(int, int int)): Throw
8755 IllegalArgumentException if orientation is
8757 (JProgressBar(BoundedRangeModel)): Create
8758 ChangeListener and register it. UpdateUI.
8759 (getChangeListeners): Implement.
8760 (setModel): Reset ChangeListener.
8761 * javax/swing/JScrollBar.java: Implement.
8762 * javax/swing/JSeparator.java: Implement.
8763 * javax/swing/JSlider.java:
8764 (JSlider(int, int, int, int)): Throw
8765 IllegalArgumentException if orientation
8767 (getChangeListeners): Fix method name.
8768 * javax/swing/SwingUtilities.java:
8769 (layoutCompoundLabel): If there is no text,
8770 set the text rectangle dimensions to 0.
8771 * javax/swing/plaf/basic/BasicButtonUI.java:
8772 (paint): If there is no text, don't paint it.
8773 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8775 * javax/swing/plaf/basic/BasicSeparatorUI.java:
8777 * javax/swing/plaf/basic/BasicSliderUI.java:
8778 (propertyChange): If the model changes, change
8779 the listeners accordingly.
8781 2004-02-25 Graydon Hoare <graydon@redhat.com>
8783 * javax/swing/AbstractButton.java: Add "final" qualifiers.
8784 * javax/swing/JList.java: Reimplement.
8785 * javax/swing/DefaultListSelectionModel.java: Reimplement.
8786 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
8787 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
8788 * javax/swing/ListModel.java: Javadoc.
8789 * javax/swing/ListSelectionModel.java: Add missing methods.
8790 * javax/swing/AbstractListModel.java: Javadoc and corrections.
8791 * javax/swing/DefaultListModel.java: Javadoc and corrections.
8792 * javax/swing/ListModel.java: Javadoc and corrections.
8793 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
8795 2004-02-25 David Jee <djee@redhat.com>
8797 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8798 (GtkFontPeer): Change default size to 12.
8799 * gnu/java/awt/peer/gtk/GtkToolkit.java
8800 (getFontPeer): Change default size to 12.
8801 (getClasspathFontPeer): Likewise. Set default name to "Default".
8802 * java/awt/Font.java
8803 (Font(Map)): Call Font(String,Map).
8804 (Font(String,Map)): If attrs is null, initialize it as an empty
8805 HashMap, which will ensure that the Font will get default attributes.
8807 2004-02-25 David Jee <djee@redhat.com>
8809 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8810 (GtkFontPeer(String,int)): Call the new constructor with size 1.
8811 (GtkFontPeer(String,int,int)): New constructor with size attribute.
8812 * gnu/java/awt/peer/gtk/GtkToolkit.java
8813 (getFontPeer(String,int)): Call the new overload method with size 1.
8814 (getFontPeer(String,int,int)): New method. Overloaded with size
8816 (getClasspathFontPeer): Set the size of the font.
8818 2004-02-24 Olga Rodimina <rodimina@redhat.com>
8820 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8821 (bimage): New field.
8822 (GdkGraphics2D): New Constructor. Constructs Graphics
8823 object that can be used to draw into the Buffered Image.
8824 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8825 (GdkGraphicsEnvironment): Fixed to include public
8827 (createGraphics): Implemented.
8828 * gnu/java/awt/peer/gtk/GtkToolkit.java
8829 (getLocalGraphicsEnvironment): Implemented.
8830 * java/awt/GraphicsEnvironment.java:
8831 (getLocalGraphicsEnvironment): Implemented.
8832 * java/awt/image/BufferedImage.java:
8833 (createGraphics): Implemented.
8835 2004-02-24 David Jee <djee@redhat.com>
8837 * java/awt/Component.java
8838 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
8839 * java/awt/Container.java
8840 (addNotifyContainerChildren): Fix event enabling.
8842 2004-02-23 Olga Rodimina <rodimina@redhat.com>
8844 * Makefile.am: Added
8845 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
8846 * Makefile.in: Re-generated.
8847 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8850 2004-02-19 Kim Ho <kho@redhat.com>
8852 * Makefile.am: Add BasicProgressBarUI
8853 * Makefile.in: Regenerate.
8854 * javax/swing/JProgressBar.java:
8856 * javax/swing/plaf/basic/BasicLookAndFeel.java
8857 Add constants for JProgressBar.
8858 * javax/swing/plaf/basic/BasicProgressBarUI.java
8860 * javax/swing/plaf/basic/BasicSliderUI.java
8862 (calculateGeometry): New method
8863 (paint): Remove unnecessary size calculations.
8865 2004-02-18 Olga Rodimina <rodimina@redhat.com>
8867 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8868 (drawRaster): Fixed small error that caused
8869 imageToUser transformation to be set incorrectly.
8870 (toString): Implemented.
8872 2004-02-18 David Jee <djee@redhat.com>
8874 * java/awt/CardLayout.java
8875 (addLayoutComponent): Show the first component added as the default.
8876 (removeLayoutComponent): After removing, show the next component.
8877 (gotoComponent): If there is only one component, show it and return.
8879 2004-02-18 Kim Ho <kho@redhat.com>
8881 * javax/swing/JSlider.java: Re-order
8883 * javax/swing/JLabel.java: Re-order
8885 * javax/swing/JComponent.java:
8886 (addPropertyChangeListener):
8888 (removePropertyChangeListener):
8890 (firePropertyChangeEvent):
8893 2004-02-17 David Jee <djee@redhat.com>
8895 * java/awt/Component.java
8896 (show): Dispatch ComponentEvent via system event queue.
8900 (reshape): Likewise.
8901 * java/awt/Window.java
8902 (setBoundsCallback): Likewise.
8904 2004-02-17 David Jee <djee@redhat.com>
8906 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8907 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
8908 Use gtk_widget_set_size_request() instead of the deprecated
8909 gtk_widget_set_usize().
8911 2004-02-17 Kim Ho <kho@redhat.com>
8913 * javax/swing/JSlider.java: Fix comments and
8914 make property strings constants.
8915 (createStandardLabels): Use the labels
8916 preferred size as bounds.
8917 * javax/swing/plaf/basic/BasicSliderUI.java
8919 (ScrollHandler::actionPerformed): Don't
8920 calculate the timer stop value. Let the
8921 MouseListeners find the stop location.
8922 (getPreferredHorizontalSize): Re-implement.
8923 (getPreferredVerticalSize): ditto.
8924 (getMinimumHorizontalSize): ditto.
8925 (getMinimumVerticalSize): ditto.
8926 (getPreferredSize): ditto.
8927 (getMinimumSize): ditto.
8928 (getMaximumSize): ditto.
8929 (paintTicks): Use doubles to find the
8931 (paintHorizontalLabel):Â Use preferredSize
8932 as initial width and height.
8933 (paintVerticalLabel): ditto.
8935 2004-02-17 Kim Ho <kho@redhat.com>
8937 * javax/swing/JLabel.java: Changed
8938 property strings to constants.
8939 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
8941 (setText): Change mnemonic index if
8943 (setDisplayedMnemonicIndex): Fire property
8945 (getDisplayedMnemonicIndex): Remove check
8948 2004-02-17 Olga Rodimina <rodimina@redhat.com>
8950 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8951 (drawImage(img,xform,obs)): Invert xform before
8952 passing the xform to cairo.
8953 (drawImage(img,x,y,bgcolor,obs)): Implemented.
8954 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
8956 (drawImage (img,x,y,w,h,obs)): Implemented.
8957 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
8958 bgcolor,obs)): Partly implemented.
8959 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
8961 * java/awt/image/BufferedImage.java:
8962 (copyData): if dest is null, create raster with same
8963 dimensions as the current image.
8965 2004-02-16 Graydon Hoare <graydon@redhat.com>
8967 * javax/swing/plaf/basic/BasicLabelUI.java
8968 (getPreferredSize): Use layoutCL.
8969 * javax/swing/plaf/basic/BasicGraphicsUtils.java
8970 (getPreferredButtonSize): Start with empty view rect, layout using
8971 component's preferred alignment.
8972 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
8975 2004-02-16 David Jee <djee@redhat.com>
8977 * java/awt/Component.java
8978 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
8979 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
8980 (move): Erase old bounds and repaint new bounds. Dispatch
8981 COMPONENT_MOVED ComponentEvent.
8982 (resize): Erase old bounds and repaint new bounds. Dispatch
8983 COMPONENT_RESIZED ComponentEvent.
8984 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8986 * java/awt/Window.java
8987 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8990 2004-02-16 Olga Rodimina <rodimina@redhat.com>
8992 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8993 (setRenderingHint): Added implementation of
8994 Interpolation rendering hints.
8995 (setRenderingHints): Ditto.
8996 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
8997 (drawPixels): fixed to allow user to choose type
8998 of filtering that should be used when displaying images.
8999 (cairoSurfaceSetFilter): New method. Sets filter type for
9000 interpolation of pixel values.
9002 2004-02-16 David Jee <djee@redhat.com>
9004 * java/awt/GridBagLayout.java
9005 (calcCellSizes): Rows or columns with zero sizes should still be
9006 considered for extra space distribution.
9008 2004-02-16 Kim Ho <kho@redhat.com>
9010 * javax/swing/JLabel.java: Re-implement.
9011 * javax/swing/plaf/basic/BasicLabelUI.java
9013 * javax/swing/plaf/basic/BasicLookAndFeel.java:
9016 2004-02-16 Kim Ho <kho@redhat.com>
9018 * javax/swing/JSlider.java: Fix indentation and comments.
9019 (setModel): Remove null check to conform with Sun's.
9020 (setOrientation): Throw exception if not
9021 HORIZONTAL or VERTICAL.
9022 (getInverted): Use private variable instead of
9023 ComponentOrientation.
9024 (setInverted): ditto.
9025 * javax/swing/plaf/basic/BasicSliderUI.java:
9026 Fix indentation and comments.
9027 (propertyChange): Remove check for inverted slider, handle
9029 (getMinimumSize): Return preferred size.
9030 (getMaximumSize): ditto.
9031 (calculateFocusRect): Don't relocate rectangle.
9032 (drawInverted): Return XOR of the slider's inversion and
9033 the component's orientation.
9034 (paint): Update leftToRightCache
9036 2004-02-13 David Jee <djee@redhat.com>
9038 * java/awt/GridBagLayout.java
9039 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
9040 code to helper methods.
9041 (sortBySpan): New helper method.
9042 (distributeSizeAndWeight): Likewise.
9043 (calcCellWeights): Likewise.
9044 (calcCellSizes): Add comments.
9046 2004-02-13 David Jee <djee@redhat.com>
9048 * java/awt/Component.java
9049 (show): Only do something if component is invisible at the moment.
9050 (hide): Only do something if component is visible at the moment.
9051 (reshape): If lightweight, erase old bounds and repaint new bounds.
9053 2004-02-13 Kim Ho <kho@redhat.com>
9055 * Makefile.am: Updated for new file.
9056 * Makefile.in: Regenerated.
9057 * javax/swing/JSlider.java: Reimplement.
9058 * javax/swing/SwingUtilities.java
9059 (layoutCompoundLabel): Use icon height
9061 (paintComponent): Implement.
9062 * javax/swing/plaf/basic/BasicLookAndFeel.java:
9063 Add JSlider defaults.
9064 * javax/swing/plaf/basic/BasicSliderUI.java:
9065 Implement. New file.
9067 2004-03-17 Michael Koch <konqueror@gmx.de>
9069 * gnu/java/net/PlainDatagramSocketImpl.java
9070 (RECEIVE_LOCK): New member field.
9071 (SEND_LOCK): New member field.
9072 (send0): New method.
9073 (send): Synchronize on SEND_LOCK.
9074 (receive0): New method.
9075 (receive): Synchronize on RECEIVE_LOCK.
9076 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
9077 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
9078 gnu/java/net/natPlainDatagramSocketImplWin32.cc
9079 (send0): Renamed from send.
9080 (receive0): Renamed from receive.
9081 2004-03-17 Michael Koch <konqueror@gmx.de>
9083 * gnu/java/net/natPlainSocketImplPosix.cc
9084 (write): Just call write(jbyteArray, offset, len).
9085 (read): Just call read(jbyteArray, offset, len).
9087 2004-03-16 Michael Koch <konqueror@gmx.de>
9089 * javax/swing/JTabbedPane.java
9090 (serialVersionUID): New field.
9092 2004-03-16 Norbert Frese <postfach@nfrese.net>
9094 * java/net/InetAddress.java
9095 (getByName): Handle hostname == "" case.
9097 2004-03-16 Dalibor Topic <robilad@kaffe.org>
9099 Reported by: Adam Heath <doogie@debian.org>
9100 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
9103 2004-03-15 Michael Koch <konqueror@gmx.de>
9105 * java/util/Locale.java: Reverting my last patch
9106 and add a comment why the original version was okay.
9108 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
9110 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
9111 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
9112 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
9113 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
9115 2004-03-12 Michael Koch <konqueror@gmx.de>
9117 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
9119 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
9121 * java/net/URI.java (toURL): Implemented.
9123 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
9126 (URI_REGEXP) updated to contain scheme specific part.
9127 (SCHEME_SPEC_PART_GROUP) new constant.
9128 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
9129 updated to make room for SCHEME_SPEC_PART_GROUP.
9130 (parseURI) parse scheme specific part.
9131 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
9132 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
9133 getQuery, getFragment) implemented.
9135 2004-03-12 Dalibor Topic <robilad@kaffe.org>
9137 * libraries/javalib/java/net/URI.java
9138 partially implemented using java.util.regex.
9139 (URI_REGEXP) new constant. Used to parse URIs.
9140 (SCHEME_GROUP) new constant representing index of scheme group
9142 (AUTHORITY_GROUP) new constant representing index of authority
9143 group in parsed URI.
9144 (PATH_GROUP) new constant representing index of path group in
9146 (QUERY_GROUP) new constant representing index of query group in
9148 (FRAGMENT_GROUP) new constant representing index of fragment
9149 group in parsed URI.
9150 (getURIGroup) new static utility method.
9151 (parseURI) implemented.
9152 (quote) stub for new static utility method.
9153 (quoteAuthority) stub for new static utility method.
9154 (quoteHost) stub for new static utility method.
9155 (quotePath) stub for new static utility method.
9156 (quoteUserInfo) stub for new static utility method.
9158 (create) don't throw URISyntaxException. Implemented.
9159 (toString) implemented.
9161 2004-03-12 Michael Koch <konqueror@gmx.de>
9163 * java/net/HttpURLConnection.java
9164 (getResponseCode): Fix another typo in javadoc.
9166 2004-03-11 Michael Koch <konqueror@gmx.de>
9168 * java/util/logging/Level.java
9169 (parse): Use String.equals() instead of ==.
9171 2004-03-11 Michael Koch <konqueror@gmx.de>
9173 * gnu/java/net/protocol/jar/Connection.java
9174 (getContentLength): New method.
9176 2004-03-11 Michael Koch <konqueror@gmx.de>
9178 * gnu/java/net/PlainSocketImpl.java:
9179 Reformated to merge better with classpath's version.
9181 2004-03-11 Michael Koch <konqueror@gmx.de>
9183 * java/util/Locale.java
9184 (getISO3Language): Use String.equals() instead of ==.
9185 (getISO3Country): Likewise.
9187 2004-03-11 Dalibor Topic <robilad@kaffe.org>
9189 * java/text/AttributedString.java
9190 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
9191 Use HashMap instead of Hashtable since value can be null, and
9192 you can not store a null value in a Hashtable.
9194 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
9196 * java/text/AttributedStringIterator.java
9197 (getAllAttributesKey): Return only keys concerned
9198 by the current iterator.
9199 (getAttributes): Use strict inequality for
9202 2004-03-11 Michael Koch <konqueror@gmx.de>
9204 * java/net/HttpURLConnection.java:
9205 Fixed typo in javadoc.
9207 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
9209 * java/io/BufferedInputStream.java (marktarget): New field for max
9211 (CHUNKSIZE): New constant for incremental mark buffer allocation.
9212 (mark): Use new fields.
9214 (read(byte[],int,int)): Likewise.
9218 2004-03-11 Mark Wielaard <mark@klomp.org>
9220 * java/beans/BeanDescriptor.java (BeanDescriptor):
9221 Set the FeatureDescriptor programmatic name.
9223 2004-03-11 Michael Koch <konqueror@gmx.de>
9225 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
9226 This file was was just copied form java/io/natFileDescriptorEcos.cc
9227 and never changed to compile correctly.
9229 2004-03-11 Michael Koch <konqueror@gmx.de>
9231 * gnu/java/nio/PipeImpl.java
9232 (SourceChannelImpl): Made final.
9233 (read): Implemented.
9234 (SinkChannelImpl): Made final.
9235 (write): Implemented.
9237 2004-03-11 Michael Koch <konqueror@gmx.de>
9239 * gnu/java/net/PlainDatagramSocketImpl.java:
9240 Reformated to match classpath's version more.
9242 2004-03-11 Michael Koch <konqueror@gmx.de>
9244 * gnu/java/awt/peer/ClasspathFontPeer.java:
9245 Fixed javadoc to be correct xhtml.
9246 * gnu/java/awt/peer/gtk/GtkArgList.java
9247 (add): Use Boolean.valueOf() instead of new Boolean().
9249 2004-03-09 Michael Koch <konqueror@gmx.de>
9251 * java/lang/Thread.java
9252 (runnable): Moved around.
9253 (daemon): Renamed from daemon_flag.
9254 (contextClassLoader): Renamed from context_class_loader.
9255 (Thread): Reordered constructors.
9256 (activeCount): Use group directly.
9257 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
9258 (holdsLock): Reworked javadoc.
9259 (setDaemon): Reworked.
9260 * java/lang/natThread.cc
9263 2004-03-08 Anthony Green <green@redhat.com>
9265 * Makefile.am: Build property resource files into libgcj.
9266 * Makefile.in: Rebuilt.
9267 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
9268 java/util/regex/PatternSyntaxException.java,
9269 gnu/regexp/CharIndexed.java,
9270 gnu/regexp/CharIndexedCharArray.java,
9271 gnu/regexp/CharIndexedInputStream.java,
9272 gnu/regexp/CharIndexedReader.java,
9273 gnu/regexp/CharIndexedString.java,
9274 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
9275 gnu/regexp/REException.java,
9276 gnu/regexp/REFilterInputStream.java,
9277 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
9278 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
9279 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
9280 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
9281 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
9282 gnu/regexp/RETokenLookAhead.java,
9283 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
9284 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
9285 gnu/regexp/RETokenStart.java,
9286 gnu/regexp/RETokenWordBoundary.java,
9287 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
9289 2004-03-03 Per Bothner <per@bothner.com>
9291 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
9292 Optimize when argument is a FileChannelImpl.
9293 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
9295 * java/nio/channels/natChannels.cc: New file for new native methods.
9296 * Makefile.am: Update accordingly.
9298 2004-03-02 Jan Hubicka <jh@suse.cz>
9300 * configure.host: Pass -fno-omit-frame-pointer for i386.
9301 * configure.in: Likewise.
9302 * configure: Regenerate.
9304 2004-03-01 Per Bothner <per@bothner.com>
9306 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
9308 2004-02-29 Per Bothner <per@bothner.com>
9310 * java/nio/channels/FileChannelImpl.java: Moved to package
9311 gnu/java/nio/channels, since we need to refer to it from java.io.
9312 * java/nio/channels/natFileChannelImpl.cc: Removed file.
9313 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
9314 from java/nio/channels. Don't depend on FileDescriptor.
9315 (in, out, err): New static fields.
9317 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
9318 from FileDescriptor.
9319 (by): Removed MappedByteBuffer field.
9320 (map): New working implementation.
9321 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
9322 some code "ported" from natFileDescriptoPosix.cc.
9323 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
9324 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
9325 * java/io/FileDescriptor.java: Implement on top of FileChannel.
9326 Remove native methods.
9327 * Makefile.am, configure.in: Updated accordingly.
9329 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
9330 (ch): New FileChannelImpl field. Update constructor to match.
9331 (releaseImpl): Remove native method. Instead ...
9332 (release): Call unlock on channel.
9333 * gnu/java/nio/natFileLockImpl.cc: Removed file.
9335 * java/io/natFileDescriptorEcos.cc: Remove file.
9336 * java/io/natFileDescriptorPosix.cc: Remove file.
9337 * java/io/natFileDescriptorWin32.cc: Remove file.
9338 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
9339 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
9340 (<init>(FileChannelImpl)): New package-private constructor.
9341 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
9342 (available, close, read, skip): Implement using FileChannelImpl.
9343 (getFD): Allocate FileDescriptor if needed.
9344 (getChannel): Is now trivial.
9345 * java/io/FileOutputStream.java: Corresponding changes.
9346 * java/io/RandomAccessFile.java: Corresponding changes.
9348 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
9349 unmapImpl): New dummy methods, to be overridden by subclass.
9350 (finalize, isLoaded, load, force): New methods.
9351 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
9352 Now works, at least for read mapping.
9354 * java/lang/natPosixProcess.cc (startProcess): Implement standard
9355 streams using FileChannelImpl, not FileDescriptor.
9356 * java/lang/natWin32Process.cc (startProcess): Likewise.
9358 2004-02-28 Michael Koch <konqueror@gmx.de>
9360 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
9363 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
9365 * java/io/ObjectInputStream.java
9366 (readClassDescriptor): Keep elements of the mapping non null.
9367 (checkTypeConsistency): New method.
9368 (readFields): Fixed main loop and base logic. Small reindentation.
9369 * java/io/ObjectStreamField.java
9370 (lookupField): New method to update the field reference.
9371 (checkFieldType): New method.
9372 * java/io/ObjectStreamClass.java
9373 (setClass, setFields): Call lookupField when building the field
9374 database. Check the real field type.
9376 2004-02-28 Michael Koch <konqueror@gmx.de>
9378 * java/nio/ByteOrder.java
9379 (nativeOrder): Use equals() to compare strings.
9381 2004-02-26 Michael Koch <konqueror@gmx.de>
9383 * gnu/java/nio/FileLockImpl.java
9384 (finalize): Made protected.
9385 * java/nio/channels/FileChannel.java
9386 (MapMode.READ_ONLY): Made final.
9387 (MapMode.READ_WRITE): Made final.
9388 (MapMode.PRIVATE): Made final.
9389 * java/nio/channels/SocketChannel.java
9390 (open): Simplified code.
9391 * java/nio/channels/spi/AbstractSelectableChannel.java
9392 (registered): Unused, removed.
9393 (keyFor): Check channel is open, only locate key
9394 and not add a new one.
9395 (register): Don't delete attachments.
9397 2004-02-26 Michael Koch <konqueror@gmx.de>
9399 * gnu/java/awt/ComponentDataBlitOp.java
9400 (INSTANCE): Made final.
9401 * gnu/java/awt/image/ImageDecoder.java:
9403 (cm): Unused, removed.
9405 2004-02-26 Michael Koch <konqueror@gmx.de>
9407 * gnu/java/nio/DatagramChannelImpl.java
9408 (send): Check if target address is resolved.
9410 2004-02-26 Michael Koch <konqueror@gmx.de>
9412 * Makefile.am: Generate and install headers for inner classes in
9413 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
9414 * Makefile.in: Regenerated.
9416 2004-02-24 Anthony Green <green@redhat.com>
9418 * java/lang/StringBuffer.java: No need to NULL out remainder of
9419 buffer since ensureCapacity_unsynchronized will have done this for
9422 2004-02-20 Michael Koch <konqueror@gmx.de>
9424 * gnu/java/net/protocol/jar/Handler.java
9425 (): Removed unneeded check for file != null. java.net.URL.getFile()
9426 returns an empty string but never null.
9428 2004-02-20 Michael Koch <konqueror@gmx.de>
9430 * gnu/gcj/convert/Convert.java
9431 (main): Use equals() to compare strings.
9433 2004-02-20 Michael Koch <konqueror@gmx.de>
9435 * javax/swing/AbstractButton.java: Made several constants final.
9436 (getRolloverSelectedIcon): Made public.
9437 (getSelectedIcon): Made public.
9439 2004-02-16 Per Bothner <per@bothner.com>
9441 * java/nio/CharBufferImpl.java: Inline super constructor.
9442 * java/nio/DoubleBufferImpl.java: Likewise.
9443 * java/nio/FloatBufferImpl.java: Likewise.
9444 * java/nio/IntBufferImpl.java: Likewise.
9445 * java/nio/LongBufferImpl.java: Likewise.
9446 * java/nio/ShortBufferImpl.java: Likewise.
9447 * java/nio/CharBuffer.java: Remove unused constructor.
9448 * java/nio/DoubleBuffer.java: Likewise.
9449 * java/nio/FloatBuffer.java: Likewise.
9450 * java/nio/IntBuffer.java: Likewise.
9451 * java/nio/LongBuffer.java: Likewise.
9452 * java/nio/ShortBuffer.java: Likewise.
9453 * java/nio/CharViewBufferImpl.java: New convenience constructor.
9454 Fix buggy call to super constructor.
9455 * java/nio/DoubleViewBufferImpl.java: Likewise.
9456 * java/nio/FloatViewBufferImpl.java: Likewise.
9457 * java/nio/IntViewBufferImpl.java: Likewise.
9458 * java/nio/LongViewBufferImpl.java: Likewise.
9459 * java/nio/ShortViewBufferImpl.java: Likewise.
9461 * java/nio/ByteBuffer.java (endian): Make non-private so other
9462 java.nio classes can inherit it.
9463 (<init>): Don't bother clearing array_offset.
9464 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
9465 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
9466 Remove redundant test.
9468 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
9469 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
9470 Use new XxxViewBufferImpl constructors.
9471 * java/nio/MappedByteBufferImpl.java: Likewise.
9472 * java/nio/DirectByteBufferImpl.java: Likewise.
9474 * java/nio/ByteBufferImpl.java: Remove one constructor.
9475 Inline super in remaining constructor.
9476 * java/nio/ByteBuffer.java: Remove unused constructor.
9478 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
9480 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
9481 * java/nio/DirectByteBufferImpl.java (owner): New field.
9482 (offset): Remove unused field.
9483 (<init>): Modify one and add another constructor. Change callers.
9484 (allocateDirect): Removed - not used.
9485 (getImpl, putImpl): Make static and pass address explicitly,
9486 to make them useful for MappedByteBufferImpl.
9487 (get, put): Check for underflow. Modify for new getImpl.
9488 (getImpl): New native method where target is array.
9489 (get(byte[],int,int)): Use the above.
9490 (adjustAddress): New static native method.
9491 (slice, duplicate, asReadOnly): New implementations.
9492 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
9493 adjustAddress): New or updated native methods.
9495 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
9497 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
9498 overflow of fieldmapping.
9500 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
9502 * javax/swing/undo/UndoManager.java: Re-written from scratch.
9504 2004-02-14 Per Bothner <per@bothner.com>
9506 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
9507 Set closed before calling implCloseChannel, as in the spec.
9509 2004-02-09 Graydon Hoare <graydon@redhat.com>
9511 * javax/swing/ToggleButtonModel.java: Remove dead class.
9512 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
9513 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
9514 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
9515 * Makefile.am: Update for new and removed files.
9516 * Makefile.in: Regenerate.
9518 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
9519 * javax/swing/AbstractButton.java
9520 (AbstractButton): Initialize fields correctly in ctor.
9521 * javax/swing/JCheckbox.java
9522 (JCheckBox): Override painting flags.
9523 * javax/swing/DefaultButtonModel.java: Conform to sun.
9524 * javax/swing/JComponent.java (paint): Fill with background color
9526 (processComponentKeyEvent)
9529 (processMouseMotionEvent): Remove event-consuming empty methods.
9530 (getUIClassID): Return "ComponentUI" not "JComponent"
9531 * javax/swing/JFrame.java: Remove some debugging chatter.
9532 (JFrame): Subscribe to window events.
9533 * javax/swing/JRadioButton.java
9534 (JRadioButton): Override painting flags.
9535 * javax/swing/JRootPane.java
9536 (JRootPane): Set background from UIDefaults.
9537 * javax/swing/JToggleButton.java
9538 (ToggleButtonModel): New inner class.
9539 (JToggleButton): Override layout alighment.
9540 * javax/swing/SwingUtilities.java:
9541 (getLocalBounds): Return width and height, not x and y.
9542 (calculateInnerArea): Use local bounds, not bounds.
9543 (layoutCompoundLabel): Provide overridden form.
9544 (layoutCompoundLabel): Correct bugs.
9545 * javax/swing/UIDefaults.java: Correct comment.
9546 * javax/swing/plaf/basic/BasicButtonUI.java:
9547 Move most logic into defaults, external listener.
9548 (paintIcon): Implement icon painting.
9549 (paint): Fix state painting to conform to changes in model.
9550 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
9551 Remove most dead/wrong methods.
9552 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
9553 * javax/swing/plaf/basic/BasicIconFactory.java:
9554 (DummyIcon): New class.
9555 (getMenuItemCheckIcon)
9556 (getMenuItemArrowIcon)
9558 (getCheckBoxMenuItemIcon)
9559 (getRadioButtonMenuItemIcon)
9560 (createEmptyFrameIcon): Return DummyIcons, not null.
9561 (getCheckBoxIcon): Implement an icon that looks like sun's.
9562 (getRadioButtonIcon): Implement an icon that looks like sun's.
9563 * javax/swing/plaf/basic/BasicLookAndFeel.java
9564 (initComponentDefaults): Fix impossible values, add some missing.
9565 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
9566 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
9567 Remove most dead/wrong methods.
9569 (getDefaultIcon): New method.
9570 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
9571 Remove most dead/wrong methods.
9572 * javax/swing/plaf/metal/MetalLookAndFeel.java
9573 (getDefaults): Return super.getDefaults(), not BasicDefaults.
9574 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
9575 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
9576 Implement "clearing" as drawing, when on pixmap drawables.
9578 * javax/swing/JButton.java (getUIClassID):
9579 * javax/swing/JCheckBox.java (getUIClassID):
9580 * javax/swing/JEditorPane.java (getUIClassID):
9581 * javax/swing/JLabel.java (getUIClassID):
9582 * javax/swing/JList.java (getUIClassID):
9583 * javax/swing/JOptionPane.java (getUIClassID):
9584 * javax/swing/JPanel.java (getUIClassID):
9585 * javax/swing/JPasswordField.java (uiClassID):
9586 * javax/swing/JRadioButton.java (getUIClassID):
9587 * javax/swing/JRootPane.java (getUIClassID):
9588 * javax/swing/JScrollPane.java (getUIClassID):
9589 * javax/swing/JTabbedPane.java (getUIClassID):
9590 * javax/swing/JToggleButton.java (getUIClassID):
9591 * javax/swing/JTree.java (getUIClassID):
9592 * javax/swing/JViewport.java (getUIClassID):
9593 * javax/swing/text/JTextComponent.java (getUIClassID):
9594 Return "fooUI" not "Jfoo"
9596 2004-02-11 Michael Koch <konqueror@gmx.de>
9598 * java/net/DatagramSocket.java
9599 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
9601 (setBroadcast): Likewise.
9602 * java/net/MulticastSocket.java
9603 (setLoopbackMode): Likewise.
9604 * java/net/ServerSocket.java
9605 (setReuseAddress): Likewise.
9606 * java/net/Socket.java
9607 (setTcpNoDelay): Likewise.
9608 (setSoLinger): Likewise.
9609 (setOOBInline): Likewise.
9610 (setKeepAlive): Likewise.
9611 (setReuseAddress): Likewise.
9612 * java/net/URLConnection.java
9613 (setContentHandler): Replace == with equals().
9614 * java/net/URLStreamHandler.java
9615 (hostSEquals): Fix checking host addresses.
9616 (toExternalForm): Dont check protocol for null. We know already its
9619 2004-02-10 David Jee <djee@redhat.com>
9621 * java/awt/BorderLayout.java
9622 (calcCompSize): Invisible components get zero dimensions.
9623 * java/awt/Button.java
9624 (setLabel): Set actionCommand.
9625 * java/awt/Component.java
9626 (show): Invalidate component and parent container.
9629 2004-02-10 David Jee <djee@redhat.com>
9631 * java/awt/GridBagLayout.java
9632 (GridBagLayout): New private field, internalcomptable.
9633 (lookupInternalConstraints): New method.
9634 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
9635 (GetLayoutInfo): Reimplement.
9636 (calcCellSizes): Ignore rows/columns with size 0.
9638 2004-02-10 Michael Koch <konqueror@gmx.de>
9640 * gnu/java/awt/EmbeddedWindow.java
9641 (setHandle): Use java.awt.Component.getPeer() instead of
9642 java.awt.Component.peer directly.
9644 2004-02-10 David Jee <djee@redhat.com>
9646 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
9647 (gtkSetLabel): New native method definition.
9648 (setLabel): Use gtkSetLabel.
9649 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
9650 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
9652 2004-02-10 Alan Modra <amodra@bigpond.net.au>
9654 * include/powerpc-signal.h: Revert 2004-01-21 change.
9655 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
9656 from syscall for ppc32 versions.
9658 2004-02-08 Per Bothner <per@bothner.com>
9660 * java/nio/ByteBuffer.java (shiftDown): New helper method.
9661 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
9662 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
9663 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
9664 Pass ByteOrder parameter to most methods, since the underlying
9665 ByteBuffer's order isn't always what we should use.
9666 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
9667 * java/nio/DirectByteBufferImpl.java: Likewise.
9668 Use ByteBufferHelper methods.
9669 * java/nio/MappedByteBufferImpl.java: Likewise.
9670 (compact): Use shiftDown.
9671 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
9672 (get, put): Use ByteBufferHelper.
9673 (compact): Use new shiftDown method.
9674 (duplicate(boolean)): New helper method.
9675 (duplicate, asReadOnlyBuffer): Use it.
9676 (order): Return endian field.
9677 * java/nio/DoubleViewBufferImpl.java: Likewise.
9678 * java/nio/FloatViewBufferImpl.java: Likewise.
9679 * java/nio/IntViewBufferImpl.java: Likewise.
9680 * java/nio/LongViewBufferImpl.java: Likewise.
9681 * java/nio/ShortViewBufferImpl.java: Likewise.
9682 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
9683 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
9684 (compact): Re-implement using shiftDown.
9686 2004-02-08 Andreas Jaeger <aj@suse.de>
9688 * include/x86_64-signal.h: Fix typo.
9690 2004-02-08 Diego Novillo <dnovillo@redhat.com>
9692 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
9694 (HANDLE_DIVIDE_OVERFLOW): Likewise.
9696 2004-02-06 Michael Koch <konqueror@gmx.de>
9698 * java/io/ObjectInputStream.java
9699 (currentClassLoader): Reverted to old version of this method.
9701 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
9703 * java/io/ObjectInputStream.java: Made all calls
9704 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
9705 use cached info from ObjectStreamClass. (readClassDescriptor):
9706 Cache more information in ObjectStreamClass. (processResolution,
9707 readFields): Use cached info from ObjectStreamClass.
9708 (newObject): Throw exception instead of returning null for failure.
9709 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
9710 setCharField, setDoubleField, setFloatField, setIntField,
9711 setLongField, setShortField, setObjectField, readObjectParams):
9712 Removed. (dumpElement, dumpElementln): Removed dump flag condition
9714 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
9715 (setClass): Added call to cacheMethods() (findMethod): New method.
9716 (cacheMethods): New method. (ObjectStreamClass): Added call to
9717 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
9718 AccessController.doPrivileged to invoke setAccessible.
9719 (readObjectMethod, readResolveMethod, realClassIsSerializable,
9720 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
9722 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
9723 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
9724 isPrimitive): Made safe for cases where type == null.
9725 (setBooleanField, setByteField, setCharField, setShortField,
9726 setIntField, setLongField, setFloatField, setDoubleField,
9727 setObjectField): New methods.
9729 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
9731 * java/awt/Component.java (getFont): Return a default font
9734 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
9735 (Scrollbar (int, int, int, int, int)): Make default page
9737 (setValues): Only call peer.setValues if one of the values has
9739 (generateName): New method.
9740 (getUniqueLong): New method.
9741 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
9742 (range_scrollbar): Remove structure.
9743 (post_adjustment_event): Remove function.
9744 (post_change_event): Accept jobject argument.
9745 (create): Cast jints to gdoubles. Round scrollbar values to the
9746 nearest integer. Clamp min, max and value settings.
9747 (connectJObject): Connect hook to widget->window.
9748 (connectSignals): Remove range_scrollbar structure variables.
9749 Remove "move-slider" connection. Pass global peer reference to
9750 "value-changed" callback.
9751 (setLineIncrement): Cast jint value to gdouble.
9752 (setPageIncrement): Likewise.
9753 (setValues): Likewise. Clamp min, max and value settings.
9755 2004-02-05 Michael Koch <konqueror@gmx.de>
9757 * javax/swing/AbstractCellEditor.java
9758 (getCellEditorValue): Removed.
9759 * javax/swing/Box.java: Reformated.
9760 (serialVersionUID): New field.
9761 * javax/swing/ButtonGroup.java:
9762 Removed some weird whitespace.
9763 * javax/swing/CellEditor.java: Reformated.
9764 * javax/swing/CellRendererPane.java
9765 (serialVersionUID): New field.
9766 (AccessibleCellRendererPaneserialVersionUID): New field.
9767 * javax/swing/DefaultListModel.java
9768 (serialVersionUID): New field.
9769 * javax/swing/JEditorPane.java
9770 (serialVersionUID): New field.
9771 (setPage): Throws IOException.
9772 (addHyperlinkListener): Implemented.
9773 (removeHyperlinkListener): Implemented.
9774 (getHyperlinkListener): New method.
9775 * javax/swing/JFileChooser.java
9776 (serialVersionUID): New field.
9777 (AccessibleJFileChooser.serialVersionUID): New field.
9778 (addActionListener): Implemented.
9779 (removeActionListener): Implemented.
9780 (getActionListeners): New method.
9781 * javax/swing/JFormattedTextField.java
9782 (serialVersionUID): New field.
9783 (AbstractFormatter.serialVersionUID): New field.
9784 (clone): Throws CloneNotSupportedException
9785 (setEditValid): Add missing argument.
9786 (stringToValue): Throws ParseExcpetion.
9787 (valueToString): Throws ParseException.
9788 (commitEdit): Throws ParseException.
9789 * javax/swing/JLabel.java
9790 (serialVersionUID): New field.
9791 * javax/swing/JList.java
9792 (serialVersionUID): New field.
9793 (addListSelectionListener): Reformated.
9794 (removeListSelectionListener): Reformated.
9795 (getListSelectionListeners): New method.
9796 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
9798 (serialVersionUID): New field.
9799 * javax/swing/table/AbstractTableModel.java
9800 (getValueAt): Removed.
9801 (getColumnCount): Removed.
9802 (getRowCount): Removed.
9804 2004-02-05 Michael Koch <konqueror@gmx.de>
9806 * java/awt/datatransfer/DataFlavor.java
9807 (imageFlavor): Javadoc added.
9808 (javaJVMLocalObjectType): Fixed.
9810 2004-02-05 Michael Koch <konqueror@gmx.de>
9812 * java/lang/Thread.java
9813 (Thread): Reordered.
9814 (setContextClassLoader): Fixed javadoc comment.
9815 (setPriority): Reordered.
9817 (initialize_native): Reordered.
9818 (gen_name): Reordered.
9820 2004-02-05 Michael Koch <konqueror@gmx.de>
9822 * java/lang/Thread.java: Reordered fields, reformated much code,
9823 no functional changes, some variables renamed, javadoc comments
9826 2004-02-05 Michael Koch <konqueror@gmx.de>
9828 * java/util/zip/Deflater.java,
9829 java/util/zip/DeflaterOutputStream.java,
9830 java/util/zip/GZIPInputStream.java:
9831 Reformated and javadoc comments merged from classpath.
9833 2004-02-05 Michael Koch <konqueror@gmx.de>
9835 * gnu/java/nio/NIOServerSocket.java
9836 (impl): Unused, removed.
9837 * gnu/java/nio/SocketChannelImpl.java
9838 (finnishConnect): Don't throw NoConnectionPendingException if not
9839 connected or no connection pending.
9841 2004-02-02 Graydon Hoare <graydon@redhat.com>
9843 * javax/swing/SwingUtilities.java: Many new functions.
9844 * java/awt/Container.java (LightweightDispatcher): Reimplement.
9845 * javax/swing/basic/BasicGraphicsUtils.java
9846 (getPreferredButtonSize): Start layout from top-left corner.
9848 2004-02-04 Olga Rodimina <rodimina@redhat.com>
9850 * java/awt/geom/AffineTransform.java:
9851 Corrected comments on the field definitions for
9853 (shear): Fixed few errors that caused shear
9854 transformation to be performed incorrectly.
9855 (createInverse): Fixed to return correct
9856 inverse of the given matrix.
9858 2004-02-03 Tom Tromey <tromey@redhat.com>
9860 * java/lang/natPosixProcess.cc (startProcess): Handle case where
9861 PATH or LD_LIBRARY_PATH is not set in parent environment.
9863 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
9865 * gnu/java/awt/peer/gtk/GtkListPeer.java,
9866 java/awt/BorderLayout.java, java/awt/CardLayout.java,
9867 java/awt/CheckboxGroup.java, java/awt/Choice.java,
9868 java/awt/Component.java, java/awt/Container.java,
9869 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
9870 java/awt/LayoutManager2.java, java/awt/List.java,
9871 java/awt/Menu.java, java/awt/MenuBar.java,
9872 java/awt/MenuItem.java, java/awt/Polygon.java,
9873 java/awt/Rectangle.java, java/awt/ScrollPane.java,
9874 java/awt/Scrollbar.java, java/awt/TextArea.java,
9875 java/awt/TextField.java,
9876 java/awt/image/renderable/RenderContext.java,
9877 javax/swing/JApplet.java: Fix handling of alias methods, where a
9878 method has been deprecated in favour of a new one with the same
9879 funtion but a different name. Put the method implementation in
9880 the deprecated method and have the new method call the
9881 deprecated one. Make all other code call the new method.
9883 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
9885 * gnu/java/nio/DatagramChannelImpl.java
9886 (inChannelOperation): New field.
9887 (isInChannelOperation): New accessor.
9888 (setInChannelOperation): New modifier.
9889 (receive): Use capacity() - position() of destination
9890 buffer instead of remaining(). Set and reset our "in
9891 channel operation indicator" before and after delegating
9892 the receive to our datagram socket. Removed testing code.
9893 Update destination buffer's current position if it is
9894 backed by a byte array (hasArray() is true).
9895 (send): Set and reset our "in channel operation indicator"
9896 before and after delegating the send to our datagram socket.
9897 Removed testing code. Update source buffer's current position
9898 if it is backed by a byte array (hasArray() is true).
9899 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
9900 Use capacity() - position() of destination buffer instead
9902 * java/net/DatagramSocket.java (receive): Don't throw an
9903 IllegalBlockingModeException if we have a non-blocking
9904 channel which initiated this operation.
9907 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
9909 * configure.in: Add pkgconfig check for glib and gthread.
9910 * configure: Regenerate.
9912 2004-02-01 Michael Koch <konqueror@gmx.de>
9914 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
9916 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
9917 * verify.cc (debug_print): Mark 'fmt' unused.
9919 2004-01-30 Michael Koch <konqueror@gmx.de>
9921 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
9922 * configure: Regenerated.
9923 * glib-2.0.m4: Removed.
9924 * gtk-2.0.m4: Removed.
9925 * libart.m4: Removed.
9928 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
9930 * gnu/java/net/PlainSocketImpl.java
9931 (inChannelOperation): New field.
9932 (isInChannelOperation): New accessor.
9933 (setInChannelOperation): New modifier.
9934 * gnu/java/nio/ServerSocketChannelImpl.java
9935 (accept): Set and reset our server socket's PlainSocketImpl's
9936 "in channel operation" indicator before and after delegating
9937 the accept to our server socket.
9938 * gnu/java/nio/SocketChannelImpl.java
9939 (connect): Set and reset our socket's PlainSocketImpl's "in channel
9940 operation" indicator before and after delegating the operation to
9944 * java/net/ServerSocket.java (implAccept): Don't throw an
9945 IllegalBlockingModeException if we have a non-blocking
9946 channel which initiated this accept operation.
9947 * java/net/Socket.java (connect): Don't throw an
9948 IllegalBlockingModeException if we have a non-blocking
9949 channel which initiated this connect operation.
9950 * java/nio/channels/spi/AbstractSelectableChannel.java
9951 (configureBlocking): Only call implConfigureBlocking() if
9952 the desired blocking mode is different from our current one.
9954 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
9956 * java/io/BufferedReader.java (sbuf): New field.
9957 (readLine): Use String.valueOf instead of new String() as per
9958 Per Bothner's suggestion. Use instance sbuf field instead of a
9959 local StringBuffer instance.
9960 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
9961 caller's buffer to refill().
9962 (read(void)): Pass our internal work buffer to refill if our
9963 input queue is empty.
9964 (refill): Changed return type to int. Use the specified buffer
9965 instead of our work buffer as per Bryce McKinlay's suggestion.
9966 Return the number of characters read or -1 for EOF.
9968 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9970 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
9972 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9974 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
9975 * Makefile.in: Re-generated.
9976 * gnu/awt/xlib/XFontPeer.java: New file.
9977 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
9978 (setClip): Commented out debug printout.
9979 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
9980 (getFontPeer): Return XFontPeer.
9981 (getLocalGraphicsEnvironment): New method.
9982 (getClasspathFontPeer): New method.
9983 (createFont): New method.
9985 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9987 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
9990 2004-01-29 Kim Ho <kho@redhat.com>
9992 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9993 (gtkLayoutSetVisible): New method
9994 (setMenuBar): Hide layout before setting MenuBar
9995 and reshow it after.
9996 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9997 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
9999 2004-01-28 Michael Koch <konqueror@gmx.de>
10001 * gnu/java/lang/ClassHelper.java
10002 (getPackagePortion): Removed.
10004 2004-01-28 Michael Koch <konqueror@gmx.de>
10006 * javax/swing/JComponent.java
10007 (listenerList): Initalize globally.
10008 (ancestor_list): Removed.
10009 (veto_list): Removed.
10010 (change_list): Removed.
10011 (get_veto_list): Removed.
10012 (get_change_list): Removed.
10013 (get_ancestor_list): Removed.
10014 (removeAncestorListener): Reimplemented.
10015 (removePropertyChangeListener): Likewise.
10016 (removeVetoableChangeListener): Likewise.
10017 (addAncestorListener): Likewise.
10018 (addPropertyChangeListener): Likewise.
10019 (addVetoableChangeListener): Likewise.
10020 (getListeners): New method.
10021 (getAncestorListeners): Likewise.
10022 (getVetoableChangeListeners): Likewise.
10023 (fireVetoableChange): Throws PropertyVetoException.
10024 * javax/swing/JEditorPane.java
10025 (JEditorPane): Throws IOException.
10027 2004-01-28 David Jee <djee@redhat.com>
10029 * gnu/java/awt/peer/gtk/GtkFramePeer.java
10030 (create): Set the default foreground color to
10031 java.awt.SystemColor.windowText.
10033 2004-01-27 Michael Koch <konqueror@gmx.de>
10035 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
10036 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
10037 Reindented to merge with classpath.
10039 2004-01-27 David Jee <djee@redhat.com>
10041 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10042 (addExposeFilter): Handle GtkFramePeer separately.
10043 (removeExposeFilter): Likewise.
10045 2004-01-27 Michael Koch <konqueror@gmx.de>
10047 * gnu/java/net/protocol/http/Connection.java
10048 (getOutputStream): Fixed typo.
10050 2004-01-27 Michael Koch <konqueror@gmx.de>
10052 * java/lang/Class.java
10053 (getConstructor): Removed SecurityException from throws clause.
10054 (_getConstructors): Likewise.
10055 (getConstructors): Likewise.
10056 (getDeclaredConstructor): Likewise.
10057 (getDeclaredClasses): Likewise.
10058 (getDeclaredConstructors): Likewise.
10059 (getDeclaredField): Likewise.
10060 (getDeclaredMethod): Likewise.
10061 (getDeclaredMethods): Likewise.
10062 (getField): Likewise.
10063 (getMethod): Likewise.
10064 (getMethods): Likewise.
10066 2004-01-27 Kim Ho <kho@redhat.com>
10068 * gnu/java/awt/peer/gtk/GtkFramePeer.java
10069 (removeMenuBarPeer): Remove MenuBarPeer argument.
10070 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
10071 (dispose): Call native method.
10072 * java/awt/Frame.java (setMenuBar): Create and remove
10073 MenuBar peers only if the Frame has a peer.
10074 (addNotify): Create the MenuBar peer if one exists.
10075 (removeNotify): Remove MenuBar peer if one exists.
10076 * java/awt/Menu.java: Fix imports.
10077 (addNotify): Don't use full class name.
10078 (removeNotify): Call removeNotify on all children.
10079 * java/awt/MenuBar.java (removeNotify): Call
10080 removeNotify on all children.
10081 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10082 (removeMenuBarPeer): Remove MenuBarPeer argument.
10083 Iterate through children to find the Frame's MenuBar.
10084 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
10086 (dispose): Remove references to the MenuComponent.
10088 2004-01-27 Michael Koch <konqueror@gmx.de>
10090 * javax/swing/AbstractCellEditor.java: Reformated.
10091 * javax/swing/DefaultListSelectionModel.java
10092 (listenerList): Made protected.
10093 (addListSelectionListener): Javadoc added.
10094 (removeListSelectionListener): Likewise.
10095 (getListeners): Likewise.
10096 (getListSelectionListeners): Likewise.
10097 * javax/swing/JComboBox.java: Merged copyright year.
10098 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
10100 2004-01-26 Andrew Haley <aph@redhat.com>
10102 * javax/swing/table/JTableHeader.java: Extend JComponent
10104 2004-01-26 Kim Ho <kho@redhat.com>
10106 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
10109 2004-01-26 Kim Ho <kho@redhat.com>
10111 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
10113 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
10114 height and let the Layout Managers readjust anything that
10116 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10117 (moveLayout): New method. Shift everything in the Gtk
10118 layout in the Y direction by an offset.
10120 2004-01-26 David Jee <djee@redhat.com>
10122 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10123 (handleEvent): Implemented. Handles PaintEvents.
10124 (paint): Implemented. Use GTK native methods to queue updates
10125 for this heavyweight peer.
10126 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10127 (handleEvent): Removed.
10128 * java/awt/Component.java
10129 (paint): Implemented. Explictly paint the heavyweight peer.
10130 (update): Clear the background for heavyweight components.
10131 (paintAll): No need to call peer.paint() anymore.
10132 (processEvent): Don't process PaintEvents here. It's now done in
10133 the peer's handleEvent().
10134 (processPaintEvent): Removed.
10135 * java/awt/Container.java
10136 (paint): No need to call super.paint(). Visit heavyweight
10138 (update): Don't clear the background here. It's done in
10139 Component.update().
10140 (visitChildren): Added check to not recurse into Containers.
10141 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10142 (filter_expose_event_handler): New method. Filter unwanted
10143 expose events while painting heavyweight peers.
10144 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
10145 New method. Connect filter and block pre_event_handler.
10146 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
10147 New method. Disconnect filter and unblock pre_event_handler.
10148 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
10149 New method. Invalidate and update given area.
10150 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10151 (pre_event_handler): Add checks for unwanted expose events.
10153 2004-01-26 David Jee <djee@redhat.com>
10155 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10156 (find_bg_color_widget): For GtkButton, return its child.
10158 2004-01-26 Kim Ho <kho@redhat.com>
10160 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
10162 (setMenuBar): Grab MenuBar height and change insets.
10163 (setBounds): Account for MenuBar height.
10164 (postInsetsChangedEvent): Ditto.
10165 (postSizeAllocateEvent): Remove.
10166 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10167 (menubar_resize_cb): Remove
10168 (setMenuBarPeer): Remove callback.
10169 (getMenuBarHeight): Use size requisition instead of
10172 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
10174 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
10175 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
10177 (setColumns): Remove FIXME -- peer will retrieve number of
10178 columns by calling getColumns.
10179 (setRows): Likewise for number of rows.
10180 (next_text_number): New field.
10181 (paramString): Fix param string.
10182 (generateName): New method.
10183 (getUniqueLong): New method.
10185 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
10187 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
10188 image observer of image loading status.
10189 (getImage (String)): Start image production.
10190 (getImage (URL)): Likewise.
10192 2004-01-25 Michael Koch <konqueror@gmx.de>
10194 * java/lang/Class.java: Imports reworked, reformated.
10195 (Class): Javadoc added.
10196 (forName): Likewise.
10197 (getClasses): Likewise.
10198 (getClassLoader): Likewise.
10199 (getComponentType): Likewise.
10200 (getConstructor): Likewise.
10201 (getConstructors): Likewise.
10202 (getDeclaredConstructor): Likewise.
10203 (getDeclaredClasses): Likewise.
10204 (getDeclaredConstructors): Likewise.
10205 (getDeclaredField): Likewise.
10206 (getDeclaredMethod): Likewise.
10207 (getDeclaredMethods): Likewise.
10208 (getDeclaringClass): Likewise.
10209 (getField): Likewise.
10210 (getInterfaces): Likewise.
10211 (getMethod): Likewise.
10212 (getMethods): Likewise.
10213 (getModifiers): Likewise.
10214 (getName): Likewise.
10215 (getResource): Likewise.
10216 (getResourceAsStream): Likewise.
10217 (getSigners): Likewise.
10218 (setSigners): Likewise.
10219 (getSuperclass): Likewise.
10220 (isArray): Likewise.
10221 (isAssignableFrom): Likewise.
10222 (isInstance): Likewise.
10223 (isInterface): Likewise.
10224 (isPrimitive): Likewise.
10225 (newInstance): Likewise.
10226 (getProtectionDomain): Likewise.
10227 (toString): Likewise.
10229 (initializeClass): Likewise.
10230 (finalize): Likewise.
10232 2004-01-24 Michael Koch <konqueror@gmx.de>
10234 * gnu/java/net/protocol/jar/Connection.java
10235 (hdrHash): Removed.
10237 (gotHeaders): Removed.
10238 (getHeaderField): Removed.
10239 (getHeaderFields): Removed.
10240 (getHeaderFieldKey): Removed.
10242 (getField): Removed.
10243 (getHeaders): Removed.
10245 2004-01-24 Michael Koch <konqueror@gmx.de>
10247 * Makefile.am: Added library version to gtk peer lib.
10248 * Makefile.in: Regenerated.
10250 2004-01-24 Michael Koch <konqueror@gmx.de>
10252 * java/util/zip/InflaterInputStream.java: Merged class documentation
10255 2004-01-21 Jakub Jelinek <jakub@redhat.com>
10257 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
10258 header. For __powerpc64__ provide the default-signal.h definitions
10260 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
10261 instead of the dummy definitions.
10262 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
10263 (powerpc64*-*): Remove with_libffi_default.
10264 Only add -mminimal-toc for 64-bit compilations.
10265 * configure.in: Use powerpc-signal.h on powerpc64 as well.
10266 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
10267 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
10268 * configure: Rebuilt.
10270 2004-01-23 Michael Koch <konqueror@gmx.de>
10272 * gnu/java/nio/FileLockImpl.java: Compile fixes.
10274 2004-01-23 Michael Koch <konqueror@gmx.de>
10276 * java/lang/VMClassLoader.java: Reworked imports.
10278 2004-01-23 Michael Koch <konqueror@gmx.de>
10280 * javax/swing/AbstractAction.java: Reformated.
10282 2004-01-23 Michael Koch <konqueror@gmx.de>
10284 * java/text/CollationElementIterator.java:
10285 (setText): New method.
10287 2004-01-23 Michael Koch <konqueror@gmx.de>
10289 * gnu/java/nio/FileLockImpl.java:
10290 Fixed filename in copyright.
10291 (released): Removed.
10292 (finalize): New method.
10293 * gnu/java/nio/natFileLockImpl.cc
10294 (releaseImpl): Implemented.
10295 * java/nio/channels/FileChannelImpl.java:
10297 (lock): Implemented.
10298 (lockImpl): New method.
10299 (tryLock): Implemented.
10300 (tryLockImpl): New method.
10301 * java/nio/channels/natFileChannelImpl.cc
10302 (lockImpl): New method.
10303 (tryLockImpl): New method.
10305 2004-01-23 Michael Koch <konqueror@gmx.de>
10307 * java/io/FileDescriptor.java
10308 (lock): New method.
10309 (tryLock): New method.
10310 (unlock): New method.
10311 * java/io/natFileDescriptorEcos.cc
10312 (lock): New method.
10313 (tryLock): New method.
10314 (unlock): New method.
10315 * java/io/natFileDescriptorPosix.cc
10316 (lock): New method.
10317 (tryLock): New method.
10318 (unlock): New method.
10319 * java/io/natFileDescriptorWin32.cc
10320 (lock): New method.
10321 (tryLock): New method.
10322 (unlock): New method.
10324 2004-01-23 Michael Koch <konqueror@gmx.de>
10326 * java/io/FileDescriptor.java
10327 (sync): Moved around, added javadoc.
10332 (setLength): Likewise.
10334 (getLength): Likewise.
10335 (getFilePointer): Likewise.
10337 (available): Likewise.
10338 (finalize): Likewise.
10340 2004-01-23 Michael Koch <konqueror@gmx.de>
10342 * javax/swing/AbstractAction.java: Reformated.
10343 (getPropertyChangeListeners): New method.
10344 * javax/swing/AbstractCellEditor.java: Reformated.
10345 (getCellEditorListeners): New method.
10346 * javax/swing/DefaultListSelectionModel.java
10347 (listenerList): New field.
10348 (listeners): Removed.
10349 (get_listeners): Removed.
10350 (addListSelectionListener): Rewritten.
10351 (removeListSelectionListener): Rewritten.
10352 (getListSelectionListeners): New method.
10353 (getListeners): New method.
10354 * javax/swing/JComboBox.java: Imports reworked.
10355 (addActionListener): Implemented.
10356 (removeActionListener): Implemented.
10357 (addItemListener): Implemented.
10358 (removeItemListener): Implemented.
10359 (addPopupMenuListener): Implemented.
10360 (removePopupMenuListener): Implemented.
10361 (getActionListeners): New method.
10362 (getItemListeners): New method.
10363 (getPopupMenuListeners): New method.
10365 2004-01-23 Michael Koch <konqueror@gmx.de>
10367 * gnu/java/net/protocol/http/Connection.java
10368 (connect): Don't initialize bufferedOutputStream if not needed.
10369 (sendRequest): Set property for content length if content is present.
10370 Write content only if present.
10371 (getOutputStream): Check if already connected, dont connect,
10372 initalize bufferedOutputStream if needed.
10374 2004-01-23 Michael Koch <konqueror@gmx.de>
10376 * java/io/FileDescriptor.java
10377 (in, out, err): Added javadoc.
10378 (static): Merged loading code.
10379 (fd, position): Moved around.
10381 2004-01-23 Michael Koch <konqueror@gmx.de>
10383 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
10386 2004-01-23 Michael Koch <konqueror@gmx.de>
10388 * java/lang/Class.java,
10389 java/lang/Object.java,
10390 java/lang/Thread.java: Merged copyright with classpath.
10392 2004-01-23 Michael Koch <konqueror@gmx.de>
10394 * java/io/FileDescriptor.java: Merged copyright with classpath to
10395 start merging this class.
10397 2004-01-22 Tom Tromey <tromey@redhat.com>
10400 * testsuite/libjava.lang/pr13107_2.xfail: New file.
10401 * testsuite/libjava.lang/pr13107_3.xfail: New file.
10402 * testsuite/libjava.lang/pr13107_3.java: New file.
10403 * testsuite/libjava.lang/pr13107_3.out: New file.
10404 * testsuite/libjava.lang/pr13107_2.java: New file.
10405 * testsuite/libjava.lang/pr13107_2.out: New file.
10406 * testsuite/libjava.lang/pr13107.java: New file.
10407 * testsuite/libjava.lang/pr13107.out: New file.
10408 * verify.cc (jsr_ptrs): Removed.
10409 (entry_points): Likewise.
10410 (struct subr_info): Likewise.
10411 (struct subr_entry_info): Likewise.
10412 (type_val::unused_by_subroutine_type): Likewise.
10413 (type::merge): Don't handle unused_by_subroutine_type.
10414 (type::print): Likewise.
10415 (state::flags): Removed.
10416 (state::subroutine): Likewise.
10417 (state::seen_subrs): Likewise.
10418 (state::NO_STACK): Likewise.
10419 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
10420 (state): Updated all methods.
10421 (state::clean_subrs): Removed.
10422 (state::state): Removed `ret_semantics' flag.
10423 (state::copy): Likewise.
10424 (state::add_subr): Removed.
10425 (state::enter_subroutine): Likewise.
10426 (type::set_return_address): New method.
10427 (handle_jsr_insn): Set return address on the type. Always
10428 invalidate PC after call.
10429 (check_nonrecursive_call): Removed.
10430 (~_Jv_BytecodeVerifier): Updated.
10431 (branch_prepass): Removed special handling of jsr.
10432 (note_branch_target): Likewise.
10433 (get_subroutine): Removed.
10434 (state::merge): Don't merge subroutines and don't handle
10435 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
10436 (state::note_variable): Removed.
10437 (state::is_unmerged_ret_state): Likewise.
10438 (state::print): Updated.
10439 (set_variable): Likewise.
10440 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
10441 and jsr_semantics arguments. Updated for new reverification
10443 (pop_jump): Rewrote.
10444 (construct_primitive_array_type): Updated.
10445 (state::next): Removed.
10446 (INVALID_STATE): New define.
10447 (state::INVALID): Removed.
10448 (state::NO_NEXT): New value.
10449 (state::pc, state::next): New fields.
10450 (state::get_pc): New method.
10451 (next_verify_pc): Removed.
10452 (next_verify_state): New field.
10453 (verify_instructions_0): Always check for falling off end.
10454 (linked): New type.
10455 (linked_utf8): Removed.
10456 (states): Changed type.
10457 (type::state_mergeable_p): New method.
10458 (state::state_mergeable_p): Likewise.
10459 (handle_ret_insn): Removed most code.
10460 (state::reverify): New method.
10461 (add_new_state): Likewise.
10462 (state::set_pc): Likewise.
10464 2004-01-22 Jeff Sturm <jsturm@one-point.com>
10467 * testsuite/libjava.compile/PR13733.java: New file.
10468 * testsuite/libjava.compile/PR13733.xfail: New file.
10470 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
10471 Michael Koch <konqueror@gmx.de>
10473 * javax/swing/table/DefaultTableCellRenderer.java
10474 (DefaultTableCellRenderer): Added javadoc for the class and for
10475 the constructor, Border instance, create an EmptyBorder.
10476 (UIResource): Removed the comment at the end of the class
10477 (setForeground): New method.
10478 (setBackground): New method.
10479 (updateUI): New method.
10480 (getTableCellRendererComponent): Rewritten with the help of
10481 dvholten and Stephane Meslin-Weber.
10482 (validate): New method.
10483 (repaint): New method.
10484 (firePropertyChange): New method.
10485 (setValue): New method.
10487 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
10489 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10490 (connectJObject): Replace printf calls with g_assert statements.
10491 Move property-notify-event signal connection to ...
10492 (connectSignals): Connect property-notify-event signal. Iterate
10493 through the vbox's children to find layout.
10495 2004-01-22 Graydon Hoare <graydon@redhat.com>
10497 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
10498 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
10499 Predicate static initialization on GtkToolkit.useGraphics2D().
10500 * java/awt/Component.java (processPaintEvent): Consume event.
10501 * javax/swing/AbstractButton.java: Reimplement, document.
10502 * javax/swing/DefaultButtonModel.java: Reimplement, document.
10503 * javax/swing/JComponent.java (paint): Use double buffer.
10504 (listenerList): Enable member.
10505 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
10506 * javax/swing/JToggleButton.java
10507 (JToggleButton): Modify model constructor.
10508 * javax/swing/SwingUtilities.java
10509 (layoutCompoundLabel): Adjust arithmetic.
10510 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
10511 * javax/swing/plaf/basic/BasicGraphicsUtils.java
10512 (getPreferredButtonSize): Include margins in calculation.
10513 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10514 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
10515 Receive up events from subordinate layout component.
10517 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
10519 * java/awt/Component.java (show): Set visible to true before
10522 2004-01-21 Kim Ho <kho@redhat.com>
10524 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
10526 (removeMenuBarPeer): Make package private.
10527 (setMenuBarPeer): Make package private.
10528 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10529 (menubar_resize_cb): Mark attributes unused.
10530 (getMenuBarHeight): ditto.
10532 2004-01-21 David Jee <djee@redhat.com>
10534 * java/awt/Container.java
10535 (LightweightDispatcher.handleEvent): Add an extra check to avoid
10536 dispatching MOUSE_ENTERED event twice. Translate the point for
10537 the mouse event target before dispatching the event.
10539 2004-01-20 Jakub Jelinek <jakub@redhat.com>
10541 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
10542 lib_org_w3c_dom_la_LDFLAGS): New.
10543 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
10544 * Makefile.in: Rebuilt.
10546 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
10548 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
10549 Calculate proper offsets for heavyweight components packed in
10550 lightweight containers.
10552 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
10553 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
10554 (native create): Add width parameter.
10555 (create): Calculate text entry width based on current font's
10556 metrics and number of columns. Set TextField's font if not
10557 already set. Call native create.
10558 (gtkEntryGetBorderWidth): New native method.
10559 (gtkEntryGetSize): Remove method.
10560 (getMinimumSize): Call minimumSize.
10561 (getPreferredSize): Call preferredSize.
10562 (minimumSize): Calculate minimum size based on backing
10563 GtkEntry's borders, font metrics and number of columns.
10564 (preferredSize): Likewise for preferred size.
10565 (get_border_width): New static function.
10567 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
10568 Override GtkWindowPeer's setResizable method to account for menu
10569 bar height when setting the frame's size.
10571 2004-01-19 Matthias Klose <doko@debian.org>
10573 * libtool-version: Increased `current' to 6.
10575 2004-01-19 Kim Ho <kho@redhat.com>
10577 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10578 (connectJObject): Iterate through the vbox's children to find layout.
10580 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10582 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
10583 isDispatchThread method to replace wrong test condition.
10585 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10587 * java/awt/EventQueue.java (pop): Prevent racing condition to add
10588 events to the queue out of order by acquiring locks in the proper
10589 order and not by releasing one before acquiring the other.
10591 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10593 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
10594 visible so that dialog can be reused.
10596 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10598 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
10599 events may be handled by any queue in the stack.
10601 2004-01-19 Kim Ho <kho@redhat.com>
10603 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
10604 MenuBarPeer parameter.
10605 (removeMenuBarPeer): New native method.
10606 (setMenuBar): Call remove if menu bar is null. Adjust insets
10608 (postSizeAllocateEvent): New method. Called when menu bar size is
10609 allocated. Adjust insets and redo layout.
10610 (GtkFramePeer): Set menu bar during frame creation.
10611 (postConfigureEvent): Adjust position and size to accomodate
10613 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
10614 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
10615 (addNotify): Create the peer if it doesn't exist and call addNotify
10616 for the menu's items.
10617 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
10618 * java/awt/MenuItem.java (addNotify): Create the peer if it
10620 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10621 (removeMenuBarPeer): New method. Remove menu bar on the current
10623 (setMenuBarPeer): Add the menu bar to the current frame and the
10624 callback for size-allocate events on the menu bar.
10625 (getMenuBarHeight): Add menu bar parameter.
10626 (menubar_resize_cb): New callback method for postSizeAllocate events.
10628 Also: Fix indentation on last ChangeLog entry.
10630 2004-01-16 Kim Ho <kho@redhat.com>
10632 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10633 (gtkWidgetGetDimensions): Remove.
10634 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10635 (gtkWidgetGetDimensions): Remove.
10637 2004-01-16 Tom Tromey <tromey@redhat.com>
10639 * java/awt/Container.java: Typo and indentation fixes.
10641 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
10642 * java/lang/natVMClassLoader.cc: ...here. New file.
10643 * Makefile.in: Rebuilt.
10644 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
10646 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10648 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
10649 Discard GDK_ENTER_NOTIFY related to ungrabs.
10651 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10653 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
10654 is called for an intermediate queue.
10656 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
10658 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10659 (window_property_changed_cb): Set id_set.
10661 2004-01-16 Kim Ho <kho@redhat.com>
10663 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
10664 it is a FileDialog and has dimensions of 0 by 0, then the initial
10665 size is set to size request plus insets.
10666 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10667 (gtkWidgetGetDimensions): Override method.
10668 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10669 (gtkWidgetGetDimensions): Override method. Returns size request plus
10672 2004-01-16 Andrew Haley <aph@redhat.com>
10674 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
10675 * sysdep/i386/locks.h: Likewise.
10677 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10679 * java/awt/EventDispatchThread.java (run): Stop running when
10681 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
10682 Reset the queue after transferring its contents.
10683 (push): Start a new dispatch thread if none is running.
10685 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
10687 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10688 (doPolygon): set fill rule of polygon to
10689 WIND_EVEN_ODD by default.
10691 2004-01-15 Olga Rodimina <rodimina@redhat.com>
10693 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10694 Implemented rendering hints related methods.
10695 (getDefaultHints): New helper method. Returns
10696 default rendering hints.
10697 (walkPath): changed to normalize path if
10698 the KEY_STROKE_CONTROL key is in "normalize" mode.
10699 (draw3DRect): changed coordinates of rectangle by +0.5
10700 if in "normalize" mode.
10702 2004-01-15 Tom Tromey <tromey@redhat.com>
10704 * Makefile.in: Rebuilt.
10705 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
10706 (%.lo: %.java) Filter out StackTrace.lo.
10708 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
10710 * configure.in: Add in AC_PREREQ(2.13)
10711 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
10714 2004-01-14 Nathan Bryant <nbryant@optonline.net>
10715 Tom Tromey <tromey@redhat.com>
10718 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
10719 array to superclass.
10720 (init): Changed interface; add URLs here.
10721 (initialize): New static method.
10722 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
10723 (_Jv_RunMain): ... not here.
10725 2004-01-14 Michael Koch <konqueror@gmx.de>
10727 * java/text/MessageFormat.java:
10728 Added descriptions to exceptions.
10729 This fixes PR libgcj/2429.
10731 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10733 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
10734 (push): Make sure push is performed at the top of the thread stack.
10736 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10738 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
10739 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
10740 (native create): Add width and height parameters. Set text
10741 view's size request according to new parameters.
10742 (create): Calculate text view size based on current font's
10743 metrics and number of rows and columns. Set TextArea's font if
10744 not already set. Call native create.
10745 (getMinimumSize): Call minimumSize.
10746 (getPreferredSize): Call preferredSize.
10747 (getHScrollbarHeight): New method.
10748 (getVScrollbarWidth): New method.
10749 (minimumSize): Calculate minimum size based on scrollbar
10750 visibility, scrollbar sizes, font metrics and number of rows and
10752 (preferredSize): Likewise for preferred size.
10753 (gtkTextGetSize): Remove method.
10755 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10757 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10758 (initializeInsets): Remove method.
10759 (GtkComponentPeer): Initialize insets field. Remove call to
10761 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
10763 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
10765 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
10766 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
10767 (latestInsets): Remove field.
10768 (native create): Add insets parameter. Call
10769 window_get_frame_extents. Set the window's default size and
10770 size request based on its frame extents.
10771 (create): Initialize insets.
10772 (postInsetsChangedEvent): New method.
10773 (postConfigureEvent): Remove parameters top, left, bottom,
10774 right. Remove insets-related logic.
10775 (connectJObject): Handle property-notify-event.
10776 (window_get_frame_extents, request_frame_extents,
10777 property_notify_predicate, window_property_changed_cb): New
10779 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10780 (pre_event_handler): Remove insets-related logic for configure
10782 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
10783 Update postConfigureEvent signature.
10785 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10787 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
10788 to handle Window "Closing" events.
10790 2004-01-13 David Jee <djee@redhat.com>
10792 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10793 (setBackground): New method. Children with no explicitly-set
10794 background will be repainted with the parent container's new
10797 2004-01-13 David Jee <djee@redhat.com>
10799 * Makefile.am: Add BitwiseXORComposite.java.
10800 * Makefile.in: Regenerated.
10801 * gcj/Makefile.in: Regenerated.
10802 * include/Makefile.in: Regenerated.
10803 * testsuite/Makefile.in: Regenerated.
10805 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10807 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
10808 not show modal dialogs twice and so that it allows showing a modal
10809 dialog from another modal dialog.
10811 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10813 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
10814 and run secondary dispatch thread to process event queue while this
10817 2004-01-12 Graydon Hoare <graydon@redhat.com>
10819 * gnu/java/awt/gtk/GdkGraphics2D.java
10820 (static): Check GtkToolkit before initializing static state.
10821 (Graphics2D): Don't construct transform with 0.5 unit offset.
10823 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
10825 * gnu/java/awt/BitwiseXORComposite.java: Add.
10826 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
10827 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
10828 (BitwiseXORComposite): Remove inner class.
10830 2004-01-11 Michael Koch <konqueror@gmx.de>
10832 * gnu/java/lang/reflect/TypeSignature.java
10833 (getEncodingOfClass): Documentation fixed.
10834 (getClassForEncoding): Give class loader to Class.forName().
10835 Documentation fixed.
10837 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
10839 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
10841 2004-01-11 Michael Koch <konqueror@gmx.de>
10843 * javax/swing/undo/StateEditable.java
10844 (RCSID): Removed redundant modifiers.
10846 2004-01-10 Michael Koch <konqueror@gmx.de>
10848 * javax/print/attribute/EnumSyntax.java
10849 (getStringTable): Made protected.
10850 (getEnumValueTable): Likewise.
10851 * javax/print/attribute/standard/JobKOctetsProcessed.java
10852 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
10853 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
10854 (JobMediaSheetsCompleted): Made class final.
10855 * javax/print/attribute/standard/OutputDeviceAssigned.java
10856 (getName): Fixed typo.
10857 * javax/print/attribute/standard/RequestingUserName.java
10858 (serialVersionUID): Fixed value.
10860 2004-01-10 Michael Koch <konqueror@gmx.de>
10862 * javax/swing/plaf/basic/BasicButtonUI.java,
10863 javax/swing/plaf/basic/BasicCheckBoxUI.java,
10864 javax/swing/plaf/basic/BasicListUI.java,
10865 javax/swing/plaf/basic/BasicOptionPaneUI.java,
10866 javax/swing/plaf/basic/BasicPanelUI.java,
10867 javax/swing/plaf/basic/BasicRadioButtonUI.java,
10868 javax/swing/plaf/basic/BasicScrollPaneUI.java,
10869 javax/swing/plaf/basic/BasicToggleButtonUI.java,
10870 javax/swing/plaf/basic/BasicViewportUI.java:
10871 Fixed import statements.
10873 2004-01-10 Michael Koch <konqueror@gmx.de>
10875 * gnu/java/awt/image/ImageDecoder.java
10876 (produce): Made public.
10877 * gnu/java/awt/peer/GLightweightPeer.java,
10878 gnu/java/awt/peer/gtk/GtkToolkit.java:
10881 2004-01-10 Michael Koch <konqueror@gmx.de>
10883 * javax/swing/JRadioButtonMenuItem.java,
10884 javax/swing/JSeparator.java,
10885 javax/swing/JSplitPane.java,
10886 javax/swing/JTextPane.java,
10887 javax/swing/JToolBar.java,
10888 javax/swing/ListCellRenderer.java,
10889 javax/swing/ListModel.java,
10890 javax/swing/MenuElement.java,
10891 javax/swing/OverlayLayout.java,
10892 javax/swing/ProgressMonitor.java,
10893 javax/swing/ProgressMonitorInputStream.java,
10894 javax/swing/Renderer.java,
10895 javax/swing/RootPaneContainer.java,
10896 javax/swing/Scrollable.java,
10897 javax/swing/SingleSelectionModel.java,
10898 javax/swing/ToolTipManager.java,
10899 javax/swing/ViewportLayout.java,
10900 javax/swing/event/DocumentEvent.java,
10901 javax/swing/event/SwingPropertyChangeSupport.java,
10902 javax/swing/event/TreeSelectionEvent.java,
10903 javax/swing/event/UndoableEditEvent.java,
10904 javax/swing/text/AbstractDocument.java,
10905 javax/swing/text/AttributeSet.java,
10906 javax/swing/text/Caret.java,
10907 javax/swing/text/ComponentView.java,
10908 javax/swing/text/DefaultCaret.java,
10909 javax/swing/text/DefaultEditorKit.java,
10910 javax/swing/text/Document.java,
10911 javax/swing/text/EditorKit.java,
10912 javax/swing/text/GapContent.java,
10913 javax/swing/text/Keymap.java,
10914 javax/swing/text/MutableAttributeSet.java,
10915 javax/swing/text/PlainEditorKit.java,
10916 javax/swing/text/Segment.java,
10917 javax/swing/text/Style.java,
10918 javax/swing/text/StyledDocument.java,
10919 javax/swing/text/StyledEditorKit.java,
10920 javax/swing/text/TextAction.java,
10921 javax/swing/text/View.java: Fixed import statements.
10923 2004-01-08 Graydon Hoare <graydon@redhat.com>
10925 * javax/swing/JLayeredPane.java: Rewrite to accomodate
10926 djee@redhat.com's recent inverse ordering of Container elements.
10928 2004-01-09 Michael Koch <konqueror@gmx.de>
10930 * gnu/java/lang/ArrayHelper.java
10931 (equalsArray): Removed.
10933 2004-01-09 Andrew Haley <aph@redhat.com>
10935 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
10936 a Utf8Const field before looking at its class.
10938 2004-01-09 Michael Koch <konqueror@gmx.de>
10940 * javax/print/attribute/standard/DocumentName.java,
10941 javax/print/attribute/standard/JobHoldUntil.java,
10942 javax/print/attribute/standard/JobMessageFromOperator.java,
10943 javax/print/attribute/standard/JobName.java,
10944 javax/print/attribute/standard/JobOriginatingUserName.java,
10945 javax/print/attribute/standard/OutputDeviceAssigned.java,
10946 javax/print/attribute/standard/PrinterInfo.java,
10947 javax/print/attribute/standard/PrinterLocation.java,
10948 javax/print/attribute/standard/PrinterMakeAndModel.java,
10949 javax/print/attribute/standard/PrinterMessageFromOperator.java,
10950 javax/print/attribute/standard/PrinterName.java,
10951 javax/print/attribute/standard/RequestingUserName.java: New files.
10952 * Makefile.am (javax_source_files): Added new files.
10953 * Makefile.in: Regenerated.
10955 2004-01-09 Michael Koch <konqueror@gmx.de>
10957 * javax/swing/AbstractAction.java,
10958 javax/swing/AbstractSet.java,
10959 javax/swing/Action.java,
10960 javax/swing/ActionMap.java,
10961 javax/swing/BoundedRangeModel.java,
10962 javax/swing/ButtonModel.java,
10963 javax/swing/CellEditor.java,
10964 javax/swing/CellRendererPane.java,
10965 javax/swing/ComboBoxEditor.java,
10966 javax/swing/DebugGraphics.java,
10967 javax/swing/DefaultCellEditor.java,
10968 javax/swing/DefaultCellRenderer.java,
10969 javax/swing/DefaultComboBoxModel.java,
10970 javax/swing/DefaultDesktopManager.java,
10971 javax/swing/DefaultFocusManager.java,
10972 javax/swing/DefaultListCellRenderer.java,
10973 javax/swing/Icon.java,
10974 javax/swing/JButton.java,
10975 javax/swing/JCheckBoxMenuItem.java,
10976 javax/swing/JDesktopPane.java,
10977 javax/swing/JEditorPane.java,
10978 javax/swing/JMenu.java,
10979 javax/swing/JPanel.java,
10980 javax/swing/JPasswordField.java,
10981 javax/swing/JPopupMenu.java,
10982 javax/swing/JProgressBar.java: Reworked imports.
10984 2004-01-09 Michael Koch <konqueror@gmx.de>
10986 * java/awt/geom/PathIterator.java
10987 (WIND_EVEN_ODD): Removed redundant modifiers.
10988 (WIND_NON_ZERO): Likewise.
10989 (SEG_MOVETO): Likewise.
10990 (SEG_LINETO): Likewise.
10991 (SEG_QUADTO): Likewise.
10992 (SEG_CUBICTO): Likewise.
10993 (SEG_CLOSE): Likewise.
10994 * java/awt/image/SinglePixelPackedSampleModel.java:
10995 Removed redundant semicolon.
10996 * java/io/ObjectInputStream.java
10997 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
10998 * java/util/logging/Filter.java
10999 (isLoggable): Removed redundant modifier.
11000 * java/util/logging/LogManager.java:
11001 Removed redundant semicolon.
11002 * java/util/logging/XMLFormatter.java
11003 (format): Removed unused variable "key".
11005 2004-01-08 Fernando Nasser <fnasser@redhat.com>
11007 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
11008 New name for the former setFile native method.
11009 (setFile): New method.
11010 (setDirectory): Implemented.
11011 (connectSignals): New native method.
11012 (setFilenameFilter): Improve comment.
11013 (getGraphics): Comment.
11014 (gtkHideFileDialog): New method.
11015 (gtkDisposeFileDialog): New method.
11016 (gtkSetFilename): New method.
11017 * java/awt/Dialog.java (show): Block on modal dialogs, but only
11018 for FileDialog for now.
11019 (hide): New method.
11020 (dispose): New method.
11021 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
11022 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
11023 deprecated creation functions. Make dialog modal. Add it to the
11025 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
11027 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
11029 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
11031 (window_closed): New function.
11032 (ok_clicked): New function.
11033 (cancel_clicked): New function.
11035 2004-01-08 Michael Koch <konqueror@gmx.de>
11037 * javax/swing/JLayeredPane.java: Revert changes to standard
11038 boilerplate, reworked imports.
11040 2004-01-07 Tom Tromey <tromey@redhat.com>
11043 * verify.cc (state::merge): Copy changed locals out of subroutine
11045 (state::FLAG_CHANGED): New const.
11046 (state::FLAG_UNUSED): Likewise.
11047 (state::local_changed): Removed. Updated all users.
11048 (state::flags): New field.
11049 (state::merge): Added jsr_semantics argument, more logic.
11050 (push_jump_merge): Added jsr_semantics argument.
11051 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
11052 merging through the jsr instruction.
11054 2004-01-07 Tom Tromey <tromey@redhat.com>
11056 * scripts/MakeDefaultMimeTypes.java: Use \n, not
11059 2004-01-07 Graydon Hoare <graydon@redhat.com>
11061 * java/awt/Container.java (LightweightDispatcher): Implement.
11062 (visitChild): Reuse graphics object.
11063 (dispatchEventImpl): Optionally dispatch to lightweight.
11064 (addNotifyContainerChildren): Build LightweightDispatcher.
11066 2004-01-07 David Jee <djee@redhat.com>
11068 * java/awt/Container.java
11069 (update): Clear only the clipped region, instead of clearing the
11071 (visitChildren): Visit children in descending order.
11073 2004-01-07 Michael Koch <konqueror@gmx.de>
11075 * java/lang/reflect/Array.java: Merged documentation with classpath.
11077 2004-01-07 Michael Koch <konqueror@gmx.de>
11079 * java/text/CollationElementIterator.java
11080 (textIndex): Renamed from index.
11081 * java/text/CollationKey.java
11082 (collator): New member.
11083 (CollationKey): New argument for parent collator.
11084 (equals): Check for same collator, source string and key array.
11085 * java/text/RuleBasedCollator.java:
11087 (RuleBasedCollator): Don't re-initialize frenchAccents with default
11089 (getCollationElementIterator): Rewritten.
11090 (getCollationKey): Added new argument to CollationKey constructor.
11092 2004-01-07 Michael Koch <konqueror@gmx.de>
11094 * gnu/java/nio/DatagramChannelImpl.java
11095 (blocking): Removed.
11096 (DatagramChannelImpl): Call configureBlocking().
11097 (implConfigureBlocking): Dont initialize blocking.
11098 * gnu/java/nio/ServerSocketChannelImpl.java
11099 (blocking): Removed.
11100 (ServerSocketChannelImpl): Call configureBlocking().
11101 (implConfigureBlocking): Dont initialize blocking.
11102 * gnu/java/nio/SocketChannelImpl.java
11103 (blocking): Removed.
11104 (SocketChannelImpl): Call configureBlocking().
11105 (implConfigureBlocking): Dont initialize blocking.
11106 (connect): Use isBlocking().
11107 * java/nio/channels/spi/AbstractSelectableChannel.java
11108 (configureBlocking): Use blockingLock() instead of LOCK.
11109 Set blocking after successfully called implConfigureBlocking().
11110 (register): Use blockingLock() instead of LOCK.
11112 2004-01-07 Michael Koch <konqueror@gmx.de>
11114 * java/net/ServerSocket.java (isBound): Fixed documentation.
11116 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
11118 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
11119 (changeEvent): Create event object on demand.
11120 (DefaultBoundedRangeModel, toString, setValue, setExtent,
11121 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
11122 fireStateChanged): Re-written.
11123 * javax/swing/event/EventListenerList.java: Reformatted, document
11125 (toString): Implemented.
11126 (getListeners): Re-written.
11127 (remove): Re-written.
11129 (NO_LISTENERS): New singleton field.
11130 (listenerList): Declare as transient; document.
11131 (serialVersionUID): Document.
11132 (getListenerCount(Class)): More efficient implementation,
11133 also accepts null argument. Improve Javadoc.
11134 (getListenerCount()): Remove unnecessary cast; docfix.
11135 * javax/swing/undo/UndoableEditSupport.java:
11136 Re-format, document.
11137 (UndoableEditSupport): Set realSource field. Improve documentation.
11138 (_postEdit): Iterate over cloned listener vector.
11139 (toString): Don't emit realSource.
11140 (beginUpdate, endUpdate): Support nested updates.
11141 (postEdit): Use compound edit if present.
11143 2004-01-06 Graydon Hoare <graydon@redhat.com>
11145 * java/awt/Container.java (swapComponents): Add forgotten
11146 function, required for JLayeredPane change.
11148 2004-01-06 Michael Koch <konqueror@gmx.de>
11150 * java/text/CollationElementIterator.java: Reformated.
11151 (CollationElementIterator): Changed order of arguments.
11152 * java/text/RuleBasedCollator.java
11153 (RuleBasedCollator): Merged class documentation.
11154 (CollationElement): Added documentation.
11155 (compare): Reformated, renamed arguments.
11156 (equals): Likewise.
11157 (getCollationElementIterator): Likewise.
11158 (getCollationKey): Likewise.
11160 2004-01-06 Graydon Hoare <graydon@redhat.com>
11162 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
11164 2004-01-06 Michael Koch <konqueror@gmx.de>
11166 * gnu/java/net/protocol/file/Connection.java:
11167 Reformated copyright.
11168 (hdrHash): Removed.
11170 (gotHeaders): Removed.
11171 (getHeaderField): Removed.
11172 (getHeaderField): Removed.
11173 (getHeaderFieldKey): Removed.
11175 (getField): Removed.
11176 (getHeaders): Removed.
11178 2004-01-06 Michael Koch <konqueror@gmx.de>
11180 * javax/print/attribute/standard/DateTimeAtCompleted.java,
11181 javax/print/attribute/standard/DateTimeAtCreation.java,
11182 javax/print/attribute/standard/DateTimeAtProcessing.java,
11183 javax/print/attribute/standard/JobImpressionsCompleted.java,
11184 javax/print/attribute/standard/JobKOctets.java,
11185 javax/print/attribute/standard/JobKOctetsProcessed.java,
11186 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
11187 javax/print/attribute/standard/JobPrioritySupported.java: New files.
11188 * Makefile.am (javax_source_files): Added new files.
11189 * Makefile.in: Regenerated.
11191 2004-01-06 Michael Koch <konqueror@gmx.de>
11193 * java/net/URLConnection.java
11194 (contentHandler): Removed.
11196 (getHeaderFields): Return an empty map instead of null.
11197 (getContent): Connect if needed, renamed "cType" to "type" and
11198 "contentHandler" to "ch" and made it a local variable.
11199 (getPermission): Don't use package in class name.
11200 (setDefaultRequestProperty): Fixed typo in documentation.
11201 (initializeDateFormats): Made locale a local variable.
11203 2004-01-06 Michael Koch <konqueror@gmx.de>
11205 * java/lang/Package.java
11206 (getPackage): Get the current class loader directly.
11207 * java/lang/SecurityManager.java
11208 (currentLoadedClass): Dont iterate over class contexts.
11209 (classLoaderDepth): Don't check class loaders if everything is allowed.
11211 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
11213 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
11214 (pre_event_handler): Set all insets to 0 when a Configure event
11215 is received for a GtkPlug.
11216 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
11217 Make handle long, not int.
11218 (EmbeddedWindow()): New constructor.
11219 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
11221 (setHandle): New method.
11222 (getHandle): Return long, not int.
11223 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
11225 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
11226 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
11227 (create(long)): Take long parameter, not int. Cast gtk_plug_new
11228 argument to GdkNativeWindow.
11229 (construct): New method.
11230 (embed): New method.
11232 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
11233 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
11234 (create(int, int)): New method.
11235 (create): Call new create method.
11236 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
11238 (childResized): Remove native implementation. Implement in
11240 (getHScrollbarHeight, getVScrollbarWidth): Call
11241 gtk_widget_size_request to get scrollbar dimensions.
11242 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
11243 call getVScrollbarWidth and getHScrollbarHeight when vertical
11244 and horizontal scrollbars respectively are needed.
11245 (doLayout): Enlarge child if it is smaller than the viewport.
11247 2004-01-05 Fernando Nasser <fnasser@redhat.com>
11249 * java/awt/Dialog.java (constructor): Accept null title as per spec.
11250 * java/awt/FileDialog.java (constructor): Throw exception on invalid
11251 argument as per spec.
11253 2004-01-05 Fernando Nasser <fnasser@redhat.com>
11255 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
11257 (remove): Ditto. Also, Check for valid argument.
11258 (removeAll): Use peer interface method.
11259 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
11260 native add function.
11261 (nativeRemove): New name for native remove function.
11262 (getHistory): New native function.
11263 (constructor): Generate ItemEvent.
11264 (add): Ditto, if selection is changed.
11265 (remove): Ditto, ditto.
11266 (removeAll): Add implementation.
11267 (handleEvent): Remove. Dead code.
11268 (choicePostItemEvent): Add comment.
11269 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
11270 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
11271 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
11272 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
11273 comments and fix condition to change selection.
11274 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
11275 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
11276 remove all capability.
11277 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
11278 (item_activate): Add cast to remove compiler warning.
11280 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
11282 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
11283 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
11284 (getPreferredSize): Call preferredSize.
11285 (preferredSize): Call gtkWidgetGetPreferredDimensions.
11286 (getMinimumSize): Call minimumSize.
11287 (minimumSize): Call gtkWidgetGetPreferredDimensions.
11288 (gtkWidgetGetDimensions): Return the peer widget's current size
11290 (gtkWidgetGetPreferredDimensions): Return the peer widget's
11291 natural size request.
11293 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
11295 Thanks to Brian Gough <bjg@network-theory.com>
11296 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
11297 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
11299 2004-01-04 Matthias Klose <doko@debian.org>
11301 * aclocal.m4: Rebuilt using "aclocal -I .".
11302 * configure: Rebuilt.
11304 2004-01-03 Per Bothner <per@bothner.com>
11306 * java/util/Date.java (parse): Fix a number of problems.
11307 (skipParens): Remove no-longer-needed method.