1 2004-10-18 Andrew Haley <aph@redhat.com>
4 * gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Reorganize
5 and correct logic used to find interpreter.
7 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
9 * java/util/logging/LogManager.java
10 (findAncestor): Fixed IndexOutOfBoundsException.
12 2004-10-18 Michael Koch <konqueror@gmx.de>
14 * java/io/BufferedInputStream.java: Fixed @author tag.
15 (read): Simplified expression.
16 (read): Merged javadoc a bit more.
17 (read): Renamed 'remain' to 'totalBytesRead'.
18 * java/io/DataInputStream.java,
19 java/io/DataOutputStream.java,
20 java/io/ObjectInputStream.java,
21 java/io/ObjectOutputStream.java:
22 Reworked modifier order.
24 2004-10-18 Michael Koch <konqueror@gmx.de>
26 * java/net/Inet4Address.java: Merged file header and javadocs.
27 * java/net/Inet6Address.java: Likewise.
28 * java/net/InetAddress.java
29 (getCanonicalHostName): Create Inet4Address object instead of
30 InetAddress and add comment regarding IPv6.
31 (toString): Simplified.
33 2004-10-18 Michael Koch <konqueror@gmx.de>
35 * gnu/java/net/protocol/http/Connection.java,
36 java/nio/MappedByteBufferImpl.java,
37 java/text/RuleBasedCollator.java,
38 java/util/ResourceBundle.java:
39 Reworked import statements.
41 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
43 * java/security/IdentityScope.java
44 (systemScope): Removed useless initializer.
45 * java/security/Policy.java
46 (currentPolicy): Likewise.
48 2004-10-18 Michael Koch <konqueror@gmx.de>
50 * java/lang/System.java: Revert accidential change.
52 2004-10-18 Michael Koch <konqueror@gmx.de>
54 * java/lang/Math.java,
55 java/lang/Package.java,
56 java/lang/Runtime.java,
57 java/lang/StrictMath.java,
58 java/lang/System.java,
59 java/lang/Thread.java,
60 java/lang/ThreadLocal.java,
62 Reworked import statements, HTML in javadocs and modifier orders.
64 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
66 * java/util/Timer.java
67 (nr): Removed useless initializer.
68 * java/util/logging/LogRecord.java
69 (lastSeqNum): Likewise.
70 * javax/naming/spi/NamingManager.java
71 (icfb, ofb): Likewise.
73 2004-10-18 Michael Koch <konqueror@gmx.de>
75 * gnu/java/net/PlainDatagramSocketImpl.java:
76 Reworked import statements.
77 * gnu/java/security/provider/DSAParameters.java:
78 Fixed copyrigth years.
79 * java/net/JarURLConnection.java:
80 Fixed HTML in @author tags.
83 2004-10-18 Michael Koch <konqueror@gmx.de>
85 * java/rmi/activation/ActivationSystem.java
86 (SYSTEM_PORT): Initialize with correct port number.
88 2004-10-18 Michael Koch <konqueror@gmx.de>
90 * java/lang/reflect/Proxy.java: Improved javadocs.
92 2004-10-18 Michael Koch <konqueror@gmx.de>
94 * java/lang/reflect/AccessibleObject.java
95 (checkPermission): Removed redundant final modifier.
96 (secureSetAccessible): Likewise.
97 * java/lang/reflect/Proxy.java:
98 Reworked import statements.
99 (generate): Removed redundant final modifier.
100 * java/lang/reflect/ReflectPermission.java:
101 Reorder package declaration and import statement.
103 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
105 * java/lang/reflect/Proxy.java
106 (count): Removed useless initializer.
108 2004-10-17 Michael Koch <konqueror@gmx.de>
110 * java/net/BindException.java,
111 java/net/ConnectException.java,
112 java/net/ContentHandler.java,
113 java/net/ContentHandlerFactory.java,
114 java/net/DatagramPacket.java,
115 java/net/DatagramSocket.java,
116 java/net/DatagramSocketImpl.java,
117 java/net/DatagramSocketImplFactory.java,
118 java/net/FileNameMap.java,
119 java/net/HttpURLConnection.java,
120 java/net/MalformedURLException.java,
121 java/net/MulticastSocket.java,
122 java/net/NetworkInterface.java,
123 java/net/NoRouteToHostException.java,
124 java/net/PasswordAuthentication.java,
125 java/net/PortUnreachableException.java,
126 java/net/ProtocolException.java,
127 java/net/ServerSocket.java,
128 java/net/Socket.java,
129 java/net/SocketException.java,
130 java/net/SocketImpl.java,
131 java/net/SocketImplFactory.java,
132 java/net/SocketOptions.java,
133 java/net/SocketPermission.java,
134 java/net/SocketTimeoutException.java,
136 java/net/URISyntaxException.java,
138 java/net/URLDecoder.java,
139 java/net/URLEncoder.java,
140 java/net/URLStreamHandler.java,
141 java/net/URLStreamHandlerFactory.java,
142 java/net/UnknownHostException.java,
143 java/net/UnknownServiceException.java:
144 Big import statement and @author tag cleanup.
146 2004-10-17 Michael Koch <konqueror@gmx.de>
148 * gnu/java/security/OID.java,
149 gnu/java/security/provider/DSAParameters.java,
150 gnu/java/security/provider/DSASignature.java,
151 gnu/java/security/x509/X500DistinguishedName.java,
152 gnu/java/security/x509/X509CRL.java:
153 Import statements cleaned up.
155 2004-10-16 Michael Koch <konqueror@gmx.de>
157 * gnu/java/nio/NIODatagramSocket.java,
158 gnu/java/nio/ServerSocketChannelImpl.java:
159 Reorganized import statements.
161 2004-10-16 Michael Koch <konqueror@gmx.de>
163 * gnu/java/rmi/RMIMarshalledObjectOutputStream.java
164 gnu/java/rmi/rmic/RMIC.java,
165 gnu/java/rmi/server/RMIHashes.java,
166 gnu/java/rmi/server/RMIObjectInputStream.java,
167 gnu/java/rmi/server/RMIObjectOutputStream.java,
168 gnu/java/rmi/server/UnicastConnection.java,
169 gnu/java/rmi/server/UnicastConnectionManager.java,
170 gnu/java/rmi/server/UnicastRemoteCall.java,
171 gnu/java/rmi/server/UnicastServer.java,
172 gnu/java/rmi/server/UnicastServerRef.java,
173 java/rmi/MarshalledObject.java,
174 java/rmi/Naming.java,
175 java/rmi/RMISecurityManager.java,
176 java/rmi/Remote.java,
177 java/rmi/activation/Activatable.java,
178 java/rmi/activation/ActivationDesc.java,
179 java/rmi/activation/ActivationGroup.java,
180 java/rmi/activation/ActivationGroupDesc.java,
181 java/rmi/activation/ActivationGroupID.java,
182 java/rmi/activation/ActivationID.java,
183 java/rmi/activation/ActivationInstantiator.java,
184 java/rmi/activation/ActivationMonitor.java,
185 java/rmi/activation/ActivationSystem.java,
186 java/rmi/activation/Activator.java,
187 java/rmi/dgc/DGC.java,
188 java/rmi/dgc/Lease.java,
189 java/rmi/dgc/VMID.java,
190 java/rmi/registry/LocateRegistry.java,
191 java/rmi/registry/Registry.java,
192 java/rmi/registry/RegistryHandler.java,
193 java/rmi/server/LoaderHandler.java,
194 java/rmi/server/LogStream.java,
195 java/rmi/server/ObjID.java,
196 java/rmi/server/Operation.java,
197 java/rmi/server/RMIClassLoader.java,
198 java/rmi/server/RMIClassLoaderSpi.java,
199 java/rmi/server/RMIClientSocketFactory.java,
200 java/rmi/server/RMIFailureHandler.java,
201 java/rmi/server/RMIServerSocketFactory.java,
202 java/rmi/server/RMISocketFactory.java,
203 java/rmi/server/RemoteCall.java,
204 java/rmi/server/RemoteObject.java,
205 java/rmi/server/RemoteRef.java,
206 java/rmi/server/RemoteServer.java,
207 java/rmi/server/RemoteStub.java,
208 java/rmi/server/ServerRef.java,
209 java/rmi/server/Skeleton.java,
210 java/rmi/server/SkeletonMismatchException.java,
211 java/rmi/server/UID.java,
212 java/rmi/server/UnicastRemoteObject.java,
213 java/rmi/server/Unreferenced.java:
214 File headers and import statements cleaned up.
216 2004-10-16 Michael Koch <konqueror@gmx.de>
218 * libjava/gnu/java/nio/charset/UTF_16.java,
219 libjava/gnu/java/nio/charset/UTF_16BE.java,
220 libjava/gnu/java/nio/charset/UTF_16LE.java,
221 libjava/java/nio/ByteOrder.java,
222 libjava/java/nio/MappedByteBuffer.java,
223 libjava/java/nio/channels/Channels.java,
224 libjava/java/nio/channels/spi/SelectorProvider.java,
225 libjava/java/nio/charset/Charset.java:
228 2004-10-16 Michael Koch <konqueror@gmx.de>
230 * gnu/java/nio/charset/UTF_16Encoder.java
231 (UTF_16Encoder): Fixed maxBytesPerChar handling.
233 2004-10-16 Michael Koch <konqueror@gmx.de>
235 * java/math/BigDecimal.java, java/math/BigInteger.java:
236 Reorganized import statements, removed redundant and
237 reorganized modifiers.
239 2004-10-16 Michael Koch <konqueror@gmx.de>
241 * gnu/java/beans/ExplicitBeanInfo.java:
242 Explicitely import java.awt.Image.
243 (getIcon): Fixed off-by-one error.
245 2004-10-15 Andrew Haley <aph@redhat.com>
247 * Makefile.am (nat_files, xlib_nat_files): New.
248 * Makefile.in: Regenerate.
250 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
252 * jni.cc (_Jv_JNIMethod::call): Use ffi_java_raw_call instead of
253 ffi_raw_call if FFI_NATIVE_RAW_API is not defined.
255 2004-10-13 Andrew Haley <aph@redhat.com>
257 * interpret.cc (_Jv_InterpMethod::run): Initialize
258 _Jv_StartOfInterpreter.
259 (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): Functions removed.
260 (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): New variables.
261 * gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Use
262 _Unwind_FindEnclosingFunction to discover whether PC is within the
265 2004-10-12 Rutger Ovidius <ovidr@users.sourceforge.net>
268 * testsuite/libjava.lang/md5test.java: New file.
269 * testsuite/libjava.lang/md5test.out: Likewise.
270 * testsuite/libjava.lang/shatest.java: Likewise.
271 * testsuite/libjava.lang/shatest.out: Likewise.
273 2004-10-11 Richard Henderson <rth@redhat.com>
275 * include/posix-threads.h <__alpha__> (_Jv_ThreadId_t): Use void*.
276 (_Jv_ThreadSelf): Use __builtin_thread_pointer.
278 2004-10-08 Bryce McKinlay <mckinlay@redhat.com>
280 * java/util/Calendar.java (set): Invalidate DST_OFFSET
281 field as a DST boundary may have been crossed.
282 * java/util/GregorianCalendar.java (add): Throw
283 IllegalArgumentException on attempt to add to DST_OFFSET or
284 ZONE_OFFSET fields. Update javadoc.
286 2004-10-09 Michael Koch <konqueror@gmx.de>
288 * java/io/CharArrayWriter.java
289 (resize): Removed redundant 'final' modifier.
290 * java/io/DataInputStream.java
291 (readFully): Throw IndexOutOfBoundsException of len < 0.
292 * java/io/FileDescriptor.java,
293 java/io/FileInputStream.java,
294 java/io/FileOutputStream.java,
295 java/io/ObjectOutputStream.java,
296 java/io/ObjectStreamClass.java,
297 java/io/PipedInputStream.java,
298 java/io/RandomAccessFile.java:
299 Reorganized import statements.
301 2004-10-09 Michael Koch <konqueror@gmx.de>
303 * gnu/java/rmi/rmic/RMIC.java,
304 gnu/java/rmi/server/RMIHashes.java,
305 gnu/java/rmi/server/RMIObjectInputStream.java,
306 gnu/java/rmi/server/UnicastConnection.java,
307 gnu/java/rmi/server/UnicastConnectionManager.java,
308 gnu/java/rmi/server/UnicastRemoteCall.java,
309 gnu/java/rmi/server/UnicastServerRef.java:
310 Reworked import statements and fixed file headers.
312 2004-10-04 Loren J. Rittle <ljrittle@acm.org>
314 * configure.ac (*-*-freebsd[[1234]]*): Refine error message
316 * configure: Rebuilt.
318 2004-09-30 Tom Tromey <tromey@redhat.com>
320 * java/text/MessageFormat.java (Field): Constructor now
323 2004-09-30 Tom Tromey <tromey@redhat.com>
325 * javax/crypto/MacSpi.java: Fixed typo.
327 2004-09-30 Michael Koch <konqueror@gmx.de>
329 * java/net/InetAddress.java: Reformatted.
330 (loopback): Initialize with Inet4Address object.
331 (static): Initialize ANY_IF with Inet4Address object.
332 (InetAddress): Removed unused package-private constructor.
334 2004-09-30 Michael Koch <konqueror@gmx.de>
336 * java/beans/Beans.java,
337 java/beans/EventHandler.java,
338 java/beans/EventSetDescriptor.java,
339 java/beans/Introspector.java,
340 java/beans/PropertyEditorManager.java,
341 java/beans/beancontext/BeanContext.java,
342 java/beans/beancontext/BeanContextChild.java,
343 java/beans/beancontext/BeanContextChildSupport.java,
344 java/beans/beancontext/BeanContextMembershipEvent.java:
345 Reordered import statements and removed redundant modifiers.
347 2004-09-29 Tom Tromey <tromey@redhat.com>
350 * Makefile.in: Rebuilt.
351 * Makefile.am (libgcj-@gcc_version@.jar): Include properties
353 (all_property_files): New macro.
355 * Makefile.in: Rebuilt.
356 * Makefile.am (ordinary_java_source_files): Re-sorted.
357 (libgcj.la): Moved to old location near lib-gnu-awt-xlib.la.
359 2004-09-28 Tom Tromey <tromey@redhat.com>
361 * jni.cc (_Jv_JNI_RegisterNatives): Formatting fixlets.
364 * Makefile.am (libgcj.la): Restored.
365 * Makefile.in: Rebuilt.
367 2004-09-28 Michael Koch <konqueror@gmx.de>
369 * java/net/URLConnection.java: Reformatted.
370 * java/net/URLClassLoader.java: Reformatted.
371 (getContent): Reordered return of content.
372 (getContentHandler): Don't check for null explicitely.
374 2004-09-27 Michael Koch <konqueror@gmx.de>
376 * java/io/BufferedInputStream.java
377 (BufferedInputStream): Added Jeroen Frijters to authors.
378 (count): Don't explicitely initialize with default value.
380 (marklimit): Likewise.
381 (read): Changed boolean expression to match GNU classpath' version.
382 (reset): Add proper message to exception.
383 (skip): Check for closed stream.
386 2004-09-26 Per Bothner <per@bothner.com>
388 * prims.cc (unblock_signal): Annotate signum with __unused__ to
389 avoid warnings in the non-POSIX_VERSION case.
390 Also, we only need this function if either HANDLE_SEGV or HANDLE_FPE,
391 so place it inside an #if block.
392 * include/default-signal.h (SIGNAL_HANDLER): Parameters are __unused__.
393 * include/i386-signal.h (SIGNAL_HANDLER): Likewise
394 * include/mips-signal.h (SIGNAL_HANDLER): Likewise
395 * include/sparc-signal.h (SIGNAL_HANDLER): Likewise
397 2004-09-26 Per Bothner <per@bothner.com>
399 * prims.cc (process_gcj_properties): Optimization.
401 2004-09-26 Per Bothner <per@bothner.com>
403 * java/util/Collections.java (sort): Copy from array in forwards
404 order, rather than reverse order which may be much less efficient.
406 2004-09-26 Mark Wielaard <mark@klomp.org>
408 * java/lang/System.java (properties): Make package private.
409 * java/lang/Throwable.java (StaticData.nl): Initialize through
410 directly accessing System.properties.getProperty().
412 * java/lang/Throwable.java (nl): Remove static field.
413 (StaticData): New private static inner class.
414 (stackTraceStringBuffer): Use StaticData.nl.
416 2004-09-26 Casey Marshall <csm@gnu.org>
418 * java/security/ProtectionDomain.java
419 (<init>(CodeSource,PermissionCollection)): set `staticBinding' to
422 * java/security/SecureClassLoader.java
423 (defineClass): make protection domain dynamically bound.
424 (getPermissions): call `getCurrentPolicy' to avoid permission
427 2004-09-25 Mark Wielaard <mark@klomp.org>
429 * Makefile.am (core_java_source_files): Add VMTimeZone.java.
430 (nat_source_files): Rename natTimeZone.cc to natVMTimeZone.cc.
431 * Makefile.in: Regenerated.
433 * gcj/javaprims.h: Regenerated.
435 * java/util/TimeZone.java (defaultZone): Use VMTimeZone.
436 (getDefaultTimeZone): Make package private. Check that GMToffset
437 contains at least one digit.
438 (getDefaultTimeZoneId, readTimeZoneFile, readtzFile): (Re)Moved to
440 * util/VMTimeZone.java: New file with above methods.
442 * java/util/natTimeZone.cc: Removed (renamed).
443 * java/util/natVMTimeZone.cc: Added (renamed).
445 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
447 * java/util/TimeZone.java
448 (getDefaultTimeZone): Fixed test to distinguish between hours and
449 minutes in specified timezone.
451 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
453 * java/lang/reflect/Proxy.java (getPackage, ClassFactory): Fixed
454 handling of default package. (generate): Removed confused comments
455 and code about making Method and Field accessible.
457 2004-09-25 Tom Tromey <tromey@redhat.com>
460 * testsuite/libjava.compile/pr17500.java: New file.
462 2004-09-25 Shashank Bapat <shashankbapat@yahoo.com>
463 Mark Wielaard <mark@klomp.org>
465 * gnu/regexp/RE.java (initialize): Add RETokenLookAhead support.
466 * gnu/regexp/RETokenLookAhead.java: New file.
468 * Makefile.am (ordinary_java_source_files): Add RETokenLookAhead.java.
469 * Makefile.in: Regenerated.
471 2004-09-25 Michael Koch <konqueror@gmx.de>
473 * java/io/ObjectStreamField.java:
474 Removed unused import statement.
476 2004-09-24 Tom Tromey <tromey@redhat.com>
479 * testsuite/libjava.compile/pr15656.xfail: New file.
480 * testsuite/libjava.compile/pr15656.java: new file.
483 * testsuite/libjava.lang/pr16789.out: New file.
484 * testsuite/libjava.lang/pr16789.java: New file.
486 2004-09-24 Andrew Haley <aph@redhat.com>
489 * testsuite/libjava.compile/AssertBug.java: New file.
491 2004-09-24 Casey Marshall <csm@gnu.org>
493 * java/util/PropertyPermissionCollection.java
494 (implies): avoid infinite loop.
496 2004-09-24 Andrew John Hughes <gnu_andrew@member.fsf.org>
498 * javax/security/auth/PrivateCredentialPermission.java
499 (PrivateCredentialPermission): added serialization UID
502 2004-09-24 Ilya Perminov <iperminov@logicalsoft.com>
504 * gnu/java/rmi/server/UnicastServer.java
505 (incomingMessageCall): Added code to handle Errors.
506 * gnu/java/rmi/server/UnicastServerRef.java
507 (incomingMessageCall): Added code to handle Errors.
510 2004-09-24 Tom Tromey <tromey@redhat.com>
512 * java/lang/ClassLoader.java (loadedClasses): Declare as HashMap.
513 (definedPackages): Likewise.
515 2004-09-24 Michael Koch <konqueror@gmx.de>
517 * java/io/ObjectInputStream.java:
520 2004-09-24 Casey Marshall <csm@gnu.org>
522 * java/io/ObjectInputStream.java (callReadMethod): re-throw
523 `ClassNotFoundException'.
525 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
527 * java/io/ObjectInputStream.java (readObject): Delegate instantation
528 of Externalizable classes to ObjectStreamClass.
529 * java/io/ObjectStreamClass.java (newInstance): New method to
530 instantiate Externalizable (while ignoring the accessibility of
531 the constructor). (constructor): New field to cache the constructor.
533 2004-09-24 Mark Wielaard <mark@klomp.org>
535 * java/net/URL.java (systemClassLoader): New static field.
536 (getURLStreamHandler): Always use system/application classloader
537 for finding URLStreamhandler. Remove unecessary instanceof checks.
539 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
542 (set): This method now matches the behaviour of the JDK.
543 (DEFAULT_SEARCH_PATH): Added "gnu.inet".
545 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
547 * java/net/URL.java (URL): Delete whitespaces in the protocol string.
549 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
551 * java/net/URL.java (URL(String,String,int,String,URLStreamHandler):
552 Don't set authority if host isn't specified.
554 2004-09-24 Michael Koch <konqueror@gmx.de>
556 * gnu/java/nio/PipeImpl.java: Use VMPipe for native stuff.
557 * gnu/java/nio/SelectorImpl.java: Use VMSelector for native stuff.
558 * gnu/java/nio/VMPipe.java,
559 gnu/java/nio/VMSelector.java:
561 * gnu/java/nio/natPipeImplEcos.cc,
562 gnu/java/nio/natPipeImplPosix.cc,
563 gnu/java/nio/natPipeImplWin32.cc:
565 * gnu/java/nio/natSelectorImplEcos.cc,
566 gnu/java/nio/natSelectorImplPosix.cc,
567 gnu/java/nio/natSelectorImplWin32.cc:
568 Ported to VMSelector.
569 * Makefile.am: Added new files gnu/java/nio/VMPipe.java and
570 gnu/java/nio/VMSelector.java.
571 * Makefile.in: Regenerated.
573 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
575 * java/lang/StackTraceElement.java
576 (className): Renamed field to declaringClass to be compatible
577 with Sun serialization format.
579 2004-09-23 Michael Koch <konqueror@gmx.de>
581 * java/applet/AppletContext.java,
582 java/applet/Applet.java,
583 java/applet/AppletStub.java,
584 java/applet/AudioClip.java:
585 Jalopied and checkstyle clean.
587 2004-09-23 Mark Wielaard <mark@klomp.org>
589 * java/util/Collections.java
590 (binarySearch(List, Object, Comparator)): Explicitly
591 reverse direction in list iterator.
592 (rotate): Just return when list is empty.
594 2004-09-23 Tom Tromey <tromey@redhat.com>
597 * testsuite/libjava.compile/pr17329.java: New file.
600 * testsuite/libjava.jacks/jacks.xfail: Added 9.2-implicit-6 and
603 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
605 * Makefile.am: Run aclocal with -I ../config
606 * acinclude.m4: Delete macros picked up from ../config and tidy.
607 (AM_ICONV,AM_LC_MESSAGES, PKG_CHECK_MODULES): Delete.
608 * aclocal.m4, configure, Makefile.in, gcj/Makefile.in: Regenerate.
609 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
611 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
613 * aclocal.m4: Regenerate with aclocal 1.9.2.
614 * configure: Regenerate.
615 * Makefile.in, gcj/Makefile.in: Regenerate with automake 1.9.2.
616 * include/Makefile.in, testsuite/Makefile.in: Likewise.
618 2004-09-22 David Daney <ddaney@avtrex.com>
621 * java/net/URL.java (URL): Copy userInfo from context.
622 (getUserInfo): Return cached userInfo if present.
624 2004-09-22 Tom Tromey <tromey@redhat.com>
627 * mauve-libgcj: Enable java.lang.Character tests.
629 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
631 * Makefile.am (lib_org_ietf_jgss_la_DEPENDENCIES): Add missing
633 (lib_org_ietf_jgss_la_LIBADD): Likewise.
634 * Makefile.in: Regenerated.
636 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
638 * configure.ac: Introduce AC_C_BIGENDIAN_CROSS for WORDS_BIGENDIAN.
639 * configure: Regenerate.
640 * include/config.h.in: Likewise.
641 * jni/gtk-peer/gtkpeer.h (SWAPU32): Introduce macro to swap pixels.
642 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c: Moved SWAPU32
644 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
645 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_getImagePixels): Convert
646 pixels from 0xBBGGRRAA to 0xAARRGGBB only on Little Endian
648 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c (area_updated):
651 2004-09-22 Tom Tromey <tromey@redhat.com>
654 * java/util/zip/GZIPInputStream.java (read): Avoid sign extension
656 * java/util/zip/InflaterInputStream.java (onebytebuffer): New
658 (read()): New overload.
660 2004-09-21 Tom Tromey <tromey@redhat.com>
662 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
665 2004-09-21 Michael Koch <konqueror@gmx.de>
667 * java/net/Socket.java
668 (getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
670 2004-09-21 Casey Marshall <csm@gnu.org>
672 * javax/crypto/MacSpi.java (clone): Provide meaningful
675 2004-09-21 Tom Tromey <tromey@redhat.com>
678 * Makefile.in: Rebuilt.
679 * Makefile.am (MOSTLYCLEANFILES): Removed.
680 (mostlyclean-local): Remove header files.
682 2004-09-21 Casey Marshall <csm@gnu.org>
684 * java/security/cert/X509CRLSelector.java:
685 (match): remove unreachable try-catch clauses.
686 Reported by: Dalibor Topic <robilad@kaffe.org>
688 2004-09-21 Mark Wielaard <mark@klomp.org>
690 * java/util/TreeMap.java (root): Don't initialize.
691 (TreeMap(Comparator)): Call fabricateTree(0).
692 (fabricateTree): Initialize root and size when count is 0.
694 2004-09-21 Sven de Marothy <sven@physto.se>
696 * java/nio/ByteBuffer.java (hashCode): Implemented.
697 * java/nio/CharBuffer.java: Likewise.
698 * java/nio/DoubleBuffer.java: Likewise.
699 * java/nio/FloatBuffer.java: Likewise.
700 * java/nio/LongBuffer.java: Likewise.
701 * java/nio/IntBuffer.java: Likewise.
702 * java/nio/ShortBuffer.java: Likewise.
704 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
706 * javax/security/auth/x500/X500Principal.java: Fix some merge glitches.
708 2004-09-21 Michael Koch <konqueror@gmx.de>
710 * javax/net/ssl/SSLServerSocket.java:
711 Removed comment about "Do not edit this file, it's generated.".
713 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
715 Import the big Crypto/Jessie/Security merge from Classpath.
717 * Makefile.am: Add imported files.
718 * Makefile.in: Regenerate.
720 2004-08-14 Casey Marshall <csm@gnu.org>
722 The Big Crypto Merge of 2004.
724 * javax/security/auth/x500/X500Principal.java: Replaced with GNU
727 Files imported from GNU Crypto.
728 * javax/crypto/BadPaddingException.java
729 * javax/crypto/Cipher.java
730 * javax/crypto/CipherInputStream.java
731 * javax/crypto/CipherOutputStream.java
732 * javax/crypto/CipherSpi.java
733 * javax/crypto/EncryptedPrivateKeyInfo.java
734 * javax/crypto/ExemptionMechanism.java
735 * javax/crypto/ExemptionMechanismException.java
736 * javax/crypto/ExemptionMechanismSpi.java
737 * javax/crypto/IllegalBlockSizeException.java
738 * javax/crypto/KeyAgreement.java
739 * javax/crypto/KeyAgreementSpi.java
740 * javax/crypto/KeyGenerator.java
741 * javax/crypto/KeyGeneratorSpi.java
742 * javax/crypto/Mac.java
743 * javax/crypto/MacSpi.java
744 * javax/crypto/Makefile.am
745 * javax/crypto/NoSuchPaddingException.java
746 * javax/crypto/NullCipher.java
747 * javax/crypto/NullCipherImpl.java
748 * javax/crypto/SealedObject.java
749 * javax/crypto/SecretKey.java
750 * javax/crypto/SecretKeyFactory.java
751 * javax/crypto/SecretKeyFactorySpi.java
752 * javax/crypto/ShortBufferException.java
753 * javax/crypto/interfaces/DHKey.java
754 * javax/crypto/interfaces/DHPrivateKey.java
755 * javax/crypto/interfaces/DHPublicKey.java
756 * javax/crypto/interfaces/PBEKey.java
757 * javax/crypto/spec/DESKeySpec.java
758 * javax/crypto/spec/DESedeKeySpec.java
759 * javax/crypto/spec/DHGenParameterSpec.java
760 * javax/crypto/spec/DHParameterSpec.java
761 * javax/crypto/spec/DHPrivateKeySpec.java
762 * javax/crypto/spec/DHPublicKeySpec.java
763 * javax/crypto/spec/IvParameterSpec.java
764 * javax/crypto/spec/PBEKeySpec.java
765 * javax/crypto/spec/PBEParameterSpec.java
766 * javax/crypto/spec/RC2ParameterSpec.java
767 * javax/crypto/spec/RC5ParameterSpec.java
768 * javax/crypto/spec/SecretKeySpec.java
769 * javax/security/auth/AuthPermission.java
770 * javax/security/auth/DestroyFailedException.java
771 * javax/security/auth/Destroyable.java
772 * javax/security/auth/Policy.java
773 * javax/security/auth/PrivateCredentialPermission.java
774 * javax/security/auth/RefreshFailedException.java
775 * javax/security/auth/Refreshable.java
776 * javax/security/auth/Subject.java
777 * javax/security/auth/SubjectDomainCombiner.java
778 * javax/security/auth/callback/Callback.java
779 * javax/security/auth/callback/CallbackHandler.java
780 * javax/security/auth/callback/ChoiceCallback.java
781 * javax/security/auth/callback/ConfirmationCallback.java
782 * javax/security/auth/callback/LanguageCallback.java
783 * javax/security/auth/callback/NameCallback.java
784 * javax/security/auth/callback/PasswordCallback.java
785 * javax/security/auth/callback/TextInputCallback.java
786 * javax/security/auth/callback/TextOutputCallback.java
787 * javax/security/auth/callback/UnsupportedCallbackException.java
788 * javax/security/auth/login/AccountExpiredException.java
789 * javax/security/auth/login/AppConfigurationEntry.java
790 * javax/security/auth/login/Configuration.java
791 * javax/security/auth/login/CredentialExpiredException.java
792 * javax/security/auth/login/FailedLoginException.java
793 * javax/security/auth/login/LoginContext.java
794 * javax/security/auth/login/LoginException.java
795 * javax/security/auth/login/NullConfiguration.java
796 * javax/security/auth/x500/X500PrivateCredential.java
797 * javax/security/sasl/AuthenticationException.java
798 * javax/security/sasl/AuthorizeCallback.java
799 * javax/security/sasl/RealmCallback.java
800 * javax/security/sasl/RealmChoiceCallback.java
801 * javax/security/sasl/Sasl.java
802 * javax/security/sasl/SaslClient.java
803 * javax/security/sasl/SaslClientFactory.java
804 * javax/security/sasl/SaslException.java
805 * javax/security/sasl/SaslServer.java
806 * javax/security/sasl/SaslServerFactory.java
807 * org/ietf/jgss/ChannelBinding.java
808 * org/ietf/jgss/GSSContext.java
809 * org/ietf/jgss/GSSCredential.java
810 * org/ietf/jgss/GSSException.java
811 * org/ietf/jgss/GSSManager.java
812 * org/ietf/jgss/GSSName.java
813 * org/ietf/jgss/MessageProp.java
814 * org/ietf/jgss/Oid.java
815 * org/ietf/jgss/MessagesBundle.properties
817 Files imported from Jessie <http://www.nongnu.org/jessie/>
818 * javax/net/ServerSocketFactory.java
819 * javax/net/SocketFactory.java
820 * javax/net/VanillaServerSocketFactory.java
821 * javax/net/VanillaSocketFactory.java
822 * javax/net/ssl/HandshakeCompletedEvent.java
823 * javax/net/ssl/HandshakeCompletedListener.java
824 * javax/net/ssl/HostnameVerifier.java
825 * javax/net/ssl/HttpsURLConnection.java
826 * javax/net/ssl/KeyManager.java
827 * javax/net/ssl/KeyManagerFactory.java
828 * javax/net/ssl/KeyManagerFactorySpi.java
829 * javax/net/ssl/ManagerFactoryParameters.java
830 * javax/net/ssl/SSLContext.java
831 * javax/net/ssl/SSLContextSpi.java
832 * javax/net/ssl/SSLException.java
833 * javax/net/ssl/SSLHandshakeException.java
834 * javax/net/ssl/SSLKeyException.java
835 * javax/net/ssl/SSLPeerUnverifiedException.java
836 * javax/net/ssl/SSLPermission.java
837 * javax/net/ssl/SSLProtocolException.java
838 * javax/net/ssl/SSLServerSocket.java
839 * javax/net/ssl/SSLServerSocketFactory.java
840 * javax/net/ssl/SSLSession.java
841 * javax/net/ssl/SSLSessionBindingEvent.java
842 * javax/net/ssl/SSLSessionBindingListener.java
843 * javax/net/ssl/SSLSessionContext.java
844 * javax/net/ssl/SSLSocket.java
845 * javax/net/ssl/SSLSocketFactory.java
846 * javax/net/ssl/TrivialHostnameVerifier.java
847 * javax/net/ssl/TrustManager.java
848 * javax/net/ssl/TrustManagerFactory.java
849 * javax/net/ssl/TrustManagerFactorySpi.java
850 * javax/net/ssl/X509KeyManager.java
851 * javax/net/ssl/X509TrustManager.java
852 * javax/security/cert/Certificate.java
853 * javax/security/cert/CertificateEncodingException.java
854 * javax/security/cert/CertificateException.java
855 * javax/security/cert/CertificateExpiredException.java
856 * javax/security/cert/CertificateNotYetValidException.java
857 * javax/security/cert/CertificateParsingException.java
858 * javax/security/cert/X509CertBridge.java
859 * javax/security/cert/X509Certificate.java
861 2004-08-20 Casey Marshall <csm@gnu.org>
863 * java/security/cert/X509CRLSelector.java: New file.
864 * java/security/cert/X509CertSelector.java: New file.
866 2004-09-15 Michael Koch <konqueror@gmx.de>
868 * gnu/java/net/protocol/file/Handler.java
869 (openConnection): Don't throw exception if host part for file: URI is
870 present. setURL() keeps file: protocol if ftp: protocol is not
873 2004-09-14 Richard Henderson <rth@redhat.com>
875 * java/lang/natPosixProcess.cc (waitForSignal): Ignore return
878 2004-09-12 Tom Tromey <tromey@redhat.com>
880 * javax/naming/CompoundName.java (CompoundName): Don't check for
881 separator in "flat" case.
883 2004-09-12 Michael Koch <konqueror@gmx.de>
885 * libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces
886 AM_CONFIG_HEADER by AC_CONFIG_FILES.
887 * libltdl/Makefile.in, libltdl/aclocal.m4, libltdl/configure:
890 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
893 * win32-threads.cc (_Jv_ThreadInitData): Zero out thread
894 handle in newly-allocated _Jv_Thread_t.
895 (_Jv_ThreadDestroyData): Close thread handle.
896 (_Jv_ThreadStart): Remove obsolete comment.
897 Store handle of newly-created thread in _Jv_Thread_t.
898 * include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
899 before including <windows.h>
900 #define _Jv_HaveCondDestroy
902 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
904 * java/lang/natThread.cc (finalize_native): Destroy
905 join conditional variable and mutex if these destroy
906 operations are supported.
908 2004-09-10 Dalibor Topic <robilad@kaffe.org>
910 * gnu/java/net/protocol/file/Connection.java (permission): New field.
911 (DEFAULT_PERMISSION): New constant.
912 (Connection): Create a FilePermission with permission to read file.
914 2004-09-10 Michael Koch <konqueror@gmx.de>
916 * gnu/java/net/protocol/file/Connection.java
917 (getLastModified): Moved around.
918 (getPermission): Return stored permission.
920 2004-09-10 Michael Koch <konqueror@gmx.de>
922 * Makefile.in: Regenerate.
924 2004-09-10 Michael Koch <konqueror@gmx.de>
926 * Makefile.am: Reverted accidently commited stuff.
927 * configure: Regenerated.
929 2004-09-10 Michael Koch <konqueror@gmx.de>
931 * gnu/java/net/protocol/file/Connection.java
932 (lineSeparator): Made non-final.
934 (connect): Initialize lineSeparator lazily. Use ByteArrayInputStream
935 instead of StringBufferInputStream.
937 2004-09-10 Michael Koch <konqueror@gmx.de>
939 * gnu/java/net/protocol/file/Connection.java
940 (connect): Handle file is a directory case.
942 2004-09-10 Michael Koch <konqueror@gmx.de>
945 (xlib_includes): Removed.
946 (AM_CPPFLAGS): Renamed from INCLUDES.
947 (lib_gnu_awt_xlib_la_CPPFLAGS): New automake variable.
948 * Makefile.in: Regenerate.
950 2004-09-09 Michael Koch <konqueror@gmx.de>
952 * java/security/ProtectionDomain.java,
953 * java/util/PropertyPermissionCollection.java:
954 Fixed javadocs all over.
956 2004-09-09 Sven de Marothy <sven@physto.se>
958 Patch from David Gilbert <david.gilbert@object-refinery.com>
959 * java/lang/Comparable.java: Fixed documentation errors.
960 * java/util/Arrays.java: Likewise.
962 2004-09-09 Andrew John Hughes <gnu_andrew@member.fsf.org>
964 * java/net/Inet4Address.java
965 (Inet4Address): Added comment to serialization UID.
966 * java/text/Format.java
967 (Format): Added comment to serialization UID.
969 2004-09-09 Michael Koch <konqueror@gmx.de>
971 * java/lang/System.java
972 (err): Fixed javadoci to point to setErr() and not setOut().
974 2004-09-09 Jeroen Frijters <jeroen@frijters.net>
976 (normalizePath): Added special case for windows systems.
978 2004-09-09 Michael Koch <konqueror@gmx.de>
981 (dupSeparator): Made private.
982 (File(URI)): New constructor.
983 (getParentFile): Fixed javadoc.
984 (createTempFile): Reformated.
985 (setReadOnly): Added comment.
986 (deleteOnExit): Merged javadoc with classpath version.
988 2004-09-09 Michael Koch <konqueror@gmx.de>
990 * Makefile.am: Don't try to include deps.mk.
991 * Makefile.in: Regenerated.
993 2004-09-08 Bryce McKinlay <mckinlay@redhat.com>
995 * configure.ac (AC_CONFIG_COMMANDS): Don't create subdirectories and
997 * configure: Rebuilt.
999 2004-09-04 Mohan Embar <gnustuff@thisiscool.com>
1001 * java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces):
1002 Changed pfn from static local to local.
1004 2004-09-03 Bryce McKinlay <mckinlay@redhat.com>
1005 H.J. Lu <hongjiu.lu@intel.com>
1008 * Makefile.am (GCJCOMPILE): Remove definition.
1009 (AM_CFLAGS): Add -fclasspath and -fbootclasspath flags.
1010 Use LTGCJCOMPILE, not GCJCOMPILE, to build .lo targets.
1011 * Makefile.in: Rebuilt.
1013 2004-09-03 Kelley Cook <kcook@gcc.gnu.org>
1015 * configure.ac (enable-gc-debug): Update help for new syntax.
1016 * configure: Regenerate.
1018 2004-09-03 David Daney <ddaney@avtrex.com>
1020 * include/mips-signal.h: Update copyright.
1022 2004-09-03 David Daney <ddaney@avtrex.com>
1024 * configure.host: Use -fno-use-divide-subroutine for mips*-*-linux*.
1025 * include/mips-signal.h: Added HANDLE_FPE support.
1027 2004-08-31 Michael Koch <konqueror@gmx.de>
1029 * javax/swing/plaf/basic/BasicTextAreaUI.java
1030 (create): New method.
1031 * javax/swing/text/DefaultHighlighter.java
1032 (DefaultHighlightPainter.debugRect): Removed.
1033 * javax/swing/text/StyleContext.java
1034 (DEFAULT_STYLE): New field.
1036 2004-08-31 Michael Koch <konqueror@gmx.de>
1038 * javax/swing/plaf/basic/BasicLookAndFeel.java
1039 (initComponentDefaults): Add keybindings for selection.backward and
1040 selection-forward for text components.
1041 * javax/swing/plaf/basic/BasicTextUI.java
1042 (paintSafely): Paint highlight only when something is actually
1044 * javax/swing/text/DefaultCaret.java
1045 (handleHighlight): New method.
1046 (setSelectionVisible): Don't do anything when nothing changes.
1048 (moveDot): Reimplemented. Handle highlight.
1049 (setDot): Set mark too. Handle highlight.
1050 (getSelectionPainter): New method.
1051 * javax/swing/text/DefaultEditorKit.java
1052 (defaultActions): Added new actions for text selection.
1053 * javax/swing/text/DefaultHighlighter.java
1054 (DefaultHighlightPainter): New inner class.
1055 (DefaultPainter): New field.
1056 (paint): Implemented.
1057 * javax/swing/text/PlainView.java
1058 (paint): Don't draw background here again.
1059 * javax/swing/text/Utilities.java
1060 (getTabbedTextWidth): Use width of ' ' instead of 'm' for tabsize.
1061 (drawTabbedText): Likewise.
1063 2004-08-31 Graydon Hoare <graydon@redhat.com>
1065 * javax/swing/JComponent.java
1066 (resetKeyboardActions): Add null checks.
1068 2004-08-31 Graydon Hoare <graydon@redhat.com>
1070 * javax/swing/DefaultButtonModel.java:
1071 Skip group notification when no group is set.
1073 2004-08-31 Graydon Hoare <graydon@redhat.com>
1075 * javax/swing/JColorChooser.java:
1076 Make a couple inner classes static, for jikes.
1078 2004-08-31 Michael Koch <konqueror@gmx.de>
1080 * javax/swing/plaf/basic/BasicTextUI.java
1081 (RottView.modelToView): New method.
1082 (UpdateHandler): Renamed from EventHandler.
1083 (updateHandler): Renamed from eventHandler.
1084 (modelToView): Implemented.
1085 * javax/swing/text/AbstractDocument.java
1086 (BranchElement.getElement): Return null for non-existing indeces.
1087 (BranchElement.getElementIndex): Return 0 in some corner cases.
1088 * javax/swing/text/FieldView.java
1089 (modelToView): New method.
1090 * javax/swing/text/PlainView.java
1091 (modelToView): Made public.
1093 2004-08-31 Kim Ho <kho@redhat.com>
1095 * Makefile.am: New files.
1096 * Makefile.in: Regenerate.
1097 * gcj/Makefile.in: Regenerate.
1098 * include/Makefile.in: Regenerate.
1099 * java/awt/Color.java: Fix documentation.
1100 (RGBtoHSB): Use floats for conversions.
1101 * javax/swing/ButtonGroup.java: Run Jalopy.
1102 (setSelected): Reimplement.
1103 * javax/swing/DefaultButtonModel.java: Run Jalopy.
1104 (changeState): Let ButtonGroup know that the button
1106 * javax/swing/JColorChooser.java: Implement.
1107 * javax/swing/JLabel.java: Run Jalopy.
1108 * javax/swing/JSpinner.java: Run Jalopy.
1109 (setValue): New method.
1110 * javax/swing/JTabbedPane.java: Run Jalopy.
1111 (removeTabAt): Call correct remove method.
1112 * javax/swing/SpinnerNumberModel.java: Run Jalopy.
1113 (getPreviousValue): Compare minimum value.
1114 * javax/swing/Timer.java: Run Jalopy.
1115 (run): Comment out println.
1116 * javax/swing/ToolTipManager.java:
1117 (mouseMoved): Get new tooltip text for location.
1118 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
1120 * javax/swing/colorchooser/ColorChooserComponentFactory.java:
1122 * javax/swing/colorchooser/DefaultColorSelectionModel.java:
1124 (setSelectedColor): Fire ChangeEvent.
1125 * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
1126 New file. Implement.
1127 * javax/swing/colorchooser/DefaultPreviewPanel.java:
1129 * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
1131 * javax/swing/colorchooser/DefaultSwatchChooserPanel.java:
1133 * javax/swing/plaf/basic/BasicArrowButton.java:
1134 (getArrow): Fix size of upward pointing button.
1135 * javax/swing/plaf/basic/BasicColorChooserUI.java:
1137 * javax/swing/plaf/basic/BasicSliderUI.java:
1138 (getWidthOfWidestLabel): Use preferred dimensions.
1139 (getHeightOfTallestLabel): Ditto.
1140 * javax/swing/plaf/basic/BasicSpinnerUI.java:
1142 (mousePressed): Disable changes to spinner if it is not enabled.
1143 * testsuite/Makefile.in: Regenerate.
1146 2004-08-31 Michael Koch <konqueror@gmx.de>
1148 * javax/swing/plaf/basic/BasicTableHeaderUI.java,
1149 javax/swing/plaf/basic/BasicTableUI.java:
1150 Added copyright notice.
1152 2004-08-31 Olga Rodimina <rodimina@redhat.com>
1154 * Makefile.am: Added new files.
1155 * Makefile.in: Regenerate.
1156 * javax/swing/ComboBoxEditor.java: Added javadocs.
1157 * javax/swing/ComboBoxModel.java: Likewise.
1158 * javax/swing/DefaultComboBoxModel.java: Implemented.
1159 * javax/swing/DefaultListCellRenderer.java: Added javadocs
1160 and ran through jalopy to fix formatting style.
1161 (getListCellRendererComponent): Use appropriate border
1162 if renderer has focus and use noFocusBorder when it doesn't.
1163 * javax/swing/JComboBox.java: Implemented.
1164 * javax/swing/JList.java:
1165 (locationToIndex): New Method. Implemented.
1166 (indexToLocation): New Method.
1167 * javax/swing/JPopupMenu.java:
1168 (visible): New field.
1169 (isVisible): Changed to use new field above.
1170 (setVisible): Likewise.
1171 * javax/swing/MutableComboBoxModel.java: Added javadocs.
1172 * javax/swing/plaf/basic/BasicArrowButton.java:
1173 (shadow): Changed default color to Color.gray.
1174 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
1175 UI delegate for JComboBox.
1176 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
1177 Popup menu containing list of JComboBox's items.
1178 * javax/swing/plaf/basic/BasicComboBoxEditor.java: New File.
1179 * javax/swing/plaf/basic/BasicComboBoxRenderer.java: New File.
1180 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
1181 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
1182 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
1183 (popupMenuWillBecomeVisible): Set selected path to the first
1184 element only if it is of type MenuElement. Also fix formatting
1186 * javax/swing/plaf/basic/ComboPopup.java: Added javadocs and missing
1189 2004-08-31 Michael Koch <konqueror@gmx.de>
1191 * javax/swing/text/AbstractDocument.java
1192 (createBranchElement): Use new constructor of BranchElement.
1193 (createLeafElement): Renamed arguments.
1194 (getRootElements): Implemented.
1195 (BranchElement.start): Removed.
1196 (BranchElement.end): Likewise.
1197 (BranchElement.BranchElement): Fixed arguments.
1198 (BranchElement.getEndOffset): Reimplemented.
1199 (BranchElement.getStartOffset): Likewis.
1200 * javax/swing/text/DefaultCaret.java
1201 (paint): Draw simple vertical line as caret instead of a rectangle.
1202 * javax/swing/text/JTextComponent.java
1203 (setText): Use doc directly.
1204 * javax/swing/text/PlainView.java
1205 (nextTabStop): Implemented.
1206 * javax/swing/text/Utilities.java
1207 (drawTabbedText): nextTabStop() returns an absolute x position.
1208 (getTabbedTextWidth): Likewise.
1210 2004-08-31 Graydon Hoare <graydon@redhat.com>
1212 * java/awt/Component.java
1213 (isFocusTraversable): Predicate on isLightweight()
1214 (setFocusable): Set isFocusTraversableOverridden.
1215 (requestFocus): Predicate peer dispatch on !isLightweight()
1216 (requestFocusInWindow): Likewise.
1217 (dispatchEventImpl): Coordinate with KeyboardFocusManager.
1218 * java/awt/Container.java
1219 (dispatchEventImpl): Predicate on event mask.
1220 (LightweightDispatcher): Remove focus machinery.
1221 * java/awt/DefaultFocusTraversalPolicy.java
1222 (accept): Expand predicate to include isFocusable().
1223 * java/awt/DefaultKeyboardFocusManager.java:
1224 Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
1225 * java/awt/KeyboardFocusManager.java
1226 (redispatchEvent): Synchronize on event to prevent feedback.
1227 * javax/swing/AbstractButton.java
1228 (ButtonFocusListener): Remove class.
1229 (init): Set focusPainted, focusable.
1230 * javax/swing/ActionMap.java (get): Check parent for null.
1231 * javax/swing/InputMap.java (get): Likewise.
1232 * javax/swing/JComponent.java
1233 (inputMap_whenFocused): New InputMap.
1234 (inputMap_whenAncestorOfFocused): Likewise.
1235 (inputMap_whenInFocusedWindow): Likewise.
1236 (getActionForKeyStroke): Rewrite.
1237 (getConditionForKeystroke): Likewise.
1238 (ActionListenerProxy): New private class.
1239 (setInputMap): Implement.
1240 (getInputMap): Likewise.
1241 (setActionMap): Likewise.
1242 (getActionMap): Likewise.
1243 (processComponentKeyEvent): New empty method.
1244 (processKeyEvent): Implement.
1245 (processKeyBinding): Likewise.
1246 (resetKeyboardActions): Rewrite.
1247 * javax/swing/KeyStroke.java: Rewrite.
1248 * javax/swing/SwingUtilities.java
1249 (notifyAction): Implement.
1250 (replaceUIActionMap): Likewise.
1251 (replaceUIInputMap): Likewise.
1252 * javax/swing/plaf/basic/BasicButtonListener.java
1253 (focusGained): Implement.
1254 (focusLost): Repaint if focusPainted().
1255 (installKeyboardActions): Install pressed / released actions.
1256 (uninstallKeyboardActions): Implement.
1257 * javax/swing/plaf/basic/BasicButtonUI.java
1258 (focusColor): New field.
1259 (installDefaults): Load focus color, install input map.
1260 (installKeyboardActions): Implement.
1261 (uninstallKeyboardActions): Likewise.
1262 (paintFocus): Rewrite.
1263 * javax/swing/plaf/basic/BasicLookAndFeel.java
1264 (Button.focus): New default, midPurple.
1265 * javax/swing/plaf/basic/BasicTextUI.java
1267 (installUI): Get doc from kit, load defaults.
1268 (getKeymapName): Implement.
1269 (createKeymap): Likewise.
1270 (installKeyboardActions): Likewise.
1271 (getInputMap): Likewise.
1272 (getActionMap): Likewise.
1273 (createActionMap): Likewise.
1274 * javax/swing/text/AbstractDocument.java
1275 (getStartPosition): Implement.
1276 (getEndPosition): Likewise.
1277 * javax/swing/text/DefaultEditorKit.java
1278 (CopyAction): New class.
1279 (CutAction): Likewise.
1280 (DefaultKeyTypedAction): Likewise.
1281 (InsertBreakAction): Likewise.
1282 (InsertContentAction): Likewise.
1283 (InsertTabAction): Likewise.
1284 (PasteAction): Likewise.
1285 (defaultActions): New static table.
1286 (createCaret): Implement.
1287 (getActions): Likewise.
1288 * javax/swing/text/JTextComponent.java
1289 (KeymapWrapper): New private class.
1290 (KeymapActionMap): Likewise.
1291 (DefaultKeymap): New class.
1292 (keymaps): New static table.
1293 (keymap): New field.
1294 (getKeymap): Implement.
1295 (removeKeymap): Likewise.
1296 (addKeymap): Likewise.
1297 (setKeymap): Likewise.
1298 (loadKeymap): Likewise.
1299 (getActions): Likewise.
1300 (margin): New field.
1301 (JTextComponent): Build and install default keymap.
1302 * javax/swing/text/TextAction.java
1303 (textAction): Call super properly.
1304 (getTextComponent): Implement.
1305 * javax/swing/text/Utilities.java
1306 (drawTabbedText): Adjust position by ascent.
1308 2004-08-31 David Jee <djee@redhat.com>
1312 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
1313 (setEnabled): Make it a native method.
1314 * java/awt/DefaultKeyboardFocusManager.java
1315 (postProcessKeyEvent): Only post event if the menu item
1317 * java/awt/MenuItem.java:
1318 Private field 'enabled' should be true by default.
1319 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
1320 (setEnabled): New function.
1322 2004-08-31 David Jee <djee@redhat.com>
1326 * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
1327 (nativeSetHelpMenu): New native method declaration.
1328 (addHelpMenu): Call nativeSetHelpMenu().
1330 * java/awt/MenuBar.java
1331 (setHelpMenu): Call addNotify() on the new help menu.
1332 (add): Call addNotify() on the new menu.
1333 (addNotify): Set the help menu if one exists.
1334 * java/awt/peer/MenuBarPeer.java
1336 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
1337 (nativeSetHelpMenu): New method.
1339 2004-08-31 Graydon Hoare <graydon@redhat.com>
1341 * Makefile.am: Add new files.
1342 * Makefile.in: Regenerate.
1343 * javax/swing/Box.java: Fix setting of layout in ctor.
1344 * javax/swing/JScrollPane.java: Scroll headers as well.
1345 * javax/swing/JTable.java: Reimplement.
1346 * javax/swing/JViewPort.java: Only add non-null children.
1347 * javax/swing/ScrollPaneLayout.java: Correct header calculations.
1348 * javax/swing/Timer.java: Fix stopping null waker.
1349 * javax/swing/plaf/basic/BasicTableHeaderUI.java: New file.
1350 * javax/swing/plaf/basic/BasicTableUI.java: New file.
1351 * javax/swing/table/DefaultTableCellRenderer.java: Configure.
1352 * javax/swing/table/DefaultTableColumnModel.java: Flesh out.
1353 * javax/swing/table/DefaultTableModel.java: Clean up.
1354 * javax/swing/table/JTableHeader.java: Implement.
1356 2004-08-31 Mark Wielaard <mark@klomp.org>
1358 * javax/swing/JSpinner.java (getChangeListeners): Remove double
1361 2004-08-31 Mark Wielaard <mark@klomp.org>
1363 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
1364 Declare variables at top of functions/block.
1365 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Likewise.
1367 2004-08-31 Mark Wielaard <mark@klomp.org>
1369 * java/lang/Rectangle.java (intersects): Check r.width and r.height
1372 2004-08-31 Michael Koch <konqueror@gmx.de>
1374 * javax/swing/text/PlainView.java
1375 (selectedColor): New field.
1376 (unselectedColor): Likewise.
1378 (updateMetrics): New method.
1379 (lineToRect): Likewise.
1380 (modelToView): Likewise.
1381 (drawSelectedText): Use color from JTextComponent ad draw with
1383 (drawUnselectedText): Likewise.
1384 (paint): Initialize helper fields.
1385 * javax/swing/text/View.java
1386 (getChildAllocation): New method.
1387 (getViewIndex): Likewise.
1388 (getToolTipText): Likewise.
1390 2004-08-31 Michael Koch <konqueror@gmx.de>
1392 * javax/swing/text/Utilities.java
1393 (drawTabbedText): Reimplemented.
1394 (getTabbedTextWidth): Likewise.
1396 2004-08-31 Michael Koch <konqueror@gmx.de>
1398 * javax/swing/plaf/basic/BasicTextUI.java
1399 (installDefaults): Install caret and highlighter.
1400 (modelToView): Use Bias.Forward when calling sibling.
1401 * javax/swing/text/AbstractDocument.java
1402 (ElementEdit): Implements DocumentEvent.ElementChange.
1403 (ElementEdit.ElementEdit): New method.
1404 (ElementEdit.getChildrenAdded): Likewise.
1405 (ElementEdit.getChildrenRemoved): Likewise.
1406 (ElementEdit.getElement): Likewise.
1407 (ElementEdit.getIndex): Likewise.
1408 * javax/swing/text/DefaultCaret.java
1410 (textComponent): Renamed from parent, made private.
1411 (selectionVisible): Renamed from vis_sel, made private.
1412 (blinkRate): Renamed from blink, made private.
1413 (magicCaretPosition): Renamed from magic, made private.
1414 (visible): Renamed from vis, made private.
1415 (dot): Made private.
1417 (deinstall): Remove as MouseMotionListener.
1418 (install): Initialize textComponent first. Add as MouseMotionListener.
1419 (paint): Reimplemented.
1420 * javax/swing/text/JTextComponent.java
1421 (setCaret): Deinstall old caret, install new one and fire property
1422 change after setting property.
1423 (setHighlighter): Deinstall old highlighter, install new one and fire
1424 property change after setting property.
1425 (setCaretColor): Fire property change after setting property.
1426 (setDisabledTextColor): Likewise.
1427 (setSelectedTextColor): Likewise.
1428 (setSelectionColor): Likewise.
1429 (modelToView): New method.
1431 2004-08-31 Michael Koch <konqueror@gmx.de>
1433 * javax/swing/text/AbstractDocument.java
1434 (getText): Simplified.
1435 * javax/swing/text/Segment.java
1436 (current): New field.
1437 (current): Reimplemented.
1439 (getIndex): Likewise.
1442 (previous): Likewise.
1443 (setIndex): Likewise.
1445 2004-08-31 Michael Koch <konqueror@gmx.de>
1447 * javax/swing/plaf/basic/BasicButtonUI.java
1448 (defaultTextIconGap): Made protected.
1449 (defaultTextShiftOffset): Likewise.
1450 (textShiftOffset): New field.
1451 (clearTextShiftOffset): New method.
1452 (getTextShiftOffset): Likewise.
1453 (setTextShiftOffset): Likewise.
1455 2004-08-31 Michael Koch <konqueror@gmx.de>
1457 * javax/swing/plaf/basic/BasicTextUI.java
1458 (installUI): Add eventHandler as property listener.
1459 (uninstallUI): remove eventHandler as propert listener.
1460 (installDefaults): Added comment.
1461 (installListeners): Likewise.
1462 (installKeyboardActions): Likewise.
1463 (uninstallDefaults): Likewise.
1464 (uninstallListeners): Likewise.
1465 (uninstallKeyboardActions): Likewise.
1467 2004-08-31 Michael Koch <konqueror@gmx.de>
1469 * javax/swing/text/AbstractDocument.java:
1470 Fixed some typos in comments.
1471 (insertString): Reimplemented.
1473 (replace): New method.
1474 (children): Dont use fully qualified class name.
1475 (DefaultDocumentEvent.offset): Renamed from off.
1476 (DefaultDocumentEvent.length): Renamed from len.
1477 (DefaultDocumentEvent.type): New field.
1478 (DefaultDocumentEvent.DefaultDocumentEvent): New constructor.
1479 (DefaultDocumentEvent.getType): Implemented.
1481 2004-08-31 Michael Koch <konqueror@gmx.de>
1483 * javax/swing/plaf/basic/BasicTextUI.java
1484 (RootView.textComponent): Removed.
1485 (RootView.RootView): Don't initialize textComponent.
1486 (RootView.getViewFactory): New method.
1487 (EventHandler): New inner class.
1488 (rootView): Initialize at instance creation.
1489 (eventHandler): New field.
1490 (installUI): Don't create view hierarchy directly,
1491 call modelChanged() instead.
1492 (modelChanged): New method.
1493 * javax/swing/text/JTextComponent.java
1494 (setDocument): Fire property change event.
1496 2004-08-31 Michael Koch <konqueror@gmx.de>
1498 * javax/swing/plaf/basic/BasicTextUI.java
1499 (RootView.paint): Removed debug output.
1500 (paintSafely): Draw highlighter before text.
1501 (paintBackground): Use background color of text component.
1502 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
1505 2004-08-31 Michael Koch <konqueror@gmx.de>
1507 * javax/swing/plaf/basic/BasicToolBarUI.java
1508 (BasicToolBarUI): Fixed arguments for constructor.
1509 (createUI): Fixed creation of object.
1511 2004-08-31 Michael Koch <konqueror@gmx.de>
1513 * javax/swing/DefaultListSelectionModel.java
1514 (fireValueChanged): Renamed from fireSelectionValueChanged,
1517 2004-08-31 Michael Koch <konqueror@gmx.de>
1519 * javax/swing/text/TabSet.java
1520 (TabSet): Implements java.io.Serializable.
1521 * javax/swing/text/TabStop.java
1522 (TabStop): Implements java.io.Serializable.
1523 (TabStop): Made public.
1525 2004-08-31 Michael Koch <konqueror@gmx.de>
1527 * javax/swing/JComponent.java
1528 (setUI): Fire PropertyChange.
1529 * javax/swing/JLabel.java
1530 (text): Renamed from labelText.
1531 (horizontalAlignment): New default vlaue.
1532 (icon): Renamed from activeIcon.
1533 (displayedMnemonic): Renamed from mnemonicKey, added default value.
1534 (displayedMnemonicIndex): Renamed from underlineChar.
1535 (setDisplayedMnemonic): Reimplemented.
1536 * javax/swing/JRadioButton.java
1537 (JRadioButton): New constructors.
1538 * javax/swing/JTextField.java
1539 (JTextField): Throw exception if colums < 0, initialitialz
1540 this.columns directly and initialize document with text conditionally.
1542 2004-08-31 Michael Koch <konqueror@gmx.de>
1544 * javax/swing/plaf/basic/BasicFormattedTextFieldUI.java,
1545 javax/swing/plaf/basic/BasicPasswordFieldUI.java,
1546 javax/swing/plaf/basic/BasicTextAreaUI.java: New files.
1547 * javax/swing/text/FieldView.java
1548 (paint): Just call super method for now.
1549 * Makefile.am: Added new files.
1550 * Makefile.in: Regenerated.
1552 2004-08-31 Ka-Hing Cheung <kahing@javabsp.org>
1554 * javax/swing/AbstractSpinnerModel.java,
1555 javax/swing/JSpinner.java,
1556 javax/swing/SpinnerNumberModel.java,
1557 javax/swing/plaf/basic/BasicSpinnerUI.java:
1559 * javax/swing/plaf/basic/BasicLookAndFeel.java
1560 (initClassDefaults): Added defaults for BasicSpinnerUI.
1562 2004-08-31 Michael Koch <konqueror@gmx.de>
1564 * Makefile.am: Added new files.
1565 * Makefile.in: Regenerated.
1567 2004-08-31 Michael Koch <konqueror@gmx.de>
1569 * javax/swing/TransferHandler.java,
1570 javax/swing/plaf/basic/ComboPopup.java: New files
1571 * Makefile.am: Added javax/swing/TransferHandler.java and
1572 javax/swing/plaf/basic/ComboPopup.java
1573 * Makefile.in: Regenerated.
1575 2004-08-31 Roman Kennke <roman@ontographics.com>
1577 * javax/swing/text/Utilities.java: New file.
1579 2004-08-31 Michael Koch <konqueror@gmx.de>
1581 * Makefile.am: Added javax/swing/text/Utilities.java.
1582 * Makefile.in: Regenerated.
1584 2004-08-31 Graydon Hoare <graydon@redhat.com>
1586 * javax/swing/text/SimpleAttributeSet.java: New file.
1587 * javax/swing/text/StyleConstants.java: New file.
1588 * javax/swing/text/StyleContext.java: New file.
1589 * javax/swing/text/TabSet.java: New file.
1590 * javax/swing/text/TabStop.java: New file.
1591 * javax/swing/text/AbstactDocument.java:
1592 (AbstractElement): Implement attribute support.
1593 * javax/swing/text/AttributeSet.java
1594 (NameAttribute): New static field.
1595 (ResolveAttribute): New static field.
1596 * Makefile.am: Update for new files.
1597 * Makefile.in: Regenerate.
1599 2004-08-31 Craig Black <craig.black@aonix.com>
1601 * gnu/java/awt/peer/gtk/GdkGraphics.java
1602 (drawImage): Add support for scaling pixmaps.
1603 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1604 (copyAndScalePixmap): New native method.
1606 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1609 * jni/gtk-peer/gthread-jni.c: Include stdio.h. Eliminate
1610 type-punning compiler warnings using unions.
1611 (throw): Replace bzero with memset.
1613 2004-08-31 Andreas Tobler <a.tobler@schweiz.ch>
1614 Thomas Fitzsimmons <fitzsim@redhat.com>
1616 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: Move
1617 NSA_PB macros to gtkpeer.h. Include gtkpeer.h.
1618 * jni/gtk-peer/gtkpeer.h: Move NSA_PB macros here.
1619 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1620 (nativeSetIconImageFromDecoder): Use NSA_GET_PB_PTR macro.
1622 2004-08-31 Mark Wielaard <mark@klomp.org>
1624 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
1625 #include gdk.h, not gtk.h. #include jni.h, native_state.h, string.h
1626 and stdlib.h, not gtkpeer.h.
1627 (*vm): New static variable.
1628 (areaPreparedID): Make static.
1629 (areaUpdatedID): Likewise.
1630 (area_prepared): Get and use JNIEnv through stored JavaVM *vm.
1631 (area_prepared): Likewise.
1632 (area_updated): Likewise.
1634 (initStaticState): Initialize *vm javaVM.
1635 (pumpBytes): Use given env, not global gdk_env.
1637 2004-08-31 Mark Wielaard <mark@klomp.org>
1639 * java/awt/geom/CubicCurve2D.java (solveCubic): Removed duplicate
1642 2004-08-31 Sven de Marothy <sven@physto.se>
1644 * java/awt/geom/CubicCurve2D.java: Reindent.
1645 (contains): Implemented.
1646 (intersects): Implemented.
1647 * java/awt/geom/QuadCurve2D.java: Likewise.
1648 * java/awt/geom/GeneralPath.java: Reindent and document.
1649 Fully (re)implemented using separate xpoints and ypoints
1651 * java/awt/geom/RoundRectangle2D.java: Several bugfixes (Bug #6007).
1653 2004-08-31 Michael Koch <konqueror@gmx.de>
1655 * javax/swing/JMenuItem.java
1656 (getMenuDragMouseListeners): New method.
1657 (getMenuKeyListeners): Likewise.
1659 2004-08-31 Michael Koch <konqueror@gmx.de>
1661 * javax/swing/AbstractButton.java
1662 (model): Made protected.
1663 (actionListener): Likewise.
1664 (changeListener): Likewise.
1665 (itemListener): Likewise.
1666 (multiClickThreshhold): New field.
1667 (getActionListeners): New method.
1668 (getChangeListeners): Likewise.
1669 (getItemListeners): Likewise.
1670 (fireItemStateChanged): Simplified implementation.
1671 (fireActionPerformed): Likewise.
1672 (fireStateChanged): Likewise.
1673 (getMultiClickThreshhold): New method.
1674 (setMultiClickThreshhold): Likewise.
1676 2004-08-31 Tom Tromey <tromey@redhat.com>
1678 * java/awt/image/Kernel.java (clone): Use super.clone().
1680 2004-08-31 David Jee <djee@redhat.com>
1683 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1684 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1685 (nativeSetIconImageFromData): New native method declaration.
1686 (setIconImage): Handle images not produced from GdkPixbufDecoder.
1687 * gnu/java/awt/peer/gtk/GtkImage.java
1688 (getPixelCache): New method.
1689 (getColorModel): New method.
1690 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1691 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1692 (free_pixbuf_data): New helper function.
1693 (nativeSetIconImageFromData): New function.
1695 2004-08-31 Graydon Hoare <graydon@redhat.com>
1698 * javax/swing/JLayeredPane.java
1699 (setLayer): Permit changing layer after addition.
1700 (setPosition): Permit over-length positions.
1701 (layerToRange): Compare intValue()s.
1702 * javax/swing/Box.java (createHorizontalBox): Implement.
1703 (createRigidArea): Likewise.
1704 (createVerticalBox): Likewise.
1706 2004-08-31 Kim Ho <kho@redhat.com>
1708 * java/awt/Component.java:
1709 (processMouseEvent): Consume event after
1710 listeners process it.
1711 (processMouseMotionEvent): ditto.
1712 (processMouseWheelEvent): ditto.
1713 * java/awt/Container.java:
1714 (acquireComponentForMouseEvent):
1715 Do not dispatch to events that have been
1716 removed from the Container.
1717 (handleEvent): Consume the MouseEvents.
1718 * javax/swing/RepaintManager.java:
1719 (paintDirtyRegions): Do not add to list of
1720 damaged areas if the component has no root.
1722 2004-08-31 Michael Koch <konqueror@gmx.de>
1724 * javax/swing/plaf/basic/BasicMenuItemUI.java: Clean ip imports.
1726 2004-08-31 Mark Wielaard <mark@klomp.org>
1728 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
1729 null when a MissingResourceException is thrown. Should never happen.
1731 2004-08-31 Mark Wielaard <mark@klomp.org>
1733 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1734 when argument is null.
1736 2004-08-31 Mark Wielaard <mark@klomp.org>
1738 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1739 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
1740 Define hid at start of function.
1741 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
1744 2004-08-31 Mark Wielaard <mark@klomp.org>
1746 * gnu/java/awt/EmbeddedWindow.java: Reindent.
1747 * javax/swing/JButton.java: Reindent.
1748 * javax/swing/JCheckBox.java: Reindent.
1750 2004-08-31 Mark Wielaard <mark@klomp.org>
1752 * Makefile.am (gtk_c_source_files): Added
1753 jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c.
1754 (gtk_awt_peer_sources): Added
1755 gnu/java/awt/peer/gtk/GThreadMutex.java and
1756 gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java.
1757 * Makefile.in: Regenerated.
1759 2004-08-31 Archie Cobbs <archie@dellroad.org>
1761 * jni/gtk-peer/gthread-jni.c: don't #include nonexistent files
1763 2004-08-31 Steven Augart <augart@watson.ibm.com>
1765 * jni/gtk-peer/gthread-jni.c (c-font-lock-extra-types):
1766 Added jfieldID, jmethodID.
1768 2004-08-31 Mark Wielaard <mark@klomp.org>
1770 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1771 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): Initialize
1772 gdk_env before calling any gdk or gtk function.
1774 * gnu/java/awt/peer/gtk/GtkMainThread.java (gtkInitCalled): New field.
1775 (GtkMainThread): Call wait() in while loop waiting for gtkInitCalled.
1776 (run): Set gtkInitCalled.
1778 2004-08-31 Steven Augart <augart@watson.ibm.com>
1780 * gnu/java/awt/peer/gtk/GtkMainThread.java (run): Pass the value of
1781 the gnu.classpath.awt.gtk.portable.native.sync system property to C.
1783 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1784 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): New argument,
1785 portableNativeSync. Delegate PORTABLE_NATIVE_SYNC work to
1787 (init_glib_threads): New function.
1789 2004-08-31 Mark Wielaard <mark@klomp.org>
1791 * jni/gtk-peer/gthread-jni.c: Define MIN_, MAX_ and NORM_
1792 PRIORITY when not already defined in header file.
1794 2004-08-31 Mark Wielaard <mark@klomp.org>
1796 * jni/gtk-peer/gthread-jni.c (setup_cache): Call
1797 ExceptionOccurred, not ExceptionCheck, when we don't have JNI 1.2.
1799 2004-08-31 Steven Augart <augart@watson.ibm.com>
1801 * gnu/native/jni/gtk-peer/gthread-jni.c: Indentation fixes.
1802 Implemented missing functions for GTK2.
1803 Added error handling.
1804 Renamed static functions out of the g_ namespace.
1805 Added TRACE_API_CALLS, EXPLAIN_TROUBLE, EXPLAIN_BROKEN,
1806 EXPLAIN_BADLY_BROKEN, and DELETE_LOCAL_REFS options.
1807 Rewrote global-reference code.
1808 Eliminated cascading errors.
1809 (mutex_trylock_jni_impl) Fully implemented.
1810 (cond_timed_wait_jni_impl) Went from millisecond to microsecond
1812 (setup_cache) New function.
1813 (mutex_cond_wait_jni_impl, mutex_cond_timed_wait_jni_impl) Fixed
1814 bug where they were not unlocking the GMutex associated with the
1815 condition variable during the wait on that condition variable.
1817 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
1818 native/jni/gtk-peer/gthread-jni.c,
1819 native/jni/gtk-peer/gthread-jni.h
1820 (g_thread_jni_functions): Renamed to ...
1821 (portable_native_sync_jni_functions): this name.
1822 (gdk_vm): Renamed to...
1823 (the_vm): this name.
1825 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1826 (gdk_vm): Removed duplicate definition.
1827 (gtkInit): Removed stray message to stdout.
1828 (gtkInit): Use g_malloc and g_free instead of malloc and free.
1829 (gtkInit): Fix a const assignment bug.
1830 (gtkInit): Simplified code.
1832 * gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
1833 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
1834 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h,
1835 gnu/java/awt/peer/gtk/GThreadMutex.java:
1838 2004-08-31 Mark Wielaard <mark@klomp.org>
1840 * javax/swing/Box.java: Put FIXME comment above class declaration.
1841 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1842 * javax/swing/JCheckBox.java: Likewise.
1843 * javax/swing/JDialog.java: Likewise.
1844 * javax/swing/JRadioButton.java: Likewise.
1845 * javax/swing/JToggleButton.java: Likewise.
1846 * javax/swing/UIManager.java: Likewise.
1847 * javax/swing/border/TitledBorder.java: Likewise.
1848 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1849 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1850 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1851 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1852 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1853 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1854 * javax/swing/text/JTextComponent.java: Likewise.
1856 2004-08-31 David Jee <djee@redhat.com>
1859 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1860 (setIconImage): Add a FIXME for unhandled cases.
1862 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1865 * gnu/awt/LightweightRedirector.java: Call getModifiersEx, not
1866 getModifiers. Replace old button masks with new ones.
1867 * gnu/awt/xlib/XEventLoop.java: Likewise.
1868 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Likewise.
1869 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1870 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
1871 * gnu/java/awt/peer/gtk/GtkListPeer.java: Likewise.
1872 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
1873 * java/awt/AWTKeyStroke.java: Remove old modifier masks.
1874 * java/awt/Component.java: Replace old modifier masks with new
1876 * java/awt/Container.java: Call getModifiersEx, not
1878 * java/awt/DefaultKeyboardFocusManager.java: Likewise. Remove
1880 * javax/swing/JMenuItem.java: Replace old button masks with new
1882 * javax/swing/KeyStroke.java: Call getModifiersEx, not
1884 * javax/swing/SwingUtilities.java: Likewise.
1885 * javax/swing/plaf/basic/BasicButtonListener.java: Likewise.
1886 * javax/swing/plaf/basic/BasicInternalFrameUI.java: Likewise.
1887 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Replace old
1888 mask macros with new ones.
1889 * jni/gtk-peer/gtkpeer.h: Replace old button and modifier mask
1890 macros with new ones representing new masks.
1892 2004-08-31 Craig Black <craig.black@aonix.com>
1894 * gnu/java/awt/peer/gtk/GdkGraphics.java
1895 (drawRoundRect): Implemented.
1896 (fillRoundRect): Implemented.
1897 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1898 (drawRoundRect): Reimplemented to match GdkGraphics.
1899 (fillRoundRect): Reimplemented to match GdkGraphics.
1901 2004-08-31 Mark Wielaard <mark@klomp.org>
1903 * Makefile.in: Regenerated.
1905 2004-08-31 Michael Koch <konqueror@gmx.de>
1907 * gnu/java/awt/EmbeddedWindow.java
1908 (addNotify): Use AccessController to allow execution of privileged
1911 2004-08-31 Michael Koch <konqueror@gmx.de>
1913 * gnu/java/awt/EmbeddedWindow.java
1915 (addNotify): Set peer via reflection.
1916 (setWindowPeer): Removed.
1917 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1918 * Makefile.am (nat_source_files):
1919 Removed gnu/java/awt/natEmbeddedWindow.cc.
1921 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1923 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
1924 and gnu/java/security/action/SetAccessibleAction.java.
1926 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1928 * gnu/java/security/action/GetPropertyAction.java (setParameters):
1929 Renamed from 'setName'. New 2-argument form with default value.
1930 (run): Pass default 'value' parameter to System.getProperty().
1931 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
1934 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1936 * gnu/java/security/action/GetPropertyAction.java: New class.
1937 * gnu/java/security/action/SetAccessibleAction.java: New class.
1939 2004-08-31 David Jee <djee@redhat.com>
1941 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1942 (setIconImage): Check if image is null.
1944 2004-08-31 David Jee <djee@redhat.com>
1946 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1947 (create): Set the icon image.
1948 (nativeSetIconImage): New native method declaration.
1949 (setIconImage): Implement.
1950 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1951 (nativeSetIconImage): New function.
1953 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1955 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1956 (filenameFilterCallback): Declare local variable accepted before use.
1958 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1960 * gnu/java/awt/ComponentDataBlitOp.java:
1963 2004-08-31 Tom Tromey <tromey@redhat.com>
1965 * gnu/java/awt/peer/GLightweightPeer.java,
1966 gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1967 gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1968 javax/swing/JScrollPane.java: Removed
1971 2004-08-31 David Jee <djee@redhat.com>
1973 * java/awt/DefaultKeyboardFocusManager.java
1974 (postProcessKeyEvent): Only activate MenuShortcuts on KEY_PRESSED
1975 event. Fix shift modifier checking.
1976 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1977 (accel_attach): Remove.
1978 (setupAccelGroup): Remove calls to accel_attach.
1980 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1982 * gnu/java/awt/peer/gtk/GtkArg.java: Remove file.
1983 * gnu/java/awt/peer/gtk/GtkArgList.java: Remove file.
1985 * Makefile.am (gtk_awt_peer_sources): Remove GtkArg.java and
1987 (gtk_c_files): Use CAIRO_CFLAGS and PANGOFT2_CFLAGS, not _LIBS.
1988 * Makefile.in: Regenerate.
1989 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1990 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1991 (create(String)): New method.
1992 (create): Call new create method.
1993 (getArgs): Remove method.
1994 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
1995 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
1996 (nativeCreate): Rename to create.
1997 (gtkSetLabel): Rename to gtkButtonSetLabel.
1998 (gtkToggleButtonSetActive): New method.
1999 (create): Call gtkToggleButtonSetActive and gtkButtonSetLabel.
2000 (setState): Replace set call with gtkToggleButtonSetActive.
2001 (setLabel): Replace gtkSetLabel call with gtkButtonSetLabel.
2002 (getArgs): Remove method.
2003 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
2004 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2005 (gtkWidgetSetSensitive): New method.
2006 (gtkWidgetSetParent): Likewise.
2007 (GtkComponentPeer): Call setParent, setComponentBounds and
2008 setVisibleAndEnabled.
2009 (setParent): New method.
2010 (setComponentBounds): New method.
2011 (setVisibleAndEnabled): New method.
2012 (setEnabled): Call gtkWidgetSetSensitive.
2013 (getArgs): Remove method.
2014 Remove all set methods.
2015 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Call
2016 gtkWindowSetModal, setTitle and setResizable.
2017 (getArgs): Remove method.
2018 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2019 (setComponentBounds): New method.
2020 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
2021 Replace set call with gtkWindowSetResizable.
2022 (getArgs): Remove method.
2023 (create): Call setTitle and setResizable.
2024 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
2025 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2026 (gtkWindowSetTitle): New method.
2027 (gtkWindowSetResizable): New method.
2028 (gtkWindowSetModal): New method.
2029 (setParent): New method.
2030 (setVisibleAndEnabled): New method.
2031 (getArgs): Remove method.
2032 (setTitle): Call gtkWindowSetTitle.
2033 (setResizable): Call gtkWindowSetResizable.
2034 * jni/gtk-peer/gtkpeer.h [DEBUG_LOCKING]: New define to turn on
2035 and off locking instrumentation.
2037 2004-08-31 Kim Ho <kho@redhat.com>
2039 * Makefile.am: Add new file.
2040 * Makefile.in: Regenerate.
2041 * gcj/Makefile.in: Regenerate
2042 * include/Makefile.in:
2043 * java/awt/Container.java:
2044 (acquireComponentForMouseEvent): Respect
2045 the event mask when looking for candidate.
2046 * javax/swing/JComponent.java:
2047 Remove toolTip field.
2048 (createToolTip): Create a tooltip on demand.
2049 (setToolTipText): Register with the ToolTipManager.
2050 (getToolTipText(MouseEvent)): Return getToolTipText().
2051 * javax/swing/JToolTip.java: Implement.
2052 * javax/swing/Timer.java: Jalopy.
2053 (restart): Call stop, then start.
2054 (stop): Interrupt the timer rather than wait for
2055 the timer to come to a stop naturally.
2056 * javax/swing/ToolTipManager.java: Implement.
2057 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2058 Change ToolTip.background color.
2059 * javax/swing/plaf/basic/BasicToolTipUI.java:
2061 * testsuite/Makefile.in: Regenerate
2063 2004-08-31 Jerry Quinn <jlquinn@optonline.net>
2065 * java/awt/image/DirectColorModel.java (DirectColorModel): Fix
2066 constructor param comments.
2068 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
2070 * java/awt/Component.java: Document AWT 1.0 event handler
2073 2004-08-31 Roman Kennke <roman@ontographics.com>
2075 * javax/swing/Box.java:
2076 (createGlue): Implemented
2077 (createHorizontalGlue): Implemented
2078 (createHorizontalStrut): Implemented
2079 (createVerticalGlue): Implemented
2080 (createVerticalStrut): Implemented
2082 2004-08-31 David Jee <djee@redhat.com>
2084 * gnu/java/awt/peer/gtk/GtkChoicePeer.java
2085 (GtkChoicePeer): Do not automatically select first item.
2086 (getHistory): Remove.
2087 (nativeGetSelected): New method.
2088 (nativeRemoveAll): New method.
2089 (add): Use nativeGetSelected() instead of getHistory().
2091 (removeAll): Call nativeRemoveAll().
2092 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
2093 (create): Migrate to GtkComboBox.
2095 (nativeAdd): Likewise.
2096 (nativeRemove): Likewise.
2098 (nativeRemoveAll): New method.
2099 (nativeGetSelected): New method.
2100 (selection_changed): New method.
2101 (getHistory): Remove.
2102 (item_activate): Remove.
2103 (item_removed): Remove.
2104 (connect_choice_item_selectable_hook): Remove.
2106 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
2108 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create): Use tf
2109 variable in setEditable call.
2111 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
2112 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
2113 (gtkWidgetSetBackground): New method.
2114 (gtkWidgetSetForeground): Likewise.
2115 (create): Set peer's editable state based on awtComponent's.
2117 * java/awt/Button.java (Button()): Use empty string rather than
2118 null in no-label constructor.
2120 2004-08-31 Roman Kennke <roman@ontographics.com>
2122 * javax/swing/BoxLayout.java: Reimplement.
2124 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
2126 * gnu/java/awt/peer/gtk/GdkGraphics.java,
2127 gnu_java_awt_peer_gtk_GdkGraphics.c
2128 (initState(GtkComponentPeer)): Don't return array of colour
2130 (GdkGraphics(int,int)): Set default font to size 12.
2131 (GdkGraphics(GtkComponentPeer)): Set graphics colour to
2132 component's foreground colour.
2133 * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
2134 gnu_java_awt_peer_gtk_GdkGraphics2D.c
2135 (initState(GtkComponentPeer)): Don't return array of colour
2137 (GdkGraphics2D(GtkComponentPeer)): Set foreground and background
2138 colours to component's colours.
2139 (current_colors_of_widget): Remove function.
2140 * gnu/java/awt/peer/gtk/GtkOffScreenImage.java (getGraphics):
2141 Return a new graphics object.
2142 * java/awt/Font.java (toString): Fix format.
2143 * java/awt/Graphics.java (toString): Likewise.
2145 2004-08-31 Craig Black <craig.black@aonix.com>
2147 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
2148 (addTearOff): New function.
2149 * gnu/java/awt/peer/gtk/GtkMenuPeer.java (addTearOff):
2151 (init): Call addTearOff() when menu.isTearOff().
2153 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
2155 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2156 Default implementation.
2157 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2158 Implement using GdkPixbufDecoder.
2160 2004-08-31 David Jee <djee@redhat.com>
2162 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
2163 (GtkComponentPeer): Use gtkWidgetGetPreferredDimensions() for
2164 setting the size of GtkFileDialogPeers.
2165 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2166 (gtkWidgetGetPreferredDimensions): For widgets extending GtkWindow,
2167 use their default sizes rather than their natural requisitions.
2169 2004-08-31 Michael Koch <konqueror@gmx.de>
2171 * javax/swing/JFormattedTextField.java
2172 (JFormattedTextField): Implemented.
2173 * javax/swing/text/DefaultEditorKit.java
2174 (BeepAction): New inner class.
2175 * javax/swing/text/Segment.java
2176 (partialReturn): New field.
2177 (setPartialReturn): New method.
2178 (isPartialReturn): Likewise.
2179 * javax/swing/text/View.java
2180 (createFragment): Fixed typo.
2181 (getStartOffset): New method.
2182 (getEndOffset): Likewise.
2184 2004-08-31 Michael Koch <konqueror@gmx.de>
2186 * javax/swing/table/DefaultTableColumnModel.java
2187 (serialVersionUID): Made private.
2188 (listenerList): Initialize.
2189 (changeEvent): Initialize.
2190 * javax/swing/table/JTableHeader.java
2191 (JTableHeader): New constructors.
2192 (createDefaultColumnModel): New method.
2193 * javax/swing/table/TableColumn.java
2194 (setHeaderRenderer): Simplified code.
2195 (setCellRenderer): Likewise.
2196 (setWidth): Likewise.
2198 2004-08-31 Tom Tromey <tromey@redhat.com>
2200 * java/text/AttributedString.java (AttributedString): Use
2201 ArrayList to build array of attribute ranges. Don't use
2202 `attribs' before it is set.
2204 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
2206 * HACKING: Remove reference to special automake. No longer needed.
2208 2004-08-30 Tom Tromey <tromey@redhat.com>
2210 * gnu/java/security/util/Prime.java (generateRandomPrime): Use
2211 return result from `add'.
2213 2004-08-30 Tom Tromey <tromey@redhat.com>
2215 * java/rmi/server/UID.java (UID): Read `nextCount', not count.
2217 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
2219 * gnu/java/security/der/DEREncodingException.java: Remove whitespaces.
2221 2004-08-30 Jeroen Frijters <jeroen@frijters.net>
2223 * java/io/File.java File(String,String): Fixed handling of empty
2226 2004-08-30 Casey Marshall <csm@gnu.org>
2228 Author e-mail updated for all files.
2229 * gnu/java/security/OID.java (equals): Test if the aurgment is an
2231 (compareTo): Use `equals'.
2232 * gnu/java/security/der/BitString.java (equals): Test if the
2233 argument is an instance of BitString.
2234 * gnu/java/security/der/DERReader.java: Removed NIO imports. Made
2235 class final. Made fields private.
2236 (<init>): New constructor.
2238 (makeString): Made static; don't use NIO.
2239 (fromIso88591, fromUtf16Be, fromUtf8): New methods.
2240 * gnu/java/security/der/DERWriter.java: Fixed imports.
2241 (writeString): Don't use NIO.
2242 (toIso88591, toUtf16Be, toUtf8): New methods.
2243 * gnu/java/security/der/DERValue.java: Formatting changes only.
2244 * gnu/java/security/der/DER.java: Likewise.
2246 2004-08-30 Tom Tromey <tromey@redhat.com>
2248 * java/nio/CharBuffer.java (put): Fix typo.
2249 * java/nio/DoubleBuffer.java (put): Fix typo.
2250 * java/nio/FloatBuffer.java (put): Fix typo.
2251 * java/nio/IntBuffer.java (put): Fix typo.
2252 * java/nio/LongBuffer.java (put): Fix typo.
2253 * java/nio/ShortBuffer.java (put): Fix typo.
2255 2004-08-30 Florian Weimer <fw@deneb.enyo.de>
2257 * java/nio/ByteBuffer.java (put): Fix typo.
2259 2004-08-30 Casey Marshall <csm@gnu.org>
2261 * java/security/DummyKeyPairGenerator.java (clone): Removed
2262 useless instanceof check.
2263 * java/security/DummyMessageDigest.java (clone): Likewise.
2264 * java/security/DummySignature.java (clone): Likewise.
2265 * java/security/MessageDigest.java (clone): Remove useless
2267 * java/security/MessageDigestSpi.java (clone): Likewise.
2268 * java/security/Signature.java (clone): Provide meaningful
2270 * java/security/SignatureSpi.java (clone): Likewise.
2272 2004-08-29 Mark Wielaard <mark@klomp.org>
2274 * java/util/Arrays.java
2275 (sort(byte[], int, int)): Check fromIndex < 0.
2276 (sort(char[], int, int)): Likewise.
2277 (sort(short[], int, int)): Likewise.
2278 (sort(int[], int, int)): Likewise.
2279 (sort(long[], int, int)): Likewise.
2280 (sort(float[], int, int)): Likewise.
2281 (sort(double[], int, int)): Likewise.
2282 (sort(Object[], int, int, Comparator)): Likewise.
2283 (qsort(byte[], int, int)): Honor lower bound from in insertion sort.
2284 (qsort(char[], int, int)): Likewise.
2285 (qsort(short[], int, int)): Likewise.
2286 (qsort(int[], int, int)): Likewise.
2287 (qsort(long[], int, int)): Likewise.
2288 (qsort(float[], int, int)): Likewise.
2289 (qsort(double[], int, int)): Likewise.
2291 2004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
2293 * java/util/AbstractCollection.java, java/util/AbstractList.java,
2294 java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
2295 java/util/ArrayList.java, java/util/Arrays.java,
2296 java/util/BitSet.java, java/util/Calendar.java,
2297 java/util/Collection.java, java/util/ListIterator.java,
2298 java/util/Map.java, java/util/SortedSet.java:
2299 Added additional exceptions to documentation, along
2300 with some additions and corrections.
2302 2004-08-27 Hans Boehm <Hans.Boehm@hp.com>
2304 * configure.ac: Handle --enable-gc-debug.
2305 * configure: Regenerate.
2306 * include/config.h.in (LIBGCJ_GC_DEBUG): Add.
2307 * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files.
2308 Rearrange include file order.
2309 (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set.
2310 (GC_finalize_all, GC_debug_generic_malloc): Don't declare.
2311 (disable_gc_mutex): Delete along with all references.
2312 (_Jv_MarkObj, _Jv_MarkArray): Use public types,
2313 adjust for debug header size.
2314 (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for
2316 (_Jv_AllocArray): Declare min_heap_addr only if needed.
2317 (gcj_describe_type_fn): New.
2318 (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind.
2319 Register gcj_describe_type_fn.
2320 * include/boehm-gc.h:
2321 (_Jv_AllocObj, _Jv_allocPtrFreeObj):
2322 Don't define, but declare, for debug case.
2323 * java/lang/natObject.cc:
2324 (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set.
2326 2004-08-26 Mark Wielaard <mark@klomp.org>
2328 Fixes PR libgcj/17002:
2329 * java/util/TimeZone.java (defaultZone): Try a couple of ways to get
2330 a TimeZoneId string and then try to convert that to a TimeZone with
2331 getDefaultSystemTimeZone(String).
2332 (timezones0): Changed type from Hashtable to HashMap.
2333 (timezones): Create HashMap, not Hashtable.
2334 (getDefaultTimeZone): New method, rewritten from CNI version.
2335 (readTimeZoneFile): New method.
2336 (readtzFile): Likewise.
2337 (skipFully): Likewise.
2338 * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
2339 getDefaultTimeZoneId and rewritten.
2340 (getDefaultTimeZoneId): Rewritten in java.
2342 2004-08-25 David Daney <daney@avtrex.com>
2344 * Makefile.am (AM_GCJFLAGS): Add LIBGCJ_JAVAFLAGS.
2345 * Makefile.in: Regenerated.
2347 2004-08-23 Bryce McKinlay <mckinlay@redhat.com>
2349 * prims.cc (JVMPI_NOTIFY_ALLOC): New macro. Call jvmpi_notify_alloc
2350 only if jvmpi is enabled.
2351 (jvmpi_notify_alloc): Don't check if jvmpi is enabled here.
2352 (_Jv_AllocObjectNoFinalizer): Use JVMPI_NOTIFY_ALLOC.
2353 (_Jv_AllocString): Likewise.
2354 (_Jv_AllocPtrFreeObject): Likewise.
2356 2004-08-23 Hans Boehm <Hans.Boehm@hp.com>
2358 * defineclass.cc: Include <stdio.h>.
2359 * java/lang/natClassLoader.cc: Include <stdio.h>.
2361 2004-08-21 Andreas Tobler <a.tobler@schweiz.ch>
2362 Michael Koch <konqueror@gmx.de>
2364 * Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.
2365 * Makefile.in: Regenerated.
2367 2004-08-20 Michael Koch <konqueror@gmx.de>
2369 * configure.ac: Replaced all AC_TRY_COMPILE macros with
2370 AC_COMPILE_IFELSE macros.
2372 2004-08-20 Michael Koch <konqueror@gmx.de>
2374 * configure.in: Renamed to configure.ac.
2375 * configure.ac: New file.
2376 * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
2377 include/config.h.in, testsuite/Makefile.in: Regenerated.
2379 2004-08-20 Michael Koch <konqueror@gmx.de>
2381 * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
2382 * aclocal.m4, configure: Regenerated.
2384 2004-08-19 Thomas Fitzsimmons <fitzsim@redhat.com>
2385 Michael Koch <konqueror@gmx.de>
2387 * configure.in, Makefile.am: Ported to automake 1.9.
2388 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
2389 include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
2392 2004-08-19 Tom Tromey <tromey@redhat.com>
2394 * java/net/DatagramSocket.java: Fixed typo.
2396 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2399 * java/net/URI.java (string): New field. Make all other fields
2401 (readObject): Implemented.
2402 (writeObject): Implemented.
2403 (URI): Set 'string'.
2405 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2408 * java/util/logging/Handler.java (isLoggable): Accept record if its
2409 log level equals the threshold level. From Robin Green.
2411 2004-08-18 David Daney <ddaney@avtrex.com>
2413 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
2416 2004-08-17 Michael Koch <konqueror@gmx.de>
2418 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
2419 * Makefile.in: Regenerated.
2421 2004-08-16 Tom Tromey <tromey@redhat.com>
2424 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
2426 2004-08-16 Michael Koch <konqueror@gmx.de>
2429 (math_c_files): Renamed from c_files.
2430 (math_c_source_files): Renamed from c_source_files.
2433 include/Makefile.in,
2434 testsuite/Makefile.in: Regenerated.
2436 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
2438 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
2439 to avoid autoconf warning.
2440 * configure: Rebuilt.
2442 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
2444 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
2445 localhostAddress to loopbackAddress.
2446 * java/net/natInetAddressWin32.cc (lookup): Likewise.
2448 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2450 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
2451 boehm-gc's include dirs.
2452 * configure: Rebuilt.
2453 * include/boehm-gc.h: Include gc_config.h.
2455 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2457 * java/net/InetAddress.java (loopbackAddress): Renamed from
2459 (getByName): Return loopback address for null hostname, without
2460 security check. Use lookup(), not getAllByName.
2461 (getAllByName): Return loopback address for null hostname, without
2463 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
2466 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2469 Reported by Robin Green.
2470 * defineclass.cc (handleField): Don't throw exception on unrecognised
2471 modifier. Add FIXME comments for spec compliance.
2472 (handleMethod): Likewise.
2474 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
2477 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
2478 (Almost everywhere): add LOG calls, fix, add comments.
2479 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
2480 Add explicit check for LOCKED bit in slow case (PR 16662).
2481 (_Jv_MonitorExit): Add casts in debug-only code.
2482 Always release LOCKED bit before throwing exception.
2483 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
2484 isn't. Handle easy cases without lock acquisition.
2485 (Object::wait): Use NotifyAll for lock inflation.
2487 2004-08-12 David Daney <ddaney@avtrex.com>
2489 * testsuite/libjava.lang/Process_1.java: New test.
2490 * testsuite/libjava.lang/Process_2.java: New test.
2491 * testsuite/libjava.lang/Process_3.java: New test.
2492 * testsuite/libjava.lang/Process_4.java: New test.
2493 * testsuite/libjava.lang/Process_5.java: New test.
2494 * testsuite/libjava.lang/Process_6.java: New test.
2495 * testsuite/libjava.lang/Process_1.out: Expected result.
2496 * testsuite/libjava.lang/Process_2.out: Expected result.
2497 * testsuite/libjava.lang/Process_3.out: Expected result.
2498 * testsuite/libjava.lang/Process_4.out: Expected result.
2499 * testsuite/libjava.lang/Process_5.out: Expected result.
2500 * testsuite/libjava.lang/Process_6.out: Expected result.
2502 2004-08-12 David Daney <ddaney@avtrex.com>
2505 * java/lang/PosixProcess.java: Rewrote.
2506 * java/lang/natPosixProcess.cc: Rewrote.
2507 * java/lang/Runtime.java (execInternal): Declare throws IOException.
2508 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
2509 * posix-threads.cc (block_sigchld) New function.
2510 (_Jv_ThreadRegister) Use it.
2511 (_Jv_ThreadStart) Use it.
2512 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
2513 * Makefile.am: ... to specify extra native headers.
2514 * configure: Regenerated.
2515 * include/config.h: Regenerated.
2516 * Makefile.in: Regenerated.
2517 * gcj/Makefile.in: Regenerated.
2518 * include/Makefile.in: Regenerated.
2519 * testsuite/Makefile.in: Regenerated.
2521 2004-08-12 Diego Novillo <dnovillo@redhat.com>
2523 PR tree-optimization/16867
2524 * testsuite/libjava.lang/PR16867.java: New test.
2526 2004-08-09 Per Bothner <per@bothner.com>
2528 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
2529 with private fields and access methods.
2530 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
2531 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
2532 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
2533 ( _Jv_makeUtf8Const): Rewrite using new constructors.
2534 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
2535 * defineclass.cc: Use new _Utf8Const access/convenience methods.
2537 * resolve.cc: Likewise.
2538 * gcj/field.h: Likewise.
2539 * include/jvm.h: Likewise.
2540 * java/lang/Class.h: Likewise.
2541 * java/lang/natClass.cc: Likwise.
2542 * java/lang/natClassLoader.cc: Likewise
2543 * java/lang/reflect/natMethod.cc: Likewise
2544 * verify.cc: Likewise.
2545 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
2546 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
2548 2004-08-10 Andrew Haley <aph@redhat.com>
2550 * testsuite/libjava.lang/err14.java: New file.
2551 * testsuite/libjava.lang/err14.out: New file.
2553 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
2555 * Makefile.am: Fix missing rename from x_nat_headers to
2557 * Makefile.in: Regenerated.
2559 2004-08-04 Andrew Haley <aph@redhat.com>
2561 * java/security/BasicPermission.java: Don't check wildcards.
2563 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2564 Michael Koch <konqueror@gmx.de>
2566 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
2567 * configure.in: Replaced all usages of AC_LINK_FILES by
2570 configure: Regenerated.
2572 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2573 Michael Koch <konqueror@gmx.de>
2575 * acconfig.h: Removed.
2576 * Makefile.am: Rename variables for xlib peer to include xlib and
2577 gtk_c_headers to gtk_jni_headers.
2578 * Makefile.in: Regenerated.
2580 2004-08-04 Andrew Haley <aph@redhat.com>
2582 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
2585 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
2587 * configure.in: Eliminate uses of changequote (mostly by quoting []).
2588 Replace most top level 'dnl' comments with '#' comments, conforming
2589 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
2591 * configure: Rebuilt.
2593 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
2595 * acinclude.m4: Include no-executables.m4.
2596 * aclocal.m4: Rebuild.
2597 * configure.in: Convert to the autoconf 2.59 version of
2598 of the no-executables hack, and also of the nonstandard CXX
2599 hack and the multilibbed CC and CXX hack. Change prerequisite
2601 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
2602 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
2603 testsuite/Makefile.in: Regenerate.
2605 2004-08-03 Tom Tromey <tromey@redhat.com>
2607 * jni.cc: Reindented.
2609 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2611 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
2613 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2615 * testsuite/libjava.compile/PR16701.java: New test.
2617 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
2619 * java/util/Collection.java, java/util/List.java,
2620 java/util/Map.java, java/util/Set.java,
2621 java/util/SortedMap.java, java/util/SortedSet.java:
2622 Added additional exceptions to documentation.
2624 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
2627 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
2628 * configure. Regenerate.
2629 * include/win32.h: Explicitly include winsock2.h
2630 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
2633 2004-07-30 Michael Koch <konqueror@gmx.de>
2635 * java/util/zip/GZIPInputStream.java
2636 (GZIPInputStream): Increase buffer size to 4k.
2637 * java/util/zip/GZIPOutputStream.java
2638 (GZIPOutputStream): Likewise.
2639 * java/util/zip/Inflater.java
2640 (setInput): Merged formating with GNU classpath.
2641 * java/util/zip/InflaterInputStream.java
2642 (InflaterInputStream): Increase buffer size to 4k.
2643 (fill): Throw exception if stream ends early.
2644 (read): Merged endless-loop with GNU classpath.
2645 (skip): Increase buffer size to 2k.
2647 2004-07-30 Michael Koch <konqueror@gmx.de>
2649 * gnu/java/awt/EmbeddedWindow.java
2650 (addNotify): Use AccessController to allow execution of privileged
2653 2004-07-29 Michael Koch <konqueror@gmx.de>
2655 * gnu/java/lang/MainThread.java:
2656 Explicitely import used classes.
2657 (args): Make it type String[].
2659 2004-07-29 Dalibor Topic <robilad@kaffe.org>
2661 * gnu/java/awt/ComponentDataBlitOp.java,
2662 gnu/java/beans/ExplicitBeanInfo.java,
2663 gnu/java/beans/IntrospectionIncubator.java,
2664 gnu/java/beans/editors/ColorEditor.java,
2665 gnu/java/beans/editors/FontEditor.java,
2666 gnu/java/beans/editors/NativeBooleanEditor.java,
2667 gnu/java/beans/editors/NativeByteEditor.java,
2668 gnu/java/beans/editors/NativeDoubleEditor.java,
2669 gnu/java/beans/editors/NativeFloatEditor.java,
2670 gnu/java/beans/editors/NativeIntEditor.java,
2671 gnu/java/beans/editors/NativeLongEditor.java,
2672 gnu/java/beans/editors/NativeShortEditor.java,
2673 gnu/java/beans/editors/StringEditor.java,
2674 gnu/java/io/ClassLoaderObjectInputStream.java,
2675 gnu/java/io/decode/Decoder.java,
2676 gnu/java/io/encode/Encoder.java,
2677 gnu/java/lang/ClassHelper.java,
2678 gnu/java/locale/Calendar.java,
2679 gnu/java/locale/Calendar_de.java,
2680 gnu/java/locale/Calendar_en.java,
2681 gnu/java/locale/Calendar_nl.java,
2682 gnu/java/locale/LocaleInformation_de.java,
2683 gnu/java/locale/LocaleInformation_en.java,
2684 gnu/java/locale/LocaleInformation_nl.java:
2687 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2689 * README: Remove obsolete info. Update bug URL.
2691 * NEWS: Updated with news up to GCC 3.4 release.
2693 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2695 * gnu/java/security/action/GetPropertyAction.java (setParameters):
2696 Renamed from 'setName'. New 2-argument form with default value.
2697 (run): Pass default 'value' parameter to System.getProperty().
2698 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
2700 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
2703 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2705 * configure.in: Check for minimum GTK version 2.4 requirement.
2706 * configure: Rebuilt.
2708 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2710 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
2711 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
2713 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
2715 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
2716 address. Reduce sleep times. Synchronize with target threads before
2717 attempting to interrupt them. Don't try to calibrate yeild count,
2718 instead, always loop for a fixed time.
2719 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
2720 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
2721 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
2722 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
2723 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
2724 * testsuite/libjava.lang/pr179.java: Likewise.
2725 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
2726 time. Remove upper bounds check on sleep time.
2728 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2730 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
2731 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
2733 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2735 * java/io/File.java (toURI): Throw RuntimeException, not
2737 * java/lang/Runtime.java (exit): Qualify static sleep() call with
2738 class name, not instance.
2740 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
2742 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
2743 and gnu/java/security/action/SetAccessibleAction.java.
2744 * Makefile.in: Rebuilt.
2746 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2748 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
2749 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
2751 (DECLARE_PRIM_TYPE): Don't declare array vtables.
2752 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
2753 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
2755 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
2757 * Makefile.am: Replace jar, rmic and rmiregistry references with
2758 gjar, grmic and grmiregistry.
2759 * configure.in: Likewise.
2760 * Makefile.in: Regenerate.
2761 * configure: Likewise.
2762 * gcj/Makefile.in: Likewise.
2763 * include/Makefile.in: Likewise.
2764 * testsuite/Makefile.in: Likewise.
2766 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2768 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
2769 for privileged getProperty calls.
2770 * java/io/ObjectOutputStream.java (getField): No longer static. Use
2771 SetAccessibleAction instead of anonymous class for doPrivileged call.
2772 (getMethod): Likewise.
2773 (setAccessible): New field. PrivilegedAction object to use when
2774 calling setAccessible.
2775 * java/io/ObjectStreamClass.java (calculateOffsets): Use
2776 SetAccessibleAction instead of anonymous class for diPrivileged call.
2777 (setFields): Likewise.
2778 (getClassUID): Likewise.
2779 (findMethod): Likewise.
2780 * gnu/java/security/action/GetPropertyAction.java: New class.
2781 * gnu/java/security/action/SetAccessibleAction.java: New class.
2783 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2785 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
2787 * testsuite/libjava.lang/Serialization.java: New test.
2788 * testsuite/libjava.lang/Serialization.out: New.
2790 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2792 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
2793 missed in last commit.
2795 2004-07-23 Mark Wielaard <mark@klomp.org>
2797 * java/lang/System.java (static): Set http.agent system property when
2799 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
2800 from system property inside AccessController.doPrivileged() call.
2801 (proxyPort): Made package private.
2802 (proxyInUse): Likewise.
2803 (proxyHost): Likewise.
2804 (userAgent): Likewise.
2806 2004-07-23 Mark Wielaard <mark@klomp.org>
2808 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
2811 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
2813 * Makefile.am (ordinary_java_source_files): Add
2814 DefaultContentHandlerFactory.java.
2815 * Makefile.in: Rebuilt.
2816 * java/net/URLConnection.java (defaultFactory): New field.
2818 (getContentHandler): Renamed from 'setContentHandler'. Try
2819 defaultFactory after user-set factory, if any. Search for content
2820 handler implementations in gnu.java.net.content, not gnu.gcj.content.
2821 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
2823 (getLastModified): Implemented.
2824 (getPermission): Create file permission here, instead of in
2826 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
2828 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
2830 (getLastModified): Implemented.
2831 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2832 Default implementation.
2833 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2834 Implement using GdkPixbufDecoder.
2836 2004-07-21 Michael Koch <konqueror@gmx.de>
2838 * javax/swing/JTextArea.java
2839 (setLineWrap): Fire property change event after new value is set.
2840 (setTabSize): Likewise.
2842 2004-07-21 Michael Koch <konqueror@gmx.de>
2844 * javax/swing/JTable.java
2845 (autoCreateColumnsFromModel): New field.
2846 (autoResizeMode): Likewise.
2847 (cellEditor): Likewise.
2848 (cellSelectionEnabled): Likewise.
2849 (columnModel): Likewise.
2850 (dataModel): Likewise.
2851 (defaultEditorsByColumnClass): Likewise.
2852 (defaultRenderersByColumnClass): Likewise.
2853 (editingColumn): Likewise.
2854 (editingRow): Likewise.
2855 (gridColor): Likewise.
2856 (preferredViewportSize): Likewise.
2857 (rowHeight): Likewise.
2858 (rowMargin): Likewise.
2859 (rowSelectionAllowed): Likewise.
2860 (selectionBackground): Likewise.
2861 (selectionForeground): Likewise.
2862 (selectionModel): Likewise.
2863 (showHorizontalLines): Likewise.
2864 (showVerticalLines): Likewise.
2865 (tableHeader): Likewise.
2866 (JTable): Implemented.
2867 (getColumnModel): Likewise.
2868 (getSelectedRow): Likewise.
2869 (getSelectionModel): Likewise.
2870 (setModel): Likewise.
2871 (setSelectionModel): Likewise.
2872 (createScrollPaneForTable): New method.
2873 (createDefaultDataModel): Likewise.
2874 (createDefaultListSelectionModel): Likewise.
2875 (getModel): Likewise.
2876 (getTableHeader): Likewise.
2877 (setTableHeader): Likewise.
2878 (getColumnSelectionAllowed): Likewise.
2879 (setColumnSelectionAllowed): Likewise.
2880 (getRowSelectionAllowed): Likewise.
2881 (setRowSelectionAllowed): Likewise.
2882 (getAutoResizeMode): Likewise.
2883 (setAutoResizeMode): Likewise.
2884 (getColumnCount): Likewise.
2885 (getRowCount): Likewise.
2886 (getCellRenderer): Likewise.
2887 * javax/swing/JTree.java
2888 (cellRenderer): New field.
2889 (editable): Likewise.
2890 (rootVisible): Likewise.
2891 (showsRootHandles): Likewise.
2892 (getModel): New method.
2893 (setModel): Likewise.
2894 (isEditable): Likewise.
2895 (setEditable): Likewise.
2896 (isRootVisbile): Likewise.
2897 (setRootVisible): Likewise.
2898 (getShowsRootHandles): Likewise.
2899 (setShowRootHandles): Likewise.
2900 (getCellRenderer): Likewise.
2901 (setCellRenderer): Likewise.
2903 2004-07-21 Michael Koch <konqueror@gmx.de>
2905 * javax/swing/JFormattedTextField.java
2906 (setDocument): Implemented.
2907 * javax/swing/JRootPane.java:
2909 * javax/swing/JTable.java
2910 (getDefaultRenderer): New method.
2911 * javax/swing/JTextField.java
2912 (setFont): Likewise.
2913 (getPreferredSize): Likewise.
2914 * javax/swing/JToggleButton.java
2915 (getAccessibleContext): Fix javadoc.
2916 * javax/swing/JTree.java:
2918 * javax/swing/JViewport.java:
2921 2004-07-21 David Jee <djee@redhat.com>
2923 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
2924 Collect all native method declaration at the top.
2925 (create): Set the filename filter if necessary.
2926 (setDirectory): Call nativeSetDirectory().
2927 (setFilenameFilter): Implement.
2928 (filenameFilterCallback): New method.
2929 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2930 (create): Configure dialog to show hidden files.
2931 (filenameFilterCallback): New function.
2932 (nativeSetFilenameFilter): New function.
2933 (nativeSetDirectory): New function.
2935 2004-07-21 Kim Ho <kho@redhat.com>
2937 * javax/swing/plaf/basic/BasicSliderUI.java:
2939 (paintTrack): Fill the track before painting
2942 2004-07-21 Graydon Hoare <graydon@redhat.com>
2944 patch from Roman Kennke <roman@ontographics.com>
2945 * javax/swing/Spring.java: New file.
2946 * javax/swing/SpringLayout.java: New file.
2947 * Makefile.am: Add new files.
2948 * Makefile.in: Regenerate.
2950 2004-07-21 Graydon Hoare <graydon@redhat.com>
2952 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
2953 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
2954 * javax/swing/ScrollPaneLayout.java: Likewise.
2956 2004-07-21 Kim Ho <kho@redhat.com>
2958 * javax/swing/DefaultDesktopManager.java:
2959 (findMinimum): Removed.
2960 (resizeFrame): Trust the UI to pass valid
2962 * javax/swing/JOptionPane.java:
2963 Implemented showInternalXXXDialog methods.
2964 (startModal): New method.
2965 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2966 (BorderListener::mouseDragged): Verify that the new
2967 bounds are valid before passing them to the DesktopManager.
2968 (preferredLayoutSize): Delegate
2970 (minimumLayoutSize): Ditto.
2971 (getSize): New method.
2972 (GlassPaneDispatcher): Reimplemented by copying
2973 a stripped down LightweightDispatcher from Container.
2974 (getMinimumSize): Call minimumLayoutSize.
2975 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
2977 (mousePressed): Add ability to properly close
2979 * javax/swing/plaf/basic/BasicToolBarUI.java:
2980 (DragWindow): Set owner for DragWindow.
2982 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2984 * java/awt/image/ShortLookupTable.java: New file.
2985 * java/awt/image/ByteLookupTable.java: New file.
2986 * Makefile.am: Added new files.
2987 * Makefile.in: Regenerated.
2989 2004-07-21 David Jee <djee@redhat.com>
2991 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2992 (create(GtkContainerPeer)): New native method.
2993 (create()): Call native create(), passing in the parent frame
2994 as the paramter. Natively set the current file and directory.
2995 (setFile): Construct an absolute filename before passing it to
2997 (nativeGetDirectory): New method.
2998 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2999 (window_closed): Removed.
3000 (ok_clicked): Likewise.
3001 (cancel_clicked): Likewise.
3002 (handle_response): New method.
3003 (create): Use GtkFileChooserDialog.
3004 (connectSignals): Connect to handle_response.
3005 (nativeGetDirectory): New method.
3006 (nativeSetFile): Use GtkFileChooserDialog.
3008 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
3010 * java/awt/image/LookupTable.java: New file.
3011 * Makefile.am: Added new file.
3012 * Makefile.in: Regenerated.
3014 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
3016 * java/awt/image/Kernel.java: New file.
3017 * Makefile.am: Added new file.
3018 * Makefile.in: Regenerated.
3020 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3022 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
3023 * javax/swing/JMenu.java: Likewise.
3024 * javax/swing/JMenuBar.java: Likewise.
3025 (MARGIN_CHANGED_PROPERTY): New property.
3026 (setMargin): Implemented.
3027 * javax/swing/JMenuItem.java: Fixed javadocs.
3028 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
3029 (LABEL_CHANGED_PROPERTY): New property.
3030 (add): changed to use createActionComponent.
3031 (createActionComponent): Implemented.
3032 (setLabel): Fire PropertyChangeEvent if label property
3034 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
3035 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3036 (ContainerHandler): Repaint if margin property has changed.
3037 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3038 (installUI): Call installComponents().
3039 (uninstallUI): Call uinstallComponents().
3040 * javax/swing/plaf/basic/BasicMenuUI.java:
3042 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3045 2004-07-21 Kim Ho <kho@redhat.com>
3047 * javax/swing/plaf/basic/BasicToolBarUI.java:
3048 (DragWindow): Use the right constructor.
3050 2004-07-21 Kim Ho <kho@redhat.com>
3052 * javax/swing/JToolBar.java:
3053 (layoutContainer): Use getComponents.
3054 * javax/swing/plaf/basic/BasicToolBarUI.java:
3055 (DragWindow): Don't use SwingUtilities'
3057 (ToolBarDialog): ditto.
3059 2004-07-21 Kim Ho <kho@redhat.com>
3061 * javax/swing/JRootPane.java:
3063 (layoutContainer): Set the glasspane's size to
3064 be the same as the content pane.
3065 (createGlassPane): Set opaque property to false.
3067 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3069 * java/awt/Component.java (requestFocus()): Don't handle Panels
3071 (requestFocus(boolean)): Likewise.
3072 (requestFocusInWindow(boolean)): Likewise.
3073 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
3074 Set GTK_CAN_FOCUS flag.
3076 2004-07-21 Kim Ho <kho@redhat.com>
3078 * Makefile.am: Added new file.
3079 * Makefile.in: Regenerated.
3080 * gcj/Makefile.in: Regenerated.
3081 * include/Makefile.in: Regenerated.
3082 * javax/swing/AbstractButton.java:
3083 Add rollOverEnabled property.
3084 (setRolloverEnabled): Use new property.
3085 (isRolloverEnabled): Use new property.
3086 * javax/swing/JTabbedPane.java:
3087 (setComponent): Remove useless JTabbedPane.this.
3088 * javax/swing/JToolBar.java: Finish implementation.
3089 * javax/swing/plaf/basic/BasicArrowButton.java:
3090 (paint): Moved border painting to a border.
3091 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3092 Change JToolBar look and feel defaults.
3093 * javax/swing/plaf/basic/BasicOptionPaneUI.java
3094 (actionPerformed): Return Integer index instead of name.
3095 (addButtonComponents): Check to see if component is
3097 (createMessageArea): Don't use components that are not
3099 (getIconForType): Use temporary icons.
3100 * javax/swing/plaf/basic/BasicSliderUI.java:
3101 (mousePressed): Do not return if it's on thumb.
3102 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
3103 (paintMinorTickForVertSlider): ditto.
3104 (paintMajorTickForHorizSlider): ditto.
3105 (paintMajorTickForVertSlider): ditto.
3106 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
3107 Add a border around the SplitPaneDivider.
3108 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
3110 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
3111 New file. Implemented.
3112 * javax/swing/plaf/basic/BasicToolBarUI.java:
3114 * testsuite/Makefile.in: Regenerated.
3116 2004-07-21 Graydon Hoare <graydon@redhat.com>
3118 * javax/swing/Timer.java (run): Queue events each time cycle.
3120 2004-07-21 David Jee <djee@redhat.com>
3122 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3123 (imageComplete): Call image.imageComplete().
3124 * java/awt/image/MemoryImageSource.java:
3125 Reimplement consumers as a Vector instead of a Hashtable. This is
3126 because enumeration on a Hashtable is not thread-safe.
3127 (addConsumer): Adapt to Vector consumers.
3128 (isConsumer): Adapt to Vector consumers.
3129 (removeConsumer): Adapt to Vector consumers.
3130 (startProduction): Adapt to Vector consumers. Call imageComplete()
3131 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
3132 (newPixels): Adapt to Vector consumers.
3133 (sendPicture): Set the color model of the image consumer.
3134 (newPixels(IIII)): Adapt to Vector consumers.
3135 (newPixels(IIIIB)): Adapt to Vector consumers.
3137 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3139 * java/awt/Component.java (deliverEvent): Implement.
3140 (postEvent): Implement.
3141 (handleEvent): Implement.
3142 (translateEvent): New method.
3143 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
3144 * java/awt/Container.java (deliverEvent): Implement.
3145 * java/awt/Event.java (paramString): Fix formatting.
3146 * java/awt/Font.java (toString): Likewise.
3147 * java/awt/Window.java (postEvent): Implement.
3149 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3151 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3152 Set window's focus owner upon receiving a FOCUS_LOST event.
3153 * java/awt/Window.java (Window()): Refocus the previously
3154 focused component within the window when the window regains the
3156 (setFocusOwner): New method.
3157 * java/awt/Component.java (requestFocus): Add FIXME.
3159 * libgcj.pc.in: Remove library flags.
3161 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3163 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
3164 MOUSE_PRESSED event.
3165 * java/awt/Component.java (requestFocus()): Handle Panel
3166 specially. Post FOCUS_LOST event on opposite component.
3167 (requestFocus(boolean)): Likewise.
3168 (requestFocusInWindow(boolean)): Likewise.
3169 (paramString): Reorder dimension fields.
3170 * java/awt/Container.java (paramString): Fix string format.
3171 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3172 Handle FOCUS_LOST events. Don't handle Windows specially. Only
3173 process key events if the focus owner is non-null.
3174 (dispatchKeyEvent): Likewise.
3175 * java/awt/Frame.java (paramString): Fix formatting.
3176 (generateName): New method.
3177 (getUniqueLong): Likewise.
3178 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
3179 the temporary focus owner is null. If so, return the permanent
3181 * java/awt/Panel.java (generateName): New method.
3182 (getUniqueLong): Likewise.
3183 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
3184 signal handling to make callbacks more specific.
3186 2004-07-21 Michael Koch <konqueror@gmx.de>
3188 * javax/swing/text/Position.java
3189 (Bias): Implemented.
3191 2004-07-21 Michael Koch <konqueror@gmx.de>
3193 * javax/swing/LookAndFeel.java
3194 (provideErrorFeedback): New method.
3196 2004-07-21 Michael Koch <konqueror@gmx.de>
3198 * javax/swing/JTextArea.java
3199 (tabSize): New field.
3200 (getTabSize): New method.
3201 (setTabSize): Likewise.
3203 2004-07-21 Michael Koch <konqueror@gmx.de>
3205 * javax/swing/ActionMap.java:
3206 Fixed javadocs all over.
3207 (serialVersionUID): Made private.
3208 (parent): Don't explicitely initialize with default value.
3210 (keys): Reimplemented.
3211 (allKeys): Likewise.
3212 (convertSet): Removed.
3213 * javax/swing/ComponentInputMap.java:
3214 Fixed javadocs all over.
3215 (ComponentInputMap): Implemented.
3219 (SetParent): Likewise.
3220 (getComponent): Likewise.
3221 * javax/swing/InputMap.java:
3222 Fixed javadocs all over.
3223 (serialVersionUID): Made private.
3224 (parent): Don't explicitely initialize with default value.
3226 (keys): Reimplemented.
3227 (allKeys): Likewise.
3228 (convertSet): Removed.
3230 2004-07-21 Michael Koch <konqueror@gmx.de>
3232 * javax/swing/ActionMap.java,
3233 javax/swing/ComponentInputMap.java,
3234 javax/swing/InputMap.java,
3235 javax/swing/table/DefaultTableColumnModel.java,
3236 javax/swing/table/TableColumn.java,
3237 javax/swing/table/TableColumnModel.java,
3238 javax/swing/table/TableModel.java,
3239 javax/swing/text/AbstractDocument.java,
3240 javax/swing/text/TextAction.java:
3243 2004-07-21 Graydon Hoare <graydon@redhat.com>
3245 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
3246 Make method non-static.
3247 * javax/swing/AbstractButton.java:
3248 Rename fields to match property names where possible.
3249 (iconTextGap): New property.
3250 * javax/swing/JCheckBox.java: Match AbstractButton changes.
3251 (init) New method, call from after various constructors.
3252 * javax/swing/JComponent.java (revalidate):
3253 Invalidate before queueing repair.
3254 * javax/swing/JList.java (getPreferredScrollableViewportSize):
3255 Reimplement in terms of visibleRowCount property.
3256 * javax/swing/JMenuButton.java: Match AbstractButton changes.
3257 * javax/swing/JScrollPane.java (createScrollListener):
3258 Remove tracing chatter.
3259 * javax/swing/JToggleButton.java: Match AbstractButton changes.
3260 * javax/swing/RepaintManager.java (addInvalidComponent):
3262 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
3264 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
3265 Mimic sun behavior on top left/right positioning.
3266 * javax/swing/ViewportLayout.java (preferredLayoutSize):
3267 Remove mistaken use of preferredScrollableViewportSize here.
3268 (layoutContainer): Use view's preferred size as basis.
3269 * javax/swing/plaf/basic/BasicButtonUI.java:
3270 Set, get, and use textIconGap property.
3271 (paint) Paint text returned from layout (with ellipsis).
3272 * javax/swing/plaf/basic/BasicListUI.java:
3273 Remove tracing chatter, correct various minor calculations.
3274 (getCellBounds): Update layout state before calculating.
3275 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
3276 Use margin default similar to sun's.
3277 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
3278 (createIncreaseIcon): Center icon, minimize margins.
3279 (createDecreaseIcon): Likewise.
3280 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
3282 (installUI): Call it.
3283 (uninstallDefaults): Implement.
3284 (uninstallUI): Call it.
3285 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
3286 Call existing Window constructor.
3287 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
3288 Set clip before painting.
3290 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3292 * javax/swing/JMenuItem.java:
3293 (processMouseEvent): Reimplemented to deal with
3295 (createMenuDragMouseEvent): New private helper method.
3296 Creates MenuDragMouseEvent.
3297 * javax/swing/MenuSelectionManager.java
3298 (componentForPoint): Implemented.
3299 (isComponentPartOfCurrentMenu): Made public.
3300 (processMouseEvent): Reimplemented to deal with
3302 (setSelectedPath): Corrected small mistake that caused
3303 path to be set incorrectly.
3304 (getPath): If given component is JMenu then also add this
3305 menu's popup menu to the selected path.
3306 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3308 (getPreferredSize): Call getPreferredMenuItemSize().
3309 (getPreferredItemSize): Moved code from getPreferredSize to here.
3310 (installListeners): Install MouseMotionListeners.
3311 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
3312 if mouse wasn't released in the bounds of this menu item.
3313 (MenuDragMouseHandler): Implemented.
3314 * javax/swing/plaf/basic/BasicMenuUI.java:
3315 (installListeners): Install MouseMotionListener and
3316 MenuDrageMouseListener.
3317 (MenuDragMouseHandler): Implemented.
3318 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3319 (uninstallListeners): Implemented.
3321 2004-07-21 Michael Koch <konqueror@gmx.de>
3323 * javax/swing/JCheckBox.java: Reformated.
3324 (JCheckBox): Fixed all constructors.
3325 (isBorderPaintedFlat): New method.
3326 (setBorderPaintedFlat): New method.
3327 * javax/swing/JEditorPane.java
3328 (createEditorKitForContentType): Made public.
3329 (scrollToReference): Likewise.
3330 * javax/swing/JTextArea.java
3331 (setLineWrap): Fire property change.
3332 * javax/swing/JToggleButton.java
3333 (JToggleButton): New constructor.
3334 (JToggleButton): Simplified.
3335 * javax/swing/text/AttributeSet.java
3336 (FontAttribute): Renamed from FontCharacterAttribute.
3337 * javax/swing/text/JTextComponent.java
3338 (KeyBinBinding): Added javadoc.
3339 (JTextComponent): Likewise.
3340 (getAccessibleContext): Fixed javadoc.
3341 * javax/swing/text/View.java
3342 (View): Added javadoc.
3343 * javax/swing/text/TabableView.java: New file.
3344 * Makefile.am: Added javax/swing/text/TabableView.java.
3345 * Makefile.in: Regenerated.
3347 2004-07-21 Graydon Hoare <graydon@redhat.com>
3349 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
3350 * gnu/java/awt/peer/gtk/GtkToolkit.java
3351 (GtkErrorImage): New helper class.
3352 (bufferedImageOrError): New helper method.
3353 (createImage): Use it.
3355 2004-07-21 David Jee <djee@redhat.com>
3357 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3358 (setCaretPosition): Scroll the text view so the new caret position
3359 is visible on screen.
3361 2004-07-21 David Jee <djee@redhat.com>
3363 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3364 (setBounds): Do not validate awtComponent here.
3365 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
3366 (getPreferredSize): New method.
3367 * java/awt/ScrollPane.java
3368 (ScrollPane): Set default size to 100x100.
3369 (addNotify): If child is not a Panel, wrap it with a new Panel.
3370 (paramString): Implement.
3372 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3374 * javax/swing/JMenu.java:
3375 (setSelected): Display popup menu only if this menu
3376 is showing on the screen.
3377 * javax/swing/JPopupMenu.java:
3378 (processMouseEvent): Added comment.
3379 (processKeyEvent): Likewise.
3380 * javax/swing/MenuSelectionManager.java:
3381 (clearSelectedPath): Only fireStateChanged() after
3382 selected path was changed, not before.
3383 (setSelectedPath): Likewise.
3384 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3385 (paintMenuItem): Corrected position of menu item's
3387 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3388 (installUI): Correct setDefaultLightWeightPopupEnabled call.
3389 (popupMenuCanceled): Reimplemented.
3390 (popupMenuWillBecomeVisible): Select first menu item by default
3391 when displaying free floating popup menus.
3392 (TopWindowListener): Reimplemented.
3394 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3396 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
3397 Panel from being painted twice when it is first shown.
3399 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3401 * java/awt/Window.java: Reverted changes from my
3402 previous patch for creating window without an owner.
3403 * javax/swing/SwingUtilities.java:
3404 (SwingUtilities.OwnerFrame): made static.
3405 (OwnerFrame.setVisible): New method. Overridden with
3406 empty implementation.
3407 (OwnerFrame.isShowing): New method. Ovverridden
3408 to return always true.
3410 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3412 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3413 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3414 (GtkComponentPeer): Remove temporary try/catch block.
3415 (setVisible): Call show and hide.
3416 (show): Make native.
3418 (getArgs): Don't add "visible" argument.
3419 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3420 (property_notify_predicate): Return Bool instead of int.
3421 (find_layout): New function.
3422 (connectJObject): Call find_layout.
3423 (connectSignals): Likewise.
3424 (moveLayout): Likewise.
3425 (gtkLayoutSetVisible): Likewise.
3427 2004-07-21 Mark Wielaard <mark@klomp.org>
3429 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3430 on notifier object before calling notifyAll().
3432 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3434 * java/awt/Window.java: Changed constructors to use new
3435 method that is described below. Constructors call this
3436 methods only if newly created window should have an owner.
3437 (setWindowOwner): New method. Implementation for
3438 this method is moved from this(owner,configuration).
3439 * javax/swing/JWindow.java:
3440 (JWindow): Reimplement to use SwingUtilities.ownerFrame
3442 * javax/swing/SwingUtilities.java:
3443 (ownerFrame): Change type of this field to OwnerFrame.
3444 (getOwnerFrame): Changed to return object of type OwnerFrame.
3445 (SwingUtilities.OwnerFrame): New class. Represents owner
3446 of a Window that is not provided with one.
3448 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3450 * javax/swing/AbstractButton.java:
3451 (configurePropertiesFromAction): Set action command
3452 to button's text by default if action command is not
3453 explicitely specified.
3454 * javax/swing/JMenu.java: Remove unnecessary listener
3455 and methods relevant to it.
3456 (setSelected): Reimplemented.
3457 (menuSelectionChanged): Moved most part of implementation to
3458 setSelected() and call it instead.
3459 * javax/swing/JMenuItem.java:
3460 (init): Comment out statement that sets paint_border to false.
3461 (configurePropertiesFromAction): Do not set accelerator
3463 (menuSelectionChanged): Change selected index in the selection
3464 model of menu item's parent.
3465 * javax/swing/JPopupMenu.java:
3466 (remove): Set constraints.fill field to GridBagConstraints.BOTH
3467 instead of GridBagConstraints.HORIZONTAL.
3469 (createActionChangeListener): Implemented.
3470 (setVisible): Correct location of HeavyWeightMenu and
3471 don't firePopupMenuCanceled().
3472 (menuSelectionChanged): Implemented.
3473 (ActionChangeListener): New Listener. Implemented.
3474 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3475 (BasicMenuBarUI.ContainerHandler): Implemented.
3476 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3477 (paintMenuItem): Uncommented out code that paints
3478 icon, now that icons are working properly.
3479 (PropertyChangeListener): Implemented.
3480 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3482 (topWindowListener): New field.
3483 (Constructor): initialize topWindowListener.
3484 (BasicPopupMenuUI.TopWindowListener): Implemented.
3485 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
3486 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
3489 2004-07-21 Michael Koch <konqueror@gmx.de>
3491 * javax/swing/plaf/basic/BasicButtonUI.java
3492 (paintFocus): Fixed method signature.
3493 (paintButtonPressed): Likewise.
3494 (paintButtonNormal): Likewise.
3495 (paintText): New method.
3496 * javax/swing/plaf/basic/BasicLabelUI.java
3497 (paint): Re-indented.
3498 * javax/swing/plaf/basic/BasicTextUI.java
3499 (installUI): Set parent textComponent to opaque.
3500 * javax/swing/text/DefaultHighlighter.java
3501 (checkPositions): New helper method.
3502 (addHighlight): Throws BadLocationException, check positions.
3503 (changeHighlight): Likewise.
3504 * javax/swing/text/EditorKit.java
3505 (EditorKit): Implements Serializable.
3506 * javax/swing/text/JTextComponent.java
3507 (getUI): Added javadoc.
3509 (upadteUI): Added javadoc, don't revalidate and repaint.
3511 2004-07-21 David Jee <djee@redhat.com>
3513 * java/awt/GridBagLayout.java
3514 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
3515 * javax/swing/AbstractButton.java
3516 (setText): Reindent.
3517 * javax/swing/RepaintManager.java
3518 (addInvalidComponent): Find the first ancestor that isValidateRoot().
3520 2004-07-21 Michael Koch <konqueror@gmx.de>
3522 * javax/swing/JFormattedTextField.java
3524 (JFormattedTextField): Implemented.
3525 (getValue): Likewise.
3526 (setValue): Likewise.
3527 * javax/swing/LookAndFeel.java
3528 (getSupportsWindowDecorations): New method.
3529 * javax/swing/UIDefaults.java:
3530 Use java.beans.PropertyChangeSupport instead of doing all ourself.
3531 (addPropertyChangeListener): Made public.
3532 (addResourceBundle): Likewise.
3533 (removeResourceBundle): Likewise.
3534 (setDefaultLocale): Likewise.
3535 * javax/swing/plaf/basic/BasicRootPaneUI.java
3536 (BasicRootPaneUI): Implements PropertyChangeListener.
3537 (propertyChange): New method.
3538 * javax/swing/plaf/basic/BasicTextUI.java
3539 (BasicHighlighter): New inner class.
3540 (createHighlighter): New method.
3541 * javax/swing/plaf/basic/BasicToolBarUI.java
3542 (DragWindow): Extends java.awt.Window.
3543 * javax/swing/text/JTextComponent.java
3544 (getDocument): Removed debug output.
3545 * javax/swing/plaf/basic/BasicTextFieldUI.java,
3546 javax/swing/text/DefaultHighlighter.java,
3547 javax/swing/text/FieldView.java,
3548 javax/swing/text/PlainView.java: New files.
3549 * Makefile.am: Added new files.
3550 * Makefile.in: Regenerated.
3552 2004-07-21 Michael Koch <konqueror@gmx.de>
3554 * javax/swing/JEditorPane.java
3555 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
3556 (createEditorKitForContentType): Likewise.
3557 * javax/swing/text/DefaultEditorKit.java
3558 (serialVersionUID): Added constant field.
3559 (EndOfLineStringPropery): Fixed typo.
3560 (DefaultEditorKit): New constructor.
3561 * javax/swing/text/Segment.java:
3562 Import java.text.CharacterIterator.
3563 * javax/swing/text/CharacterIterator.java,
3564 javax/swing/text/PlainEditorKit.java: Removed.
3565 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
3566 javax/swing/text/PlainEditorKit.java.
3567 * Makefile.in: Regenerated.
3569 2004-07-21 Michael Koch <konqueror@gmx.de>
3571 * javax/swing/JButton.java,
3572 javax/swing/text/DefaultEditorKit.java,
3573 javax/swing/text/EditorKit.java,
3574 javax/swing/text/Segment.java,
3575 javax/swing/text/StyledEditorKit.java:
3578 2004-07-21 Michael Koch <konqueror@gmx.de>
3580 * javax/swing/ImageIcon.java
3582 (description): Renamed from descr.
3583 (ImageIcon): Added missing constructors.
3584 (setParent): Removed.
3585 (setImageObserver): New method.
3586 (getImageObserver): New method.
3587 (paintIcon): Handle observer = null.
3588 * javax/swing/JButton.java
3589 (removeNotify): Fixed javadoc.
3590 (updateUI): Simplified.
3591 * javax/swing/JRootPane.java
3592 (serialVersionUID): New constant field.
3593 * javax/swing/UIManager.java:
3594 Fixed javadocs all over.
3595 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
3596 * javax/swing/text/AbstractDocument.java
3597 (createPosition): Throws BadLocationException.
3598 (getText): Likewise.
3600 * javax/swing/text/ComponentView.java
3601 (modelToView): Likewise.
3602 * javax/swing/text/DefaultEditorKit.java:
3603 Made all public methods public.
3604 (read): Throws BadLocationException and IOException.
3606 * javax/swing/text/EditorKit.java:
3607 Made all public methods public.
3608 (serialVersionUID): New constant field.
3609 (clone): New method.
3610 (read): Throws BadLocationException and IOException.
3612 * javax/swing/text/Segment.java
3613 (array): Made public.
3616 (Segment): New constructors.
3617 (clone): Reimplemented.
3618 * javax/swing/text/StyledEditorKit.java
3619 (serialVersionUID): New constant field.
3621 2004-07-21 Graydon Hoare <graydon@redhat.com>
3623 * java/awt/image/BufferedImage.java
3624 (getSource): Implement.
3625 * javax/swing/ImageIcon.java
3626 (ImageIcon): Implement ctor.
3627 * javax/swing/ScrollPaneLayout.java
3628 (preferredLayoutSize): Be more careful about nulls.
3630 2004-07-21 Michael Koch <konqueror@gmx.de>
3632 * javax/swing/text/AttributeSet.java
3633 (CharacterAttribute): New interface
3634 (ColorAttribute): Likewise.
3635 (FontCharacterAttribute): Likewise.
3636 (ParagraphAttribute): Likewise.
3637 * javax/swing/text/DefaultCaret.java
3638 (moveCaret): New method.
3639 (positionCaret): Likewise.
3640 (repaint): Made protected.
3641 * javax/swing/text/JTextComponent.java
3642 (KeyBinding): Made it static.
3643 * javax/swing/text/View.java
3644 (getContainer): Honor parent == null.
3646 2004-07-21 Michael Koch <konqueror@gmx.de>
3648 * javax/swing/text/AbstractDocument.java:
3651 2004-07-21 Michael Koch <konqueror@gmx.de>
3653 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3654 Import javax.swing.UIManager explicitely.
3655 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
3656 (ScrollingButton): Made it static.
3658 2004-07-21 Michael Koch <konqueror@gmx.de>
3660 * javax/swing/UIDefaults.java
3661 (ActiveValue): Made public.
3662 (LazyValue): Likewise.
3663 * javax/swing/plaf/basic/BasicTextUI.java
3664 (RootView): Reintroduced.
3666 (rootView): New field.
3667 (installUI): Create document if needed, initialize rootView.
3668 (uninstallUI): Hanle rootView.
3670 (getRootView): Likewise.
3671 (setView): Likewise.
3672 * javax/swing/text/DefaultCaret.java:
3673 Renamed all "evt" variables to "event".
3675 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3677 * libgcj.spec.in: Add -l-java-util-logging.
3679 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
3681 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3682 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
3683 gtk-xft-dpi can no calculate the right value.
3684 (dpi_changed_cb): Mark *pspec as unsused.
3686 2004-07-21 David Jee <djee@redhat.com>
3688 * java/awt/Component.java
3689 (move): Delegate to setBounds().
3691 (reshape): Fix so it repaints parent and self only when necessary.
3693 2004-07-21 David Jee <djee@redhat.com>
3695 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3696 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3697 (GtkComponentPeer): Revert previous patch from 2004-06-22.
3698 (setVisible): Likewise.
3701 (getArgs): Likewise.
3702 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3703 (property_notify_predicate): Likewise.
3704 (find_layout): Likewise.
3705 (connectJObject): Likewise.
3706 (connectSignals): Likewise.
3707 (moveLayout): Likewise.
3708 (gtkLayoutSetVisible): Likewise.
3710 2004-07-21 Graydon Hoare <graydon@redhat.com>
3716 (rmiregistry_LDADD): Add lib-java-util-logging.la
3717 * Makefile.in: Regenerate.
3719 2004-07-21 Michael Koch <konqueror@gmx.de>
3721 * javax/swing/text/AbstractDocument.java
3722 (replace): Dont use protected method of java.util.Vector directly.
3724 2004-07-21 Michael Koch <konqueror@gmx.de>
3726 * javax/swing/plaf/basic/BasicTextUI.java
3727 (installUI): Call specialized install methods.
3728 (installDefaults): New method.
3729 (installListeners): Likewise.
3730 (installKeyboardActions): Likewise.
3731 (uninstallUI): Likewise.
3732 (uninstallDefaults): New method.
3733 (uninstallListeners): Likewise.
3734 (uninstallKeyboardActions): Likewise.
3735 (getPropertyPrefix): New abstract method.
3736 (paint): Made final, just call paintSafely().
3737 (paintSavely): New method.
3738 (paintBackground): Likewise.
3739 (getVisibleEditorRect): Likewise.
3740 * javax/swing/text/LayeredHighlighter.java,
3741 javax/swing/text/TabExpander.java: New files.
3742 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
3743 and javax/swing/text/TabExpander.java.
3744 * Makefile.in: Regenerated.
3746 2004-07-21 Michael Koch <konqueror@gmx.de>
3748 * javax/swing/plaf/basic/BasicTextUI.java
3749 (BasicTextUI): Made abstract.
3750 (BasicCaret): New inner class.
3751 (view): Don't explicitely initialize with "null".
3752 (textComponent): New field.
3753 (textColor): Removed.
3754 (disabledTextColor): Removed.
3755 (normalBackgroundColor): Removed.
3756 (RootView): Removed commented out inner class.
3757 (createUI): Removed.
3758 (createCaret): New method.
3759 (getComponent): Likewise.
3760 (installUI): Initialize textComponent only.
3761 (getPreferredSize): Use installed JTextComponent.
3762 (setView): New method.
3764 * javax/swing/text/JTextComponent.java
3765 (highlighter): New field.
3766 (caretColor): Likewise.
3767 (disabledTextColor): Likewise.
3768 (seletedTextColor): Likewise.
3769 (selectionColor): Likewise.
3770 (setUI): New method.
3771 (getCaretColor): Likewise.
3772 (setCaretColor): Likewise.
3773 (getDisabledColor): Likewise.
3774 (setDisabledColor): Likewise.
3775 (getSelectedTextColor): Likewise.
3776 (setSelectedTextColor): Likewise.
3777 (getSelectionColor): Likewise.
3778 (setSelectionColor): Likewise.
3779 (getHighlighter): Likewise.
3780 (setHighlighter): Likewise.
3781 (replaceSelection): Likewise.
3783 2004-07-21 Michael Koch <konqueror@gmx.de>
3785 * javax/swing/plaf/basic/BasicScrollPaneUI.java
3786 (BasicScrollPaneUI): Implements ScrollPaneConstants.
3787 * javax/swing/plaf/basic/BasicToolBarUI.java
3788 (BasicToolBarUI): Implements SwingConstants.
3790 2004-07-21 Michael Koch <konqueror@gmx.de>
3792 * javax/swing/JPopupMenu.java: Removed CVS tags.
3793 * javax/swing/UIDefaults.java: Reformatted.
3794 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3795 Explicitely import used classes.
3797 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3799 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3800 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3801 (GtkComponentPeer): Remove temporary try/catch block.
3802 (setVisible): Call show and hide.
3803 (show): Make native.
3805 (getArgs): Don't add "visible" argument.
3806 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3807 (property_notify_predicate): Return Bool instead of int.
3808 (find_layout): New function.
3809 (connectJObject): Call find_layout.
3810 (connectSignals): Likewise.
3811 (moveLayout): Likewise.
3812 (gtkLayoutSetVisible): Likewise.
3814 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3816 * javax/swing/AbstractButton.java:
3817 (setDisplayedMnemonicIndex): Check if button
3818 text is not null before checking its length.
3819 * javax/swing/JMenuItem.java:
3820 (processMouseEvent): Disarm menu item if mouse has
3822 * javax/swing/plaf/basic/BasicMenuUI.java:
3823 (MouseInputHandler.mouseEntered): Do not raise
3824 popup menu if this menu is already selected.
3825 (MouseInputHandler.mousePressed): Do not fire
3827 (MenuHandler): Implemented.
3829 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3831 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
3832 (getSelectedObjects): Implemented.
3833 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
3834 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
3835 Added javadoc for few methods.
3836 (processMouseEvent): Made public.
3837 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
3838 (processMouseEvent): Likewise.
3840 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3842 * javax/swing/AbstractButton.java:
3843 (init): Set display mnemonic index to -1.
3844 (setMnemonic(char)): Use setMnemonic(int).
3845 (setMnemonic(int)): Set display mnemonic index.
3846 (getDisplayedMnemonicIndex): Change method signature
3847 by removing 'index' parameter.
3848 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3849 Added default for Menu.selectionBackground.
3850 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3851 (paintMenuItem): Change background color of the selected
3853 (paintText): Paint differently when menu item is disabled.
3854 Also paint mnemonic if it appears in the menu item's label.
3855 (paintAccelerator): Paint accelerator differently
3856 if menu item is disabled.
3857 * javax/swing/plaf/basic/BasicMenuUI.java:
3858 (installDefaults): Install defaults for
3859 selectionForeground and selectionBackground.
3860 (uninstallDefaults): Uninstall defauls for
3861 selectionForeground and selectionBackground.
3863 2004-07-21 Michael Koch <konqueror@gmx.de>
3865 * javax/swing/text/AbstractDocument.java
3866 (BranchElement): Implemented.
3867 (LeafElement): Implemented.
3868 * javax/swing/text/DefaultCaret.java:
3869 Import used classes.
3870 (serialVersionUID): New constant.
3871 * javax/swing/text/JTextComponent.java
3872 (AccessibleJTextComponent): Removed dead declaration.
3873 (caretPos): Removed.
3874 (setCaret): New method.
3875 * javax/swing/text/PlainDocument.java
3876 (rootElement): New field.
3877 (PlainDocument): Initialize rootElement.
3878 (createDefaultRoot): New method.
3879 (getDefaultRootElement): Implemented.
3880 * javax/swing/text/View.java: Reformatted.
3881 * javax/swing/text/ViewFactory.java
3882 (create): Added javadoc.
3884 2004-07-21 Michael Koch <konqueror@gmx.de>
3886 * javax/swing/ToolTipManager.java: Reformatted.
3888 2004-07-21 Rodimina Olga <rodimina@redhat.com>
3890 * javax/swing/AbstractButton.java
3891 (changeEvent): New field.
3892 (fireItemStateChanged): Change source of the event
3893 to 'this' before firing it to button listeners.
3894 (fireActionPerformed): Likewise.
3895 (fireStateChanged): Likewise.
3896 (createActionListener): Do not set source
3897 of the event to AbstractButton.
3898 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3899 (ContainerHandler.componentAdded): Removed
3900 print out statement.
3901 (ContainerHandler.componentRemoved): Likewise.
3903 2004-07-21 Michael Koch <konqueror@gmx.de>
3905 * javax/swing/text/Highlighter.java: New file.
3906 * Makefile.am: Added javax/swing/text/Highlighter.java.
3907 * Makefile.in: Regenerated.
3909 2004-07-21 Michael Koch <konqueror@gmx.de>
3911 * javax/swing/ToolTipManager.java
3912 (stillInsideTimerAction): Fixed constructor arguments.
3913 (outsideTimerAction): Likewise.
3914 (insideTimerAction): Likewise.
3916 2004-07-21 Michael Koch <konqueror@gmx.de>
3918 * javax/swing/JButton.java: Reformatted.
3919 * javax/swing/JFormattedTextField.java
3920 (getUIClassID): Implemented.
3921 * javax/swing/JRootPane.java
3922 (serialVersionUID): New constant.
3923 * javax/swing/JTextField.java
3925 (JTextField): Simplified.
3926 (getUIClassID): New method.
3927 (getActionListeners): Added @since tag.
3928 (setColumns): Invalidate layout and repaint.
3929 (getHorizontalAlignment): New method.
3930 (setHorizontalAlignment): New method.
3931 (selectAll): Removed.
3932 * javax/swing/SwingUtilities.java
3933 (getAncestorOfClass): Removed redundant @see tag.
3934 (isLeftMouseButton): Fixed implementation.
3935 (isMiddleMouseButton): Likewise.
3936 (isRightMouseButton): Likewise.
3937 * javax/swing/text/AbstractDocument.java
3938 (AttributeContext.addAttribute): New method.
3939 (AttributeContext.addAttributes): New method.
3940 (AttributeContext.getEmptySet): New method.
3941 (AttributeContext.reclaim): New method.
3942 (AttributeContext.removeAttribute): New method.
3943 (AttributeContext.removeAttributes): New method.
3944 * javax/swing/text/Document.java
3945 (createPosition): Throws BadLocationException.
3946 (getText): Likewise.
3948 * javax/swing/text/JTextComponent.java
3949 (getText): Return null if no document is set. Catch
3950 BadLocationException.
3952 (updateUI): Simplified.
3954 2004-07-21 Michael Koch <konqueror@gmx.de>
3956 * javax/swing/JButton.java
3957 (removeNotify): Fixed javadoc.
3958 (updateUI): Simplified.
3960 2004-07-21 David Jee <djee@redhat.com>
3962 * gnu/java/awt/image/ImageDecoder.java
3963 (startProduction): Only add consumer if it's not added yet.
3964 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
3965 (GdkPixbufDecoder): Don't call initState() here.
3966 (produce): Call initState() here, to ensure area_prepared and
3967 area_updated signals are properly connected.
3968 * gnu/java/awt/peer/gtk/GtkImage.java
3969 (setColorModel): Use equals() to compare ColorModel objects.
3970 (setPixels): Likewise.
3971 * java/awt/image/ColorModel.java
3972 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
3973 * java/awt/image/RGBImageFilter.java
3974 (setColorModel): Set consumer's color model.
3975 (setPixels): Use equals() to compare ColorModel objects.
3977 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
3979 * java/net/URLConnection.java (position): New field.
3980 (dateFormat1, dateFormat2, dateFormat3): Removed.
3981 (dateFormats): New field.
3982 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
3983 each time instead of re-allocating.
3984 (initializeDateFormats): Initialize 'dateFormats'.
3986 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3989 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
3992 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3994 * java/net/Socket.java (getImpl): Now private. Remove comment.
3996 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3998 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
3999 of chained Writer when calling super-constructor.
4000 * java/io/FilterWriter.java (FilterWriter): Likewise.
4001 * java/io/PrintWriter.java (PrintWriter): Likewise.
4003 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
4005 * prims.cc (process_gcj_properties): Don't increment i within LHS
4008 2004-07-19 Per Bothner <per@bothner.com>
4010 Print -verbose:message on "loading", not initialization.
4011 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
4012 * defineclass.cc (_Jv_ClassReader::parse): Print message if
4013 gcj::verbose_class_flag.
4014 * java/lang/natClass.cc (initializeClass): Don't print message here.
4015 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
4016 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
4017 (_Jv_PrepareCompiledClass): Likewise.
4019 2004-07-18 Matthias Klose <doko@debian.org>
4021 * configure.in: Substitute target_noncanonical.
4022 * configure: Regenerate
4024 2004-07-17 Michael Koch <konqueror@gmx.de>
4026 * java/lang/String.java: Fixed javadocs all over.
4028 2004-07-17 Mark Wielaard <mark@klomp.org>
4030 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
4031 when size is smaller.
4032 * java/io/RandomAccessFile.java (setLength): Use truncate for
4033 shrinking the file and seek plus write for expanding the file.
4035 2004-07-17 Michael Koch <konqueror@gmx.de>
4037 * gnu/java/nio/channels/natFileChannelPosix.cc
4038 (implTruncate): Always save current position. Only reposition file
4039 pointer to where we started if not beyond new lenght. Reposition file
4040 pointer to file length if it points beyond the end of file.
4042 2004-07-17 Mark Wielaard <mark@klomp.org>
4044 * javax/swing/Box.java: Put FIXME comment above class declaration.
4045 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
4046 * javax/swing/JCheckBox.java: Likewise.
4047 * javax/swing/JDialog.java: Likewise.
4048 * javax/swing/JRadioButton.java: Likewise.
4049 * javax/swing/JToggleButton.java: Likewise.
4050 * javax/swing/UIManager.java: Likewise.
4051 * javax/swing/border/TitledBorder.java: Likewise.
4052 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
4053 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
4054 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
4055 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
4056 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
4057 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
4058 * javax/swing/text/JTextComponent.java: Likewise.
4060 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
4062 * java/net/DatagramPacket.java (setAddress): Removed check for
4065 2004-07-17 Michael Koch <konqueror@gmx.de>
4067 * java/net/DatagramSocket.java
4068 (getLocalAddress): Check if socket is bound or not.
4069 * java/net/Socket.java
4070 (getLocalAddrss): Check if socket is bound or not.
4071 (getPort): Return -1 when not connected. Dont check getImpl() for
4073 (setReuseAddress): Check if socket is closed.
4074 (isConnected): Check if getImpl() returns null.
4076 2004-07-17 Mark Wielaard <mark@klomp.org>
4078 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
4079 on notifier object before calling notifyAll().
4081 2004-07-17 Michael Koch <konqueror@gmx.de>
4083 * gnu/java/nio/channels/FileChannelImpl.java
4084 (finalize): Added javadoc.
4086 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
4088 * java/text/CollationElementIterator.java
4089 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
4090 (setText): Use ArrayList instead of Vector.
4092 2004-07-17 Michael Koch <konqueror@gmx.de>
4094 * java/nio/ByteOrder.java
4095 (static): Removed. Not needed.
4096 Thanks to Patrick Reali for noticing.
4097 * java/nio/charset/CharsetDecoder.java
4098 (decode): Fix for classpath bug #9177: Reset state before flipping.
4100 2004-07-17 Michael Koch <konqueror@gmx.de>
4102 * java/security/Security.java: Fixed javadocs all over.
4104 2004-07-17 Michael Koch <konqueror@gmx.de>
4106 * gnu/java/awt/EmbeddedWindow.java
4108 (addNotify): Set peer via reflection.
4109 (setWindowPeer): Removed.
4110 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
4111 * Makefile.am (nat_source_files):
4112 Removed gnu/java/awt/natEmbeddedWindow.cc.
4113 * Makefile.in: Regenerated.
4115 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
4117 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
4119 * configure: Regenerated.
4121 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
4123 * configure.in: Use build_noncanonical rather than build_alias.
4124 * configure: Rebuild.
4126 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
4127 by logic refactoring. Move default definition of NATIVE closer
4128 to first alternate definition.
4129 * configure: Regenerate.
4131 * Makefile.am: Set ZIP and GCJH directly using autoconf.
4132 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
4133 gcj/Makefile.in: Regenerate.
4134 * configure.in: Set ZIP and GCJH. Remove redundant condition
4135 in AM_CONDITIONAL(NATIVE,...)
4136 * configure: Regenerate.
4138 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
4140 * configure.in: Use target_noncanonical rather than
4141 target_alias for forward-compatibility with autoconf 2.59.
4142 * configure: Regenerate.
4143 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
4144 testsuite/Makefile.am: Substitute target_noncanonical.
4145 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4146 testsuite/Makefile.in: Regenerate.
4148 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
4149 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
4150 * acinclude.m4: Include acx.m4.
4151 * aclocal.m4: Regenerate.
4152 * configure: Regenerate.
4154 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
4157 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
4158 (decimalFormat): New static variable.
4160 (getTime): New. Override Date.getTime().
4161 (toString): Synchronize. Use decimalFormat to format nanos value
4162 correctly. Truncate extra zeros.
4163 (before): Compare getNanos() only if getTime() is equal.
4166 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
4168 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
4169 * configure.in: ...here.
4170 * aclocal.m4: Regenerate.
4171 * configure: Regenerate.
4173 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
4174 * configure: Rebuilt with autoconf 2.13.
4175 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4176 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
4178 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
4181 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
4183 * Makefile.in: Rebuilt.
4184 * testsuite/libjava.lang/LargeFile.java: New test case.
4185 * testsuite/libjava.lang/LargeFile.out: New file.
4187 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
4189 * java/beans/EventHandler.java: Remove debugging statements.
4191 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
4193 * java/beans/EventHandler.java: New file.
4194 * Makefile.am (awt_java_source_files): Add EventHandler.java.
4195 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4196 testsuite/Makefile.in: Regenerate.
4198 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
4200 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
4201 flag to the gcj_setup.
4202 (gcj_jacks_run): Check tclsh version and launch jacks directly with
4204 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
4205 deprecation flag change. 58 XFAILS removed.
4207 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
4209 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
4210 -fno-use-divide-subroutine.
4211 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
4212 (HANDLE_FPE): Define.
4213 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
4214 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
4215 (HANDLE_DIVIDE_OVERFLOW): Define.
4217 2004-07-14 Michael Koch <konqueror@gmx.de>
4218 Matthias Klose <doko@debian.org>
4220 * java/awt/im/InputContext.java: Initialize in, line.
4222 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
4224 * interpret.cc (run): Correctly access libffi return values of
4225 integral smaller-than-int type; these are implicitly promoted.
4227 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
4230 * interpret.cc (compile_mutex): New.
4231 (_Jv_InitInterpreter): New. Initialize compile_mutex.
4232 (run): Lock compile_mutex before calling compile() if compilation is
4234 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
4235 * include/java-interp.h (_Jv_InitInterpreter): Declare.
4237 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
4240 * include/jvm.h (_Jv_value): New union type.
4241 * gcj/field.h (_Jv_Field): Add new _addr union field variants
4242 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
4245 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
4247 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
4248 * gnu/awt/xlib/XOffScreenImage.java
4249 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
4250 constructor argument. Add constructor using ImageProducer.
4251 (getSource): Implement.
4252 (imageComplete): New method.
4253 (setColorModel): New method.
4254 (setDimensions): New method.
4255 (setHints): New method.
4256 (setPixels): New method.
4257 (setProperties): New method.
4258 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
4259 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
4261 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
4264 * prims.cc (_Jv_CreateJavaVM): Fix comment.
4265 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
4266 (finalizerReady): Now native.
4268 (runFinalizers): Removed.
4269 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
4270 a primitive lock, and don't hold it while running the finalizers.
4271 (runFinalizers): Implement. Don't aquire any Java lock.
4272 (finalizerReady): Use lock primitives to signal finalizer thread.
4274 2004-07-11 Mark Wielaard <mark@klomp.org>
4276 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
4277 * java/net/URLStreamHandler.java (parseURL): When url file part
4278 doesn't contain a '/' just ignore context.
4280 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
4282 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
4283 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
4284 (MAKE_THROW_FRAME): Do not modify PSW address.
4285 (INIT_SEGV): Install SIGINFO-style signal handler.
4286 (INIT_FPE): Likewise.
4288 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
4290 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
4291 status. 21 xfail's removed, 1 added.
4293 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
4295 * gcj/javaprims.h: Regenerate CNI namespace definitions.
4297 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
4299 * java/text/MessageFormat.java
4300 (formatInternal): Append "{n}" if argument n is unavailable.
4301 (format(Object, StringBuffer, FieldPosition)): This
4302 should be equivalent to format(Object[],
4303 StringBuffer, FieldPosition).
4305 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4307 * java.util.Calendar.java (cache): New private static field. Cached
4308 mappings of locales->calendar classes.
4309 (ctorArgTypes): New private static field. Singleton argument for
4310 calendar class constructor lookup.
4311 (getInstance): Cache Locale->Calendar class mappings using HashMap.
4312 Optimize by bypassing reflection instantiation for the
4313 GregorianCalendar case.
4315 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4317 * java/util/Calendar.java: Use getSystemClassLoader as argument for
4318 ResourceBundle.getBundle() calls.
4319 * java/util/GregorianCalendar.java: Likewise.
4320 * java/util/Currency.java: Likewise.
4321 * java/text/BreakIterator.java: Likewise.
4322 * java/text/Collator.java: Likewise.
4323 * java/text/DateFormat.java: Likewise.
4324 * java/text/DateFormatSymbols.java: Likewise.
4325 * java/text/DecimalFormatSymbols.java: Likewise.
4326 * java/text/NumberFormat.java: Likewise.
4327 * java/awt/Window.java: Likewise.
4329 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4331 * java/util/ResourceBundle.java (bundleCache): Renamed from
4332 resourceBundleCache. Update comments.
4333 (getObject): Don't catch MissingResourceException.
4334 (getBundle(String)): Remove 'final'. Use system classloader if
4335 getCallingClassLoader returned null.
4336 (getBundle(String, Locale)): Likewise.
4337 (BundleKey): New private class. HashMap key for bundle cache lookup.
4338 (lookupKey): New. Singleton instance of BundleKey.
4339 (nullEntry): New. Cache entry to represent failed lookups.
4340 (getBundle(String, Locale, ClassLoader)): Re-written to use new
4341 caching strategy, no-allocation lookup, and new tryBundle methods.
4342 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
4343 name using given classloader.
4344 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
4345 baseName for given Locale and attempt to load bundle.
4347 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4349 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
4350 illegal protected method calls.
4352 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4354 Fix or remove some bogus test cases.
4355 * testsuite/libjava.compile/pr10459_2.java: Removed.
4356 * testsuite/libjava.compile/pr10459.java: Test using its own method,
4358 * testsuite/libjava.compile/inner_data.java: Test against its own
4361 2004-07-09 Michael Koch <konqueror@gmx.de>
4363 * scripts/unicode-muncher.pl: Updated to version 2.1
4364 from GNU classpath. Added some clarifications on where to find the
4365 needed files from www.unicode.org.
4366 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
4367 gnu/gcj/convert/UnicodeData-3.0.0.txt:
4368 Removed, these can directly be downloaded from www.unicode.org if
4370 * gnu/java/lang/CharData.java: Regenerated.
4371 * include/java-chartables.h: Regenerated.
4372 * Makefile.am (ordinary_java_source_files):
4373 Removed gnu/java/lang/CharData.java.
4374 * Makefile.in: Regenerated.
4376 2004-07-09 Michael Koch <konqueror@gmx.de>
4378 * java/security/AccessControlContext.java,
4379 java/security/SecureClassLoader.java:
4382 2004-07-09 Michael Koch <konqueror@gmx.de>
4384 * java/io/ObjectInputStream.java (readFields): Use long datatype
4385 when shifting byte values more then 24 bits left.
4387 2004-07-09 Michael Koch <konqueror@gmx.de>
4389 * java/util/zip/DeflaterOutputStream.java,
4390 java/util/zip/GZIPInputStream.java,
4391 java/util/zip/GZIPOutputStream.java,
4392 java/util/zip/InflaterInputStream.java:
4393 Reformatted. Added javadocs. Reordered all stuff.
4394 Renamed variables to be more clear.
4396 2004-07-09 Michael Koch <konqueror@gmx.de>
4398 * javax/imageio/IIOException.java,
4399 javax/imageio/event/IIOReadProgressListener.java,
4400 javax/imageio/event/IIOReadUpdateListener.java,
4401 javax/imageio/event/IIOReadWarningListener.java,
4402 javax/imageio/event/IIOWriteProgressListener.java,
4403 javax/imageio/event/IIOWriteWarningListener.java:
4405 * Makefile.am: Added new files.
4406 * Makefile.in: Regenerated.
4408 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
4410 * java/text/RuleBasedCollator.java
4411 (mergeRules): Use ArrayList instead of Vector.
4412 (subParseString): likewise.
4413 (parseString): likewise.
4414 (buildCollationVector): likewise.
4415 (getCollationKey): likewise.
4417 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4419 * java/text/DateFormat.java (parse):
4420 Improved javadoc. Improved exception message.
4422 2004-07-09 Mark Wielaard <mark@klomp.org>
4424 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
4425 interrupted() method to clear interupt flag of our Thread.
4427 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4429 * java/nio/Buffer.java,
4430 java/nio/ByteBuffer.java,
4431 java/nio/ByteBufferHelper.java,
4432 java/nio/ByteBufferImpl.java,
4433 java/nio/CharBuffer.java,
4434 java/nio/CharBufferImpl.java,
4435 java/nio/CharViewBufferImpl.java,
4436 java/nio/DirectByteBufferImpl.java,
4437 java/nio/DoubleBuffer.java,
4438 java/nio/DoubleBufferImpl.java,
4439 java/nio/DoubleViewBufferImpl.java,
4440 java/nio/FloatBuffer.java,
4441 java/nio/FloatBufferImpl.java,
4442 java/nio/FloatViewBufferImpl.java,
4443 java/nio/IntBuffer.java,
4444 java/nio/IntBufferImpl.java,
4445 java/nio/IntViewBufferImpl.java,
4446 java/nio/LongBuffer.java,
4447 java/nio/LongBufferImpl.java,
4448 java/nio/LongViewBufferImpl.java,
4449 java/nio/MappedByteBufferImpl.java,
4450 java/nio/ShortBuffer.java,
4451 java/nio/ShortBufferImpl.java,
4452 java/nio/ShortViewBufferImpl.java:
4453 Fixed javadocs all over. Improved input error
4456 * java/nio/Buffer.java
4457 (checkForUnderflow, checkForOverflow, checkIndex,
4458 checkIfReadOnly, checkArraySize): New helper methods
4461 * java/nio/ByteBufferHelper.java
4462 (checkRemainingForRead, checkRemainingForWrite,
4463 checkAvailableForRead, checkAvailableForWrite): Removed
4464 no longer needed methods.
4466 2004-07-09 Michael Koch <konqueror@gmx.de>
4468 * gnu/regexp/CharIndexedInputStream.java:
4469 Reordered imports to match classpath.
4471 2004-07-09 Michael Koch <konqueror@gmx.de>
4473 * gnu/java/awt/EmbeddedWindow.java:
4474 Load native library for setWindowPeer method.
4476 2004-07-08 Randolph Chung <tausq@debian.org>
4478 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
4479 * configure: Regenerate.
4480 * configure.host: Set can_unwind_signal for hppa*-linux.
4481 * include/pa-signal.h: New file.
4483 2004-07-07 Per Bothner <per@bothner.com>
4485 * Makefile.am: Add rules to build libgij from just gij.cc.
4487 * include/jvm.h (namespace jcj): Declare verbose_class_flag
4488 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
4489 (initializeClass): If verbose_class_flag, print message.
4490 * gij.cc (main): Handle -verbose:class flag.
4492 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
4494 * configure.host: Enable hash synchronization on Darwin.
4495 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
4496 ';', since this is a comment on Darwin.
4497 (compare_and_swap_release): Likewise.
4499 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
4501 * java/net/URLStreamHandler.java (parseURL): Canonicalize
4502 file portion of URL in addition to spec for file: protocol.
4504 2004-07-05 Anthony Green <green@redhat.com>
4506 * java/io/File.java (toURI): Merge from Classpath.
4508 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4510 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
4511 before passing to URL constructor. Rethrow any MalformedURLException
4512 as a RuntimeException. Catch MalformedURLException specifically, not
4515 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4517 * java/util/Locale.java (readObject): Intern strings read from object
4520 2004-07-04 Michael Koch <konqueror@gmx.de>
4522 * gnu/gcj/runtime/FirstThread.java,
4523 gnu/gcj/runtime/natFirstThread.cc: Removed.
4524 * gnu/java/lang/MainThread.java,
4525 gnu/java/lang/natMainThread.cc: New files.
4526 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
4527 * Makefile.am: Added new files and removed deleted ones.
4528 * Makefile.in: Regenerated.
4530 2004-07-03 Mark Wielaard <mark@klomp.org>
4531 Anthony Green <green@redhat.com>
4533 * java/net/URL.java (getFile): Clarify return value doc.
4534 (getPath): Return null if file is empty - not empty String.
4535 (set): Convert protocol to lower case before doing anything.
4536 Only change the protocol handler if it's different.
4538 2004-07-03 Anthony Green <green@redhat.com>
4540 * java/net/URL.java (URL): Convert protocol to lower case before
4541 doing anything, so we getURLStreamHandler() with the proper value.
4543 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
4545 * java/util/Locale.java (hashcode): Made transient.
4546 (hashCode): No longer synchronized.
4547 (equals): Remove comment.
4548 (writeObject): No longer synchronized. Implement using writeObject
4549 calls instead of tweaking hashCode field. Update doc.
4550 (readObject): Implement using readObject calls.
4552 2004-06-26 Geoffrey Keating <geoffk@apple.com>
4553 Andreas Tobler <a.tobler@schweiz.ch>
4555 * configure.host (powerpc-*-darwin*): New case, define
4557 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
4558 * configure: Regenerate.
4559 * include/darwin-signal.h: New.
4561 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
4563 * java/beans/Statement.java (doExecute): Fix formatting.
4565 2004-06-29 Per Bothner <per@bothner.com>
4567 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
4568 etc etc): Remove needless parenthesis, which causes __stdcall__
4569 attribute on MinGW to get ignored.
4571 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
4573 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
4575 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
4577 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
4579 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
4581 * java/beans/Expression.java: New file.
4582 * java/beans/Statement.java: New file.
4583 * Makefile.am: Added new files.
4584 * Makefile.in: Re-generate.
4586 2004-06-27 Mark Wielaard <mark@klomp.org>
4588 * java/io/FilePermission.java (usingPerms): Removed.
4589 (actionsString): Made final.
4590 (cachePerms): Renamed to checkPerms.
4591 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
4593 (FilePermission): Check arguments, call checkPerms().
4594 (equals): Remove cachePerms() call.
4595 (implies): Likewise.
4597 2004-06-27 Mark Wielaard <mark@klomp.org>
4599 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
4601 (sendRequest): Use new field in user-agent http agent.
4603 2004-06-27 Mark Wielaard <mark@klomp.org>
4605 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
4606 when argument is null.
4608 2004-06-26 Mark Wielaard <mark@klomp.org>
4610 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
4611 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
4613 (cancel_clicked): Likewise.
4615 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
4617 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
4618 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
4619 can not calculate the right value.
4620 (dpi_changed_cb): Likewise. Mark *pspec as unused.
4622 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
4624 * testsuite/libjava.jacks/jacks.xfail: Remove
4625 15.9.1-qualified-concrete-20.
4627 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4629 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
4630 encoding name to iconv.
4631 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4633 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4636 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
4637 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
4638 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4640 2004-06-21 Andrew Haley <aph@redhat.com>
4642 * java/io/ObjectOutputStream.java: Add DEBUG statements
4644 (dumpElementln): New method.
4646 * java/io/ObjectInputStream.java
4647 (currentClassLoader): Make native.
4648 (callersClassLoader): New field.
4650 (readObject): ENDBLOCKDATA is generated if the class has a write
4651 method, not if it has a read method.
4652 (readObject): Save and restore this.currentObject and
4653 this.currentObjectStreamClass around calls to callReadMethod().
4654 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
4657 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
4659 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
4662 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4664 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
4665 if desired, before the default class loader is initialised.
4666 Call INIT_SEGV only if HANDLE_SEGV is defined.
4668 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4670 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
4671 directory only if it actually exists.
4673 2004-06-18 Graydon Hoare <graydon@redhat.com>
4675 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4676 Fix up non-ansi comments.
4678 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4680 * javax/swing/text/AbstractDocument.java: Adding missing import
4681 for javax.swing.event.EventListenerList.
4682 * javax/swing/text/DefaultCaret.java: Likewise.
4684 2004-06-17 Michael Koch <konqueror@gmx.de>
4686 * javax/swing/JToolBar.java
4688 (JToolBar): Use Component.setName(String) instead of doing it all
4690 * javax/swing/Timer.java
4691 (queueEvent): Added missing modifier.
4693 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
4695 * Makefile.am: Added new file.
4696 * Makefile.in: Re-generate.
4697 * javax/swing/JMenu.java:
4698 (insertSeparator): Implemented.
4699 * javax/swing/JPopupMenu.java:
4700 (JPopupMenu.Separator): Implemented.
4701 * javax/swing/MenuSelectionManager.java:
4702 (processMouseEvent): Use java.awt.Component
4703 for event source instead of javax.swing.JComponent.
4704 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
4705 New File. Implemented.
4707 2004-06-16 David Jee <djee@redhat.com>
4709 * java/awt/GridBagLayout.java
4710 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
4711 Make sure pos_x and pos_y are never negative.
4713 2004-04-16 Andrew Overholt <overholt@redhat.com>
4715 * Makefile.am: Add new file.
4716 * Makefile.in: Re-generate.
4717 * javax/swing/JToolBar.java
4718 Partially implemented.
4719 * javax/swing/plaf/basic/BasicToolBarUI.java
4720 New file. Partially implemented.
4722 2004-06-16 Graydon Hoare <graydon@redhat.com>
4724 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
4725 (setComposite): Accept AlphaComposite arguments.
4726 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
4727 (createBufferedImage): Add new overloads.
4728 * gnu/java/awt/peer/gtk/GtkToolkit.java
4729 (createImage): Use GdkPixbufDecoder.createBufferedImage
4730 when useGraphics2D() is true.
4731 (getImage): Delegate to createImage.
4732 * javax/swing/JList.java
4734 (getFirstVisibleIndex):
4735 (getLastVisibleIndex):
4737 (ensureIndexIsVisible): New methods.
4738 * javax/swing/Timer.java: Reimplement.
4740 2004-06-16 Michael Koch <konqueror@gmx.de>
4742 * javax/swing/text/AbstractDocument.java
4743 (AbstracElement): Made public, implements java.io.Serializable.
4744 (AttributeContext): Made public.
4745 (BranchElement): Likewise.
4746 (Content): Likewise.
4747 (DefaultDocumentEvent): Made public, extends
4748 javax.swing.undo.CompoundEdit.
4749 (ElementEdit): Made public, extends
4750 javax.swing.undo.AbstractUndoableEdit.
4751 (LeafElement): Made public.
4752 (LeafElement.LeafElement): Made public.
4754 2004-06-16 Michael Koch <konqueror@gmx.de>
4756 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
4757 methods (that were obviously never be intended to get included hi this
4758 class. Added some methods too.
4760 2004-06-16 Michael Koch <konqueror@gmx.de>
4762 * javax/swing/text/PlainDocument.java
4763 (serialVersionUID): New constant.
4764 (lineLimitAttribute): Likewise.
4765 (tabSizeAttribute): Likewise.
4766 (tabSize): New field.
4767 (PlainDocument): Made public.
4768 (PlainDocument): New constructor.
4770 2004-06-16 Michael Koch <konqueror@gmx.de>
4772 * javax/swing/text/AbstractDocument.java
4773 (insertString): Throws BadLocationException.
4774 * javax/swing/text/Document.java
4775 (insertString): Likewise.
4776 * javax/swing/text/JTextComponent.java:
4777 Javadocs and comments cleaned up.
4779 2004-06-16 Michael Koch <konqueror@gmx.de>
4781 * javax/swing/event/UndoableEditListener.java: Reformatted.
4782 * javax/swing/text/AbstractDocument.java
4783 (AbstractDocument): Implements java.io.Serializable.
4784 (doc_list): Removed.
4785 (undo_list): Removed.
4786 (AbstractElement.serialVerionUID): New field.
4787 (BranchElement.serialVerionUID): Likewise.
4788 (DefaultDocumentEvent.serialVerionUID): Likewise.
4789 (ElementEdit.serialVerionUID): Likewise.
4790 (LeafElement.serialVerionUID): Likewise.
4791 (serialVerionUID): Likewise.
4792 (BAD_LOCATION): New constant.
4793 (BidiElementName): Likewise.
4794 (ContentElementName): Likewise.
4795 (ParagraphElementName): Likewise.
4796 (SectionElementName): Likewise.
4797 (ElementNameAttribute): Likewise.
4798 (AbstractDocument): Made protected.
4799 (AbstractDocument): New construtor.
4800 (listenerList): New field.
4801 (fireChangedUpdate): Implemented.
4802 (fireInsertUpdate): Likewise.
4803 (fireRemoveUpdate): Likewise.
4804 (fireUndoableEditUpdate): Likewise.
4805 (getListeners): Likewise.
4806 (addDocumentListener): Likewise.
4807 (removeDocumentListener): Likewise.
4808 (addUndoableEditListener): Likewise.
4809 (removeUndoableEditListener): Likewise.
4810 (getDocumentListeners): New method.
4811 (getUndoableEditListeners): Likewise.
4812 (getAsynchronousLoadPriority): Made public.
4813 (getBidiRootElement): Likewise.
4814 (setAsynchronousLoadPriority): Likewise.
4815 (setDocumentProperties): Likewise.
4816 * javax/swing/text/BadLocationException.java
4817 (serialVerionUID): New field.
4818 * javax/swing/text/DefaultCaret.java
4819 (changeEvent): New field.
4820 (listenerList): Likewise.
4822 (addChangeListener): Reimplemented.
4823 (removeChangeListener): Likewise.
4824 (getListeners): New method.
4825 (getChangeListeners): Likwise.
4826 (getComponent): Likewise.
4827 * javax/swing/text/GapContent.java
4828 (GapContent): Implements java.io.Serializable.
4829 (serialVerionUID): New field.
4831 2004-06-16 Michael Koch <konqueror@gmx.de>
4833 * javax/swing/JTree.java
4834 (treeModel): New field.
4835 (JTree): New constructors, one existing one made public.
4836 (createTreeModel): New method.
4837 (addTreeExpansionListener): Likewise.
4838 (removeTreeExpansionListener): Likewise.
4839 (getTreeExpansionListeners): Likewise.
4840 (fireTreeCollapsed): Likewise.
4841 (fireTreeExpanded): Likewise.
4842 (addTreeSelectionListener): Likewise.
4843 (removeTreeSelectionListener): Likewise.
4844 (getTreeSelectionListeners): Likewise.
4845 (fireValueChanged): Likewise.
4846 (addTreeWillExpandListener): Likewise.
4847 (removeTreeWillExpandListener): Likewise.
4848 (getTreeWillExpandListeners): Likewise.
4849 (fireTreeWillCollapse): Likewise.
4850 (fireTreeWillExpand): Likewise.
4852 2004-06-16 Michael Koch <konqueror@gmx.de>
4854 * javax/swing/JTree.java: Reformatted.
4856 2004-06-16 Michael Koch <konqueror@gmx.de>
4858 * javax/swing/JTextArea.java: New file.
4859 * javax/swing/JTextField.java
4861 (notifyAction): New constant.
4862 (columns): New field.
4863 (JTextField): New constructors.
4864 (createDefaultModel): New method.
4865 (addActionListener): Reimplmemented.
4866 (removeActionListener): Reimplemented.
4867 (getActionListeners): New method.
4868 (fireActionPerformed): New method.
4869 (getColumns): New method.
4870 (setColumne): New method.
4871 * javax/swing/text/JTextComponent.java
4872 (AccessibleJTextComponent.serialVersionUID): New field.
4873 (serialVersionUID): Likewise.
4874 (DEFAULT_KEYMAP): Likewise.
4875 (FOCUS_ACCELERATOR_KEY): Likewise.
4876 (doc): Made private.
4877 (icon_gap): Likewise.
4880 (JTextComponent): Some constructors removed.
4881 (getScrollableTracksViewportHeight): New method.
4882 (getScrollableTracksViewportWidth): Likewise.
4883 * Makefile.am: Added javax/swing/JTextArea.java.
4884 * Makefile.in: Regenerated.
4886 2004-06-15 Graydon Hoare <graydon@redhat.com>
4888 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
4889 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
4890 * javax/swing/JViewport.java
4891 (getExtentSize): Return size rather than preferred size.
4892 (toViewCoordinates): New methods.
4893 (getViewSize): Return size rather than preferred size.
4894 (setViewSize): Note view size as set.
4895 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
4896 * javax/swing/plaf/basic/BasicScrollBarUI.java
4897 (getPreferredSize): Don't redo layout.
4898 * javax/swing/plaf/basic/BasicViewportUI.java
4899 (paint): Translate image properly and eat exceptions.
4901 2004-06-15 Kim Ho <kho@redhat.com>
4903 * javax/swing/JTabbedPane.java
4904 (setComponent): Remove old component and
4906 (setSelectedIndex): Don't operate on the
4907 components if they're null. Don't set index
4908 on the model if the index is the same.
4909 (insertTab): Don't add or hide the component
4910 if it's null. Repaint the container.
4911 * javax/swing/plaf/basic/BasicLookAndFeel.java
4912 Change colors for TabbedPane.
4913 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
4914 (mousePressed): Re-layout and paint the component.
4915 (layoutContainer): Don't set location on the view.
4916 (ScrollingViewport::paint): Remove.
4918 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
4920 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4921 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
4923 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
4924 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
4925 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
4927 (drawLine): Call gdk_flush before leaving GDK critical region.
4928 (fillRect): Likewise.
4929 (drawRect): Likewise.
4930 (copyArea): Likewise.
4931 (copyPixmap): Likewise.
4932 (clearRect): Likewise.
4933 (drawArc): Likewise.
4934 (drawPolyline): Likewise.
4935 (drawPolygon): Likewise.
4936 (fillPolygon): Likewise.
4937 (fillArc): Likewise.
4938 (drawOval): Likewise.
4939 (fillOval): Likewise.
4941 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
4943 (GdkFontMetrics): Add style argument to initState call.
4944 (stringWidth(String,int,int,String)): Add style parameter.
4945 (stringWidth(String)): Add style argument to stringWidth call.
4946 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
4947 (initState): Set pango font style and weight based on AWT style
4948 parameter. Pass default GTK language to
4949 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
4950 simply dividing by PANGO_SCALE.
4951 (stringWidth): Set pango font style and weight based on AWT style
4954 * java/awt/Button.java (next_button_number): New field.
4955 (paramString): Change output.
4956 (generateName): New method.
4957 (getUniqueLong): New method.
4959 2004-06-14 Kim Ho <kho@redhat.com>
4961 * javax/swing/JTabbedPane.java:
4962 (setComponentAt): Set the component, not
4964 * javax/swing/plaf/basic/BasicDesktopIconUI.java
4965 (actionPerformed): Let deiconize catch exception.
4967 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4969 * javax/swing/JPopupMenu.java:
4970 (setVisible): Corrected location of a
4971 heavyweight popup menu.
4973 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4975 * javax/swing/MenuSelectionManager.java:
4976 Ran through jalopy to fix formatting style.
4978 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4980 * javax/swing/JLayeredPane.java:
4981 (remove): Revalidate and repaint layered pane after
4982 the component was removed.
4983 javax/swing/JMenu.java:
4984 (setVisible): Display popup menu at the user location,
4985 if one was set by the user.
4986 (setMenuLocation): Reimplemented. Fixed javadoc.
4987 * javax/swing/JMenuBar.java: Added javadoc.
4988 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
4989 (MODEL_CHANGED_PROPERTY): New Property.
4990 (isSelected): Implemented.
4991 (setBorderPainted): Fire PropertyChangeEvent
4992 if paintBorder property changes.
4993 (setSelected): Implemented.
4994 (setSelectionModel): Implemented.
4995 * javax/swing/JPopupMenu.java: Added Javadoc
4996 (pack): Implemented.
4997 (setVisible): Reimplemented.
4998 (show): Fixed location.
4999 (JPopupMenu.LigthWeightPopup): Reimplemented to use
5000 Container instead of JPanel.
5001 * javax/swing/MenuSelectionManager.java: Added Javadocs.
5002 (clearSelectedPath): Reimplemented to clear selectedPath
5004 (processMouseEvent): Reimplemented.
5005 (setSelectedPath): Fire stateChange event indicating that
5006 selected menu path has changed.
5007 (getPath): Change to use ArrayList instead of Vector.
5008 * javax/swing/plaf/basic/BasicMenuBarUI.java:
5009 (installUI): call installKeyboardActions().
5010 (uninstallUI): call uninstallKeyboardActions().
5012 2004-06-13 Michael Koch <konqueror@gmx.de>
5014 * javax/swing/text/DefaultCaret.java,
5015 javax/swing/text/BadLocationException.java:
5018 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
5020 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
5021 DEFAULT_COLS): New variables.
5022 (create): Don't allow 0 rows or 0 columns. Instead, set the
5023 values to DEFAULT_ROWS or DEFAULT_COLS.
5024 (getMinimumSize): Likewise.
5025 (getPreferredSize): Likewise.
5026 (minimumSize): Likewise.
5027 (preferredSize): Likewise.
5028 (create): Set peer's editable state.
5029 * java/awt/TextArea.java (TextArea()): Set rows and columns to
5030 zero. Update javadocs.
5031 (TextArea(String)): Likewise.
5032 (TextArea(int,int)): Fix javadocs.
5033 (TextArea(String,int,int,int)): Only throw exception if one of
5034 rows or columns is zero. Fix javadocs.
5036 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
5038 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
5039 addition to Components.
5041 * java/awt/MenuItem.java (dispatchEventImpl): If the event
5042 wasn't consumed by normal processing, send it to the parent
5045 * gnu/java/awt/peer/gtk/GtkImagePainter.java
5046 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
5049 2004-06-11 David Jee <djee@redhat.com>
5051 * java/awt/MediaTracker.java
5052 (addImage(Image,int)): Call imageUpdate() to udpate image status.
5053 (addImage(Image,int,int,int)): Likewise.
5055 2004-06-11 Michael Koch <konqueror@gmx.de>
5057 * javax/swing/text/AbstractDocument.java,
5058 javax/swing/text/Document.java,
5059 javax/swing/text/GapContent.java,
5060 javax/swing/text/JTextComponent.java,
5061 javax/swing/text/PlainDocument.java:
5064 2004-06-11 Michael Koch <konqueror@gmx.de>
5066 * javax/swing/JRootPane.java
5067 (AccessibleJRootPane.serialVersionUID): New field.
5068 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
5069 (AccessibleJRootPane.getAccessibleRole): New method.
5070 (RootLayout): Implements Serializable.
5071 (RootLayout.serialVersionUID): New field.
5072 (RootLayout.RootLayout): New constructor.
5073 (setJMenuBar): Made public.
5074 (getJMenuBar): Likewise.
5075 (JRootPane): Likewise.
5076 (createContentPane): Likewise.
5077 (createGlassPane): Likewise.
5078 (createLayeredPane): Likewise.
5080 2004-06-11 Michael Koch <konqueror@gmx.de>
5082 * javax/swing/SwingUtilities.java
5083 (isLeftMouseButton): Fixed javadoc.
5084 (isMiddleMouseButton): Likewise.
5085 (isRightMouseButton): Likewise.
5087 2004-06-11 Michael Koch <konqueror@gmx.de>
5089 * javax/swing/JScrollPane.java
5090 (serialVersionUID): New field.
5091 (columnHeader): Made protected.
5092 (rowHeader): Likewise.
5093 (lowerLeft): Likewise.
5094 (lowerRight): Likewise.
5095 (upperLeft): Likewise.
5096 (upperRight): Likewise.
5097 (horizontalScrollBar): Likewise.
5098 (horizontalScrollBarPolicy): Likewise.
5099 (verticalScrollBar): Likewise.
5100 (verticalScrollBarPolicy): Likewise.
5101 (viewport): Likewise.
5103 2004-06-11 Michael Koch <konqueror@gmx.de>
5105 * javax/swing/LookAndFeel.java: Fixed javadocs.
5107 2004-06-11 Michael Koch <konqueror@gmx.de>
5109 * javax/swing/JEditorPane.java: Fixed javadocs.
5110 (JEditorPane): Removed redundant call to to this().
5111 (fireHyperlinkUpdate): Implemented.
5113 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5115 * javax/swing/JMenu.java: Fixed file name
5116 in the file comment.
5118 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5120 * javax/swing/JMenu.java: Added javadoc.
5121 (JMenu): Added MenuChangeListener to listen to
5122 ChangeEvents occuring in menu's model.
5123 (insert): Throw IllegalArgumentException if
5124 index is less than 0
5125 (setSelected): Reimplement.
5126 (setPopupMenuVisible): Call menu's model isEnabled()
5127 (setDelay): Throw IllegalArgumentException if
5128 given amount of delay is less than 0.
5129 (createActionComponent): Implemented.
5130 (createActionChangeListener): Implemented.
5131 (addSeparator): Implemented.
5132 (getItem): Throw IllegalArgumentException if index is
5134 (getItemCount): Implemented.
5135 (fireMenuSelected): Changed to use menuEvent.
5136 (fireMenuDeselected): Likewise.
5137 (fireMenuCanceled): Likewise.
5138 (setAccelerator): Changed to throw an error if this
5140 (doClick): Implemented.
5141 (JMenu.ActionChangedListener): New inner class to handle
5142 PropertyChangeEvents occuring in the actions associated with menu.
5143 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
5144 (BasicMenuUI): Added PropertyChangeListener to the menu.
5145 (createChangeListener): Implemented.
5146 (createMenuDragMouseListener): Likewise.
5147 (createMenuKeyListener): Likewise.
5148 (createPropertyChangeListener): Likewise.
5149 (uninstallListeners): Likewise.
5150 (BasicMenuUI.MouseInputHandler): Reimplemented.
5151 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
5152 (BasicMenuUI.ChangeHandler): Likewise.
5153 (BasicMenuUI.MenuDragMouseHandler): Likewise.
5154 (BasicMenuUI.MenuKeyHandler): Likewise.
5156 2004-06-10 David Jee <djee@redhat.com>
5158 * java/awt/MediaTracker.java
5159 (imageUpdate): Only do notifyAll() if the image is complete.
5161 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5163 * javax/swing/JApplet.java:
5164 (getJMenuBar): Made public.
5165 (setJMenuBar): Likewise.
5166 * javax/swing/JFrame.java:
5167 (getJMenuBar): Made public.
5168 (setJMenuBar): Likewise.
5169 * javax/swing/JWindow.java:
5170 (getJMenuBar): Removed.
5171 (setJMenuBar): Removed.
5173 2004-06-10 Michael Koch <konqueror@gmx.de>
5175 * javax/swing/JEditorPane.java
5176 (createEditorKitForContentType): Fixed visibility.
5177 (fireHyperlinkUpdate): Likewise.
5178 (getContentType): Likewise.
5179 (getEditorKit): Likewise.
5180 (getEditorKitForContentType): Likewise.
5181 (getPage): Likewise.
5183 (registerEditorKitForContentTyoe): Likewise.
5184 (replaceSelection): Likewise.
5185 (setContentType): Likewise.
5186 (setEditorKit): Likewise.
5187 (setPage): Likewise.
5189 2004-06-10 Michael Koch <konqueror@gmx.de>
5191 * javax/swing/Timer.java
5192 (Timer): New constructor.
5193 * javax/swing/plaf/basic/BasicProgressBarUI.java
5194 (animationTimer): Don't initialize at construction.
5195 (startAnimationTimer): Added since tag.
5196 (stopAnimationTimer): Likewise.
5197 (installUI): Use new Timer constructor.
5198 * javax/swing/plaf/basic/BasicScrollBarUI.java
5199 (installUI): Likewise.
5200 * javax/swing/plaf/basic/BasicSliderUI.java
5201 (installUI): Likewise.
5203 2004-06-10 Michael Koch <konqueror@gmx.de>
5205 * javax/swing/ButtonGroup.java
5206 (serialVersionUID): Made private.
5207 (buttons): Renamed from v, added javadoc.
5208 (sel): Added javadoc.
5209 (ButtonGroup): Likewise.
5212 (getElements): Likewise.
5213 (getSelection): Likewise.
5214 (setSelected): Likewise.
5215 (isSelected): Likewise.
5216 (getButtonCount): Likewise.
5218 2004-06-10 Michael Koch <konqueror@gmx.de>
5220 * javax/swing/ButtonGroup.java,
5221 javax/swing/ImageIcon.java,
5222 javax/swing/JEditorPane.java,
5223 javax/swing/JRootPane.java,
5224 javax/swing/JTextField.java,
5225 javax/swing/LookAndFeel.java,
5226 javax/swing/plaf/basic/BasicTextUI.java:
5229 2004-06-10 Michael Koch <konqueror@gmx.de>
5231 * javax/swing/text/Style.java: Added javadocs.
5233 2004-06-10 Michael Koch <konqueror@gmx.de>
5235 * javax/swing/JComponent.java
5236 (fireVetoableChange): Removed redundant cast.
5237 * javax/swing/JLabel.java
5238 (getDisabledIcon): Save icon for next call.
5240 2004-06-10 Michael Koch <konqueror@gmx.de>
5242 * javax/swing/KeyStroke.java
5243 (getKeyStroke(char,boolean)): Marked deprecated.
5245 2004-06-10 Michael Koch <konqueror@gmx.de>
5247 * javax/swing/DefaultCellEditor.java,
5248 javax/swing/GrayFilter.java,
5249 javax/swing/event/DocumentEvent.java,
5250 javax/swing/text/JTextComponent.java,
5251 javax/swing/text/MutableAttributeSet.java:
5254 2004-06-10 Michael Koch <konqueror@gmx.de>
5256 * javax/swing/plaf/BorderUIResource.java:
5257 Added serialVersionUID all over.
5259 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
5261 * javax/swing/undo/UndoManager.java: Re-written from scratch.
5263 2004-06-10 Michael Koch <konqueror@gmx.de>
5265 * javax/swing/table/DefaultTableCellRenderer.java
5266 (noFocusBorder): Initialize directly.
5268 2004-06-10 Michael Koch <konqueror@gmx.de>
5270 * javax/swing/plaf/basic/BasicArrowButton.java
5271 (setDirection): Use method argument.
5273 2004-06-10 Michael Koch <konqueror@gmx.de>
5275 * javax/swing/plaf/BorderUIResource.java,
5276 javax/swing/plaf/ComponentUI.java,
5277 javax/swing/undo/CompoundEdit.java,
5278 javax/swing/undo/StateEdit.java:
5279 Fixed javadocs all over.
5281 2004-06-10 Michael Koch <konqueror@gmx.de>
5283 * javax/swing/DefaultButtonModel.java
5284 (ARMED): Made public final, fixed value.
5285 (ENABLED): Likewise.
5286 (PRESSED): Likewise.
5287 (ROLLOVER): Likewise.
5288 (SELECTED): Likewise.
5289 (stateMask): Initialize directly.
5290 (listenerList): Likewise.
5291 (mnemonic): Likewise.
5292 (fireStateChanged): Removed argument, use changeEvent as event.
5293 All places where this method is called are fixed too.
5294 (getActionCommant): Fixed javadoc.
5295 (setGroup): Fixed javadoc.
5296 (getGroup): New method.
5298 2004-06-09 Olga Rodimina <rodimina@redhat.com>
5300 * javax/swing/AbstractButton.java
5301 (AbstractButton): Use init() to initialize the button.
5302 (init): New Method. Initializes AbstractButton.
5303 * javax/swing/JMenuItem.java: Documented.
5304 (JMenuItem): Reimplemented.
5305 (init): Implemented.
5306 (setEnabled): Changed to call super.setEnabled()
5307 (processMouseEvent): Reimplemented.
5308 (fireMenuKeyPressed): Implemented.
5309 (fireMenuKeyReleased): Implemented.
5310 (fireMenuKeyTyped): Implemented.
5311 (menuSelectionChanged): disarm the model if the menu item was
5313 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
5314 (getPath): Change to use ArrayList instead of Vector.
5315 (getPreferredSize): Renamed variable.
5316 (paintMenuItem): Paint margin area of menu item.
5317 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
5318 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
5319 menu item's bounds before clearing the selection.
5321 2004-06-09 David Jee <djee@redhat.com>
5323 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
5324 (GtkTextComponentPeer): Set caret position to 0.
5325 * java/awt/TextComponent.java
5326 (setText): Set caret position to 0.
5327 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5328 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
5329 Handle GtkScrolledWindow separately. Fix signal handler blocking.
5330 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
5332 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5333 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
5336 2004-06-09 Kim Ho <kho@redhat.com>
5338 * Makefile.am: New files
5339 * Makefile.in: Regenerated
5340 * java/awt/Container.java
5341 (getComponentAt): Removed.
5342 * javax/swing/AbstractAction.java
5343 (ENABLED_PROPERTY): New property.
5344 (putValue): Fire PropertyChangeEvents.
5345 (setEnabled): ditto.
5346 (firePropertyChange): Javadoc and implement
5348 * javax/swing/AbstractButton.java
5349 (setAction): Don't create PropertyChangeListener
5350 if new Action is null.
5351 (setIcon): Don't set icon till after comparing
5353 (configurePropertiesFromAction): Check mnemonic
5354 key before calling intValue().
5355 (createActionPropertyChangeListener): Check
5356 properties rather than bulk change.
5357 * javax/swing/DefaultDesktopManager.java:
5359 * javax/swing/DesktopManager.java:
5361 * javax/swing/JComponent.java
5362 (fireVetoableChange): Implement.
5363 (paintImmediately): Use root component.
5364 * javax/swing/JDesktopPane.java: Implement
5365 * javax/swing/JInternalFrame.java: Implement
5366 * javax/swing/JLabel.java
5367 (getDisabledIcon): Return grayscaled icon if
5368 no disabled icon specified.
5369 * javax/swing/JMenuBar.java
5370 (getComponentAtIndex): Use getComponent
5371 * javax/swing/JOptionPane.java
5372 (getDesktopPaneForComponent): Use SwingUtilities'
5374 (getFrameForComponent): ditto.
5375 * javax/swing/JSplitPane.java
5376 (remove): Use getComponent.
5377 * javax/swing/SwingUtilities.java
5378 (convertPoint): Implement.
5379 * javax/swing/plaf/basic/BasicButtonUI.java
5380 (paintButtonNormal): Check opaqueness before
5382 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
5384 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
5386 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
5388 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
5390 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5391 Change InternalFrame and Desktop colors.
5393 2004-06-09 David Jee <djee@redhat.com>
5395 * java/awt/Container.java
5396 (remove): Do not set component to invisible.
5398 2004-06-09 Michael Koch <konqueror@gmx.de>
5400 * javax/swing/tree/DefaultMutableTreeNode.java
5401 (getLeafCount): Renamed enum to e.
5403 2004-06-09 Michael Koch <konqueror@gmx.de>
5405 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5406 (positionForMouseEvent): Removed redundant semicolon.
5407 (continueDrag): Use method arguments.
5409 2004-06-09 Michael Koch <konqueror@gmx.de>
5411 * javax/swing/border/TitledBorder.java,
5412 javax/swing/filechooser/FileSystemView.java,
5413 javax/swing/plaf/basic/BasicButtonListener.java,
5414 javax/swing/plaf/basic/BasicGraphicsUtils.java,
5415 javax/swing/plaf/basic/BasicLabelUI.java,
5416 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
5417 javax/swing/plaf/basic/BasicScrollBarUI.java,
5418 javax/swing/plaf/basic/BasicScrollPaneUI.java,
5419 javax/swing/plaf/basic/BasicSliderUI.java,
5420 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
5421 javax/swing/plaf/basic/BasicToggleButtonUI.java,
5422 javax/swing/table/JTableHeader.java,
5423 javax/swing/text/AbstractDocument.java,
5424 javax/swing/text/DefaultCaret.java,
5425 javax/swing/text/StyledEditorKit.java,
5426 javax/swing/tree/DefaultTreeCellEditor.java:
5427 Reworked import statements.
5429 2004-06-08 Graydon Hoare <graydon@redhat.com>
5431 * javax/swing/Box.java: Temporarily comment out code
5432 broken due to visibility bug.
5434 2004-06-09 Michael Koch <konqueror@gmx.de>
5436 * javax/swing/ImageIcon.java
5437 (ImageIcon): Added missing constructor.
5439 2004-06-08 Michael Koch <konqueror@gmx.de>
5441 * javax/swing/JToggleButton.java
5442 (JToggleButton): New constructor.
5443 (getAccessibleContext): Moved documentation into javadoc.
5444 (getUIClassID): Likewise.
5446 2004-06-08 Michael Koch <konqueror@gmx.de>
5448 * javax/swing/AbstractButton.java
5449 (getDisabledIcon): Create disabled icon if none exists yet.
5451 2004-06-08 Michael Koch <konqueror@gmx.de>
5453 * javax/swing/plaf/basic/BasicLookAndFeel.java
5454 (initClassDefaults): Added FormattedTextFieldUI.
5455 (loadResourceBundle): Renamed enum to e.
5457 2004-06-08 Michael Koch <konqueror@gmx.de>
5459 * javax/swing/plaf/basic/BasicButtonUI.java
5460 (paintIcon): Simplified.
5461 (paintText): Paint disabled button correctly.
5463 2004-06-08 Michael Koch <konqueror@gmx.de>
5465 * javax/swing/JComponent.java
5466 (createToolTip): Use official JToolTip API.
5468 2004-06-08 Michael Koch <konqueror@gmx.de>
5470 * javax/swing/JToolTip.java
5471 (JToolTip): No arguments in API.
5472 (setTipText): New method.
5474 2004-06-08 Michael Koch <konqueror@gmx.de>
5476 * javax/swing/SwingUtilities.java
5477 (isLeftMouseButton): New method.
5478 (isMiddleMouseButton): New method.
5479 (isRightMouseButton): New method.
5481 2004-06-08 Michael Koch <konqueror@gmx.de>
5483 * javax/swing/AbstractButton.java,
5484 javax/swing/CellRendererPane.java,
5485 javax/swing/JCheckBoxMenuItem.java,
5486 javax/swing/JColorChooser.java,
5487 javax/swing/JComboBox.java,
5488 javax/swing/JComponent.java,
5489 javax/swing/JDesktopPane.java,
5490 javax/swing/JFileChooser.java,
5491 javax/swing/JMenu.java,
5492 javax/swing/JMenuItem.java,
5493 javax/swing/JOptionPane.java,
5494 javax/swing/JPasswordField.java,
5495 javax/swing/JPopupMenu.java,
5496 javax/swing/JProgressBar.java,
5497 javax/swing/JRadioButtonMenuItem.java,
5498 javax/swing/JScrollBar.java,
5499 javax/swing/JSeparator.java,
5500 javax/swing/JSlider.java,
5501 javax/swing/JSplitPane.java,
5502 javax/swing/JTabbedPane.java,
5503 javax/swing/JTextField.java,
5504 javax/swing/JToolBar.java,
5505 javax/swing/text/JTextComponent.java:
5506 Fixed all constructors of accessibility classes.
5508 2004-06-08 Michael Koch <konqueror@gmx.de>
5510 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
5513 2004-06-08 Michael Koch <konqueror@gmx.de>
5515 * javax/swing/Box.java
5516 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
5517 (AccessibleBoxFiller.serialVersionUID): New member variable.
5518 * javax/swing/DefaultButtonModel.java
5519 (stateMask): Made protected.
5520 (listenerList): Likewise.
5521 (changeEvent): Likewise.
5523 (mnemonic): Likewise.
5524 (actionCommand): Likewise.
5525 (getListeners): New method.
5526 (getActionListeners): New method.
5527 (getItemListeners): New method.
5528 (getChangeListeners): New method.
5529 (fireItemStateChanged): Simplified.
5530 (fireActionPerformed): Simplified.
5531 (fireStateChanged): Simplified.
5532 * javax/swing/JFrame.java
5533 (JFrame): Implements WindowContants.
5534 (HIDE_ON_CLOSE): Removed.
5535 (EXIT_ON_CLOSE): Removed.
5536 (DISPOSE_ON_CLOSE): Removed.
5537 (DO_NOTHING_ON_CLOSE): Removed.
5538 (processWindowEvent): Exit with code 0.
5539 (setDefaultCloseOperation): Do security check before setting value.
5540 * javax/swing/JOptionPane.java
5541 (message): Initialize only in constructor.
5542 * javax/swing/JToolTip.java: Removed unused imports.
5543 * javax/swing/JViewport.java
5544 (serialVersionUID): New member variable.
5545 (SIMPLE_SCROLL_MODE): Made final, fixed value.
5546 (BLIT_SCROLL_MODE): Likewise.
5547 (BACKINGSTORE_SCROLL_MODE): Likewise.
5548 (scrollUnderway): Made protected.
5549 (isViewSizeSet): Likewise.
5550 * javax/swing/ListModel.java: Fixed javadoc.
5551 * javax/swing/Popup.java: Likewise.
5552 * javax/swing/RepaintManager.java
5553 (paintDirtyRegions): Don't use internal classes of
5554 java.util.AbstractMap.
5555 * javax/swing/ScrollPaneConstants.java: Reindented.
5556 * javax/swing/ScrollPaneLayout.java
5557 (viewport): Made protected.
5558 (verticalScrollBar): Made protected, renamed to vsb.
5559 (horizontalScrollBar): Made protected, renamed to hsb.
5560 (rowHeader): Made protected, renamed to rowHead.
5561 (columnHeader): Made protected, renamed to colHead.
5562 (lowerLeft): Made protected.
5563 (lowerRight): Made protected.
5564 (upperLeft): Made protected.
5565 (upperRight): Made protected.
5566 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
5567 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
5569 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
5571 * java/awt/MediaTracker.java (imageUpdate): Only set status to
5572 LOADING if flags has SOMEBITS set.
5574 2004-06-07 Michael Koch <konqueror@gmx.de>
5576 * javax/swing/AbstractButton.java: Reorganized imports.
5577 * javax/swing/ActionMap.java: Likewise.
5578 * javax/swing/DefaultButtonModel.java: Likewise.
5579 * javax/swing/DefaultListModel.java: Likewise.
5580 * javax/swing/ImageIcon.java: Likewise.
5581 (serialVersionUID): New member variable.
5582 * javax/swing/JComboBox.java: Reorganized imports.
5583 * javax/swing/JComponent.java: Likewise.
5584 (ui): Made protected.
5585 (listenerList): Made protected.
5586 (TOOL_TIP_TEXT_KEY): New constant.
5587 (scrollRectToVisible): Removed redundant null check.
5588 * javax/swing/JFrame.java: Reorganized imports.
5589 * javax/swing/JInternalFrame.java: Reorganized imports.
5590 * javax/swing/JProgressBar.java: Likewise.
5591 * javax/swing/JRootPane.java: Likewise.
5592 * javax/swing/JScrollBar.java: Likewise.
5593 * javax/swing/JSeparator.java: Likewise.
5594 * javax/swing/JSlider.java: Likewise.
5595 * javax/swing/JTabbedPane.java: Likewise.
5596 * javax/swing/JTextField.java: Likewise.
5597 * javax/swing/JToolBar.java: Likewise.
5598 * javax/swing/JTree.java: Likewise.
5599 * javax/swing/JViewport.java: Likewise.
5600 * javax/swing/JWindow.java: Likewise.
5601 * javax/swing/KeyStroke.java: Likewise.
5602 * javax/swing/LookAndFeel.java: Likewise.
5603 * javax/swing/MenuSelectionManager.java: Likewise.
5604 * javax/swing/SwingUtilities.java: Likewise.
5605 * javax/swing/Timer.java: Likewise.
5606 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
5607 * javax/swing/JList.java
5608 (HORIZONTAL_WRAP): Made final, fixed value.
5609 (VERTICAL): Likewise.
5610 (VERTICAL_WRAP): Likewise.
5612 2004-06-07 Michael Koch <konqueror@gmx.de>
5614 * javax/swing/AbstractButton.java
5615 (serialVersionUID): New member variable.
5616 (AccessibleAbstractButton.serialVersionUID): Likewise.
5617 (AbstractButton): Made public.
5618 * javax/swing/Box.java
5619 (AccessibleBox.serialVersionUID): New member variable.
5620 (Filler.serialVersionUID): Likewise.
5621 * javax/swing/DefaultListSelectionModel.java
5622 (serialVersionUID): Likewise.
5623 * javax/swing/JApplet.java
5624 (serialVersionUID): Likewise.
5625 * javax/swing/JCheckBox.java
5626 (serialVersionUID): Likewise.
5627 * javax/swing/JCheckBoxMenuItem.java
5628 (serialVersionUID): Likewise.
5629 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
5630 * javax/swing/JColorChooser.java
5631 (serialVersionUID): Likewise.
5632 (AccessibleJColorChooser.serialVersionUID): Likewise.
5633 * javax/swing/JComponent.java
5634 (serialVersionUID): Made private.
5635 (AccessibleJComponent.serialVersionUID): New member variable.
5636 * javax/swing/JDesktopPane.java
5637 (serialVersionUID): Likewise.
5638 * javax/swing/JDialog.java
5639 (serialVersionUID): Likewise.
5640 * javax/swing/JFormattedTextField.java
5641 (serialVersionUID): Fixed value.
5642 * javax/swing/JFrame.java
5643 (serialVersionUID): New member variable.
5644 (getDefaultCloseOpertation): Made public.
5645 * javax/swing/JLayeredPane.java
5646 (serialVersionUID): Likewise.
5647 (LAYER_PROPERTY): Made final, fixed value.
5648 (JLayeredPane): Made public.
5649 * javax/swing/JMenu.java
5650 (AccessibleJMenu.serialVersionUID): New member variable.
5651 (WinListener.serialVersionUID): Likewise.
5652 * javax/swing/JMenuBar.java
5653 (serialVersionUID): Likewise.
5654 (getComponentAtIndex): Added @deprecated tag.
5655 * javax/swing/JMenuItem.java
5656 (serialVersionUID): New member variable.
5657 (AccessibleJMenuItem.serialVersionUID): Likewise.
5658 * javax/swing/JOptionPane.java
5659 (serialVersionUID): Likewise.
5660 (AccessibleJOptionPane.serialVersionUID): Likewise.
5661 * javax/swing/JPopupMenu.java
5662 (serialVersionUID): Likewise.
5663 (AccessibleJPopupMenu.serialVersionUID): Likewise.
5664 (getPopupMenuListeners): New method.
5665 (getComponentAtIndex): Added @deprecated tag.
5666 * javax/swing/JProgressBar.java
5667 (serialVersionUID): New member variable.
5668 (AccessibleJProgressBar.serialVersionUID): Likewise.
5669 * javax/swing/JRadioButton.java
5670 (serialVersionUID): Likewise.
5671 * javax/swing/JRadioButtonMenuItem.java
5672 (serialVersionUID): Likewise.
5673 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
5674 * javax/swing/JScrollBar.java
5675 (serialVersionUID): Likewise.
5676 (AccessibleJScrollBar.serialVersionUID): Likewise.
5677 * javax/swing/JSeparator.java
5678 (serialVersionUID): Likewise.
5679 (AccessibleJSeparator.serialVersionUID): Likewise.
5680 * javax/swing/JSlider.java: Fixed javadocs.
5681 (AccessibleJSlider.serialVersionUID): New member variable.
5682 * javax/swing/JSplitPane.java: Added copyright statement.
5683 (serialVersionUID): New member variable.
5684 (AccessibleJSplitPane.serialVersionUID): Likewise.
5685 * javax/swing/JTabbedPane.java
5686 (serialVersionUID): Likewise.
5687 (AccessibleJTabbedPane.serialVersionUID): Likewise.
5688 (ModelListener.serialVersionUID): Likewise.
5689 (ModelListener.ModelListener): New constructor.
5690 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
5691 (WRAP_TAB_LAYOUT): Likewise.
5692 * javax/swing/JTable.java
5693 (serialVersionUID): New member variable.
5694 * javax/swing/JToggleButton.java
5695 (serialVersionUID): Likewise.
5696 (ToggleButtonModel): Made static.
5697 (ToggleButtonModel.serialVersionUID): New member variable.
5698 * javax/swing/JToolTip.java
5699 (serialVersionUID): Likewise.
5700 * javax/swing/JTree.java
5701 (serialVersionUID): Likewise.
5702 * javax/swing/JWindow.java
5703 (serialVersionUID): Likewise.
5704 * javax/swing/Timer.java
5705 (serialVersionUID): Likewise.
5707 2004-06-06 Michael Koch <konqueror@gmx.de>
5709 * javax/swing/SwingConstants.java
5710 (NEXT): New constant.
5711 (PREVIOUS): Likewise.
5712 * javax/swing/UIManager.java
5713 (LookAndFeel): Made public.
5714 (LookAndFeel.getClassName): Likewise.
5715 (LookAndFeel.getName): Likewise.
5717 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5719 * javax/swing/JCheckBoxMenuItem.java:
5721 * javax/swing/JMenu.java: Likewise.
5722 * javax/swing/JMenuBar.java: Likewise.
5723 * javax/swing/JMenuItem.java: Likewise.
5724 * javax/swing/JPopupMenu.java: Likewise.
5725 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5726 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5727 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5728 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5729 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5730 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5731 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5733 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5735 * javax/swing/plaf/basic/BasicMenuUI.java:
5736 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5737 Call getPath() from super class instead.
5739 2004-05-31 David Jee <djee@redhat.com>
5741 * java/awt/Container.java
5742 (remove): Set component visibility to false after removing it.
5744 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
5746 * java/awt/Component.java (getForeground): Return SystemColor if
5748 (getBackground): Likewise.
5750 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5751 (item_highlighted): New function.
5752 (connectSignals): Set item_highlighted as list's select
5755 * java/applet/Applet.java: Revert changes from 2004-04-29,
5756 2004-03-15 and 2004-03-14.
5758 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5759 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
5762 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
5763 "Dialog" as the default font.
5764 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
5766 * java/awt/Component.java (getFont): Return "Dialog" font by
5768 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
5769 Multiply size argument to pango_font_description_set_size by the
5770 DPI conversion factor rather than by PANGO_SCALE.
5771 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
5772 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
5773 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
5774 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
5775 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
5776 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
5777 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
5778 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
5779 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
5780 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5781 Divide baseline y coordinate by DPI conversion factor rather
5782 than by PANGO_SCALE.
5783 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
5784 (area_prepared): Fix typo.
5785 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
5786 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
5787 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
5788 (dpi_conversion_factor): New global variable.
5789 (init_dpi_conversion_factor): New function to calculate and
5790 track DPI conversion factor.
5791 (dpi_changed_cb): New callback.
5792 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
5794 2004-05-27 David Jee <djee@redhat.com>
5796 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5797 (getGraphics): Return a new GdkGraphics instance.
5798 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5799 (getGraphics): Call super.getGraphics().
5801 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5803 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5804 (setNativeBounds): Clamp width and height values to >= 0.
5806 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5807 (find_fg_color_widget): Handle GtkOptionMenu specially.
5809 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5810 (pre_event_handler): Only post configure events to visible
5813 2004-05-26 David Jee <djee@redhat.com>
5815 * java/awt/BorderLayout.java
5816 (layoutContainer): Fix size calculations.
5818 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5820 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5821 (window_wm_protocols_filter): Remove function.
5822 (create): Remove filter that removes WM_TAKE_FOCUS client
5825 2004-06-17 Anthony Green <green@redhat.com>
5827 * java/util/zip/ZipFile.java (getInputStream): Return null if
5830 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
5831 directory contents to the class path.
5833 2004-06-15 Andrew Haley <aph@redhat.com>
5835 * java/lang/natSystem.cc (getenv0): Don't assume environment
5836 variable is Latin 1 coded.
5838 2004-06-14 Andreas Jaeger <aj@suse.de>
5840 * configure.in: Support --enable-version-specific-runtime-libs.
5841 * configure: Regenerated.
5843 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
5845 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
5846 to pass ClassLoader argument.
5847 * java/util/GregorianCalendar.java: Likewise.
5848 * java/util/Currency.java: Likewise.
5849 * java/text/BreakIterator.java: Likewise.
5850 * java/text/Collator.java: Likewise.
5851 * java/text/DateFormat.java: Likewise.
5852 * java/text/DateFormatSymbols.java: Likewise.
5853 * java/text/DecimalFormatSymbols.java: Likewise.
5854 * java/text/NumberFormat.java: Likewise.
5855 * java/awt/Window.java: Likewise.
5857 2004-06-14 Andrew Haley <aph@redhat.com>
5859 * java/lang/System.java: (getenv0): New method.
5860 (getenv): Add security check. Do the right thing.
5861 * java/lang/natSystem.cc (getenv0): New method.
5863 2004-06-12 Mark Wielaard <mark@klomp.org>
5865 * javax/swing/RepaintManager.java
5866 (paintDirtyRegions): Use entrySet(), not values().
5868 2004-06-10 Mark Wielaard <mark@klomp.org>
5870 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
5873 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
5875 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
5876 when we already know the answer.
5877 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
5878 (setStartRule,setEndRule): Don't take abs of day number.
5879 (getOffset): Clarify docs. Add argument checks.
5880 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
5881 (equals,hasSameRules,toString,readObject): Use startTimeMode and
5884 2004-06-10 Tom Tromey <tromey@redhat.com>
5886 * interpret.cc (run): Handle wide fload.
5888 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
5890 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
5892 2004-06-05 Michael Koch <konqueror@gmx.de>
5894 * javax/swing/SwingConstants.java
5895 (NEXT): New constant.
5896 (PREVIOUS): Likewise.
5898 2004-06-05 Michael Koch <konqueror@gmx.de>
5900 * javax/swing/UIManager.java
5901 (LookAndFeel): Made public.
5902 (LookAndFeel.getName): Likewise.
5903 (LookAndFeel.getClassName): Likewise.
5905 2004-06-03 Michael Koch <konqueror@gmx.de>
5907 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5908 (requestFocus): Revert last changes.
5909 (gtkRequestFocus): Removed.
5910 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5911 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5913 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
5914 Reverted last patch.
5915 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5916 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
5917 Reverted comment change.
5919 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5921 * javax/swing/JCheckBoxMenuItem.java:
5923 * javax/swing/JMenu.java: Likewise.
5924 * javax/swing/JMenuBar.java: Likewise.
5925 * javax/swing/JMenuItem.java: Likewise.
5926 * javax/swing/JPopupMenu.java: Likewise.
5927 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5928 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5929 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5930 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5931 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5932 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5933 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5935 2004-06-01 Tom Tromey <tromey@redhat.com>
5937 * java/io/ObjectStreamField.java: Cleaned up imports.
5939 2004-06-01 Michael Koch <konqueror@gmx.de>
5941 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
5943 2004-06-01 Mark Wielaard <mark@klomp.org>
5945 * java/io/Writer.java (Writer(Object)): Fixed API doc.
5947 2004-06-01 Michael Koch <konqueror@gmx.de>
5949 * java/security/Security.java
5950 (insertProviderAt): Use equals() instead of ==.
5951 (removeProvicer): Likewise.
5952 (getProvider): Likewise.
5953 * java/security/Signature.java
5954 (sign): Don't set state to UNINITIALIZED.
5957 2004-06-01 Mark Wielaard <mark@klomp.org>
5959 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
5960 Implement by calling gtkRequestFocus.
5961 (gtkRequestFocus): New native method.
5962 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5963 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
5965 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5967 (filter_expose_event_handler):
5969 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5970 (menu_pos): Mark static.
5972 2004-06-01 Michael Koch <konqueror@gmx.de>
5974 * java/text/CollationElementIterator.java,
5975 java/text/CollationKey.java,
5976 java/text/RuleBasedCollator.java: New versions from GNU classpath.
5977 * testsuite/libjava.mauve/xfails: Removed all
5978 java.text.CollationElementIterator tests.
5980 2004-06-01 Michael Koch <konqueror@gmx.de>
5982 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
5984 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
5985 Java 1.5 keyword usage.
5987 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5989 * javax/swing/plaf/basic/BasicMenuUI.java:
5990 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5991 Call getPath() from super class instead.
5993 2004-05-31 Michael Koch <konqueror@gmx.de>
5995 * java/io/SequenceInputStream.java:
5996 Rename enum to e because enum is a keyword in Java 1.5.
5998 2004-05-31 Michael Koch <konqueror@gmx.de>
6000 * gnu/java/rmi/rmic/CompilerProcess.java:
6001 Fixed javadoc to by XHTML compliant.
6003 2004-05-30 Mark Wielaard <mark@klomp.org>
6005 * java/awt/Toolkit.java (loadSystemColors): Implement.
6007 2004-05-30 Michael Koch <konqueror@gmx.de>
6009 * java/lang/System.java: Reordered imports.
6011 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
6013 * java/text/DecimalFormat.java
6014 (parse): Fixed parsing of decimal strings. Number of maximum
6015 digits to be read should now work.
6016 * java/text/SimpleDateFormat.java
6017 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
6018 formatter. This fixes DateFormatTest.
6020 2004-05-30 Michael Koch <konqueror@gmx.de>
6022 * java/nio/Buffer.java
6023 (limit): Fixed off by one error.
6024 * java/nio/CharBuffer.java
6025 (wrap): Fixed arguments, added javadocs.
6027 2004-05-30 Michael Koch <konqueror@gmx.de>
6029 * gnu/java/beans/BeanInfoEmbryo.java,
6030 java/awt/im/InputContext.java,
6031 javax/swing/tree/DefaultMutableTreeNode.java:
6032 Rename enum to e because enum is a keyword in Java 1.5.
6034 2004-05-30 Michael Koch <konqueror@gmx.de>
6036 * gnu/java/math/MPN.java,
6037 java/awt/geom/Arc2D.java:
6038 Fixed javadocs all over.
6040 2004-05-30 Michael Koch <konqueror@gmx.de>
6042 * java/awt/DefaultKeyboardFocusManager.java
6043 (dispatchEvent): Call method to get key event dispatchers.
6044 (dispatchKeyEvent): Call method to get key event post processors.
6045 * javax/swing/JComponent.java
6046 (listenerList): Made protected.
6047 * javax/swing/JOptionPane.java
6048 (message): Don't initialize.
6049 (JOptionPane): Set message text.
6050 * javax/swing/JPopupMenu.java
6051 (show): Fixed typo in argument name.
6052 * javax/swing/RepaintManager.java
6053 (paintDirtyRegions): Use public API of java.util.Map.
6054 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
6055 (positionForMouseEvent): Removed redundant ';'.
6056 (continueDrag): Use method arguments.
6058 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
6060 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
6063 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
6065 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
6067 * gnu/gcj/RawDataManaged.java: New file.
6068 * java/lang/Thread.java (data): Declare as RawDataManaged.
6069 * java/lang/natThread.cc (init_native): Cast natThread data to
6070 RawDataManaged, not jobject.
6071 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
6072 * Makefile.in: Rebuilt.
6074 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
6076 * java/util/SimpleTimeZone.java: Reverting my last change until I
6077 can fix it properly.
6079 2004-05-27 Michael Koch <konqueror@gmx.de>
6081 * javax/swing/JPopupMenu.java
6082 (isVisible): Do not use visible directly.
6083 (setVisible): Likewise.
6084 * javax/swing/JWindow.java
6085 (JWindow): call accessible constructor.
6086 * javax/swing/RepaintManager.java
6087 (paintDirtyRegions): Use public methods to obtain iterator.
6089 2004-05-25 David Jee <djee@redhat.com>
6091 * java/awt/Container.java
6092 (remove): Set component's parent to null only after we removed the
6093 component from its parent's layout manager.
6095 2004-05-25 David Jee <djee@redhat.com>
6097 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6098 (GtkComponentPeer): Set bounds regardless of whether awtComponent
6100 * gnu/java/awt/peer/gtk/GtkListPeer.java
6101 (getSize): Change native method declaration.
6102 (minimumSize): Pass visible row count into getSize().
6103 (preferredSize): Likewise.
6104 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
6105 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
6106 natural size. Use visible row count to determine the final height
6109 2004-05-21 Graydon Hoare <graydon@redhat.com>
6111 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6112 (setClip): Minor correction to order of operations.
6114 * javax/swing/JScrollPane.java: Extend sketchy implementation.
6115 * javax/swing/ScrollPaneLayout.java: Likewise.
6116 * javax/swing/JViewPort.java: Likewise.
6117 * javax/swing/ViewportLayout.java: Likewise.
6119 * javax/swing/JComponent.java: Rewrite.
6120 * javax/swing/RepaintManager.java: Likewise.
6122 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
6123 * javax/swing/JList.java
6124 (setSelectedIndices):
6125 (getSelectedIndices):
6126 (getSelectedValues): New functions.
6127 (getPreferredScrollableViewportSize): Return preferred size.
6128 (getScrollableUnitIncrement):
6129 (getScrollableBlockIncrement): Initial implementations.
6130 * javax/swing/JRootPane.java: Clean up slightly.
6135 (isValidateRoot): Add overrides from JComponent.
6136 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
6137 * javax/swing/UIManager.java (getDimension): Return the dimension.
6139 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
6140 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
6141 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
6142 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
6143 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
6144 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
6145 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
6146 * javax/swing/plaf/basic/BasicRootPaneUI.java:
6147 Likewise, and set background.
6148 * javax/swing/plaf/basic/BasicListUI.java:
6149 Likewise, and improve a bit.
6150 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6151 Likewise, and adjust calculations.
6152 * javax/swing/plaf/basic/BasicViewportUI.java:
6153 Likewise, and improve a bit.
6154 * javax/swing/plaf/basic/BasicLookAndFeel.java
6155 (Button.margin): Shrink.
6157 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
6158 Hack to set horizontal always, workaround pango.
6160 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
6161 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6162 Synchronize more often, check cairo status after ops,
6163 handle changes to cairo pattern API, check for disposal.
6165 2004-05-21 Olga Rodimina <rodimina@redhat.com>
6167 * javax/swing/plaf/basic/BasicMenuItemUI.java:
6168 (BasicMenuItemUI): Create propertyChangeListener.
6169 (getPath):Implemented.
6170 (installListeners): Add propertyChangeListener to menuItem.
6171 (uninstallListeners): Remove propertyChangeListener from menuItem.
6172 (update): Implemented.
6173 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
6174 (mouseEntered): Take insets of popup menu into account when
6175 calculating position of popup menu.
6177 2004-05-18 Olga Rodimina <rodimina@redhat.com>
6179 * Makefile.am: Added new file.
6180 * Makefile.in: Regenerate.
6181 * javax/swing/JMenuBar.java:
6182 Started implementation.
6183 * javax/swing/JPopupMenu.java:
6184 (setVisible): Fixed location of lightweight/mediumweight
6186 (show): Fixed location of PopupMenu.
6187 * javax/swing/plaf/basic/BasicMenuBarUI.java:
6188 New file. UI Delegate for JMenuBar.
6189 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
6190 (mouseEntered): Corrected position of the submenu.
6192 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
6194 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
6195 to _gtk_accel_group_attach.
6196 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
6199 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
6200 package access. Don't override setFont.
6201 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
6202 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
6203 gtkWidgetRequestFocus package access.
6204 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
6206 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
6207 Give gtkWidgetRequestFocus package access.
6208 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
6209 gtkWidgetRequestFocus package access. Don't override setFont.
6210 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
6212 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6213 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
6215 (gtkSetFont): Likewise.
6216 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
6218 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6219 (gtkSetFont): Whitespace fix.
6221 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6222 (gtkWidgetSetUsize): Remove method.
6224 2004-05-18 David Jee <djee@redhat.com>
6226 * java/awt/image/MemoryImageSource.java
6227 (newPixels(int,int,int,int,boolean)): Set only the specified
6228 rectangle of pixels.
6229 (newPixels(byte[],ColorModel,int,int)): Implement.
6230 (newPixels(int[],ColorModel,int,int)): Implement.
6232 2004-05-18 Olga Rodimina <rodimina@redhat.com>
6234 * Makefile.am: Added new file.
6235 * Makefile.in: Regenerate.
6236 * javax/swing/JMenu.java: Started
6238 * javax/swing/JPopupMenu.java:
6239 (insert): If specified index is -1, then
6240 add component at the end.
6241 (isPopupTrigger): Reimplemented.
6242 (JPopupMenu.LightWeightPopup): setBounds
6243 of the lightWeightPopup before adding it
6245 (javax/swing/plaf/basic/BasicIconFactory.java):
6246 (getMenuArrowIcon): Implemented.
6247 * javax/swing/plaf/basic/BasicMenuItemUI.java:
6248 (getPreferredSize): Add size of the arrow icon
6249 if this menu item is instance of JMenu.
6250 (paintMenuItem): Paint arrow icon if this
6251 menu item is a submenu.
6252 * javax/swing/plaf/basic/BasicMenuUI.java:
6253 New File. UI Delegate for JMenu.
6255 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
6257 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
6258 Post KEY_TYPED events.
6259 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6260 (generates_key_typed_event): Remove function.
6262 2004-05-17 Olga Rodimina <rodimina@redhat.com>
6264 * javax/swing/JRootPane.java
6265 (JRootPane.RootLayout): Reimplemented to
6266 set bounds of contentPane and menuBar.
6267 (setJMenuBar): Add menu bar to the layered pane.
6268 (createLayeredPane): Set layout of layeredPane
6270 * javax/swing/JLayeredPane.java:
6271 (addImpl): Calculate index of the component in the
6272 layeredPane according to the specified position within
6275 2004-05-17 David Jee <djee@redhat.com>
6277 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6278 (setPixels): Change color model to the default model after
6280 * java/awt/image/MemoryImageSource.java
6281 (newPixels): Set only the specified rectangle of pixels.
6283 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
6285 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
6286 -l-java-beans -l-javax-accessibility -l-javax-swing.
6288 * java/awt/AWTEvent.java (toString): Print source's name rather
6289 than the source itself.
6291 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
6293 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
6295 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
6296 (gdk_color_to_java_color): New function.
6297 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
6299 2004-05-12 David Jee <djee@redhat.com>
6301 * java/awt/image/RGBImageFilter.java:
6302 Initialize origmodel as null.
6303 (makeColor): Fix pixel component order.
6304 (filterRGBPixels): Fix pixel iteration.
6305 (setPixels): Add extra checks for index color model. Convert pixels
6306 to default color model if necessary.
6307 (convertColorModelToDefault): New override method for byte pixels.
6308 (convertColorModelToDefault): For int pixels, fix pixel iteration.
6309 (makeColorbyDefaultCM): New override method for byte pixels.
6310 (makeColorbyDefaultCM): For int pixel, add color model as argument.
6311 (makeColor): Fix pixel component order.
6313 2004-05-11 Kim Ho <kho@redhat.com>
6315 * javax/swing/Box.java:
6316 Comment out more parts of Box.Filler.
6318 2004-05-11 Kim Ho <kho@redhat.com>
6320 * javax/swing/Box.java:
6321 Remove reference to AccessibleAWTComponent so
6324 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6326 * gnu/java/awt/peer/gtk/GtkListPeer.java,
6327 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
6328 implementation of list peer to use GtkTreeView instead of
6329 deprecated GtkCList.
6331 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
6333 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6334 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
6335 (handleEvent): Remove keyChar argument to
6336 gtkWidgetDispatchKeyEvent calls.
6337 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
6339 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6340 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
6341 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
6344 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
6346 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6347 (gtkWidgetRequestFocus): Mark protected.
6348 (GtkComponentPeer): Only set the peer's bounds if its component
6350 * java/awt/Component.java (static): Set the default keyboard
6352 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
6353 requestFocusInWindow(temporary)): Don't request focus if the
6354 component is not showing. Get tree lock before traversing
6355 component hierarchy.
6356 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
6357 Only set the global focus owner if it is not a Window.
6358 (processKeyEvent): Consume keystrokes associated with the focus
6359 traversal keystroke.
6360 (focusPreviousComponent, focusNextComponent, upFocusCycle,
6361 downFocusCycle): Call requestFocusInWindow instead of
6363 * java/awt/EventDispatchThread.java (run): Move setting of
6364 default keyboard focus manager to Component.java.
6365 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6366 (awt_keycode_to_keysym): New function.
6367 (gtkWidgetDispatchKeyEvent): Finish implementation.
6368 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6369 (pre_event_handler): Add FIXME comment.
6371 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
6372 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6373 (gtkWidgetRequestFocus): New method.
6374 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
6375 disable Tab and Shift-Tab keystrokes.
6376 (addNotify, appendText, insertText, replaceText): Simplify peer
6378 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
6379 (connectSignals): Remove connections to "commit" signals.
6380 Remove C++-style comments.
6382 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
6383 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6384 (handleEvent): Activate GTK button when the space bar key is
6386 (gtkActivate): New method.
6388 2004-05-06 David Jee <djee@redhat.com>
6390 * java/awt/image/CropImageFilter.java
6391 (setPixels): Implement for byte array pixels.
6392 * java/awt/image/ReplicateScaleFilter.java
6393 (setPixels): Implement for byte array pixels.
6394 (replicatePixels): Overload for byte array pixels.
6396 2004-05-06 Kim Ho <kho@redhat.com>
6398 * javax/swing/Box.java:
6399 (getAccessibleContext): Return an instance of the
6402 2004-05-05 David Jee <djee@redhat.com>
6404 * gnu/java/awt/peer/gtk/GdkGraphics.java
6405 (drawImage): When component is null, use SystemColor.window as
6406 the default bgcolor.
6407 * gnu/java/awt/peer/gtk/GtkImage.java
6408 (setPixels): We can avoid iterating through the pixel rows only
6410 * java/awt/Image.java
6411 (getScaledInstance): Partially implement.
6412 * java/awt/image/CropImageFilter.java
6413 (setProperties): Fix "filter" property.
6414 (setPixels): Implement.
6415 * java/awt/image/ReplicateScaleFilter.java
6416 (setDimensions): Use scaled dimensions.
6417 (setPixels): Implement.
6418 (replicatePixels): New method.
6420 2004-05-05 David Jee <djee@redhat.com>
6422 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6423 (convertPixels): If either pixels or model is null, return null.
6424 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
6425 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
6426 is null, do nothing and return.
6428 2004-05-03 Kim Ho <kho@redhat.com>
6430 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
6431 (getGraphics): Like GtkFramePeer, the Graphics
6432 object needs to be translate to account for
6434 (postMouseEvent): New method. Account for
6436 (postExposeEvent): ditto.
6437 * javax/swing/Box.java: Stubbed.
6438 * javax/swing/JDialog.java: Ran through jalopy
6440 (JDialog): Call SwingUtilities' getOwnerFrame
6442 (setLayout): Check isRootPaneCheckingEnabled
6443 * javax/swing/JOptionPane.java: Re-implemented.
6444 * javax/swing/SwingUtilities.java:
6445 (getOwnerFrame): Static method to grab a default
6446 owner frame for Dialogs that don't specify owners.
6447 * javax/swing/event/SwingPropertyChangeSupport.java:
6448 (firePropertyChange): Fix early exit condition.
6449 * javax/swing/plaf/basic/BasicLabelUI.java:
6450 (paint): Avoid painting text if it is null
6452 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
6455 2004-05-03 Olga Rodimina <rodimina@redhat.com>
6457 * Makefile.am: Added new file.
6458 * Makefile.in: Regenerate.
6459 * javax/swing/JPopupMenu.java:
6460 Started implementation.
6461 * javax/swing/JWindow.java
6462 (JWindow): call super() if parent for window
6464 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
6465 New File. UI Delegate for JPopupMenu.
6467 2004-04-30 Olga Rodimina <rodimina@redhat.com>
6469 * javax/swing/JApplet.java: Indicated that JApplet
6470 implements RootPaneContainer and made method of this
6472 * javax/swing/JFrame.java: Ditto.
6473 * javax/swing/JWindow.java: Ditto.
6475 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
6477 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6478 (nativeSetBounds): Call gdk_window_move in addition to
6481 * java/applet/Applet.java (preferredSize): Call parent's
6482 preferredSize if the applet stub is null.
6483 (minimumSize): Likewise for parent's minimumSize.
6485 2004-04-27 Olga Rodimina <rodimina@redhat.com>
6487 * javax/swing/JMenuItem.java
6488 (createActionPropertyChangeListener): Implemented.
6489 (processMouseEvent): Ditto.
6490 (fireMenuDragMouseEntered): Ditto.
6491 (fireMenuDragMouseExited): Ditto.
6492 (fireMenuDragMouseDragged): Ditto.
6493 (fireMenuDragMouseReleased): Ditto.
6494 (menuSelectionChanged): Ditto.
6495 (getSubElements): Ditto.
6496 (getComponent): Ditto.
6497 (addMenuDragMouseListener): Ditto.
6498 (removeMenuDragMouseListener):Ditto.
6499 (addMenuKeyListener): Ditto.
6500 (removeMenuKeyListener): Ditto.
6501 * javax/swing/plaf/basic/BasicMenuItemUI.java
6502 (doClick): Imlemented.
6503 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
6504 Don't handle mouse events here. Pass them to
6505 MenuSelectionManager.
6507 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6508 Used correct version of jalopy configuration
6509 file to fix style in the files below.
6511 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6513 * javax/swing/JCheckBoxMenuItem.java:
6514 Fixed style and removed unnecessary comments.
6515 * javax/swing/JMenuItem.java: Ditto.
6516 * javax/swing/JRadioButtonMenuItem.java: Ditto.
6517 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
6518 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
6519 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
6521 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
6523 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
6526 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
6528 * java/awt/ContainerOrderFocusTraversalPolicy.java
6529 (getComponentAfter): Start from current component and work up
6530 the component hierarchy until an acceptable component is found.
6531 Synchronize on tree lock.
6532 (getComponentBefore): Likewise.
6534 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
6536 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
6537 focus-related debugging messages.
6538 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
6539 * java/awt/EventDispatchThread.java: Likewise.
6540 * java/awt/KeyboardFocusManager.java: Likewise.
6541 * java/awt/Window.java: Likewise.
6542 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
6543 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6545 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
6546 new C++-style comments to C-style comments.
6547 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6549 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
6550 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6551 (handleEvent): Dispatch key press and key release events to
6553 (requestFocus): Post a FOCUS_GAINED event to the event queue.
6554 (gtkWidgetRequestFocus): New method.
6555 (gtkWidgetDispatchKeyEvent): Likewise.
6556 * java/awt/Component.java (requestFocus, requestFocus(boolean),
6557 requestFocusInWindow, requestFocusInWindow(boolean),
6558 getFocusCycleRootAncestor, nextFocus, transferFocus,
6559 transferFocusBackward, transferFocusUpCycle, hasFocus,
6560 isFocusOwner): Implement and document focus-handling methods.
6561 (setFocusTraversalKeys): Inherit focus traversal keys when
6562 keystrokes argument is null. Fix focus-handling documentation
6564 * java/awt/Container.java (setFocusTraversalKeys,
6565 getFocusTraversalKeys, areFocusTraversalKeysSet,
6566 isFocusCycleRoot, setFocusTraversalPolicy,
6567 getFocusTraversalPolicy, isFocusTraversalPolicySet,
6568 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
6569 Implement and document focus-handling methods.
6570 (transferFocusBackward): Remove method.
6571 (readObject, writeObject): Implement and document serialization
6573 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
6575 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
6577 * java/awt/DefaultKeyboardFocusManager.java: Implement and
6579 * java/awt/EventDispatchThread.java (run): Set default keyboard
6580 focus manager. Attempt to dispatch each event to the keyboard
6581 focus manager before normal dispatch.
6582 * java/awt/KeyboardFocusManager.java: Implement and partially
6584 * java/awt/Window.java (Window): Set focusCycleRoot to true.
6585 (show): Focus initial component when window is shown for the
6587 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6588 (pre_event_handler): Replace complex key press and key release
6589 logic with simple callbacks into GtkComponentPeer.
6590 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
6592 2004-04-21 Olga Rodimina <rodimina@redhat.com>
6594 * javax/swing/MenuSelectionManager.java
6595 (componentForPoint): Added new method.
6596 (defaultManager): New Method. Implemented.
6597 (getSelectedPath): Ditto.
6598 (isComponentPartOfCurrentMenu): Ditto.
6599 (processKeyEvent): Added new method.
6600 (processMouseEvent): New Method. Implemented.
6601 (setSelectedPath): Ditto.
6604 2004-04-19 Kim Ho <kho@redhat.com>
6606 * java/awt/Container.java:
6607 (remove): Set the component's parent to null.
6608 (getComponentAt): Implement.
6609 * javax/swing/JComponent.java:
6610 (JComponent): Initialize defaultLocale
6611 (getDefaultLocale): Implement.
6612 (setDefaultLocale): ditto.
6613 * javax/swing/JSlider.java:
6614 (JSlider): Fix calculation of value.
6615 * javax/swing/JSplitPane.java: Implement.
6616 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6617 Change SplitPane's default divider size.
6618 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6619 (paint): Remove unused code.
6620 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
6621 Added comments and ran through jalopy.
6622 (setBasicSplitPaneUI): Get reference to hidden divider
6623 and set up one touch buttons if necessary.
6624 (setBorder): Fire propertyChangeEvent only if
6625 borders are different.
6626 (getPreferredSize): Defer to layout manager.
6627 (propertyChange): Implement.
6628 (oneTouchExpandableChanged): ditto.
6629 (createLeftOneTouchButton): Use BasicArrowButton.
6630 (createRightOneTouchButton): ditto.
6631 (moveDividerTo): New method. Moves the divider
6632 to a set location based on the last divider location.
6633 (BasicSplitPaneDivider::MouseHandler): Implement.
6634 (BasicSplitPaneDivider::OneTouchButton): Removed.
6635 (BasicSplitPaneDivider::DragController): Implement.
6636 (BasicSplitPaneDivider::VerticalDragController):
6638 (BasicSplitPaneDivider::DividerLayout): ditto.
6639 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
6640 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
6641 (calculateLayoutInfo): Don't show component if it's
6643 (paintTab): Fix title paint logic.
6645 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
6648 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
6649 (setStartRule,setEndRule): Don't take abs of day number.
6650 (getOffset): Clarify docs. Add argument checks.
6651 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
6652 (equals,hasSameRules,toString,readObject): Use startTimeMode and
6654 * testsuite/libjava.mauve/xfails
6655 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
6657 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
6659 Layout interfaces during preparation, not initialization.
6660 * java/lang/natClass.cc (initializeClass): Move
6661 _Jv_LayoutInterfaceMethods call...
6662 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
6664 2004-05-19 Anthony Green <green@localhost.localdomain>
6666 * Makefile.am (awt_java_source_files): Remove javax.rmi and
6668 * Makefile.in: Rebuilt.
6669 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
6670 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
6671 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
6672 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
6673 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
6674 gnu/javax/rmi/CORBA/DelegateFactory.java,
6675 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
6676 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
6677 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
6678 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
6679 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
6680 gnu/javax/rmi/PortableServer.java: Remove files.
6682 2004-05-19 Anthony Green <green@redhat.com>
6684 * Makefile.am: Define JAVA_EXT_DIRS.
6685 * Makefile.in: Rebuilt.
6686 * java/lang/natRuntime.cc (insertSystemProperties): Set
6687 java.ext.dirs property.
6689 2004-05-16 Mark Wielaard <mark@klomp.org>
6691 * java/io/Writer.java (Writer(Object)): Check for null lock object.
6693 2004-05-15 Mark Wielaard <mark@klomp.org>
6695 * doc/cni.sgml: Removed, merged into gcj.texi.
6697 2004-05-15 Mark Wielaard <mark@klomp.org>
6699 * Makefile.am (ordinary_java_source_files): Add new javax.print
6701 * Makefile.in: Regenerated.
6703 2004-05-15 Michael Koch <konqueror@gmx.de>
6705 * javax/print/attribute/standard/DateTimeAtCompleted.java,
6706 javax/print/attribute/standard/DateTimeAtCreation.java,
6707 javax/print/attribute/standard/DateTimeAtProcessing.java,
6708 javax/print/attribute/standard/DocumentName.java,
6709 javax/print/attribute/standard/JobHoldUntil.java,
6710 javax/print/attribute/standard/JobImpressionsCompleted.java,
6711 javax/print/attribute/standard/JobMessageFromOperator.java,
6712 javax/print/attribute/standard/JobName.java,
6713 javax/print/attribute/standard/JobOriginatingUserName.java,
6714 javax/print/attribute/standard/JobPriority.java,
6715 javax/print/attribute/standard/JobPrioritySupported.java,
6716 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6717 javax/print/attribute/standard/OutputDeviceAssigned.java,
6718 javax/print/attribute/standard/PrinterInfo.java,
6719 javax/print/attribute/standard/PrinterLocation.java,
6720 javax/print/attribute/standard/PrinterMakeAndModel.java,
6721 javax/print/attribute/standard/PrinterMessageFromOperator.java,
6722 javax/print/attribute/standard/PrinterName.java,
6723 javax/print/attribute/standard/QueuedJobCount.java,
6724 javax/print/attribute/standard/RequestingUserName.java:
6725 Fixed javadocs all over.
6727 2004-05-15 Michael Koch <konqueror@gmx.de>
6729 * javax/print/DocFlavor.java,
6730 javax/print/attribute/standard/ColorSupported.java,
6731 javax/print/attribute/standard/Compression.java,
6732 javax/print/attribute/standard/CopiesSupported.java,
6733 javax/print/attribute/standard/Fidelity.java,
6734 javax/print/attribute/standard/Finishings.java,
6735 javax/print/attribute/standard/JobImpressionsSupported.java,
6736 javax/print/attribute/standard/JobKOctetsSupported.java,
6737 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6738 javax/print/attribute/standard/JobSheets.java,
6739 javax/print/attribute/standard/JobState.java,
6740 javax/print/attribute/standard/JobStateReason.java,
6741 javax/print/attribute/standard/JobStateReasons.java,
6742 javax/print/attribute/standard/Media.java,
6743 javax/print/attribute/standard/MediaSizeName.java,
6744 javax/print/attribute/standard/MultipleDocumentHandling.java,
6745 javax/print/attribute/standard/NumberUpSupported.java,
6746 javax/print/attribute/standard/OrientationRequested.java,
6747 javax/print/attribute/standard/PDLOverrideSupported.java,
6748 javax/print/attribute/standard/PageRanges.java,
6749 javax/print/attribute/standard/PresentationDirection.java,
6750 javax/print/attribute/standard/PrintQuality.java,
6751 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6752 javax/print/attribute/standard/PrinterMoreInfo.java,
6753 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6754 javax/print/attribute/standard/PrinterResolution.java,
6755 javax/print/attribute/standard/PrinterState.java,
6756 javax/print/attribute/standard/PrinterStateReason.java,
6757 javax/print/attribute/standard/PrinterStateReasons.java,
6758 javax/print/attribute/standard/PrinterURI.java,
6759 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6760 javax/print/attribute/standard/Severity.java,
6761 javax/print/attribute/standard/SheetCollate.java,
6762 javax/print/attribute/standard/Sides.java:
6763 Added serialVersionUID and removed final keyword where it doenst
6766 2004-05-15 Michael Koch <konqueror@gmx.de>
6768 * javax/print/PrintServiceLookup.java: New file.
6770 2004-05-15 Michael Koch <konqueror@gmx.de>
6772 * javax/print/DocFlavor.java:
6773 Implemented all flavor classes.
6775 2004-05-15 Michael Koch <konqueror@gmx.de>
6777 * javax/print/attribute/standard/ColorSupported.java,
6778 javax/print/attribute/standard/Compression.java,
6779 javax/print/attribute/standard/CopiesSupported.java,
6780 javax/print/attribute/standard/Fidelity.java,
6781 javax/print/attribute/standard/Finishings.java,
6782 javax/print/attribute/standard/JobImpressionsSupported.java,
6783 javax/print/attribute/standard/JobKOctetsSupported.java,
6784 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6785 javax/print/attribute/standard/JobSheets.java,
6786 javax/print/attribute/standard/JobState.java,
6787 javax/print/attribute/standard/JobStateReason.java,
6788 javax/print/attribute/standard/JobStateReasons.java,
6789 javax/print/attribute/standard/Media.java,
6790 javax/print/attribute/standard/MediaSizeName.java,
6791 javax/print/attribute/standard/MultipleDocumentHandling.java,
6792 javax/print/attribute/standard/NumberUpSupported.java,
6793 javax/print/attribute/standard/OrientationRequested.java,
6794 javax/print/attribute/standard/PDLOverrideSupported.java,
6795 javax/print/attribute/standard/PageRanges.java,
6796 javax/print/attribute/standard/PresentationDirection.java,
6797 javax/print/attribute/standard/PrintQuality.java,
6798 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6799 javax/print/attribute/standard/PrinterMoreInfo.java,
6800 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6801 javax/print/attribute/standard/PrinterResolution.java,
6802 javax/print/attribute/standard/PrinterState.java,
6803 javax/print/attribute/standard/PrinterStateReason.java,
6804 javax/print/attribute/standard/PrinterStateReasons.java,
6805 javax/print/attribute/standard/PrinterURI.java,
6806 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6807 javax/print/attribute/standard/Severity.java,
6808 javax/print/attribute/standard/SheetCollate.java,
6809 javax/print/attribute/standard/Sides.java: New files.
6811 2004-05-15 Michael Koch <konqueror@gmx.de>
6813 * javax/print/Doc.java
6814 (getPrintData): Throws IOException.
6815 (getReaderForText): Likewise.
6816 (getStreamForBytes): Likewise.
6817 * javax/print/DocFlavor.java:
6818 Fixed filename in copyright.
6819 (serialVersionUID): New field.
6820 * javax/print/ServiceUIFactory.java:
6821 Made all constants final.
6822 * javax/print/AttributeException.java
6823 javax/print/MultiDoc.java
6824 javax/print/MultiDocPrintJob.java
6825 javax/print/MultiDocPrintService.java
6826 javax/print/StreamPrintService.java
6827 javax/print/URIException.java: New files.
6828 * javax/print/Makefile.am
6829 (EXTRA_DIST): Added all new files.
6831 2004-05-15 Michael Koch <konqueror@gmx.de>
6833 * javax/print/attribute/standard/Copies.java,
6834 javax/print/attribute/standard/DateTimeAtCompleted.java,
6835 javax/print/attribute/standard/DateTimeAtCreation.java,
6836 javax/print/attribute/standard/DateTimeAtProcessing.java,
6837 javax/print/attribute/standard/DocumentName.java,
6838 javax/print/attribute/standard/JobHoldUntil.java,
6839 javax/print/attribute/standard/JobImpressions.java,
6840 javax/print/attribute/standard/JobImpressionsCompleted.java,
6841 javax/print/attribute/standard/JobKOctets.java,
6842 javax/print/attribute/standard/JobKOctetsProcessed.java,
6843 javax/print/attribute/standard/JobMediaSheets.java,
6844 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
6845 javax/print/attribute/standard/JobMessageFromOperator.java,
6846 javax/print/attribute/standard/JobName.java,
6847 javax/print/attribute/standard/JobOriginatingUserName.java,
6848 javax/print/attribute/standard/JobPriority.java,
6849 javax/print/attribute/standard/JobPrioritySupported.java,
6850 javax/print/attribute/standard/NumberOfDocuments.java,
6851 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6852 javax/print/attribute/standard/NumberUp.java,
6853 javax/print/attribute/standard/OutputDeviceAssigned.java,
6854 javax/print/attribute/standard/PagesPerMinute.java,
6855 javax/print/attribute/standard/PagesPerMinuteColor.java:
6856 Fixed @return tag all over.
6858 2004-05-15 Michael Koch <konqueror@gmx.de>
6860 * javax/print/attribute/AttributeSetUtilities.java
6861 (verifyCategoryForValue): Fixed typo in javadoc.
6862 * javax/print/attribute/HashAttributeSet.java
6863 (containsKey): Fixed @return tag.
6864 (comtainsValue): Likewise.
6866 * javax/print/attribute/IntegerSyntax.java
6868 * javax/print/attribute/ResolutionSyntax.java
6870 (getCrossFeedResolution): Removed unused code.
6871 (getFeedResolution): Likewise.
6872 * javax/print/attribute/SetOfIntegerSyntax.java
6873 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
6874 (equals): Fixed @return tag.
6875 * javax/print/attribute/TextSyntax.java
6876 (TextSyntax): Take locale into account.
6877 (hashCode): Better implementation.
6879 2004-05-15 Michael Koch <konqueror@gmx.de>
6881 * javax/print/CancelablePrintJob.java,
6882 javax/print/Doc.java,
6883 javax/print/DocFlavor.java,
6884 javax/print/DocPrintJob.java,
6885 javax/print/FlavorException.java,
6886 javax/print/PrintException.java,
6887 javax/print/PrintService.java,
6888 javax/print/ServiceUIFactory.java: New files.
6890 2004-05-15 Mark Wielaard <mark@klomp.org>
6892 * gnu/regexp/CharIndexedReader.java: Removed.
6893 * gnu/regexp/REFilterReader.java: Likewise.
6894 * gnu/regexp/RETokenLookAhead.java: Likewise.
6895 * Makefile.am (ordinary_java_source_files): Remove above classes.
6896 * Makefile.in: Regenerated.
6898 2004-05-14 Tom Tromey <tromey@redhat.com>
6900 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
6901 not `XGraphicsConfiguration.XOffScreenImage'.
6903 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
6905 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
6907 2004-05-14 Steven Augart <augart@watson.ibm.com>
6909 * include/jni.h (_Jv_func): Removed.
6910 (struct JNINativeInterface): Use `void *' for reserved slots.
6911 (struct JNIInvokeInterface): Likewise.
6913 2004-05-11 Michael Koch <konqueror@gmx.de>
6915 * gnu/java/net/natPlainSocketImplPosix.cc
6916 (read): Fixed typo in expression.
6918 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
6920 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
6921 ld_library_additions. Adjust all calls to libjava_invoke to match
6924 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
6925 path to cxxflagslist.
6926 Pass path of libstdc++ to libjava_invoke.
6928 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
6929 libjava_invoke arguments.
6931 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
6933 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
6936 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
6938 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
6939 main binary against the JNI shared library.
6941 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6943 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
6944 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
6945 (SimpleTimeZone): Tweak docs. Add new variation.
6946 (setStartRule,setEndRule): Add new variations. Use
6947 startTimeMode and endTimeMode.
6949 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6951 * java/util/Calendar.java (getActualMinimum,
6952 getActualMaximum): Remove abstract. Implement.
6954 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6956 Run the jni tests using the interpreter.
6957 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
6958 options_cxx to shared lib compile command.
6959 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
6960 they are used to link the shared lib, not the main binary.
6961 Use libjava_invoke to run gij.
6963 2004-05-06 Michael Koch <konqueror@gmx.de>
6965 * java/util/logging/Level.java
6966 (parse): Use == instead of String.equals().
6968 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6970 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
6971 verify_field_signature and verify_method_signature, not
6972 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
6973 (_Jv_ClassReader::handleField): Likewise.
6974 (_Jv_ClassReader::handleMethod): Likewise.
6976 2004-05-06 Michael Koch <konqueror@gmx.de>
6978 * javax/swing/table/TableColumn.java:
6981 2004-05-06 Michael Koch <konqueror@gmx.de>
6983 * javax/imageio/spi/ImageReaderWriterSpi.java
6984 (ImageReaderWriterSpi): Made it public.
6985 * javax/imageio/stream/ImageInputStream.java:
6988 2004-05-06 Michael Koch <konqueror@gmx.de>
6990 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6993 2004-05-06 Michael Koch <konqueror@gmx.de>
6995 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
6996 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
6998 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
6999 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
7000 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
7001 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
7002 their own source file.
7003 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7004 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
7005 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
7006 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
7007 (create): Define variable on top of function.
7008 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
7009 (menu_pos): Prototyped.
7010 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7011 (setTitle): Removed.
7012 * jni/gtk-peer/gthread-jni.c
7013 (gdk_threads_wake): Removed.
7014 * Makefile.am (gtk_c_source_files): Added new files
7015 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
7016 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
7017 * Makefile.in: Regenerated.
7019 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
7021 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
7024 2004-05-05 Mark Wielaard <mark@klomp.org>
7026 * javax/swing/AbstractButton.java: Replace special HTML entities with
7028 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
7029 * javax/swing/DefaultButtonModel.java: Likewise.
7030 * javax/swing/DefaultListModel.java: Likewise.
7031 * javax/swing/JList.java: Likewise.
7032 * javax/swing/JSlider.java: Likewise.
7033 * javax/swing/ListModel.java: Likewise.
7034 * javax/swing/Popup.java: Likewise.
7035 * javax/swing/SwingUtilities.java: Likewise.
7037 2004-05-05 Michael Koch <konqueror@gmx.de>
7039 * javax/swing/AbstractButton.java,
7040 javax/swing/ActionMap.java,
7041 javax/swing/DefaultButtonModel.java,
7042 javax/swing/DefaultListModel.java,
7043 javax/swing/ImageIcon.java,
7044 javax/swing/JComboBox.java,
7045 javax/swing/JComponent.java,
7046 javax/swing/JFrame.java,
7047 javax/swing/JInternalFrame.java,
7048 javax/swing/JMenuBar.java,
7049 javax/swing/JMenuItem.java,
7050 javax/swing/JOptionPane.java,
7051 javax/swing/JProgressBar.java,
7052 javax/swing/JRootPane.java,
7053 javax/swing/JScrollBar.java,
7054 javax/swing/JScrollPane.java,
7055 javax/swing/JSeparator.java,
7056 javax/swing/JSlider.java,
7057 javax/swing/JTabbedPane.java,
7058 javax/swing/JTable.java,
7059 javax/swing/JTextField.java,
7060 javax/swing/JToolBar.java,
7061 javax/swing/JToolTip.java,
7062 javax/swing/JTree.java,
7063 javax/swing/JViewport.java,
7064 javax/swing/JWindow.java,
7065 javax/swing/KeyStroke.java,
7066 javax/swing/LookAndFeel.java,
7067 javax/swing/SwingUtilities.java,
7068 javax/swing/Timer.java,
7069 javax/swing/ToolTipManager.java,
7070 javax/swing/UIDefaults.java,
7071 javax/swing/border/TitledBorder.java,
7072 javax/swing/filechooser/FileSystemView.java,
7073 javax/swing/plaf/basic/BasicButtonListener.java,
7074 javax/swing/plaf/basic/BasicButtonUI.java,
7075 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
7076 javax/swing/plaf/basic/BasicGraphicsUtils.java,
7077 javax/swing/plaf/basic/BasicLabelUI.java,
7078 javax/swing/plaf/basic/BasicMenuItemUI.java,
7079 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
7080 javax/swing/plaf/basic/BasicRootPaneUI.java,
7081 javax/swing/plaf/basic/BasicScrollBarUI.java,
7082 javax/swing/plaf/basic/BasicScrollPaneUI.java,
7083 javax/swing/plaf/basic/BasicSliderUI.java,
7084 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
7085 javax/swing/plaf/basic/BasicToggleButtonUI.java,
7086 javax/swing/table/JTableHeader.java,
7087 javax/swing/text/AbstractDocument.java,
7088 javax/swing/text/DefaultCaret.java,
7089 javax/swing/text/StyledEditorKit.java,
7090 javax/swing/tree/DefaultTreeCellEditor.java:
7093 2004-05-05 Michael Koch <konqueror@gmx.de>
7095 * java/util/prefs/AbstractPreferences.java
7096 (AbstractPreferences): Added parenthesis for clarity.
7097 Closes classpath bug #7940.
7099 2004-05-05 Tom Tromey <tromey@redhat.com>
7101 * javax/naming/CompoundName.java (endsWith): Look at correct
7102 element of source name.
7104 2004-05-05 Mark Wielaard <mark@klomp.org>
7106 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
7107 * java/util/HashMap.java (rehash): Add entry at start of bucket.
7109 2004-05-05 Tom Tromey <tromey@redhat.com>
7111 * java/io/BufferedReader.java (skip): Removed unused
7114 2004-05-05 Michael Koch <konqueror@gmx.de>
7116 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
7118 2004-05-05 Dalibor Topic <robilad@kaffe.org>
7120 * java/text/AttributedString.java,
7121 java/text/AttributedStringIterator.java,
7122 java/text/Collator.java,
7123 java/text/DecimalFormatSymbols.java,
7124 java/text/NumberFormat.java,
7125 java/text/RuleBasedCollator.java:
7128 2004-05-05 Tom Tromey <tromey@redhat.com>
7130 * java/text/Format.java: Cleaned up imports.
7131 * java/text/DecimalFormat.java: Cleaned up imports.
7132 * java/security/SecureRandom.java: Cleaned up imports.
7133 (SecureRandom): Removed unused variable.
7134 * java/security/UnresolvedPermission.java: Cleaned up imports.
7135 * java/util/Date.java (parse): Removed unused variable.
7136 * java/util/ResourceBundle.java: Cleaned up imports.
7137 (getBundle): Removed unused variable.
7138 (tryBundle): Likewise.
7139 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
7141 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7143 * java/text/SimpleDateFormat.java:
7144 (formatWithAttribute): New method. It implements
7145 the formatting process with attributes.
7146 (format): Use formatWithAttribute.
7147 (formatToCharacterIterator): New method. Use
7148 formatWithAttribute.
7150 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7152 * java/text/MessageFormat.java:
7153 (class Field): New class.
7154 (formatToCharacterIterator): New method.
7155 (format): Use formatInternal now.
7156 (formatInternal): New method. String formatter should
7157 be done here (with attributes). Attributes merging supported.
7158 (parse): More documentation.
7159 (getFormatsByArgumentIndex): New method.
7160 (setFormatByArgumentIndex): New method.
7161 (setFormatsByArgumentIndex): New method.
7163 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7165 * java/text/DecimalFormat.java
7166 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
7167 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
7168 (parse): Fixed handling of exponentiation notation and grouping.
7170 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7172 * java/text/DecimalFormat.java
7173 (scanFix): Build attribute array. Fixed error reporting.
7174 (applyPatternWithSymbols): Store attributes for the prefix and
7176 (formatInternal): New method. Changed the way the string is
7177 computed. Implemented attributes. Cleant up rounding in
7178 exponential notation.
7179 (format): Use formatInternal.
7180 (formatToCharacterIterator): New method.
7181 (exponentRound, negativePrefixRanges, positivePrefixRanges,
7182 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
7183 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
7186 2004-05-04 Dalibor Topic <robilad@kaffe.org>
7188 * java/security/interfaces/DSAKeyPairGenerator.java,
7189 java/security/interfaces/DSAPrivateKey.java,
7190 java/security/interfaces/DSAPublicKey.java,
7191 java/security/interfaces/RSAPrivateKey.java,
7192 java/security/interfaces/RSAPublicKey.java:
7195 2004-05-04 Michael Koch <konqueror@gmx.de>
7197 * java/nio/ByteBuffer.java,
7198 java/nio/CharBuffer.java,
7199 java/nio/DoubleBuffer.java,
7200 java/nio/FloatBuffer.java,
7201 java/nio/IntBuffer.java,
7202 java/nio/LongBuffer.java,
7203 java/nio/ShortBuffer.java:
7204 (compareTo): Fixed bogus implementation in all buffer classes.
7206 2004-05-04 Ingo Proetel <proetel@aicas.com>
7208 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
7209 32 bit pixels not 8 bit pixels.
7210 (isCompatibleRaster): Added javadoc comment.
7212 2004-05-04 Ingo Proetel <proetel@aicas.com>
7214 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
7217 2004-05-04 Ingo Proetel <proetel@aicas.com>
7219 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
7220 (getColorModel): Return the actual color model.
7221 (getRaster): Implemented.
7222 (ColorRaster): New inner class.
7223 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
7225 * java/awt/Color.java (<init>): Make exception more verbose.
7226 (createContext): Use ColorModel when creating a PaintContext.
7228 2004-05-04 Michael Koch <konqueror@gmx.de>
7230 * gnu/java/text/CharacterBreakIterator.java
7231 (previous): Removed unused variable.
7233 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
7235 * gnu/java/text/FormatBuffer.java,
7236 gnu/java/text/AttributedFormatBuffer.java,
7237 gnu/java/text/StringFormatBuffer.java: New classes to implement
7238 attributed iterators in java.text.
7239 * gnu/java/text/FormatCharacterIterator.java: Moved
7240 from java/text as it is an internal class.
7241 * java/text/FormatCharacterIterator.java: Removed.
7242 * java/text/Format.java:
7243 Import gnu.java.text.FormatCharacterIterator.
7244 * Makefile.am (java_source_files): Added new files.
7245 * Makefile.in: Regenerated.
7248 2004-05-04 Mark Wielaard <mark@klomp.org>
7250 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
7252 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
7254 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
7255 * Makefile.in: Rebuilt.
7257 2004-05-03 Mark Wielaard <mark@klomp.org>
7259 * gnu/java/security/der/DERReader.java: Call static methods staticly.
7260 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
7262 (set(String, String, int, String, String, String, String, String)):
7263 Assign this.file to path or path + "?" + query.
7264 * java/util/Arrays.java: Call static methods staticly.
7265 * java/util/zip/ZipEntry.java: Likewise.
7266 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
7267 dir to this.direction.
7268 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
7269 Assign static field only once.
7270 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
7272 2004-05-03 Mark Wielaard <mark@klomp.org>
7274 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
7275 unused variables hScrollbarHeight and vScrollbarWidth.
7276 (preferredSize): Likewise.
7277 * gnu/java/security/provider/DSAParameters.java (engineToString):
7278 Removed unused call to System.getProperty("line.seperator");
7279 * java/security/Security.java (loadProviders): Return result.
7281 2004-05-03 Tom Tromey <tromey@redhat.com>
7283 * java/net/URLStreamHandler.java (toExternalForm): Removed
7286 * java/math/BigDecimal.java (divide): Removed unused variable.
7287 * java/lang/Throwable.java: Cleaned up imports.
7288 * java/lang/ClassLoader.java: Cleaned up imports.
7289 * java/io/FilePermission.java (implies): Removed unused
7291 * java/awt/TextComponent.java: Removed unused import.
7292 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
7293 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
7294 * gnu/java/text/WordBreakIterator.java: Removed unused import.
7295 * gnu/java/text/SentenceBreakIterator.java: Removed unused
7297 * gnu/java/text/LineBreakIterator.java: Removed unused import.
7298 * gnu/java/text/CharacterBreakIterator.java: Removed
7300 * gnu/java/security/provider/DSAKeyPairGenerator.java:
7302 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
7303 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
7305 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
7306 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
7307 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
7308 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
7309 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
7310 (lookupProviders): Removed unused variable.
7311 (loadNextServiceProvider): Likewise.
7312 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
7314 2004-05-03 Michael Koch <konqueror@gmx.de>
7316 Fixes PR libgcj/14695:
7317 * java/net/NetworkInterface.java
7318 (getByName): Return null when no interface was found.
7320 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
7321 Tom Tromey <tromey@redhat.com>
7323 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
7324 additional option "-Wmissing-prototypes" for compiling C sources.
7325 Print actual filename for pass/fail rather than $name.c.
7326 * testsuite/libjava.jni/PR15133.java: New testcase file.
7327 * testsuite/libjava.jni/PR15133.c: Likewise.
7328 * testsuite/libjava.jni/PR15133.out: Likewise.
7330 2004-04-30 Roger Sayle <roger@eyesopen.com>
7332 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
7335 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
7337 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
7338 limit the maximum heap size to avoid unnecessary thrashing.
7340 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
7342 * java/text/CollationElementIterator.java (reset): Reset
7343 lookahead variables.
7345 2004-04-23 Mark Wielaard <mark@klomp.org>
7347 * jni/classpath/jcl.c: Changed C++ comments into C comments.
7349 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7351 * java/sql/DriverManager.java:
7354 2004-04-23 Michael Koch <konqueror@gmx.de>
7357 (hashcode): Don't initialize with default value explicitely.
7358 (getContent): Removed redundant "final" keyword.
7359 (openStream): Likewise.
7360 (getURLStreamHandler): Fixed coding style.
7361 * java/net/URLConnection.java
7362 (defaultAllowUserInteraction): Don't initialize with default value
7364 (connected): Likewise.
7365 (doOutput): Likewise.
7366 (ifModifiedSince): Likewise.
7367 (dateformats_initialized): Likewise.
7368 (setURLStreamHander): Use StreamTokenizer where it belongs to.
7370 2004-04-23 Michael Koch <konqueror@gmx.de>
7372 * gnu/java/nio/channels/FileChannelImpl.java
7373 (SET, CUR): Unused, removed.
7374 (read): Implement here directly.
7375 (implRead): Removed.
7376 (write): Implement here directly.
7377 (implWrite): Removed.
7379 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7381 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
7382 javax/rmi/CORBA/Stub.java,
7383 javax/rmi/CORBA/Util.java,
7384 javax/rmi/CORBA/ValueHandler.java,
7385 javax/rmi/CORBA/ValueHandler.java,
7386 javax/rmi/PortableRemoteObject.java:
7389 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7391 * java/util/jar/JarFile.java,
7392 java/util/jar/JarInputStream.java,
7393 java/util/jar/JarOutputStream.java,
7394 java/util/jar/Manifest.java:
7397 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7399 * java/util/ArrayList.java,
7400 java/util/Calendar.java,
7401 java/util/Currency.java,
7402 java/util/HashMap.java,
7403 java/util/HashSet.java,
7404 java/util/Hashtable.java,
7405 java/util/LinkedList.java,
7406 java/util/Properties.java,
7407 java/util/PropertyPermission.java,
7408 java/util/TimeZone.java,
7409 java/util/TreeMap.java,
7410 java/util/TreeSet.java,
7411 java/util/Vector.java,
7412 java/util/WeakHashMap.java:
7415 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7417 * java/util/logging/FileHandler.java,
7418 java/util/logging/Formatter.java,
7419 java/util/logging/Handler.java,
7420 java/util/logging/Logger.java,
7421 java/util/logging/SimpleFormatter.java,
7422 java/util/logging/XMLFormatter.java:
7425 2004-04-22 Mark Wielaard <mark@klomp.org>
7427 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
7428 -Wno-long-long flags variable.
7429 (gtk_c_files): Use PEDANTIC_CFLAGS.
7430 * Makefile.in: Regenerated.
7432 2004-04-22 Mark Wielaard <mark@klomp.org>
7434 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7435 Changed C++ comments into C comments.
7436 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
7439 2004-04-22 Michael Koch <konqueror@gmx.de>
7441 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
7442 Merged copyright year with GNU classpath.
7444 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7446 * javax/security/auth/x500/X500Principal.java:
7449 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7451 * javax/swing/JSlider.java:
7452 Fixed HTML tags in comments.
7454 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7456 * javax/accessibility/AccessibleText.java:
7459 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
7461 * java/net/URLStreamHandler.java
7462 (parseURL): Convert the file path to using '/' instead of native
7465 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
7468 (userInfo): New field.
7469 (URL): Set authority to the right value.
7470 (setURL): Fixed authority and file initialization.
7471 * java/net/URLStreamHandler.java
7472 (parseURL): Take care of the query tag. Build authority.
7473 (toExternalForm): Fixed URL building using authority.
7475 2004-04-22 Michael Koch <konqueror@gmx.de>
7477 * java/net/Socket.java
7478 (impl): Made package-private.
7479 * java/net/ServerSocket.java
7480 (implAccept): Access Socket.impl field directly.
7482 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7484 * java/util/prefs/Preferences.java,
7485 java/util/prefs/InvalidPreferencesFormatException.java,
7486 java/util/prefs/BackingStoreException.java,
7487 java/util/prefs/AbstractPreferences.java:
7490 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7492 * java/util/regex/Matcher.java,
7493 java/util/regex/Pattern.java:
7496 2004-04-22 Michael Koch <konqueror@gmx.de>
7498 * java/nio/charset/IllegalCharsetNameException.java
7499 (charsetName): Made private.
7500 (IllegalCharsetNameException): Added @param tag to javadoc.
7501 (getCharsetName): Added @return tag to javadoc.
7502 * java/nio/charset/MalformedInputException.java
7503 (MalformedInputException): Added @param tag to javadoc.
7504 (getInputLength): Revised method description, added @return tag.
7505 (getMessage): Added @return tag.
7507 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
7509 * java/awt/Font.java (deriveFont): Implement missing variants.
7510 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
7513 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
7515 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
7516 Set method->index values for interface methods to their itable index.
7517 (initializeClass): Call _Jv_LayoutInterfaceMethods.
7519 2004-04-21 Michael Koch <konqueror@gmx.de>
7521 * java/nio/DirectByteBufferImpl.java
7522 (shiftDown): Made static, give address as argument and
7523 provide a convenience method that overwrites shiftDown in
7524 ByteBufferImpl and calls the native shiftDown.
7525 * java/nio/MappedByteBufferImpl.java
7526 (): Use optimized method in DirectByteBufferImpl.
7527 * java/nio/natDirectByteBufferImpl.cc
7528 (shiftDown): Changed method signature. Removed usage of array_offset.
7530 2004-04-21 Michael Koch <konqueror@gmx.de>
7532 * gnu/java/net/natPlainSocketImplPosix.cc
7533 (SocketInputStream::read): Make sure returned data is a byte value.
7535 2004-04-21 Michael Koch <konqueror@gmx.de>
7537 * gnu/classpath/ServiceFactory.java,
7538 gnu/classpath/ServiceProviderLoadingAction.java,
7539 javax/imageio/ImageReader.java,
7540 javax/imageio/ImageTranscoder.java,
7541 javax/imageio/ImageWriter.java,
7542 javax/imageio/package.html,
7543 javax/imageio/spi/IIOServiceProvider.java,
7544 javax/imageio/spi/ImageInputStreamSpi.java,
7545 javax/imageio/spi/ImageOutputStreamSpi.java,
7546 javax/imageio/spi/ImageReaderWriterSpi.java,
7547 javax/imageio/spi/ImageTranscoderSpi.java,
7548 javax/imageio/spi/RegisterableService.java,
7549 javax/imageio/spi/ServiceRegistry.java,
7550 javax/imageio/spi/package.html,
7551 javax/imageio/stream/IIOByteBuffer.java,
7552 javax/imageio/stream/ImageInputStream.java,
7553 javax/imageio/stream/ImageOutputStream.java,
7554 javax/imageio/stream/package.html:
7557 (ordinary_java_source_files): Added
7558 gnu/classpath/ServiceFactory.java and
7559 gnu/classpath/ServiceProviderLoadingAction.java.
7560 (javax_source_files): Added
7561 javax/imageio/ImageReader.java,
7562 javax/imageio/ImageTranscoder.java,
7563 javax/imageio/ImageWriter.java,
7564 javax/imageio/spi/IIOServiceProvider.java,
7565 javax/imageio/spi/ImageInputStreamSpi.java,
7566 javax/imageio/spi/ImageOutputStreamSpi.java,
7567 javax/imageio/spi/ImageReaderWriterSpi.java,
7568 javax/imageio/spi/ImageTranscoderSpi.java,
7569 javax/imageio/spi/RegisterableService.java,
7570 javax/imageio/spi/ServiceRegistry.java,
7571 javax/imageio/stream/IIOByteBuffer.java,
7572 javax/imageio/stream/ImageInputStream.java and
7573 javax/imageio/stream/ImageOutputStream.java.
7574 * Makefile.in: Regenerated.
7576 2004-04-21 Michael Koch <konqueror@gmx.de>
7578 * java/util/Properties.java
7579 (load): Fix wrongly merged fix.
7581 2004-04-21 Mark Wielaard <mark@klomp.org>
7583 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
7584 malloc and free buf.
7586 2004-04-21 Dalibor Topic <robilad@kaffe.org>
7588 * javax/naming/AuthenticationException.java,
7589 javax/naming/AuthenticationNotSupportedException.java,
7590 javax/naming/CannotProceedException.java,
7591 javax/naming/CommunicationException.java,
7592 javax/naming/CompoundName.java,
7593 javax/naming/ConfigurationException.java,
7594 javax/naming/ContextNotEmptyException.java,
7595 javax/naming/InitialContext.java,
7596 javax/naming/InsufficientResourcesException.java,
7597 javax/naming/InterruptedNamingException.java,
7598 javax/naming/LimitExceededException.java,
7599 javax/naming/LinkException.java,
7600 javax/naming/LinkLoopException.java,
7601 javax/naming/LinkRef.java,
7602 javax/naming/MalformedLinkException.java,
7603 javax/naming/Name.java,
7604 javax/naming/NameAlreadyBoundException.java,
7605 javax/naming/NameNotFoundException.java,
7606 javax/naming/NamingSecurityException.java,
7607 javax/naming/NoInitialContextException.java,
7608 javax/naming/NoPermissionException.java,
7609 javax/naming/NotContextException.java,
7610 javax/naming/PartialResultException.java,
7611 javax/naming/ReferralException.java,
7612 javax/naming/ServiceUnavailableException.java,
7613 javax/naming/SizeLimitExceededException.java,
7614 javax/naming/TimeLimitExceededException.java,
7615 javax/naming/directory/Attribute.java,
7616 javax/naming/directory/Attributes.java,
7617 javax/naming/directory/SearchResult.java,
7618 javax/naming/event/NamingExceptionEvent.java,
7619 javax/naming/spi/ResolveResult.java:
7622 2004-04-21 Mark Wielaard <mark@klomp.org>
7624 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
7625 Changed C++ comments into C comments. Removed commented out code.
7626 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7628 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
7630 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
7632 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
7634 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
7636 * native/jni/gtk-peer/gthread-jni.c:
7639 2004-04-21 Mark Wielaard <mark@klomp.org>
7641 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
7642 static fields defined in interface.
7643 * javax/awt/JDialog.java: Likewise.
7644 (JDialog): Make constructors public.
7645 (getDefaultCloseOperation): Make public.
7646 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
7647 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
7648 * javax/swing/JViewport.java (JViewport): Make constructor public.
7650 2004-04-21 Michael Koch <konqueror@gmx.de>
7652 * java/util/Map.java
7653 (Entry): Removed redundant "static" modifier.
7654 * java/text/AttributedCharacterIterator.java:
7655 Updated copyright year.
7657 2004-04-20 Michael Koch <konqueror@gmx.de>
7659 * javax/naming/directory/SearchControls.java:
7660 Don't explicitely extend java.lang.Object.
7661 * javax/naming/spi/DirStateFactory.java:
7662 Merged copyright year with GNU classpath.
7664 2004-04-20 Michael Koch <konqueror@gmx.de>
7666 * java/nio/channels/Channels.java:
7667 Merged coding style with GNU classpath.
7669 2004-04-20 Michael Koch <konqueror@gmx.de>
7671 * java/net/ServerSocket.java
7672 Merged coding style from GNU classpath.
7674 2004-04-20 Michael Koch <konqueror@gmx.de>
7676 * java/io/BufferedWriter.java:
7677 Reordered variables to be at top of the class.
7678 (localFlush): Removed redundant final keyword.
7680 2004-04-20 Ingo Proetel <proetel@aicas.com>
7682 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
7684 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7686 * java/text/DecimalFormat.java (scanFix): Removed suffix check
7687 for percent and permill check.
7689 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7691 * java/text/FieldPosition.java
7692 (FieldPosition) Constructor now behaves as it should according
7693 to the java documentation.
7695 2004-04-20 Mark Wielaard <mark@klomp.org>
7697 * java/util/Properties.java: Use the word umlaut, not ä in api
7700 2004-04-20 Michael Koch <konqueror@gmx.de>
7702 * java/nio/Buffer.java,
7703 java/nio/channels/AlreadyConnectedException.java,
7704 java/nio/channels/AsynchronousCloseException.java,
7705 java/nio/channels/ByteChannel.java,
7706 java/nio/channels/CancelledKeyException.java,
7707 java/nio/channels/Channel.java,
7708 java/nio/channels/Channels.java,
7709 java/nio/channels/ClosedByInterruptException.java,
7710 java/nio/channels/ClosedChannelException.java,
7711 java/nio/channels/ClosedSelectorException.java,
7712 java/nio/channels/ConnectionPendingException.java,
7713 java/nio/channels/DatagramChannel.java,
7714 java/nio/channels/FileChannel.java,
7715 java/nio/channels/FileLock.java,
7716 java/nio/channels/FileLockInterruptionException.java,
7717 java/nio/channels/GatheringByteChannel.java,
7718 java/nio/channels/IllegalBlockingModeException.java,
7719 java/nio/channels/IllegalSelectorException.java,
7720 java/nio/channels/InterruptibleChannel.java,
7721 java/nio/channels/NoConnectionPendingException.java,
7722 java/nio/channels/NonReadableChannelException.java,
7723 java/nio/channels/NonWritableChannelException.java,
7724 java/nio/channels/NotYetBoundException.java,
7725 java/nio/channels/NotYetConnectedException.java,
7726 java/nio/channels/OverlappingFileLockException.java,
7727 java/nio/channels/Pipe.java,
7728 java/nio/channels/ReadableByteChannel.java,
7729 java/nio/channels/ScatteringByteChannel.java,
7730 java/nio/channels/SelectableChannel.java,
7731 java/nio/channels/SelectionKey.java,
7732 java/nio/channels/Selector.java,
7733 java/nio/channels/ServerSocketChannel.java,
7734 java/nio/channels/SocketChannel.java,
7735 java/nio/channels/UnresolvedAddressException.java,
7736 java/nio/channels/UnsupportedAddressTypeException.java,
7737 java/nio/channels/WritableByteChannel.java,
7738 java/nio/channels/spi/AbstractInterruptibleChannel.java,
7739 java/nio/channels/spi/AbstractSelectableChannel.java,
7740 java/nio/channels/spi/AbstractSelectionKey.java,
7741 java/nio/channels/spi/AbstractSelector.java,
7742 java/nio/channels/spi/SelectorProvider.java,
7743 java/nio/charset/spi/CharsetProvider.java:
7744 Fixed javadocs and jalopied all over java.nio.
7746 2004-04-20 Michael Koch <konqueror@gmx.de>
7748 * java/nio/ByteBufferImpl.java,
7749 java/nio/CharBufferImpl.java,
7750 java/nio/DirectByteBufferImpl.java,
7751 java/nio/DoubleBufferImpl.java,
7752 java/nio/DoubleViewBufferImpl.java,
7753 java/nio/FloatBufferImpl.java,
7754 java/nio/FloatViewBufferImpl.java,
7755 java/nio/IntBufferImpl.java,
7756 java/nio/IntViewBufferImpl.java,
7757 java/nio/LongBufferImpl.java,
7758 java/nio/LongViewBufferImpl.java,
7759 java/nio/MappedByteBufferImpl.java,
7760 java/nio/ShortBufferImpl.java,
7761 java/nio/ShortViewBufferImpl.java:
7762 Made sure all classes are final and removed final keyword from all
7765 2004-04-20 Michael Koch <konqueror@gmx.de>
7767 * java/rmi/MarshalledObject.java,
7768 java/rmi/Naming.java,
7769 java/rmi/RemoteException.java,
7770 java/rmi/activation/ActivationException.java,
7771 java/rmi/server/ServerCloneException.java,
7772 java/security/AccessController.java,
7773 java/security/AlgorithmParameterGenerator.java,
7774 java/security/AlgorithmParameters.java,
7775 java/security/CodeSource.java,
7776 java/security/Identity.java,
7777 java/security/IdentityScope.java,
7778 java/security/KeyPairGenerator.java,
7779 java/security/KeyStore.java,
7780 java/security/Security.java,
7781 java/security/Signature.java,
7782 java/security/SignatureSpi.java,
7783 java/security/SignedObject.java,
7784 java/security/spec/DSAParameterSpec.java,
7785 java/security/spec/DSAPrivateKeySpec.java,
7786 java/security/spec/DSAPublicKeySpec.java,
7787 java/sql/Array.java,
7788 java/sql/DatabaseMetaData.java,
7789 java/sql/ResultSet.java,
7790 java/text/ChoiceFormat.java,
7791 java/text/CollationElementIterator.java,
7792 java/text/CollationKey.java,
7793 java/text/Collator.java,
7794 java/text/DateFormat.java,
7795 java/text/DateFormatSymbols.java,
7796 java/text/DecimalFormatSymbols.java,
7797 java/text/Format.java,
7798 java/text/ParsePosition.java,
7799 java/text/RuleBasedCollator.java,
7800 java/text/SimpleDateFormat.java,
7801 java/text/StringCharacterIterator.java,
7802 java/util/Collections.java,
7803 java/util/PropertyResourceBundle.java,
7804 java/util/ResourceBundle.java,
7805 java/util/StringTokenizer.java,
7806 java/util/jar/Attributes.java,
7807 java/util/logging/ConsoleHandler.java,
7808 java/util/logging/LogManager.java,
7809 java/util/logging/MemoryHandler.java,
7810 java/util/logging/SocketHandler.java,
7811 javax/naming/NamingException.java:
7812 Fixed javadoc, coding style and argument names all over.
7814 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7816 * java/io/FileDescriptor.java: (FileDescriptor) Added public
7817 constructor. (valid) Added null check.
7819 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7821 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
7822 * java/io/FileOutputStream.java
7823 (FileOutputStream) Reorganized constructors. Constructors now
7824 check whether the given path is directory.
7826 2004-04-20 Michael Koch <konqueror@gmx.de>
7828 * java/net/Authenticator.java,
7829 java/net/BindException.java,
7830 java/net/ConnectException.java,
7831 java/net/ContentHandler.java,
7832 java/net/ContentHandlerFactory.java,
7833 java/net/DatagramPacket.java,
7834 java/net/DatagramSocket.java,
7835 java/net/DatagramSocketImpl.java,
7836 java/net/DatagramSocketImplFactory.java,
7837 java/net/FileNameMap.java,
7838 java/net/HttpURLConnection.java,
7839 java/net/Inet4Address.java,
7840 java/net/Inet6Address.java,
7841 java/net/InetAddress.java,
7842 java/net/InetSocketAddress.java,
7843 java/net/JarURLConnection.java,
7844 java/net/MalformedURLException.java,
7845 java/net/MulticastSocket.java,
7846 java/net/NetPermission.java,
7847 java/net/NetworkInterface.java,
7848 java/net/NoRouteToHostException.java,
7849 java/net/PasswordAuthentication.java,
7850 java/net/PortUnreachableException.java,
7851 java/net/ProtocolException.java,
7852 java/net/ServerSocket.java,
7853 java/net/Socket.java,
7854 java/net/SocketAddress.java,
7855 java/net/SocketException.java,
7856 java/net/SocketImpl.java,
7857 java/net/SocketImplFactory.java,
7858 java/net/SocketOptions.java,
7859 java/net/SocketPermission.java,
7860 java/net/SocketTimeoutException.java,
7862 java/net/URISyntaxException.java,
7864 java/net/URLClassLoader.java,
7865 java/net/URLConnection.java,
7866 java/net/URLDecoder.java,
7867 java/net/URLEncoder.java,
7868 java/net/URLStreamHandler.java,
7869 java/net/URLStreamHandlerFactory.java,
7870 java/net/UnknownHostException.java,
7871 java/net/UnknownServiceException.java:
7872 Fixed javadocs, coding style and argument names all over.
7874 2004-04-20 Michael Koch <konqueror@gmx.de>
7876 * java/lang/Byte.java,
7877 java/lang/CharSequence.java,
7878 java/lang/ClassLoader.java,
7879 java/lang/Compiler.java,
7880 java/lang/Double.java,
7881 java/lang/Float.java,
7882 java/lang/Integer.java,
7883 java/lang/Long.java,
7884 java/lang/Math.java,
7885 java/lang/Number.java,
7886 java/lang/Package.java,
7887 java/lang/Runtime.java,
7888 java/lang/RuntimePermission.java,
7889 java/lang/SecurityManager.java,
7890 java/lang/Short.java,
7891 java/lang/StringBuffer.java,
7892 java/lang/System.java,
7893 java/lang/ThreadGroup.java,
7894 java/lang/Throwable.java,
7895 java/lang/reflect/InvocationHandler.java,
7896 java/lang/reflect/Proxy.java:
7897 Fixed javadocs, coding style and argument names all over.
7899 2004-04-20 Michael Koch <konqueror@gmx.de>
7901 * java/io/BufferedWriter.java,
7902 java/io/ByteArrayInputStream.java,
7903 java/io/CharArrayWriter.java,
7904 java/io/DataInput.java,
7905 java/io/DataInputStream.java,
7907 java/io/FilterInputStream.java,
7908 java/io/InputStream.java,
7909 java/io/InputStreamReader.java,
7910 java/io/ObjectInputStream.java,
7911 java/io/ObjectStreamClass.java,
7912 java/io/PipedInputStream.java,
7913 java/io/PipedReader.java,
7914 java/io/PushbackInputStream.java,
7915 java/io/PushbackReader.java,
7916 java/io/RandomAccessFile.java,
7917 java/io/SerializablePermission.java,
7918 java/io/StreamTokenizer.java,
7919 java/io/StringWriter.java,
7920 java/io/WriteAbortedException.java,
7921 java/io/Writer.java:
7922 Fixed javadocs all over, rename arguments to match javadocs,
7925 2004-04-20 Ingo Proetel <proetel@aicas.com>
7927 * java/awt/FontMetrics.java:
7928 (charsWidth): fixed accumulation of total_width
7929 (getWidth): simple default implementation
7930 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
7931 in Rectangle constructor.
7932 * java/awt/image/Raster.java (toString): Added method.
7933 * java/awt/image/SampleModel.java (<init>): Added error cause
7934 information to thrown exception.
7935 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
7937 (setDataElements): New method.
7938 (setPixels): New method.
7939 (toString): New method.
7941 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7943 * java/awt/image/ComponentColorModel.java
7944 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
7945 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
7946 Mauve tests on this method. Improved documentation.
7948 2004-04-20 Michael Koch <konqueror@gmx.de>
7950 * javax/swing/JLayeredPane.java,
7951 javax/swing/plaf/BorderUIResource.java,
7952 javax/swing/plaf/ComponentUI.java,
7953 javax/swing/undo/CompoundEdit.java,
7954 javax/swing/undo/StateEdit.java:
7955 Fixed HTML tags in javadocs all over.
7957 2004-04-20 Michael Koch <konqueror@gmx.de>
7959 * javax/print/attribute/EnumSyntax.java
7960 (getOffset): Made protected.
7961 * javax/print/attribute/HashAttributeSet.java
7962 (HashAttributeSet): Likewise.
7963 * javax/print/attribute/ResolutionSyntax.java
7964 (getFeedResolution): Fixed typo in exception name.
7965 (getCrossFeedResolution): Likewise.
7966 * javax/print/attribute/SetOfIntegerSyntax.java
7967 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
7968 * javax/print/attribute/TextSyntax.java
7969 (TextSyntax): Handle locale correctly.
7970 (hashCode): Calc better hashcode value.
7971 (equals): Fixed @return tag.
7972 (toString): New method.
7974 2004-04-20 Michael Koch <konqueror@gmx.de>
7976 * gnu/java/nio/FileLockImpl.java
7977 (static): Removed, not needed anymore.
7978 * gnu/java/nio/channels/FileChannelImpl.java
7979 (FileChannelImpl): Made final.
7980 (mode): Made private.
7981 (READ, WRITE, APPEND): Made public.
7982 (EXCL, SYNC, DSYNC): Likewise.
7983 (static): Load native JNI library, when needed.
7984 (length): Unused, removed.
7985 (available): Made public.
7986 (implPosition): Throws IOException.
7988 (implTruncate): Likewise.
7992 2004-04-20 Michael Koch <konqueror@gmx.de>
7994 * java/awt/AWTPermission.java,
7995 java/awt/Component.java,
7996 java/awt/ComponentOrientation.java,,
7997 java/awt/Dialog.java,
7998 java/awt/FontMetrics.java,
7999 java/awt/Graphics.java,
8000 java/awt/datatransfer/DataFlavor.java,
8001 java/beans/Introspector.java,
8002 java/beans/PropertyEditor.java,
8003 java/beans/PropertyEditorManager.java,
8004 java/beans/beancontext/BeanContextServiceProvider.java:
8005 Fixed HTML tags in javadocs all over.
8007 2004-04-20 Mark Wielaard <mark@klomp.org>
8009 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
8010 MissingResourceException is thrown.
8011 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
8012 null when a MissingResourceException is thrown. Should never happen.
8014 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
8016 * java/awt/image/DataBufferShort.java,
8017 java/awt/image/DataBufferFloat.java,
8018 java/awt/image/DataBufferDouble.java,
8019 java/awt/image/PixelInterleavedSampleModel.java: New files.
8020 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
8021 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
8023 2004-04-20 Michael Koch <konqueror@gmx.de>
8025 * Makefile.am (java_source_files): Added
8026 java/awt/image/DataBufferDouble.java,
8027 java/awt/image/DataBufferFloat.java,
8028 java/awt/image/DataBufferShort.java and
8029 java/awt/image/PixelInterleavedSampleModel.java.
8030 * Makefile.in: Regenerated.
8032 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
8034 * gcj/cni.h (JvAllocObject): Remove these obsolete,
8035 undocumented CNI calls.
8036 * include/java-interp.h (_Jv_InterpClass): No longer
8037 extends java.lang.Class.
8038 * java/lang/Class.h (Class): Add new field `aux_info'.
8039 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
8040 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
8041 Use Class->aux_info instead.
8042 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
8043 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
8044 Use Class->aux_info instead.
8045 * java/io/natObjectInputStream.cc (allocateObject): Use
8047 * java/lang/natClass.cc (newInstance): Likewise.
8048 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
8049 * java/lang/natObject.cc (clone): Likewise.
8050 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
8051 * java/lang/natVMClassLoader.cc (defineClass): Don't use
8052 JvAllocObject. Allocate klass->aux_info here for interpreted
8055 2004-04-17 Mark Wielaard <mark@klomp.org>
8057 * javax/swing/JToggleButton.java (ToggleButtonModel):
8058 Make public static inner class.
8059 * javax/swing/JTabbedPane.java (setComponentAt):
8060 Call Page.setComponent().
8061 (SCROLL_TAB_LAYOUT): Make public, value is 1.
8062 (WRAP_TAB_LAYOUT): Make public, value is 0.
8063 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
8064 Make private static inner class.
8066 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
8068 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
8069 arguments to match new signature. Remove FIXME comments.
8071 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
8073 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
8075 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
8078 2004-04-02 Olga Rodimina <rodimina@redhat.com>
8080 * Makefile.am: Added new file.
8081 * Makefile.in: Regenerate.
8082 * javax/swing/ImageIcon.java:
8083 (ImageIcon(file)): set description of the icon
8085 * javax/swing/JCheckBoxMenuItem.java:
8086 Mostly Implemented. Work in progress.
8087 * javax/swing/JRadioButtonMenuItem.java:
8088 Reimplement constructors to use JToggleButtonModel.
8089 * javax/swing/plaf/basic/BasicIconFactory.java:
8090 (getCheckBoxMenuItemIcon): return check box
8092 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8093 paint menu item selected only when it is armed and
8096 2004-04-02 David Jee <djee@redhat.com>
8098 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
8099 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
8100 * java/awt/Component.java
8101 (add): Set the parent of the popup as this component.
8102 * java/awt/PopupMenu.java
8103 (addNotify): Create popup menu when peer is null.
8104 (show): Call addNotify() if peer is null.
8105 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
8106 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
8107 argument for gtk_menu_popup() as zero. This causes the popup menu to
8108 respond to any mouse button.
8110 2004-03-31 Olga Rodimina <rodimina@redhat.com>
8112 * Makefile.am: Added new file.
8113 * Makefile.in: Regenerate.
8114 * javax/swing/JRadioButtonMenuItem.java:
8116 * javax/swing/plaf/basic/BasicIconFactory.java:
8117 (getRadioButtonMenuItemIcon): Return
8119 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8120 (getPreferredSize): Add size of checkIcon if it
8122 (installDefaults): Don't initialize checkIcon.
8123 It's value will be set in subclasses.
8124 (uninstallDefaults): remove uninstallation of
8126 (paint): Moved code to paintMenuItem().
8127 (paintMenuItem): Implemented.
8128 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
8129 UI delegate for JRadioButtonMenuItem.
8131 2004-03-29 Olga Rodimina <rodimina@redhat.com>
8133 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8134 Corrected position of the accelerator.
8136 2004-03-29 Olga Rodimina <rodimina@redhat.com>
8138 * Makefile.am: Added new file.
8139 * Makefile.in: Regenerate.
8140 * javax/swing/JMenuItem.java: Partly
8141 implemented. Work in progress
8142 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8143 Changed default value of acceleratorDelimiter.
8144 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8145 New class. Partly implemented.
8147 2004-03-26 Mark Wielaard <mark@klomp.org>
8149 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8150 (item_activate): Declare label before use.
8151 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8152 (gtkSetFont): Removed unused variable label.
8153 (addExposeFilter): Declare variables before use.
8154 (removeExposeFilter): Likewise.
8155 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8156 (ok_clicked): Declare str_fileName before use.
8158 2004-03-26 David Jee <djee@redhat.com>
8160 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
8161 (addSeparator): Remove.
8162 * java/awt/Menu.java
8163 (separator): Remove static final MenuItem field.
8164 (separatorLabel): New static final String field.
8165 (addSeparator): Do not use peer method; use add(MenuItem) instead.
8166 Use separatorLabel to denote that it is a separator.
8167 (insertSeparator): Create a new MenuItem with separatorLabel, instead
8168 of reusing the static separator instance, because a MenuItem instance
8169 can't be added more than once without being cloned.
8170 * java/awt/peer/MenuPeer.java
8171 (addSeparator): Remove from interface.
8173 2004-03-26 David Jee <djee@redhat.com>
8175 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
8176 (connectSignals): New native method declaration.
8177 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
8178 * java/awt/MenuItem.java
8179 (getActionCommand): Return the label if the action command is not set.
8180 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
8181 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
8182 gtk_menu_shell_append().
8183 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
8184 (item_activate): Fix argument type.
8185 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
8187 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
8189 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
8190 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
8191 given. Add the menu widget's top-level GtkWindow to the global window
8192 group, so it can grab the pointer.
8193 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
8194 gtk_menu_shell_append().
8196 2004-03-23 Graydon Hoare <graydon@redhat.com>
8198 * java/text/AttributedString.java
8199 (addAttribute): Fix off-by-one.
8200 (getIterator): Likewise.
8201 * java/text/AttributedStringIterator.java
8202 (getRunLimit): Correct logic.
8203 (getRunStart): Likewise.
8204 (getAttribute): Fix inequality.
8205 (getAttributes): Likewise.
8206 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
8208 2004-03-23 Kim Ho <kho@redhat.com>
8210 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
8211 (calculateSizes): Return real width and height.
8213 2004-03-23 Kim Ho <kho@redhat.com>
8215 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
8216 (calculateTabRects): Set the selectedRun before
8217 trying to rotate tabs.
8219 2004-03-23 Kim Ho <kho@redhat.com>
8221 * Makefile.am: New file
8222 * Makefile.in: Regenerate
8223 * java/awt/Graphics.java: (drawRect):
8224 Draw to the correct point.
8225 * javax/swing/DefaultSingleSelectionModel.java
8226 (isSelected): Return true if the selected index
8228 * javax/swing/JLabel.java: Do not change mnemonic
8229 index if text is null.
8230 * javax/swing/JProgressBar.java: Use JComponent's
8232 * javax/swing/JScrollBar.java: Ditto.
8233 * javax/swing/JSlider.java: Ditto.
8234 * javax/swing/JTabbedPane.java: Reimplement.
8235 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8236 Add defaults for TabbedPane.
8237 * javax/swing/plaf/basic/BasicArrowButton.java:
8239 * javax/swing/plaf/basic/BasicProgressBarUI.java:
8240 (paintDeterminate): Don't paint String if it's
8242 (paintIndeterminate): ditto.
8243 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
8246 2004-03-19 Michael Koch <konqueror@gmx.de>
8248 * java/awt/image/AffineTransformOp.java
8249 (AffineTransformOp): Made public.
8250 * javax/swing/JComponent.java
8251 (listenerList): Made protected.
8252 (accessibleContext): Likewise.
8253 * javax/swing/JList.java
8254 (valueChanged): Dont use internal fields of ListSelectionEvent.
8255 * javax/swing/JViewport.java
8256 (getView): Dont use internal fields of Component.
8257 (addImpl): Likewise.
8258 * javax/swing/Timer.java
8259 (isRunning): Made public.
8262 * javax/swing/UIDefaults.java
8263 (getInt): Made public.
8264 * javax/swing/plaf/basic/BasicListUI.java
8265 (mousePressed): Dont use internal fields of MouseEvent.
8266 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
8267 * javax/swing/plaf/basic/BasicScrollBarUI.java
8268 (arrowIcon): Made static.
8269 * javax/swing/plaf/basic/BasicViewportUI.java
8270 (stateChanged): Dont use internal field on ChangeEvent.
8271 * javax/swing/text/JTextComponent.java
8272 (getUI): Call UIManager.getUI().
8273 (updateUI): Use getUI().
8275 2004-03-19 Graydon Hoare <graydon@redhat.com>
8277 * javax/swing/JComponent.java: Turn off double buffer by default.
8278 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
8279 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8280 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
8281 Use cairo to copy areas.
8282 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
8283 Initialize and set clip region.
8285 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
8287 * java/applet/Applet.java (preferredSize): Override deprecated
8288 variant of getPreferredSize.
8289 (minimumSize): Override deprecated variant of getMinimumSize.
8291 2004-03-15 Olga Rodimina <rodimina@redhat.com>
8293 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8294 (drawImage(img,xform,bgcolor,obs)): New Method.
8295 Helper function that every drawImage method will
8297 (drawRaster): Added new parameter, bgcolor. All
8298 transparent pixels are changed to bgcolor before
8300 (drawRenderedImage): Fixed to use changed drawRaster().
8301 (drawImage(image,xform,obs): Fixed to use new helper function
8302 (drawImage(image,op,x,y)): Ditto.
8303 (drawImage (img,x,y,observer)): Ditto.
8304 ((PainterThread) bgcolor): New Field.
8305 ((PainterThread) (setPixels)): Changed all transparent pixels
8307 (drawImage(img,x,y,width,height,bgcolor,observer)):
8308 Fixed FIXME - all the transparent pixels are
8309 changed to the specified bgcolor.
8310 (drawImage(img, x, y, width, height, observer): Changed to
8312 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
8313 Fixed FIXME- changed all transparent pixels to bgcolor.
8314 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
8315 Changed to use function above.
8317 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
8319 * java/applet/Applet.java (dimensions): New field.
8320 (getDimensions): New method.
8321 (getPreferredSize): Call getDimensions.
8322 (getMinimumSize): Likewise.
8324 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8326 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
8327 * jni/classpath/jnilink.c: Likewise.
8329 * java/applet/Applet.java (getPreferredSize): New method.
8330 (getMinimumSize): New method.
8332 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
8334 * prims.cc (_Jv_AllocObject): Remove `size' argument.
8335 (_Jv_AllocObjectNoFinalizer): Likewise.
8336 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
8337 (_Jv_AllocPtrFreeObject): Likewise.
8338 (_Jv_AllocString): Moved from natString.cc. Call collector interface
8339 directly even in the JVMPI case.
8340 * gcj/cni.h (JvAllocObject): Remove `size' argument from
8341 _Jv_AllocObject calls.
8342 * gcj/javaprims.h: Update prototypes.
8343 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
8344 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
8345 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
8347 2004-04-14 Andrew Haley <aph@redhat.com>
8348 Bryce McKinlay <mckinlay@redhat.com>
8350 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
8351 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
8352 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
8354 * testsuite/libjava.lang/InvokeInterface.java: New file.
8355 * testsuite/libjava.lang/InvokeInterface.out: New file.
8357 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
8359 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
8361 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
8362 StackTraceElement directly.
8363 (newElement): New native helper method to create StackTraceElement
8364 bypassing Java access control.
8365 (createStackTraceElement): Use newElement() instead of directly
8366 calling StackTraceElement's constructor.
8367 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
8369 2004-04-01 Michael Koch <konqueror@gmx.de>
8371 * java/lang/SecurityManager.java
8372 (checkAwtEventQueueAccess): Implemented.
8374 2004-04-01 Gary Benson <gbenson@redhat.com>
8376 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
8377 (_Jv_SearchMethodInClass): Likewise.
8379 2004-03-26 Peter Moon <peterm@miraculum.com>
8381 * java/text/NumberFormat.java: Fix spelling of setCurrency
8384 2004-03-21 Anthony Green <green@redhat.com>
8386 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
8387 recursion when searching for the system ClassLoader.
8389 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
8391 * java/net/ServerSocket.java
8392 (accept): Close the socket when error occured.
8394 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
8396 * java/net/URI.java (parseURI): Added unquoting.
8397 (unquote): New method.
8398 (quoteAuthority): Implemented.
8399 (quote(String,String)): New method.
8400 (quotePath): Implemented.
8401 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
8402 (getSchemeSpecificPart): Removed FIXME comment.
8403 (getRawAuthority): Return new rawAuthority field.
8404 (getAuthority): Removed FIXME comment.
8405 (getRawUserInfo): Return new rawUserInfo field.
8406 (getUserInfo): Removed FIXME comment.
8407 (getRawPath): Return new rawPath field.
8408 (getPath): Removed FIXME comment.
8409 (getRawQuery): Return new rawQuery field.
8410 (getQuery): Removed FIXME comment.
8411 (getRawFragment): Return new rawFragment field.
8412 (getFragment): Removed FIXME comment.
8414 2004-03-20 Michael Koch <konqueror@gmx.de>
8416 * java/net/URLConnection.java: Merged copyright year with classpath.
8418 2004-03-20 Norbert Frese <postfach@nfrese.net>
8420 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
8421 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
8422 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
8424 (getObjectInputStream): Return object reference, throw IOException if null.
8425 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
8426 (getObjectOutputStream): Return object reference, throw IOException if null.
8427 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
8428 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
8429 (UnicastConnectionManager): Throw RemoteException if port is not available.
8430 (getInstance): Throw RemoteException.
8431 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
8432 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
8433 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8434 Collect Exceptions which are returned by a rmi-call and fix void returns.
8435 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
8436 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8437 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
8438 (dispatch): Answer ping messages which are sent by other java implementions.
8439 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
8440 for every rmi-message and fix void return problems.
8441 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
8442 (UnicastServerRef): Throw RemoteException.
8443 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
8444 In some situations it is necessary to export a subclass of the class which has the _Stub.
8445 For instance when the class with has the _Stub is abstract.
8446 (findStubSkelClass): New method which looks for the class which has the _Stub.
8447 (getClientHost): Implementated.
8448 * gcc/libjava/java/rmi/server/RemoteServer.java
8449 (getClientHost): Implementated.
8450 * gcc/libjava/Makefile.am (rmi_java_source_files):
8451 Added gnu/java/rmi/server/RMIIncomingThread.java.
8452 * Makefile.in: Regenerated.
8454 2004-03-20 Michael Koch <konqueror@gmx.de>
8456 * java/net/InetAddress.java
8457 (getLocalHostname): Added javadoc.
8459 2004-03-19 Per Bothner <per@bothner.com>
8461 * configure.in: FILE variable overrides FLATFORM when linking
8462 natFileChannelXXX.cc.
8464 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
8465 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
8467 2004-03-19 Per Bothner <per@bothner.com>
8469 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
8470 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
8471 * Makefile.am: Update accordingly.
8472 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
8473 as aliases for UnicodeLittle and UnicodeBig.
8475 2004-03-20 Mark Wielaard <mark@klomp.org>
8477 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8478 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
8479 Don't access ws when it is null.
8480 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
8483 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
8485 * java/lang/ThreadGroup.java (list): Changed print to println.
8487 2004-03-19 Mark Wielaard <mark@klomp.org>
8489 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
8492 2004-02-10 Randolph Chung <tausq@debian.org>
8494 * configure.in: Build java for hppa target.
8495 * configure: Regenerate.
8496 * libjava/configure.host (hppa-*): Add target.
8497 * libjava/sysdeps/pa/lock.h: New file.
8499 2004-03-19 Mark Wielaard <mark@klomp.org>
8501 Reported by Stephen Crawley
8502 * java/io/FilePermission.java (implies): Use String.length() -1 to
8503 access last char of String.
8505 2004-03-19 Michael Koch <konqueror@gmx.de>
8507 * java/awt/image/AffineTransformOp.java
8508 (AffineTransformOp): Made public.
8509 * javax/swing/JComponent.java
8510 (listenerList): Made protected.
8511 (accessibleContext): Likewise.
8512 * javax/swing/JList.java
8513 (valueChanged): Dont use internal fields of ListSelectionEvent.
8514 * javax/swing/JViewport.java
8515 (getView): Dont use internal fields of Component.
8516 (addImpl): Likewise.
8517 * javax/swing/Timer.java
8518 (isRunning): Made public.
8521 * javax/swing/UIDefaults.java
8522 (getInt): Made public.
8523 * javax/swing/plaf/basic/BasicListUI.java
8524 (mousePressed): Dont use internal fields of MouseEvent.
8525 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
8526 * javax/swing/plaf/basic/BasicScrollBarUI.java
8527 (arrowIcon): Made static.
8528 * javax/swing/plaf/basic/BasicViewportUI.java
8529 (stateChanged): Dont use internal field on ChangeEvent.
8530 * javax/swing/text/JTextComponent.java
8531 (getUI): Call UIManager.getUI().
8532 (updateUI): Use getUI().
8534 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8536 * verify.cc: Undef PC.
8538 2004-03-18 Michael Koch <konqueror@gmx.de>
8540 * java/nio/channels/spi/AbstractSelectableChannel.java
8541 (keys): Initialize at declaration.
8542 (locate): keys cant be null.
8544 (addSelectionKey): New method.
8545 (removeSelectionKey): New method.
8546 * java/nio/channels/spi/AbstractSelectionKey.java
8547 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
8548 * java/nio/channels/spi/AbstractSelector.java
8549 (provider): Javadoc added.
8550 (cancelledKeys): Javadoc added.
8551 (cancelKey): Javadoc added, add key to cancelledKeys.
8552 (deregister): Implemented.
8554 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8556 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
8557 MAP_FAILED to void *.
8559 2004-03-12 Graydon Hoare <graydon@redhat.com>
8561 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
8562 * javax/swing/JComponent.java (paint): Use persistent double buffer.
8563 * javax/swing/JList.java (ListListener): Revalidate on changes.
8564 * javax/swing/JScrollPane.java: Reimplement.
8565 * javax/swing/JViewport.java: Reimplement.
8566 * javax/swing/ScrollPaneLayout.java: Reimplement.
8567 * javax/swing/ViewportLayout.java: Tidy up.
8568 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
8569 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
8570 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
8571 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
8574 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
8576 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8577 (window_wm_protocols_filter): New function.
8578 (window_focus_in_cb): Remove function.
8579 (window_focus_out_cb): Likewise.
8580 (window_focus_or_active_state_change_cb): New function.
8581 (create): Add filter that removes WM_TAKE_FOCUS client messages.
8582 (connectSignals): Don't attach handlers to focus-in-event or
8583 focus-out-event signals. Handle notify signal.
8585 2004-03-11 David Jee <djee@redhat.com>
8587 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8588 (gtkSetLabel): New native method declaration.
8589 (setLabel): Use gtkSetLabel.
8590 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8591 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
8593 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
8595 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
8596 black when color argument is null.
8598 2004-03-10 Kim Ho <kho@redhat.com>
8600 * java/awt/Container.java: Remove check
8603 2004-03-10 Kim Ho <kho@redhat.com>
8605 * java/awt/Container.java: (visitChild):
8606 Remove candidate clip. Use the component
8608 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8609 (handleEvent): Use the PaintEvent's clip.
8611 2004-03-10 Kim Ho <kho@redhat.com>
8613 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8614 (handleEvent): Don't set the clip for the
8617 2004-03-09 Graydon Hoare <graydon@redhat.com>
8619 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
8620 Fix double <-> fixed macros, reset font transform.
8621 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
8624 2004-03-09Â Kim Ho <kho@redhat.com>
8626 * java/awt/Container.java: (visitChild): Move
8627 the x and y coordinate of the component rectangle
8628 to correct position.
8629 (handleEvent): Forward drag events to the pressed
8631 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8633 (ArrowButtonListener::mousePressed): Stop the
8635 (mouseDragged): Implement.
8636 (TrackListener::mousePressed): Only react if
8637 the press doesn't occur on the thumb, otherwise
8638 just set the offset.
8639 (TrackListener::mouseReleased): Unset the isAdjusting
8641 (createIncreaseIcon): Switch icon.
8642 (createDecreaseIcon): Switch icon.
8643 (calculatePreferredSize): Use width.
8644 (getThumbBounds): Use the top as the lower value.
8645 (layoutVScrollBar): Switch the button locations.
8646 (paintIncreaseHighlight): Paint correct side of thumb.
8647 (paintDecreaseHighlight): ditto.
8648 (valueForYPosition): Use top as the lower value.
8649 * javax/swing/plaf/basic/BasicSliderUI.java:
8651 (mouseDragged): Implement.
8652 (mousePressed): Only react when the thumb isn't
8653 pressed, otherwise just set offset.
8654 (mouseReleased): Handle a release of the thumb.
8655 (scrollDueToClickInTrack): Stop the timer first.
8656 * javax/swing/JProgressBar.java:
8657 (setString): Fix change condition.
8658 * javax/swing/JSeparator.java:
8661 2004-03-08 David Jee <djee@redhat.com>
8663 * java/awt/image/AffineTransformOp.java:
8664 (filter): Use Graphics2D interface instead of directly using the
8667 2004-03-05 David Jee <djee@redhat.com>
8669 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
8670 (handleEvent): Action events are generated upon MOUSE_RELEASED.
8671 * java/awt/Container.java
8672 (acquireComponentForMouseEvent): Fixed.
8673 (handleEvent): Fixed.
8674 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8675 (state_to_awt_mods_with_button_states): New method.
8676 (pre_event_handler): Fixed mouse event generation.
8678 2004-03-05 Olga Rodimina <rodimina@redhat.com>
8680 gnu/java/awt/peer/gtk/GdkGraphics2D.java
8681 (GdkGraphics2D (BufferedImage)): Initialize
8682 pixmap associated with specified BufferedImage.
8683 (setPaint): Changed implementation of Texture
8684 Paint to use AffineTransformOp.
8685 * java/awt/image/AffineTransformOp.java
8686 (createCompatibleDestRaster): Throw RasterFormatException
8687 if resulting width or height of raster is 0.
8689 2004-03-04 Olga Rodimina <rodimina@redhat.com>
8691 * java/awt/image/AffineTransformOp.java:
8692 Removed unnecessary field interpolationType.
8693 Formatted some of the lines to be consistent with
8695 (AffineTransformOp): Create new RenderingHints
8696 containing specified interpolation type.
8697 (createCompatibleDestImage): Implemented.
8698 (createCompatibleDestRaster): Implemented.
8699 (filter): Implemented.
8700 (getBounds2D(BufferedImage)): Implemented.
8701 (getBounds2D(Raster)): Implemented.
8702 (getInterpolationType): Get interpolation value from
8705 2004-03-04 David Jee <djee@redhat.com>
8707 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8708 (setFont): Check if child peers are null.
8710 2004-03-04 Graydon Hoare <graydon@redhat.com>
8712 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
8714 (libjava_arguments): Add new libraries to argument list.
8716 2004-03-02 Olga Rodimina <rodimina@redhat.com>
8718 * Makefile.am: Added java/awt/image/AffineTransformOp.java
8719 * Makefile.in: Re-generated.
8720 * java/awt/image/AffineTransformOp.java: New Class.
8722 2004-03-01 Olga Rodimina <rodimina@redhat.com>
8724 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8725 (setPaint): Interpret correctly TexturePaint's
8727 (drawImage): Fixed scale factors of the affine
8730 2004-02-27 David Jee <djee@redhat.com>
8732 * gnu/java/awt/peer/gtk/GdkGraphics.java
8733 (GdkGraphics(Component)): Inherit font from component.
8734 (drawString): Use font style.
8735 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8736 (gtkSetFont): New native method declaration.
8737 (setFont): New method.
8738 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8739 (gtkSetFont): New native method declaration.
8740 (setFont): Call new native method gtkSetFont.
8741 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8742 (setFont): For all child components who do not their fonts set,
8743 set their peers' fonts with this container's font.
8744 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
8745 Move all native method declarations to the top for readability.
8746 (gtkSetFont): New native method declaration.
8747 (setFont): New method.
8748 * java/awt/Component.java
8749 (setFont): Invalidate after setting the font.
8750 * java/awt/Container.java
8751 (invalidateTree): New method.
8752 (setFont): Invalidate the container tree after setting the font.
8753 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
8754 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
8755 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8756 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
8757 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8758 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
8759 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
8760 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
8762 2004-02-27 Olga Rodimina <rodimina@redhat.com>
8764 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8765 (updateBufferedImage): New helper function.
8766 Updates BufferedImage in memory if it was changed.
8767 (draw): changed to update BufferedImage in memory after
8768 this drawing operation
8770 (draw3DRect): Ditto.
8771 (fill3DRect): Ditto.
8773 (drawRaster): Ditto.
8774 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
8775 no affine transformation.
8776 (drawGlyphVector): Ditto.
8778 2004-02-26 Olga Rodimina <rodimina@redhat.com>
8780 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8781 (isBufferedImageGraphics): New Helper function.
8782 Returns true if this graphics2d can be used to draw
8783 into buffered image and false otherwise.
8784 (updateImagePixels): New Helper function.
8785 Updates pixels in the BufferedImage.
8786 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8787 (getImagePixels): New function. Returns pixels
8788 of the buffered image associated with
8791 2004-02-26 David Jee <djee@redhat.com>
8793 * java/awt/BorderLayout.java
8794 (layoutContainer): Fix width and height calculations to ensure
8795 that they're non-negative.
8796 * java/awt/Component.java
8797 (setBackground): If c is null, inherit from closest ancestor whose
8798 background color is set.
8800 2004-02-26 Kim Ho <kho@redhat.com>
8802 * Makefile.am: Add new files.
8803 * Makefile.in: Re-generate.
8804 * javax/swing/JProgressBar.java:
8805 (JProgressBar(int, int int)): Throw
8806 IllegalArgumentException if orientation is
8808 (JProgressBar(BoundedRangeModel)): Create
8809 ChangeListener and register it. UpdateUI.
8810 (getChangeListeners): Implement.
8811 (setModel): Reset ChangeListener.
8812 * javax/swing/JScrollBar.java: Implement.
8813 * javax/swing/JSeparator.java: Implement.
8814 * javax/swing/JSlider.java:
8815 (JSlider(int, int, int, int)): Throw
8816 IllegalArgumentException if orientation
8818 (getChangeListeners): Fix method name.
8819 * javax/swing/SwingUtilities.java:
8820 (layoutCompoundLabel): If there is no text,
8821 set the text rectangle dimensions to 0.
8822 * javax/swing/plaf/basic/BasicButtonUI.java:
8823 (paint): If there is no text, don't paint it.
8824 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8826 * javax/swing/plaf/basic/BasicSeparatorUI.java:
8828 * javax/swing/plaf/basic/BasicSliderUI.java:
8829 (propertyChange): If the model changes, change
8830 the listeners accordingly.
8832 2004-02-25 Graydon Hoare <graydon@redhat.com>
8834 * javax/swing/AbstractButton.java: Add "final" qualifiers.
8835 * javax/swing/JList.java: Reimplement.
8836 * javax/swing/DefaultListSelectionModel.java: Reimplement.
8837 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
8838 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
8839 * javax/swing/ListModel.java: Javadoc.
8840 * javax/swing/ListSelectionModel.java: Add missing methods.
8841 * javax/swing/AbstractListModel.java: Javadoc and corrections.
8842 * javax/swing/DefaultListModel.java: Javadoc and corrections.
8843 * javax/swing/ListModel.java: Javadoc and corrections.
8844 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
8846 2004-02-25 David Jee <djee@redhat.com>
8848 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8849 (GtkFontPeer): Change default size to 12.
8850 * gnu/java/awt/peer/gtk/GtkToolkit.java
8851 (getFontPeer): Change default size to 12.
8852 (getClasspathFontPeer): Likewise. Set default name to "Default".
8853 * java/awt/Font.java
8854 (Font(Map)): Call Font(String,Map).
8855 (Font(String,Map)): If attrs is null, initialize it as an empty
8856 HashMap, which will ensure that the Font will get default attributes.
8858 2004-02-25 David Jee <djee@redhat.com>
8860 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8861 (GtkFontPeer(String,int)): Call the new constructor with size 1.
8862 (GtkFontPeer(String,int,int)): New constructor with size attribute.
8863 * gnu/java/awt/peer/gtk/GtkToolkit.java
8864 (getFontPeer(String,int)): Call the new overload method with size 1.
8865 (getFontPeer(String,int,int)): New method. Overloaded with size
8867 (getClasspathFontPeer): Set the size of the font.
8869 2004-02-24 Olga Rodimina <rodimina@redhat.com>
8871 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8872 (bimage): New field.
8873 (GdkGraphics2D): New Constructor. Constructs Graphics
8874 object that can be used to draw into the Buffered Image.
8875 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8876 (GdkGraphicsEnvironment): Fixed to include public
8878 (createGraphics): Implemented.
8879 * gnu/java/awt/peer/gtk/GtkToolkit.java
8880 (getLocalGraphicsEnvironment): Implemented.
8881 * java/awt/GraphicsEnvironment.java:
8882 (getLocalGraphicsEnvironment): Implemented.
8883 * java/awt/image/BufferedImage.java:
8884 (createGraphics): Implemented.
8886 2004-02-24 David Jee <djee@redhat.com>
8888 * java/awt/Component.java
8889 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
8890 * java/awt/Container.java
8891 (addNotifyContainerChildren): Fix event enabling.
8893 2004-02-23 Olga Rodimina <rodimina@redhat.com>
8895 * Makefile.am: Added
8896 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
8897 * Makefile.in: Re-generated.
8898 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8901 2004-02-19 Kim Ho <kho@redhat.com>
8903 * Makefile.am: Add BasicProgressBarUI
8904 * Makefile.in: Regenerate.
8905 * javax/swing/JProgressBar.java:
8907 * javax/swing/plaf/basic/BasicLookAndFeel.java
8908 Add constants for JProgressBar.
8909 * javax/swing/plaf/basic/BasicProgressBarUI.java
8911 * javax/swing/plaf/basic/BasicSliderUI.java
8913 (calculateGeometry): New method
8914 (paint): Remove unnecessary size calculations.
8916 2004-02-18 Olga Rodimina <rodimina@redhat.com>
8918 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8919 (drawRaster): Fixed small error that caused
8920 imageToUser transformation to be set incorrectly.
8921 (toString): Implemented.
8923 2004-02-18 David Jee <djee@redhat.com>
8925 * java/awt/CardLayout.java
8926 (addLayoutComponent): Show the first component added as the default.
8927 (removeLayoutComponent): After removing, show the next component.
8928 (gotoComponent): If there is only one component, show it and return.
8930 2004-02-18 Kim Ho <kho@redhat.com>
8932 * javax/swing/JSlider.java: Re-order
8934 * javax/swing/JLabel.java: Re-order
8936 * javax/swing/JComponent.java:
8937 (addPropertyChangeListener):
8939 (removePropertyChangeListener):
8941 (firePropertyChangeEvent):
8944 2004-02-17 David Jee <djee@redhat.com>
8946 * java/awt/Component.java
8947 (show): Dispatch ComponentEvent via system event queue.
8951 (reshape): Likewise.
8952 * java/awt/Window.java
8953 (setBoundsCallback): Likewise.
8955 2004-02-17 David Jee <djee@redhat.com>
8957 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8958 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
8959 Use gtk_widget_set_size_request() instead of the deprecated
8960 gtk_widget_set_usize().
8962 2004-02-17 Kim Ho <kho@redhat.com>
8964 * javax/swing/JSlider.java: Fix comments and
8965 make property strings constants.
8966 (createStandardLabels): Use the labels
8967 preferred size as bounds.
8968 * javax/swing/plaf/basic/BasicSliderUI.java
8970 (ScrollHandler::actionPerformed): Don't
8971 calculate the timer stop value. Let the
8972 MouseListeners find the stop location.
8973 (getPreferredHorizontalSize): Re-implement.
8974 (getPreferredVerticalSize): ditto.
8975 (getMinimumHorizontalSize): ditto.
8976 (getMinimumVerticalSize): ditto.
8977 (getPreferredSize): ditto.
8978 (getMinimumSize): ditto.
8979 (getMaximumSize): ditto.
8980 (paintTicks): Use doubles to find the
8982 (paintHorizontalLabel):Â Use preferredSize
8983 as initial width and height.
8984 (paintVerticalLabel): ditto.
8986 2004-02-17 Kim Ho <kho@redhat.com>
8988 * javax/swing/JLabel.java: Changed
8989 property strings to constants.
8990 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
8992 (setText): Change mnemonic index if
8994 (setDisplayedMnemonicIndex): Fire property
8996 (getDisplayedMnemonicIndex): Remove check
8999 2004-02-17 Olga Rodimina <rodimina@redhat.com>
9001 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
9002 (drawImage(img,xform,obs)): Invert xform before
9003 passing the xform to cairo.
9004 (drawImage(img,x,y,bgcolor,obs)): Implemented.
9005 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
9007 (drawImage (img,x,y,w,h,obs)): Implemented.
9008 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
9009 bgcolor,obs)): Partly implemented.
9010 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
9012 * java/awt/image/BufferedImage.java:
9013 (copyData): if dest is null, create raster with same
9014 dimensions as the current image.
9016 2004-02-16 Graydon Hoare <graydon@redhat.com>
9018 * javax/swing/plaf/basic/BasicLabelUI.java
9019 (getPreferredSize): Use layoutCL.
9020 * javax/swing/plaf/basic/BasicGraphicsUtils.java
9021 (getPreferredButtonSize): Start with empty view rect, layout using
9022 component's preferred alignment.
9023 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
9026 2004-02-16 David Jee <djee@redhat.com>
9028 * java/awt/Component.java
9029 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
9030 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
9031 (move): Erase old bounds and repaint new bounds. Dispatch
9032 COMPONENT_MOVED ComponentEvent.
9033 (resize): Erase old bounds and repaint new bounds. Dispatch
9034 COMPONENT_RESIZED ComponentEvent.
9035 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
9037 * java/awt/Window.java
9038 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
9041 2004-02-16 Olga Rodimina <rodimina@redhat.com>
9043 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
9044 (setRenderingHint): Added implementation of
9045 Interpolation rendering hints.
9046 (setRenderingHints): Ditto.
9047 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
9048 (drawPixels): fixed to allow user to choose type
9049 of filtering that should be used when displaying images.
9050 (cairoSurfaceSetFilter): New method. Sets filter type for
9051 interpolation of pixel values.
9053 2004-02-16 David Jee <djee@redhat.com>
9055 * java/awt/GridBagLayout.java
9056 (calcCellSizes): Rows or columns with zero sizes should still be
9057 considered for extra space distribution.
9059 2004-02-16 Kim Ho <kho@redhat.com>
9061 * javax/swing/JLabel.java: Re-implement.
9062 * javax/swing/plaf/basic/BasicLabelUI.java
9064 * javax/swing/plaf/basic/BasicLookAndFeel.java:
9067 2004-02-16 Kim Ho <kho@redhat.com>
9069 * javax/swing/JSlider.java: Fix indentation and comments.
9070 (setModel): Remove null check to conform with Sun's.
9071 (setOrientation): Throw exception if not
9072 HORIZONTAL or VERTICAL.
9073 (getInverted): Use private variable instead of
9074 ComponentOrientation.
9075 (setInverted): ditto.
9076 * javax/swing/plaf/basic/BasicSliderUI.java:
9077 Fix indentation and comments.
9078 (propertyChange): Remove check for inverted slider, handle
9080 (getMinimumSize): Return preferred size.
9081 (getMaximumSize): ditto.
9082 (calculateFocusRect): Don't relocate rectangle.
9083 (drawInverted): Return XOR of the slider's inversion and
9084 the component's orientation.
9085 (paint): Update leftToRightCache
9087 2004-02-13 David Jee <djee@redhat.com>
9089 * java/awt/GridBagLayout.java
9090 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
9091 code to helper methods.
9092 (sortBySpan): New helper method.
9093 (distributeSizeAndWeight): Likewise.
9094 (calcCellWeights): Likewise.
9095 (calcCellSizes): Add comments.
9097 2004-02-13 David Jee <djee@redhat.com>
9099 * java/awt/Component.java
9100 (show): Only do something if component is invisible at the moment.
9101 (hide): Only do something if component is visible at the moment.
9102 (reshape): If lightweight, erase old bounds and repaint new bounds.
9104 2004-02-13 Kim Ho <kho@redhat.com>
9106 * Makefile.am: Updated for new file.
9107 * Makefile.in: Regenerated.
9108 * javax/swing/JSlider.java: Reimplement.
9109 * javax/swing/SwingUtilities.java
9110 (layoutCompoundLabel): Use icon height
9112 (paintComponent): Implement.
9113 * javax/swing/plaf/basic/BasicLookAndFeel.java:
9114 Add JSlider defaults.
9115 * javax/swing/plaf/basic/BasicSliderUI.java:
9116 Implement. New file.
9118 2004-03-17 Michael Koch <konqueror@gmx.de>
9120 * gnu/java/net/PlainDatagramSocketImpl.java
9121 (RECEIVE_LOCK): New member field.
9122 (SEND_LOCK): New member field.
9123 (send0): New method.
9124 (send): Synchronize on SEND_LOCK.
9125 (receive0): New method.
9126 (receive): Synchronize on RECEIVE_LOCK.
9127 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
9128 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
9129 gnu/java/net/natPlainDatagramSocketImplWin32.cc
9130 (send0): Renamed from send.
9131 (receive0): Renamed from receive.
9132 2004-03-17 Michael Koch <konqueror@gmx.de>
9134 * gnu/java/net/natPlainSocketImplPosix.cc
9135 (write): Just call write(jbyteArray, offset, len).
9136 (read): Just call read(jbyteArray, offset, len).
9138 2004-03-16 Michael Koch <konqueror@gmx.de>
9140 * javax/swing/JTabbedPane.java
9141 (serialVersionUID): New field.
9143 2004-03-16 Norbert Frese <postfach@nfrese.net>
9145 * java/net/InetAddress.java
9146 (getByName): Handle hostname == "" case.
9148 2004-03-16 Dalibor Topic <robilad@kaffe.org>
9150 Reported by: Adam Heath <doogie@debian.org>
9151 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
9154 2004-03-15 Michael Koch <konqueror@gmx.de>
9156 * java/util/Locale.java: Reverting my last patch
9157 and add a comment why the original version was okay.
9159 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
9161 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
9162 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
9163 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
9164 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
9166 2004-03-12 Michael Koch <konqueror@gmx.de>
9168 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
9170 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
9172 * java/net/URI.java (toURL): Implemented.
9174 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
9177 (URI_REGEXP) updated to contain scheme specific part.
9178 (SCHEME_SPEC_PART_GROUP) new constant.
9179 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
9180 updated to make room for SCHEME_SPEC_PART_GROUP.
9181 (parseURI) parse scheme specific part.
9182 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
9183 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
9184 getQuery, getFragment) implemented.
9186 2004-03-12 Dalibor Topic <robilad@kaffe.org>
9188 * libraries/javalib/java/net/URI.java
9189 partially implemented using java.util.regex.
9190 (URI_REGEXP) new constant. Used to parse URIs.
9191 (SCHEME_GROUP) new constant representing index of scheme group
9193 (AUTHORITY_GROUP) new constant representing index of authority
9194 group in parsed URI.
9195 (PATH_GROUP) new constant representing index of path group in
9197 (QUERY_GROUP) new constant representing index of query group in
9199 (FRAGMENT_GROUP) new constant representing index of fragment
9200 group in parsed URI.
9201 (getURIGroup) new static utility method.
9202 (parseURI) implemented.
9203 (quote) stub for new static utility method.
9204 (quoteAuthority) stub for new static utility method.
9205 (quoteHost) stub for new static utility method.
9206 (quotePath) stub for new static utility method.
9207 (quoteUserInfo) stub for new static utility method.
9209 (create) don't throw URISyntaxException. Implemented.
9210 (toString) implemented.
9212 2004-03-12 Michael Koch <konqueror@gmx.de>
9214 * java/net/HttpURLConnection.java
9215 (getResponseCode): Fix another typo in javadoc.
9217 2004-03-11 Michael Koch <konqueror@gmx.de>
9219 * java/util/logging/Level.java
9220 (parse): Use String.equals() instead of ==.
9222 2004-03-11 Michael Koch <konqueror@gmx.de>
9224 * gnu/java/net/protocol/jar/Connection.java
9225 (getContentLength): New method.
9227 2004-03-11 Michael Koch <konqueror@gmx.de>
9229 * gnu/java/net/PlainSocketImpl.java:
9230 Reformated to merge better with classpath's version.
9232 2004-03-11 Michael Koch <konqueror@gmx.de>
9234 * java/util/Locale.java
9235 (getISO3Language): Use String.equals() instead of ==.
9236 (getISO3Country): Likewise.
9238 2004-03-11 Dalibor Topic <robilad@kaffe.org>
9240 * java/text/AttributedString.java
9241 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
9242 Use HashMap instead of Hashtable since value can be null, and
9243 you can not store a null value in a Hashtable.
9245 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
9247 * java/text/AttributedStringIterator.java
9248 (getAllAttributesKey): Return only keys concerned
9249 by the current iterator.
9250 (getAttributes): Use strict inequality for
9253 2004-03-11 Michael Koch <konqueror@gmx.de>
9255 * java/net/HttpURLConnection.java:
9256 Fixed typo in javadoc.
9258 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
9260 * java/io/BufferedInputStream.java (marktarget): New field for max
9262 (CHUNKSIZE): New constant for incremental mark buffer allocation.
9263 (mark): Use new fields.
9265 (read(byte[],int,int)): Likewise.
9269 2004-03-11 Mark Wielaard <mark@klomp.org>
9271 * java/beans/BeanDescriptor.java (BeanDescriptor):
9272 Set the FeatureDescriptor programmatic name.
9274 2004-03-11 Michael Koch <konqueror@gmx.de>
9276 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
9277 This file was was just copied form java/io/natFileDescriptorEcos.cc
9278 and never changed to compile correctly.
9280 2004-03-11 Michael Koch <konqueror@gmx.de>
9282 * gnu/java/nio/PipeImpl.java
9283 (SourceChannelImpl): Made final.
9284 (read): Implemented.
9285 (SinkChannelImpl): Made final.
9286 (write): Implemented.
9288 2004-03-11 Michael Koch <konqueror@gmx.de>
9290 * gnu/java/net/PlainDatagramSocketImpl.java:
9291 Reformated to match classpath's version more.
9293 2004-03-11 Michael Koch <konqueror@gmx.de>
9295 * gnu/java/awt/peer/ClasspathFontPeer.java:
9296 Fixed javadoc to be correct xhtml.
9297 * gnu/java/awt/peer/gtk/GtkArgList.java
9298 (add): Use Boolean.valueOf() instead of new Boolean().
9300 2004-03-09 Michael Koch <konqueror@gmx.de>
9302 * java/lang/Thread.java
9303 (runnable): Moved around.
9304 (daemon): Renamed from daemon_flag.
9305 (contextClassLoader): Renamed from context_class_loader.
9306 (Thread): Reordered constructors.
9307 (activeCount): Use group directly.
9308 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
9309 (holdsLock): Reworked javadoc.
9310 (setDaemon): Reworked.
9311 * java/lang/natThread.cc
9314 2004-03-08 Anthony Green <green@redhat.com>
9316 * Makefile.am: Build property resource files into libgcj.
9317 * Makefile.in: Rebuilt.
9318 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
9319 java/util/regex/PatternSyntaxException.java,
9320 gnu/regexp/CharIndexed.java,
9321 gnu/regexp/CharIndexedCharArray.java,
9322 gnu/regexp/CharIndexedInputStream.java,
9323 gnu/regexp/CharIndexedReader.java,
9324 gnu/regexp/CharIndexedString.java,
9325 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
9326 gnu/regexp/REException.java,
9327 gnu/regexp/REFilterInputStream.java,
9328 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
9329 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
9330 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
9331 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
9332 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
9333 gnu/regexp/RETokenLookAhead.java,
9334 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
9335 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
9336 gnu/regexp/RETokenStart.java,
9337 gnu/regexp/RETokenWordBoundary.java,
9338 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
9340 2004-03-03 Per Bothner <per@bothner.com>
9342 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
9343 Optimize when argument is a FileChannelImpl.
9344 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
9346 * java/nio/channels/natChannels.cc: New file for new native methods.
9347 * Makefile.am: Update accordingly.
9349 2004-03-02 Jan Hubicka <jh@suse.cz>
9351 * configure.host: Pass -fno-omit-frame-pointer for i386.
9352 * configure.in: Likewise.
9353 * configure: Regenerate.
9355 2004-03-01 Per Bothner <per@bothner.com>
9357 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
9359 2004-02-29 Per Bothner <per@bothner.com>
9361 * java/nio/channels/FileChannelImpl.java: Moved to package
9362 gnu/java/nio/channels, since we need to refer to it from java.io.
9363 * java/nio/channels/natFileChannelImpl.cc: Removed file.
9364 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
9365 from java/nio/channels. Don't depend on FileDescriptor.
9366 (in, out, err): New static fields.
9368 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
9369 from FileDescriptor.
9370 (by): Removed MappedByteBuffer field.
9371 (map): New working implementation.
9372 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
9373 some code "ported" from natFileDescriptoPosix.cc.
9374 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
9375 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
9376 * java/io/FileDescriptor.java: Implement on top of FileChannel.
9377 Remove native methods.
9378 * Makefile.am, configure.in: Updated accordingly.
9380 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
9381 (ch): New FileChannelImpl field. Update constructor to match.
9382 (releaseImpl): Remove native method. Instead ...
9383 (release): Call unlock on channel.
9384 * gnu/java/nio/natFileLockImpl.cc: Removed file.
9386 * java/io/natFileDescriptorEcos.cc: Remove file.
9387 * java/io/natFileDescriptorPosix.cc: Remove file.
9388 * java/io/natFileDescriptorWin32.cc: Remove file.
9389 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
9390 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
9391 (<init>(FileChannelImpl)): New package-private constructor.
9392 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
9393 (available, close, read, skip): Implement using FileChannelImpl.
9394 (getFD): Allocate FileDescriptor if needed.
9395 (getChannel): Is now trivial.
9396 * java/io/FileOutputStream.java: Corresponding changes.
9397 * java/io/RandomAccessFile.java: Corresponding changes.
9399 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
9400 unmapImpl): New dummy methods, to be overridden by subclass.
9401 (finalize, isLoaded, load, force): New methods.
9402 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
9403 Now works, at least for read mapping.
9405 * java/lang/natPosixProcess.cc (startProcess): Implement standard
9406 streams using FileChannelImpl, not FileDescriptor.
9407 * java/lang/natWin32Process.cc (startProcess): Likewise.
9409 2004-02-28 Michael Koch <konqueror@gmx.de>
9411 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
9414 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
9416 * java/io/ObjectInputStream.java
9417 (readClassDescriptor): Keep elements of the mapping non null.
9418 (checkTypeConsistency): New method.
9419 (readFields): Fixed main loop and base logic. Small reindentation.
9420 * java/io/ObjectStreamField.java
9421 (lookupField): New method to update the field reference.
9422 (checkFieldType): New method.
9423 * java/io/ObjectStreamClass.java
9424 (setClass, setFields): Call lookupField when building the field
9425 database. Check the real field type.
9427 2004-02-28 Michael Koch <konqueror@gmx.de>
9429 * java/nio/ByteOrder.java
9430 (nativeOrder): Use equals() to compare strings.
9432 2004-02-26 Michael Koch <konqueror@gmx.de>
9434 * gnu/java/nio/FileLockImpl.java
9435 (finalize): Made protected.
9436 * java/nio/channels/FileChannel.java
9437 (MapMode.READ_ONLY): Made final.
9438 (MapMode.READ_WRITE): Made final.
9439 (MapMode.PRIVATE): Made final.
9440 * java/nio/channels/SocketChannel.java
9441 (open): Simplified code.
9442 * java/nio/channels/spi/AbstractSelectableChannel.java
9443 (registered): Unused, removed.
9444 (keyFor): Check channel is open, only locate key
9445 and not add a new one.
9446 (register): Don't delete attachments.
9448 2004-02-26 Michael Koch <konqueror@gmx.de>
9450 * gnu/java/awt/ComponentDataBlitOp.java
9451 (INSTANCE): Made final.
9452 * gnu/java/awt/image/ImageDecoder.java:
9454 (cm): Unused, removed.
9456 2004-02-26 Michael Koch <konqueror@gmx.de>
9458 * gnu/java/nio/DatagramChannelImpl.java
9459 (send): Check if target address is resolved.
9461 2004-02-26 Michael Koch <konqueror@gmx.de>
9463 * Makefile.am: Generate and install headers for inner classes in
9464 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
9465 * Makefile.in: Regenerated.
9467 2004-02-24 Anthony Green <green@redhat.com>
9469 * java/lang/StringBuffer.java: No need to NULL out remainder of
9470 buffer since ensureCapacity_unsynchronized will have done this for
9473 2004-02-20 Michael Koch <konqueror@gmx.de>
9475 * gnu/java/net/protocol/jar/Handler.java
9476 (): Removed unneeded check for file != null. java.net.URL.getFile()
9477 returns an empty string but never null.
9479 2004-02-20 Michael Koch <konqueror@gmx.de>
9481 * gnu/gcj/convert/Convert.java
9482 (main): Use equals() to compare strings.
9484 2004-02-20 Michael Koch <konqueror@gmx.de>
9486 * javax/swing/AbstractButton.java: Made several constants final.
9487 (getRolloverSelectedIcon): Made public.
9488 (getSelectedIcon): Made public.
9490 2004-02-16 Per Bothner <per@bothner.com>
9492 * java/nio/CharBufferImpl.java: Inline super constructor.
9493 * java/nio/DoubleBufferImpl.java: Likewise.
9494 * java/nio/FloatBufferImpl.java: Likewise.
9495 * java/nio/IntBufferImpl.java: Likewise.
9496 * java/nio/LongBufferImpl.java: Likewise.
9497 * java/nio/ShortBufferImpl.java: Likewise.
9498 * java/nio/CharBuffer.java: Remove unused constructor.
9499 * java/nio/DoubleBuffer.java: Likewise.
9500 * java/nio/FloatBuffer.java: Likewise.
9501 * java/nio/IntBuffer.java: Likewise.
9502 * java/nio/LongBuffer.java: Likewise.
9503 * java/nio/ShortBuffer.java: Likewise.
9504 * java/nio/CharViewBufferImpl.java: New convenience constructor.
9505 Fix buggy call to super constructor.
9506 * java/nio/DoubleViewBufferImpl.java: Likewise.
9507 * java/nio/FloatViewBufferImpl.java: Likewise.
9508 * java/nio/IntViewBufferImpl.java: Likewise.
9509 * java/nio/LongViewBufferImpl.java: Likewise.
9510 * java/nio/ShortViewBufferImpl.java: Likewise.
9512 * java/nio/ByteBuffer.java (endian): Make non-private so other
9513 java.nio classes can inherit it.
9514 (<init>): Don't bother clearing array_offset.
9515 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
9516 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
9517 Remove redundant test.
9519 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
9520 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
9521 Use new XxxViewBufferImpl constructors.
9522 * java/nio/MappedByteBufferImpl.java: Likewise.
9523 * java/nio/DirectByteBufferImpl.java: Likewise.
9525 * java/nio/ByteBufferImpl.java: Remove one constructor.
9526 Inline super in remaining constructor.
9527 * java/nio/ByteBuffer.java: Remove unused constructor.
9529 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
9531 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
9532 * java/nio/DirectByteBufferImpl.java (owner): New field.
9533 (offset): Remove unused field.
9534 (<init>): Modify one and add another constructor. Change callers.
9535 (allocateDirect): Removed - not used.
9536 (getImpl, putImpl): Make static and pass address explicitly,
9537 to make them useful for MappedByteBufferImpl.
9538 (get, put): Check for underflow. Modify for new getImpl.
9539 (getImpl): New native method where target is array.
9540 (get(byte[],int,int)): Use the above.
9541 (adjustAddress): New static native method.
9542 (slice, duplicate, asReadOnly): New implementations.
9543 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
9544 adjustAddress): New or updated native methods.
9546 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
9548 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
9549 overflow of fieldmapping.
9551 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
9553 * javax/swing/undo/UndoManager.java: Re-written from scratch.
9555 2004-02-14 Per Bothner <per@bothner.com>
9557 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
9558 Set closed before calling implCloseChannel, as in the spec.
9560 2004-02-09 Graydon Hoare <graydon@redhat.com>
9562 * javax/swing/ToggleButtonModel.java: Remove dead class.
9563 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
9564 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
9565 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
9566 * Makefile.am: Update for new and removed files.
9567 * Makefile.in: Regenerate.
9569 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
9570 * javax/swing/AbstractButton.java
9571 (AbstractButton): Initialize fields correctly in ctor.
9572 * javax/swing/JCheckbox.java
9573 (JCheckBox): Override painting flags.
9574 * javax/swing/DefaultButtonModel.java: Conform to sun.
9575 * javax/swing/JComponent.java (paint): Fill with background color
9577 (processComponentKeyEvent)
9580 (processMouseMotionEvent): Remove event-consuming empty methods.
9581 (getUIClassID): Return "ComponentUI" not "JComponent"
9582 * javax/swing/JFrame.java: Remove some debugging chatter.
9583 (JFrame): Subscribe to window events.
9584 * javax/swing/JRadioButton.java
9585 (JRadioButton): Override painting flags.
9586 * javax/swing/JRootPane.java
9587 (JRootPane): Set background from UIDefaults.
9588 * javax/swing/JToggleButton.java
9589 (ToggleButtonModel): New inner class.
9590 (JToggleButton): Override layout alighment.
9591 * javax/swing/SwingUtilities.java:
9592 (getLocalBounds): Return width and height, not x and y.
9593 (calculateInnerArea): Use local bounds, not bounds.
9594 (layoutCompoundLabel): Provide overridden form.
9595 (layoutCompoundLabel): Correct bugs.
9596 * javax/swing/UIDefaults.java: Correct comment.
9597 * javax/swing/plaf/basic/BasicButtonUI.java:
9598 Move most logic into defaults, external listener.
9599 (paintIcon): Implement icon painting.
9600 (paint): Fix state painting to conform to changes in model.
9601 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
9602 Remove most dead/wrong methods.
9603 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
9604 * javax/swing/plaf/basic/BasicIconFactory.java:
9605 (DummyIcon): New class.
9606 (getMenuItemCheckIcon)
9607 (getMenuItemArrowIcon)
9609 (getCheckBoxMenuItemIcon)
9610 (getRadioButtonMenuItemIcon)
9611 (createEmptyFrameIcon): Return DummyIcons, not null.
9612 (getCheckBoxIcon): Implement an icon that looks like sun's.
9613 (getRadioButtonIcon): Implement an icon that looks like sun's.
9614 * javax/swing/plaf/basic/BasicLookAndFeel.java
9615 (initComponentDefaults): Fix impossible values, add some missing.
9616 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
9617 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
9618 Remove most dead/wrong methods.
9620 (getDefaultIcon): New method.
9621 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
9622 Remove most dead/wrong methods.
9623 * javax/swing/plaf/metal/MetalLookAndFeel.java
9624 (getDefaults): Return super.getDefaults(), not BasicDefaults.
9625 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
9626 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
9627 Implement "clearing" as drawing, when on pixmap drawables.
9629 * javax/swing/JButton.java (getUIClassID):
9630 * javax/swing/JCheckBox.java (getUIClassID):
9631 * javax/swing/JEditorPane.java (getUIClassID):
9632 * javax/swing/JLabel.java (getUIClassID):
9633 * javax/swing/JList.java (getUIClassID):
9634 * javax/swing/JOptionPane.java (getUIClassID):
9635 * javax/swing/JPanel.java (getUIClassID):
9636 * javax/swing/JPasswordField.java (uiClassID):
9637 * javax/swing/JRadioButton.java (getUIClassID):
9638 * javax/swing/JRootPane.java (getUIClassID):
9639 * javax/swing/JScrollPane.java (getUIClassID):
9640 * javax/swing/JTabbedPane.java (getUIClassID):
9641 * javax/swing/JToggleButton.java (getUIClassID):
9642 * javax/swing/JTree.java (getUIClassID):
9643 * javax/swing/JViewport.java (getUIClassID):
9644 * javax/swing/text/JTextComponent.java (getUIClassID):
9645 Return "fooUI" not "Jfoo"
9647 2004-02-11 Michael Koch <konqueror@gmx.de>
9649 * java/net/DatagramSocket.java
9650 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
9652 (setBroadcast): Likewise.
9653 * java/net/MulticastSocket.java
9654 (setLoopbackMode): Likewise.
9655 * java/net/ServerSocket.java
9656 (setReuseAddress): Likewise.
9657 * java/net/Socket.java
9658 (setTcpNoDelay): Likewise.
9659 (setSoLinger): Likewise.
9660 (setOOBInline): Likewise.
9661 (setKeepAlive): Likewise.
9662 (setReuseAddress): Likewise.
9663 * java/net/URLConnection.java
9664 (setContentHandler): Replace == with equals().
9665 * java/net/URLStreamHandler.java
9666 (hostSEquals): Fix checking host addresses.
9667 (toExternalForm): Dont check protocol for null. We know already its
9670 2004-02-10 David Jee <djee@redhat.com>
9672 * java/awt/BorderLayout.java
9673 (calcCompSize): Invisible components get zero dimensions.
9674 * java/awt/Button.java
9675 (setLabel): Set actionCommand.
9676 * java/awt/Component.java
9677 (show): Invalidate component and parent container.
9680 2004-02-10 David Jee <djee@redhat.com>
9682 * java/awt/GridBagLayout.java
9683 (GridBagLayout): New private field, internalcomptable.
9684 (lookupInternalConstraints): New method.
9685 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
9686 (GetLayoutInfo): Reimplement.
9687 (calcCellSizes): Ignore rows/columns with size 0.
9689 2004-02-10 Michael Koch <konqueror@gmx.de>
9691 * gnu/java/awt/EmbeddedWindow.java
9692 (setHandle): Use java.awt.Component.getPeer() instead of
9693 java.awt.Component.peer directly.
9695 2004-02-10 David Jee <djee@redhat.com>
9697 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
9698 (gtkSetLabel): New native method definition.
9699 (setLabel): Use gtkSetLabel.
9700 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
9701 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
9703 2004-02-10 Alan Modra <amodra@bigpond.net.au>
9705 * include/powerpc-signal.h: Revert 2004-01-21 change.
9706 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
9707 from syscall for ppc32 versions.
9709 2004-02-08 Per Bothner <per@bothner.com>
9711 * java/nio/ByteBuffer.java (shiftDown): New helper method.
9712 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
9713 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
9714 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
9715 Pass ByteOrder parameter to most methods, since the underlying
9716 ByteBuffer's order isn't always what we should use.
9717 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
9718 * java/nio/DirectByteBufferImpl.java: Likewise.
9719 Use ByteBufferHelper methods.
9720 * java/nio/MappedByteBufferImpl.java: Likewise.
9721 (compact): Use shiftDown.
9722 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
9723 (get, put): Use ByteBufferHelper.
9724 (compact): Use new shiftDown method.
9725 (duplicate(boolean)): New helper method.
9726 (duplicate, asReadOnlyBuffer): Use it.
9727 (order): Return endian field.
9728 * java/nio/DoubleViewBufferImpl.java: Likewise.
9729 * java/nio/FloatViewBufferImpl.java: Likewise.
9730 * java/nio/IntViewBufferImpl.java: Likewise.
9731 * java/nio/LongViewBufferImpl.java: Likewise.
9732 * java/nio/ShortViewBufferImpl.java: Likewise.
9733 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
9734 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
9735 (compact): Re-implement using shiftDown.
9737 2004-02-08 Andreas Jaeger <aj@suse.de>
9739 * include/x86_64-signal.h: Fix typo.
9741 2004-02-08 Diego Novillo <dnovillo@redhat.com>
9743 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
9745 (HANDLE_DIVIDE_OVERFLOW): Likewise.
9747 2004-02-06 Michael Koch <konqueror@gmx.de>
9749 * java/io/ObjectInputStream.java
9750 (currentClassLoader): Reverted to old version of this method.
9752 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
9754 * java/io/ObjectInputStream.java: Made all calls
9755 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
9756 use cached info from ObjectStreamClass. (readClassDescriptor):
9757 Cache more information in ObjectStreamClass. (processResolution,
9758 readFields): Use cached info from ObjectStreamClass.
9759 (newObject): Throw exception instead of returning null for failure.
9760 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
9761 setCharField, setDoubleField, setFloatField, setIntField,
9762 setLongField, setShortField, setObjectField, readObjectParams):
9763 Removed. (dumpElement, dumpElementln): Removed dump flag condition
9765 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
9766 (setClass): Added call to cacheMethods() (findMethod): New method.
9767 (cacheMethods): New method. (ObjectStreamClass): Added call to
9768 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
9769 AccessController.doPrivileged to invoke setAccessible.
9770 (readObjectMethod, readResolveMethod, realClassIsSerializable,
9771 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
9773 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
9774 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
9775 isPrimitive): Made safe for cases where type == null.
9776 (setBooleanField, setByteField, setCharField, setShortField,
9777 setIntField, setLongField, setFloatField, setDoubleField,
9778 setObjectField): New methods.
9780 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
9782 * java/awt/Component.java (getFont): Return a default font
9785 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
9786 (Scrollbar (int, int, int, int, int)): Make default page
9788 (setValues): Only call peer.setValues if one of the values has
9790 (generateName): New method.
9791 (getUniqueLong): New method.
9792 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
9793 (range_scrollbar): Remove structure.
9794 (post_adjustment_event): Remove function.
9795 (post_change_event): Accept jobject argument.
9796 (create): Cast jints to gdoubles. Round scrollbar values to the
9797 nearest integer. Clamp min, max and value settings.
9798 (connectJObject): Connect hook to widget->window.
9799 (connectSignals): Remove range_scrollbar structure variables.
9800 Remove "move-slider" connection. Pass global peer reference to
9801 "value-changed" callback.
9802 (setLineIncrement): Cast jint value to gdouble.
9803 (setPageIncrement): Likewise.
9804 (setValues): Likewise. Clamp min, max and value settings.
9806 2004-02-05 Michael Koch <konqueror@gmx.de>
9808 * javax/swing/AbstractCellEditor.java
9809 (getCellEditorValue): Removed.
9810 * javax/swing/Box.java: Reformated.
9811 (serialVersionUID): New field.
9812 * javax/swing/ButtonGroup.java:
9813 Removed some weird whitespace.
9814 * javax/swing/CellEditor.java: Reformated.
9815 * javax/swing/CellRendererPane.java
9816 (serialVersionUID): New field.
9817 (AccessibleCellRendererPaneserialVersionUID): New field.
9818 * javax/swing/DefaultListModel.java
9819 (serialVersionUID): New field.
9820 * javax/swing/JEditorPane.java
9821 (serialVersionUID): New field.
9822 (setPage): Throws IOException.
9823 (addHyperlinkListener): Implemented.
9824 (removeHyperlinkListener): Implemented.
9825 (getHyperlinkListener): New method.
9826 * javax/swing/JFileChooser.java
9827 (serialVersionUID): New field.
9828 (AccessibleJFileChooser.serialVersionUID): New field.
9829 (addActionListener): Implemented.
9830 (removeActionListener): Implemented.
9831 (getActionListeners): New method.
9832 * javax/swing/JFormattedTextField.java
9833 (serialVersionUID): New field.
9834 (AbstractFormatter.serialVersionUID): New field.
9835 (clone): Throws CloneNotSupportedException
9836 (setEditValid): Add missing argument.
9837 (stringToValue): Throws ParseExcpetion.
9838 (valueToString): Throws ParseException.
9839 (commitEdit): Throws ParseException.
9840 * javax/swing/JLabel.java
9841 (serialVersionUID): New field.
9842 * javax/swing/JList.java
9843 (serialVersionUID): New field.
9844 (addListSelectionListener): Reformated.
9845 (removeListSelectionListener): Reformated.
9846 (getListSelectionListeners): New method.
9847 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
9849 (serialVersionUID): New field.
9850 * javax/swing/table/AbstractTableModel.java
9851 (getValueAt): Removed.
9852 (getColumnCount): Removed.
9853 (getRowCount): Removed.
9855 2004-02-05 Michael Koch <konqueror@gmx.de>
9857 * java/awt/datatransfer/DataFlavor.java
9858 (imageFlavor): Javadoc added.
9859 (javaJVMLocalObjectType): Fixed.
9861 2004-02-05 Michael Koch <konqueror@gmx.de>
9863 * java/lang/Thread.java
9864 (Thread): Reordered.
9865 (setContextClassLoader): Fixed javadoc comment.
9866 (setPriority): Reordered.
9868 (initialize_native): Reordered.
9869 (gen_name): Reordered.
9871 2004-02-05 Michael Koch <konqueror@gmx.de>
9873 * java/lang/Thread.java: Reordered fields, reformated much code,
9874 no functional changes, some variables renamed, javadoc comments
9877 2004-02-05 Michael Koch <konqueror@gmx.de>
9879 * java/util/zip/Deflater.java,
9880 java/util/zip/DeflaterOutputStream.java,
9881 java/util/zip/GZIPInputStream.java:
9882 Reformated and javadoc comments merged from classpath.
9884 2004-02-05 Michael Koch <konqueror@gmx.de>
9886 * gnu/java/nio/NIOServerSocket.java
9887 (impl): Unused, removed.
9888 * gnu/java/nio/SocketChannelImpl.java
9889 (finnishConnect): Don't throw NoConnectionPendingException if not
9890 connected or no connection pending.
9892 2004-02-02 Graydon Hoare <graydon@redhat.com>
9894 * javax/swing/SwingUtilities.java: Many new functions.
9895 * java/awt/Container.java (LightweightDispatcher): Reimplement.
9896 * javax/swing/basic/BasicGraphicsUtils.java
9897 (getPreferredButtonSize): Start layout from top-left corner.
9899 2004-02-04 Olga Rodimina <rodimina@redhat.com>
9901 * java/awt/geom/AffineTransform.java:
9902 Corrected comments on the field definitions for
9904 (shear): Fixed few errors that caused shear
9905 transformation to be performed incorrectly.
9906 (createInverse): Fixed to return correct
9907 inverse of the given matrix.
9909 2004-02-03 Tom Tromey <tromey@redhat.com>
9911 * java/lang/natPosixProcess.cc (startProcess): Handle case where
9912 PATH or LD_LIBRARY_PATH is not set in parent environment.
9914 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
9916 * gnu/java/awt/peer/gtk/GtkListPeer.java,
9917 java/awt/BorderLayout.java, java/awt/CardLayout.java,
9918 java/awt/CheckboxGroup.java, java/awt/Choice.java,
9919 java/awt/Component.java, java/awt/Container.java,
9920 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
9921 java/awt/LayoutManager2.java, java/awt/List.java,
9922 java/awt/Menu.java, java/awt/MenuBar.java,
9923 java/awt/MenuItem.java, java/awt/Polygon.java,
9924 java/awt/Rectangle.java, java/awt/ScrollPane.java,
9925 java/awt/Scrollbar.java, java/awt/TextArea.java,
9926 java/awt/TextField.java,
9927 java/awt/image/renderable/RenderContext.java,
9928 javax/swing/JApplet.java: Fix handling of alias methods, where a
9929 method has been deprecated in favour of a new one with the same
9930 funtion but a different name. Put the method implementation in
9931 the deprecated method and have the new method call the
9932 deprecated one. Make all other code call the new method.
9934 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
9936 * gnu/java/nio/DatagramChannelImpl.java
9937 (inChannelOperation): New field.
9938 (isInChannelOperation): New accessor.
9939 (setInChannelOperation): New modifier.
9940 (receive): Use capacity() - position() of destination
9941 buffer instead of remaining(). Set and reset our "in
9942 channel operation indicator" before and after delegating
9943 the receive to our datagram socket. Removed testing code.
9944 Update destination buffer's current position if it is
9945 backed by a byte array (hasArray() is true).
9946 (send): Set and reset our "in channel operation indicator"
9947 before and after delegating the send to our datagram socket.
9948 Removed testing code. Update source buffer's current position
9949 if it is backed by a byte array (hasArray() is true).
9950 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
9951 Use capacity() - position() of destination buffer instead
9953 * java/net/DatagramSocket.java (receive): Don't throw an
9954 IllegalBlockingModeException if we have a non-blocking
9955 channel which initiated this operation.
9958 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
9960 * configure.in: Add pkgconfig check for glib and gthread.
9961 * configure: Regenerate.
9963 2004-02-01 Michael Koch <konqueror@gmx.de>
9965 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
9967 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
9968 * verify.cc (debug_print): Mark 'fmt' unused.
9970 2004-01-30 Michael Koch <konqueror@gmx.de>
9972 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
9973 * configure: Regenerated.
9974 * glib-2.0.m4: Removed.
9975 * gtk-2.0.m4: Removed.
9976 * libart.m4: Removed.
9979 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
9981 * gnu/java/net/PlainSocketImpl.java
9982 (inChannelOperation): New field.
9983 (isInChannelOperation): New accessor.
9984 (setInChannelOperation): New modifier.
9985 * gnu/java/nio/ServerSocketChannelImpl.java
9986 (accept): Set and reset our server socket's PlainSocketImpl's
9987 "in channel operation" indicator before and after delegating
9988 the accept to our server socket.
9989 * gnu/java/nio/SocketChannelImpl.java
9990 (connect): Set and reset our socket's PlainSocketImpl's "in channel
9991 operation" indicator before and after delegating the operation to
9995 * java/net/ServerSocket.java (implAccept): Don't throw an
9996 IllegalBlockingModeException if we have a non-blocking
9997 channel which initiated this accept operation.
9998 * java/net/Socket.java (connect): Don't throw an
9999 IllegalBlockingModeException if we have a non-blocking
10000 channel which initiated this connect operation.
10001 * java/nio/channels/spi/AbstractSelectableChannel.java
10002 (configureBlocking): Only call implConfigureBlocking() if
10003 the desired blocking mode is different from our current one.
10005 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
10007 * java/io/BufferedReader.java (sbuf): New field.
10008 (readLine): Use String.valueOf instead of new String() as per
10009 Per Bothner's suggestion. Use instance sbuf field instead of a
10010 local StringBuffer instance.
10011 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
10012 caller's buffer to refill().
10013 (read(void)): Pass our internal work buffer to refill if our
10014 input queue is empty.
10015 (refill): Changed return type to int. Use the specified buffer
10016 instead of our work buffer as per Bryce McKinlay's suggestion.
10017 Return the number of characters read or -1 for EOF.
10019 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
10021 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
10023 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
10025 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
10026 * Makefile.in: Re-generated.
10027 * gnu/awt/xlib/XFontPeer.java: New file.
10028 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
10029 (setClip): Commented out debug printout.
10030 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
10031 (getFontPeer): Return XFontPeer.
10032 (getLocalGraphicsEnvironment): New method.
10033 (getClasspathFontPeer): New method.
10034 (createFont): New method.
10036 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
10038 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
10041 2004-01-29 Kim Ho <kho@redhat.com>
10043 * gnu/java/awt/peer/gtk/GtkFramePeer.java
10044 (gtkLayoutSetVisible): New method
10045 (setMenuBar): Hide layout before setting MenuBar
10046 and reshow it after.
10047 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10048 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
10050 2004-01-28 Michael Koch <konqueror@gmx.de>
10052 * gnu/java/lang/ClassHelper.java
10053 (getPackagePortion): Removed.
10055 2004-01-28 Michael Koch <konqueror@gmx.de>
10057 * javax/swing/JComponent.java
10058 (listenerList): Initalize globally.
10059 (ancestor_list): Removed.
10060 (veto_list): Removed.
10061 (change_list): Removed.
10062 (get_veto_list): Removed.
10063 (get_change_list): Removed.
10064 (get_ancestor_list): Removed.
10065 (removeAncestorListener): Reimplemented.
10066 (removePropertyChangeListener): Likewise.
10067 (removeVetoableChangeListener): Likewise.
10068 (addAncestorListener): Likewise.
10069 (addPropertyChangeListener): Likewise.
10070 (addVetoableChangeListener): Likewise.
10071 (getListeners): New method.
10072 (getAncestorListeners): Likewise.
10073 (getVetoableChangeListeners): Likewise.
10074 (fireVetoableChange): Throws PropertyVetoException.
10075 * javax/swing/JEditorPane.java
10076 (JEditorPane): Throws IOException.
10078 2004-01-28 David Jee <djee@redhat.com>
10080 * gnu/java/awt/peer/gtk/GtkFramePeer.java
10081 (create): Set the default foreground color to
10082 java.awt.SystemColor.windowText.
10084 2004-01-27 Michael Koch <konqueror@gmx.de>
10086 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
10087 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
10088 Reindented to merge with classpath.
10090 2004-01-27 David Jee <djee@redhat.com>
10092 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10093 (addExposeFilter): Handle GtkFramePeer separately.
10094 (removeExposeFilter): Likewise.
10096 2004-01-27 Michael Koch <konqueror@gmx.de>
10098 * gnu/java/net/protocol/http/Connection.java
10099 (getOutputStream): Fixed typo.
10101 2004-01-27 Michael Koch <konqueror@gmx.de>
10103 * java/lang/Class.java
10104 (getConstructor): Removed SecurityException from throws clause.
10105 (_getConstructors): Likewise.
10106 (getConstructors): Likewise.
10107 (getDeclaredConstructor): Likewise.
10108 (getDeclaredClasses): Likewise.
10109 (getDeclaredConstructors): Likewise.
10110 (getDeclaredField): Likewise.
10111 (getDeclaredMethod): Likewise.
10112 (getDeclaredMethods): Likewise.
10113 (getField): Likewise.
10114 (getMethod): Likewise.
10115 (getMethods): Likewise.
10117 2004-01-27 Kim Ho <kho@redhat.com>
10119 * gnu/java/awt/peer/gtk/GtkFramePeer.java
10120 (removeMenuBarPeer): Remove MenuBarPeer argument.
10121 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
10122 (dispose): Call native method.
10123 * java/awt/Frame.java (setMenuBar): Create and remove
10124 MenuBar peers only if the Frame has a peer.
10125 (addNotify): Create the MenuBar peer if one exists.
10126 (removeNotify): Remove MenuBar peer if one exists.
10127 * java/awt/Menu.java: Fix imports.
10128 (addNotify): Don't use full class name.
10129 (removeNotify): Call removeNotify on all children.
10130 * java/awt/MenuBar.java (removeNotify): Call
10131 removeNotify on all children.
10132 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10133 (removeMenuBarPeer): Remove MenuBarPeer argument.
10134 Iterate through children to find the Frame's MenuBar.
10135 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
10137 (dispose): Remove references to the MenuComponent.
10139 2004-01-27 Michael Koch <konqueror@gmx.de>
10141 * javax/swing/AbstractCellEditor.java: Reformated.
10142 * javax/swing/DefaultListSelectionModel.java
10143 (listenerList): Made protected.
10144 (addListSelectionListener): Javadoc added.
10145 (removeListSelectionListener): Likewise.
10146 (getListeners): Likewise.
10147 (getListSelectionListeners): Likewise.
10148 * javax/swing/JComboBox.java: Merged copyright year.
10149 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
10151 2004-01-26 Andrew Haley <aph@redhat.com>
10153 * javax/swing/table/JTableHeader.java: Extend JComponent
10155 2004-01-26 Kim Ho <kho@redhat.com>
10157 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
10160 2004-01-26 Kim Ho <kho@redhat.com>
10162 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
10164 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
10165 height and let the Layout Managers readjust anything that
10167 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10168 (moveLayout): New method. Shift everything in the Gtk
10169 layout in the Y direction by an offset.
10171 2004-01-26 David Jee <djee@redhat.com>
10173 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10174 (handleEvent): Implemented. Handles PaintEvents.
10175 (paint): Implemented. Use GTK native methods to queue updates
10176 for this heavyweight peer.
10177 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10178 (handleEvent): Removed.
10179 * java/awt/Component.java
10180 (paint): Implemented. Explictly paint the heavyweight peer.
10181 (update): Clear the background for heavyweight components.
10182 (paintAll): No need to call peer.paint() anymore.
10183 (processEvent): Don't process PaintEvents here. It's now done in
10184 the peer's handleEvent().
10185 (processPaintEvent): Removed.
10186 * java/awt/Container.java
10187 (paint): No need to call super.paint(). Visit heavyweight
10189 (update): Don't clear the background here. It's done in
10190 Component.update().
10191 (visitChildren): Added check to not recurse into Containers.
10192 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10193 (filter_expose_event_handler): New method. Filter unwanted
10194 expose events while painting heavyweight peers.
10195 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
10196 New method. Connect filter and block pre_event_handler.
10197 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
10198 New method. Disconnect filter and unblock pre_event_handler.
10199 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
10200 New method. Invalidate and update given area.
10201 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10202 (pre_event_handler): Add checks for unwanted expose events.
10204 2004-01-26 David Jee <djee@redhat.com>
10206 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10207 (find_bg_color_widget): For GtkButton, return its child.
10209 2004-01-26 Kim Ho <kho@redhat.com>
10211 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
10213 (setMenuBar): Grab MenuBar height and change insets.
10214 (setBounds): Account for MenuBar height.
10215 (postInsetsChangedEvent): Ditto.
10216 (postSizeAllocateEvent): Remove.
10217 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10218 (menubar_resize_cb): Remove
10219 (setMenuBarPeer): Remove callback.
10220 (getMenuBarHeight): Use size requisition instead of
10223 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
10225 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
10226 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
10228 (setColumns): Remove FIXME -- peer will retrieve number of
10229 columns by calling getColumns.
10230 (setRows): Likewise for number of rows.
10231 (next_text_number): New field.
10232 (paramString): Fix param string.
10233 (generateName): New method.
10234 (getUniqueLong): New method.
10236 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
10238 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
10239 image observer of image loading status.
10240 (getImage (String)): Start image production.
10241 (getImage (URL)): Likewise.
10243 2004-01-25 Michael Koch <konqueror@gmx.de>
10245 * java/lang/Class.java: Imports reworked, reformated.
10246 (Class): Javadoc added.
10247 (forName): Likewise.
10248 (getClasses): Likewise.
10249 (getClassLoader): Likewise.
10250 (getComponentType): Likewise.
10251 (getConstructor): Likewise.
10252 (getConstructors): Likewise.
10253 (getDeclaredConstructor): Likewise.
10254 (getDeclaredClasses): Likewise.
10255 (getDeclaredConstructors): Likewise.
10256 (getDeclaredField): Likewise.
10257 (getDeclaredMethod): Likewise.
10258 (getDeclaredMethods): Likewise.
10259 (getDeclaringClass): Likewise.
10260 (getField): Likewise.
10261 (getInterfaces): Likewise.
10262 (getMethod): Likewise.
10263 (getMethods): Likewise.
10264 (getModifiers): Likewise.
10265 (getName): Likewise.
10266 (getResource): Likewise.
10267 (getResourceAsStream): Likewise.
10268 (getSigners): Likewise.
10269 (setSigners): Likewise.
10270 (getSuperclass): Likewise.
10271 (isArray): Likewise.
10272 (isAssignableFrom): Likewise.
10273 (isInstance): Likewise.
10274 (isInterface): Likewise.
10275 (isPrimitive): Likewise.
10276 (newInstance): Likewise.
10277 (getProtectionDomain): Likewise.
10278 (toString): Likewise.
10280 (initializeClass): Likewise.
10281 (finalize): Likewise.
10283 2004-01-24 Michael Koch <konqueror@gmx.de>
10285 * gnu/java/net/protocol/jar/Connection.java
10286 (hdrHash): Removed.
10288 (gotHeaders): Removed.
10289 (getHeaderField): Removed.
10290 (getHeaderFields): Removed.
10291 (getHeaderFieldKey): Removed.
10293 (getField): Removed.
10294 (getHeaders): Removed.
10296 2004-01-24 Michael Koch <konqueror@gmx.de>
10298 * Makefile.am: Added library version to gtk peer lib.
10299 * Makefile.in: Regenerated.
10301 2004-01-24 Michael Koch <konqueror@gmx.de>
10303 * java/util/zip/InflaterInputStream.java: Merged class documentation
10306 2004-01-21 Jakub Jelinek <jakub@redhat.com>
10308 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
10309 header. For __powerpc64__ provide the default-signal.h definitions
10311 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
10312 instead of the dummy definitions.
10313 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
10314 (powerpc64*-*): Remove with_libffi_default.
10315 Only add -mminimal-toc for 64-bit compilations.
10316 * configure.in: Use powerpc-signal.h on powerpc64 as well.
10317 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
10318 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
10319 * configure: Rebuilt.
10321 2004-01-23 Michael Koch <konqueror@gmx.de>
10323 * gnu/java/nio/FileLockImpl.java: Compile fixes.
10325 2004-01-23 Michael Koch <konqueror@gmx.de>
10327 * java/lang/VMClassLoader.java: Reworked imports.
10329 2004-01-23 Michael Koch <konqueror@gmx.de>
10331 * javax/swing/AbstractAction.java: Reformated.
10333 2004-01-23 Michael Koch <konqueror@gmx.de>
10335 * java/text/CollationElementIterator.java:
10336 (setText): New method.
10338 2004-01-23 Michael Koch <konqueror@gmx.de>
10340 * gnu/java/nio/FileLockImpl.java:
10341 Fixed filename in copyright.
10342 (released): Removed.
10343 (finalize): New method.
10344 * gnu/java/nio/natFileLockImpl.cc
10345 (releaseImpl): Implemented.
10346 * java/nio/channels/FileChannelImpl.java:
10348 (lock): Implemented.
10349 (lockImpl): New method.
10350 (tryLock): Implemented.
10351 (tryLockImpl): New method.
10352 * java/nio/channels/natFileChannelImpl.cc
10353 (lockImpl): New method.
10354 (tryLockImpl): New method.
10356 2004-01-23 Michael Koch <konqueror@gmx.de>
10358 * java/io/FileDescriptor.java
10359 (lock): New method.
10360 (tryLock): New method.
10361 (unlock): New method.
10362 * java/io/natFileDescriptorEcos.cc
10363 (lock): New method.
10364 (tryLock): New method.
10365 (unlock): New method.
10366 * java/io/natFileDescriptorPosix.cc
10367 (lock): New method.
10368 (tryLock): New method.
10369 (unlock): New method.
10370 * java/io/natFileDescriptorWin32.cc
10371 (lock): New method.
10372 (tryLock): New method.
10373 (unlock): New method.
10375 2004-01-23 Michael Koch <konqueror@gmx.de>
10377 * java/io/FileDescriptor.java
10378 (sync): Moved around, added javadoc.
10383 (setLength): Likewise.
10385 (getLength): Likewise.
10386 (getFilePointer): Likewise.
10388 (available): Likewise.
10389 (finalize): Likewise.
10391 2004-01-23 Michael Koch <konqueror@gmx.de>
10393 * javax/swing/AbstractAction.java: Reformated.
10394 (getPropertyChangeListeners): New method.
10395 * javax/swing/AbstractCellEditor.java: Reformated.
10396 (getCellEditorListeners): New method.
10397 * javax/swing/DefaultListSelectionModel.java
10398 (listenerList): New field.
10399 (listeners): Removed.
10400 (get_listeners): Removed.
10401 (addListSelectionListener): Rewritten.
10402 (removeListSelectionListener): Rewritten.
10403 (getListSelectionListeners): New method.
10404 (getListeners): New method.
10405 * javax/swing/JComboBox.java: Imports reworked.
10406 (addActionListener): Implemented.
10407 (removeActionListener): Implemented.
10408 (addItemListener): Implemented.
10409 (removeItemListener): Implemented.
10410 (addPopupMenuListener): Implemented.
10411 (removePopupMenuListener): Implemented.
10412 (getActionListeners): New method.
10413 (getItemListeners): New method.
10414 (getPopupMenuListeners): New method.
10416 2004-01-23 Michael Koch <konqueror@gmx.de>
10418 * gnu/java/net/protocol/http/Connection.java
10419 (connect): Don't initialize bufferedOutputStream if not needed.
10420 (sendRequest): Set property for content length if content is present.
10421 Write content only if present.
10422 (getOutputStream): Check if already connected, dont connect,
10423 initalize bufferedOutputStream if needed.
10425 2004-01-23 Michael Koch <konqueror@gmx.de>
10427 * java/io/FileDescriptor.java
10428 (in, out, err): Added javadoc.
10429 (static): Merged loading code.
10430 (fd, position): Moved around.
10432 2004-01-23 Michael Koch <konqueror@gmx.de>
10434 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
10437 2004-01-23 Michael Koch <konqueror@gmx.de>
10439 * java/lang/Class.java,
10440 java/lang/Object.java,
10441 java/lang/Thread.java: Merged copyright with classpath.
10443 2004-01-23 Michael Koch <konqueror@gmx.de>
10445 * java/io/FileDescriptor.java: Merged copyright with classpath to
10446 start merging this class.
10448 2004-01-22 Tom Tromey <tromey@redhat.com>
10451 * testsuite/libjava.lang/pr13107_2.xfail: New file.
10452 * testsuite/libjava.lang/pr13107_3.xfail: New file.
10453 * testsuite/libjava.lang/pr13107_3.java: New file.
10454 * testsuite/libjava.lang/pr13107_3.out: New file.
10455 * testsuite/libjava.lang/pr13107_2.java: New file.
10456 * testsuite/libjava.lang/pr13107_2.out: New file.
10457 * testsuite/libjava.lang/pr13107.java: New file.
10458 * testsuite/libjava.lang/pr13107.out: New file.
10459 * verify.cc (jsr_ptrs): Removed.
10460 (entry_points): Likewise.
10461 (struct subr_info): Likewise.
10462 (struct subr_entry_info): Likewise.
10463 (type_val::unused_by_subroutine_type): Likewise.
10464 (type::merge): Don't handle unused_by_subroutine_type.
10465 (type::print): Likewise.
10466 (state::flags): Removed.
10467 (state::subroutine): Likewise.
10468 (state::seen_subrs): Likewise.
10469 (state::NO_STACK): Likewise.
10470 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
10471 (state): Updated all methods.
10472 (state::clean_subrs): Removed.
10473 (state::state): Removed `ret_semantics' flag.
10474 (state::copy): Likewise.
10475 (state::add_subr): Removed.
10476 (state::enter_subroutine): Likewise.
10477 (type::set_return_address): New method.
10478 (handle_jsr_insn): Set return address on the type. Always
10479 invalidate PC after call.
10480 (check_nonrecursive_call): Removed.
10481 (~_Jv_BytecodeVerifier): Updated.
10482 (branch_prepass): Removed special handling of jsr.
10483 (note_branch_target): Likewise.
10484 (get_subroutine): Removed.
10485 (state::merge): Don't merge subroutines and don't handle
10486 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
10487 (state::note_variable): Removed.
10488 (state::is_unmerged_ret_state): Likewise.
10489 (state::print): Updated.
10490 (set_variable): Likewise.
10491 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
10492 and jsr_semantics arguments. Updated for new reverification
10494 (pop_jump): Rewrote.
10495 (construct_primitive_array_type): Updated.
10496 (state::next): Removed.
10497 (INVALID_STATE): New define.
10498 (state::INVALID): Removed.
10499 (state::NO_NEXT): New value.
10500 (state::pc, state::next): New fields.
10501 (state::get_pc): New method.
10502 (next_verify_pc): Removed.
10503 (next_verify_state): New field.
10504 (verify_instructions_0): Always check for falling off end.
10505 (linked): New type.
10506 (linked_utf8): Removed.
10507 (states): Changed type.
10508 (type::state_mergeable_p): New method.
10509 (state::state_mergeable_p): Likewise.
10510 (handle_ret_insn): Removed most code.
10511 (state::reverify): New method.
10512 (add_new_state): Likewise.
10513 (state::set_pc): Likewise.
10515 2004-01-22 Jeff Sturm <jsturm@one-point.com>
10518 * testsuite/libjava.compile/PR13733.java: New file.
10519 * testsuite/libjava.compile/PR13733.xfail: New file.
10521 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
10522 Michael Koch <konqueror@gmx.de>
10524 * javax/swing/table/DefaultTableCellRenderer.java
10525 (DefaultTableCellRenderer): Added javadoc for the class and for
10526 the constructor, Border instance, create an EmptyBorder.
10527 (UIResource): Removed the comment at the end of the class
10528 (setForeground): New method.
10529 (setBackground): New method.
10530 (updateUI): New method.
10531 (getTableCellRendererComponent): Rewritten with the help of
10532 dvholten and Stephane Meslin-Weber.
10533 (validate): New method.
10534 (repaint): New method.
10535 (firePropertyChange): New method.
10536 (setValue): New method.
10538 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
10540 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10541 (connectJObject): Replace printf calls with g_assert statements.
10542 Move property-notify-event signal connection to ...
10543 (connectSignals): Connect property-notify-event signal. Iterate
10544 through the vbox's children to find layout.
10546 2004-01-22 Graydon Hoare <graydon@redhat.com>
10548 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
10549 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
10550 Predicate static initialization on GtkToolkit.useGraphics2D().
10551 * java/awt/Component.java (processPaintEvent): Consume event.
10552 * javax/swing/AbstractButton.java: Reimplement, document.
10553 * javax/swing/DefaultButtonModel.java: Reimplement, document.
10554 * javax/swing/JComponent.java (paint): Use double buffer.
10555 (listenerList): Enable member.
10556 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
10557 * javax/swing/JToggleButton.java
10558 (JToggleButton): Modify model constructor.
10559 * javax/swing/SwingUtilities.java
10560 (layoutCompoundLabel): Adjust arithmetic.
10561 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
10562 * javax/swing/plaf/basic/BasicGraphicsUtils.java
10563 (getPreferredButtonSize): Include margins in calculation.
10564 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10565 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
10566 Receive up events from subordinate layout component.
10568 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
10570 * java/awt/Component.java (show): Set visible to true before
10573 2004-01-21 Kim Ho <kho@redhat.com>
10575 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
10577 (removeMenuBarPeer): Make package private.
10578 (setMenuBarPeer): Make package private.
10579 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10580 (menubar_resize_cb): Mark attributes unused.
10581 (getMenuBarHeight): ditto.
10583 2004-01-21 David Jee <djee@redhat.com>
10585 * java/awt/Container.java
10586 (LightweightDispatcher.handleEvent): Add an extra check to avoid
10587 dispatching MOUSE_ENTERED event twice. Translate the point for
10588 the mouse event target before dispatching the event.
10590 2004-01-20 Jakub Jelinek <jakub@redhat.com>
10592 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
10593 lib_org_w3c_dom_la_LDFLAGS): New.
10594 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
10595 * Makefile.in: Rebuilt.
10597 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
10599 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
10600 Calculate proper offsets for heavyweight components packed in
10601 lightweight containers.
10603 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
10604 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
10605 (native create): Add width parameter.
10606 (create): Calculate text entry width based on current font's
10607 metrics and number of columns. Set TextField's font if not
10608 already set. Call native create.
10609 (gtkEntryGetBorderWidth): New native method.
10610 (gtkEntryGetSize): Remove method.
10611 (getMinimumSize): Call minimumSize.
10612 (getPreferredSize): Call preferredSize.
10613 (minimumSize): Calculate minimum size based on backing
10614 GtkEntry's borders, font metrics and number of columns.
10615 (preferredSize): Likewise for preferred size.
10616 (get_border_width): New static function.
10618 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
10619 Override GtkWindowPeer's setResizable method to account for menu
10620 bar height when setting the frame's size.
10622 2004-01-19 Matthias Klose <doko@debian.org>
10624 * libtool-version: Increased `current' to 6.
10626 2004-01-19 Kim Ho <kho@redhat.com>
10628 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10629 (connectJObject): Iterate through the vbox's children to find layout.
10631 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10633 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
10634 isDispatchThread method to replace wrong test condition.
10636 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10638 * java/awt/EventQueue.java (pop): Prevent racing condition to add
10639 events to the queue out of order by acquiring locks in the proper
10640 order and not by releasing one before acquiring the other.
10642 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10644 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
10645 visible so that dialog can be reused.
10647 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10649 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
10650 events may be handled by any queue in the stack.
10652 2004-01-19 Kim Ho <kho@redhat.com>
10654 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
10655 MenuBarPeer parameter.
10656 (removeMenuBarPeer): New native method.
10657 (setMenuBar): Call remove if menu bar is null. Adjust insets
10659 (postSizeAllocateEvent): New method. Called when menu bar size is
10660 allocated. Adjust insets and redo layout.
10661 (GtkFramePeer): Set menu bar during frame creation.
10662 (postConfigureEvent): Adjust position and size to accomodate
10664 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
10665 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
10666 (addNotify): Create the peer if it doesn't exist and call addNotify
10667 for the menu's items.
10668 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
10669 * java/awt/MenuItem.java (addNotify): Create the peer if it
10671 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10672 (removeMenuBarPeer): New method. Remove menu bar on the current
10674 (setMenuBarPeer): Add the menu bar to the current frame and the
10675 callback for size-allocate events on the menu bar.
10676 (getMenuBarHeight): Add menu bar parameter.
10677 (menubar_resize_cb): New callback method for postSizeAllocate events.
10679 Also: Fix indentation on last ChangeLog entry.
10681 2004-01-16 Kim Ho <kho@redhat.com>
10683 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10684 (gtkWidgetGetDimensions): Remove.
10685 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10686 (gtkWidgetGetDimensions): Remove.
10688 2004-01-16 Tom Tromey <tromey@redhat.com>
10690 * java/awt/Container.java: Typo and indentation fixes.
10692 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
10693 * java/lang/natVMClassLoader.cc: ...here. New file.
10694 * Makefile.in: Rebuilt.
10695 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
10697 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10699 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
10700 Discard GDK_ENTER_NOTIFY related to ungrabs.
10702 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10704 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
10705 is called for an intermediate queue.
10707 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
10709 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10710 (window_property_changed_cb): Set id_set.
10712 2004-01-16 Kim Ho <kho@redhat.com>
10714 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
10715 it is a FileDialog and has dimensions of 0 by 0, then the initial
10716 size is set to size request plus insets.
10717 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10718 (gtkWidgetGetDimensions): Override method.
10719 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10720 (gtkWidgetGetDimensions): Override method. Returns size request plus
10723 2004-01-16 Andrew Haley <aph@redhat.com>
10725 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
10726 * sysdep/i386/locks.h: Likewise.
10728 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10730 * java/awt/EventDispatchThread.java (run): Stop running when
10732 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
10733 Reset the queue after transferring its contents.
10734 (push): Start a new dispatch thread if none is running.
10736 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
10738 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10739 (doPolygon): set fill rule of polygon to
10740 WIND_EVEN_ODD by default.
10742 2004-01-15 Olga Rodimina <rodimina@redhat.com>
10744 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10745 Implemented rendering hints related methods.
10746 (getDefaultHints): New helper method. Returns
10747 default rendering hints.
10748 (walkPath): changed to normalize path if
10749 the KEY_STROKE_CONTROL key is in "normalize" mode.
10750 (draw3DRect): changed coordinates of rectangle by +0.5
10751 if in "normalize" mode.
10753 2004-01-15 Tom Tromey <tromey@redhat.com>
10755 * Makefile.in: Rebuilt.
10756 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
10757 (%.lo: %.java) Filter out StackTrace.lo.
10759 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
10761 * configure.in: Add in AC_PREREQ(2.13)
10762 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
10765 2004-01-14 Nathan Bryant <nbryant@optonline.net>
10766 Tom Tromey <tromey@redhat.com>
10769 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
10770 array to superclass.
10771 (init): Changed interface; add URLs here.
10772 (initialize): New static method.
10773 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
10774 (_Jv_RunMain): ... not here.
10776 2004-01-14 Michael Koch <konqueror@gmx.de>
10778 * java/text/MessageFormat.java:
10779 Added descriptions to exceptions.
10780 This fixes PR libgcj/2429.
10782 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10784 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
10785 (push): Make sure push is performed at the top of the thread stack.
10787 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10789 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
10790 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
10791 (native create): Add width and height parameters. Set text
10792 view's size request according to new parameters.
10793 (create): Calculate text view size based on current font's
10794 metrics and number of rows and columns. Set TextArea's font if
10795 not already set. Call native create.
10796 (getMinimumSize): Call minimumSize.
10797 (getPreferredSize): Call preferredSize.
10798 (getHScrollbarHeight): New method.
10799 (getVScrollbarWidth): New method.
10800 (minimumSize): Calculate minimum size based on scrollbar
10801 visibility, scrollbar sizes, font metrics and number of rows and
10803 (preferredSize): Likewise for preferred size.
10804 (gtkTextGetSize): Remove method.
10806 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10808 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10809 (initializeInsets): Remove method.
10810 (GtkComponentPeer): Initialize insets field. Remove call to
10812 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
10814 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
10816 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
10817 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
10818 (latestInsets): Remove field.
10819 (native create): Add insets parameter. Call
10820 window_get_frame_extents. Set the window's default size and
10821 size request based on its frame extents.
10822 (create): Initialize insets.
10823 (postInsetsChangedEvent): New method.
10824 (postConfigureEvent): Remove parameters top, left, bottom,
10825 right. Remove insets-related logic.
10826 (connectJObject): Handle property-notify-event.
10827 (window_get_frame_extents, request_frame_extents,
10828 property_notify_predicate, window_property_changed_cb): New
10830 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10831 (pre_event_handler): Remove insets-related logic for configure
10833 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
10834 Update postConfigureEvent signature.
10836 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10838 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
10839 to handle Window "Closing" events.
10841 2004-01-13 David Jee <djee@redhat.com>
10843 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10844 (setBackground): New method. Children with no explicitly-set
10845 background will be repainted with the parent container's new
10848 2004-01-13 David Jee <djee@redhat.com>
10850 * Makefile.am: Add BitwiseXORComposite.java.
10851 * Makefile.in: Regenerated.
10852 * gcj/Makefile.in: Regenerated.
10853 * include/Makefile.in: Regenerated.
10854 * testsuite/Makefile.in: Regenerated.
10856 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10858 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
10859 not show modal dialogs twice and so that it allows showing a modal
10860 dialog from another modal dialog.
10862 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10864 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
10865 and run secondary dispatch thread to process event queue while this
10868 2004-01-12 Graydon Hoare <graydon@redhat.com>
10870 * gnu/java/awt/gtk/GdkGraphics2D.java
10871 (static): Check GtkToolkit before initializing static state.
10872 (Graphics2D): Don't construct transform with 0.5 unit offset.
10874 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
10876 * gnu/java/awt/BitwiseXORComposite.java: Add.
10877 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
10878 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
10879 (BitwiseXORComposite): Remove inner class.
10881 2004-01-11 Michael Koch <konqueror@gmx.de>
10883 * gnu/java/lang/reflect/TypeSignature.java
10884 (getEncodingOfClass): Documentation fixed.
10885 (getClassForEncoding): Give class loader to Class.forName().
10886 Documentation fixed.
10888 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
10890 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
10892 2004-01-11 Michael Koch <konqueror@gmx.de>
10894 * javax/swing/undo/StateEditable.java
10895 (RCSID): Removed redundant modifiers.
10897 2004-01-10 Michael Koch <konqueror@gmx.de>
10899 * javax/print/attribute/EnumSyntax.java
10900 (getStringTable): Made protected.
10901 (getEnumValueTable): Likewise.
10902 * javax/print/attribute/standard/JobKOctetsProcessed.java
10903 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
10904 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
10905 (JobMediaSheetsCompleted): Made class final.
10906 * javax/print/attribute/standard/OutputDeviceAssigned.java
10907 (getName): Fixed typo.
10908 * javax/print/attribute/standard/RequestingUserName.java
10909 (serialVersionUID): Fixed value.
10911 2004-01-10 Michael Koch <konqueror@gmx.de>
10913 * javax/swing/plaf/basic/BasicButtonUI.java,
10914 javax/swing/plaf/basic/BasicCheckBoxUI.java,
10915 javax/swing/plaf/basic/BasicListUI.java,
10916 javax/swing/plaf/basic/BasicOptionPaneUI.java,
10917 javax/swing/plaf/basic/BasicPanelUI.java,
10918 javax/swing/plaf/basic/BasicRadioButtonUI.java,
10919 javax/swing/plaf/basic/BasicScrollPaneUI.java,
10920 javax/swing/plaf/basic/BasicToggleButtonUI.java,
10921 javax/swing/plaf/basic/BasicViewportUI.java:
10922 Fixed import statements.
10924 2004-01-10 Michael Koch <konqueror@gmx.de>
10926 * gnu/java/awt/image/ImageDecoder.java
10927 (produce): Made public.
10928 * gnu/java/awt/peer/GLightweightPeer.java,
10929 gnu/java/awt/peer/gtk/GtkToolkit.java:
10932 2004-01-10 Michael Koch <konqueror@gmx.de>
10934 * javax/swing/JRadioButtonMenuItem.java,
10935 javax/swing/JSeparator.java,
10936 javax/swing/JSplitPane.java,
10937 javax/swing/JTextPane.java,
10938 javax/swing/JToolBar.java,
10939 javax/swing/ListCellRenderer.java,
10940 javax/swing/ListModel.java,
10941 javax/swing/MenuElement.java,
10942 javax/swing/OverlayLayout.java,
10943 javax/swing/ProgressMonitor.java,
10944 javax/swing/ProgressMonitorInputStream.java,
10945 javax/swing/Renderer.java,
10946 javax/swing/RootPaneContainer.java,
10947 javax/swing/Scrollable.java,
10948 javax/swing/SingleSelectionModel.java,
10949 javax/swing/ToolTipManager.java,
10950 javax/swing/ViewportLayout.java,
10951 javax/swing/event/DocumentEvent.java,
10952 javax/swing/event/SwingPropertyChangeSupport.java,
10953 javax/swing/event/TreeSelectionEvent.java,
10954 javax/swing/event/UndoableEditEvent.java,
10955 javax/swing/text/AbstractDocument.java,
10956 javax/swing/text/AttributeSet.java,
10957 javax/swing/text/Caret.java,
10958 javax/swing/text/ComponentView.java,
10959 javax/swing/text/DefaultCaret.java,
10960 javax/swing/text/DefaultEditorKit.java,
10961 javax/swing/text/Document.java,
10962 javax/swing/text/EditorKit.java,
10963 javax/swing/text/GapContent.java,
10964 javax/swing/text/Keymap.java,
10965 javax/swing/text/MutableAttributeSet.java,
10966 javax/swing/text/PlainEditorKit.java,
10967 javax/swing/text/Segment.java,
10968 javax/swing/text/Style.java,
10969 javax/swing/text/StyledDocument.java,
10970 javax/swing/text/StyledEditorKit.java,
10971 javax/swing/text/TextAction.java,
10972 javax/swing/text/View.java: Fixed import statements.
10974 2004-01-08 Graydon Hoare <graydon@redhat.com>
10976 * javax/swing/JLayeredPane.java: Rewrite to accomodate
10977 djee@redhat.com's recent inverse ordering of Container elements.
10979 2004-01-09 Michael Koch <konqueror@gmx.de>
10981 * gnu/java/lang/ArrayHelper.java
10982 (equalsArray): Removed.
10984 2004-01-09 Andrew Haley <aph@redhat.com>
10986 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
10987 a Utf8Const field before looking at its class.
10989 2004-01-09 Michael Koch <konqueror@gmx.de>
10991 * javax/print/attribute/standard/DocumentName.java,
10992 javax/print/attribute/standard/JobHoldUntil.java,
10993 javax/print/attribute/standard/JobMessageFromOperator.java,
10994 javax/print/attribute/standard/JobName.java,
10995 javax/print/attribute/standard/JobOriginatingUserName.java,
10996 javax/print/attribute/standard/OutputDeviceAssigned.java,
10997 javax/print/attribute/standard/PrinterInfo.java,
10998 javax/print/attribute/standard/PrinterLocation.java,
10999 javax/print/attribute/standard/PrinterMakeAndModel.java,
11000 javax/print/attribute/standard/PrinterMessageFromOperator.java,
11001 javax/print/attribute/standard/PrinterName.java,
11002 javax/print/attribute/standard/RequestingUserName.java: New files.
11003 * Makefile.am (javax_source_files): Added new files.
11004 * Makefile.in: Regenerated.
11006 2004-01-09 Michael Koch <konqueror@gmx.de>
11008 * javax/swing/AbstractAction.java,
11009 javax/swing/AbstractSet.java,
11010 javax/swing/Action.java,
11011 javax/swing/ActionMap.java,
11012 javax/swing/BoundedRangeModel.java,
11013 javax/swing/ButtonModel.java,
11014 javax/swing/CellEditor.java,
11015 javax/swing/CellRendererPane.java,
11016 javax/swing/ComboBoxEditor.java,
11017 javax/swing/DebugGraphics.java,
11018 javax/swing/DefaultCellEditor.java,
11019 javax/swing/DefaultCellRenderer.java,
11020 javax/swing/DefaultComboBoxModel.java,
11021 javax/swing/DefaultDesktopManager.java,
11022 javax/swing/DefaultFocusManager.java,
11023 javax/swing/DefaultListCellRenderer.java,
11024 javax/swing/Icon.java,
11025 javax/swing/JButton.java,
11026 javax/swing/JCheckBoxMenuItem.java,
11027 javax/swing/JDesktopPane.java,
11028 javax/swing/JEditorPane.java,
11029 javax/swing/JMenu.java,
11030 javax/swing/JPanel.java,
11031 javax/swing/JPasswordField.java,
11032 javax/swing/JPopupMenu.java,
11033 javax/swing/JProgressBar.java: Reworked imports.
11035 2004-01-09 Michael Koch <konqueror@gmx.de>
11037 * java/awt/geom/PathIterator.java
11038 (WIND_EVEN_ODD): Removed redundant modifiers.
11039 (WIND_NON_ZERO): Likewise.
11040 (SEG_MOVETO): Likewise.
11041 (SEG_LINETO): Likewise.
11042 (SEG_QUADTO): Likewise.
11043 (SEG_CUBICTO): Likewise.
11044 (SEG_CLOSE): Likewise.
11045 * java/awt/image/SinglePixelPackedSampleModel.java:
11046 Removed redundant semicolon.
11047 * java/io/ObjectInputStream.java
11048 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
11049 * java/util/logging/Filter.java
11050 (isLoggable): Removed redundant modifier.
11051 * java/util/logging/LogManager.java:
11052 Removed redundant semicolon.
11053 * java/util/logging/XMLFormatter.java
11054 (format): Removed unused variable "key".
11056 2004-01-08 Fernando Nasser <fnasser@redhat.com>
11058 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
11059 New name for the former setFile native method.
11060 (setFile): New method.
11061 (setDirectory): Implemented.
11062 (connectSignals): New native method.
11063 (setFilenameFilter): Improve comment.
11064 (getGraphics): Comment.
11065 (gtkHideFileDialog): New method.
11066 (gtkDisposeFileDialog): New method.
11067 (gtkSetFilename): New method.
11068 * java/awt/Dialog.java (show): Block on modal dialogs, but only
11069 for FileDialog for now.
11070 (hide): New method.
11071 (dispose): New method.
11072 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
11073 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
11074 deprecated creation functions. Make dialog modal. Add it to the
11076 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
11078 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
11080 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
11082 (window_closed): New function.
11083 (ok_clicked): New function.
11084 (cancel_clicked): New function.
11086 2004-01-08 Michael Koch <konqueror@gmx.de>
11088 * javax/swing/JLayeredPane.java: Revert changes to standard
11089 boilerplate, reworked imports.
11091 2004-01-07 Tom Tromey <tromey@redhat.com>
11094 * verify.cc (state::merge): Copy changed locals out of subroutine
11096 (state::FLAG_CHANGED): New const.
11097 (state::FLAG_UNUSED): Likewise.
11098 (state::local_changed): Removed. Updated all users.
11099 (state::flags): New field.
11100 (state::merge): Added jsr_semantics argument, more logic.
11101 (push_jump_merge): Added jsr_semantics argument.
11102 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
11103 merging through the jsr instruction.
11105 2004-01-07 Tom Tromey <tromey@redhat.com>
11107 * scripts/MakeDefaultMimeTypes.java: Use \n, not
11110 2004-01-07 Graydon Hoare <graydon@redhat.com>
11112 * java/awt/Container.java (LightweightDispatcher): Implement.
11113 (visitChild): Reuse graphics object.
11114 (dispatchEventImpl): Optionally dispatch to lightweight.
11115 (addNotifyContainerChildren): Build LightweightDispatcher.
11117 2004-01-07 David Jee <djee@redhat.com>
11119 * java/awt/Container.java
11120 (update): Clear only the clipped region, instead of clearing the
11122 (visitChildren): Visit children in descending order.
11124 2004-01-07 Michael Koch <konqueror@gmx.de>
11126 * java/lang/reflect/Array.java: Merged documentation with classpath.
11128 2004-01-07 Michael Koch <konqueror@gmx.de>
11130 * java/text/CollationElementIterator.java
11131 (textIndex): Renamed from index.
11132 * java/text/CollationKey.java
11133 (collator): New member.
11134 (CollationKey): New argument for parent collator.
11135 (equals): Check for same collator, source string and key array.
11136 * java/text/RuleBasedCollator.java:
11138 (RuleBasedCollator): Don't re-initialize frenchAccents with default
11140 (getCollationElementIterator): Rewritten.
11141 (getCollationKey): Added new argument to CollationKey constructor.
11143 2004-01-07 Michael Koch <konqueror@gmx.de>
11145 * gnu/java/nio/DatagramChannelImpl.java
11146 (blocking): Removed.
11147 (DatagramChannelImpl): Call configureBlocking().
11148 (implConfigureBlocking): Dont initialize blocking.
11149 * gnu/java/nio/ServerSocketChannelImpl.java
11150 (blocking): Removed.
11151 (ServerSocketChannelImpl): Call configureBlocking().
11152 (implConfigureBlocking): Dont initialize blocking.
11153 * gnu/java/nio/SocketChannelImpl.java
11154 (blocking): Removed.
11155 (SocketChannelImpl): Call configureBlocking().
11156 (implConfigureBlocking): Dont initialize blocking.
11157 (connect): Use isBlocking().
11158 * java/nio/channels/spi/AbstractSelectableChannel.java
11159 (configureBlocking): Use blockingLock() instead of LOCK.
11160 Set blocking after successfully called implConfigureBlocking().
11161 (register): Use blockingLock() instead of LOCK.
11163 2004-01-07 Michael Koch <konqueror@gmx.de>
11165 * java/net/ServerSocket.java (isBound): Fixed documentation.
11167 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
11169 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
11170 (changeEvent): Create event object on demand.
11171 (DefaultBoundedRangeModel, toString, setValue, setExtent,
11172 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
11173 fireStateChanged): Re-written.
11174 * javax/swing/event/EventListenerList.java: Reformatted, document
11176 (toString): Implemented.
11177 (getListeners): Re-written.
11178 (remove): Re-written.
11180 (NO_LISTENERS): New singleton field.
11181 (listenerList): Declare as transient; document.
11182 (serialVersionUID): Document.
11183 (getListenerCount(Class)): More efficient implementation,
11184 also accepts null argument. Improve Javadoc.
11185 (getListenerCount()): Remove unnecessary cast; docfix.
11186 * javax/swing/undo/UndoableEditSupport.java:
11187 Re-format, document.
11188 (UndoableEditSupport): Set realSource field. Improve documentation.
11189 (_postEdit): Iterate over cloned listener vector.
11190 (toString): Don't emit realSource.
11191 (beginUpdate, endUpdate): Support nested updates.
11192 (postEdit): Use compound edit if present.
11194 2004-01-06 Graydon Hoare <graydon@redhat.com>
11196 * java/awt/Container.java (swapComponents): Add forgotten
11197 function, required for JLayeredPane change.
11199 2004-01-06 Michael Koch <konqueror@gmx.de>
11201 * java/text/CollationElementIterator.java: Reformated.
11202 (CollationElementIterator): Changed order of arguments.
11203 * java/text/RuleBasedCollator.java
11204 (RuleBasedCollator): Merged class documentation.
11205 (CollationElement): Added documentation.
11206 (compare): Reformated, renamed arguments.
11207 (equals): Likewise.
11208 (getCollationElementIterator): Likewise.
11209 (getCollationKey): Likewise.
11211 2004-01-06 Graydon Hoare <graydon@redhat.com>
11213 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
11215 2004-01-06 Michael Koch <konqueror@gmx.de>
11217 * gnu/java/net/protocol/file/Connection.java:
11218 Reformated copyright.
11219 (hdrHash): Removed.
11221 (gotHeaders): Removed.
11222 (getHeaderField): Removed.
11223 (getHeaderField): Removed.
11224 (getHeaderFieldKey): Removed.
11226 (getField): Removed.
11227 (getHeaders): Removed.
11229 2004-01-06 Michael Koch <konqueror@gmx.de>
11231 * javax/print/attribute/standard/DateTimeAtCompleted.java,
11232 javax/print/attribute/standard/DateTimeAtCreation.java,
11233 javax/print/attribute/standard/DateTimeAtProcessing.java,
11234 javax/print/attribute/standard/JobImpressionsCompleted.java,
11235 javax/print/attribute/standard/JobKOctets.java,
11236 javax/print/attribute/standard/JobKOctetsProcessed.java,
11237 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
11238 javax/print/attribute/standard/JobPrioritySupported.java: New files.
11239 * Makefile.am (javax_source_files): Added new files.
11240 * Makefile.in: Regenerated.
11242 2004-01-06 Michael Koch <konqueror@gmx.de>
11244 * java/net/URLConnection.java
11245 (contentHandler): Removed.
11247 (getHeaderFields): Return an empty map instead of null.
11248 (getContent): Connect if needed, renamed "cType" to "type" and
11249 "contentHandler" to "ch" and made it a local variable.
11250 (getPermission): Don't use package in class name.
11251 (setDefaultRequestProperty): Fixed typo in documentation.
11252 (initializeDateFormats): Made locale a local variable.
11254 2004-01-06 Michael Koch <konqueror@gmx.de>
11256 * java/lang/Package.java
11257 (getPackage): Get the current class loader directly.
11258 * java/lang/SecurityManager.java
11259 (currentLoadedClass): Dont iterate over class contexts.
11260 (classLoaderDepth): Don't check class loaders if everything is allowed.
11262 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
11264 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
11265 (pre_event_handler): Set all insets to 0 when a Configure event
11266 is received for a GtkPlug.
11267 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
11268 Make handle long, not int.
11269 (EmbeddedWindow()): New constructor.
11270 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
11272 (setHandle): New method.
11273 (getHandle): Return long, not int.
11274 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
11276 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
11277 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
11278 (create(long)): Take long parameter, not int. Cast gtk_plug_new
11279 argument to GdkNativeWindow.
11280 (construct): New method.
11281 (embed): New method.
11283 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
11284 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
11285 (create(int, int)): New method.
11286 (create): Call new create method.
11287 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
11289 (childResized): Remove native implementation. Implement in
11291 (getHScrollbarHeight, getVScrollbarWidth): Call
11292 gtk_widget_size_request to get scrollbar dimensions.
11293 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
11294 call getVScrollbarWidth and getHScrollbarHeight when vertical
11295 and horizontal scrollbars respectively are needed.
11296 (doLayout): Enlarge child if it is smaller than the viewport.
11298 2004-01-05 Fernando Nasser <fnasser@redhat.com>
11300 * java/awt/Dialog.java (constructor): Accept null title as per spec.
11301 * java/awt/FileDialog.java (constructor): Throw exception on invalid
11302 argument as per spec.
11304 2004-01-05 Fernando Nasser <fnasser@redhat.com>
11306 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
11308 (remove): Ditto. Also, Check for valid argument.
11309 (removeAll): Use peer interface method.
11310 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
11311 native add function.
11312 (nativeRemove): New name for native remove function.
11313 (getHistory): New native function.
11314 (constructor): Generate ItemEvent.
11315 (add): Ditto, if selection is changed.
11316 (remove): Ditto, ditto.
11317 (removeAll): Add implementation.
11318 (handleEvent): Remove. Dead code.
11319 (choicePostItemEvent): Add comment.
11320 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
11321 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
11322 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
11323 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
11324 comments and fix condition to change selection.
11325 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
11326 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
11327 remove all capability.
11328 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
11329 (item_activate): Add cast to remove compiler warning.
11331 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
11333 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
11334 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
11335 (getPreferredSize): Call preferredSize.
11336 (preferredSize): Call gtkWidgetGetPreferredDimensions.
11337 (getMinimumSize): Call minimumSize.
11338 (minimumSize): Call gtkWidgetGetPreferredDimensions.
11339 (gtkWidgetGetDimensions): Return the peer widget's current size
11341 (gtkWidgetGetPreferredDimensions): Return the peer widget's
11342 natural size request.
11344 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
11346 Thanks to Brian Gough <bjg@network-theory.com>
11347 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
11348 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
11350 2004-01-04 Matthias Klose <doko@debian.org>
11352 * aclocal.m4: Rebuilt using "aclocal -I .".
11353 * configure: Rebuilt.
11355 2004-01-03 Per Bothner <per@bothner.com>
11357 * java/util/Date.java (parse): Fix a number of problems.
11358 (skipParens): Remove no-longer-needed method.