OID.java, [...]: Import statements cleaned up.
[gcc.git] / libjava / ChangeLog
1 2004-10-17 Michael Koch <konqueror@gmx.de>
2
3 * gnu/java/security/OID.java,
4 gnu/java/security/provider/DSAParameters.java,
5 gnu/java/security/provider/DSASignature.java,
6 gnu/java/security/x509/X500DistinguishedName.java,
7 gnu/java/security/x509/X509CRL.java:
8 Import statements cleaned up.
9
10 2004-10-16 Michael Koch <konqueror@gmx.de>
11
12 * gnu/java/nio/NIODatagramSocket.java,
13 gnu/java/nio/ServerSocketChannelImpl.java:
14 Reorganized import statements.
15
16 2004-10-16 Michael Koch <konqueror@gmx.de>
17
18 * gnu/java/rmi/RMIMarshalledObjectOutputStream.java
19 gnu/java/rmi/rmic/RMIC.java,
20 gnu/java/rmi/server/RMIHashes.java,
21 gnu/java/rmi/server/RMIObjectInputStream.java,
22 gnu/java/rmi/server/RMIObjectOutputStream.java,
23 gnu/java/rmi/server/UnicastConnection.java,
24 gnu/java/rmi/server/UnicastConnectionManager.java,
25 gnu/java/rmi/server/UnicastRemoteCall.java,
26 gnu/java/rmi/server/UnicastServer.java,
27 gnu/java/rmi/server/UnicastServerRef.java,
28 java/rmi/MarshalledObject.java,
29 java/rmi/Naming.java,
30 java/rmi/RMISecurityManager.java,
31 java/rmi/Remote.java,
32 java/rmi/activation/Activatable.java,
33 java/rmi/activation/ActivationDesc.java,
34 java/rmi/activation/ActivationGroup.java,
35 java/rmi/activation/ActivationGroupDesc.java,
36 java/rmi/activation/ActivationGroupID.java,
37 java/rmi/activation/ActivationID.java,
38 java/rmi/activation/ActivationInstantiator.java,
39 java/rmi/activation/ActivationMonitor.java,
40 java/rmi/activation/ActivationSystem.java,
41 java/rmi/activation/Activator.java,
42 java/rmi/dgc/DGC.java,
43 java/rmi/dgc/Lease.java,
44 java/rmi/dgc/VMID.java,
45 java/rmi/registry/LocateRegistry.java,
46 java/rmi/registry/Registry.java,
47 java/rmi/registry/RegistryHandler.java,
48 java/rmi/server/LoaderHandler.java,
49 java/rmi/server/LogStream.java,
50 java/rmi/server/ObjID.java,
51 java/rmi/server/Operation.java,
52 java/rmi/server/RMIClassLoader.java,
53 java/rmi/server/RMIClassLoaderSpi.java,
54 java/rmi/server/RMIClientSocketFactory.java,
55 java/rmi/server/RMIFailureHandler.java,
56 java/rmi/server/RMIServerSocketFactory.java,
57 java/rmi/server/RMISocketFactory.java,
58 java/rmi/server/RemoteCall.java,
59 java/rmi/server/RemoteObject.java,
60 java/rmi/server/RemoteRef.java,
61 java/rmi/server/RemoteServer.java,
62 java/rmi/server/RemoteStub.java,
63 java/rmi/server/ServerRef.java,
64 java/rmi/server/Skeleton.java,
65 java/rmi/server/SkeletonMismatchException.java,
66 java/rmi/server/UID.java,
67 java/rmi/server/UnicastRemoteObject.java,
68 java/rmi/server/Unreferenced.java:
69 File headers and import statements cleaned up.
70
71 2004-10-16 Michael Koch <konqueror@gmx.de>
72
73 * libjava/gnu/java/nio/charset/UTF_16.java,
74 libjava/gnu/java/nio/charset/UTF_16BE.java,
75 libjava/gnu/java/nio/charset/UTF_16LE.java,
76 libjava/java/nio/ByteOrder.java,
77 libjava/java/nio/MappedByteBuffer.java,
78 libjava/java/nio/channels/Channels.java,
79 libjava/java/nio/channels/spi/SelectorProvider.java,
80 libjava/java/nio/charset/Charset.java:
81 Cleanup.
82
83 2004-10-16 Michael Koch <konqueror@gmx.de>
84
85 * gnu/java/nio/charset/UTF_16Encoder.java
86 (UTF_16Encoder): Fixed maxBytesPerChar handling.
87
88 2004-10-16 Michael Koch <konqueror@gmx.de>
89
90 * java/math/BigDecimal.java, java/math/BigInteger.java:
91 Reorganized import statements, removed redundant and
92 reorganized modifiers.
93
94 2004-10-16 Michael Koch <konqueror@gmx.de>
95
96 * gnu/java/beans/ExplicitBeanInfo.java:
97 Explicitely import java.awt.Image.
98 (getIcon): Fixed off-by-one error.
99
100 2004-10-15 Andrew Haley <aph@redhat.com>
101
102 * Makefile.am (nat_files, xlib_nat_files): New.
103 * Makefile.in: Regenerate.
104
105 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
106
107 * jni.cc (_Jv_JNIMethod::call): Use ffi_java_raw_call instead of
108 ffi_raw_call if FFI_NATIVE_RAW_API is not defined.
109
110 2004-10-13 Andrew Haley <aph@redhat.com>
111
112 * interpret.cc (_Jv_InterpMethod::run): Initialize
113 _Jv_StartOfInterpreter.
114 (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): Functions removed.
115 (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): New variables.
116 * gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Use
117 _Unwind_FindEnclosingFunction to discover whether PC is within the
118 interpreter.
119
120 2004-10-12 Rutger Ovidius <ovidr@users.sourceforge.net>
121
122 PR libgcj/17903:
123 * testsuite/libjava.lang/md5test.java: New file.
124 * testsuite/libjava.lang/md5test.out: Likewise.
125 * testsuite/libjava.lang/shatest.java: Likewise.
126 * testsuite/libjava.lang/shatest.out: Likewise.
127
128 2004-10-11 Richard Henderson <rth@redhat.com>
129
130 * include/posix-threads.h <__alpha__> (_Jv_ThreadId_t): Use void*.
131 (_Jv_ThreadSelf): Use __builtin_thread_pointer.
132
133 2004-10-08 Bryce McKinlay <mckinlay@redhat.com>
134
135 * java/util/Calendar.java (set): Invalidate DST_OFFSET
136 field as a DST boundary may have been crossed.
137 * java/util/GregorianCalendar.java (add): Throw
138 IllegalArgumentException on attempt to add to DST_OFFSET or
139 ZONE_OFFSET fields. Update javadoc.
140
141 2004-10-09 Michael Koch <konqueror@gmx.de>
142
143 * java/io/CharArrayWriter.java
144 (resize): Removed redundant 'final' modifier.
145 * java/io/DataInputStream.java
146 (readFully): Throw IndexOutOfBoundsException of len < 0.
147 * java/io/FileDescriptor.java,
148 java/io/FileInputStream.java,
149 java/io/FileOutputStream.java,
150 java/io/ObjectOutputStream.java,
151 java/io/ObjectStreamClass.java,
152 java/io/PipedInputStream.java,
153 java/io/RandomAccessFile.java:
154 Reorganized import statements.
155
156 2004-10-09 Michael Koch <konqueror@gmx.de>
157
158 * gnu/java/rmi/rmic/RMIC.java,
159 gnu/java/rmi/server/RMIHashes.java,
160 gnu/java/rmi/server/RMIObjectInputStream.java,
161 gnu/java/rmi/server/UnicastConnection.java,
162 gnu/java/rmi/server/UnicastConnectionManager.java,
163 gnu/java/rmi/server/UnicastRemoteCall.java,
164 gnu/java/rmi/server/UnicastServerRef.java:
165 Reworked import statements and fixed file headers.
166
167 2004-10-04 Loren J. Rittle <ljrittle@acm.org>
168
169 * configure.ac (*-*-freebsd[[1234]]*): Refine error message
170 emission rule.
171 * configure: Rebuilt.
172
173 2004-09-30 Tom Tromey <tromey@redhat.com>
174
175 * java/text/MessageFormat.java (Field): Constructor now
176 protected.
177
178 2004-09-30 Tom Tromey <tromey@redhat.com>
179
180 * javax/crypto/MacSpi.java: Fixed typo.
181
182 2004-09-30 Michael Koch <konqueror@gmx.de>
183
184 * java/net/InetAddress.java: Reformatted.
185 (loopback): Initialize with Inet4Address object.
186 (static): Initialize ANY_IF with Inet4Address object.
187 (InetAddress): Removed unused package-private constructor.
188
189 2004-09-30 Michael Koch <konqueror@gmx.de>
190
191 * java/beans/Beans.java,
192 java/beans/EventHandler.java,
193 java/beans/EventSetDescriptor.java,
194 java/beans/Introspector.java,
195 java/beans/PropertyEditorManager.java,
196 java/beans/beancontext/BeanContext.java,
197 java/beans/beancontext/BeanContextChild.java,
198 java/beans/beancontext/BeanContextChildSupport.java,
199 java/beans/beancontext/BeanContextMembershipEvent.java:
200 Reordered import statements and removed redundant modifiers.
201
202 2004-09-29 Tom Tromey <tromey@redhat.com>
203
204 PR libgcj/17715:
205 * Makefile.in: Rebuilt.
206 * Makefile.am (libgcj-@gcc_version@.jar): Include properties
207 files.
208 (all_property_files): New macro.
209
210 * Makefile.in: Rebuilt.
211 * Makefile.am (ordinary_java_source_files): Re-sorted.
212 (libgcj.la): Moved to old location near lib-gnu-awt-xlib.la.
213
214 2004-09-28 Tom Tromey <tromey@redhat.com>
215
216 * jni.cc (_Jv_JNI_RegisterNatives): Formatting fixlets.
217
218 PR libgcj/17222:
219 * Makefile.am (libgcj.la): Restored.
220 * Makefile.in: Rebuilt.
221
222 2004-09-28 Michael Koch <konqueror@gmx.de>
223
224 * java/net/URLConnection.java: Reformatted.
225 * java/net/URLClassLoader.java: Reformatted.
226 (getContent): Reordered return of content.
227 (getContentHandler): Don't check for null explicitely.
228
229 2004-09-27 Michael Koch <konqueror@gmx.de>
230
231 * java/io/BufferedInputStream.java
232 (BufferedInputStream): Added Jeroen Frijters to authors.
233 (count): Don't explicitely initialize with default value.
234 (pos): Likewise.
235 (marklimit): Likewise.
236 (read): Changed boolean expression to match GNU classpath' version.
237 (reset): Add proper message to exception.
238 (skip): Check for closed stream.
239 (refill): Likewise.
240
241 2004-09-26 Per Bothner <per@bothner.com>
242
243 * prims.cc (unblock_signal): Annotate signum with __unused__ to
244 avoid warnings in the non-POSIX_VERSION case.
245 Also, we only need this function if either HANDLE_SEGV or HANDLE_FPE,
246 so place it inside an #if block.
247 * include/default-signal.h (SIGNAL_HANDLER): Parameters are __unused__.
248 * include/i386-signal.h (SIGNAL_HANDLER): Likewise
249 * include/mips-signal.h (SIGNAL_HANDLER): Likewise
250 * include/sparc-signal.h (SIGNAL_HANDLER): Likewise
251
252 2004-09-26 Per Bothner <per@bothner.com>
253
254 * prims.cc (process_gcj_properties): Optimization.
255
256 2004-09-26 Per Bothner <per@bothner.com>
257
258 * java/util/Collections.java (sort): Copy from array in forwards
259 order, rather than reverse order which may be much less efficient.
260
261 2004-09-26 Mark Wielaard <mark@klomp.org>
262
263 * java/lang/System.java (properties): Make package private.
264 * java/lang/Throwable.java (StaticData.nl): Initialize through
265 directly accessing System.properties.getProperty().
266
267 * java/lang/Throwable.java (nl): Remove static field.
268 (StaticData): New private static inner class.
269 (stackTraceStringBuffer): Use StaticData.nl.
270
271 2004-09-26 Casey Marshall <csm@gnu.org>
272
273 * java/security/ProtectionDomain.java
274 (<init>(CodeSource,PermissionCollection)): set `staticBinding' to
275 `true'.
276
277 * java/security/SecureClassLoader.java
278 (defineClass): make protection domain dynamically bound.
279 (getPermissions): call `getCurrentPolicy' to avoid permission
280 check.
281
282 2004-09-25 Mark Wielaard <mark@klomp.org>
283
284 * Makefile.am (core_java_source_files): Add VMTimeZone.java.
285 (nat_source_files): Rename natTimeZone.cc to natVMTimeZone.cc.
286 * Makefile.in: Regenerated.
287
288 * gcj/javaprims.h: Regenerated.
289
290 * java/util/TimeZone.java (defaultZone): Use VMTimeZone.
291 (getDefaultTimeZone): Make package private. Check that GMToffset
292 contains at least one digit.
293 (getDefaultTimeZoneId, readTimeZoneFile, readtzFile): (Re)Moved to
294 VMTimeZone.
295 * util/VMTimeZone.java: New file with above methods.
296
297 * java/util/natTimeZone.cc: Removed (renamed).
298 * java/util/natVMTimeZone.cc: Added (renamed).
299
300 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
301
302 * java/util/TimeZone.java
303 (getDefaultTimeZone): Fixed test to distinguish between hours and
304 minutes in specified timezone.
305
306 2004-09-25 Jeroen Frijters <jeroen@frijters.net>
307
308 * java/lang/reflect/Proxy.java (getPackage, ClassFactory): Fixed
309 handling of default package. (generate): Removed confused comments
310 and code about making Method and Field accessible.
311
312 2004-09-25 Tom Tromey <tromey@redhat.com>
313
314 PR java/17500:
315 * testsuite/libjava.compile/pr17500.java: New file.
316
317 2004-09-25 Shashank Bapat <shashankbapat@yahoo.com>
318 Mark Wielaard <mark@klomp.org>
319
320 * gnu/regexp/RE.java (initialize): Add RETokenLookAhead support.
321 * gnu/regexp/RETokenLookAhead.java: New file.
322
323 * Makefile.am (ordinary_java_source_files): Add RETokenLookAhead.java.
324 * Makefile.in: Regenerated.
325
326 2004-09-25 Michael Koch <konqueror@gmx.de>
327
328 * java/io/ObjectStreamField.java:
329 Removed unused import statement.
330
331 2004-09-24 Tom Tromey <tromey@redhat.com>
332
333 PR java/15656:
334 * testsuite/libjava.compile/pr15656.xfail: New file.
335 * testsuite/libjava.compile/pr15656.java: new file.
336
337 PR java/16789:
338 * testsuite/libjava.lang/pr16789.out: New file.
339 * testsuite/libjava.lang/pr16789.java: New file.
340
341 2004-09-24 Andrew Haley <aph@redhat.com>
342
343 PR java/16927
344 * testsuite/libjava.compile/AssertBug.java: New file.
345
346 2004-09-24 Casey Marshall <csm@gnu.org>
347
348 * java/util/PropertyPermissionCollection.java
349 (implies): avoid infinite loop.
350
351 2004-09-24 Andrew John Hughes <gnu_andrew@member.fsf.org>
352
353 * javax/security/auth/PrivateCredentialPermission.java
354 (PrivateCredentialPermission): added serialization UID
355
356
357 2004-09-24 Ilya Perminov <iperminov@logicalsoft.com>
358
359 * gnu/java/rmi/server/UnicastServer.java
360 (incomingMessageCall): Added code to handle Errors.
361 * gnu/java/rmi/server/UnicastServerRef.java
362 (incomingMessageCall): Added code to handle Errors.
363
364
365 2004-09-24 Tom Tromey <tromey@redhat.com>
366
367 * java/lang/ClassLoader.java (loadedClasses): Declare as HashMap.
368 (definedPackages): Likewise.
369
370 2004-09-24 Michael Koch <konqueror@gmx.de>
371
372 * java/io/ObjectInputStream.java:
373 Re-ordered imports.
374
375 2004-09-24 Casey Marshall <csm@gnu.org>
376
377 * java/io/ObjectInputStream.java (callReadMethod): re-throw
378 `ClassNotFoundException'.
379
380 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
381
382 * java/io/ObjectInputStream.java (readObject): Delegate instantation
383 of Externalizable classes to ObjectStreamClass.
384 * java/io/ObjectStreamClass.java (newInstance): New method to
385 instantiate Externalizable (while ignoring the accessibility of
386 the constructor). (constructor): New field to cache the constructor.
387
388 2004-09-24 Mark Wielaard <mark@klomp.org>
389
390 * java/net/URL.java (systemClassLoader): New static field.
391 (getURLStreamHandler): Always use system/application classloader
392 for finding URLStreamhandler. Remove unecessary instanceof checks.
393
394 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
395
396 * java/net/URL.java
397 (set): This method now matches the behaviour of the JDK.
398 (DEFAULT_SEARCH_PATH): Added "gnu.inet".
399
400 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
401
402 * java/net/URL.java (URL): Delete whitespaces in the protocol string.
403
404 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
405
406 * java/net/URL.java (URL(String,String,int,String,URLStreamHandler):
407 Don't set authority if host isn't specified.
408
409 2004-09-24 Michael Koch <konqueror@gmx.de>
410
411 * gnu/java/nio/PipeImpl.java: Use VMPipe for native stuff.
412 * gnu/java/nio/SelectorImpl.java: Use VMSelector for native stuff.
413 * gnu/java/nio/VMPipe.java,
414 gnu/java/nio/VMSelector.java:
415 New files.
416 * gnu/java/nio/natPipeImplEcos.cc,
417 gnu/java/nio/natPipeImplPosix.cc,
418 gnu/java/nio/natPipeImplWin32.cc:
419 Ported to VMPipe.
420 * gnu/java/nio/natSelectorImplEcos.cc,
421 gnu/java/nio/natSelectorImplPosix.cc,
422 gnu/java/nio/natSelectorImplWin32.cc:
423 Ported to VMSelector.
424 * Makefile.am: Added new files gnu/java/nio/VMPipe.java and
425 gnu/java/nio/VMSelector.java.
426 * Makefile.in: Regenerated.
427
428 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
429
430 * java/lang/StackTraceElement.java
431 (className): Renamed field to declaringClass to be compatible
432 with Sun serialization format.
433
434 2004-09-23 Michael Koch <konqueror@gmx.de>
435
436 * java/applet/AppletContext.java,
437 java/applet/Applet.java,
438 java/applet/AppletStub.java,
439 java/applet/AudioClip.java:
440 Jalopied and checkstyle clean.
441
442 2004-09-23 Mark Wielaard <mark@klomp.org>
443
444 * java/util/Collections.java
445 (binarySearch(List, Object, Comparator)): Explicitly
446 reverse direction in list iterator.
447 (rotate): Just return when list is empty.
448
449 2004-09-23 Tom Tromey <tromey@redhat.com>
450
451 PR java/17329:
452 * testsuite/libjava.compile/pr17329.java: New file.
453
454 PR java/17380:
455 * testsuite/libjava.jacks/jacks.xfail: Added 9.2-implicit-6 and
456 9.2-implicit-7.
457
458 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
459
460 * Makefile.am: Run aclocal with -I ../config
461 * acinclude.m4: Delete macros picked up from ../config and tidy.
462 (AM_ICONV,AM_LC_MESSAGES, PKG_CHECK_MODULES): Delete.
463 * aclocal.m4, configure, Makefile.in, gcj/Makefile.in: Regenerate.
464 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
465
466 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
467
468 * aclocal.m4: Regenerate with aclocal 1.9.2.
469 * configure: Regenerate.
470 * Makefile.in, gcj/Makefile.in: Regenerate with automake 1.9.2.
471 * include/Makefile.in, testsuite/Makefile.in: Likewise.
472
473 2004-09-22 David Daney <ddaney@avtrex.com>
474
475 PR libgcj/17623
476 * java/net/URL.java (URL): Copy userInfo from context.
477 (getUserInfo): Return cached userInfo if present.
478
479 2004-09-22 Tom Tromey <tromey@redhat.com>
480
481 PR libgcj/6182:
482 * mauve-libgcj: Enable java.lang.Character tests.
483
484 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
485
486 * Makefile.am (lib_org_ietf_jgss_la_DEPENDENCIES): Add missing
487 dependencies.
488 (lib_org_ietf_jgss_la_LIBADD): Likewise.
489 * Makefile.in: Regenerated.
490
491 2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
492
493 * configure.ac: Introduce AC_C_BIGENDIAN_CROSS for WORDS_BIGENDIAN.
494 * configure: Regenerate.
495 * include/config.h.in: Likewise.
496 * jni/gtk-peer/gtkpeer.h (SWAPU32): Introduce macro to swap pixels.
497 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c: Moved SWAPU32
498 macro to gtkpeer.h.
499 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
500 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_getImagePixels): Convert
501 pixels from 0xBBGGRRAA to 0xAARRGGBB only on Little Endian
502 architectures.
503 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c (area_updated):
504 Likewise.
505
506 2004-09-22 Tom Tromey <tromey@redhat.com>
507
508 PR libgcj/14446:
509 * java/util/zip/GZIPInputStream.java (read): Avoid sign extension
510 when comparing CRCs.
511 * java/util/zip/InflaterInputStream.java (onebytebuffer): New
512 field.
513 (read()): New overload.
514
515 2004-09-21 Tom Tromey <tromey@redhat.com>
516
517 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
518 Indentation fix.
519
520 2004-09-21 Michael Koch <konqueror@gmx.de>
521
522 * java/net/Socket.java
523 (getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
524
525 2004-09-21 Casey Marshall <csm@gnu.org>
526
527 * javax/crypto/MacSpi.java (clone): Provide meaningful
528 implementation.
529
530 2004-09-21 Tom Tromey <tromey@redhat.com>
531
532 PR libgcj/16869:
533 * Makefile.in: Rebuilt.
534 * Makefile.am (MOSTLYCLEANFILES): Removed.
535 (mostlyclean-local): Remove header files.
536
537 2004-09-21 Casey Marshall <csm@gnu.org>
538
539 * java/security/cert/X509CRLSelector.java:
540 (match): remove unreachable try-catch clauses.
541 Reported by: Dalibor Topic <robilad@kaffe.org>
542
543 2004-09-21 Mark Wielaard <mark@klomp.org>
544
545 * java/util/TreeMap.java (root): Don't initialize.
546 (TreeMap(Comparator)): Call fabricateTree(0).
547 (fabricateTree): Initialize root and size when count is 0.
548
549 2004-09-21 Sven de Marothy <sven@physto.se>
550
551 * java/nio/ByteBuffer.java (hashCode): Implemented.
552 * java/nio/CharBuffer.java: Likewise.
553 * java/nio/DoubleBuffer.java: Likewise.
554 * java/nio/FloatBuffer.java: Likewise.
555 * java/nio/LongBuffer.java: Likewise.
556 * java/nio/IntBuffer.java: Likewise.
557 * java/nio/ShortBuffer.java: Likewise.
558
559 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
560
561 * javax/security/auth/x500/X500Principal.java: Fix some merge glitches.
562
563 2004-09-21 Michael Koch <konqueror@gmx.de>
564
565 * javax/net/ssl/SSLServerSocket.java:
566 Removed comment about "Do not edit this file, it's generated.".
567
568 2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
569
570 Import the big Crypto/Jessie/Security merge from Classpath.
571
572 * Makefile.am: Add imported files.
573 * Makefile.in: Regenerate.
574
575 2004-08-14 Casey Marshall <csm@gnu.org>
576
577 The Big Crypto Merge of 2004.
578
579 * javax/security/auth/x500/X500Principal.java: Replaced with GNU
580 Crypto's version.
581
582 Files imported from GNU Crypto.
583 * javax/crypto/BadPaddingException.java
584 * javax/crypto/Cipher.java
585 * javax/crypto/CipherInputStream.java
586 * javax/crypto/CipherOutputStream.java
587 * javax/crypto/CipherSpi.java
588 * javax/crypto/EncryptedPrivateKeyInfo.java
589 * javax/crypto/ExemptionMechanism.java
590 * javax/crypto/ExemptionMechanismException.java
591 * javax/crypto/ExemptionMechanismSpi.java
592 * javax/crypto/IllegalBlockSizeException.java
593 * javax/crypto/KeyAgreement.java
594 * javax/crypto/KeyAgreementSpi.java
595 * javax/crypto/KeyGenerator.java
596 * javax/crypto/KeyGeneratorSpi.java
597 * javax/crypto/Mac.java
598 * javax/crypto/MacSpi.java
599 * javax/crypto/Makefile.am
600 * javax/crypto/NoSuchPaddingException.java
601 * javax/crypto/NullCipher.java
602 * javax/crypto/NullCipherImpl.java
603 * javax/crypto/SealedObject.java
604 * javax/crypto/SecretKey.java
605 * javax/crypto/SecretKeyFactory.java
606 * javax/crypto/SecretKeyFactorySpi.java
607 * javax/crypto/ShortBufferException.java
608 * javax/crypto/interfaces/DHKey.java
609 * javax/crypto/interfaces/DHPrivateKey.java
610 * javax/crypto/interfaces/DHPublicKey.java
611 * javax/crypto/interfaces/PBEKey.java
612 * javax/crypto/spec/DESKeySpec.java
613 * javax/crypto/spec/DESedeKeySpec.java
614 * javax/crypto/spec/DHGenParameterSpec.java
615 * javax/crypto/spec/DHParameterSpec.java
616 * javax/crypto/spec/DHPrivateKeySpec.java
617 * javax/crypto/spec/DHPublicKeySpec.java
618 * javax/crypto/spec/IvParameterSpec.java
619 * javax/crypto/spec/PBEKeySpec.java
620 * javax/crypto/spec/PBEParameterSpec.java
621 * javax/crypto/spec/RC2ParameterSpec.java
622 * javax/crypto/spec/RC5ParameterSpec.java
623 * javax/crypto/spec/SecretKeySpec.java
624 * javax/security/auth/AuthPermission.java
625 * javax/security/auth/DestroyFailedException.java
626 * javax/security/auth/Destroyable.java
627 * javax/security/auth/Policy.java
628 * javax/security/auth/PrivateCredentialPermission.java
629 * javax/security/auth/RefreshFailedException.java
630 * javax/security/auth/Refreshable.java
631 * javax/security/auth/Subject.java
632 * javax/security/auth/SubjectDomainCombiner.java
633 * javax/security/auth/callback/Callback.java
634 * javax/security/auth/callback/CallbackHandler.java
635 * javax/security/auth/callback/ChoiceCallback.java
636 * javax/security/auth/callback/ConfirmationCallback.java
637 * javax/security/auth/callback/LanguageCallback.java
638 * javax/security/auth/callback/NameCallback.java
639 * javax/security/auth/callback/PasswordCallback.java
640 * javax/security/auth/callback/TextInputCallback.java
641 * javax/security/auth/callback/TextOutputCallback.java
642 * javax/security/auth/callback/UnsupportedCallbackException.java
643 * javax/security/auth/login/AccountExpiredException.java
644 * javax/security/auth/login/AppConfigurationEntry.java
645 * javax/security/auth/login/Configuration.java
646 * javax/security/auth/login/CredentialExpiredException.java
647 * javax/security/auth/login/FailedLoginException.java
648 * javax/security/auth/login/LoginContext.java
649 * javax/security/auth/login/LoginException.java
650 * javax/security/auth/login/NullConfiguration.java
651 * javax/security/auth/x500/X500PrivateCredential.java
652 * javax/security/sasl/AuthenticationException.java
653 * javax/security/sasl/AuthorizeCallback.java
654 * javax/security/sasl/RealmCallback.java
655 * javax/security/sasl/RealmChoiceCallback.java
656 * javax/security/sasl/Sasl.java
657 * javax/security/sasl/SaslClient.java
658 * javax/security/sasl/SaslClientFactory.java
659 * javax/security/sasl/SaslException.java
660 * javax/security/sasl/SaslServer.java
661 * javax/security/sasl/SaslServerFactory.java
662 * org/ietf/jgss/ChannelBinding.java
663 * org/ietf/jgss/GSSContext.java
664 * org/ietf/jgss/GSSCredential.java
665 * org/ietf/jgss/GSSException.java
666 * org/ietf/jgss/GSSManager.java
667 * org/ietf/jgss/GSSName.java
668 * org/ietf/jgss/MessageProp.java
669 * org/ietf/jgss/Oid.java
670 * org/ietf/jgss/MessagesBundle.properties
671
672 Files imported from Jessie <http://www.nongnu.org/jessie/>
673 * javax/net/ServerSocketFactory.java
674 * javax/net/SocketFactory.java
675 * javax/net/VanillaServerSocketFactory.java
676 * javax/net/VanillaSocketFactory.java
677 * javax/net/ssl/HandshakeCompletedEvent.java
678 * javax/net/ssl/HandshakeCompletedListener.java
679 * javax/net/ssl/HostnameVerifier.java
680 * javax/net/ssl/HttpsURLConnection.java
681 * javax/net/ssl/KeyManager.java
682 * javax/net/ssl/KeyManagerFactory.java
683 * javax/net/ssl/KeyManagerFactorySpi.java
684 * javax/net/ssl/ManagerFactoryParameters.java
685 * javax/net/ssl/SSLContext.java
686 * javax/net/ssl/SSLContextSpi.java
687 * javax/net/ssl/SSLException.java
688 * javax/net/ssl/SSLHandshakeException.java
689 * javax/net/ssl/SSLKeyException.java
690 * javax/net/ssl/SSLPeerUnverifiedException.java
691 * javax/net/ssl/SSLPermission.java
692 * javax/net/ssl/SSLProtocolException.java
693 * javax/net/ssl/SSLServerSocket.java
694 * javax/net/ssl/SSLServerSocketFactory.java
695 * javax/net/ssl/SSLSession.java
696 * javax/net/ssl/SSLSessionBindingEvent.java
697 * javax/net/ssl/SSLSessionBindingListener.java
698 * javax/net/ssl/SSLSessionContext.java
699 * javax/net/ssl/SSLSocket.java
700 * javax/net/ssl/SSLSocketFactory.java
701 * javax/net/ssl/TrivialHostnameVerifier.java
702 * javax/net/ssl/TrustManager.java
703 * javax/net/ssl/TrustManagerFactory.java
704 * javax/net/ssl/TrustManagerFactorySpi.java
705 * javax/net/ssl/X509KeyManager.java
706 * javax/net/ssl/X509TrustManager.java
707 * javax/security/cert/Certificate.java
708 * javax/security/cert/CertificateEncodingException.java
709 * javax/security/cert/CertificateException.java
710 * javax/security/cert/CertificateExpiredException.java
711 * javax/security/cert/CertificateNotYetValidException.java
712 * javax/security/cert/CertificateParsingException.java
713 * javax/security/cert/X509CertBridge.java
714 * javax/security/cert/X509Certificate.java
715
716 2004-08-20 Casey Marshall <csm@gnu.org>
717
718 * java/security/cert/X509CRLSelector.java: New file.
719 * java/security/cert/X509CertSelector.java: New file.
720
721 2004-09-15 Michael Koch <konqueror@gmx.de>
722
723 * gnu/java/net/protocol/file/Handler.java
724 (openConnection): Don't throw exception if host part for file: URI is
725 present. setURL() keeps file: protocol if ftp: protocol is not
726 available.
727
728 2004-09-14 Richard Henderson <rth@redhat.com>
729
730 * java/lang/natPosixProcess.cc (waitForSignal): Ignore return
731 value of sigsuspend.
732
733 2004-09-12 Tom Tromey <tromey@redhat.com>
734
735 * javax/naming/CompoundName.java (CompoundName): Don't check for
736 separator in "flat" case.
737
738 2004-09-12 Michael Koch <konqueror@gmx.de>
739
740 * libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces
741 AM_CONFIG_HEADER by AC_CONFIG_FILES.
742 * libltdl/Makefile.in, libltdl/aclocal.m4, libltdl/configure:
743 Regenerate.
744
745 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
746
747 PR libgcj/14751
748 * win32-threads.cc (_Jv_ThreadInitData): Zero out thread
749 handle in newly-allocated _Jv_Thread_t.
750 (_Jv_ThreadDestroyData): Close thread handle.
751 (_Jv_ThreadStart): Remove obsolete comment.
752 Store handle of newly-created thread in _Jv_Thread_t.
753 * include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
754 before including <windows.h>
755 #define _Jv_HaveCondDestroy
756
757 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
758
759 * java/lang/natThread.cc (finalize_native): Destroy
760 join conditional variable and mutex if these destroy
761 operations are supported.
762
763 2004-09-10 Dalibor Topic <robilad@kaffe.org>
764
765 * gnu/java/net/protocol/file/Connection.java (permission): New field.
766 (DEFAULT_PERMISSION): New constant.
767 (Connection): Create a FilePermission with permission to read file.
768
769 2004-09-10 Michael Koch <konqueror@gmx.de>
770
771 * gnu/java/net/protocol/file/Connection.java
772 (getLastModified): Moved around.
773 (getPermission): Return stored permission.
774
775 2004-09-10 Michael Koch <konqueror@gmx.de>
776
777 * Makefile.in: Regenerate.
778
779 2004-09-10 Michael Koch <konqueror@gmx.de>
780
781 * Makefile.am: Reverted accidently commited stuff.
782 * configure: Regenerated.
783
784 2004-09-10 Michael Koch <konqueror@gmx.de>
785
786 * gnu/java/net/protocol/file/Connection.java
787 (lineSeparator): Made non-final.
788 (static): Removed.
789 (connect): Initialize lineSeparator lazily. Use ByteArrayInputStream
790 instead of StringBufferInputStream.
791
792 2004-09-10 Michael Koch <konqueror@gmx.de>
793
794 * gnu/java/net/protocol/file/Connection.java
795 (connect): Handle file is a directory case.
796
797 2004-09-10 Michael Koch <konqueror@gmx.de>
798
799 * Makefile.am
800 (xlib_includes): Removed.
801 (AM_CPPFLAGS): Renamed from INCLUDES.
802 (lib_gnu_awt_xlib_la_CPPFLAGS): New automake variable.
803 * Makefile.in: Regenerate.
804
805 2004-09-09 Michael Koch <konqueror@gmx.de>
806
807 * java/security/ProtectionDomain.java,
808 * java/util/PropertyPermissionCollection.java:
809 Fixed javadocs all over.
810
811 2004-09-09 Sven de Marothy <sven@physto.se>
812
813 Patch from David Gilbert <david.gilbert@object-refinery.com>
814 * java/lang/Comparable.java: Fixed documentation errors.
815 * java/util/Arrays.java: Likewise.
816
817 2004-09-09 Andrew John Hughes <gnu_andrew@member.fsf.org>
818
819 * java/net/Inet4Address.java
820 (Inet4Address): Added comment to serialization UID.
821 * java/text/Format.java
822 (Format): Added comment to serialization UID.
823
824 2004-09-09 Michael Koch <konqueror@gmx.de>
825
826 * java/lang/System.java
827 (err): Fixed javadoci to point to setErr() and not setOut().
828
829 2004-09-09 Jeroen Frijters <jeroen@frijters.net>
830
831 (normalizePath): Added special case for windows systems.
832
833 2004-09-09 Michael Koch <konqueror@gmx.de>
834
835 * java/io/File.java
836 (dupSeparator): Made private.
837 (File(URI)): New constructor.
838 (getParentFile): Fixed javadoc.
839 (createTempFile): Reformated.
840 (setReadOnly): Added comment.
841 (deleteOnExit): Merged javadoc with classpath version.
842
843 2004-09-09 Michael Koch <konqueror@gmx.de>
844
845 * Makefile.am: Don't try to include deps.mk.
846 * Makefile.in: Regenerated.
847
848 2004-09-08 Bryce McKinlay <mckinlay@redhat.com>
849
850 * configure.ac (AC_CONFIG_COMMANDS): Don't create subdirectories and
851 .d files.
852 * configure: Rebuilt.
853
854 2004-09-04 Mohan Embar <gnustuff@thisiscool.com>
855
856 * java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces):
857 Changed pfn from static local to local.
858
859 2004-09-03 Bryce McKinlay <mckinlay@redhat.com>
860 H.J. Lu <hongjiu.lu@intel.com>
861
862 PR libgcj/17290
863 * Makefile.am (GCJCOMPILE): Remove definition.
864 (AM_CFLAGS): Add -fclasspath and -fbootclasspath flags.
865 Use LTGCJCOMPILE, not GCJCOMPILE, to build .lo targets.
866 * Makefile.in: Rebuilt.
867
868 2004-09-03 Kelley Cook <kcook@gcc.gnu.org>
869
870 * configure.ac (enable-gc-debug): Update help for new syntax.
871 * configure: Regenerate.
872
873 2004-09-03 David Daney <ddaney@avtrex.com>
874
875 * include/mips-signal.h: Update copyright.
876
877 2004-09-03 David Daney <ddaney@avtrex.com>
878
879 * configure.host: Use -fno-use-divide-subroutine for mips*-*-linux*.
880 * include/mips-signal.h: Added HANDLE_FPE support.
881
882 2004-08-31 Michael Koch <konqueror@gmx.de>
883
884 * javax/swing/plaf/basic/BasicTextAreaUI.java
885 (create): New method.
886 * javax/swing/text/DefaultHighlighter.java
887 (DefaultHighlightPainter.debugRect): Removed.
888 * javax/swing/text/StyleContext.java
889 (DEFAULT_STYLE): New field.
890
891 2004-08-31 Michael Koch <konqueror@gmx.de>
892
893 * javax/swing/plaf/basic/BasicLookAndFeel.java
894 (initComponentDefaults): Add keybindings for selection.backward and
895 selection-forward for text components.
896 * javax/swing/plaf/basic/BasicTextUI.java
897 (paintSafely): Paint highlight only when something is actually
898 selected.
899 * javax/swing/text/DefaultCaret.java
900 (handleHighlight): New method.
901 (setSelectionVisible): Don't do anything when nothing changes.
902 Handle highlight.
903 (moveDot): Reimplemented. Handle highlight.
904 (setDot): Set mark too. Handle highlight.
905 (getSelectionPainter): New method.
906 * javax/swing/text/DefaultEditorKit.java
907 (defaultActions): Added new actions for text selection.
908 * javax/swing/text/DefaultHighlighter.java
909 (DefaultHighlightPainter): New inner class.
910 (DefaultPainter): New field.
911 (paint): Implemented.
912 * javax/swing/text/PlainView.java
913 (paint): Don't draw background here again.
914 * javax/swing/text/Utilities.java
915 (getTabbedTextWidth): Use width of ' ' instead of 'm' for tabsize.
916 (drawTabbedText): Likewise.
917
918 2004-08-31 Graydon Hoare <graydon@redhat.com>
919
920 * javax/swing/JComponent.java
921 (resetKeyboardActions): Add null checks.
922
923 2004-08-31 Graydon Hoare <graydon@redhat.com>
924
925 * javax/swing/DefaultButtonModel.java:
926 Skip group notification when no group is set.
927
928 2004-08-31 Graydon Hoare <graydon@redhat.com>
929
930 * javax/swing/JColorChooser.java:
931 Make a couple inner classes static, for jikes.
932
933 2004-08-31 Michael Koch <konqueror@gmx.de>
934
935 * javax/swing/plaf/basic/BasicTextUI.java
936 (RottView.modelToView): New method.
937 (UpdateHandler): Renamed from EventHandler.
938 (updateHandler): Renamed from eventHandler.
939 (modelToView): Implemented.
940 * javax/swing/text/AbstractDocument.java
941 (BranchElement.getElement): Return null for non-existing indeces.
942 (BranchElement.getElementIndex): Return 0 in some corner cases.
943 * javax/swing/text/FieldView.java
944 (modelToView): New method.
945 * javax/swing/text/PlainView.java
946 (modelToView): Made public.
947
948 2004-08-31 Kim Ho <kho@redhat.com>
949
950 * Makefile.am: New files.
951 * Makefile.in: Regenerate.
952 * gcj/Makefile.in: Regenerate.
953 * include/Makefile.in: Regenerate.
954 * java/awt/Color.java: Fix documentation.
955 (RGBtoHSB): Use floats for conversions.
956 * javax/swing/ButtonGroup.java: Run Jalopy.
957 (setSelected): Reimplement.
958 * javax/swing/DefaultButtonModel.java: Run Jalopy.
959 (changeState): Let ButtonGroup know that the button
960 is changing state.
961 * javax/swing/JColorChooser.java: Implement.
962 * javax/swing/JLabel.java: Run Jalopy.
963 * javax/swing/JSpinner.java: Run Jalopy.
964 (setValue): New method.
965 * javax/swing/JTabbedPane.java: Run Jalopy.
966 (removeTabAt): Call correct remove method.
967 * javax/swing/SpinnerNumberModel.java: Run Jalopy.
968 (getPreviousValue): Compare minimum value.
969 * javax/swing/Timer.java: Run Jalopy.
970 (run): Comment out println.
971 * javax/swing/ToolTipManager.java:
972 (mouseMoved): Get new tooltip text for location.
973 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
974 Jalopy and Javadoc.
975 * javax/swing/colorchooser/ColorChooserComponentFactory.java:
976 Implement.
977 * javax/swing/colorchooser/DefaultColorSelectionModel.java:
978 Run Jalopy.
979 (setSelectedColor): Fire ChangeEvent.
980 * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
981 New file. Implement.
982 * javax/swing/colorchooser/DefaultPreviewPanel.java:
983 Ditto.
984 * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
985 Ditto.
986 * javax/swing/colorchooser/DefaultSwatchChooserPanel.java:
987 Ditto.
988 * javax/swing/plaf/basic/BasicArrowButton.java:
989 (getArrow): Fix size of upward pointing button.
990 * javax/swing/plaf/basic/BasicColorChooserUI.java:
991 Implement.
992 * javax/swing/plaf/basic/BasicSliderUI.java:
993 (getWidthOfWidestLabel): Use preferred dimensions.
994 (getHeightOfTallestLabel): Ditto.
995 * javax/swing/plaf/basic/BasicSpinnerUI.java:
996 Run Jalopy.
997 (mousePressed): Disable changes to spinner if it is not enabled.
998 * testsuite/Makefile.in: Regenerate.
999
1000
1001 2004-08-31 Michael Koch <konqueror@gmx.de>
1002
1003 * javax/swing/plaf/basic/BasicTableHeaderUI.java,
1004 javax/swing/plaf/basic/BasicTableUI.java:
1005 Added copyright notice.
1006
1007 2004-08-31 Olga Rodimina <rodimina@redhat.com>
1008
1009 * Makefile.am: Added new files.
1010 * Makefile.in: Regenerate.
1011 * javax/swing/ComboBoxEditor.java: Added javadocs.
1012 * javax/swing/ComboBoxModel.java: Likewise.
1013 * javax/swing/DefaultComboBoxModel.java: Implemented.
1014 * javax/swing/DefaultListCellRenderer.java: Added javadocs
1015 and ran through jalopy to fix formatting style.
1016 (getListCellRendererComponent): Use appropriate border
1017 if renderer has focus and use noFocusBorder when it doesn't.
1018 * javax/swing/JComboBox.java: Implemented.
1019 * javax/swing/JList.java:
1020 (locationToIndex): New Method. Implemented.
1021 (indexToLocation): New Method.
1022 * javax/swing/JPopupMenu.java:
1023 (visible): New field.
1024 (isVisible): Changed to use new field above.
1025 (setVisible): Likewise.
1026 * javax/swing/MutableComboBoxModel.java: Added javadocs.
1027 * javax/swing/plaf/basic/BasicArrowButton.java:
1028 (shadow): Changed default color to Color.gray.
1029 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
1030 UI delegate for JComboBox.
1031 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
1032 Popup menu containing list of JComboBox's items.
1033 * javax/swing/plaf/basic/BasicComboBoxEditor.java: New File.
1034 * javax/swing/plaf/basic/BasicComboBoxRenderer.java: New File.
1035 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
1036 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
1037 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
1038 (popupMenuWillBecomeVisible): Set selected path to the first
1039 element only if it is of type MenuElement. Also fix formatting
1040 style.
1041 * javax/swing/plaf/basic/ComboPopup.java: Added javadocs and missing
1042 methods signatures.
1043
1044 2004-08-31 Michael Koch <konqueror@gmx.de>
1045
1046 * javax/swing/text/AbstractDocument.java
1047 (createBranchElement): Use new constructor of BranchElement.
1048 (createLeafElement): Renamed arguments.
1049 (getRootElements): Implemented.
1050 (BranchElement.start): Removed.
1051 (BranchElement.end): Likewise.
1052 (BranchElement.BranchElement): Fixed arguments.
1053 (BranchElement.getEndOffset): Reimplemented.
1054 (BranchElement.getStartOffset): Likewis.
1055 * javax/swing/text/DefaultCaret.java
1056 (paint): Draw simple vertical line as caret instead of a rectangle.
1057 * javax/swing/text/JTextComponent.java
1058 (setText): Use doc directly.
1059 * javax/swing/text/PlainView.java
1060 (nextTabStop): Implemented.
1061 * javax/swing/text/Utilities.java
1062 (drawTabbedText): nextTabStop() returns an absolute x position.
1063 (getTabbedTextWidth): Likewise.
1064
1065 2004-08-31 Graydon Hoare <graydon@redhat.com>
1066
1067 * java/awt/Component.java
1068 (isFocusTraversable): Predicate on isLightweight()
1069 (setFocusable): Set isFocusTraversableOverridden.
1070 (requestFocus): Predicate peer dispatch on !isLightweight()
1071 (requestFocusInWindow): Likewise.
1072 (dispatchEventImpl): Coordinate with KeyboardFocusManager.
1073 * java/awt/Container.java
1074 (dispatchEventImpl): Predicate on event mask.
1075 (LightweightDispatcher): Remove focus machinery.
1076 * java/awt/DefaultFocusTraversalPolicy.java
1077 (accept): Expand predicate to include isFocusable().
1078 * java/awt/DefaultKeyboardFocusManager.java:
1079 Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
1080 * java/awt/KeyboardFocusManager.java
1081 (redispatchEvent): Synchronize on event to prevent feedback.
1082 * javax/swing/AbstractButton.java
1083 (ButtonFocusListener): Remove class.
1084 (init): Set focusPainted, focusable.
1085 * javax/swing/ActionMap.java (get): Check parent for null.
1086 * javax/swing/InputMap.java (get): Likewise.
1087 * javax/swing/JComponent.java
1088 (inputMap_whenFocused): New InputMap.
1089 (inputMap_whenAncestorOfFocused): Likewise.
1090 (inputMap_whenInFocusedWindow): Likewise.
1091 (getActionForKeyStroke): Rewrite.
1092 (getConditionForKeystroke): Likewise.
1093 (ActionListenerProxy): New private class.
1094 (setInputMap): Implement.
1095 (getInputMap): Likewise.
1096 (setActionMap): Likewise.
1097 (getActionMap): Likewise.
1098 (processComponentKeyEvent): New empty method.
1099 (processKeyEvent): Implement.
1100 (processKeyBinding): Likewise.
1101 (resetKeyboardActions): Rewrite.
1102 * javax/swing/KeyStroke.java: Rewrite.
1103 * javax/swing/SwingUtilities.java
1104 (notifyAction): Implement.
1105 (replaceUIActionMap): Likewise.
1106 (replaceUIInputMap): Likewise.
1107 * javax/swing/plaf/basic/BasicButtonListener.java
1108 (focusGained): Implement.
1109 (focusLost): Repaint if focusPainted().
1110 (installKeyboardActions): Install pressed / released actions.
1111 (uninstallKeyboardActions): Implement.
1112 * javax/swing/plaf/basic/BasicButtonUI.java
1113 (focusColor): New field.
1114 (installDefaults): Load focus color, install input map.
1115 (installKeyboardActions): Implement.
1116 (uninstallKeyboardActions): Likewise.
1117 (paintFocus): Rewrite.
1118 * javax/swing/plaf/basic/BasicLookAndFeel.java
1119 (Button.focus): New default, midPurple.
1120 * javax/swing/plaf/basic/BasicTextUI.java
1121 (kit): Make static.
1122 (installUI): Get doc from kit, load defaults.
1123 (getKeymapName): Implement.
1124 (createKeymap): Likewise.
1125 (installKeyboardActions): Likewise.
1126 (getInputMap): Likewise.
1127 (getActionMap): Likewise.
1128 (createActionMap): Likewise.
1129 * javax/swing/text/AbstractDocument.java
1130 (getStartPosition): Implement.
1131 (getEndPosition): Likewise.
1132 * javax/swing/text/DefaultEditorKit.java
1133 (CopyAction): New class.
1134 (CutAction): Likewise.
1135 (DefaultKeyTypedAction): Likewise.
1136 (InsertBreakAction): Likewise.
1137 (InsertContentAction): Likewise.
1138 (InsertTabAction): Likewise.
1139 (PasteAction): Likewise.
1140 (defaultActions): New static table.
1141 (createCaret): Implement.
1142 (getActions): Likewise.
1143 * javax/swing/text/JTextComponent.java
1144 (KeymapWrapper): New private class.
1145 (KeymapActionMap): Likewise.
1146 (DefaultKeymap): New class.
1147 (keymaps): New static table.
1148 (keymap): New field.
1149 (getKeymap): Implement.
1150 (removeKeymap): Likewise.
1151 (addKeymap): Likewise.
1152 (setKeymap): Likewise.
1153 (loadKeymap): Likewise.
1154 (getActions): Likewise.
1155 (margin): New field.
1156 (JTextComponent): Build and install default keymap.
1157 * javax/swing/text/TextAction.java
1158 (textAction): Call super properly.
1159 (getTextComponent): Implement.
1160 * javax/swing/text/Utilities.java
1161 (drawTabbedText): Adjust position by ascent.
1162
1163 2004-08-31 David Jee <djee@redhat.com>
1164
1165 PR AWT/17156
1166
1167 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
1168 (setEnabled): Make it a native method.
1169 * java/awt/DefaultKeyboardFocusManager.java
1170 (postProcessKeyEvent): Only post event if the menu item
1171 is active.
1172 * java/awt/MenuItem.java:
1173 Private field 'enabled' should be true by default.
1174 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
1175 (setEnabled): New function.
1176
1177 2004-08-31 David Jee <djee@redhat.com>
1178
1179 PR AWT/17059
1180
1181 * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
1182 (nativeSetHelpMenu): New native method declaration.
1183 (addHelpMenu): Call nativeSetHelpMenu().
1184 (addMenu): Remove.
1185 * java/awt/MenuBar.java
1186 (setHelpMenu): Call addNotify() on the new help menu.
1187 (add): Call addNotify() on the new menu.
1188 (addNotify): Set the help menu if one exists.
1189 * java/awt/peer/MenuBarPeer.java
1190 (addMenu): Remove.
1191 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
1192 (nativeSetHelpMenu): New method.
1193
1194 2004-08-31 Graydon Hoare <graydon@redhat.com>
1195
1196 * Makefile.am: Add new files.
1197 * Makefile.in: Regenerate.
1198 * javax/swing/Box.java: Fix setting of layout in ctor.
1199 * javax/swing/JScrollPane.java: Scroll headers as well.
1200 * javax/swing/JTable.java: Reimplement.
1201 * javax/swing/JViewPort.java: Only add non-null children.
1202 * javax/swing/ScrollPaneLayout.java: Correct header calculations.
1203 * javax/swing/Timer.java: Fix stopping null waker.
1204 * javax/swing/plaf/basic/BasicTableHeaderUI.java: New file.
1205 * javax/swing/plaf/basic/BasicTableUI.java: New file.
1206 * javax/swing/table/DefaultTableCellRenderer.java: Configure.
1207 * javax/swing/table/DefaultTableColumnModel.java: Flesh out.
1208 * javax/swing/table/DefaultTableModel.java: Clean up.
1209 * javax/swing/table/JTableHeader.java: Implement.
1210
1211 2004-08-31 Mark Wielaard <mark@klomp.org>
1212
1213 * javax/swing/JSpinner.java (getChangeListeners): Remove double
1214 semi-colon.
1215
1216 2004-08-31 Mark Wielaard <mark@klomp.org>
1217
1218 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
1219 Declare variables at top of functions/block.
1220 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Likewise.
1221
1222 2004-08-31 Mark Wielaard <mark@klomp.org>
1223
1224 * java/lang/Rectangle.java (intersects): Check r.width and r.height
1225 first.
1226
1227 2004-08-31 Michael Koch <konqueror@gmx.de>
1228
1229 * javax/swing/text/PlainView.java
1230 (selectedColor): New field.
1231 (unselectedColor): Likewise.
1232 (font): Likewise.
1233 (updateMetrics): New method.
1234 (lineToRect): Likewise.
1235 (modelToView): Likewise.
1236 (drawSelectedText): Use color from JTextComponent ad draw with
1237 Utilities class.
1238 (drawUnselectedText): Likewise.
1239 (paint): Initialize helper fields.
1240 * javax/swing/text/View.java
1241 (getChildAllocation): New method.
1242 (getViewIndex): Likewise.
1243 (getToolTipText): Likewise.
1244
1245 2004-08-31 Michael Koch <konqueror@gmx.de>
1246
1247 * javax/swing/text/Utilities.java
1248 (drawTabbedText): Reimplemented.
1249 (getTabbedTextWidth): Likewise.
1250
1251 2004-08-31 Michael Koch <konqueror@gmx.de>
1252
1253 * javax/swing/plaf/basic/BasicTextUI.java
1254 (installDefaults): Install caret and highlighter.
1255 (modelToView): Use Bias.Forward when calling sibling.
1256 * javax/swing/text/AbstractDocument.java
1257 (ElementEdit): Implements DocumentEvent.ElementChange.
1258 (ElementEdit.ElementEdit): New method.
1259 (ElementEdit.getChildrenAdded): Likewise.
1260 (ElementEdit.getChildrenRemoved): Likewise.
1261 (ElementEdit.getElement): Likewise.
1262 (ElementEdit.getIndex): Likewise.
1263 * javax/swing/text/DefaultCaret.java
1264 (color): Removed.
1265 (textComponent): Renamed from parent, made private.
1266 (selectionVisible): Renamed from vis_sel, made private.
1267 (blinkRate): Renamed from blink, made private.
1268 (magicCaretPosition): Renamed from magic, made private.
1269 (visible): Renamed from vis, made private.
1270 (dot): Made private.
1271 (mark): Likewise.
1272 (deinstall): Remove as MouseMotionListener.
1273 (install): Initialize textComponent first. Add as MouseMotionListener.
1274 (paint): Reimplemented.
1275 * javax/swing/text/JTextComponent.java
1276 (setCaret): Deinstall old caret, install new one and fire property
1277 change after setting property.
1278 (setHighlighter): Deinstall old highlighter, install new one and fire
1279 property change after setting property.
1280 (setCaretColor): Fire property change after setting property.
1281 (setDisabledTextColor): Likewise.
1282 (setSelectedTextColor): Likewise.
1283 (setSelectionColor): Likewise.
1284 (modelToView): New method.
1285
1286 2004-08-31 Michael Koch <konqueror@gmx.de>
1287
1288 * javax/swing/text/AbstractDocument.java
1289 (getText): Simplified.
1290 * javax/swing/text/Segment.java
1291 (current): New field.
1292 (current): Reimplemented.
1293 (first): Likewise.
1294 (getIndex): Likewise.
1295 (last): Likewise.
1296 (next): Likewise.
1297 (previous): Likewise.
1298 (setIndex): Likewise.
1299
1300 2004-08-31 Michael Koch <konqueror@gmx.de>
1301
1302 * javax/swing/plaf/basic/BasicButtonUI.java
1303 (defaultTextIconGap): Made protected.
1304 (defaultTextShiftOffset): Likewise.
1305 (textShiftOffset): New field.
1306 (clearTextShiftOffset): New method.
1307 (getTextShiftOffset): Likewise.
1308 (setTextShiftOffset): Likewise.
1309
1310 2004-08-31 Michael Koch <konqueror@gmx.de>
1311
1312 * javax/swing/plaf/basic/BasicTextUI.java
1313 (installUI): Add eventHandler as property listener.
1314 (uninstallUI): remove eventHandler as propert listener.
1315 (installDefaults): Added comment.
1316 (installListeners): Likewise.
1317 (installKeyboardActions): Likewise.
1318 (uninstallDefaults): Likewise.
1319 (uninstallListeners): Likewise.
1320 (uninstallKeyboardActions): Likewise.
1321
1322 2004-08-31 Michael Koch <konqueror@gmx.de>
1323
1324 * javax/swing/text/AbstractDocument.java:
1325 Fixed some typos in comments.
1326 (insertString): Reimplemented.
1327 (remove): Likewise.
1328 (replace): New method.
1329 (children): Dont use fully qualified class name.
1330 (DefaultDocumentEvent.offset): Renamed from off.
1331 (DefaultDocumentEvent.length): Renamed from len.
1332 (DefaultDocumentEvent.type): New field.
1333 (DefaultDocumentEvent.DefaultDocumentEvent): New constructor.
1334 (DefaultDocumentEvent.getType): Implemented.
1335
1336 2004-08-31 Michael Koch <konqueror@gmx.de>
1337
1338 * javax/swing/plaf/basic/BasicTextUI.java
1339 (RootView.textComponent): Removed.
1340 (RootView.RootView): Don't initialize textComponent.
1341 (RootView.getViewFactory): New method.
1342 (EventHandler): New inner class.
1343 (rootView): Initialize at instance creation.
1344 (eventHandler): New field.
1345 (installUI): Don't create view hierarchy directly,
1346 call modelChanged() instead.
1347 (modelChanged): New method.
1348 * javax/swing/text/JTextComponent.java
1349 (setDocument): Fire property change event.
1350
1351 2004-08-31 Michael Koch <konqueror@gmx.de>
1352
1353 * javax/swing/plaf/basic/BasicTextUI.java
1354 (RootView.paint): Removed debug output.
1355 (paintSafely): Draw highlighter before text.
1356 (paintBackground): Use background color of text component.
1357 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
1358 Reformatted.
1359
1360 2004-08-31 Michael Koch <konqueror@gmx.de>
1361
1362 * javax/swing/plaf/basic/BasicToolBarUI.java
1363 (BasicToolBarUI): Fixed arguments for constructor.
1364 (createUI): Fixed creation of object.
1365
1366 2004-08-31 Michael Koch <konqueror@gmx.de>
1367
1368 * javax/swing/DefaultListSelectionModel.java
1369 (fireValueChanged): Renamed from fireSelectionValueChanged,
1370 made protected.
1371
1372 2004-08-31 Michael Koch <konqueror@gmx.de>
1373
1374 * javax/swing/text/TabSet.java
1375 (TabSet): Implements java.io.Serializable.
1376 * javax/swing/text/TabStop.java
1377 (TabStop): Implements java.io.Serializable.
1378 (TabStop): Made public.
1379
1380 2004-08-31 Michael Koch <konqueror@gmx.de>
1381
1382 * javax/swing/JComponent.java
1383 (setUI): Fire PropertyChange.
1384 * javax/swing/JLabel.java
1385 (text): Renamed from labelText.
1386 (horizontalAlignment): New default vlaue.
1387 (icon): Renamed from activeIcon.
1388 (displayedMnemonic): Renamed from mnemonicKey, added default value.
1389 (displayedMnemonicIndex): Renamed from underlineChar.
1390 (setDisplayedMnemonic): Reimplemented.
1391 * javax/swing/JRadioButton.java
1392 (JRadioButton): New constructors.
1393 * javax/swing/JTextField.java
1394 (JTextField): Throw exception if colums < 0, initialitialz
1395 this.columns directly and initialize document with text conditionally.
1396
1397 2004-08-31 Michael Koch <konqueror@gmx.de>
1398
1399 * javax/swing/plaf/basic/BasicFormattedTextFieldUI.java,
1400 javax/swing/plaf/basic/BasicPasswordFieldUI.java,
1401 javax/swing/plaf/basic/BasicTextAreaUI.java: New files.
1402 * javax/swing/text/FieldView.java
1403 (paint): Just call super method for now.
1404 * Makefile.am: Added new files.
1405 * Makefile.in: Regenerated.
1406
1407 2004-08-31 Ka-Hing Cheung <kahing@javabsp.org>
1408
1409 * javax/swing/AbstractSpinnerModel.java,
1410 javax/swing/JSpinner.java,
1411 javax/swing/SpinnerNumberModel.java,
1412 javax/swing/plaf/basic/BasicSpinnerUI.java:
1413 New files.
1414 * javax/swing/plaf/basic/BasicLookAndFeel.java
1415 (initClassDefaults): Added defaults for BasicSpinnerUI.
1416
1417 2004-08-31 Michael Koch <konqueror@gmx.de>
1418
1419 * Makefile.am: Added new files.
1420 * Makefile.in: Regenerated.
1421
1422 2004-08-31 Michael Koch <konqueror@gmx.de>
1423
1424 * javax/swing/TransferHandler.java,
1425 javax/swing/plaf/basic/ComboPopup.java: New files
1426 * Makefile.am: Added javax/swing/TransferHandler.java and
1427 javax/swing/plaf/basic/ComboPopup.java
1428 * Makefile.in: Regenerated.
1429
1430 2004-08-31 Roman Kennke <roman@ontographics.com>
1431
1432 * javax/swing/text/Utilities.java: New file.
1433
1434 2004-08-31 Michael Koch <konqueror@gmx.de>
1435
1436 * Makefile.am: Added javax/swing/text/Utilities.java.
1437 * Makefile.in: Regenerated.
1438
1439 2004-08-31 Graydon Hoare <graydon@redhat.com>
1440
1441 * javax/swing/text/SimpleAttributeSet.java: New file.
1442 * javax/swing/text/StyleConstants.java: New file.
1443 * javax/swing/text/StyleContext.java: New file.
1444 * javax/swing/text/TabSet.java: New file.
1445 * javax/swing/text/TabStop.java: New file.
1446 * javax/swing/text/AbstactDocument.java:
1447 (AbstractElement): Implement attribute support.
1448 * javax/swing/text/AttributeSet.java
1449 (NameAttribute): New static field.
1450 (ResolveAttribute): New static field.
1451 * Makefile.am: Update for new files.
1452 * Makefile.in: Regenerate.
1453
1454 2004-08-31 Craig Black <craig.black@aonix.com>
1455
1456 * gnu/java/awt/peer/gtk/GdkGraphics.java
1457 (drawImage): Add support for scaling pixmaps.
1458 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1459 (copyAndScalePixmap): New native method.
1460
1461 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1462
1463 PR AWT/16121
1464 * jni/gtk-peer/gthread-jni.c: Include stdio.h. Eliminate
1465 type-punning compiler warnings using unions.
1466 (throw): Replace bzero with memset.
1467
1468 2004-08-31 Andreas Tobler <a.tobler@schweiz.ch>
1469 Thomas Fitzsimmons <fitzsim@redhat.com>
1470
1471 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: Move
1472 NSA_PB macros to gtkpeer.h. Include gtkpeer.h.
1473 * jni/gtk-peer/gtkpeer.h: Move NSA_PB macros here.
1474 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1475 (nativeSetIconImageFromDecoder): Use NSA_GET_PB_PTR macro.
1476
1477 2004-08-31 Mark Wielaard <mark@klomp.org>
1478
1479 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
1480 #include gdk.h, not gtk.h. #include jni.h, native_state.h, string.h
1481 and stdlib.h, not gtkpeer.h.
1482 (*vm): New static variable.
1483 (areaPreparedID): Make static.
1484 (areaUpdatedID): Likewise.
1485 (area_prepared): Get and use JNIEnv through stored JavaVM *vm.
1486 (area_prepared): Likewise.
1487 (area_updated): Likewise.
1488 (closed): Likewise.
1489 (initStaticState): Initialize *vm javaVM.
1490 (pumpBytes): Use given env, not global gdk_env.
1491
1492 2004-08-31 Mark Wielaard <mark@klomp.org>
1493
1494 * java/awt/geom/CubicCurve2D.java (solveCubic): Removed duplicate
1495 comments.
1496
1497 2004-08-31 Sven de Marothy <sven@physto.se>
1498
1499 * java/awt/geom/CubicCurve2D.java: Reindent.
1500 (contains): Implemented.
1501 (intersects): Implemented.
1502 * java/awt/geom/QuadCurve2D.java: Likewise.
1503 * java/awt/geom/GeneralPath.java: Reindent and document.
1504 Fully (re)implemented using separate xpoints and ypoints
1505 float[] coords.
1506 * java/awt/geom/RoundRectangle2D.java: Several bugfixes (Bug #6007).
1507
1508 2004-08-31 Michael Koch <konqueror@gmx.de>
1509
1510 * javax/swing/JMenuItem.java
1511 (getMenuDragMouseListeners): New method.
1512 (getMenuKeyListeners): Likewise.
1513
1514 2004-08-31 Michael Koch <konqueror@gmx.de>
1515
1516 * javax/swing/AbstractButton.java
1517 (model): Made protected.
1518 (actionListener): Likewise.
1519 (changeListener): Likewise.
1520 (itemListener): Likewise.
1521 (multiClickThreshhold): New field.
1522 (getActionListeners): New method.
1523 (getChangeListeners): Likewise.
1524 (getItemListeners): Likewise.
1525 (fireItemStateChanged): Simplified implementation.
1526 (fireActionPerformed): Likewise.
1527 (fireStateChanged): Likewise.
1528 (getMultiClickThreshhold): New method.
1529 (setMultiClickThreshhold): Likewise.
1530
1531 2004-08-31 Tom Tromey <tromey@redhat.com>
1532
1533 * java/awt/image/Kernel.java (clone): Use super.clone().
1534
1535 2004-08-31 David Jee <djee@redhat.com>
1536
1537 PR AWT/16682
1538 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1539 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1540 (nativeSetIconImageFromData): New native method declaration.
1541 (setIconImage): Handle images not produced from GdkPixbufDecoder.
1542 * gnu/java/awt/peer/gtk/GtkImage.java
1543 (getPixelCache): New method.
1544 (getColorModel): New method.
1545 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1546 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1547 (free_pixbuf_data): New helper function.
1548 (nativeSetIconImageFromData): New function.
1549
1550 2004-08-31 Graydon Hoare <graydon@redhat.com>
1551
1552 PR SWING/16576
1553 * javax/swing/JLayeredPane.java
1554 (setLayer): Permit changing layer after addition.
1555 (setPosition): Permit over-length positions.
1556 (layerToRange): Compare intValue()s.
1557 * javax/swing/Box.java (createHorizontalBox): Implement.
1558 (createRigidArea): Likewise.
1559 (createVerticalBox): Likewise.
1560
1561 2004-08-31 Kim Ho <kho@redhat.com>
1562
1563 * java/awt/Component.java:
1564 (processMouseEvent): Consume event after
1565 listeners process it.
1566 (processMouseMotionEvent): ditto.
1567 (processMouseWheelEvent): ditto.
1568 * java/awt/Container.java:
1569 (acquireComponentForMouseEvent):
1570 Do not dispatch to events that have been
1571 removed from the Container.
1572 (handleEvent): Consume the MouseEvents.
1573 * javax/swing/RepaintManager.java:
1574 (paintDirtyRegions): Do not add to list of
1575 damaged areas if the component has no root.
1576
1577 2004-08-31 Michael Koch <konqueror@gmx.de>
1578
1579 * javax/swing/plaf/basic/BasicMenuItemUI.java: Clean ip imports.
1580
1581 2004-08-31 Mark Wielaard <mark@klomp.org>
1582
1583 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
1584 null when a MissingResourceException is thrown. Should never happen.
1585
1586 2004-08-31 Mark Wielaard <mark@klomp.org>
1587
1588 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1589 when argument is null.
1590
1591 2004-08-31 Mark Wielaard <mark@klomp.org>
1592
1593 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1594 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
1595 Define hid at start of function.
1596 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
1597 Likewise.
1598
1599 2004-08-31 Mark Wielaard <mark@klomp.org>
1600
1601 * gnu/java/awt/EmbeddedWindow.java: Reindent.
1602 * javax/swing/JButton.java: Reindent.
1603 * javax/swing/JCheckBox.java: Reindent.
1604
1605 2004-08-31 Mark Wielaard <mark@klomp.org>
1606
1607 * Makefile.am (gtk_c_source_files): Added
1608 jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c.
1609 (gtk_awt_peer_sources): Added
1610 gnu/java/awt/peer/gtk/GThreadMutex.java and
1611 gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java.
1612 * Makefile.in: Regenerated.
1613
1614 2004-08-31 Archie Cobbs <archie@dellroad.org>
1615
1616 * jni/gtk-peer/gthread-jni.c: don't #include nonexistent files
1617
1618 2004-08-31 Steven Augart <augart@watson.ibm.com>
1619
1620 * jni/gtk-peer/gthread-jni.c (c-font-lock-extra-types):
1621 Added jfieldID, jmethodID.
1622
1623 2004-08-31 Mark Wielaard <mark@klomp.org>
1624
1625 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1626 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): Initialize
1627 gdk_env before calling any gdk or gtk function.
1628
1629 * gnu/java/awt/peer/gtk/GtkMainThread.java (gtkInitCalled): New field.
1630 (GtkMainThread): Call wait() in while loop waiting for gtkInitCalled.
1631 (run): Set gtkInitCalled.
1632
1633 2004-08-31 Steven Augart <augart@watson.ibm.com>
1634
1635 * gnu/java/awt/peer/gtk/GtkMainThread.java (run): Pass the value of
1636 the gnu.classpath.awt.gtk.portable.native.sync system property to C.
1637
1638 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1639 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): New argument,
1640 portableNativeSync. Delegate PORTABLE_NATIVE_SYNC work to
1641 init_glib_threads.
1642 (init_glib_threads): New function.
1643
1644 2004-08-31 Mark Wielaard <mark@klomp.org>
1645
1646 * jni/gtk-peer/gthread-jni.c: Define MIN_, MAX_ and NORM_
1647 PRIORITY when not already defined in header file.
1648
1649 2004-08-31 Mark Wielaard <mark@klomp.org>
1650
1651 * jni/gtk-peer/gthread-jni.c (setup_cache): Call
1652 ExceptionOccurred, not ExceptionCheck, when we don't have JNI 1.2.
1653
1654 2004-08-31 Steven Augart <augart@watson.ibm.com>
1655
1656 * gnu/native/jni/gtk-peer/gthread-jni.c: Indentation fixes.
1657 Implemented missing functions for GTK2.
1658 Added error handling.
1659 Renamed static functions out of the g_ namespace.
1660 Added TRACE_API_CALLS, EXPLAIN_TROUBLE, EXPLAIN_BROKEN,
1661 EXPLAIN_BADLY_BROKEN, and DELETE_LOCAL_REFS options.
1662 Rewrote global-reference code.
1663 Eliminated cascading errors.
1664 (mutex_trylock_jni_impl) Fully implemented.
1665 (cond_timed_wait_jni_impl) Went from millisecond to microsecond
1666 resolution.
1667 (setup_cache) New function.
1668 (mutex_cond_wait_jni_impl, mutex_cond_timed_wait_jni_impl) Fixed
1669 bug where they were not unlocking the GMutex associated with the
1670 condition variable during the wait on that condition variable.
1671
1672 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
1673 native/jni/gtk-peer/gthread-jni.c,
1674 native/jni/gtk-peer/gthread-jni.h
1675 (g_thread_jni_functions): Renamed to ...
1676 (portable_native_sync_jni_functions): this name.
1677 (gdk_vm): Renamed to...
1678 (the_vm): this name.
1679
1680 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1681 (gdk_vm): Removed duplicate definition.
1682 (gtkInit): Removed stray message to stdout.
1683 (gtkInit): Use g_malloc and g_free instead of malloc and free.
1684 (gtkInit): Fix a const assignment bug.
1685 (gtkInit): Simplified code.
1686
1687 * gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
1688 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
1689 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h,
1690 gnu/java/awt/peer/gtk/GThreadMutex.java:
1691 New files.
1692
1693 2004-08-31 Mark Wielaard <mark@klomp.org>
1694
1695 * javax/swing/Box.java: Put FIXME comment above class declaration.
1696 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1697 * javax/swing/JCheckBox.java: Likewise.
1698 * javax/swing/JDialog.java: Likewise.
1699 * javax/swing/JRadioButton.java: Likewise.
1700 * javax/swing/JToggleButton.java: Likewise.
1701 * javax/swing/UIManager.java: Likewise.
1702 * javax/swing/border/TitledBorder.java: Likewise.
1703 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1704 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1705 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1706 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1707 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1708 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1709 * javax/swing/text/JTextComponent.java: Likewise.
1710
1711 2004-08-31 David Jee <djee@redhat.com>
1712
1713 PR AWT/16682
1714 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1715 (setIconImage): Add a FIXME for unhandled cases.
1716
1717 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1718
1719 PR AWT/16040
1720 * gnu/awt/LightweightRedirector.java: Call getModifiersEx, not
1721 getModifiers. Replace old button masks with new ones.
1722 * gnu/awt/xlib/XEventLoop.java: Likewise.
1723 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Likewise.
1724 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1725 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
1726 * gnu/java/awt/peer/gtk/GtkListPeer.java: Likewise.
1727 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
1728 * java/awt/AWTKeyStroke.java: Remove old modifier masks.
1729 * java/awt/Component.java: Replace old modifier masks with new
1730 ones.
1731 * java/awt/Container.java: Call getModifiersEx, not
1732 getModifiers.
1733 * java/awt/DefaultKeyboardFocusManager.java: Likewise. Remove
1734 old modifier masks.
1735 * javax/swing/JMenuItem.java: Replace old button masks with new
1736 ones.
1737 * javax/swing/KeyStroke.java: Call getModifiersEx, not
1738 getModifiers.
1739 * javax/swing/SwingUtilities.java: Likewise.
1740 * javax/swing/plaf/basic/BasicButtonListener.java: Likewise.
1741 * javax/swing/plaf/basic/BasicInternalFrameUI.java: Likewise.
1742 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Replace old
1743 mask macros with new ones.
1744 * jni/gtk-peer/gtkpeer.h: Replace old button and modifier mask
1745 macros with new ones representing new masks.
1746
1747 2004-08-31 Craig Black <craig.black@aonix.com>
1748
1749 * gnu/java/awt/peer/gtk/GdkGraphics.java
1750 (drawRoundRect): Implemented.
1751 (fillRoundRect): Implemented.
1752 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1753 (drawRoundRect): Reimplemented to match GdkGraphics.
1754 (fillRoundRect): Reimplemented to match GdkGraphics.
1755
1756 2004-08-31 Mark Wielaard <mark@klomp.org>
1757
1758 * Makefile.in: Regenerated.
1759
1760 2004-08-31 Michael Koch <konqueror@gmx.de>
1761
1762 * gnu/java/awt/EmbeddedWindow.java
1763 (addNotify): Use AccessController to allow execution of privileged
1764 code.
1765
1766 2004-08-31 Michael Koch <konqueror@gmx.de>
1767
1768 * gnu/java/awt/EmbeddedWindow.java
1769 (static): Removed.
1770 (addNotify): Set peer via reflection.
1771 (setWindowPeer): Removed.
1772 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1773 * Makefile.am (nat_source_files):
1774 Removed gnu/java/awt/natEmbeddedWindow.cc.
1775
1776 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1777
1778 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
1779 and gnu/java/security/action/SetAccessibleAction.java.
1780
1781 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1782
1783 * gnu/java/security/action/GetPropertyAction.java (setParameters):
1784 Renamed from 'setName'. New 2-argument form with default value.
1785 (run): Pass default 'value' parameter to System.getProperty().
1786 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
1787 typos.
1788
1789 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1790
1791 * gnu/java/security/action/GetPropertyAction.java: New class.
1792 * gnu/java/security/action/SetAccessibleAction.java: New class.
1793
1794 2004-08-31 David Jee <djee@redhat.com>
1795
1796 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1797 (setIconImage): Check if image is null.
1798
1799 2004-08-31 David Jee <djee@redhat.com>
1800
1801 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1802 (create): Set the icon image.
1803 (nativeSetIconImage): New native method declaration.
1804 (setIconImage): Implement.
1805 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1806 (nativeSetIconImage): New function.
1807
1808 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1809
1810 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1811 (filenameFilterCallback): Declare local variable accepted before use.
1812
1813 2004-08-31 Dalibor Topic <robilad@kaffe.org>
1814
1815 * gnu/java/awt/ComponentDataBlitOp.java:
1816 Cleaned up imports.
1817
1818 2004-08-31 Tom Tromey <tromey@redhat.com>
1819
1820 * gnu/java/awt/peer/GLightweightPeer.java,
1821 gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1822 gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1823 javax/swing/JScrollPane.java: Removed
1824 redundant imports.
1825
1826 2004-08-31 David Jee <djee@redhat.com>
1827
1828 * java/awt/DefaultKeyboardFocusManager.java
1829 (postProcessKeyEvent): Only activate MenuShortcuts on KEY_PRESSED
1830 event. Fix shift modifier checking.
1831 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1832 (accel_attach): Remove.
1833 (setupAccelGroup): Remove calls to accel_attach.
1834
1835 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1836
1837 * gnu/java/awt/peer/gtk/GtkArg.java: Remove file.
1838 * gnu/java/awt/peer/gtk/GtkArgList.java: Remove file.
1839
1840 * Makefile.am (gtk_awt_peer_sources): Remove GtkArg.java and
1841 GtkArgList.java.
1842 (gtk_c_files): Use CAIRO_CFLAGS and PANGOFT2_CFLAGS, not _LIBS.
1843 * Makefile.in: Regenerate.
1844 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1845 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1846 (create(String)): New method.
1847 (create): Call new create method.
1848 (getArgs): Remove method.
1849 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
1850 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
1851 (nativeCreate): Rename to create.
1852 (gtkSetLabel): Rename to gtkButtonSetLabel.
1853 (gtkToggleButtonSetActive): New method.
1854 (create): Call gtkToggleButtonSetActive and gtkButtonSetLabel.
1855 (setState): Replace set call with gtkToggleButtonSetActive.
1856 (setLabel): Replace gtkSetLabel call with gtkButtonSetLabel.
1857 (getArgs): Remove method.
1858 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1859 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1860 (gtkWidgetSetSensitive): New method.
1861 (gtkWidgetSetParent): Likewise.
1862 (GtkComponentPeer): Call setParent, setComponentBounds and
1863 setVisibleAndEnabled.
1864 (setParent): New method.
1865 (setComponentBounds): New method.
1866 (setVisibleAndEnabled): New method.
1867 (setEnabled): Call gtkWidgetSetSensitive.
1868 (getArgs): Remove method.
1869 Remove all set methods.
1870 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Call
1871 gtkWindowSetModal, setTitle and setResizable.
1872 (getArgs): Remove method.
1873 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1874 (setComponentBounds): New method.
1875 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
1876 Replace set call with gtkWindowSetResizable.
1877 (getArgs): Remove method.
1878 (create): Call setTitle and setResizable.
1879 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
1880 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1881 (gtkWindowSetTitle): New method.
1882 (gtkWindowSetResizable): New method.
1883 (gtkWindowSetModal): New method.
1884 (setParent): New method.
1885 (setVisibleAndEnabled): New method.
1886 (getArgs): Remove method.
1887 (setTitle): Call gtkWindowSetTitle.
1888 (setResizable): Call gtkWindowSetResizable.
1889 * jni/gtk-peer/gtkpeer.h [DEBUG_LOCKING]: New define to turn on
1890 and off locking instrumentation.
1891
1892 2004-08-31 Kim Ho <kho@redhat.com>
1893
1894 * Makefile.am: Add new file.
1895 * Makefile.in: Regenerate.
1896 * gcj/Makefile.in: Regenerate
1897 * include/Makefile.in:
1898 * java/awt/Container.java:
1899 (acquireComponentForMouseEvent): Respect
1900 the event mask when looking for candidate.
1901 * javax/swing/JComponent.java:
1902 Remove toolTip field.
1903 (createToolTip): Create a tooltip on demand.
1904 (setToolTipText): Register with the ToolTipManager.
1905 (getToolTipText(MouseEvent)): Return getToolTipText().
1906 * javax/swing/JToolTip.java: Implement.
1907 * javax/swing/Timer.java: Jalopy.
1908 (restart): Call stop, then start.
1909 (stop): Interrupt the timer rather than wait for
1910 the timer to come to a stop naturally.
1911 * javax/swing/ToolTipManager.java: Implement.
1912 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1913 Change ToolTip.background color.
1914 * javax/swing/plaf/basic/BasicToolTipUI.java:
1915 Implement.
1916 * testsuite/Makefile.in: Regenerate
1917
1918 2004-08-31 Jerry Quinn <jlquinn@optonline.net>
1919
1920 * java/awt/image/DirectColorModel.java (DirectColorModel): Fix
1921 constructor param comments.
1922
1923 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1924
1925 * java/awt/Component.java: Document AWT 1.0 event handler
1926 methods.
1927
1928 2004-08-31 Roman Kennke <roman@ontographics.com>
1929
1930 * javax/swing/Box.java:
1931 (createGlue): Implemented
1932 (createHorizontalGlue): Implemented
1933 (createHorizontalStrut): Implemented
1934 (createVerticalGlue): Implemented
1935 (createVerticalStrut): Implemented
1936
1937 2004-08-31 David Jee <djee@redhat.com>
1938
1939 * gnu/java/awt/peer/gtk/GtkChoicePeer.java
1940 (GtkChoicePeer): Do not automatically select first item.
1941 (getHistory): Remove.
1942 (nativeGetSelected): New method.
1943 (nativeRemoveAll): New method.
1944 (add): Use nativeGetSelected() instead of getHistory().
1945 (remove): Likewise.
1946 (removeAll): Call nativeRemoveAll().
1947 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
1948 (create): Migrate to GtkComboBox.
1949 (append): Likewise.
1950 (nativeAdd): Likewise.
1951 (nativeRemove): Likewise.
1952 (select): Likewise.
1953 (nativeRemoveAll): New method.
1954 (nativeGetSelected): New method.
1955 (selection_changed): New method.
1956 (getHistory): Remove.
1957 (item_activate): Remove.
1958 (item_removed): Remove.
1959 (connect_choice_item_selectable_hook): Remove.
1960
1961 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1962
1963 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create): Use tf
1964 variable in setEditable call.
1965
1966 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
1967 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
1968 (gtkWidgetSetBackground): New method.
1969 (gtkWidgetSetForeground): Likewise.
1970 (create): Set peer's editable state based on awtComponent's.
1971
1972 * java/awt/Button.java (Button()): Use empty string rather than
1973 null in no-label constructor.
1974
1975 2004-08-31 Roman Kennke <roman@ontographics.com>
1976
1977 * javax/swing/BoxLayout.java: Reimplement.
1978
1979 2004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1980
1981 * gnu/java/awt/peer/gtk/GdkGraphics.java,
1982 gnu_java_awt_peer_gtk_GdkGraphics.c
1983 (initState(GtkComponentPeer)): Don't return array of colour
1984 values.
1985 (GdkGraphics(int,int)): Set default font to size 12.
1986 (GdkGraphics(GtkComponentPeer)): Set graphics colour to
1987 component's foreground colour.
1988 * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1989 gnu_java_awt_peer_gtk_GdkGraphics2D.c
1990 (initState(GtkComponentPeer)): Don't return array of colour
1991 values.
1992 (GdkGraphics2D(GtkComponentPeer)): Set foreground and background
1993 colours to component's colours.
1994 (current_colors_of_widget): Remove function.
1995 * gnu/java/awt/peer/gtk/GtkOffScreenImage.java (getGraphics):
1996 Return a new graphics object.
1997 * java/awt/Font.java (toString): Fix format.
1998 * java/awt/Graphics.java (toString): Likewise.
1999
2000 2004-08-31 Craig Black <craig.black@aonix.com>
2001
2002 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
2003 (addTearOff): New function.
2004 * gnu/java/awt/peer/gtk/GtkMenuPeer.java (addTearOff):
2005 New native method.
2006 (init): Call addTearOff() when menu.isTearOff().
2007
2008 2004-08-31 Bryce McKinlay <mckinlay@redhat.com>
2009
2010 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2011 Default implementation.
2012 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2013 Implement using GdkPixbufDecoder.
2014
2015 2004-08-31 David Jee <djee@redhat.com>
2016
2017 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
2018 (GtkComponentPeer): Use gtkWidgetGetPreferredDimensions() for
2019 setting the size of GtkFileDialogPeers.
2020 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2021 (gtkWidgetGetPreferredDimensions): For widgets extending GtkWindow,
2022 use their default sizes rather than their natural requisitions.
2023
2024 2004-08-31 Michael Koch <konqueror@gmx.de>
2025
2026 * javax/swing/JFormattedTextField.java
2027 (JFormattedTextField): Implemented.
2028 * javax/swing/text/DefaultEditorKit.java
2029 (BeepAction): New inner class.
2030 * javax/swing/text/Segment.java
2031 (partialReturn): New field.
2032 (setPartialReturn): New method.
2033 (isPartialReturn): Likewise.
2034 * javax/swing/text/View.java
2035 (createFragment): Fixed typo.
2036 (getStartOffset): New method.
2037 (getEndOffset): Likewise.
2038
2039 2004-08-31 Michael Koch <konqueror@gmx.de>
2040
2041 * javax/swing/table/DefaultTableColumnModel.java
2042 (serialVersionUID): Made private.
2043 (listenerList): Initialize.
2044 (changeEvent): Initialize.
2045 * javax/swing/table/JTableHeader.java
2046 (JTableHeader): New constructors.
2047 (createDefaultColumnModel): New method.
2048 * javax/swing/table/TableColumn.java
2049 (setHeaderRenderer): Simplified code.
2050 (setCellRenderer): Likewise.
2051 (setWidth): Likewise.
2052
2053 2004-08-31 Tom Tromey <tromey@redhat.com>
2054
2055 * java/text/AttributedString.java (AttributedString): Use
2056 ArrayList to build array of attribute ranges. Don't use
2057 `attribs' before it is set.
2058
2059 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
2060
2061 * HACKING: Remove reference to special automake. No longer needed.
2062
2063 2004-08-30 Tom Tromey <tromey@redhat.com>
2064
2065 * gnu/java/security/util/Prime.java (generateRandomPrime): Use
2066 return result from `add'.
2067
2068 2004-08-30 Tom Tromey <tromey@redhat.com>
2069
2070 * java/rmi/server/UID.java (UID): Read `nextCount', not count.
2071
2072 2004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
2073
2074 * gnu/java/security/der/DEREncodingException.java: Remove whitespaces.
2075
2076 2004-08-30 Jeroen Frijters <jeroen@frijters.net>
2077
2078 * java/io/File.java File(String,String): Fixed handling of empty
2079 path.
2080
2081 2004-08-30 Casey Marshall <csm@gnu.org>
2082
2083 Author e-mail updated for all files.
2084 * gnu/java/security/OID.java (equals): Test if the aurgment is an
2085 instance of OID.
2086 (compareTo): Use `equals'.
2087 * gnu/java/security/der/BitString.java (equals): Test if the
2088 argument is an instance of BitString.
2089 * gnu/java/security/der/DERReader.java: Removed NIO imports. Made
2090 class final. Made fields private.
2091 (<init>): New constructor.
2092 (skip): New method.
2093 (makeString): Made static; don't use NIO.
2094 (fromIso88591, fromUtf16Be, fromUtf8): New methods.
2095 * gnu/java/security/der/DERWriter.java: Fixed imports.
2096 (writeString): Don't use NIO.
2097 (toIso88591, toUtf16Be, toUtf8): New methods.
2098 * gnu/java/security/der/DERValue.java: Formatting changes only.
2099 * gnu/java/security/der/DER.java: Likewise.
2100
2101 2004-08-30 Tom Tromey <tromey@redhat.com>
2102
2103 * java/nio/CharBuffer.java (put): Fix typo.
2104 * java/nio/DoubleBuffer.java (put): Fix typo.
2105 * java/nio/FloatBuffer.java (put): Fix typo.
2106 * java/nio/IntBuffer.java (put): Fix typo.
2107 * java/nio/LongBuffer.java (put): Fix typo.
2108 * java/nio/ShortBuffer.java (put): Fix typo.
2109
2110 2004-08-30 Florian Weimer <fw@deneb.enyo.de>
2111
2112 * java/nio/ByteBuffer.java (put): Fix typo.
2113
2114 2004-08-30 Casey Marshall <csm@gnu.org>
2115
2116 * java/security/DummyKeyPairGenerator.java (clone): Removed
2117 useless instanceof check.
2118 * java/security/DummyMessageDigest.java (clone): Likewise.
2119 * java/security/DummySignature.java (clone): Likewise.
2120 * java/security/MessageDigest.java (clone): Remove useless
2121 instanceof check.
2122 * java/security/MessageDigestSpi.java (clone): Likewise.
2123 * java/security/Signature.java (clone): Provide meaningful
2124 implementation.
2125 * java/security/SignatureSpi.java (clone): Likewise.
2126
2127 2004-08-29 Mark Wielaard <mark@klomp.org>
2128
2129 * java/util/Arrays.java
2130 (sort(byte[], int, int)): Check fromIndex < 0.
2131 (sort(char[], int, int)): Likewise.
2132 (sort(short[], int, int)): Likewise.
2133 (sort(int[], int, int)): Likewise.
2134 (sort(long[], int, int)): Likewise.
2135 (sort(float[], int, int)): Likewise.
2136 (sort(double[], int, int)): Likewise.
2137 (sort(Object[], int, int, Comparator)): Likewise.
2138 (qsort(byte[], int, int)): Honor lower bound from in insertion sort.
2139 (qsort(char[], int, int)): Likewise.
2140 (qsort(short[], int, int)): Likewise.
2141 (qsort(int[], int, int)): Likewise.
2142 (qsort(long[], int, int)): Likewise.
2143 (qsort(float[], int, int)): Likewise.
2144 (qsort(double[], int, int)): Likewise.
2145
2146 2004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
2147
2148 * java/util/AbstractCollection.java, java/util/AbstractList.java,
2149 java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
2150 java/util/ArrayList.java, java/util/Arrays.java,
2151 java/util/BitSet.java, java/util/Calendar.java,
2152 java/util/Collection.java, java/util/ListIterator.java,
2153 java/util/Map.java, java/util/SortedSet.java:
2154 Added additional exceptions to documentation, along
2155 with some additions and corrections.
2156
2157 2004-08-27 Hans Boehm <Hans.Boehm@hp.com>
2158
2159 * configure.ac: Handle --enable-gc-debug.
2160 * configure: Regenerate.
2161 * include/config.h.in (LIBGCJ_GC_DEBUG): Add.
2162 * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files.
2163 Rearrange include file order.
2164 (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set.
2165 (GC_finalize_all, GC_debug_generic_malloc): Don't declare.
2166 (disable_gc_mutex): Delete along with all references.
2167 (_Jv_MarkObj, _Jv_MarkArray): Use public types,
2168 adjust for debug header size.
2169 (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for
2170 debug case.
2171 (_Jv_AllocArray): Declare min_heap_addr only if needed.
2172 (gcj_describe_type_fn): New.
2173 (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind.
2174 Register gcj_describe_type_fn.
2175 * include/boehm-gc.h:
2176 (_Jv_AllocObj, _Jv_allocPtrFreeObj):
2177 Don't define, but declare, for debug case.
2178 * java/lang/natObject.cc:
2179 (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set.
2180
2181 2004-08-26 Mark Wielaard <mark@klomp.org>
2182
2183 Fixes PR libgcj/17002:
2184 * java/util/TimeZone.java (defaultZone): Try a couple of ways to get
2185 a TimeZoneId string and then try to convert that to a TimeZone with
2186 getDefaultSystemTimeZone(String).
2187 (timezones0): Changed type from Hashtable to HashMap.
2188 (timezones): Create HashMap, not Hashtable.
2189 (getDefaultTimeZone): New method, rewritten from CNI version.
2190 (readTimeZoneFile): New method.
2191 (readtzFile): Likewise.
2192 (skipFully): Likewise.
2193 * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
2194 getDefaultTimeZoneId and rewritten.
2195 (getDefaultTimeZoneId): Rewritten in java.
2196
2197 2004-08-25 David Daney <daney@avtrex.com>
2198
2199 * Makefile.am (AM_GCJFLAGS): Add LIBGCJ_JAVAFLAGS.
2200 * Makefile.in: Regenerated.
2201
2202 2004-08-23 Bryce McKinlay <mckinlay@redhat.com>
2203
2204 * prims.cc (JVMPI_NOTIFY_ALLOC): New macro. Call jvmpi_notify_alloc
2205 only if jvmpi is enabled.
2206 (jvmpi_notify_alloc): Don't check if jvmpi is enabled here.
2207 (_Jv_AllocObjectNoFinalizer): Use JVMPI_NOTIFY_ALLOC.
2208 (_Jv_AllocString): Likewise.
2209 (_Jv_AllocPtrFreeObject): Likewise.
2210
2211 2004-08-23 Hans Boehm <Hans.Boehm@hp.com>
2212
2213 * defineclass.cc: Include <stdio.h>.
2214 * java/lang/natClassLoader.cc: Include <stdio.h>.
2215
2216 2004-08-21 Andreas Tobler <a.tobler@schweiz.ch>
2217 Michael Koch <konqueror@gmx.de>
2218
2219 * Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.
2220 * Makefile.in: Regenerated.
2221
2222 2004-08-20 Michael Koch <konqueror@gmx.de>
2223
2224 * configure.ac: Replaced all AC_TRY_COMPILE macros with
2225 AC_COMPILE_IFELSE macros.
2226
2227 2004-08-20 Michael Koch <konqueror@gmx.de>
2228
2229 * configure.in: Renamed to configure.ac.
2230 * configure.ac: New file.
2231 * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
2232 include/config.h.in, testsuite/Makefile.in: Regenerated.
2233
2234 2004-08-20 Michael Koch <konqueror@gmx.de>
2235
2236 * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
2237 * aclocal.m4, configure: Regenerated.
2238
2239 2004-08-19 Thomas Fitzsimmons <fitzsim@redhat.com>
2240 Michael Koch <konqueror@gmx.de>
2241
2242 * configure.in, Makefile.am: Ported to automake 1.9.
2243 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
2244 include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
2245 Regenerated.
2246
2247 2004-08-19 Tom Tromey <tromey@redhat.com>
2248
2249 * java/net/DatagramSocket.java: Fixed typo.
2250
2251 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2252
2253 PR libgcj/17081
2254 * java/net/URI.java (string): New field. Make all other fields
2255 transient.
2256 (readObject): Implemented.
2257 (writeObject): Implemented.
2258 (URI): Set 'string'.
2259
2260 2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
2261
2262 PR libgcj/17079
2263 * java/util/logging/Handler.java (isLoggable): Accept record if its
2264 log level equals the threshold level. From Robin Green.
2265
2266 2004-08-18 David Daney <ddaney@avtrex.com>
2267
2268 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
2269 instead of sigwait.
2270
2271 2004-08-17 Michael Koch <konqueror@gmx.de>
2272
2273 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
2274 * Makefile.in: Regenerated.
2275
2276 2004-08-16 Tom Tromey <tromey@redhat.com>
2277
2278 PR java/8473:
2279 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
2280
2281 2004-08-16 Michael Koch <konqueror@gmx.de>
2282
2283 * Makefile.am
2284 (math_c_files): Renamed from c_files.
2285 (math_c_source_files): Renamed from c_source_files.
2286 * Makefile.in,
2287 gcj/Makefile.in,
2288 include/Makefile.in,
2289 testsuite/Makefile.in: Regenerated.
2290
2291 2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
2292
2293 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
2294 to avoid autoconf warning.
2295 * configure: Rebuilt.
2296
2297 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
2298
2299 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
2300 localhostAddress to loopbackAddress.
2301 * java/net/natInetAddressWin32.cc (lookup): Likewise.
2302
2303 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2304
2305 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
2306 boehm-gc's include dirs.
2307 * configure: Rebuilt.
2308 * include/boehm-gc.h: Include gc_config.h.
2309
2310 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2311
2312 * java/net/InetAddress.java (loopbackAddress): Renamed from
2313 localhostAddress.
2314 (getByName): Return loopback address for null hostname, without
2315 security check. Use lookup(), not getAllByName.
2316 (getAllByName): Return loopback address for null hostname, without
2317 security check.
2318 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
2319 check here.
2320
2321 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
2322
2323 PR libgcj/17020
2324 Reported by Robin Green.
2325 * defineclass.cc (handleField): Don't throw exception on unrecognised
2326 modifier. Add FIXME comments for spec compliance.
2327 (handleMethod): Likewise.
2328
2329 2004-08-10 Hans Boehm <Hans.Boehm@hp.com>
2330
2331 PR libgcj/16662
2332 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
2333 (Almost everywhere): add LOG calls, fix, add comments.
2334 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
2335 Add explicit check for LOCKED bit in slow case (PR 16662).
2336 (_Jv_MonitorExit): Add casts in debug-only code.
2337 Always release LOCKED bit before throwing exception.
2338 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
2339 isn't. Handle easy cases without lock acquisition.
2340 (Object::wait): Use NotifyAll for lock inflation.
2341
2342 2004-08-12 David Daney <ddaney@avtrex.com>
2343
2344 * testsuite/libjava.lang/Process_1.java: New test.
2345 * testsuite/libjava.lang/Process_2.java: New test.
2346 * testsuite/libjava.lang/Process_3.java: New test.
2347 * testsuite/libjava.lang/Process_4.java: New test.
2348 * testsuite/libjava.lang/Process_5.java: New test.
2349 * testsuite/libjava.lang/Process_6.java: New test.
2350 * testsuite/libjava.lang/Process_1.out: Expected result.
2351 * testsuite/libjava.lang/Process_2.out: Expected result.
2352 * testsuite/libjava.lang/Process_3.out: Expected result.
2353 * testsuite/libjava.lang/Process_4.out: Expected result.
2354 * testsuite/libjava.lang/Process_5.out: Expected result.
2355 * testsuite/libjava.lang/Process_6.out: Expected result.
2356
2357 2004-08-12 David Daney <ddaney@avtrex.com>
2358
2359 PR libgcj/11801
2360 * java/lang/PosixProcess.java: Rewrote.
2361 * java/lang/natPosixProcess.cc: Rewrote.
2362 * java/lang/Runtime.java (execInternal): Declare throws IOException.
2363 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
2364 * posix-threads.cc (block_sigchld) New function.
2365 (_Jv_ThreadRegister) Use it.
2366 (_Jv_ThreadStart) Use it.
2367 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
2368 * Makefile.am: ... to specify extra native headers.
2369 * configure: Regenerated.
2370 * include/config.h: Regenerated.
2371 * Makefile.in: Regenerated.
2372 * gcj/Makefile.in: Regenerated.
2373 * include/Makefile.in: Regenerated.
2374 * testsuite/Makefile.in: Regenerated.
2375
2376 2004-08-12 Diego Novillo <dnovillo@redhat.com>
2377
2378 PR tree-optimization/16867
2379 * testsuite/libjava.lang/PR16867.java: New test.
2380
2381 2004-08-09 Per Bothner <per@bothner.com>
2382
2383 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
2384 with private fields and access methods.
2385 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
2386 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
2387 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
2388 ( _Jv_makeUtf8Const): Rewrite using new constructors.
2389 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
2390 * defineclass.cc: Use new _Utf8Const access/convenience methods.
2391 * jni.cc: Likewise.
2392 * resolve.cc: Likewise.
2393 * gcj/field.h: Likewise.
2394 * include/jvm.h: Likewise.
2395 * java/lang/Class.h: Likewise.
2396 * java/lang/natClass.cc: Likwise.
2397 * java/lang/natClassLoader.cc: Likewise
2398 * java/lang/reflect/natMethod.cc: Likewise
2399 * verify.cc: Likewise.
2400 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
2401 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
2402
2403 2004-08-10 Andrew Haley <aph@redhat.com>
2404
2405 * testsuite/libjava.lang/err14.java: New file.
2406 * testsuite/libjava.lang/err14.out: New file.
2407
2408 2004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
2409
2410 * Makefile.am: Fix missing rename from x_nat_headers to
2411 xlib_nat_headers.
2412 * Makefile.in: Regenerated.
2413
2414 2004-08-04 Andrew Haley <aph@redhat.com>
2415
2416 * java/security/BasicPermission.java: Don't check wildcards.
2417
2418 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2419 Michael Koch <konqueror@gmx.de>
2420
2421 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
2422 * configure.in: Replaced all usages of AC_LINK_FILES by
2423 AC_CONFIG_LINKS.
2424 * aclocal.m4,
2425 configure: Regenerated.
2426
2427 2004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2428 Michael Koch <konqueror@gmx.de>
2429
2430 * acconfig.h: Removed.
2431 * Makefile.am: Rename variables for xlib peer to include xlib and
2432 gtk_c_headers to gtk_jni_headers.
2433 * Makefile.in: Regenerated.
2434
2435 2004-08-04 Andrew Haley <aph@redhat.com>
2436
2437 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
2438 debugging.
2439
2440 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
2441
2442 * configure.in: Eliminate uses of changequote (mostly by quoting []).
2443 Replace most top level 'dnl' comments with '#' comments, conforming
2444 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
2445 help strings.
2446 * configure: Rebuilt.
2447
2448 2004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
2449
2450 * acinclude.m4: Include no-executables.m4.
2451 * aclocal.m4: Rebuild.
2452 * configure.in: Convert to the autoconf 2.59 version of
2453 of the no-executables hack, and also of the nonstandard CXX
2454 hack and the multilibbed CC and CXX hack. Change prerequisite
2455 to autoconf 2.59.
2456 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
2457 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
2458 testsuite/Makefile.in: Regenerate.
2459
2460 2004-08-03 Tom Tromey <tromey@redhat.com>
2461
2462 * jni.cc: Reindented.
2463
2464 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2465
2466 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
2467
2468 2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2469
2470 * testsuite/libjava.compile/PR16701.java: New test.
2471
2472 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
2473
2474 * java/util/Collection.java, java/util/List.java,
2475 java/util/Map.java, java/util/Set.java,
2476 java/util/SortedMap.java, java/util/SortedSet.java:
2477 Added additional exceptions to documentation.
2478
2479 2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
2480
2481 PR libgcj/16814
2482 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
2483 * configure. Regenerate.
2484 * include/win32.h: Explicitly include winsock2.h
2485 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
2486 Winsock api.
2487
2488 2004-07-30 Michael Koch <konqueror@gmx.de>
2489
2490 * java/util/zip/GZIPInputStream.java
2491 (GZIPInputStream): Increase buffer size to 4k.
2492 * java/util/zip/GZIPOutputStream.java
2493 (GZIPOutputStream): Likewise.
2494 * java/util/zip/Inflater.java
2495 (setInput): Merged formating with GNU classpath.
2496 * java/util/zip/InflaterInputStream.java
2497 (InflaterInputStream): Increase buffer size to 4k.
2498 (fill): Throw exception if stream ends early.
2499 (read): Merged endless-loop with GNU classpath.
2500 (skip): Increase buffer size to 2k.
2501
2502 2004-07-30 Michael Koch <konqueror@gmx.de>
2503
2504 * gnu/java/awt/EmbeddedWindow.java
2505 (addNotify): Use AccessController to allow execution of privileged
2506 code.
2507
2508 2004-07-29 Michael Koch <konqueror@gmx.de>
2509
2510 * gnu/java/lang/MainThread.java:
2511 Explicitely import used classes.
2512 (args): Make it type String[].
2513
2514 2004-07-29 Dalibor Topic <robilad@kaffe.org>
2515
2516 * gnu/java/awt/ComponentDataBlitOp.java,
2517 gnu/java/beans/ExplicitBeanInfo.java,
2518 gnu/java/beans/IntrospectionIncubator.java,
2519 gnu/java/beans/editors/ColorEditor.java,
2520 gnu/java/beans/editors/FontEditor.java,
2521 gnu/java/beans/editors/NativeBooleanEditor.java,
2522 gnu/java/beans/editors/NativeByteEditor.java,
2523 gnu/java/beans/editors/NativeDoubleEditor.java,
2524 gnu/java/beans/editors/NativeFloatEditor.java,
2525 gnu/java/beans/editors/NativeIntEditor.java,
2526 gnu/java/beans/editors/NativeLongEditor.java,
2527 gnu/java/beans/editors/NativeShortEditor.java,
2528 gnu/java/beans/editors/StringEditor.java,
2529 gnu/java/io/ClassLoaderObjectInputStream.java,
2530 gnu/java/io/decode/Decoder.java,
2531 gnu/java/io/encode/Encoder.java,
2532 gnu/java/lang/ClassHelper.java,
2533 gnu/java/locale/Calendar.java,
2534 gnu/java/locale/Calendar_de.java,
2535 gnu/java/locale/Calendar_en.java,
2536 gnu/java/locale/Calendar_nl.java,
2537 gnu/java/locale/LocaleInformation_de.java,
2538 gnu/java/locale/LocaleInformation_en.java,
2539 gnu/java/locale/LocaleInformation_nl.java:
2540 Cleaned up imports.
2541
2542 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2543
2544 * README: Remove obsolete info. Update bug URL.
2545 * THANKS: Updated.
2546 * NEWS: Updated with news up to GCC 3.4 release.
2547
2548 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2549
2550 * gnu/java/security/action/GetPropertyAction.java (setParameters):
2551 Renamed from 'setName'. New 2-argument form with default value.
2552 (run): Pass default 'value' parameter to System.getProperty().
2553 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
2554 typos.
2555 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
2556 not 'setName'.
2557
2558 2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2559
2560 * configure.in: Check for minimum GTK version 2.4 requirement.
2561 * configure: Rebuilt.
2562
2563 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2564
2565 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
2566 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
2567 Reduce sleep time.
2568 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
2569 compiler bug.
2570 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
2571 address. Reduce sleep times. Synchronize with target threads before
2572 attempting to interrupt them. Don't try to calibrate yeild count,
2573 instead, always loop for a fixed time.
2574 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
2575 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
2576 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
2577 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
2578 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
2579 * testsuite/libjava.lang/pr179.java: Likewise.
2580 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
2581 time. Remove upper bounds check on sleep time.
2582
2583 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2584
2585 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
2586 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
2587
2588 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2589
2590 * java/io/File.java (toURI): Throw RuntimeException, not
2591 InternalError.
2592 * java/lang/Runtime.java (exit): Qualify static sleep() call with
2593 class name, not instance.
2594
2595 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
2596
2597 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
2598 and gnu/java/security/action/SetAccessibleAction.java.
2599 * Makefile.in: Rebuilt.
2600
2601 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2602
2603 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
2604 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
2605 _Jv_InitPrimClass.
2606 (DECLARE_PRIM_TYPE): Don't declare array vtables.
2607 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
2608 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
2609
2610 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
2611
2612 * Makefile.am: Replace jar, rmic and rmiregistry references with
2613 gjar, grmic and grmiregistry.
2614 * configure.in: Likewise.
2615 * Makefile.in: Regenerate.
2616 * configure: Likewise.
2617 * gcj/Makefile.in: Likewise.
2618 * include/Makefile.in: Likewise.
2619 * testsuite/Makefile.in: Likewise.
2620
2621 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2622
2623 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
2624 for privileged getProperty calls.
2625 * java/io/ObjectOutputStream.java (getField): No longer static. Use
2626 SetAccessibleAction instead of anonymous class for doPrivileged call.
2627 (getMethod): Likewise.
2628 (setAccessible): New field. PrivilegedAction object to use when
2629 calling setAccessible.
2630 * java/io/ObjectStreamClass.java (calculateOffsets): Use
2631 SetAccessibleAction instead of anonymous class for diPrivileged call.
2632 (setFields): Likewise.
2633 (getClassUID): Likewise.
2634 (findMethod): Likewise.
2635 * gnu/java/security/action/GetPropertyAction.java: New class.
2636 * gnu/java/security/action/SetAccessibleAction.java: New class.
2637
2638 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2639
2640 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
2641 for final fields.
2642 * testsuite/libjava.lang/Serialization.java: New test.
2643 * testsuite/libjava.lang/Serialization.out: New.
2644
2645 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2646
2647 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
2648 missed in last commit.
2649
2650 2004-07-23 Mark Wielaard <mark@klomp.org>
2651
2652 * java/lang/System.java (static): Set http.agent system property when
2653 not yet set.
2654 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
2655 from system property inside AccessController.doPrivileged() call.
2656 (proxyPort): Made package private.
2657 (proxyInUse): Likewise.
2658 (proxyHost): Likewise.
2659 (userAgent): Likewise.
2660
2661 2004-07-23 Mark Wielaard <mark@klomp.org>
2662
2663 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
2664 implementation.
2665
2666 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
2667
2668 * Makefile.am (ordinary_java_source_files): Add
2669 DefaultContentHandlerFactory.java.
2670 * Makefile.in: Rebuilt.
2671 * java/net/URLConnection.java (defaultFactory): New field.
2672 (getContent):
2673 (getContentHandler): Renamed from 'setContentHandler'. Try
2674 defaultFactory after user-set factory, if any. Search for content
2675 handler implementations in gnu.java.net.content, not gnu.gcj.content.
2676 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
2677 Implemented.
2678 (getLastModified): Implemented.
2679 (getPermission): Create file permission here, instead of in
2680 constructor.
2681 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
2682 Implemented.
2683 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
2684 Implemented.
2685 (getLastModified): Implemented.
2686 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2687 Default implementation.
2688 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2689 Implement using GdkPixbufDecoder.
2690
2691 2004-07-21 Michael Koch <konqueror@gmx.de>
2692
2693 * javax/swing/JTextArea.java
2694 (setLineWrap): Fire property change event after new value is set.
2695 (setTabSize): Likewise.
2696
2697 2004-07-21 Michael Koch <konqueror@gmx.de>
2698
2699 * javax/swing/JTable.java
2700 (autoCreateColumnsFromModel): New field.
2701 (autoResizeMode): Likewise.
2702 (cellEditor): Likewise.
2703 (cellSelectionEnabled): Likewise.
2704 (columnModel): Likewise.
2705 (dataModel): Likewise.
2706 (defaultEditorsByColumnClass): Likewise.
2707 (defaultRenderersByColumnClass): Likewise.
2708 (editingColumn): Likewise.
2709 (editingRow): Likewise.
2710 (gridColor): Likewise.
2711 (preferredViewportSize): Likewise.
2712 (rowHeight): Likewise.
2713 (rowMargin): Likewise.
2714 (rowSelectionAllowed): Likewise.
2715 (selectionBackground): Likewise.
2716 (selectionForeground): Likewise.
2717 (selectionModel): Likewise.
2718 (showHorizontalLines): Likewise.
2719 (showVerticalLines): Likewise.
2720 (tableHeader): Likewise.
2721 (JTable): Implemented.
2722 (getColumnModel): Likewise.
2723 (getSelectedRow): Likewise.
2724 (getSelectionModel): Likewise.
2725 (setModel): Likewise.
2726 (setSelectionModel): Likewise.
2727 (createScrollPaneForTable): New method.
2728 (createDefaultDataModel): Likewise.
2729 (createDefaultListSelectionModel): Likewise.
2730 (getModel): Likewise.
2731 (getTableHeader): Likewise.
2732 (setTableHeader): Likewise.
2733 (getColumnSelectionAllowed): Likewise.
2734 (setColumnSelectionAllowed): Likewise.
2735 (getRowSelectionAllowed): Likewise.
2736 (setRowSelectionAllowed): Likewise.
2737 (getAutoResizeMode): Likewise.
2738 (setAutoResizeMode): Likewise.
2739 (getColumnCount): Likewise.
2740 (getRowCount): Likewise.
2741 (getCellRenderer): Likewise.
2742 * javax/swing/JTree.java
2743 (cellRenderer): New field.
2744 (editable): Likewise.
2745 (rootVisible): Likewise.
2746 (showsRootHandles): Likewise.
2747 (getModel): New method.
2748 (setModel): Likewise.
2749 (isEditable): Likewise.
2750 (setEditable): Likewise.
2751 (isRootVisbile): Likewise.
2752 (setRootVisible): Likewise.
2753 (getShowsRootHandles): Likewise.
2754 (setShowRootHandles): Likewise.
2755 (getCellRenderer): Likewise.
2756 (setCellRenderer): Likewise.
2757
2758 2004-07-21 Michael Koch <konqueror@gmx.de>
2759
2760 * javax/swing/JFormattedTextField.java
2761 (setDocument): Implemented.
2762 * javax/swing/JRootPane.java:
2763 Fixed javadocs.
2764 * javax/swing/JTable.java
2765 (getDefaultRenderer): New method.
2766 * javax/swing/JTextField.java
2767 (setFont): Likewise.
2768 (getPreferredSize): Likewise.
2769 * javax/swing/JToggleButton.java
2770 (getAccessibleContext): Fix javadoc.
2771 * javax/swing/JTree.java:
2772 Add some javadocs.
2773 * javax/swing/JViewport.java:
2774 Likewise.
2775
2776 2004-07-21 David Jee <djee@redhat.com>
2777
2778 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
2779 Collect all native method declaration at the top.
2780 (create): Set the filename filter if necessary.
2781 (setDirectory): Call nativeSetDirectory().
2782 (setFilenameFilter): Implement.
2783 (filenameFilterCallback): New method.
2784 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2785 (create): Configure dialog to show hidden files.
2786 (filenameFilterCallback): New function.
2787 (nativeSetFilenameFilter): New function.
2788 (nativeSetDirectory): New function.
2789
2790 2004-07-21 Kim Ho <kho@redhat.com>
2791
2792 * javax/swing/plaf/basic/BasicSliderUI.java:
2793 Ran Jalopy.
2794 (paintTrack): Fill the track before painting
2795 the borders.
2796
2797 2004-07-21 Graydon Hoare <graydon@redhat.com>
2798
2799 patch from Roman Kennke <roman@ontographics.com>
2800 * javax/swing/Spring.java: New file.
2801 * javax/swing/SpringLayout.java: New file.
2802 * Makefile.am: Add new files.
2803 * Makefile.in: Regenerate.
2804
2805 2004-07-21 Graydon Hoare <graydon@redhat.com>
2806
2807 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
2808 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
2809 * javax/swing/ScrollPaneLayout.java: Likewise.
2810
2811 2004-07-21 Kim Ho <kho@redhat.com>
2812
2813 * javax/swing/DefaultDesktopManager.java:
2814 (findMinimum): Removed.
2815 (resizeFrame): Trust the UI to pass valid
2816 bounds.
2817 * javax/swing/JOptionPane.java:
2818 Implemented showInternalXXXDialog methods.
2819 (startModal): New method.
2820 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2821 (BorderListener::mouseDragged): Verify that the new
2822 bounds are valid before passing them to the DesktopManager.
2823 (preferredLayoutSize): Delegate
2824 to getSize.
2825 (minimumLayoutSize): Ditto.
2826 (getSize): New method.
2827 (GlassPaneDispatcher): Reimplemented by copying
2828 a stripped down LightweightDispatcher from Container.
2829 (getMinimumSize): Call minimumLayoutSize.
2830 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
2831 Ran Jalopy.
2832 (mousePressed): Add ability to properly close
2833 JInternalFrames.
2834 * javax/swing/plaf/basic/BasicToolBarUI.java:
2835 (DragWindow): Set owner for DragWindow.
2836
2837 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2838
2839 * java/awt/image/ShortLookupTable.java: New file.
2840 * java/awt/image/ByteLookupTable.java: New file.
2841 * Makefile.am: Added new files.
2842 * Makefile.in: Regenerated.
2843
2844 2004-07-21 David Jee <djee@redhat.com>
2845
2846 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2847 (create(GtkContainerPeer)): New native method.
2848 (create()): Call native create(), passing in the parent frame
2849 as the paramter. Natively set the current file and directory.
2850 (setFile): Construct an absolute filename before passing it to
2851 the native peer.
2852 (nativeGetDirectory): New method.
2853 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2854 (window_closed): Removed.
2855 (ok_clicked): Likewise.
2856 (cancel_clicked): Likewise.
2857 (handle_response): New method.
2858 (create): Use GtkFileChooserDialog.
2859 (connectSignals): Connect to handle_response.
2860 (nativeGetDirectory): New method.
2861 (nativeSetFile): Use GtkFileChooserDialog.
2862
2863 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2864
2865 * java/awt/image/LookupTable.java: New file.
2866 * Makefile.am: Added new file.
2867 * Makefile.in: Regenerated.
2868
2869 2004-07-21 Jerry Quinn <jlquinn@optonline.net>
2870
2871 * java/awt/image/Kernel.java: New file.
2872 * Makefile.am: Added new file.
2873 * Makefile.in: Regenerated.
2874
2875 2004-07-21 Olga Rodimina <rodimina@redhat.com>
2876
2877 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
2878 * javax/swing/JMenu.java: Likewise.
2879 * javax/swing/JMenuBar.java: Likewise.
2880 (MARGIN_CHANGED_PROPERTY): New property.
2881 (setMargin): Implemented.
2882 * javax/swing/JMenuItem.java: Fixed javadocs.
2883 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
2884 (LABEL_CHANGED_PROPERTY): New property.
2885 (add): changed to use createActionComponent.
2886 (createActionComponent): Implemented.
2887 (setLabel): Fire PropertyChangeEvent if label property
2888 changes.
2889 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
2890 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
2891 (ContainerHandler): Repaint if margin property has changed.
2892 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2893 (installUI): Call installComponents().
2894 (uninstallUI): Call uinstallComponents().
2895 * javax/swing/plaf/basic/BasicMenuUI.java:
2896 Fixed javadocs.
2897 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2898 Likewise.
2899
2900 2004-07-21 Kim Ho <kho@redhat.com>
2901
2902 * javax/swing/plaf/basic/BasicToolBarUI.java:
2903 (DragWindow): Use the right constructor.
2904
2905 2004-07-21 Kim Ho <kho@redhat.com>
2906
2907 * javax/swing/JToolBar.java:
2908 (layoutContainer): Use getComponents.
2909 * javax/swing/plaf/basic/BasicToolBarUI.java:
2910 (DragWindow): Don't use SwingUtilities'
2911 getOwnerFrame
2912 (ToolBarDialog): ditto.
2913
2914 2004-07-21 Kim Ho <kho@redhat.com>
2915
2916 * javax/swing/JRootPane.java:
2917 Ran jalopy.
2918 (layoutContainer): Set the glasspane's size to
2919 be the same as the content pane.
2920 (createGlassPane): Set opaque property to false.
2921
2922 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2923
2924 * java/awt/Component.java (requestFocus()): Don't handle Panels
2925 specially.
2926 (requestFocus(boolean)): Likewise.
2927 (requestFocusInWindow(boolean)): Likewise.
2928 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
2929 Set GTK_CAN_FOCUS flag.
2930
2931 2004-07-21 Kim Ho <kho@redhat.com>
2932
2933 * Makefile.am: Added new file.
2934 * Makefile.in: Regenerated.
2935 * gcj/Makefile.in: Regenerated.
2936 * include/Makefile.in: Regenerated.
2937 * javax/swing/AbstractButton.java:
2938 Add rollOverEnabled property.
2939 (setRolloverEnabled): Use new property.
2940 (isRolloverEnabled): Use new property.
2941 * javax/swing/JTabbedPane.java:
2942 (setComponent): Remove useless JTabbedPane.this.
2943 * javax/swing/JToolBar.java: Finish implementation.
2944 * javax/swing/plaf/basic/BasicArrowButton.java:
2945 (paint): Moved border painting to a border.
2946 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2947 Change JToolBar look and feel defaults.
2948 * javax/swing/plaf/basic/BasicOptionPaneUI.java
2949 (actionPerformed): Return Integer index instead of name.
2950 (addButtonComponents): Check to see if component is
2951 JButton last.
2952 (createMessageArea): Don't use components that are not
2953 completed yet.
2954 (getIconForType): Use temporary icons.
2955 * javax/swing/plaf/basic/BasicSliderUI.java:
2956 (mousePressed): Do not return if it's on thumb.
2957 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
2958 (paintMinorTickForVertSlider): ditto.
2959 (paintMajorTickForHorizSlider): ditto.
2960 (paintMajorTickForVertSlider): ditto.
2961 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
2962 Add a border around the SplitPaneDivider.
2963 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
2964 Remove comments.
2965 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
2966 New file. Implemented.
2967 * javax/swing/plaf/basic/BasicToolBarUI.java:
2968 Implemented.
2969 * testsuite/Makefile.in: Regenerated.
2970
2971 2004-07-21 Graydon Hoare <graydon@redhat.com>
2972
2973 * javax/swing/Timer.java (run): Queue events each time cycle.
2974
2975 2004-07-21 David Jee <djee@redhat.com>
2976
2977 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2978 (imageComplete): Call image.imageComplete().
2979 * java/awt/image/MemoryImageSource.java:
2980 Reimplement consumers as a Vector instead of a Hashtable. This is
2981 because enumeration on a Hashtable is not thread-safe.
2982 (addConsumer): Adapt to Vector consumers.
2983 (isConsumer): Adapt to Vector consumers.
2984 (removeConsumer): Adapt to Vector consumers.
2985 (startProduction): Adapt to Vector consumers. Call imageComplete()
2986 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
2987 (newPixels): Adapt to Vector consumers.
2988 (sendPicture): Set the color model of the image consumer.
2989 (newPixels(IIII)): Adapt to Vector consumers.
2990 (newPixels(IIIIB)): Adapt to Vector consumers.
2991
2992 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2993
2994 * java/awt/Component.java (deliverEvent): Implement.
2995 (postEvent): Implement.
2996 (handleEvent): Implement.
2997 (translateEvent): New method.
2998 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
2999 * java/awt/Container.java (deliverEvent): Implement.
3000 * java/awt/Event.java (paramString): Fix formatting.
3001 * java/awt/Font.java (toString): Likewise.
3002 * java/awt/Window.java (postEvent): Implement.
3003
3004 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3005
3006 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3007 Set window's focus owner upon receiving a FOCUS_LOST event.
3008 * java/awt/Window.java (Window()): Refocus the previously
3009 focused component within the window when the window regains the
3010 top-level focus.
3011 (setFocusOwner): New method.
3012 * java/awt/Component.java (requestFocus): Add FIXME.
3013
3014 * libgcj.pc.in: Remove library flags.
3015
3016 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3017
3018 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
3019 MOUSE_PRESSED event.
3020 * java/awt/Component.java (requestFocus()): Handle Panel
3021 specially. Post FOCUS_LOST event on opposite component.
3022 (requestFocus(boolean)): Likewise.
3023 (requestFocusInWindow(boolean)): Likewise.
3024 (paramString): Reorder dimension fields.
3025 * java/awt/Container.java (paramString): Fix string format.
3026 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3027 Handle FOCUS_LOST events. Don't handle Windows specially. Only
3028 process key events if the focus owner is non-null.
3029 (dispatchKeyEvent): Likewise.
3030 * java/awt/Frame.java (paramString): Fix formatting.
3031 (generateName): New method.
3032 (getUniqueLong): Likewise.
3033 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
3034 the temporary focus owner is null. If so, return the permanent
3035 focus owner.
3036 * java/awt/Panel.java (generateName): New method.
3037 (getUniqueLong): Likewise.
3038 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
3039 signal handling to make callbacks more specific.
3040
3041 2004-07-21 Michael Koch <konqueror@gmx.de>
3042
3043 * javax/swing/text/Position.java
3044 (Bias): Implemented.
3045
3046 2004-07-21 Michael Koch <konqueror@gmx.de>
3047
3048 * javax/swing/LookAndFeel.java
3049 (provideErrorFeedback): New method.
3050
3051 2004-07-21 Michael Koch <konqueror@gmx.de>
3052
3053 * javax/swing/JTextArea.java
3054 (tabSize): New field.
3055 (getTabSize): New method.
3056 (setTabSize): Likewise.
3057
3058 2004-07-21 Michael Koch <konqueror@gmx.de>
3059
3060 * javax/swing/ActionMap.java:
3061 Fixed javadocs all over.
3062 (serialVersionUID): Made private.
3063 (parent): Don't explicitely initialize with default value.
3064 (get): SImplified.
3065 (keys): Reimplemented.
3066 (allKeys): Likewise.
3067 (convertSet): Removed.
3068 * javax/swing/ComponentInputMap.java:
3069 Fixed javadocs all over.
3070 (ComponentInputMap): Implemented.
3071 (put): Likewise.
3072 (clear): Likewise.
3073 (remove): Likewise.
3074 (SetParent): Likewise.
3075 (getComponent): Likewise.
3076 * javax/swing/InputMap.java:
3077 Fixed javadocs all over.
3078 (serialVersionUID): Made private.
3079 (parent): Don't explicitely initialize with default value.
3080 (get): SImplified.
3081 (keys): Reimplemented.
3082 (allKeys): Likewise.
3083 (convertSet): Removed.
3084
3085 2004-07-21 Michael Koch <konqueror@gmx.de>
3086
3087 * javax/swing/ActionMap.java,
3088 javax/swing/ComponentInputMap.java,
3089 javax/swing/InputMap.java,
3090 javax/swing/table/DefaultTableColumnModel.java,
3091 javax/swing/table/TableColumn.java,
3092 javax/swing/table/TableColumnModel.java,
3093 javax/swing/table/TableModel.java,
3094 javax/swing/text/AbstractDocument.java,
3095 javax/swing/text/TextAction.java:
3096 Reformated.
3097
3098 2004-07-21 Graydon Hoare <graydon@redhat.com>
3099
3100 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
3101 Make method non-static.
3102 * javax/swing/AbstractButton.java:
3103 Rename fields to match property names where possible.
3104 (iconTextGap): New property.
3105 * javax/swing/JCheckBox.java: Match AbstractButton changes.
3106 (init) New method, call from after various constructors.
3107 * javax/swing/JComponent.java (revalidate):
3108 Invalidate before queueing repair.
3109 * javax/swing/JList.java (getPreferredScrollableViewportSize):
3110 Reimplement in terms of visibleRowCount property.
3111 * javax/swing/JMenuButton.java: Match AbstractButton changes.
3112 * javax/swing/JScrollPane.java (createScrollListener):
3113 Remove tracing chatter.
3114 * javax/swing/JToggleButton.java: Match AbstractButton changes.
3115 * javax/swing/RepaintManager.java (addInvalidComponent):
3116 Don't invalidate.
3117 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
3118 calculations.
3119 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
3120 Mimic sun behavior on top left/right positioning.
3121 * javax/swing/ViewportLayout.java (preferredLayoutSize):
3122 Remove mistaken use of preferredScrollableViewportSize here.
3123 (layoutContainer): Use view's preferred size as basis.
3124 * javax/swing/plaf/basic/BasicButtonUI.java:
3125 Set, get, and use textIconGap property.
3126 (paint) Paint text returned from layout (with ellipsis).
3127 * javax/swing/plaf/basic/BasicListUI.java:
3128 Remove tracing chatter, correct various minor calculations.
3129 (getCellBounds): Update layout state before calculating.
3130 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
3131 Use margin default similar to sun's.
3132 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
3133 (createIncreaseIcon): Center icon, minimize margins.
3134 (createDecreaseIcon): Likewise.
3135 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
3136 Implement.
3137 (installUI): Call it.
3138 (uninstallDefaults): Implement.
3139 (uninstallUI): Call it.
3140 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
3141 Call existing Window constructor.
3142 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
3143 Set clip before painting.
3144
3145 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3146
3147 * javax/swing/JMenuItem.java:
3148 (processMouseEvent): Reimplemented to deal with
3149 mouse drag events.
3150 (createMenuDragMouseEvent): New private helper method.
3151 Creates MenuDragMouseEvent.
3152 * javax/swing/MenuSelectionManager.java
3153 (componentForPoint): Implemented.
3154 (isComponentPartOfCurrentMenu): Made public.
3155 (processMouseEvent): Reimplemented to deal with
3156 mouse drag events.
3157 (setSelectedPath): Corrected small mistake that caused
3158 path to be set incorrectly.
3159 (getPath): If given component is JMenu then also add this
3160 menu's popup menu to the selected path.
3161 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3162 (getPath): Ditto.
3163 (getPreferredSize): Call getPreferredMenuItemSize().
3164 (getPreferredItemSize): Moved code from getPreferredSize to here.
3165 (installListeners): Install MouseMotionListeners.
3166 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
3167 if mouse wasn't released in the bounds of this menu item.
3168 (MenuDragMouseHandler): Implemented.
3169 * javax/swing/plaf/basic/BasicMenuUI.java:
3170 (installListeners): Install MouseMotionListener and
3171 MenuDrageMouseListener.
3172 (MenuDragMouseHandler): Implemented.
3173 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3174 (uninstallListeners): Implemented.
3175
3176 2004-07-21 Michael Koch <konqueror@gmx.de>
3177
3178 * javax/swing/JCheckBox.java: Reformated.
3179 (JCheckBox): Fixed all constructors.
3180 (isBorderPaintedFlat): New method.
3181 (setBorderPaintedFlat): New method.
3182 * javax/swing/JEditorPane.java
3183 (createEditorKitForContentType): Made public.
3184 (scrollToReference): Likewise.
3185 * javax/swing/JTextArea.java
3186 (setLineWrap): Fire property change.
3187 * javax/swing/JToggleButton.java
3188 (JToggleButton): New constructor.
3189 (JToggleButton): Simplified.
3190 * javax/swing/text/AttributeSet.java
3191 (FontAttribute): Renamed from FontCharacterAttribute.
3192 * javax/swing/text/JTextComponent.java
3193 (KeyBinBinding): Added javadoc.
3194 (JTextComponent): Likewise.
3195 (getAccessibleContext): Fixed javadoc.
3196 * javax/swing/text/View.java
3197 (View): Added javadoc.
3198 * javax/swing/text/TabableView.java: New file.
3199 * Makefile.am: Added javax/swing/text/TabableView.java.
3200 * Makefile.in: Regenerated.
3201
3202 2004-07-21 Graydon Hoare <graydon@redhat.com>
3203
3204 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
3205 * gnu/java/awt/peer/gtk/GtkToolkit.java
3206 (GtkErrorImage): New helper class.
3207 (bufferedImageOrError): New helper method.
3208 (createImage): Use it.
3209
3210 2004-07-21 David Jee <djee@redhat.com>
3211
3212 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3213 (setCaretPosition): Scroll the text view so the new caret position
3214 is visible on screen.
3215
3216 2004-07-21 David Jee <djee@redhat.com>
3217
3218 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3219 (setBounds): Do not validate awtComponent here.
3220 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
3221 (getPreferredSize): New method.
3222 * java/awt/ScrollPane.java
3223 (ScrollPane): Set default size to 100x100.
3224 (addNotify): If child is not a Panel, wrap it with a new Panel.
3225 (paramString): Implement.
3226
3227 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3228
3229 * javax/swing/JMenu.java:
3230 (setSelected): Display popup menu only if this menu
3231 is showing on the screen.
3232 * javax/swing/JPopupMenu.java:
3233 (processMouseEvent): Added comment.
3234 (processKeyEvent): Likewise.
3235 * javax/swing/MenuSelectionManager.java:
3236 (clearSelectedPath): Only fireStateChanged() after
3237 selected path was changed, not before.
3238 (setSelectedPath): Likewise.
3239 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3240 (paintMenuItem): Corrected position of menu item's
3241 icon.
3242 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3243 (installUI): Correct setDefaultLightWeightPopupEnabled call.
3244 (popupMenuCanceled): Reimplemented.
3245 (popupMenuWillBecomeVisible): Select first menu item by default
3246 when displaying free floating popup menus.
3247 (TopWindowListener): Reimplemented.
3248
3249 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3250
3251 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
3252 Panel from being painted twice when it is first shown.
3253
3254 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3255
3256 * java/awt/Window.java: Reverted changes from my
3257 previous patch for creating window without an owner.
3258 * javax/swing/SwingUtilities.java:
3259 (SwingUtilities.OwnerFrame): made static.
3260 (OwnerFrame.setVisible): New method. Overridden with
3261 empty implementation.
3262 (OwnerFrame.isShowing): New method. Ovverridden
3263 to return always true.
3264
3265 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3266
3267 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3268 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3269 (GtkComponentPeer): Remove temporary try/catch block.
3270 (setVisible): Call show and hide.
3271 (show): Make native.
3272 (hide): Likewise.
3273 (getArgs): Don't add "visible" argument.
3274 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3275 (property_notify_predicate): Return Bool instead of int.
3276 (find_layout): New function.
3277 (connectJObject): Call find_layout.
3278 (connectSignals): Likewise.
3279 (moveLayout): Likewise.
3280 (gtkLayoutSetVisible): Likewise.
3281
3282 2004-07-21 Mark Wielaard <mark@klomp.org>
3283
3284 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3285 on notifier object before calling notifyAll().
3286
3287 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3288
3289 * java/awt/Window.java: Changed constructors to use new
3290 method that is described below. Constructors call this
3291 methods only if newly created window should have an owner.
3292 (setWindowOwner): New method. Implementation for
3293 this method is moved from this(owner,configuration).
3294 * javax/swing/JWindow.java:
3295 (JWindow): Reimplement to use SwingUtilities.ownerFrame
3296 instead of owner.
3297 * javax/swing/SwingUtilities.java:
3298 (ownerFrame): Change type of this field to OwnerFrame.
3299 (getOwnerFrame): Changed to return object of type OwnerFrame.
3300 (SwingUtilities.OwnerFrame): New class. Represents owner
3301 of a Window that is not provided with one.
3302
3303 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3304
3305 * javax/swing/AbstractButton.java:
3306 (configurePropertiesFromAction): Set action command
3307 to button's text by default if action command is not
3308 explicitely specified.
3309 * javax/swing/JMenu.java: Remove unnecessary listener
3310 and methods relevant to it.
3311 (setSelected): Reimplemented.
3312 (menuSelectionChanged): Moved most part of implementation to
3313 setSelected() and call it instead.
3314 * javax/swing/JMenuItem.java:
3315 (init): Comment out statement that sets paint_border to false.
3316 (configurePropertiesFromAction): Do not set accelerator
3317 for JMenu.
3318 (menuSelectionChanged): Change selected index in the selection
3319 model of menu item's parent.
3320 * javax/swing/JPopupMenu.java:
3321 (remove): Set constraints.fill field to GridBagConstraints.BOTH
3322 instead of GridBagConstraints.HORIZONTAL.
3323 (insert): Likewise.
3324 (createActionChangeListener): Implemented.
3325 (setVisible): Correct location of HeavyWeightMenu and
3326 don't firePopupMenuCanceled().
3327 (menuSelectionChanged): Implemented.
3328 (ActionChangeListener): New Listener. Implemented.
3329 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3330 (BasicMenuBarUI.ContainerHandler): Implemented.
3331 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3332 (paintMenuItem): Uncommented out code that paints
3333 icon, now that icons are working properly.
3334 (PropertyChangeListener): Implemented.
3335 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3336 Added javadocs.
3337 (topWindowListener): New field.
3338 (Constructor): initialize topWindowListener.
3339 (BasicPopupMenuUI.TopWindowListener): Implemented.
3340 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
3341 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
3342 Implemented.
3343
3344 2004-07-21 Michael Koch <konqueror@gmx.de>
3345
3346 * javax/swing/plaf/basic/BasicButtonUI.java
3347 (paintFocus): Fixed method signature.
3348 (paintButtonPressed): Likewise.
3349 (paintButtonNormal): Likewise.
3350 (paintText): New method.
3351 * javax/swing/plaf/basic/BasicLabelUI.java
3352 (paint): Re-indented.
3353 * javax/swing/plaf/basic/BasicTextUI.java
3354 (installUI): Set parent textComponent to opaque.
3355 * javax/swing/text/DefaultHighlighter.java
3356 (checkPositions): New helper method.
3357 (addHighlight): Throws BadLocationException, check positions.
3358 (changeHighlight): Likewise.
3359 * javax/swing/text/EditorKit.java
3360 (EditorKit): Implements Serializable.
3361 * javax/swing/text/JTextComponent.java
3362 (getUI): Added javadoc.
3363 (setUI): Likewise.
3364 (upadteUI): Added javadoc, don't revalidate and repaint.
3365
3366 2004-07-21 David Jee <djee@redhat.com>
3367
3368 * java/awt/GridBagLayout.java
3369 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
3370 * javax/swing/AbstractButton.java
3371 (setText): Reindent.
3372 * javax/swing/RepaintManager.java
3373 (addInvalidComponent): Find the first ancestor that isValidateRoot().
3374
3375 2004-07-21 Michael Koch <konqueror@gmx.de>
3376
3377 * javax/swing/JFormattedTextField.java
3378 (value): New field.
3379 (JFormattedTextField): Implemented.
3380 (getValue): Likewise.
3381 (setValue): Likewise.
3382 * javax/swing/LookAndFeel.java
3383 (getSupportsWindowDecorations): New method.
3384 * javax/swing/UIDefaults.java:
3385 Use java.beans.PropertyChangeSupport instead of doing all ourself.
3386 (addPropertyChangeListener): Made public.
3387 (addResourceBundle): Likewise.
3388 (removeResourceBundle): Likewise.
3389 (setDefaultLocale): Likewise.
3390 * javax/swing/plaf/basic/BasicRootPaneUI.java
3391 (BasicRootPaneUI): Implements PropertyChangeListener.
3392 (propertyChange): New method.
3393 * javax/swing/plaf/basic/BasicTextUI.java
3394 (BasicHighlighter): New inner class.
3395 (createHighlighter): New method.
3396 * javax/swing/plaf/basic/BasicToolBarUI.java
3397 (DragWindow): Extends java.awt.Window.
3398 * javax/swing/text/JTextComponent.java
3399 (getDocument): Removed debug output.
3400 * javax/swing/plaf/basic/BasicTextFieldUI.java,
3401 javax/swing/text/DefaultHighlighter.java,
3402 javax/swing/text/FieldView.java,
3403 javax/swing/text/PlainView.java: New files.
3404 * Makefile.am: Added new files.
3405 * Makefile.in: Regenerated.
3406
3407 2004-07-21 Michael Koch <konqueror@gmx.de>
3408
3409 * javax/swing/JEditorPane.java
3410 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
3411 (createEditorKitForContentType): Likewise.
3412 * javax/swing/text/DefaultEditorKit.java
3413 (serialVersionUID): Added constant field.
3414 (EndOfLineStringPropery): Fixed typo.
3415 (DefaultEditorKit): New constructor.
3416 * javax/swing/text/Segment.java:
3417 Import java.text.CharacterIterator.
3418 * javax/swing/text/CharacterIterator.java,
3419 javax/swing/text/PlainEditorKit.java: Removed.
3420 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
3421 javax/swing/text/PlainEditorKit.java.
3422 * Makefile.in: Regenerated.
3423
3424 2004-07-21 Michael Koch <konqueror@gmx.de>
3425
3426 * javax/swing/JButton.java,
3427 javax/swing/text/DefaultEditorKit.java,
3428 javax/swing/text/EditorKit.java,
3429 javax/swing/text/Segment.java,
3430 javax/swing/text/StyledEditorKit.java:
3431 Reformatted.
3432
3433 2004-07-21 Michael Koch <konqueror@gmx.de>
3434
3435 * javax/swing/ImageIcon.java
3436 (file): Removed.
3437 (description): Renamed from descr.
3438 (ImageIcon): Added missing constructors.
3439 (setParent): Removed.
3440 (setImageObserver): New method.
3441 (getImageObserver): New method.
3442 (paintIcon): Handle observer = null.
3443 * javax/swing/JButton.java
3444 (removeNotify): Fixed javadoc.
3445 (updateUI): Simplified.
3446 * javax/swing/JRootPane.java
3447 (serialVersionUID): New constant field.
3448 * javax/swing/UIManager.java:
3449 Fixed javadocs all over.
3450 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
3451 * javax/swing/text/AbstractDocument.java
3452 (createPosition): Throws BadLocationException.
3453 (getText): Likewise.
3454 (remove): Likewise.
3455 * javax/swing/text/ComponentView.java
3456 (modelToView): Likewise.
3457 * javax/swing/text/DefaultEditorKit.java:
3458 Made all public methods public.
3459 (read): Throws BadLocationException and IOException.
3460 (write): Likewise.
3461 * javax/swing/text/EditorKit.java:
3462 Made all public methods public.
3463 (serialVersionUID): New constant field.
3464 (clone): New method.
3465 (read): Throws BadLocationException and IOException.
3466 (write): Likewise.
3467 * javax/swing/text/Segment.java
3468 (array): Made public.
3469 (count): Likewise.
3470 (offset): Likewise.
3471 (Segment): New constructors.
3472 (clone): Reimplemented.
3473 * javax/swing/text/StyledEditorKit.java
3474 (serialVersionUID): New constant field.
3475
3476 2004-07-21 Graydon Hoare <graydon@redhat.com>
3477
3478 * java/awt/image/BufferedImage.java
3479 (getSource): Implement.
3480 * javax/swing/ImageIcon.java
3481 (ImageIcon): Implement ctor.
3482 * javax/swing/ScrollPaneLayout.java
3483 (preferredLayoutSize): Be more careful about nulls.
3484
3485 2004-07-21 Michael Koch <konqueror@gmx.de>
3486
3487 * javax/swing/text/AttributeSet.java
3488 (CharacterAttribute): New interface
3489 (ColorAttribute): Likewise.
3490 (FontCharacterAttribute): Likewise.
3491 (ParagraphAttribute): Likewise.
3492 * javax/swing/text/DefaultCaret.java
3493 (moveCaret): New method.
3494 (positionCaret): Likewise.
3495 (repaint): Made protected.
3496 * javax/swing/text/JTextComponent.java
3497 (KeyBinding): Made it static.
3498 * javax/swing/text/View.java
3499 (getContainer): Honor parent == null.
3500
3501 2004-07-21 Michael Koch <konqueror@gmx.de>
3502
3503 * javax/swing/text/AbstractDocument.java:
3504 Reformatted.
3505
3506 2004-07-21 Michael Koch <konqueror@gmx.de>
3507
3508 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3509 Import javax.swing.UIManager explicitely.
3510 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
3511 (ScrollingButton): Made it static.
3512
3513 2004-07-21 Michael Koch <konqueror@gmx.de>
3514
3515 * javax/swing/UIDefaults.java
3516 (ActiveValue): Made public.
3517 (LazyValue): Likewise.
3518 * javax/swing/plaf/basic/BasicTextUI.java
3519 (RootView): Reintroduced.
3520 (view): Removed.
3521 (rootView): New field.
3522 (installUI): Create document if needed, initialize rootView.
3523 (uninstallUI): Hanle rootView.
3524 (paint): Likewise.
3525 (getRootView): Likewise.
3526 (setView): Likewise.
3527 * javax/swing/text/DefaultCaret.java:
3528 Renamed all "evt" variables to "event".
3529
3530 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3531
3532 * libgcj.spec.in: Add -l-java-util-logging.
3533
3534 2004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
3535
3536 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3537 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
3538 gtk-xft-dpi can no calculate the right value.
3539 (dpi_changed_cb): Mark *pspec as unsused.
3540
3541 2004-07-21 David Jee <djee@redhat.com>
3542
3543 * java/awt/Component.java
3544 (move): Delegate to setBounds().
3545 (resize): Likewise.
3546 (reshape): Fix so it repaints parent and self only when necessary.
3547
3548 2004-07-21 David Jee <djee@redhat.com>
3549
3550 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3551 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3552 (GtkComponentPeer): Revert previous patch from 2004-06-22.
3553 (setVisible): Likewise.
3554 (show): Likewise.
3555 (hide): Likewise.
3556 (getArgs): Likewise.
3557 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3558 (property_notify_predicate): Likewise.
3559 (find_layout): Likewise.
3560 (connectJObject): Likewise.
3561 (connectSignals): Likewise.
3562 (moveLayout): Likewise.
3563 (gtkLayoutSetVisible): Likewise.
3564
3565 2004-07-21 Graydon Hoare <graydon@redhat.com>
3566
3567 * Makefile.am
3568 (jv_convert_LDADD):
3569 (gij_LDADD):
3570 (rmic_LDADD):
3571 (rmiregistry_LDADD): Add lib-java-util-logging.la
3572 * Makefile.in: Regenerate.
3573
3574 2004-07-21 Michael Koch <konqueror@gmx.de>
3575
3576 * javax/swing/text/AbstractDocument.java
3577 (replace): Dont use protected method of java.util.Vector directly.
3578
3579 2004-07-21 Michael Koch <konqueror@gmx.de>
3580
3581 * javax/swing/plaf/basic/BasicTextUI.java
3582 (installUI): Call specialized install methods.
3583 (installDefaults): New method.
3584 (installListeners): Likewise.
3585 (installKeyboardActions): Likewise.
3586 (uninstallUI): Likewise.
3587 (uninstallDefaults): New method.
3588 (uninstallListeners): Likewise.
3589 (uninstallKeyboardActions): Likewise.
3590 (getPropertyPrefix): New abstract method.
3591 (paint): Made final, just call paintSafely().
3592 (paintSavely): New method.
3593 (paintBackground): Likewise.
3594 (getVisibleEditorRect): Likewise.
3595 * javax/swing/text/LayeredHighlighter.java,
3596 javax/swing/text/TabExpander.java: New files.
3597 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
3598 and javax/swing/text/TabExpander.java.
3599 * Makefile.in: Regenerated.
3600
3601 2004-07-21 Michael Koch <konqueror@gmx.de>
3602
3603 * javax/swing/plaf/basic/BasicTextUI.java
3604 (BasicTextUI): Made abstract.
3605 (BasicCaret): New inner class.
3606 (view): Don't explicitely initialize with "null".
3607 (textComponent): New field.
3608 (textColor): Removed.
3609 (disabledTextColor): Removed.
3610 (normalBackgroundColor): Removed.
3611 (RootView): Removed commented out inner class.
3612 (createUI): Removed.
3613 (createCaret): New method.
3614 (getComponent): Likewise.
3615 (installUI): Initialize textComponent only.
3616 (getPreferredSize): Use installed JTextComponent.
3617 (setView): New method.
3618 (create): Likewise.
3619 * javax/swing/text/JTextComponent.java
3620 (highlighter): New field.
3621 (caretColor): Likewise.
3622 (disabledTextColor): Likewise.
3623 (seletedTextColor): Likewise.
3624 (selectionColor): Likewise.
3625 (setUI): New method.
3626 (getCaretColor): Likewise.
3627 (setCaretColor): Likewise.
3628 (getDisabledColor): Likewise.
3629 (setDisabledColor): Likewise.
3630 (getSelectedTextColor): Likewise.
3631 (setSelectedTextColor): Likewise.
3632 (getSelectionColor): Likewise.
3633 (setSelectionColor): Likewise.
3634 (getHighlighter): Likewise.
3635 (setHighlighter): Likewise.
3636 (replaceSelection): Likewise.
3637
3638 2004-07-21 Michael Koch <konqueror@gmx.de>
3639
3640 * javax/swing/plaf/basic/BasicScrollPaneUI.java
3641 (BasicScrollPaneUI): Implements ScrollPaneConstants.
3642 * javax/swing/plaf/basic/BasicToolBarUI.java
3643 (BasicToolBarUI): Implements SwingConstants.
3644
3645 2004-07-21 Michael Koch <konqueror@gmx.de>
3646
3647 * javax/swing/JPopupMenu.java: Removed CVS tags.
3648 * javax/swing/UIDefaults.java: Reformatted.
3649 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3650 Explicitely import used classes.
3651
3652 2004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3653
3654 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3655 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3656 (GtkComponentPeer): Remove temporary try/catch block.
3657 (setVisible): Call show and hide.
3658 (show): Make native.
3659 (hide): Likewise.
3660 (getArgs): Don't add "visible" argument.
3661 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3662 (property_notify_predicate): Return Bool instead of int.
3663 (find_layout): New function.
3664 (connectJObject): Call find_layout.
3665 (connectSignals): Likewise.
3666 (moveLayout): Likewise.
3667 (gtkLayoutSetVisible): Likewise.
3668
3669 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3670
3671 * javax/swing/AbstractButton.java:
3672 (setDisplayedMnemonicIndex): Check if button
3673 text is not null before checking its length.
3674 * javax/swing/JMenuItem.java:
3675 (processMouseEvent): Disarm menu item if mouse has
3676 exited it.
3677 * javax/swing/plaf/basic/BasicMenuUI.java:
3678 (MouseInputHandler.mouseEntered): Do not raise
3679 popup menu if this menu is already selected.
3680 (MouseInputHandler.mousePressed): Do not fire
3681 MenuEvents.
3682 (MenuHandler): Implemented.
3683
3684 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3685
3686 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
3687 (getSelectedObjects): Implemented.
3688 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
3689 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
3690 Added javadoc for few methods.
3691 (processMouseEvent): Made public.
3692 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
3693 (processMouseEvent): Likewise.
3694
3695 2004-07-21 Olga Rodimina <rodimina@redhat.com>
3696
3697 * javax/swing/AbstractButton.java:
3698 (init): Set display mnemonic index to -1.
3699 (setMnemonic(char)): Use setMnemonic(int).
3700 (setMnemonic(int)): Set display mnemonic index.
3701 (getDisplayedMnemonicIndex): Change method signature
3702 by removing 'index' parameter.
3703 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3704 Added default for Menu.selectionBackground.
3705 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3706 (paintMenuItem): Change background color of the selected
3707 menu item.
3708 (paintText): Paint differently when menu item is disabled.
3709 Also paint mnemonic if it appears in the menu item's label.
3710 (paintAccelerator): Paint accelerator differently
3711 if menu item is disabled.
3712 * javax/swing/plaf/basic/BasicMenuUI.java:
3713 (installDefaults): Install defaults for
3714 selectionForeground and selectionBackground.
3715 (uninstallDefaults): Uninstall defauls for
3716 selectionForeground and selectionBackground.
3717
3718 2004-07-21 Michael Koch <konqueror@gmx.de>
3719
3720 * javax/swing/text/AbstractDocument.java
3721 (BranchElement): Implemented.
3722 (LeafElement): Implemented.
3723 * javax/swing/text/DefaultCaret.java:
3724 Import used classes.
3725 (serialVersionUID): New constant.
3726 * javax/swing/text/JTextComponent.java
3727 (AccessibleJTextComponent): Removed dead declaration.
3728 (caretPos): Removed.
3729 (setCaret): New method.
3730 * javax/swing/text/PlainDocument.java
3731 (rootElement): New field.
3732 (PlainDocument): Initialize rootElement.
3733 (createDefaultRoot): New method.
3734 (getDefaultRootElement): Implemented.
3735 * javax/swing/text/View.java: Reformatted.
3736 * javax/swing/text/ViewFactory.java
3737 (create): Added javadoc.
3738
3739 2004-07-21 Michael Koch <konqueror@gmx.de>
3740
3741 * javax/swing/ToolTipManager.java: Reformatted.
3742
3743 2004-07-21 Rodimina Olga <rodimina@redhat.com>
3744
3745 * javax/swing/AbstractButton.java
3746 (changeEvent): New field.
3747 (fireItemStateChanged): Change source of the event
3748 to 'this' before firing it to button listeners.
3749 (fireActionPerformed): Likewise.
3750 (fireStateChanged): Likewise.
3751 (createActionListener): Do not set source
3752 of the event to AbstractButton.
3753 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3754 (ContainerHandler.componentAdded): Removed
3755 print out statement.
3756 (ContainerHandler.componentRemoved): Likewise.
3757
3758 2004-07-21 Michael Koch <konqueror@gmx.de>
3759
3760 * javax/swing/text/Highlighter.java: New file.
3761 * Makefile.am: Added javax/swing/text/Highlighter.java.
3762 * Makefile.in: Regenerated.
3763
3764 2004-07-21 Michael Koch <konqueror@gmx.de>
3765
3766 * javax/swing/ToolTipManager.java
3767 (stillInsideTimerAction): Fixed constructor arguments.
3768 (outsideTimerAction): Likewise.
3769 (insideTimerAction): Likewise.
3770
3771 2004-07-21 Michael Koch <konqueror@gmx.de>
3772
3773 * javax/swing/JButton.java: Reformatted.
3774 * javax/swing/JFormattedTextField.java
3775 (getUIClassID): Implemented.
3776 * javax/swing/JRootPane.java
3777 (serialVersionUID): New constant.
3778 * javax/swing/JTextField.java
3779 (align): New field.
3780 (JTextField): Simplified.
3781 (getUIClassID): New method.
3782 (getActionListeners): Added @since tag.
3783 (setColumns): Invalidate layout and repaint.
3784 (getHorizontalAlignment): New method.
3785 (setHorizontalAlignment): New method.
3786 (selectAll): Removed.
3787 * javax/swing/SwingUtilities.java
3788 (getAncestorOfClass): Removed redundant @see tag.
3789 (isLeftMouseButton): Fixed implementation.
3790 (isMiddleMouseButton): Likewise.
3791 (isRightMouseButton): Likewise.
3792 * javax/swing/text/AbstractDocument.java
3793 (AttributeContext.addAttribute): New method.
3794 (AttributeContext.addAttributes): New method.
3795 (AttributeContext.getEmptySet): New method.
3796 (AttributeContext.reclaim): New method.
3797 (AttributeContext.removeAttribute): New method.
3798 (AttributeContext.removeAttributes): New method.
3799 * javax/swing/text/Document.java
3800 (createPosition): Throws BadLocationException.
3801 (getText): Likewise.
3802 (remove): Likewise.
3803 * javax/swing/text/JTextComponent.java
3804 (getText): Return null if no document is set. Catch
3805 BadLocationException.
3806 (getUI): Return ui.
3807 (updateUI): Simplified.
3808
3809 2004-07-21 Michael Koch <konqueror@gmx.de>
3810
3811 * javax/swing/JButton.java
3812 (removeNotify): Fixed javadoc.
3813 (updateUI): Simplified.
3814
3815 2004-07-21 David Jee <djee@redhat.com>
3816
3817 * gnu/java/awt/image/ImageDecoder.java
3818 (startProduction): Only add consumer if it's not added yet.
3819 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
3820 (GdkPixbufDecoder): Don't call initState() here.
3821 (produce): Call initState() here, to ensure area_prepared and
3822 area_updated signals are properly connected.
3823 * gnu/java/awt/peer/gtk/GtkImage.java
3824 (setColorModel): Use equals() to compare ColorModel objects.
3825 (setPixels): Likewise.
3826 * java/awt/image/ColorModel.java
3827 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
3828 * java/awt/image/RGBImageFilter.java
3829 (setColorModel): Set consumer's color model.
3830 (setPixels): Use equals() to compare ColorModel objects.
3831
3832 2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
3833
3834 * java/net/URLConnection.java (position): New field.
3835 (dateFormat1, dateFormat2, dateFormat3): Removed.
3836 (dateFormats): New field.
3837 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
3838 each time instead of re-allocating.
3839 (initializeDateFormats): Initialize 'dateFormats'.
3840
3841 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3842
3843 PR libgcj/16591
3844 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
3845 is defined.
3846
3847 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3848
3849 * java/net/Socket.java (getImpl): Now private. Remove comment.
3850
3851 2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3852
3853 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
3854 of chained Writer when calling super-constructor.
3855 * java/io/FilterWriter.java (FilterWriter): Likewise.
3856 * java/io/PrintWriter.java (PrintWriter): Likewise.
3857
3858 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
3859
3860 * prims.cc (process_gcj_properties): Don't increment i within LHS
3861 of assignment.
3862
3863 2004-07-19 Per Bothner <per@bothner.com>
3864
3865 Print -verbose:message on "loading", not initialization.
3866 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
3867 * defineclass.cc (_Jv_ClassReader::parse): Print message if
3868 gcj::verbose_class_flag.
3869 * java/lang/natClass.cc (initializeClass): Don't print message here.
3870 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
3871 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
3872 (_Jv_PrepareCompiledClass): Likewise.
3873
3874 2004-07-18 Matthias Klose <doko@debian.org>
3875
3876 * configure.in: Substitute target_noncanonical.
3877 * configure: Regenerate
3878
3879 2004-07-17 Michael Koch <konqueror@gmx.de>
3880
3881 * java/lang/String.java: Fixed javadocs all over.
3882
3883 2004-07-17 Mark Wielaard <mark@klomp.org>
3884
3885 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
3886 when size is smaller.
3887 * java/io/RandomAccessFile.java (setLength): Use truncate for
3888 shrinking the file and seek plus write for expanding the file.
3889
3890 2004-07-17 Michael Koch <konqueror@gmx.de>
3891
3892 * gnu/java/nio/channels/natFileChannelPosix.cc
3893 (implTruncate): Always save current position. Only reposition file
3894 pointer to where we started if not beyond new lenght. Reposition file
3895 pointer to file length if it points beyond the end of file.
3896
3897 2004-07-17 Mark Wielaard <mark@klomp.org>
3898
3899 * javax/swing/Box.java: Put FIXME comment above class declaration.
3900 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
3901 * javax/swing/JCheckBox.java: Likewise.
3902 * javax/swing/JDialog.java: Likewise.
3903 * javax/swing/JRadioButton.java: Likewise.
3904 * javax/swing/JToggleButton.java: Likewise.
3905 * javax/swing/UIManager.java: Likewise.
3906 * javax/swing/border/TitledBorder.java: Likewise.
3907 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3908 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
3909 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
3910 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3911 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
3912 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3913 * javax/swing/text/JTextComponent.java: Likewise.
3914
3915 2004-07-17 Jeroen Frijters <jeroen@frijters.net>
3916
3917 * java/net/DatagramPacket.java (setAddress): Removed check for
3918 null address.
3919
3920 2004-07-17 Michael Koch <konqueror@gmx.de>
3921
3922 * java/net/DatagramSocket.java
3923 (getLocalAddress): Check if socket is bound or not.
3924 * java/net/Socket.java
3925 (getLocalAddrss): Check if socket is bound or not.
3926 (getPort): Return -1 when not connected. Dont check getImpl() for
3927 null.
3928 (setReuseAddress): Check if socket is closed.
3929 (isConnected): Check if getImpl() returns null.
3930
3931 2004-07-17 Mark Wielaard <mark@klomp.org>
3932
3933 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3934 on notifier object before calling notifyAll().
3935
3936 2004-07-17 Michael Koch <konqueror@gmx.de>
3937
3938 * gnu/java/nio/channels/FileChannelImpl.java
3939 (finalize): Added javadoc.
3940
3941 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
3942
3943 * java/text/CollationElementIterator.java
3944 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
3945 (setText): Use ArrayList instead of Vector.
3946
3947 2004-07-17 Michael Koch <konqueror@gmx.de>
3948
3949 * java/nio/ByteOrder.java
3950 (static): Removed. Not needed.
3951 Thanks to Patrick Reali for noticing.
3952 * java/nio/charset/CharsetDecoder.java
3953 (decode): Fix for classpath bug #9177: Reset state before flipping.
3954
3955 2004-07-17 Michael Koch <konqueror@gmx.de>
3956
3957 * java/security/Security.java: Fixed javadocs all over.
3958
3959 2004-07-17 Michael Koch <konqueror@gmx.de>
3960
3961 * gnu/java/awt/EmbeddedWindow.java
3962 (static): Removed.
3963 (addNotify): Set peer via reflection.
3964 (setWindowPeer): Removed.
3965 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
3966 * Makefile.am (nat_source_files):
3967 Removed gnu/java/awt/natEmbeddedWindow.cc.
3968 * Makefile.in: Regenerated.
3969
3970 2004-07-17 Richard Earnshaw <rearnsha@arm.com>
3971
3972 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
3973 assignment.
3974 * configure: Regenerated.
3975
3976 2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
3977
3978 * configure.in: Use build_noncanonical rather than build_alias.
3979 * configure: Rebuild.
3980
3981 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
3982 by logic refactoring. Move default definition of NATIVE closer
3983 to first alternate definition.
3984 * configure: Regenerate.
3985
3986 * Makefile.am: Set ZIP and GCJH directly using autoconf.
3987 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
3988 gcj/Makefile.in: Regenerate.
3989 * configure.in: Set ZIP and GCJH. Remove redundant condition
3990 in AM_CONDITIONAL(NATIVE,...)
3991 * configure: Regenerate.
3992
3993 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
3994
3995 * configure.in: Use target_noncanonical rather than
3996 target_alias for forward-compatibility with autoconf 2.59.
3997 * configure: Regenerate.
3998 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
3999 testsuite/Makefile.am: Substitute target_noncanonical.
4000 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4001 testsuite/Makefile.in: Regenerate.
4002
4003 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
4004 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
4005 * acinclude.m4: Include acx.m4.
4006 * aclocal.m4: Regenerate.
4007 * configure: Regenerate.
4008
4009 2004-07-15 Bryce McKinlay <mckinlay@redhat.com>
4010
4011 PR libgcj/16574
4012 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
4013 (decimalFormat): New static variable.
4014 (sbuf): Likewise.
4015 (getTime): New. Override Date.getTime().
4016 (toString): Synchronize. Use decimalFormat to format nanos value
4017 correctly. Truncate extra zeros.
4018 (before): Compare getNanos() only if getTime() is equal.
4019 (after): Likewise.
4020
4021 2004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
4022
4023 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
4024 * configure.in: ...here.
4025 * aclocal.m4: Regenerate.
4026 * configure: Regenerate.
4027
4028 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
4029 * configure: Rebuilt with autoconf 2.13.
4030 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4031 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
4032
4033 2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
4034
4035 PR libgcj/16204
4036 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
4037 large file support.
4038 * Makefile.in: Rebuilt.
4039 * testsuite/libjava.lang/LargeFile.java: New test case.
4040 * testsuite/libjava.lang/LargeFile.out: New file.
4041
4042 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
4043
4044 * java/beans/EventHandler.java: Remove debugging statements.
4045
4046 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
4047
4048 * java/beans/EventHandler.java: New file.
4049 * Makefile.am (awt_java_source_files): Add EventHandler.java.
4050 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
4051 testsuite/Makefile.in: Regenerate.
4052
4053 2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
4054
4055 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
4056 flag to the gcj_setup.
4057 (gcj_jacks_run): Check tclsh version and launch jacks directly with
4058 the tclsh.
4059 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
4060 deprecation flag change. 58 XFAILS removed.
4061
4062 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
4063
4064 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
4065 -fno-use-divide-subroutine.
4066 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
4067 (HANDLE_FPE): Define.
4068 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
4069 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
4070 (HANDLE_DIVIDE_OVERFLOW): Define.
4071
4072 2004-07-14 Michael Koch <konqueror@gmx.de>
4073 Matthias Klose <doko@debian.org>
4074
4075 * java/awt/im/InputContext.java: Initialize in, line.
4076
4077 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
4078
4079 * interpret.cc (run): Correctly access libffi return values of
4080 integral smaller-than-int type; these are implicitly promoted.
4081
4082 2004-07-13 Bryce McKinlay <mckinlay@redhat.com>
4083
4084 PR libgcj/7587
4085 * interpret.cc (compile_mutex): New.
4086 (_Jv_InitInterpreter): New. Initialize compile_mutex.
4087 (run): Lock compile_mutex before calling compile() if compilation is
4088 required.
4089 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
4090 * include/java-interp.h (_Jv_InitInterpreter): Declare.
4091
4092 2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
4093
4094 PR libgcj/15713
4095 * include/jvm.h (_Jv_value): New union type.
4096 * gcj/field.h (_Jv_Field): Add new _addr union field variants
4097 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
4098 union members.
4099
4100 2004-07-12 Scott Gilbertson <scottg@mantatest.com>
4101
4102 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
4103 * gnu/awt/xlib/XOffScreenImage.java
4104 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
4105 constructor argument. Add constructor using ImageProducer.
4106 (getSource): Implement.
4107 (imageComplete): New method.
4108 (setColorModel): New method.
4109 (setDimensions): New method.
4110 (setHints): New method.
4111 (setPixels): New method.
4112 (setProperties): New method.
4113 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
4114 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
4115
4116 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
4117
4118 PR libgcj/16478
4119 * prims.cc (_Jv_CreateJavaVM): Fix comment.
4120 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
4121 (finalizerReady): Now native.
4122 (run): Likewise.
4123 (runFinalizers): Removed.
4124 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
4125 a primitive lock, and don't hold it while running the finalizers.
4126 (runFinalizers): Implement. Don't aquire any Java lock.
4127 (finalizerReady): Use lock primitives to signal finalizer thread.
4128
4129 2004-07-11 Mark Wielaard <mark@klomp.org>
4130
4131 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
4132 * java/net/URLStreamHandler.java (parseURL): When url file part
4133 doesn't contain a '/' just ignore context.
4134
4135 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
4136
4137 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
4138 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
4139 (MAKE_THROW_FRAME): Do not modify PSW address.
4140 (INIT_SEGV): Install SIGINFO-style signal handler.
4141 (INIT_FPE): Likewise.
4142
4143 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
4144
4145 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
4146 status. 21 xfail's removed, 1 added.
4147
4148 2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
4149
4150 * gcj/javaprims.h: Regenerate CNI namespace definitions.
4151
4152 2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
4153
4154 * java/text/MessageFormat.java
4155 (formatInternal): Append "{n}" if argument n is unavailable.
4156 (format(Object, StringBuffer, FieldPosition)): This
4157 should be equivalent to format(Object[],
4158 StringBuffer, FieldPosition).
4159
4160 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4161
4162 * java.util.Calendar.java (cache): New private static field. Cached
4163 mappings of locales->calendar classes.
4164 (ctorArgTypes): New private static field. Singleton argument for
4165 calendar class constructor lookup.
4166 (getInstance): Cache Locale->Calendar class mappings using HashMap.
4167 Optimize by bypassing reflection instantiation for the
4168 GregorianCalendar case.
4169
4170 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4171
4172 * java/util/Calendar.java: Use getSystemClassLoader as argument for
4173 ResourceBundle.getBundle() calls.
4174 * java/util/GregorianCalendar.java: Likewise.
4175 * java/util/Currency.java: Likewise.
4176 * java/text/BreakIterator.java: Likewise.
4177 * java/text/Collator.java: Likewise.
4178 * java/text/DateFormat.java: Likewise.
4179 * java/text/DateFormatSymbols.java: Likewise.
4180 * java/text/DecimalFormatSymbols.java: Likewise.
4181 * java/text/NumberFormat.java: Likewise.
4182 * java/awt/Window.java: Likewise.
4183
4184 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4185
4186 * java/util/ResourceBundle.java (bundleCache): Renamed from
4187 resourceBundleCache. Update comments.
4188 (getObject): Don't catch MissingResourceException.
4189 (getBundle(String)): Remove 'final'. Use system classloader if
4190 getCallingClassLoader returned null.
4191 (getBundle(String, Locale)): Likewise.
4192 (BundleKey): New private class. HashMap key for bundle cache lookup.
4193 (lookupKey): New. Singleton instance of BundleKey.
4194 (nullEntry): New. Cache entry to represent failed lookups.
4195 (getBundle(String, Locale, ClassLoader)): Re-written to use new
4196 caching strategy, no-allocation lookup, and new tryBundle methods.
4197 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
4198 name using given classloader.
4199 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
4200 baseName for given Locale and attempt to load bundle.
4201
4202 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4203
4204 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
4205 illegal protected method calls.
4206
4207 2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
4208
4209 Fix or remove some bogus test cases.
4210 * testsuite/libjava.compile/pr10459_2.java: Removed.
4211 * testsuite/libjava.compile/pr10459.java: Test using its own method,
4212 not Object.clone().
4213 * testsuite/libjava.compile/inner_data.java: Test against its own
4214 protected field.
4215
4216 2004-07-09 Michael Koch <konqueror@gmx.de>
4217
4218 * scripts/unicode-muncher.pl: Updated to version 2.1
4219 from GNU classpath. Added some clarifications on where to find the
4220 needed files from www.unicode.org.
4221 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
4222 gnu/gcj/convert/UnicodeData-3.0.0.txt:
4223 Removed, these can directly be downloaded from www.unicode.org if
4224 needed.
4225 * gnu/java/lang/CharData.java: Regenerated.
4226 * include/java-chartables.h: Regenerated.
4227 * Makefile.am (ordinary_java_source_files):
4228 Removed gnu/java/lang/CharData.java.
4229 * Makefile.in: Regenerated.
4230
4231 2004-07-09 Michael Koch <konqueror@gmx.de>
4232
4233 * java/security/AccessControlContext.java,
4234 java/security/SecureClassLoader.java:
4235 Fixed javadocs.
4236
4237 2004-07-09 Michael Koch <konqueror@gmx.de>
4238
4239 * java/io/ObjectInputStream.java (readFields): Use long datatype
4240 when shifting byte values more then 24 bits left.
4241
4242 2004-07-09 Michael Koch <konqueror@gmx.de>
4243
4244 * java/util/zip/DeflaterOutputStream.java,
4245 java/util/zip/GZIPInputStream.java,
4246 java/util/zip/GZIPOutputStream.java,
4247 java/util/zip/InflaterInputStream.java:
4248 Reformatted. Added javadocs. Reordered all stuff.
4249 Renamed variables to be more clear.
4250
4251 2004-07-09 Michael Koch <konqueror@gmx.de>
4252
4253 * javax/imageio/IIOException.java,
4254 javax/imageio/event/IIOReadProgressListener.java,
4255 javax/imageio/event/IIOReadUpdateListener.java,
4256 javax/imageio/event/IIOReadWarningListener.java,
4257 javax/imageio/event/IIOWriteProgressListener.java,
4258 javax/imageio/event/IIOWriteWarningListener.java:
4259 New files.
4260 * Makefile.am: Added new files.
4261 * Makefile.in: Regenerated.
4262
4263 2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
4264
4265 * java/text/RuleBasedCollator.java
4266 (mergeRules): Use ArrayList instead of Vector.
4267 (subParseString): likewise.
4268 (parseString): likewise.
4269 (buildCollationVector): likewise.
4270 (getCollationKey): likewise.
4271
4272 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4273
4274 * java/text/DateFormat.java (parse):
4275 Improved javadoc. Improved exception message.
4276
4277 2004-07-09 Mark Wielaard <mark@klomp.org>
4278
4279 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
4280 interrupted() method to clear interupt flag of our Thread.
4281
4282 2004-07-09 Dalibor Topic <robilad@kaffe.org>
4283
4284 * java/nio/Buffer.java,
4285 java/nio/ByteBuffer.java,
4286 java/nio/ByteBufferHelper.java,
4287 java/nio/ByteBufferImpl.java,
4288 java/nio/CharBuffer.java,
4289 java/nio/CharBufferImpl.java,
4290 java/nio/CharViewBufferImpl.java,
4291 java/nio/DirectByteBufferImpl.java,
4292 java/nio/DoubleBuffer.java,
4293 java/nio/DoubleBufferImpl.java,
4294 java/nio/DoubleViewBufferImpl.java,
4295 java/nio/FloatBuffer.java,
4296 java/nio/FloatBufferImpl.java,
4297 java/nio/FloatViewBufferImpl.java,
4298 java/nio/IntBuffer.java,
4299 java/nio/IntBufferImpl.java,
4300 java/nio/IntViewBufferImpl.java,
4301 java/nio/LongBuffer.java,
4302 java/nio/LongBufferImpl.java,
4303 java/nio/LongViewBufferImpl.java,
4304 java/nio/MappedByteBufferImpl.java,
4305 java/nio/ShortBuffer.java,
4306 java/nio/ShortBufferImpl.java,
4307 java/nio/ShortViewBufferImpl.java:
4308 Fixed javadocs all over. Improved input error
4309 checking.
4310
4311 * java/nio/Buffer.java
4312 (checkForUnderflow, checkForOverflow, checkIndex,
4313 checkIfReadOnly, checkArraySize): New helper methods
4314 for error checking.
4315
4316 * java/nio/ByteBufferHelper.java
4317 (checkRemainingForRead, checkRemainingForWrite,
4318 checkAvailableForRead, checkAvailableForWrite): Removed
4319 no longer needed methods.
4320
4321 2004-07-09 Michael Koch <konqueror@gmx.de>
4322
4323 * gnu/regexp/CharIndexedInputStream.java:
4324 Reordered imports to match classpath.
4325
4326 2004-07-09 Michael Koch <konqueror@gmx.de>
4327
4328 * gnu/java/awt/EmbeddedWindow.java:
4329 Load native library for setWindowPeer method.
4330
4331 2004-07-08 Randolph Chung <tausq@debian.org>
4332
4333 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
4334 * configure: Regenerate.
4335 * configure.host: Set can_unwind_signal for hppa*-linux.
4336 * include/pa-signal.h: New file.
4337
4338 2004-07-07 Per Bothner <per@bothner.com>
4339
4340 * Makefile.am: Add rules to build libgij from just gij.cc.
4341
4342 * include/jvm.h (namespace jcj): Declare verbose_class_flag
4343 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
4344 (initializeClass): If verbose_class_flag, print message.
4345 * gij.cc (main): Handle -verbose:class flag.
4346
4347 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
4348
4349 * configure.host: Enable hash synchronization on Darwin.
4350 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
4351 ';', since this is a comment on Darwin.
4352 (compare_and_swap_release): Likewise.
4353
4354 2004-07-06 Mohan Embar <gnustuff@thisiscool.com>
4355
4356 * java/net/URLStreamHandler.java (parseURL): Canonicalize
4357 file portion of URL in addition to spec for file: protocol.
4358
4359 2004-07-05 Anthony Green <green@redhat.com>
4360
4361 * java/io/File.java (toURI): Merge from Classpath.
4362
4363 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4364
4365 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
4366 before passing to URL constructor. Rethrow any MalformedURLException
4367 as a RuntimeException. Catch MalformedURLException specifically, not
4368 all exceptions.
4369
4370 2004-07-05 Bryce McKinlay <mckinlay@redhat.com>
4371
4372 * java/util/Locale.java (readObject): Intern strings read from object
4373 stream.
4374
4375 2004-07-04 Michael Koch <konqueror@gmx.de>
4376
4377 * gnu/gcj/runtime/FirstThread.java,
4378 gnu/gcj/runtime/natFirstThread.cc: Removed.
4379 * gnu/java/lang/MainThread.java,
4380 gnu/java/lang/natMainThread.cc: New files.
4381 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
4382 * Makefile.am: Added new files and removed deleted ones.
4383 * Makefile.in: Regenerated.
4384
4385 2004-07-03 Mark Wielaard <mark@klomp.org>
4386 Anthony Green <green@redhat.com>
4387
4388 * java/net/URL.java (getFile): Clarify return value doc.
4389 (getPath): Return null if file is empty - not empty String.
4390 (set): Convert protocol to lower case before doing anything.
4391 Only change the protocol handler if it's different.
4392
4393 2004-07-03 Anthony Green <green@redhat.com>
4394
4395 * java/net/URL.java (URL): Convert protocol to lower case before
4396 doing anything, so we getURLStreamHandler() with the proper value.
4397
4398 2004-07-02 Bryce McKinlay <mckinlay@redhat.com>
4399
4400 * java/util/Locale.java (hashcode): Made transient.
4401 (hashCode): No longer synchronized.
4402 (equals): Remove comment.
4403 (writeObject): No longer synchronized. Implement using writeObject
4404 calls instead of tweaking hashCode field. Update doc.
4405 (readObject): Implement using readObject calls.
4406
4407 2004-06-26 Geoffrey Keating <geoffk@apple.com>
4408 Andreas Tobler <a.tobler@schweiz.ch>
4409
4410 * configure.host (powerpc-*-darwin*): New case, define
4411 can_unwind_signal.
4412 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
4413 * configure: Regenerate.
4414 * include/darwin-signal.h: New.
4415
4416 2004-06-30 Jerry Quinn <jlquinn@optonline.net>
4417
4418 * java/beans/Statement.java (doExecute): Fix formatting.
4419
4420 2004-06-29 Per Bothner <per@bothner.com>
4421
4422 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
4423 etc etc): Remove needless parenthesis, which causes __stdcall__
4424 attribute on MinGW to get ignored.
4425
4426 2004-06-29 Bryce McKinlay <mckinlay@redhat.com>
4427
4428 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
4429
4430 2004-06-28 Bryce McKinlay <mckinlay@redhat.com>
4431
4432 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
4433
4434 2004-06-28 Jerry Quinn <jlquinn@optonline.net>
4435
4436 * java/beans/Expression.java: New file.
4437 * java/beans/Statement.java: New file.
4438 * Makefile.am: Added new files.
4439 * Makefile.in: Re-generate.
4440
4441 2004-06-27 Mark Wielaard <mark@klomp.org>
4442
4443 * java/io/FilePermission.java (usingPerms): Removed.
4444 (actionsString): Made final.
4445 (cachePerms): Renamed to checkPerms.
4446 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
4447 on action String.
4448 (FilePermission): Check arguments, call checkPerms().
4449 (equals): Remove cachePerms() call.
4450 (implies): Likewise.
4451
4452 2004-06-27 Mark Wielaard <mark@klomp.org>
4453
4454 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
4455 final field.
4456 (sendRequest): Use new field in user-agent http agent.
4457
4458 2004-06-27 Mark Wielaard <mark@klomp.org>
4459
4460 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
4461 when argument is null.
4462
4463 2004-06-26 Mark Wielaard <mark@klomp.org>
4464
4465 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
4466 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
4467 GetMethodID call.
4468 (cancel_clicked): Likewise.
4469
4470 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
4471
4472 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
4473 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
4474 can not calculate the right value.
4475 (dpi_changed_cb): Likewise. Mark *pspec as unused.
4476
4477 2004-06-24 Bryce McKinlay <mckinlay@redhat.com>
4478
4479 * testsuite/libjava.jacks/jacks.xfail: Remove
4480 15.9.1-qualified-concrete-20.
4481
4482 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4483
4484 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
4485 encoding name to iconv.
4486 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4487
4488 2004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4489
4490 PR libgcj/16134:
4491 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
4492 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
4493 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4494
4495 2004-06-21 Andrew Haley <aph@redhat.com>
4496
4497 * java/io/ObjectOutputStream.java: Add DEBUG statements
4498 everywhere.
4499 (dumpElementln): New method.
4500 (depth): New field.
4501 * java/io/ObjectInputStream.java
4502 (currentClassLoader): Make native.
4503 (callersClassLoader): New field.
4504 (depth): New field.
4505 (readObject): ENDBLOCKDATA is generated if the class has a write
4506 method, not if it has a read method.
4507 (readObject): Save and restore this.currentObject and
4508 this.currentObjectStreamClass around calls to callReadMethod().
4509 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
4510 method.
4511
4512 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
4513
4514 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
4515 darwin.
4516
4517 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4518
4519 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
4520 if desired, before the default class loader is initialised.
4521 Call INIT_SEGV only if HANDLE_SEGV is defined.
4522
4523 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4524
4525 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
4526 directory only if it actually exists.
4527
4528 2004-06-18 Graydon Hoare <graydon@redhat.com>
4529
4530 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4531 Fix up non-ansi comments.
4532
4533 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4534
4535 * javax/swing/text/AbstractDocument.java: Adding missing import
4536 for javax.swing.event.EventListenerList.
4537 * javax/swing/text/DefaultCaret.java: Likewise.
4538
4539 2004-06-17 Michael Koch <konqueror@gmx.de>
4540
4541 * javax/swing/JToolBar.java
4542 (name): Removed.
4543 (JToolBar): Use Component.setName(String) instead of doing it all
4544 alone.
4545 * javax/swing/Timer.java
4546 (queueEvent): Added missing modifier.
4547
4548 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
4549
4550 * Makefile.am: Added new file.
4551 * Makefile.in: Re-generate.
4552 * javax/swing/JMenu.java:
4553 (insertSeparator): Implemented.
4554 * javax/swing/JPopupMenu.java:
4555 (JPopupMenu.Separator): Implemented.
4556 * javax/swing/MenuSelectionManager.java:
4557 (processMouseEvent): Use java.awt.Component
4558 for event source instead of javax.swing.JComponent.
4559 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
4560 New File. Implemented.
4561
4562 2004-06-16 David Jee <djee@redhat.com>
4563
4564 * java/awt/GridBagLayout.java
4565 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
4566 Make sure pos_x and pos_y are never negative.
4567
4568 2004-04-16 Andrew Overholt <overholt@redhat.com>
4569
4570 * Makefile.am: Add new file.
4571 * Makefile.in: Re-generate.
4572 * javax/swing/JToolBar.java
4573 Partially implemented.
4574 * javax/swing/plaf/basic/BasicToolBarUI.java
4575 New file. Partially implemented.
4576
4577 2004-06-16 Graydon Hoare <graydon@redhat.com>
4578
4579 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
4580 (setComposite): Accept AlphaComposite arguments.
4581 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
4582 (createBufferedImage): Add new overloads.
4583 * gnu/java/awt/peer/gtk/GtkToolkit.java
4584 (createImage): Use GdkPixbufDecoder.createBufferedImage
4585 when useGraphics2D() is true.
4586 (getImage): Delegate to createImage.
4587 * javax/swing/JList.java
4588 (isSelectionEmpty):
4589 (getFirstVisibleIndex):
4590 (getLastVisibleIndex):
4591 (setSelectedValue):
4592 (ensureIndexIsVisible): New methods.
4593 * javax/swing/Timer.java: Reimplement.
4594
4595 2004-06-16 Michael Koch <konqueror@gmx.de>
4596
4597 * javax/swing/text/AbstractDocument.java
4598 (AbstracElement): Made public, implements java.io.Serializable.
4599 (AttributeContext): Made public.
4600 (BranchElement): Likewise.
4601 (Content): Likewise.
4602 (DefaultDocumentEvent): Made public, extends
4603 javax.swing.undo.CompoundEdit.
4604 (ElementEdit): Made public, extends
4605 javax.swing.undo.AbstractUndoableEdit.
4606 (LeafElement): Made public.
4607 (LeafElement.LeafElement): Made public.
4608
4609 2004-06-16 Michael Koch <konqueror@gmx.de>
4610
4611 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
4612 methods (that were obviously never be intended to get included hi this
4613 class. Added some methods too.
4614
4615 2004-06-16 Michael Koch <konqueror@gmx.de>
4616
4617 * javax/swing/text/PlainDocument.java
4618 (serialVersionUID): New constant.
4619 (lineLimitAttribute): Likewise.
4620 (tabSizeAttribute): Likewise.
4621 (tabSize): New field.
4622 (PlainDocument): Made public.
4623 (PlainDocument): New constructor.
4624
4625 2004-06-16 Michael Koch <konqueror@gmx.de>
4626
4627 * javax/swing/text/AbstractDocument.java
4628 (insertString): Throws BadLocationException.
4629 * javax/swing/text/Document.java
4630 (insertString): Likewise.
4631 * javax/swing/text/JTextComponent.java:
4632 Javadocs and comments cleaned up.
4633
4634 2004-06-16 Michael Koch <konqueror@gmx.de>
4635
4636 * javax/swing/event/UndoableEditListener.java: Reformatted.
4637 * javax/swing/text/AbstractDocument.java
4638 (AbstractDocument): Implements java.io.Serializable.
4639 (doc_list): Removed.
4640 (undo_list): Removed.
4641 (AbstractElement.serialVerionUID): New field.
4642 (BranchElement.serialVerionUID): Likewise.
4643 (DefaultDocumentEvent.serialVerionUID): Likewise.
4644 (ElementEdit.serialVerionUID): Likewise.
4645 (LeafElement.serialVerionUID): Likewise.
4646 (serialVerionUID): Likewise.
4647 (BAD_LOCATION): New constant.
4648 (BidiElementName): Likewise.
4649 (ContentElementName): Likewise.
4650 (ParagraphElementName): Likewise.
4651 (SectionElementName): Likewise.
4652 (ElementNameAttribute): Likewise.
4653 (AbstractDocument): Made protected.
4654 (AbstractDocument): New construtor.
4655 (listenerList): New field.
4656 (fireChangedUpdate): Implemented.
4657 (fireInsertUpdate): Likewise.
4658 (fireRemoveUpdate): Likewise.
4659 (fireUndoableEditUpdate): Likewise.
4660 (getListeners): Likewise.
4661 (addDocumentListener): Likewise.
4662 (removeDocumentListener): Likewise.
4663 (addUndoableEditListener): Likewise.
4664 (removeUndoableEditListener): Likewise.
4665 (getDocumentListeners): New method.
4666 (getUndoableEditListeners): Likewise.
4667 (getAsynchronousLoadPriority): Made public.
4668 (getBidiRootElement): Likewise.
4669 (setAsynchronousLoadPriority): Likewise.
4670 (setDocumentProperties): Likewise.
4671 * javax/swing/text/BadLocationException.java
4672 (serialVerionUID): New field.
4673 * javax/swing/text/DefaultCaret.java
4674 (changeEvent): New field.
4675 (listenerList): Likewise.
4676 (changes): Removed.
4677 (addChangeListener): Reimplemented.
4678 (removeChangeListener): Likewise.
4679 (getListeners): New method.
4680 (getChangeListeners): Likwise.
4681 (getComponent): Likewise.
4682 * javax/swing/text/GapContent.java
4683 (GapContent): Implements java.io.Serializable.
4684 (serialVerionUID): New field.
4685
4686 2004-06-16 Michael Koch <konqueror@gmx.de>
4687
4688 * javax/swing/JTree.java
4689 (treeModel): New field.
4690 (JTree): New constructors, one existing one made public.
4691 (createTreeModel): New method.
4692 (addTreeExpansionListener): Likewise.
4693 (removeTreeExpansionListener): Likewise.
4694 (getTreeExpansionListeners): Likewise.
4695 (fireTreeCollapsed): Likewise.
4696 (fireTreeExpanded): Likewise.
4697 (addTreeSelectionListener): Likewise.
4698 (removeTreeSelectionListener): Likewise.
4699 (getTreeSelectionListeners): Likewise.
4700 (fireValueChanged): Likewise.
4701 (addTreeWillExpandListener): Likewise.
4702 (removeTreeWillExpandListener): Likewise.
4703 (getTreeWillExpandListeners): Likewise.
4704 (fireTreeWillCollapse): Likewise.
4705 (fireTreeWillExpand): Likewise.
4706
4707 2004-06-16 Michael Koch <konqueror@gmx.de>
4708
4709 * javax/swing/JTree.java: Reformatted.
4710
4711 2004-06-16 Michael Koch <konqueror@gmx.de>
4712
4713 * javax/swing/JTextArea.java: New file.
4714 * javax/swing/JTextField.java
4715 (actions): Removed.
4716 (notifyAction): New constant.
4717 (columns): New field.
4718 (JTextField): New constructors.
4719 (createDefaultModel): New method.
4720 (addActionListener): Reimplmemented.
4721 (removeActionListener): Reimplemented.
4722 (getActionListeners): New method.
4723 (fireActionPerformed): New method.
4724 (getColumns): New method.
4725 (setColumne): New method.
4726 * javax/swing/text/JTextComponent.java
4727 (AccessibleJTextComponent.serialVersionUID): New field.
4728 (serialVersionUID): Likewise.
4729 (DEFAULT_KEYMAP): Likewise.
4730 (FOCUS_ACCELERATOR_KEY): Likewise.
4731 (doc): Made private.
4732 (icon_gap): Likewise.
4733 (icon): Likewise.
4734 (align): Likewise.
4735 (JTextComponent): Some constructors removed.
4736 (getScrollableTracksViewportHeight): New method.
4737 (getScrollableTracksViewportWidth): Likewise.
4738 * Makefile.am: Added javax/swing/JTextArea.java.
4739 * Makefile.in: Regenerated.
4740
4741 2004-06-15 Graydon Hoare <graydon@redhat.com>
4742
4743 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
4744 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
4745 * javax/swing/JViewport.java
4746 (getExtentSize): Return size rather than preferred size.
4747 (toViewCoordinates): New methods.
4748 (getViewSize): Return size rather than preferred size.
4749 (setViewSize): Note view size as set.
4750 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
4751 * javax/swing/plaf/basic/BasicScrollBarUI.java
4752 (getPreferredSize): Don't redo layout.
4753 * javax/swing/plaf/basic/BasicViewportUI.java
4754 (paint): Translate image properly and eat exceptions.
4755
4756 2004-06-15 Kim Ho <kho@redhat.com>
4757
4758 * javax/swing/JTabbedPane.java
4759 (setComponent): Remove old component and
4760 add new component.
4761 (setSelectedIndex): Don't operate on the
4762 components if they're null. Don't set index
4763 on the model if the index is the same.
4764 (insertTab): Don't add or hide the component
4765 if it's null. Repaint the container.
4766 * javax/swing/plaf/basic/BasicLookAndFeel.java
4767 Change colors for TabbedPane.
4768 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
4769 (mousePressed): Re-layout and paint the component.
4770 (layoutContainer): Don't set location on the view.
4771 (ScrollingViewport::paint): Remove.
4772
4773 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
4774
4775 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4776 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
4777
4778 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
4779 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
4780 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
4781 critical region.
4782 (drawLine): Call gdk_flush before leaving GDK critical region.
4783 (fillRect): Likewise.
4784 (drawRect): Likewise.
4785 (copyArea): Likewise.
4786 (copyPixmap): Likewise.
4787 (clearRect): Likewise.
4788 (drawArc): Likewise.
4789 (drawPolyline): Likewise.
4790 (drawPolygon): Likewise.
4791 (fillPolygon): Likewise.
4792 (fillArc): Likewise.
4793 (drawOval): Likewise.
4794 (fillOval): Likewise.
4795
4796 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
4797 style parameter.
4798 (GdkFontMetrics): Add style argument to initState call.
4799 (stringWidth(String,int,int,String)): Add style parameter.
4800 (stringWidth(String)): Add style argument to stringWidth call.
4801 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
4802 (initState): Set pango font style and weight based on AWT style
4803 parameter. Pass default GTK language to
4804 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
4805 simply dividing by PANGO_SCALE.
4806 (stringWidth): Set pango font style and weight based on AWT style
4807 parameter.
4808
4809 * java/awt/Button.java (next_button_number): New field.
4810 (paramString): Change output.
4811 (generateName): New method.
4812 (getUniqueLong): New method.
4813
4814 2004-06-14 Kim Ho <kho@redhat.com>
4815
4816 * javax/swing/JTabbedPane.java:
4817 (setComponentAt): Set the component, not
4818 the enabled status.
4819 * javax/swing/plaf/basic/BasicDesktopIconUI.java
4820 (actionPerformed): Let deiconize catch exception.
4821
4822 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4823
4824 * javax/swing/JPopupMenu.java:
4825 (setVisible): Corrected location of a
4826 heavyweight popup menu.
4827
4828 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4829
4830 * javax/swing/MenuSelectionManager.java:
4831 Ran through jalopy to fix formatting style.
4832
4833 2004-06-14 Olga Rodimina <rodimina@redhat.com>
4834
4835 * javax/swing/JLayeredPane.java:
4836 (remove): Revalidate and repaint layered pane after
4837 the component was removed.
4838 javax/swing/JMenu.java:
4839 (setVisible): Display popup menu at the user location,
4840 if one was set by the user.
4841 (setMenuLocation): Reimplemented. Fixed javadoc.
4842 * javax/swing/JMenuBar.java: Added javadoc.
4843 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
4844 (MODEL_CHANGED_PROPERTY): New Property.
4845 (isSelected): Implemented.
4846 (setBorderPainted): Fire PropertyChangeEvent
4847 if paintBorder property changes.
4848 (setSelected): Implemented.
4849 (setSelectionModel): Implemented.
4850 * javax/swing/JPopupMenu.java: Added Javadoc
4851 (pack): Implemented.
4852 (setVisible): Reimplemented.
4853 (show): Fixed location.
4854 (JPopupMenu.LigthWeightPopup): Reimplemented to use
4855 Container instead of JPanel.
4856 * javax/swing/MenuSelectionManager.java: Added Javadocs.
4857 (clearSelectedPath): Reimplemented to clear selectedPath
4858 in reverse order.
4859 (processMouseEvent): Reimplemented.
4860 (setSelectedPath): Fire stateChange event indicating that
4861 selected menu path has changed.
4862 (getPath): Change to use ArrayList instead of Vector.
4863 * javax/swing/plaf/basic/BasicMenuBarUI.java:
4864 (installUI): call installKeyboardActions().
4865 (uninstallUI): call uninstallKeyboardActions().
4866
4867 2004-06-13 Michael Koch <konqueror@gmx.de>
4868
4869 * javax/swing/text/DefaultCaret.java,
4870 javax/swing/text/BadLocationException.java:
4871 Reformatted.
4872
4873 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
4874
4875 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
4876 DEFAULT_COLS): New variables.
4877 (create): Don't allow 0 rows or 0 columns. Instead, set the
4878 values to DEFAULT_ROWS or DEFAULT_COLS.
4879 (getMinimumSize): Likewise.
4880 (getPreferredSize): Likewise.
4881 (minimumSize): Likewise.
4882 (preferredSize): Likewise.
4883 (create): Set peer's editable state.
4884 * java/awt/TextArea.java (TextArea()): Set rows and columns to
4885 zero. Update javadocs.
4886 (TextArea(String)): Likewise.
4887 (TextArea(int,int)): Fix javadocs.
4888 (TextArea(String,int,int,int)): Only throw exception if one of
4889 rows or columns is zero. Fix javadocs.
4890
4891 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
4892
4893 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
4894 addition to Components.
4895
4896 * java/awt/MenuItem.java (dispatchEventImpl): If the event
4897 wasn't consumed by normal processing, send it to the parent
4898 menu.
4899
4900 * gnu/java/awt/peer/gtk/GtkImagePainter.java
4901 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
4902 translation.
4903
4904 2004-06-11 David Jee <djee@redhat.com>
4905
4906 * java/awt/MediaTracker.java
4907 (addImage(Image,int)): Call imageUpdate() to udpate image status.
4908 (addImage(Image,int,int,int)): Likewise.
4909
4910 2004-06-11 Michael Koch <konqueror@gmx.de>
4911
4912 * javax/swing/text/AbstractDocument.java,
4913 javax/swing/text/Document.java,
4914 javax/swing/text/GapContent.java,
4915 javax/swing/text/JTextComponent.java,
4916 javax/swing/text/PlainDocument.java:
4917 Reformatted.
4918
4919 2004-06-11 Michael Koch <konqueror@gmx.de>
4920
4921 * javax/swing/JRootPane.java
4922 (AccessibleJRootPane.serialVersionUID): New field.
4923 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
4924 (AccessibleJRootPane.getAccessibleRole): New method.
4925 (RootLayout): Implements Serializable.
4926 (RootLayout.serialVersionUID): New field.
4927 (RootLayout.RootLayout): New constructor.
4928 (setJMenuBar): Made public.
4929 (getJMenuBar): Likewise.
4930 (JRootPane): Likewise.
4931 (createContentPane): Likewise.
4932 (createGlassPane): Likewise.
4933 (createLayeredPane): Likewise.
4934
4935 2004-06-11 Michael Koch <konqueror@gmx.de>
4936
4937 * javax/swing/SwingUtilities.java
4938 (isLeftMouseButton): Fixed javadoc.
4939 (isMiddleMouseButton): Likewise.
4940 (isRightMouseButton): Likewise.
4941
4942 2004-06-11 Michael Koch <konqueror@gmx.de>
4943
4944 * javax/swing/JScrollPane.java
4945 (serialVersionUID): New field.
4946 (columnHeader): Made protected.
4947 (rowHeader): Likewise.
4948 (lowerLeft): Likewise.
4949 (lowerRight): Likewise.
4950 (upperLeft): Likewise.
4951 (upperRight): Likewise.
4952 (horizontalScrollBar): Likewise.
4953 (horizontalScrollBarPolicy): Likewise.
4954 (verticalScrollBar): Likewise.
4955 (verticalScrollBarPolicy): Likewise.
4956 (viewport): Likewise.
4957
4958 2004-06-11 Michael Koch <konqueror@gmx.de>
4959
4960 * javax/swing/LookAndFeel.java: Fixed javadocs.
4961
4962 2004-06-11 Michael Koch <konqueror@gmx.de>
4963
4964 * javax/swing/JEditorPane.java: Fixed javadocs.
4965 (JEditorPane): Removed redundant call to to this().
4966 (fireHyperlinkUpdate): Implemented.
4967
4968 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4969
4970 * javax/swing/JMenu.java: Fixed file name
4971 in the file comment.
4972
4973 2004-06-10 Olga Rodimina <rodimina@redhat.com>
4974
4975 * javax/swing/JMenu.java: Added javadoc.
4976 (JMenu): Added MenuChangeListener to listen to
4977 ChangeEvents occuring in menu's model.
4978 (insert): Throw IllegalArgumentException if
4979 index is less than 0
4980 (setSelected): Reimplement.
4981 (setPopupMenuVisible): Call menu's model isEnabled()
4982 (setDelay): Throw IllegalArgumentException if
4983 given amount of delay is less than 0.
4984 (createActionComponent): Implemented.
4985 (createActionChangeListener): Implemented.
4986 (addSeparator): Implemented.
4987 (getItem): Throw IllegalArgumentException if index is
4988 less than 0.
4989 (getItemCount): Implemented.
4990 (fireMenuSelected): Changed to use menuEvent.
4991 (fireMenuDeselected): Likewise.
4992 (fireMenuCanceled): Likewise.
4993 (setAccelerator): Changed to throw an error if this
4994 method is used.
4995 (doClick): Implemented.
4996 (JMenu.ActionChangedListener): New inner class to handle
4997 PropertyChangeEvents occuring in the actions associated with menu.
4998 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
4999 (BasicMenuUI): Added PropertyChangeListener to the menu.
5000 (createChangeListener): Implemented.
5001 (createMenuDragMouseListener): Likewise.
5002 (createMenuKeyListener): Likewise.
5003 (createPropertyChangeListener): Likewise.
5004 (uninstallListeners): Likewise.
5005 (BasicMenuUI.MouseInputHandler): Reimplemented.
5006 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
5007 (BasicMenuUI.ChangeHandler): Likewise.
5008 (BasicMenuUI.MenuDragMouseHandler): Likewise.
5009 (BasicMenuUI.MenuKeyHandler): Likewise.
5010
5011 2004-06-10 David Jee <djee@redhat.com>
5012
5013 * java/awt/MediaTracker.java
5014 (imageUpdate): Only do notifyAll() if the image is complete.
5015
5016 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5017
5018 * javax/swing/JApplet.java:
5019 (getJMenuBar): Made public.
5020 (setJMenuBar): Likewise.
5021 * javax/swing/JFrame.java:
5022 (getJMenuBar): Made public.
5023 (setJMenuBar): Likewise.
5024 * javax/swing/JWindow.java:
5025 (getJMenuBar): Removed.
5026 (setJMenuBar): Removed.
5027
5028 2004-06-10 Michael Koch <konqueror@gmx.de>
5029
5030 * javax/swing/JEditorPane.java
5031 (createEditorKitForContentType): Fixed visibility.
5032 (fireHyperlinkUpdate): Likewise.
5033 (getContentType): Likewise.
5034 (getEditorKit): Likewise.
5035 (getEditorKitForContentType): Likewise.
5036 (getPage): Likewise.
5037 (read): Likewise.
5038 (registerEditorKitForContentTyoe): Likewise.
5039 (replaceSelection): Likewise.
5040 (setContentType): Likewise.
5041 (setEditorKit): Likewise.
5042 (setPage): Likewise.
5043
5044 2004-06-10 Michael Koch <konqueror@gmx.de>
5045
5046 * javax/swing/Timer.java
5047 (Timer): New constructor.
5048 * javax/swing/plaf/basic/BasicProgressBarUI.java
5049 (animationTimer): Don't initialize at construction.
5050 (startAnimationTimer): Added since tag.
5051 (stopAnimationTimer): Likewise.
5052 (installUI): Use new Timer constructor.
5053 * javax/swing/plaf/basic/BasicScrollBarUI.java
5054 (installUI): Likewise.
5055 * javax/swing/plaf/basic/BasicSliderUI.java
5056 (installUI): Likewise.
5057
5058 2004-06-10 Michael Koch <konqueror@gmx.de>
5059
5060 * javax/swing/ButtonGroup.java
5061 (serialVersionUID): Made private.
5062 (buttons): Renamed from v, added javadoc.
5063 (sel): Added javadoc.
5064 (ButtonGroup): Likewise.
5065 (add): Likewise.
5066 (remove): Likewise.
5067 (getElements): Likewise.
5068 (getSelection): Likewise.
5069 (setSelected): Likewise.
5070 (isSelected): Likewise.
5071 (getButtonCount): Likewise.
5072
5073 2004-06-10 Michael Koch <konqueror@gmx.de>
5074
5075 * javax/swing/ButtonGroup.java,
5076 javax/swing/ImageIcon.java,
5077 javax/swing/JEditorPane.java,
5078 javax/swing/JRootPane.java,
5079 javax/swing/JTextField.java,
5080 javax/swing/LookAndFeel.java,
5081 javax/swing/plaf/basic/BasicTextUI.java:
5082 Reindented.
5083
5084 2004-06-10 Michael Koch <konqueror@gmx.de>
5085
5086 * javax/swing/text/Style.java: Added javadocs.
5087
5088 2004-06-10 Michael Koch <konqueror@gmx.de>
5089
5090 * javax/swing/JComponent.java
5091 (fireVetoableChange): Removed redundant cast.
5092 * javax/swing/JLabel.java
5093 (getDisabledIcon): Save icon for next call.
5094
5095 2004-06-10 Michael Koch <konqueror@gmx.de>
5096
5097 * javax/swing/KeyStroke.java
5098 (getKeyStroke(char,boolean)): Marked deprecated.
5099
5100 2004-06-10 Michael Koch <konqueror@gmx.de>
5101
5102 * javax/swing/DefaultCellEditor.java,
5103 javax/swing/GrayFilter.java,
5104 javax/swing/event/DocumentEvent.java,
5105 javax/swing/text/JTextComponent.java,
5106 javax/swing/text/MutableAttributeSet.java:
5107 Reindented.
5108
5109 2004-06-10 Michael Koch <konqueror@gmx.de>
5110
5111 * javax/swing/plaf/BorderUIResource.java:
5112 Added serialVersionUID all over.
5113
5114 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
5115
5116 * javax/swing/undo/UndoManager.java: Re-written from scratch.
5117
5118 2004-06-10 Michael Koch <konqueror@gmx.de>
5119
5120 * javax/swing/table/DefaultTableCellRenderer.java
5121 (noFocusBorder): Initialize directly.
5122
5123 2004-06-10 Michael Koch <konqueror@gmx.de>
5124
5125 * javax/swing/plaf/basic/BasicArrowButton.java
5126 (setDirection): Use method argument.
5127
5128 2004-06-10 Michael Koch <konqueror@gmx.de>
5129
5130 * javax/swing/plaf/BorderUIResource.java,
5131 javax/swing/plaf/ComponentUI.java,
5132 javax/swing/undo/CompoundEdit.java,
5133 javax/swing/undo/StateEdit.java:
5134 Fixed javadocs all over.
5135
5136 2004-06-10 Michael Koch <konqueror@gmx.de>
5137
5138 * javax/swing/DefaultButtonModel.java
5139 (ARMED): Made public final, fixed value.
5140 (ENABLED): Likewise.
5141 (PRESSED): Likewise.
5142 (ROLLOVER): Likewise.
5143 (SELECTED): Likewise.
5144 (stateMask): Initialize directly.
5145 (listenerList): Likewise.
5146 (mnemonic): Likewise.
5147 (fireStateChanged): Removed argument, use changeEvent as event.
5148 All places where this method is called are fixed too.
5149 (getActionCommant): Fixed javadoc.
5150 (setGroup): Fixed javadoc.
5151 (getGroup): New method.
5152
5153 2004-06-09 Olga Rodimina <rodimina@redhat.com>
5154
5155 * javax/swing/AbstractButton.java
5156 (AbstractButton): Use init() to initialize the button.
5157 (init): New Method. Initializes AbstractButton.
5158 * javax/swing/JMenuItem.java: Documented.
5159 (JMenuItem): Reimplemented.
5160 (init): Implemented.
5161 (setEnabled): Changed to call super.setEnabled()
5162 (processMouseEvent): Reimplemented.
5163 (fireMenuKeyPressed): Implemented.
5164 (fireMenuKeyReleased): Implemented.
5165 (fireMenuKeyTyped): Implemented.
5166 (menuSelectionChanged): disarm the model if the menu item was
5167 deselected.
5168 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
5169 (getPath): Change to use ArrayList instead of Vector.
5170 (getPreferredSize): Renamed variable.
5171 (paintMenuItem): Paint margin area of menu item.
5172 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
5173 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
5174 menu item's bounds before clearing the selection.
5175
5176 2004-06-09 David Jee <djee@redhat.com>
5177
5178 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
5179 (GtkTextComponentPeer): Set caret position to 0.
5180 * java/awt/TextComponent.java
5181 (setText): Set caret position to 0.
5182 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5183 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
5184 Handle GtkScrolledWindow separately. Fix signal handler blocking.
5185 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
5186 Likewise.
5187 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5188 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
5189 visible.
5190
5191 2004-06-09 Kim Ho <kho@redhat.com>
5192
5193 * Makefile.am: New files
5194 * Makefile.in: Regenerated
5195 * java/awt/Container.java
5196 (getComponentAt): Removed.
5197 * javax/swing/AbstractAction.java
5198 (ENABLED_PROPERTY): New property.
5199 (putValue): Fire PropertyChangeEvents.
5200 (setEnabled): ditto.
5201 (firePropertyChange): Javadoc and implement
5202 convenience method.
5203 * javax/swing/AbstractButton.java
5204 (setAction): Don't create PropertyChangeListener
5205 if new Action is null.
5206 (setIcon): Don't set icon till after comparing
5207 it.
5208 (configurePropertiesFromAction): Check mnemonic
5209 key before calling intValue().
5210 (createActionPropertyChangeListener): Check
5211 properties rather than bulk change.
5212 * javax/swing/DefaultDesktopManager.java:
5213 Implement.
5214 * javax/swing/DesktopManager.java:
5215 Jalopy and javadoc.
5216 * javax/swing/JComponent.java
5217 (fireVetoableChange): Implement.
5218 (paintImmediately): Use root component.
5219 * javax/swing/JDesktopPane.java: Implement
5220 * javax/swing/JInternalFrame.java: Implement
5221 * javax/swing/JLabel.java
5222 (getDisabledIcon): Return grayscaled icon if
5223 no disabled icon specified.
5224 * javax/swing/JMenuBar.java
5225 (getComponentAtIndex): Use getComponent
5226 * javax/swing/JOptionPane.java
5227 (getDesktopPaneForComponent): Use SwingUtilities'
5228 getAncestorOfClass
5229 (getFrameForComponent): ditto.
5230 * javax/swing/JSplitPane.java
5231 (remove): Use getComponent.
5232 * javax/swing/SwingUtilities.java
5233 (convertPoint): Implement.
5234 * javax/swing/plaf/basic/BasicButtonUI.java
5235 (paintButtonNormal): Check opaqueness before
5236 filling background.
5237 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
5238 Implement
5239 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
5240 Implement.
5241 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
5242 Implement.
5243 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
5244 Implement.
5245 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5246 Change InternalFrame and Desktop colors.
5247
5248 2004-06-09 David Jee <djee@redhat.com>
5249
5250 * java/awt/Container.java
5251 (remove): Do not set component to invisible.
5252
5253 2004-06-09 Michael Koch <konqueror@gmx.de>
5254
5255 * javax/swing/tree/DefaultMutableTreeNode.java
5256 (getLeafCount): Renamed enum to e.
5257
5258 2004-06-09 Michael Koch <konqueror@gmx.de>
5259
5260 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5261 (positionForMouseEvent): Removed redundant semicolon.
5262 (continueDrag): Use method arguments.
5263
5264 2004-06-09 Michael Koch <konqueror@gmx.de>
5265
5266 * javax/swing/border/TitledBorder.java,
5267 javax/swing/filechooser/FileSystemView.java,
5268 javax/swing/plaf/basic/BasicButtonListener.java,
5269 javax/swing/plaf/basic/BasicGraphicsUtils.java,
5270 javax/swing/plaf/basic/BasicLabelUI.java,
5271 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
5272 javax/swing/plaf/basic/BasicScrollBarUI.java,
5273 javax/swing/plaf/basic/BasicScrollPaneUI.java,
5274 javax/swing/plaf/basic/BasicSliderUI.java,
5275 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
5276 javax/swing/plaf/basic/BasicToggleButtonUI.java,
5277 javax/swing/table/JTableHeader.java,
5278 javax/swing/text/AbstractDocument.java,
5279 javax/swing/text/DefaultCaret.java,
5280 javax/swing/text/StyledEditorKit.java,
5281 javax/swing/tree/DefaultTreeCellEditor.java:
5282 Reworked import statements.
5283
5284 2004-06-08 Graydon Hoare <graydon@redhat.com>
5285
5286 * javax/swing/Box.java: Temporarily comment out code
5287 broken due to visibility bug.
5288
5289 2004-06-09 Michael Koch <konqueror@gmx.de>
5290
5291 * javax/swing/ImageIcon.java
5292 (ImageIcon): Added missing constructor.
5293
5294 2004-06-08 Michael Koch <konqueror@gmx.de>
5295
5296 * javax/swing/JToggleButton.java
5297 (JToggleButton): New constructor.
5298 (getAccessibleContext): Moved documentation into javadoc.
5299 (getUIClassID): Likewise.
5300
5301 2004-06-08 Michael Koch <konqueror@gmx.de>
5302
5303 * javax/swing/AbstractButton.java
5304 (getDisabledIcon): Create disabled icon if none exists yet.
5305
5306 2004-06-08 Michael Koch <konqueror@gmx.de>
5307
5308 * javax/swing/plaf/basic/BasicLookAndFeel.java
5309 (initClassDefaults): Added FormattedTextFieldUI.
5310 (loadResourceBundle): Renamed enum to e.
5311
5312 2004-06-08 Michael Koch <konqueror@gmx.de>
5313
5314 * javax/swing/plaf/basic/BasicButtonUI.java
5315 (paintIcon): Simplified.
5316 (paintText): Paint disabled button correctly.
5317
5318 2004-06-08 Michael Koch <konqueror@gmx.de>
5319
5320 * javax/swing/JComponent.java
5321 (createToolTip): Use official JToolTip API.
5322
5323 2004-06-08 Michael Koch <konqueror@gmx.de>
5324
5325 * javax/swing/JToolTip.java
5326 (JToolTip): No arguments in API.
5327 (setTipText): New method.
5328
5329 2004-06-08 Michael Koch <konqueror@gmx.de>
5330
5331 * javax/swing/SwingUtilities.java
5332 (isLeftMouseButton): New method.
5333 (isMiddleMouseButton): New method.
5334 (isRightMouseButton): New method.
5335
5336 2004-06-08 Michael Koch <konqueror@gmx.de>
5337
5338 * javax/swing/AbstractButton.java,
5339 javax/swing/CellRendererPane.java,
5340 javax/swing/JCheckBoxMenuItem.java,
5341 javax/swing/JColorChooser.java,
5342 javax/swing/JComboBox.java,
5343 javax/swing/JComponent.java,
5344 javax/swing/JDesktopPane.java,
5345 javax/swing/JFileChooser.java,
5346 javax/swing/JMenu.java,
5347 javax/swing/JMenuItem.java,
5348 javax/swing/JOptionPane.java,
5349 javax/swing/JPasswordField.java,
5350 javax/swing/JPopupMenu.java,
5351 javax/swing/JProgressBar.java,
5352 javax/swing/JRadioButtonMenuItem.java,
5353 javax/swing/JScrollBar.java,
5354 javax/swing/JSeparator.java,
5355 javax/swing/JSlider.java,
5356 javax/swing/JSplitPane.java,
5357 javax/swing/JTabbedPane.java,
5358 javax/swing/JTextField.java,
5359 javax/swing/JToolBar.java,
5360 javax/swing/text/JTextComponent.java:
5361 Fixed all constructors of accessibility classes.
5362
5363 2004-06-08 Michael Koch <konqueror@gmx.de>
5364
5365 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
5366 over.
5367
5368 2004-06-08 Michael Koch <konqueror@gmx.de>
5369
5370 * javax/swing/Box.java
5371 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
5372 (AccessibleBoxFiller.serialVersionUID): New member variable.
5373 * javax/swing/DefaultButtonModel.java
5374 (stateMask): Made protected.
5375 (listenerList): Likewise.
5376 (changeEvent): Likewise.
5377 (group): Likewise.
5378 (mnemonic): Likewise.
5379 (actionCommand): Likewise.
5380 (getListeners): New method.
5381 (getActionListeners): New method.
5382 (getItemListeners): New method.
5383 (getChangeListeners): New method.
5384 (fireItemStateChanged): Simplified.
5385 (fireActionPerformed): Simplified.
5386 (fireStateChanged): Simplified.
5387 * javax/swing/JFrame.java
5388 (JFrame): Implements WindowContants.
5389 (HIDE_ON_CLOSE): Removed.
5390 (EXIT_ON_CLOSE): Removed.
5391 (DISPOSE_ON_CLOSE): Removed.
5392 (DO_NOTHING_ON_CLOSE): Removed.
5393 (processWindowEvent): Exit with code 0.
5394 (setDefaultCloseOperation): Do security check before setting value.
5395 * javax/swing/JOptionPane.java
5396 (message): Initialize only in constructor.
5397 * javax/swing/JToolTip.java: Removed unused imports.
5398 * javax/swing/JViewport.java
5399 (serialVersionUID): New member variable.
5400 (SIMPLE_SCROLL_MODE): Made final, fixed value.
5401 (BLIT_SCROLL_MODE): Likewise.
5402 (BACKINGSTORE_SCROLL_MODE): Likewise.
5403 (scrollUnderway): Made protected.
5404 (isViewSizeSet): Likewise.
5405 * javax/swing/ListModel.java: Fixed javadoc.
5406 * javax/swing/Popup.java: Likewise.
5407 * javax/swing/RepaintManager.java
5408 (paintDirtyRegions): Don't use internal classes of
5409 java.util.AbstractMap.
5410 * javax/swing/ScrollPaneConstants.java: Reindented.
5411 * javax/swing/ScrollPaneLayout.java
5412 (viewport): Made protected.
5413 (verticalScrollBar): Made protected, renamed to vsb.
5414 (horizontalScrollBar): Made protected, renamed to hsb.
5415 (rowHeader): Made protected, renamed to rowHead.
5416 (columnHeader): Made protected, renamed to colHead.
5417 (lowerLeft): Made protected.
5418 (lowerRight): Made protected.
5419 (upperLeft): Made protected.
5420 (upperRight): Made protected.
5421 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
5422 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
5423
5424 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
5425
5426 * java/awt/MediaTracker.java (imageUpdate): Only set status to
5427 LOADING if flags has SOMEBITS set.
5428
5429 2004-06-07 Michael Koch <konqueror@gmx.de>
5430
5431 * javax/swing/AbstractButton.java: Reorganized imports.
5432 * javax/swing/ActionMap.java: Likewise.
5433 * javax/swing/DefaultButtonModel.java: Likewise.
5434 * javax/swing/DefaultListModel.java: Likewise.
5435 * javax/swing/ImageIcon.java: Likewise.
5436 (serialVersionUID): New member variable.
5437 * javax/swing/JComboBox.java: Reorganized imports.
5438 * javax/swing/JComponent.java: Likewise.
5439 (ui): Made protected.
5440 (listenerList): Made protected.
5441 (TOOL_TIP_TEXT_KEY): New constant.
5442 (scrollRectToVisible): Removed redundant null check.
5443 * javax/swing/JFrame.java: Reorganized imports.
5444 * javax/swing/JInternalFrame.java: Reorganized imports.
5445 * javax/swing/JProgressBar.java: Likewise.
5446 * javax/swing/JRootPane.java: Likewise.
5447 * javax/swing/JScrollBar.java: Likewise.
5448 * javax/swing/JSeparator.java: Likewise.
5449 * javax/swing/JSlider.java: Likewise.
5450 * javax/swing/JTabbedPane.java: Likewise.
5451 * javax/swing/JTextField.java: Likewise.
5452 * javax/swing/JToolBar.java: Likewise.
5453 * javax/swing/JTree.java: Likewise.
5454 * javax/swing/JViewport.java: Likewise.
5455 * javax/swing/JWindow.java: Likewise.
5456 * javax/swing/KeyStroke.java: Likewise.
5457 * javax/swing/LookAndFeel.java: Likewise.
5458 * javax/swing/MenuSelectionManager.java: Likewise.
5459 * javax/swing/SwingUtilities.java: Likewise.
5460 * javax/swing/Timer.java: Likewise.
5461 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
5462 * javax/swing/JList.java
5463 (HORIZONTAL_WRAP): Made final, fixed value.
5464 (VERTICAL): Likewise.
5465 (VERTICAL_WRAP): Likewise.
5466
5467 2004-06-07 Michael Koch <konqueror@gmx.de>
5468
5469 * javax/swing/AbstractButton.java
5470 (serialVersionUID): New member variable.
5471 (AccessibleAbstractButton.serialVersionUID): Likewise.
5472 (AbstractButton): Made public.
5473 * javax/swing/Box.java
5474 (AccessibleBox.serialVersionUID): New member variable.
5475 (Filler.serialVersionUID): Likewise.
5476 * javax/swing/DefaultListSelectionModel.java
5477 (serialVersionUID): Likewise.
5478 * javax/swing/JApplet.java
5479 (serialVersionUID): Likewise.
5480 * javax/swing/JCheckBox.java
5481 (serialVersionUID): Likewise.
5482 * javax/swing/JCheckBoxMenuItem.java
5483 (serialVersionUID): Likewise.
5484 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
5485 * javax/swing/JColorChooser.java
5486 (serialVersionUID): Likewise.
5487 (AccessibleJColorChooser.serialVersionUID): Likewise.
5488 * javax/swing/JComponent.java
5489 (serialVersionUID): Made private.
5490 (AccessibleJComponent.serialVersionUID): New member variable.
5491 * javax/swing/JDesktopPane.java
5492 (serialVersionUID): Likewise.
5493 * javax/swing/JDialog.java
5494 (serialVersionUID): Likewise.
5495 * javax/swing/JFormattedTextField.java
5496 (serialVersionUID): Fixed value.
5497 * javax/swing/JFrame.java
5498 (serialVersionUID): New member variable.
5499 (getDefaultCloseOpertation): Made public.
5500 * javax/swing/JLayeredPane.java
5501 (serialVersionUID): Likewise.
5502 (LAYER_PROPERTY): Made final, fixed value.
5503 (JLayeredPane): Made public.
5504 * javax/swing/JMenu.java
5505 (AccessibleJMenu.serialVersionUID): New member variable.
5506 (WinListener.serialVersionUID): Likewise.
5507 * javax/swing/JMenuBar.java
5508 (serialVersionUID): Likewise.
5509 (getComponentAtIndex): Added @deprecated tag.
5510 * javax/swing/JMenuItem.java
5511 (serialVersionUID): New member variable.
5512 (AccessibleJMenuItem.serialVersionUID): Likewise.
5513 * javax/swing/JOptionPane.java
5514 (serialVersionUID): Likewise.
5515 (AccessibleJOptionPane.serialVersionUID): Likewise.
5516 * javax/swing/JPopupMenu.java
5517 (serialVersionUID): Likewise.
5518 (AccessibleJPopupMenu.serialVersionUID): Likewise.
5519 (getPopupMenuListeners): New method.
5520 (getComponentAtIndex): Added @deprecated tag.
5521 * javax/swing/JProgressBar.java
5522 (serialVersionUID): New member variable.
5523 (AccessibleJProgressBar.serialVersionUID): Likewise.
5524 * javax/swing/JRadioButton.java
5525 (serialVersionUID): Likewise.
5526 * javax/swing/JRadioButtonMenuItem.java
5527 (serialVersionUID): Likewise.
5528 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
5529 * javax/swing/JScrollBar.java
5530 (serialVersionUID): Likewise.
5531 (AccessibleJScrollBar.serialVersionUID): Likewise.
5532 * javax/swing/JSeparator.java
5533 (serialVersionUID): Likewise.
5534 (AccessibleJSeparator.serialVersionUID): Likewise.
5535 * javax/swing/JSlider.java: Fixed javadocs.
5536 (AccessibleJSlider.serialVersionUID): New member variable.
5537 * javax/swing/JSplitPane.java: Added copyright statement.
5538 (serialVersionUID): New member variable.
5539 (AccessibleJSplitPane.serialVersionUID): Likewise.
5540 * javax/swing/JTabbedPane.java
5541 (serialVersionUID): Likewise.
5542 (AccessibleJTabbedPane.serialVersionUID): Likewise.
5543 (ModelListener.serialVersionUID): Likewise.
5544 (ModelListener.ModelListener): New constructor.
5545 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
5546 (WRAP_TAB_LAYOUT): Likewise.
5547 * javax/swing/JTable.java
5548 (serialVersionUID): New member variable.
5549 * javax/swing/JToggleButton.java
5550 (serialVersionUID): Likewise.
5551 (ToggleButtonModel): Made static.
5552 (ToggleButtonModel.serialVersionUID): New member variable.
5553 * javax/swing/JToolTip.java
5554 (serialVersionUID): Likewise.
5555 * javax/swing/JTree.java
5556 (serialVersionUID): Likewise.
5557 * javax/swing/JWindow.java
5558 (serialVersionUID): Likewise.
5559 * javax/swing/Timer.java
5560 (serialVersionUID): Likewise.
5561
5562 2004-06-06 Michael Koch <konqueror@gmx.de>
5563
5564 * javax/swing/SwingConstants.java
5565 (NEXT): New constant.
5566 (PREVIOUS): Likewise.
5567 * javax/swing/UIManager.java
5568 (LookAndFeel): Made public.
5569 (LookAndFeel.getClassName): Likewise.
5570 (LookAndFeel.getName): Likewise.
5571
5572 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5573
5574 * javax/swing/JCheckBoxMenuItem.java:
5575 Removed CVS tags.
5576 * javax/swing/JMenu.java: Likewise.
5577 * javax/swing/JMenuBar.java: Likewise.
5578 * javax/swing/JMenuItem.java: Likewise.
5579 * javax/swing/JPopupMenu.java: Likewise.
5580 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5581 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5582 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5583 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5584 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5585 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5586 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5587
5588 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5589
5590 * javax/swing/plaf/basic/BasicMenuUI.java:
5591 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5592 Call getPath() from super class instead.
5593
5594 2004-05-31 David Jee <djee@redhat.com>
5595
5596 * java/awt/Container.java
5597 (remove): Set component visibility to false after removing it.
5598
5599 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
5600
5601 * java/awt/Component.java (getForeground): Return SystemColor if
5602 parent is null.
5603 (getBackground): Likewise.
5604
5605 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5606 (item_highlighted): New function.
5607 (connectSignals): Set item_highlighted as list's select
5608 function.
5609
5610 * java/applet/Applet.java: Revert changes from 2004-04-29,
5611 2004-03-15 and 2004-03-14.
5612
5613 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5614 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
5615 factor.
5616
5617 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
5618 "Dialog" as the default font.
5619 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
5620 Likewise.
5621 * java/awt/Component.java (getFont): Return "Dialog" font by
5622 default.
5623 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
5624 Multiply size argument to pango_font_description_set_size by the
5625 DPI conversion factor rather than by PANGO_SCALE.
5626 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
5627 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
5628 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
5629 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
5630 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
5631 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
5632 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
5633 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
5634 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
5635 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5636 Divide baseline y coordinate by DPI conversion factor rather
5637 than by PANGO_SCALE.
5638 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
5639 (area_prepared): Fix typo.
5640 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
5641 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
5642 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
5643 (dpi_conversion_factor): New global variable.
5644 (init_dpi_conversion_factor): New function to calculate and
5645 track DPI conversion factor.
5646 (dpi_changed_cb): New callback.
5647 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
5648
5649 2004-05-27 David Jee <djee@redhat.com>
5650
5651 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5652 (getGraphics): Return a new GdkGraphics instance.
5653 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5654 (getGraphics): Call super.getGraphics().
5655
5656 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5657
5658 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5659 (setNativeBounds): Clamp width and height values to >= 0.
5660
5661 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5662 (find_fg_color_widget): Handle GtkOptionMenu specially.
5663
5664 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5665 (pre_event_handler): Only post configure events to visible
5666 top-level windows.
5667
5668 2004-05-26 David Jee <djee@redhat.com>
5669
5670 * java/awt/BorderLayout.java
5671 (layoutContainer): Fix size calculations.
5672
5673 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5674
5675 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5676 (window_wm_protocols_filter): Remove function.
5677 (create): Remove filter that removes WM_TAKE_FOCUS client
5678 messages.
5679
5680 2004-06-17 Anthony Green <green@redhat.com>
5681
5682 * java/util/zip/ZipFile.java (getInputStream): Return null if
5683 entry not found.
5684
5685 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
5686 directory contents to the class path.
5687
5688 2004-06-15 Andrew Haley <aph@redhat.com>
5689
5690 * java/lang/natSystem.cc (getenv0): Don't assume environment
5691 variable is Latin 1 coded.
5692
5693 2004-06-14 Andreas Jaeger <aj@suse.de>
5694
5695 * configure.in: Support --enable-version-specific-runtime-libs.
5696 * configure: Regenerated.
5697
5698 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
5699
5700 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
5701 to pass ClassLoader argument.
5702 * java/util/GregorianCalendar.java: Likewise.
5703 * java/util/Currency.java: Likewise.
5704 * java/text/BreakIterator.java: Likewise.
5705 * java/text/Collator.java: Likewise.
5706 * java/text/DateFormat.java: Likewise.
5707 * java/text/DateFormatSymbols.java: Likewise.
5708 * java/text/DecimalFormatSymbols.java: Likewise.
5709 * java/text/NumberFormat.java: Likewise.
5710 * java/awt/Window.java: Likewise.
5711
5712 2004-06-14 Andrew Haley <aph@redhat.com>
5713
5714 * java/lang/System.java: (getenv0): New method.
5715 (getenv): Add security check. Do the right thing.
5716 * java/lang/natSystem.cc (getenv0): New method.
5717
5718 2004-06-12 Mark Wielaard <mark@klomp.org>
5719
5720 * javax/swing/RepaintManager.java
5721 (paintDirtyRegions): Use entrySet(), not values().
5722
5723 2004-06-10 Mark Wielaard <mark@klomp.org>
5724
5725 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
5726 NoSuchMethodError.
5727
5728 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
5729
5730 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
5731 when we already know the answer.
5732 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
5733 (setStartRule,setEndRule): Don't take abs of day number.
5734 (getOffset): Clarify docs. Add argument checks.
5735 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
5736 (equals,hasSameRules,toString,readObject): Use startTimeMode and
5737 endTimeMode.
5738
5739 2004-06-10 Tom Tromey <tromey@redhat.com>
5740
5741 * interpret.cc (run): Handle wide fload.
5742
5743 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
5744
5745 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
5746
5747 2004-06-05 Michael Koch <konqueror@gmx.de>
5748
5749 * javax/swing/SwingConstants.java
5750 (NEXT): New constant.
5751 (PREVIOUS): Likewise.
5752
5753 2004-06-05 Michael Koch <konqueror@gmx.de>
5754
5755 * javax/swing/UIManager.java
5756 (LookAndFeel): Made public.
5757 (LookAndFeel.getName): Likewise.
5758 (LookAndFeel.getClassName): Likewise.
5759
5760 2004-06-03 Michael Koch <konqueror@gmx.de>
5761
5762 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5763 (requestFocus): Revert last changes.
5764 (gtkRequestFocus): Removed.
5765 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5766 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5767 Renamed to ...
5768 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
5769 Reverted last patch.
5770 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5771 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
5772 Reverted comment change.
5773
5774 2004-06-02 Olga Rodimina <rodimina@redhat.com>
5775
5776 * javax/swing/JCheckBoxMenuItem.java:
5777 Removed CVS tags.
5778 * javax/swing/JMenu.java: Likewise.
5779 * javax/swing/JMenuBar.java: Likewise.
5780 * javax/swing/JMenuItem.java: Likewise.
5781 * javax/swing/JPopupMenu.java: Likewise.
5782 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5783 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5784 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5785 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5786 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5787 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5788 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5789
5790 2004-06-01 Tom Tromey <tromey@redhat.com>
5791
5792 * java/io/ObjectStreamField.java: Cleaned up imports.
5793
5794 2004-06-01 Michael Koch <konqueror@gmx.de>
5795
5796 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
5797
5798 2004-06-01 Mark Wielaard <mark@klomp.org>
5799
5800 * java/io/Writer.java (Writer(Object)): Fixed API doc.
5801
5802 2004-06-01 Michael Koch <konqueror@gmx.de>
5803
5804 * java/security/Security.java
5805 (insertProviderAt): Use equals() instead of ==.
5806 (removeProvicer): Likewise.
5807 (getProvider): Likewise.
5808 * java/security/Signature.java
5809 (sign): Don't set state to UNINITIALIZED.
5810 (verify): Likewise.
5811
5812 2004-06-01 Mark Wielaard <mark@klomp.org>
5813
5814 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
5815 Implement by calling gtkRequestFocus.
5816 (gtkRequestFocus): New native method.
5817 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5818 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
5819 Renamed to ...
5820 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5821 New function name.
5822 (filter_expose_event_handler):
5823 Mark static.
5824 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5825 (menu_pos): Mark static.
5826
5827 2004-06-01 Michael Koch <konqueror@gmx.de>
5828
5829 * java/text/CollationElementIterator.java,
5830 java/text/CollationKey.java,
5831 java/text/RuleBasedCollator.java: New versions from GNU classpath.
5832 * testsuite/libjava.mauve/xfails: Removed all
5833 java.text.CollationElementIterator tests.
5834
5835 2004-06-01 Michael Koch <konqueror@gmx.de>
5836
5837 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
5838 version.
5839 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
5840 Java 1.5 keyword usage.
5841
5842 2004-05-31 Olga Rodimina <rodimina@redhat.com>
5843
5844 * javax/swing/plaf/basic/BasicMenuUI.java:
5845 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5846 Call getPath() from super class instead.
5847
5848 2004-05-31 Michael Koch <konqueror@gmx.de>
5849
5850 * java/io/SequenceInputStream.java:
5851 Rename enum to e because enum is a keyword in Java 1.5.
5852
5853 2004-05-31 Michael Koch <konqueror@gmx.de>
5854
5855 * gnu/java/rmi/rmic/CompilerProcess.java:
5856 Fixed javadoc to by XHTML compliant.
5857
5858 2004-05-30 Mark Wielaard <mark@klomp.org>
5859
5860 * java/awt/Toolkit.java (loadSystemColors): Implement.
5861
5862 2004-05-30 Michael Koch <konqueror@gmx.de>
5863
5864 * java/lang/System.java: Reordered imports.
5865
5866 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
5867
5868 * java/text/DecimalFormat.java
5869 (parse): Fixed parsing of decimal strings. Number of maximum
5870 digits to be read should now work.
5871 * java/text/SimpleDateFormat.java
5872 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
5873 formatter. This fixes DateFormatTest.
5874
5875 2004-05-30 Michael Koch <konqueror@gmx.de>
5876
5877 * java/nio/Buffer.java
5878 (limit): Fixed off by one error.
5879 * java/nio/CharBuffer.java
5880 (wrap): Fixed arguments, added javadocs.
5881
5882 2004-05-30 Michael Koch <konqueror@gmx.de>
5883
5884 * gnu/java/beans/BeanInfoEmbryo.java,
5885 java/awt/im/InputContext.java,
5886 javax/swing/tree/DefaultMutableTreeNode.java:
5887 Rename enum to e because enum is a keyword in Java 1.5.
5888
5889 2004-05-30 Michael Koch <konqueror@gmx.de>
5890
5891 * gnu/java/math/MPN.java,
5892 java/awt/geom/Arc2D.java:
5893 Fixed javadocs all over.
5894
5895 2004-05-30 Michael Koch <konqueror@gmx.de>
5896
5897 * java/awt/DefaultKeyboardFocusManager.java
5898 (dispatchEvent): Call method to get key event dispatchers.
5899 (dispatchKeyEvent): Call method to get key event post processors.
5900 * javax/swing/JComponent.java
5901 (listenerList): Made protected.
5902 * javax/swing/JOptionPane.java
5903 (message): Don't initialize.
5904 (JOptionPane): Set message text.
5905 * javax/swing/JPopupMenu.java
5906 (show): Fixed typo in argument name.
5907 * javax/swing/RepaintManager.java
5908 (paintDirtyRegions): Use public API of java.util.Map.
5909 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5910 (positionForMouseEvent): Removed redundant ';'.
5911 (continueDrag): Use method arguments.
5912
5913 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
5914
5915 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
5916 results.
5917
5918 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
5919
5920 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
5921 _Jv_AllocBytes.
5922 * gnu/gcj/RawDataManaged.java: New file.
5923 * java/lang/Thread.java (data): Declare as RawDataManaged.
5924 * java/lang/natThread.cc (init_native): Cast natThread data to
5925 RawDataManaged, not jobject.
5926 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
5927 * Makefile.in: Rebuilt.
5928
5929 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
5930
5931 * java/util/SimpleTimeZone.java: Reverting my last change until I
5932 can fix it properly.
5933
5934 2004-05-27 Michael Koch <konqueror@gmx.de>
5935
5936 * javax/swing/JPopupMenu.java
5937 (isVisible): Do not use visible directly.
5938 (setVisible): Likewise.
5939 * javax/swing/JWindow.java
5940 (JWindow): call accessible constructor.
5941 * javax/swing/RepaintManager.java
5942 (paintDirtyRegions): Use public methods to obtain iterator.
5943
5944 2004-05-25 David Jee <djee@redhat.com>
5945
5946 * java/awt/Container.java
5947 (remove): Set component's parent to null only after we removed the
5948 component from its parent's layout manager.
5949
5950 2004-05-25 David Jee <djee@redhat.com>
5951
5952 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5953 (GtkComponentPeer): Set bounds regardless of whether awtComponent
5954 is valid.
5955 * gnu/java/awt/peer/gtk/GtkListPeer.java
5956 (getSize): Change native method declaration.
5957 (minimumSize): Pass visible row count into getSize().
5958 (preferredSize): Likewise.
5959 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5960 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
5961 natural size. Use visible row count to determine the final height
5962 value to return.
5963
5964 2004-05-21 Graydon Hoare <graydon@redhat.com>
5965
5966 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5967 (setClip): Minor correction to order of operations.
5968
5969 * javax/swing/JScrollPane.java: Extend sketchy implementation.
5970 * javax/swing/ScrollPaneLayout.java: Likewise.
5971 * javax/swing/JViewPort.java: Likewise.
5972 * javax/swing/ViewportLayout.java: Likewise.
5973
5974 * javax/swing/JComponent.java: Rewrite.
5975 * javax/swing/RepaintManager.java: Likewise.
5976
5977 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
5978 * javax/swing/JList.java
5979 (setSelectedIndices):
5980 (getSelectedIndices):
5981 (getSelectedValues): New functions.
5982 (getPreferredScrollableViewportSize): Return preferred size.
5983 (getScrollableUnitIncrement):
5984 (getScrollableBlockIncrement): Initial implementations.
5985 * javax/swing/JRootPane.java: Clean up slightly.
5986 (getUI):
5987 (setUI):
5988 (updateUI):
5989 (getUIClassID):
5990 (isValidateRoot): Add overrides from JComponent.
5991 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
5992 * javax/swing/UIManager.java (getDimension): Return the dimension.
5993
5994 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
5995 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
5996 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5997 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
5998 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
5999 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
6000 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
6001 * javax/swing/plaf/basic/BasicRootPaneUI.java:
6002 Likewise, and set background.
6003 * javax/swing/plaf/basic/BasicListUI.java:
6004 Likewise, and improve a bit.
6005 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6006 Likewise, and adjust calculations.
6007 * javax/swing/plaf/basic/BasicViewportUI.java:
6008 Likewise, and improve a bit.
6009 * javax/swing/plaf/basic/BasicLookAndFeel.java
6010 (Button.margin): Shrink.
6011
6012 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
6013 Hack to set horizontal always, workaround pango.
6014
6015 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
6016 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6017 Synchronize more often, check cairo status after ops,
6018 handle changes to cairo pattern API, check for disposal.
6019
6020 2004-05-21 Olga Rodimina <rodimina@redhat.com>
6021
6022 * javax/swing/plaf/basic/BasicMenuItemUI.java:
6023 (BasicMenuItemUI): Create propertyChangeListener.
6024 (getPath):Implemented.
6025 (installListeners): Add propertyChangeListener to menuItem.
6026 (uninstallListeners): Remove propertyChangeListener from menuItem.
6027 (update): Implemented.
6028 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
6029 (mouseEntered): Take insets of popup menu into account when
6030 calculating position of popup menu.
6031
6032 2004-05-18 Olga Rodimina <rodimina@redhat.com>
6033
6034 * Makefile.am: Added new file.
6035 * Makefile.in: Regenerate.
6036 * javax/swing/JMenuBar.java:
6037 Started implementation.
6038 * javax/swing/JPopupMenu.java:
6039 (setVisible): Fixed location of lightweight/mediumweight
6040 popup menu.
6041 (show): Fixed location of PopupMenu.
6042 * javax/swing/plaf/basic/BasicMenuBarUI.java:
6043 New file. UI Delegate for JMenuBar.
6044 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
6045 (mouseEntered): Corrected position of the submenu.
6046
6047 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
6048
6049 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
6050 to _gtk_accel_group_attach.
6051 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
6052 Likewise.
6053
6054 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
6055 package access. Don't override setFont.
6056 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
6057 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
6058 gtkWidgetRequestFocus package access.
6059 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
6060 setFont.
6061 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
6062 Give gtkWidgetRequestFocus package access.
6063 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
6064 gtkWidgetRequestFocus package access. Don't override setFont.
6065 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
6066 setFont.
6067 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6068 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
6069 region.
6070 (gtkSetFont): Likewise.
6071 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
6072 Implement.
6073 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6074 (gtkSetFont): Whitespace fix.
6075
6076 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6077 (gtkWidgetSetUsize): Remove method.
6078
6079 2004-05-18 David Jee <djee@redhat.com>
6080
6081 * java/awt/image/MemoryImageSource.java
6082 (newPixels(int,int,int,int,boolean)): Set only the specified
6083 rectangle of pixels.
6084 (newPixels(byte[],ColorModel,int,int)): Implement.
6085 (newPixels(int[],ColorModel,int,int)): Implement.
6086
6087 2004-05-18 Olga Rodimina <rodimina@redhat.com>
6088
6089 * Makefile.am: Added new file.
6090 * Makefile.in: Regenerate.
6091 * javax/swing/JMenu.java: Started
6092 implementation.
6093 * javax/swing/JPopupMenu.java:
6094 (insert): If specified index is -1, then
6095 add component at the end.
6096 (isPopupTrigger): Reimplemented.
6097 (JPopupMenu.LightWeightPopup): setBounds
6098 of the lightWeightPopup before adding it
6099 to the layeredPane.
6100 (javax/swing/plaf/basic/BasicIconFactory.java):
6101 (getMenuArrowIcon): Implemented.
6102 * javax/swing/plaf/basic/BasicMenuItemUI.java:
6103 (getPreferredSize): Add size of the arrow icon
6104 if this menu item is instance of JMenu.
6105 (paintMenuItem): Paint arrow icon if this
6106 menu item is a submenu.
6107 * javax/swing/plaf/basic/BasicMenuUI.java:
6108 New File. UI Delegate for JMenu.
6109
6110 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
6111
6112 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
6113 Post KEY_TYPED events.
6114 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6115 (generates_key_typed_event): Remove function.
6116
6117 2004-05-17 Olga Rodimina <rodimina@redhat.com>
6118
6119 * javax/swing/JRootPane.java
6120 (JRootPane.RootLayout): Reimplemented to
6121 set bounds of contentPane and menuBar.
6122 (setJMenuBar): Add menu bar to the layered pane.
6123 (createLayeredPane): Set layout of layeredPane
6124 to null.
6125 * javax/swing/JLayeredPane.java:
6126 (addImpl): Calculate index of the component in the
6127 layeredPane according to the specified position within
6128 the layer.
6129
6130 2004-05-17 David Jee <djee@redhat.com>
6131
6132 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6133 (setPixels): Change color model to the default model after
6134 converting pixels.
6135 * java/awt/image/MemoryImageSource.java
6136 (newPixels): Set only the specified rectangle of pixels.
6137
6138 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
6139
6140 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
6141 -l-java-beans -l-javax-accessibility -l-javax-swing.
6142
6143 * java/awt/AWTEvent.java (toString): Print source's name rather
6144 than the source itself.
6145
6146 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
6147
6148 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
6149 native.
6150 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
6151 (gdk_color_to_java_color): New function.
6152 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
6153
6154 2004-05-12 David Jee <djee@redhat.com>
6155
6156 * java/awt/image/RGBImageFilter.java:
6157 Initialize origmodel as null.
6158 (makeColor): Fix pixel component order.
6159 (filterRGBPixels): Fix pixel iteration.
6160 (setPixels): Add extra checks for index color model. Convert pixels
6161 to default color model if necessary.
6162 (convertColorModelToDefault): New override method for byte pixels.
6163 (convertColorModelToDefault): For int pixels, fix pixel iteration.
6164 (makeColorbyDefaultCM): New override method for byte pixels.
6165 (makeColorbyDefaultCM): For int pixel, add color model as argument.
6166 (makeColor): Fix pixel component order.
6167
6168 2004-05-11 Kim Ho <kho@redhat.com>
6169
6170 * javax/swing/Box.java:
6171 Comment out more parts of Box.Filler.
6172
6173 2004-05-11 Kim Ho <kho@redhat.com>
6174
6175 * javax/swing/Box.java:
6176 Remove reference to AccessibleAWTComponent so
6177 it compiles again.
6178
6179 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6180
6181 * gnu/java/awt/peer/gtk/GtkListPeer.java,
6182 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
6183 implementation of list peer to use GtkTreeView instead of
6184 deprecated GtkCList.
6185
6186 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
6187
6188 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6189 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
6190 (handleEvent): Remove keyChar argument to
6191 gtkWidgetDispatchKeyEvent calls.
6192 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
6193 compiler warnings.
6194 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6195 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
6196 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
6197 Likewise.
6198
6199 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
6200
6201 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6202 (gtkWidgetRequestFocus): Mark protected.
6203 (GtkComponentPeer): Only set the peer's bounds if its component
6204 is valid.
6205 * java/awt/Component.java (static): Set the default keyboard
6206 focus manager.
6207 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
6208 requestFocusInWindow(temporary)): Don't request focus if the
6209 component is not showing. Get tree lock before traversing
6210 component hierarchy.
6211 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
6212 Only set the global focus owner if it is not a Window.
6213 (processKeyEvent): Consume keystrokes associated with the focus
6214 traversal keystroke.
6215 (focusPreviousComponent, focusNextComponent, upFocusCycle,
6216 downFocusCycle): Call requestFocusInWindow instead of
6217 requestFocus.
6218 * java/awt/EventDispatchThread.java (run): Move setting of
6219 default keyboard focus manager to Component.java.
6220 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6221 (awt_keycode_to_keysym): New function.
6222 (gtkWidgetDispatchKeyEvent): Finish implementation.
6223 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6224 (pre_event_handler): Add FIXME comment.
6225
6226 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
6227 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6228 (gtkWidgetRequestFocus): New method.
6229 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
6230 disable Tab and Shift-Tab keystrokes.
6231 (addNotify, appendText, insertText, replaceText): Simplify peer
6232 retrieval code.
6233 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
6234 (connectSignals): Remove connections to "commit" signals.
6235 Remove C++-style comments.
6236
6237 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
6238 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6239 (handleEvent): Activate GTK button when the space bar key is
6240 pressed.
6241 (gtkActivate): New method.
6242
6243 2004-05-06 David Jee <djee@redhat.com>
6244
6245 * java/awt/image/CropImageFilter.java
6246 (setPixels): Implement for byte array pixels.
6247 * java/awt/image/ReplicateScaleFilter.java
6248 (setPixels): Implement for byte array pixels.
6249 (replicatePixels): Overload for byte array pixels.
6250
6251 2004-05-06 Kim Ho <kho@redhat.com>
6252
6253 * javax/swing/Box.java:
6254 (getAccessibleContext): Return an instance of the
6255 correct class.
6256
6257 2004-05-05 David Jee <djee@redhat.com>
6258
6259 * gnu/java/awt/peer/gtk/GdkGraphics.java
6260 (drawImage): When component is null, use SystemColor.window as
6261 the default bgcolor.
6262 * gnu/java/awt/peer/gtk/GtkImage.java
6263 (setPixels): We can avoid iterating through the pixel rows only
6264 when height is 1.
6265 * java/awt/Image.java
6266 (getScaledInstance): Partially implement.
6267 * java/awt/image/CropImageFilter.java
6268 (setProperties): Fix "filter" property.
6269 (setPixels): Implement.
6270 * java/awt/image/ReplicateScaleFilter.java
6271 (setDimensions): Use scaled dimensions.
6272 (setPixels): Implement.
6273 (replicatePixels): New method.
6274
6275 2004-05-05 David Jee <djee@redhat.com>
6276
6277 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6278 (convertPixels): If either pixels or model is null, return null.
6279 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
6280 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
6281 is null, do nothing and return.
6282
6283 2004-05-03 Kim Ho <kho@redhat.com>
6284
6285 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
6286 (getGraphics): Like GtkFramePeer, the Graphics
6287 object needs to be translate to account for
6288 window decorations.
6289 (postMouseEvent): New method. Account for
6290 translation.
6291 (postExposeEvent): ditto.
6292 * javax/swing/Box.java: Stubbed.
6293 * javax/swing/JDialog.java: Ran through jalopy
6294 to fix indentation.
6295 (JDialog): Call SwingUtilities' getOwnerFrame
6296 for null owners.
6297 (setLayout): Check isRootPaneCheckingEnabled
6298 * javax/swing/JOptionPane.java: Re-implemented.
6299 * javax/swing/SwingUtilities.java:
6300 (getOwnerFrame): Static method to grab a default
6301 owner frame for Dialogs that don't specify owners.
6302 * javax/swing/event/SwingPropertyChangeSupport.java:
6303 (firePropertyChange): Fix early exit condition.
6304 * javax/swing/plaf/basic/BasicLabelUI.java:
6305 (paint): Avoid painting text if it is null
6306 or empty.
6307 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
6308 Implement.
6309
6310 2004-05-03 Olga Rodimina <rodimina@redhat.com>
6311
6312 * Makefile.am: Added new file.
6313 * Makefile.in: Regenerate.
6314 * javax/swing/JPopupMenu.java:
6315 Started implementation.
6316 * javax/swing/JWindow.java
6317 (JWindow): call super() if parent for window
6318 is not specified.
6319 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
6320 New File. UI Delegate for JPopupMenu.
6321
6322 2004-04-30 Olga Rodimina <rodimina@redhat.com>
6323
6324 * javax/swing/JApplet.java: Indicated that JApplet
6325 implements RootPaneContainer and made method of this
6326 interface public.
6327 * javax/swing/JFrame.java: Ditto.
6328 * javax/swing/JWindow.java: Ditto.
6329
6330 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
6331
6332 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6333 (nativeSetBounds): Call gdk_window_move in addition to
6334 gtk_window_move.
6335
6336 * java/applet/Applet.java (preferredSize): Call parent's
6337 preferredSize if the applet stub is null.
6338 (minimumSize): Likewise for parent's minimumSize.
6339
6340 2004-04-27 Olga Rodimina <rodimina@redhat.com>
6341
6342 * javax/swing/JMenuItem.java
6343 (createActionPropertyChangeListener): Implemented.
6344 (processMouseEvent): Ditto.
6345 (fireMenuDragMouseEntered): Ditto.
6346 (fireMenuDragMouseExited): Ditto.
6347 (fireMenuDragMouseDragged): Ditto.
6348 (fireMenuDragMouseReleased): Ditto.
6349 (menuSelectionChanged): Ditto.
6350 (getSubElements): Ditto.
6351 (getComponent): Ditto.
6352 (addMenuDragMouseListener): Ditto.
6353 (removeMenuDragMouseListener):Ditto.
6354 (addMenuKeyListener): Ditto.
6355 (removeMenuKeyListener): Ditto.
6356 * javax/swing/plaf/basic/BasicMenuItemUI.java
6357 (doClick): Imlemented.
6358 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
6359 Don't handle mouse events here. Pass them to
6360 MenuSelectionManager.
6361
6362 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6363 Used correct version of jalopy configuration
6364 file to fix style in the files below.
6365
6366 2004-04-26 Olga Rodimina <rodimina@redhat.com>
6367
6368 * javax/swing/JCheckBoxMenuItem.java:
6369 Fixed style and removed unnecessary comments.
6370 * javax/swing/JMenuItem.java: Ditto.
6371 * javax/swing/JRadioButtonMenuItem.java: Ditto.
6372 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
6373 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
6374 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
6375
6376 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
6377
6378 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
6379 C-style.
6380
6381 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
6382
6383 * java/awt/ContainerOrderFocusTraversalPolicy.java
6384 (getComponentAfter): Start from current component and work up
6385 the component hierarchy until an acceptable component is found.
6386 Synchronize on tree lock.
6387 (getComponentBefore): Likewise.
6388
6389 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
6390
6391 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
6392 focus-related debugging messages.
6393 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
6394 * java/awt/EventDispatchThread.java: Likewise.
6395 * java/awt/KeyboardFocusManager.java: Likewise.
6396 * java/awt/Window.java: Likewise.
6397 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
6398 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6399
6400 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
6401 new C++-style comments to C-style comments.
6402 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6403
6404 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
6405 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6406 (handleEvent): Dispatch key press and key release events to
6407 backing widget.
6408 (requestFocus): Post a FOCUS_GAINED event to the event queue.
6409 (gtkWidgetRequestFocus): New method.
6410 (gtkWidgetDispatchKeyEvent): Likewise.
6411 * java/awt/Component.java (requestFocus, requestFocus(boolean),
6412 requestFocusInWindow, requestFocusInWindow(boolean),
6413 getFocusCycleRootAncestor, nextFocus, transferFocus,
6414 transferFocusBackward, transferFocusUpCycle, hasFocus,
6415 isFocusOwner): Implement and document focus-handling methods.
6416 (setFocusTraversalKeys): Inherit focus traversal keys when
6417 keystrokes argument is null. Fix focus-handling documentation
6418 throughout class.
6419 * java/awt/Container.java (setFocusTraversalKeys,
6420 getFocusTraversalKeys, areFocusTraversalKeysSet,
6421 isFocusCycleRoot, setFocusTraversalPolicy,
6422 getFocusTraversalPolicy, isFocusTraversalPolicySet,
6423 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
6424 Implement and document focus-handling methods.
6425 (transferFocusBackward): Remove method.
6426 (readObject, writeObject): Implement and document serialization
6427 methods.
6428 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
6429 and document.
6430 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
6431 document.
6432 * java/awt/DefaultKeyboardFocusManager.java: Implement and
6433 partially document.
6434 * java/awt/EventDispatchThread.java (run): Set default keyboard
6435 focus manager. Attempt to dispatch each event to the keyboard
6436 focus manager before normal dispatch.
6437 * java/awt/KeyboardFocusManager.java: Implement and partially
6438 document.
6439 * java/awt/Window.java (Window): Set focusCycleRoot to true.
6440 (show): Focus initial component when window is shown for the
6441 first time.
6442 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6443 (pre_event_handler): Replace complex key press and key release
6444 logic with simple callbacks into GtkComponentPeer.
6445 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
6446
6447 2004-04-21 Olga Rodimina <rodimina@redhat.com>
6448
6449 * javax/swing/MenuSelectionManager.java
6450 (componentForPoint): Added new method.
6451 (defaultManager): New Method. Implemented.
6452 (getSelectedPath): Ditto.
6453 (isComponentPartOfCurrentMenu): Ditto.
6454 (processKeyEvent): Added new method.
6455 (processMouseEvent): New Method. Implemented.
6456 (setSelectedPath): Ditto.
6457 (getPath): Ditto.
6458
6459 2004-04-19 Kim Ho <kho@redhat.com>
6460
6461 * java/awt/Container.java:
6462 (remove): Set the component's parent to null.
6463 (getComponentAt): Implement.
6464 * javax/swing/JComponent.java:
6465 (JComponent): Initialize defaultLocale
6466 (getDefaultLocale): Implement.
6467 (setDefaultLocale): ditto.
6468 * javax/swing/JSlider.java:
6469 (JSlider): Fix calculation of value.
6470 * javax/swing/JSplitPane.java: Implement.
6471 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6472 Change SplitPane's default divider size.
6473 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6474 (paint): Remove unused code.
6475 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
6476 Added comments and ran through jalopy.
6477 (setBasicSplitPaneUI): Get reference to hidden divider
6478 and set up one touch buttons if necessary.
6479 (setBorder): Fire propertyChangeEvent only if
6480 borders are different.
6481 (getPreferredSize): Defer to layout manager.
6482 (propertyChange): Implement.
6483 (oneTouchExpandableChanged): ditto.
6484 (createLeftOneTouchButton): Use BasicArrowButton.
6485 (createRightOneTouchButton): ditto.
6486 (moveDividerTo): New method. Moves the divider
6487 to a set location based on the last divider location.
6488 (BasicSplitPaneDivider::MouseHandler): Implement.
6489 (BasicSplitPaneDivider::OneTouchButton): Removed.
6490 (BasicSplitPaneDivider::DragController): Implement.
6491 (BasicSplitPaneDivider::VerticalDragController):
6492 ditto.
6493 (BasicSplitPaneDivider::DividerLayout): ditto.
6494 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
6495 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
6496 (calculateLayoutInfo): Don't show component if it's
6497 null.
6498 (paintTab): Fix title paint logic.
6499
6500 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
6501
6502 PR libgcj/8321
6503 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
6504 (setStartRule,setEndRule): Don't take abs of day number.
6505 (getOffset): Clarify docs. Add argument checks.
6506 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
6507 (equals,hasSameRules,toString,readObject): Use startTimeMode and
6508 endTimeMode.
6509 * testsuite/libjava.mauve/xfails
6510 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
6511
6512 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
6513
6514 Layout interfaces during preparation, not initialization.
6515 * java/lang/natClass.cc (initializeClass): Move
6516 _Jv_LayoutInterfaceMethods call...
6517 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
6518
6519 2004-05-19 Anthony Green <green@localhost.localdomain>
6520
6521 * Makefile.am (awt_java_source_files): Remove javax.rmi and
6522 gnu.javax.rmi code.
6523 * Makefile.in: Rebuilt.
6524 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
6525 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
6526 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
6527 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
6528 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
6529 gnu/javax/rmi/CORBA/DelegateFactory.java,
6530 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
6531 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
6532 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
6533 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
6534 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
6535 gnu/javax/rmi/PortableServer.java: Remove files.
6536
6537 2004-05-19 Anthony Green <green@redhat.com>
6538
6539 * Makefile.am: Define JAVA_EXT_DIRS.
6540 * Makefile.in: Rebuilt.
6541 * java/lang/natRuntime.cc (insertSystemProperties): Set
6542 java.ext.dirs property.
6543
6544 2004-05-16 Mark Wielaard <mark@klomp.org>
6545
6546 * java/io/Writer.java (Writer(Object)): Check for null lock object.
6547
6548 2004-05-15 Mark Wielaard <mark@klomp.org>
6549
6550 * doc/cni.sgml: Removed, merged into gcj.texi.
6551
6552 2004-05-15 Mark Wielaard <mark@klomp.org>
6553
6554 * Makefile.am (ordinary_java_source_files): Add new javax.print
6555 classes.
6556 * Makefile.in: Regenerated.
6557
6558 2004-05-15 Michael Koch <konqueror@gmx.de>
6559
6560 * javax/print/attribute/standard/DateTimeAtCompleted.java,
6561 javax/print/attribute/standard/DateTimeAtCreation.java,
6562 javax/print/attribute/standard/DateTimeAtProcessing.java,
6563 javax/print/attribute/standard/DocumentName.java,
6564 javax/print/attribute/standard/JobHoldUntil.java,
6565 javax/print/attribute/standard/JobImpressionsCompleted.java,
6566 javax/print/attribute/standard/JobMessageFromOperator.java,
6567 javax/print/attribute/standard/JobName.java,
6568 javax/print/attribute/standard/JobOriginatingUserName.java,
6569 javax/print/attribute/standard/JobPriority.java,
6570 javax/print/attribute/standard/JobPrioritySupported.java,
6571 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6572 javax/print/attribute/standard/OutputDeviceAssigned.java,
6573 javax/print/attribute/standard/PrinterInfo.java,
6574 javax/print/attribute/standard/PrinterLocation.java,
6575 javax/print/attribute/standard/PrinterMakeAndModel.java,
6576 javax/print/attribute/standard/PrinterMessageFromOperator.java,
6577 javax/print/attribute/standard/PrinterName.java,
6578 javax/print/attribute/standard/QueuedJobCount.java,
6579 javax/print/attribute/standard/RequestingUserName.java:
6580 Fixed javadocs all over.
6581
6582 2004-05-15 Michael Koch <konqueror@gmx.de>
6583
6584 * javax/print/DocFlavor.java,
6585 javax/print/attribute/standard/ColorSupported.java,
6586 javax/print/attribute/standard/Compression.java,
6587 javax/print/attribute/standard/CopiesSupported.java,
6588 javax/print/attribute/standard/Fidelity.java,
6589 javax/print/attribute/standard/Finishings.java,
6590 javax/print/attribute/standard/JobImpressionsSupported.java,
6591 javax/print/attribute/standard/JobKOctetsSupported.java,
6592 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6593 javax/print/attribute/standard/JobSheets.java,
6594 javax/print/attribute/standard/JobState.java,
6595 javax/print/attribute/standard/JobStateReason.java,
6596 javax/print/attribute/standard/JobStateReasons.java,
6597 javax/print/attribute/standard/Media.java,
6598 javax/print/attribute/standard/MediaSizeName.java,
6599 javax/print/attribute/standard/MultipleDocumentHandling.java,
6600 javax/print/attribute/standard/NumberUpSupported.java,
6601 javax/print/attribute/standard/OrientationRequested.java,
6602 javax/print/attribute/standard/PDLOverrideSupported.java,
6603 javax/print/attribute/standard/PageRanges.java,
6604 javax/print/attribute/standard/PresentationDirection.java,
6605 javax/print/attribute/standard/PrintQuality.java,
6606 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6607 javax/print/attribute/standard/PrinterMoreInfo.java,
6608 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6609 javax/print/attribute/standard/PrinterResolution.java,
6610 javax/print/attribute/standard/PrinterState.java,
6611 javax/print/attribute/standard/PrinterStateReason.java,
6612 javax/print/attribute/standard/PrinterStateReasons.java,
6613 javax/print/attribute/standard/PrinterURI.java,
6614 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6615 javax/print/attribute/standard/Severity.java,
6616 javax/print/attribute/standard/SheetCollate.java,
6617 javax/print/attribute/standard/Sides.java:
6618 Added serialVersionUID and removed final keyword where it doenst
6619 belong.
6620
6621 2004-05-15 Michael Koch <konqueror@gmx.de>
6622
6623 * javax/print/PrintServiceLookup.java: New file.
6624
6625 2004-05-15 Michael Koch <konqueror@gmx.de>
6626
6627 * javax/print/DocFlavor.java:
6628 Implemented all flavor classes.
6629
6630 2004-05-15 Michael Koch <konqueror@gmx.de>
6631
6632 * javax/print/attribute/standard/ColorSupported.java,
6633 javax/print/attribute/standard/Compression.java,
6634 javax/print/attribute/standard/CopiesSupported.java,
6635 javax/print/attribute/standard/Fidelity.java,
6636 javax/print/attribute/standard/Finishings.java,
6637 javax/print/attribute/standard/JobImpressionsSupported.java,
6638 javax/print/attribute/standard/JobKOctetsSupported.java,
6639 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6640 javax/print/attribute/standard/JobSheets.java,
6641 javax/print/attribute/standard/JobState.java,
6642 javax/print/attribute/standard/JobStateReason.java,
6643 javax/print/attribute/standard/JobStateReasons.java,
6644 javax/print/attribute/standard/Media.java,
6645 javax/print/attribute/standard/MediaSizeName.java,
6646 javax/print/attribute/standard/MultipleDocumentHandling.java,
6647 javax/print/attribute/standard/NumberUpSupported.java,
6648 javax/print/attribute/standard/OrientationRequested.java,
6649 javax/print/attribute/standard/PDLOverrideSupported.java,
6650 javax/print/attribute/standard/PageRanges.java,
6651 javax/print/attribute/standard/PresentationDirection.java,
6652 javax/print/attribute/standard/PrintQuality.java,
6653 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6654 javax/print/attribute/standard/PrinterMoreInfo.java,
6655 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6656 javax/print/attribute/standard/PrinterResolution.java,
6657 javax/print/attribute/standard/PrinterState.java,
6658 javax/print/attribute/standard/PrinterStateReason.java,
6659 javax/print/attribute/standard/PrinterStateReasons.java,
6660 javax/print/attribute/standard/PrinterURI.java,
6661 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6662 javax/print/attribute/standard/Severity.java,
6663 javax/print/attribute/standard/SheetCollate.java,
6664 javax/print/attribute/standard/Sides.java: New files.
6665
6666 2004-05-15 Michael Koch <konqueror@gmx.de>
6667
6668 * javax/print/Doc.java
6669 (getPrintData): Throws IOException.
6670 (getReaderForText): Likewise.
6671 (getStreamForBytes): Likewise.
6672 * javax/print/DocFlavor.java:
6673 Fixed filename in copyright.
6674 (serialVersionUID): New field.
6675 * javax/print/ServiceUIFactory.java:
6676 Made all constants final.
6677 * javax/print/AttributeException.java
6678 javax/print/MultiDoc.java
6679 javax/print/MultiDocPrintJob.java
6680 javax/print/MultiDocPrintService.java
6681 javax/print/StreamPrintService.java
6682 javax/print/URIException.java: New files.
6683 * javax/print/Makefile.am
6684 (EXTRA_DIST): Added all new files.
6685
6686 2004-05-15 Michael Koch <konqueror@gmx.de>
6687
6688 * javax/print/attribute/standard/Copies.java,
6689 javax/print/attribute/standard/DateTimeAtCompleted.java,
6690 javax/print/attribute/standard/DateTimeAtCreation.java,
6691 javax/print/attribute/standard/DateTimeAtProcessing.java,
6692 javax/print/attribute/standard/DocumentName.java,
6693 javax/print/attribute/standard/JobHoldUntil.java,
6694 javax/print/attribute/standard/JobImpressions.java,
6695 javax/print/attribute/standard/JobImpressionsCompleted.java,
6696 javax/print/attribute/standard/JobKOctets.java,
6697 javax/print/attribute/standard/JobKOctetsProcessed.java,
6698 javax/print/attribute/standard/JobMediaSheets.java,
6699 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
6700 javax/print/attribute/standard/JobMessageFromOperator.java,
6701 javax/print/attribute/standard/JobName.java,
6702 javax/print/attribute/standard/JobOriginatingUserName.java,
6703 javax/print/attribute/standard/JobPriority.java,
6704 javax/print/attribute/standard/JobPrioritySupported.java,
6705 javax/print/attribute/standard/NumberOfDocuments.java,
6706 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6707 javax/print/attribute/standard/NumberUp.java,
6708 javax/print/attribute/standard/OutputDeviceAssigned.java,
6709 javax/print/attribute/standard/PagesPerMinute.java,
6710 javax/print/attribute/standard/PagesPerMinuteColor.java:
6711 Fixed @return tag all over.
6712
6713 2004-05-15 Michael Koch <konqueror@gmx.de>
6714
6715 * javax/print/attribute/AttributeSetUtilities.java
6716 (verifyCategoryForValue): Fixed typo in javadoc.
6717 * javax/print/attribute/HashAttributeSet.java
6718 (containsKey): Fixed @return tag.
6719 (comtainsValue): Likewise.
6720 (equals): Likewise.
6721 * javax/print/attribute/IntegerSyntax.java
6722 (equals): Likewise.
6723 * javax/print/attribute/ResolutionSyntax.java
6724 (equals): Likewise.
6725 (getCrossFeedResolution): Removed unused code.
6726 (getFeedResolution): Likewise.
6727 * javax/print/attribute/SetOfIntegerSyntax.java
6728 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
6729 (equals): Fixed @return tag.
6730 * javax/print/attribute/TextSyntax.java
6731 (TextSyntax): Take locale into account.
6732 (hashCode): Better implementation.
6733
6734 2004-05-15 Michael Koch <konqueror@gmx.de>
6735
6736 * javax/print/CancelablePrintJob.java,
6737 javax/print/Doc.java,
6738 javax/print/DocFlavor.java,
6739 javax/print/DocPrintJob.java,
6740 javax/print/FlavorException.java,
6741 javax/print/PrintException.java,
6742 javax/print/PrintService.java,
6743 javax/print/ServiceUIFactory.java: New files.
6744
6745 2004-05-15 Mark Wielaard <mark@klomp.org>
6746
6747 * gnu/regexp/CharIndexedReader.java: Removed.
6748 * gnu/regexp/REFilterReader.java: Likewise.
6749 * gnu/regexp/RETokenLookAhead.java: Likewise.
6750 * Makefile.am (ordinary_java_source_files): Remove above classes.
6751 * Makefile.in: Regenerated.
6752
6753 2004-05-14 Tom Tromey <tromey@redhat.com>
6754
6755 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
6756 not `XGraphicsConfiguration.XOffScreenImage'.
6757
6758 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
6759
6760 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
6761
6762 2004-05-14 Steven Augart <augart@watson.ibm.com>
6763
6764 * include/jni.h (_Jv_func): Removed.
6765 (struct JNINativeInterface): Use `void *' for reserved slots.
6766 (struct JNIInvokeInterface): Likewise.
6767
6768 2004-05-11 Michael Koch <konqueror@gmx.de>
6769
6770 * gnu/java/net/natPlainSocketImplPosix.cc
6771 (read): Fixed typo in expression.
6772
6773 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
6774
6775 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
6776 ld_library_additions. Adjust all calls to libjava_invoke to match
6777 the new argument.
6778
6779 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
6780 path to cxxflagslist.
6781 Pass path of libstdc++ to libjava_invoke.
6782
6783 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
6784 libjava_invoke arguments.
6785
6786 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
6787
6788 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
6789 reality.
6790
6791 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
6792
6793 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
6794 main binary against the JNI shared library.
6795
6796 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6797
6798 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
6799 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
6800 (SimpleTimeZone): Tweak docs. Add new variation.
6801 (setStartRule,setEndRule): Add new variations. Use
6802 startTimeMode and endTimeMode.
6803
6804 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6805
6806 * java/util/Calendar.java (getActualMinimum,
6807 getActualMaximum): Remove abstract. Implement.
6808
6809 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6810
6811 Run the jni tests using the interpreter.
6812 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
6813 options_cxx to shared lib compile command.
6814 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
6815 they are used to link the shared lib, not the main binary.
6816 Use libjava_invoke to run gij.
6817
6818 2004-05-06 Michael Koch <konqueror@gmx.de>
6819
6820 * java/util/logging/Level.java
6821 (parse): Use == instead of String.equals().
6822
6823 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6824
6825 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
6826 verify_field_signature and verify_method_signature, not
6827 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
6828 (_Jv_ClassReader::handleField): Likewise.
6829 (_Jv_ClassReader::handleMethod): Likewise.
6830
6831 2004-05-06 Michael Koch <konqueror@gmx.de>
6832
6833 * javax/swing/table/TableColumn.java:
6834 Reformated.
6835
6836 2004-05-06 Michael Koch <konqueror@gmx.de>
6837
6838 * javax/imageio/spi/ImageReaderWriterSpi.java
6839 (ImageReaderWriterSpi): Made it public.
6840 * javax/imageio/stream/ImageInputStream.java:
6841 Clean up imports.
6842
6843 2004-05-06 Michael Koch <konqueror@gmx.de>
6844
6845 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6846 Removed empty line.
6847
6848 2004-05-06 Michael Koch <konqueror@gmx.de>
6849
6850 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
6851 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
6852 New files.
6853 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
6854 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
6855 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
6856 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
6857 their own source file.
6858 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6859 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
6860 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
6861 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
6862 (create): Define variable on top of function.
6863 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
6864 (menu_pos): Prototyped.
6865 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6866 (setTitle): Removed.
6867 * jni/gtk-peer/gthread-jni.c
6868 (gdk_threads_wake): Removed.
6869 * Makefile.am (gtk_c_source_files): Added new files
6870 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
6871 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
6872 * Makefile.in: Regenerated.
6873
6874 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
6875
6876 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
6877 call.
6878
6879 2004-05-05 Mark Wielaard <mark@klomp.org>
6880
6881 * javax/swing/AbstractButton.java: Replace special HTML entities with
6882 ASCII equivalent.
6883 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
6884 * javax/swing/DefaultButtonModel.java: Likewise.
6885 * javax/swing/DefaultListModel.java: Likewise.
6886 * javax/swing/JList.java: Likewise.
6887 * javax/swing/JSlider.java: Likewise.
6888 * javax/swing/ListModel.java: Likewise.
6889 * javax/swing/Popup.java: Likewise.
6890 * javax/swing/SwingUtilities.java: Likewise.
6891
6892 2004-05-05 Michael Koch <konqueror@gmx.de>
6893
6894 * javax/swing/AbstractButton.java,
6895 javax/swing/ActionMap.java,
6896 javax/swing/DefaultButtonModel.java,
6897 javax/swing/DefaultListModel.java,
6898 javax/swing/ImageIcon.java,
6899 javax/swing/JComboBox.java,
6900 javax/swing/JComponent.java,
6901 javax/swing/JFrame.java,
6902 javax/swing/JInternalFrame.java,
6903 javax/swing/JMenuBar.java,
6904 javax/swing/JMenuItem.java,
6905 javax/swing/JOptionPane.java,
6906 javax/swing/JProgressBar.java,
6907 javax/swing/JRootPane.java,
6908 javax/swing/JScrollBar.java,
6909 javax/swing/JScrollPane.java,
6910 javax/swing/JSeparator.java,
6911 javax/swing/JSlider.java,
6912 javax/swing/JTabbedPane.java,
6913 javax/swing/JTable.java,
6914 javax/swing/JTextField.java,
6915 javax/swing/JToolBar.java,
6916 javax/swing/JToolTip.java,
6917 javax/swing/JTree.java,
6918 javax/swing/JViewport.java,
6919 javax/swing/JWindow.java,
6920 javax/swing/KeyStroke.java,
6921 javax/swing/LookAndFeel.java,
6922 javax/swing/SwingUtilities.java,
6923 javax/swing/Timer.java,
6924 javax/swing/ToolTipManager.java,
6925 javax/swing/UIDefaults.java,
6926 javax/swing/border/TitledBorder.java,
6927 javax/swing/filechooser/FileSystemView.java,
6928 javax/swing/plaf/basic/BasicButtonListener.java,
6929 javax/swing/plaf/basic/BasicButtonUI.java,
6930 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
6931 javax/swing/plaf/basic/BasicGraphicsUtils.java,
6932 javax/swing/plaf/basic/BasicLabelUI.java,
6933 javax/swing/plaf/basic/BasicMenuItemUI.java,
6934 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
6935 javax/swing/plaf/basic/BasicRootPaneUI.java,
6936 javax/swing/plaf/basic/BasicScrollBarUI.java,
6937 javax/swing/plaf/basic/BasicScrollPaneUI.java,
6938 javax/swing/plaf/basic/BasicSliderUI.java,
6939 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
6940 javax/swing/plaf/basic/BasicToggleButtonUI.java,
6941 javax/swing/table/JTableHeader.java,
6942 javax/swing/text/AbstractDocument.java,
6943 javax/swing/text/DefaultCaret.java,
6944 javax/swing/text/StyledEditorKit.java,
6945 javax/swing/tree/DefaultTreeCellEditor.java:
6946 Cleaned up imports.
6947
6948 2004-05-05 Michael Koch <konqueror@gmx.de>
6949
6950 * java/util/prefs/AbstractPreferences.java
6951 (AbstractPreferences): Added parenthesis for clarity.
6952 Closes classpath bug #7940.
6953
6954 2004-05-05 Tom Tromey <tromey@redhat.com>
6955
6956 * javax/naming/CompoundName.java (endsWith): Look at correct
6957 element of source name.
6958
6959 2004-05-05 Mark Wielaard <mark@klomp.org>
6960
6961 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
6962 * java/util/HashMap.java (rehash): Add entry at start of bucket.
6963
6964 2004-05-05 Tom Tromey <tromey@redhat.com>
6965
6966 * java/io/BufferedReader.java (skip): Removed unused
6967 variable.
6968
6969 2004-05-05 Michael Koch <konqueror@gmx.de>
6970
6971 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
6972
6973 2004-05-05 Dalibor Topic <robilad@kaffe.org>
6974
6975 * java/text/AttributedString.java,
6976 java/text/AttributedStringIterator.java,
6977 java/text/Collator.java,
6978 java/text/DecimalFormatSymbols.java,
6979 java/text/NumberFormat.java,
6980 java/text/RuleBasedCollator.java:
6981 Cleaned up imports.
6982
6983 2004-05-05 Tom Tromey <tromey@redhat.com>
6984
6985 * java/text/Format.java: Cleaned up imports.
6986 * java/text/DecimalFormat.java: Cleaned up imports.
6987 * java/security/SecureRandom.java: Cleaned up imports.
6988 (SecureRandom): Removed unused variable.
6989 * java/security/UnresolvedPermission.java: Cleaned up imports.
6990 * java/util/Date.java (parse): Removed unused variable.
6991 * java/util/ResourceBundle.java: Cleaned up imports.
6992 (getBundle): Removed unused variable.
6993 (tryBundle): Likewise.
6994 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
6995
6996 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6997
6998 * java/text/SimpleDateFormat.java:
6999 (formatWithAttribute): New method. It implements
7000 the formatting process with attributes.
7001 (format): Use formatWithAttribute.
7002 (formatToCharacterIterator): New method. Use
7003 formatWithAttribute.
7004
7005 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7006
7007 * java/text/MessageFormat.java:
7008 (class Field): New class.
7009 (formatToCharacterIterator): New method.
7010 (format): Use formatInternal now.
7011 (formatInternal): New method. String formatter should
7012 be done here (with attributes). Attributes merging supported.
7013 (parse): More documentation.
7014 (getFormatsByArgumentIndex): New method.
7015 (setFormatByArgumentIndex): New method.
7016 (setFormatsByArgumentIndex): New method.
7017
7018 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7019
7020 * java/text/DecimalFormat.java
7021 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
7022 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
7023 (parse): Fixed handling of exponentiation notation and grouping.
7024
7025 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
7026
7027 * java/text/DecimalFormat.java
7028 (scanFix): Build attribute array. Fixed error reporting.
7029 (applyPatternWithSymbols): Store attributes for the prefix and
7030 suffix.
7031 (formatInternal): New method. Changed the way the string is
7032 computed. Implemented attributes. Cleant up rounding in
7033 exponential notation.
7034 (format): Use formatInternal.
7035 (formatToCharacterIterator): New method.
7036 (exponentRound, negativePrefixRanges, positivePrefixRanges,
7037 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
7038 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
7039 New fields.
7040
7041 2004-05-04 Dalibor Topic <robilad@kaffe.org>
7042
7043 * java/security/interfaces/DSAKeyPairGenerator.java,
7044 java/security/interfaces/DSAPrivateKey.java,
7045 java/security/interfaces/DSAPublicKey.java,
7046 java/security/interfaces/RSAPrivateKey.java,
7047 java/security/interfaces/RSAPublicKey.java:
7048 Cleaned up imports.
7049
7050 2004-05-04 Michael Koch <konqueror@gmx.de>
7051
7052 * java/nio/ByteBuffer.java,
7053 java/nio/CharBuffer.java,
7054 java/nio/DoubleBuffer.java,
7055 java/nio/FloatBuffer.java,
7056 java/nio/IntBuffer.java,
7057 java/nio/LongBuffer.java,
7058 java/nio/ShortBuffer.java:
7059 (compareTo): Fixed bogus implementation in all buffer classes.
7060
7061 2004-05-04 Ingo Proetel <proetel@aicas.com>
7062
7063 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
7064 32 bit pixels not 8 bit pixels.
7065 (isCompatibleRaster): Added javadoc comment.
7066
7067 2004-05-04 Ingo Proetel <proetel@aicas.com>
7068
7069 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
7070 scanline stride.
7071
7072 2004-05-04 Ingo Proetel <proetel@aicas.com>
7073
7074 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
7075 (getColorModel): Return the actual color model.
7076 (getRaster): Implemented.
7077 (ColorRaster): New inner class.
7078 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
7079 a PaintContext.
7080 * java/awt/Color.java (<init>): Make exception more verbose.
7081 (createContext): Use ColorModel when creating a PaintContext.
7082
7083 2004-05-04 Michael Koch <konqueror@gmx.de>
7084
7085 * gnu/java/text/CharacterBreakIterator.java
7086 (previous): Removed unused variable.
7087
7088 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
7089
7090 * gnu/java/text/FormatBuffer.java,
7091 gnu/java/text/AttributedFormatBuffer.java,
7092 gnu/java/text/StringFormatBuffer.java: New classes to implement
7093 attributed iterators in java.text.
7094 * gnu/java/text/FormatCharacterIterator.java: Moved
7095 from java/text as it is an internal class.
7096 * java/text/FormatCharacterIterator.java: Removed.
7097 * java/text/Format.java:
7098 Import gnu.java.text.FormatCharacterIterator.
7099 * Makefile.am (java_source_files): Added new files.
7100 * Makefile.in: Regenerated.
7101
7102
7103 2004-05-04 Mark Wielaard <mark@klomp.org>
7104
7105 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
7106
7107 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
7108
7109 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
7110 * Makefile.in: Rebuilt.
7111
7112 2004-05-03 Mark Wielaard <mark@klomp.org>
7113
7114 * gnu/java/security/der/DERReader.java: Call static methods staticly.
7115 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
7116 * java/net/URL.java
7117 (set(String, String, int, String, String, String, String, String)):
7118 Assign this.file to path or path + "?" + query.
7119 * java/util/Arrays.java: Call static methods staticly.
7120 * java/util/zip/ZipEntry.java: Likewise.
7121 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
7122 dir to this.direction.
7123 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
7124 Assign static field only once.
7125 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
7126
7127 2004-05-03 Mark Wielaard <mark@klomp.org>
7128
7129 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
7130 unused variables hScrollbarHeight and vScrollbarWidth.
7131 (preferredSize): Likewise.
7132 * gnu/java/security/provider/DSAParameters.java (engineToString):
7133 Removed unused call to System.getProperty("line.seperator");
7134 * java/security/Security.java (loadProviders): Return result.
7135
7136 2004-05-03 Tom Tromey <tromey@redhat.com>
7137
7138 * java/net/URLStreamHandler.java (toExternalForm): Removed
7139 unused variables.
7140 unused constructor.
7141 * java/math/BigDecimal.java (divide): Removed unused variable.
7142 * java/lang/Throwable.java: Cleaned up imports.
7143 * java/lang/ClassLoader.java: Cleaned up imports.
7144 * java/io/FilePermission.java (implies): Removed unused
7145 variable.
7146 * java/awt/TextComponent.java: Removed unused import.
7147 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
7148 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
7149 * gnu/java/text/WordBreakIterator.java: Removed unused import.
7150 * gnu/java/text/SentenceBreakIterator.java: Removed unused
7151 import.
7152 * gnu/java/text/LineBreakIterator.java: Removed unused import.
7153 * gnu/java/text/CharacterBreakIterator.java: Removed
7154 unused import.
7155 * gnu/java/security/provider/DSAKeyPairGenerator.java:
7156 Cleaned up imports.
7157 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
7158 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
7159 unused method.
7160 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
7161 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
7162 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
7163 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
7164 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
7165 (lookupProviders): Removed unused variable.
7166 (loadNextServiceProvider): Likewise.
7167 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
7168
7169 2004-05-03 Michael Koch <konqueror@gmx.de>
7170
7171 Fixes PR libgcj/14695:
7172 * java/net/NetworkInterface.java
7173 (getByName): Return null when no interface was found.
7174
7175 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
7176 Tom Tromey <tromey@redhat.com>
7177
7178 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
7179 additional option "-Wmissing-prototypes" for compiling C sources.
7180 Print actual filename for pass/fail rather than $name.c.
7181 * testsuite/libjava.jni/PR15133.java: New testcase file.
7182 * testsuite/libjava.jni/PR15133.c: Likewise.
7183 * testsuite/libjava.jni/PR15133.out: Likewise.
7184
7185 2004-04-30 Roger Sayle <roger@eyesopen.com>
7186
7187 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
7188 ceil and floor.
7189
7190 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
7191
7192 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
7193 limit the maximum heap size to avoid unnecessary thrashing.
7194
7195 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
7196
7197 * java/text/CollationElementIterator.java (reset): Reset
7198 lookahead variables.
7199
7200 2004-04-23 Mark Wielaard <mark@klomp.org>
7201
7202 * jni/classpath/jcl.c: Changed C++ comments into C comments.
7203
7204 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7205
7206 * java/sql/DriverManager.java:
7207 Cleaned up imports.
7208
7209 2004-04-23 Michael Koch <konqueror@gmx.de>
7210
7211 * java/net/URL.java
7212 (hashcode): Don't initialize with default value explicitely.
7213 (getContent): Removed redundant "final" keyword.
7214 (openStream): Likewise.
7215 (getURLStreamHandler): Fixed coding style.
7216 * java/net/URLConnection.java
7217 (defaultAllowUserInteraction): Don't initialize with default value
7218 explicitely.
7219 (connected): Likewise.
7220 (doOutput): Likewise.
7221 (ifModifiedSince): Likewise.
7222 (dateformats_initialized): Likewise.
7223 (setURLStreamHander): Use StreamTokenizer where it belongs to.
7224
7225 2004-04-23 Michael Koch <konqueror@gmx.de>
7226
7227 * gnu/java/nio/channels/FileChannelImpl.java
7228 (SET, CUR): Unused, removed.
7229 (read): Implement here directly.
7230 (implRead): Removed.
7231 (write): Implement here directly.
7232 (implWrite): Removed.
7233
7234 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7235
7236 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
7237 javax/rmi/CORBA/Stub.java,
7238 javax/rmi/CORBA/Util.java,
7239 javax/rmi/CORBA/ValueHandler.java,
7240 javax/rmi/CORBA/ValueHandler.java,
7241 javax/rmi/PortableRemoteObject.java:
7242 Cleaned up imports.
7243
7244 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7245
7246 * java/util/jar/JarFile.java,
7247 java/util/jar/JarInputStream.java,
7248 java/util/jar/JarOutputStream.java,
7249 java/util/jar/Manifest.java:
7250 Cleaned up imports.
7251
7252 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7253
7254 * java/util/ArrayList.java,
7255 java/util/Calendar.java,
7256 java/util/Currency.java,
7257 java/util/HashMap.java,
7258 java/util/HashSet.java,
7259 java/util/Hashtable.java,
7260 java/util/LinkedList.java,
7261 java/util/Properties.java,
7262 java/util/PropertyPermission.java,
7263 java/util/TimeZone.java,
7264 java/util/TreeMap.java,
7265 java/util/TreeSet.java,
7266 java/util/Vector.java,
7267 java/util/WeakHashMap.java:
7268 Cleaned up imports.
7269
7270 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7271
7272 * java/util/logging/FileHandler.java,
7273 java/util/logging/Formatter.java,
7274 java/util/logging/Handler.java,
7275 java/util/logging/Logger.java,
7276 java/util/logging/SimpleFormatter.java,
7277 java/util/logging/XMLFormatter.java:
7278 Cleaned up imports.
7279
7280 2004-04-22 Mark Wielaard <mark@klomp.org>
7281
7282 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
7283 -Wno-long-long flags variable.
7284 (gtk_c_files): Use PEDANTIC_CFLAGS.
7285 * Makefile.in: Regenerated.
7286
7287 2004-04-22 Mark Wielaard <mark@klomp.org>
7288
7289 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7290 Changed C++ comments into C comments.
7291 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
7292 Likewise.
7293
7294 2004-04-22 Michael Koch <konqueror@gmx.de>
7295
7296 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
7297 Merged copyright year with GNU classpath.
7298
7299 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7300
7301 * javax/security/auth/x500/X500Principal.java:
7302 Cleaned up imports.
7303
7304 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7305
7306 * javax/swing/JSlider.java:
7307 Fixed HTML tags in comments.
7308
7309 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7310
7311 * javax/accessibility/AccessibleText.java:
7312 Cleaned up imports.
7313
7314 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
7315
7316 * java/net/URLStreamHandler.java
7317 (parseURL): Convert the file path to using '/' instead of native
7318 file separator.
7319
7320 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
7321
7322 * java/net/URL.java
7323 (userInfo): New field.
7324 (URL): Set authority to the right value.
7325 (setURL): Fixed authority and file initialization.
7326 * java/net/URLStreamHandler.java
7327 (parseURL): Take care of the query tag. Build authority.
7328 (toExternalForm): Fixed URL building using authority.
7329
7330 2004-04-22 Michael Koch <konqueror@gmx.de>
7331
7332 * java/net/Socket.java
7333 (impl): Made package-private.
7334 * java/net/ServerSocket.java
7335 (implAccept): Access Socket.impl field directly.
7336
7337 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7338
7339 * java/util/prefs/Preferences.java,
7340 java/util/prefs/InvalidPreferencesFormatException.java,
7341 java/util/prefs/BackingStoreException.java,
7342 java/util/prefs/AbstractPreferences.java:
7343 Cleaned up imports.
7344
7345 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7346
7347 * java/util/regex/Matcher.java,
7348 java/util/regex/Pattern.java:
7349 Cleaned up imports.
7350
7351 2004-04-22 Michael Koch <konqueror@gmx.de>
7352
7353 * java/nio/charset/IllegalCharsetNameException.java
7354 (charsetName): Made private.
7355 (IllegalCharsetNameException): Added @param tag to javadoc.
7356 (getCharsetName): Added @return tag to javadoc.
7357 * java/nio/charset/MalformedInputException.java
7358 (MalformedInputException): Added @param tag to javadoc.
7359 (getInputLength): Revised method description, added @return tag.
7360 (getMessage): Added @return tag.
7361
7362 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
7363
7364 * java/awt/Font.java (deriveFont): Implement missing variants.
7365 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
7366 missing variants.
7367
7368 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
7369
7370 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
7371 Set method->index values for interface methods to their itable index.
7372 (initializeClass): Call _Jv_LayoutInterfaceMethods.
7373
7374 2004-04-21 Michael Koch <konqueror@gmx.de>
7375
7376 * java/nio/DirectByteBufferImpl.java
7377 (shiftDown): Made static, give address as argument and
7378 provide a convenience method that overwrites shiftDown in
7379 ByteBufferImpl and calls the native shiftDown.
7380 * java/nio/MappedByteBufferImpl.java
7381 (): Use optimized method in DirectByteBufferImpl.
7382 * java/nio/natDirectByteBufferImpl.cc
7383 (shiftDown): Changed method signature. Removed usage of array_offset.
7384
7385 2004-04-21 Michael Koch <konqueror@gmx.de>
7386
7387 * gnu/java/net/natPlainSocketImplPosix.cc
7388 (SocketInputStream::read): Make sure returned data is a byte value.
7389
7390 2004-04-21 Michael Koch <konqueror@gmx.de>
7391
7392 * gnu/classpath/ServiceFactory.java,
7393 gnu/classpath/ServiceProviderLoadingAction.java,
7394 javax/imageio/ImageReader.java,
7395 javax/imageio/ImageTranscoder.java,
7396 javax/imageio/ImageWriter.java,
7397 javax/imageio/package.html,
7398 javax/imageio/spi/IIOServiceProvider.java,
7399 javax/imageio/spi/ImageInputStreamSpi.java,
7400 javax/imageio/spi/ImageOutputStreamSpi.java,
7401 javax/imageio/spi/ImageReaderWriterSpi.java,
7402 javax/imageio/spi/ImageTranscoderSpi.java,
7403 javax/imageio/spi/RegisterableService.java,
7404 javax/imageio/spi/ServiceRegistry.java,
7405 javax/imageio/spi/package.html,
7406 javax/imageio/stream/IIOByteBuffer.java,
7407 javax/imageio/stream/ImageInputStream.java,
7408 javax/imageio/stream/ImageOutputStream.java,
7409 javax/imageio/stream/package.html:
7410 New files.
7411 * Makefile.am
7412 (ordinary_java_source_files): Added
7413 gnu/classpath/ServiceFactory.java and
7414 gnu/classpath/ServiceProviderLoadingAction.java.
7415 (javax_source_files): Added
7416 javax/imageio/ImageReader.java,
7417 javax/imageio/ImageTranscoder.java,
7418 javax/imageio/ImageWriter.java,
7419 javax/imageio/spi/IIOServiceProvider.java,
7420 javax/imageio/spi/ImageInputStreamSpi.java,
7421 javax/imageio/spi/ImageOutputStreamSpi.java,
7422 javax/imageio/spi/ImageReaderWriterSpi.java,
7423 javax/imageio/spi/ImageTranscoderSpi.java,
7424 javax/imageio/spi/RegisterableService.java,
7425 javax/imageio/spi/ServiceRegistry.java,
7426 javax/imageio/stream/IIOByteBuffer.java,
7427 javax/imageio/stream/ImageInputStream.java and
7428 javax/imageio/stream/ImageOutputStream.java.
7429 * Makefile.in: Regenerated.
7430
7431 2004-04-21 Michael Koch <konqueror@gmx.de>
7432
7433 * java/util/Properties.java
7434 (load): Fix wrongly merged fix.
7435
7436 2004-04-21 Mark Wielaard <mark@klomp.org>
7437
7438 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
7439 malloc and free buf.
7440
7441 2004-04-21 Dalibor Topic <robilad@kaffe.org>
7442
7443 * javax/naming/AuthenticationException.java,
7444 javax/naming/AuthenticationNotSupportedException.java,
7445 javax/naming/CannotProceedException.java,
7446 javax/naming/CommunicationException.java,
7447 javax/naming/CompoundName.java,
7448 javax/naming/ConfigurationException.java,
7449 javax/naming/ContextNotEmptyException.java,
7450 javax/naming/InitialContext.java,
7451 javax/naming/InsufficientResourcesException.java,
7452 javax/naming/InterruptedNamingException.java,
7453 javax/naming/LimitExceededException.java,
7454 javax/naming/LinkException.java,
7455 javax/naming/LinkLoopException.java,
7456 javax/naming/LinkRef.java,
7457 javax/naming/MalformedLinkException.java,
7458 javax/naming/Name.java,
7459 javax/naming/NameAlreadyBoundException.java,
7460 javax/naming/NameNotFoundException.java,
7461 javax/naming/NamingSecurityException.java,
7462 javax/naming/NoInitialContextException.java,
7463 javax/naming/NoPermissionException.java,
7464 javax/naming/NotContextException.java,
7465 javax/naming/PartialResultException.java,
7466 javax/naming/ReferralException.java,
7467 javax/naming/ServiceUnavailableException.java,
7468 javax/naming/SizeLimitExceededException.java,
7469 javax/naming/TimeLimitExceededException.java,
7470 javax/naming/directory/Attribute.java,
7471 javax/naming/directory/Attributes.java,
7472 javax/naming/directory/SearchResult.java,
7473 javax/naming/event/NamingExceptionEvent.java,
7474 javax/naming/spi/ResolveResult.java:
7475 Cleaned up imports.
7476
7477 2004-04-21 Mark Wielaard <mark@klomp.org>
7478
7479 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
7480 Changed C++ comments into C comments. Removed commented out code.
7481 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7482 Likewise.
7483 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
7484 Likewise.
7485 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
7486 Likewise.
7487 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
7488 Likewise.
7489 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
7490 Likewise.
7491 * native/jni/gtk-peer/gthread-jni.c:
7492 Likewise.
7493
7494 2004-04-21 Mark Wielaard <mark@klomp.org>
7495
7496 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
7497 static fields defined in interface.
7498 * javax/awt/JDialog.java: Likewise.
7499 (JDialog): Make constructors public.
7500 (getDefaultCloseOperation): Make public.
7501 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
7502 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
7503 * javax/swing/JViewport.java (JViewport): Make constructor public.
7504
7505 2004-04-21 Michael Koch <konqueror@gmx.de>
7506
7507 * java/util/Map.java
7508 (Entry): Removed redundant "static" modifier.
7509 * java/text/AttributedCharacterIterator.java:
7510 Updated copyright year.
7511
7512 2004-04-20 Michael Koch <konqueror@gmx.de>
7513
7514 * javax/naming/directory/SearchControls.java:
7515 Don't explicitely extend java.lang.Object.
7516 * javax/naming/spi/DirStateFactory.java:
7517 Merged copyright year with GNU classpath.
7518
7519 2004-04-20 Michael Koch <konqueror@gmx.de>
7520
7521 * java/nio/channels/Channels.java:
7522 Merged coding style with GNU classpath.
7523
7524 2004-04-20 Michael Koch <konqueror@gmx.de>
7525
7526 * java/net/ServerSocket.java
7527 Merged coding style from GNU classpath.
7528
7529 2004-04-20 Michael Koch <konqueror@gmx.de>
7530
7531 * java/io/BufferedWriter.java:
7532 Reordered variables to be at top of the class.
7533 (localFlush): Removed redundant final keyword.
7534
7535 2004-04-20 Ingo Proetel <proetel@aicas.com>
7536
7537 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
7538
7539 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7540
7541 * java/text/DecimalFormat.java (scanFix): Removed suffix check
7542 for percent and permill check.
7543
7544 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7545
7546 * java/text/FieldPosition.java
7547 (FieldPosition) Constructor now behaves as it should according
7548 to the java documentation.
7549
7550 2004-04-20 Mark Wielaard <mark@klomp.org>
7551
7552 * java/util/Properties.java: Use the word umlaut, not &auml; in api
7553 documentation.
7554
7555 2004-04-20 Michael Koch <konqueror@gmx.de>
7556
7557 * java/nio/Buffer.java,
7558 java/nio/channels/AlreadyConnectedException.java,
7559 java/nio/channels/AsynchronousCloseException.java,
7560 java/nio/channels/ByteChannel.java,
7561 java/nio/channels/CancelledKeyException.java,
7562 java/nio/channels/Channel.java,
7563 java/nio/channels/Channels.java,
7564 java/nio/channels/ClosedByInterruptException.java,
7565 java/nio/channels/ClosedChannelException.java,
7566 java/nio/channels/ClosedSelectorException.java,
7567 java/nio/channels/ConnectionPendingException.java,
7568 java/nio/channels/DatagramChannel.java,
7569 java/nio/channels/FileChannel.java,
7570 java/nio/channels/FileLock.java,
7571 java/nio/channels/FileLockInterruptionException.java,
7572 java/nio/channels/GatheringByteChannel.java,
7573 java/nio/channels/IllegalBlockingModeException.java,
7574 java/nio/channels/IllegalSelectorException.java,
7575 java/nio/channels/InterruptibleChannel.java,
7576 java/nio/channels/NoConnectionPendingException.java,
7577 java/nio/channels/NonReadableChannelException.java,
7578 java/nio/channels/NonWritableChannelException.java,
7579 java/nio/channels/NotYetBoundException.java,
7580 java/nio/channels/NotYetConnectedException.java,
7581 java/nio/channels/OverlappingFileLockException.java,
7582 java/nio/channels/Pipe.java,
7583 java/nio/channels/ReadableByteChannel.java,
7584 java/nio/channels/ScatteringByteChannel.java,
7585 java/nio/channels/SelectableChannel.java,
7586 java/nio/channels/SelectionKey.java,
7587 java/nio/channels/Selector.java,
7588 java/nio/channels/ServerSocketChannel.java,
7589 java/nio/channels/SocketChannel.java,
7590 java/nio/channels/UnresolvedAddressException.java,
7591 java/nio/channels/UnsupportedAddressTypeException.java,
7592 java/nio/channels/WritableByteChannel.java,
7593 java/nio/channels/spi/AbstractInterruptibleChannel.java,
7594 java/nio/channels/spi/AbstractSelectableChannel.java,
7595 java/nio/channels/spi/AbstractSelectionKey.java,
7596 java/nio/channels/spi/AbstractSelector.java,
7597 java/nio/channels/spi/SelectorProvider.java,
7598 java/nio/charset/spi/CharsetProvider.java:
7599 Fixed javadocs and jalopied all over java.nio.
7600
7601 2004-04-20 Michael Koch <konqueror@gmx.de>
7602
7603 * java/nio/ByteBufferImpl.java,
7604 java/nio/CharBufferImpl.java,
7605 java/nio/DirectByteBufferImpl.java,
7606 java/nio/DoubleBufferImpl.java,
7607 java/nio/DoubleViewBufferImpl.java,
7608 java/nio/FloatBufferImpl.java,
7609 java/nio/FloatViewBufferImpl.java,
7610 java/nio/IntBufferImpl.java,
7611 java/nio/IntViewBufferImpl.java,
7612 java/nio/LongBufferImpl.java,
7613 java/nio/LongViewBufferImpl.java,
7614 java/nio/MappedByteBufferImpl.java,
7615 java/nio/ShortBufferImpl.java,
7616 java/nio/ShortViewBufferImpl.java:
7617 Made sure all classes are final and removed final keyword from all
7618 methods.
7619
7620 2004-04-20 Michael Koch <konqueror@gmx.de>
7621
7622 * java/rmi/MarshalledObject.java,
7623 java/rmi/Naming.java,
7624 java/rmi/RemoteException.java,
7625 java/rmi/activation/ActivationException.java,
7626 java/rmi/server/ServerCloneException.java,
7627 java/security/AccessController.java,
7628 java/security/AlgorithmParameterGenerator.java,
7629 java/security/AlgorithmParameters.java,
7630 java/security/CodeSource.java,
7631 java/security/Identity.java,
7632 java/security/IdentityScope.java,
7633 java/security/KeyPairGenerator.java,
7634 java/security/KeyStore.java,
7635 java/security/Security.java,
7636 java/security/Signature.java,
7637 java/security/SignatureSpi.java,
7638 java/security/SignedObject.java,
7639 java/security/spec/DSAParameterSpec.java,
7640 java/security/spec/DSAPrivateKeySpec.java,
7641 java/security/spec/DSAPublicKeySpec.java,
7642 java/sql/Array.java,
7643 java/sql/DatabaseMetaData.java,
7644 java/sql/ResultSet.java,
7645 java/text/ChoiceFormat.java,
7646 java/text/CollationElementIterator.java,
7647 java/text/CollationKey.java,
7648 java/text/Collator.java,
7649 java/text/DateFormat.java,
7650 java/text/DateFormatSymbols.java,
7651 java/text/DecimalFormatSymbols.java,
7652 java/text/Format.java,
7653 java/text/ParsePosition.java,
7654 java/text/RuleBasedCollator.java,
7655 java/text/SimpleDateFormat.java,
7656 java/text/StringCharacterIterator.java,
7657 java/util/Collections.java,
7658 java/util/PropertyResourceBundle.java,
7659 java/util/ResourceBundle.java,
7660 java/util/StringTokenizer.java,
7661 java/util/jar/Attributes.java,
7662 java/util/logging/ConsoleHandler.java,
7663 java/util/logging/LogManager.java,
7664 java/util/logging/MemoryHandler.java,
7665 java/util/logging/SocketHandler.java,
7666 javax/naming/NamingException.java:
7667 Fixed javadoc, coding style and argument names all over.
7668
7669 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7670
7671 * java/io/FileDescriptor.java: (FileDescriptor) Added public
7672 constructor. (valid) Added null check.
7673
7674 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7675
7676 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
7677 * java/io/FileOutputStream.java
7678 (FileOutputStream) Reorganized constructors. Constructors now
7679 check whether the given path is directory.
7680
7681 2004-04-20 Michael Koch <konqueror@gmx.de>
7682
7683 * java/net/Authenticator.java,
7684 java/net/BindException.java,
7685 java/net/ConnectException.java,
7686 java/net/ContentHandler.java,
7687 java/net/ContentHandlerFactory.java,
7688 java/net/DatagramPacket.java,
7689 java/net/DatagramSocket.java,
7690 java/net/DatagramSocketImpl.java,
7691 java/net/DatagramSocketImplFactory.java,
7692 java/net/FileNameMap.java,
7693 java/net/HttpURLConnection.java,
7694 java/net/Inet4Address.java,
7695 java/net/Inet6Address.java,
7696 java/net/InetAddress.java,
7697 java/net/InetSocketAddress.java,
7698 java/net/JarURLConnection.java,
7699 java/net/MalformedURLException.java,
7700 java/net/MulticastSocket.java,
7701 java/net/NetPermission.java,
7702 java/net/NetworkInterface.java,
7703 java/net/NoRouteToHostException.java,
7704 java/net/PasswordAuthentication.java,
7705 java/net/PortUnreachableException.java,
7706 java/net/ProtocolException.java,
7707 java/net/ServerSocket.java,
7708 java/net/Socket.java,
7709 java/net/SocketAddress.java,
7710 java/net/SocketException.java,
7711 java/net/SocketImpl.java,
7712 java/net/SocketImplFactory.java,
7713 java/net/SocketOptions.java,
7714 java/net/SocketPermission.java,
7715 java/net/SocketTimeoutException.java,
7716 java/net/URI.java,
7717 java/net/URISyntaxException.java,
7718 java/net/URL.java,
7719 java/net/URLClassLoader.java,
7720 java/net/URLConnection.java,
7721 java/net/URLDecoder.java,
7722 java/net/URLEncoder.java,
7723 java/net/URLStreamHandler.java,
7724 java/net/URLStreamHandlerFactory.java,
7725 java/net/UnknownHostException.java,
7726 java/net/UnknownServiceException.java:
7727 Fixed javadocs, coding style and argument names all over.
7728
7729 2004-04-20 Michael Koch <konqueror@gmx.de>
7730
7731 * java/lang/Byte.java,
7732 java/lang/CharSequence.java,
7733 java/lang/ClassLoader.java,
7734 java/lang/Compiler.java,
7735 java/lang/Double.java,
7736 java/lang/Float.java,
7737 java/lang/Integer.java,
7738 java/lang/Long.java,
7739 java/lang/Math.java,
7740 java/lang/Number.java,
7741 java/lang/Package.java,
7742 java/lang/Runtime.java,
7743 java/lang/RuntimePermission.java,
7744 java/lang/SecurityManager.java,
7745 java/lang/Short.java,
7746 java/lang/StringBuffer.java,
7747 java/lang/System.java,
7748 java/lang/ThreadGroup.java,
7749 java/lang/Throwable.java,
7750 java/lang/reflect/InvocationHandler.java,
7751 java/lang/reflect/Proxy.java:
7752 Fixed javadocs, coding style and argument names all over.
7753
7754 2004-04-20 Michael Koch <konqueror@gmx.de>
7755
7756 * java/io/BufferedWriter.java,
7757 java/io/ByteArrayInputStream.java,
7758 java/io/CharArrayWriter.java,
7759 java/io/DataInput.java,
7760 java/io/DataInputStream.java,
7761 java/io/File.java,
7762 java/io/FilterInputStream.java,
7763 java/io/InputStream.java,
7764 java/io/InputStreamReader.java,
7765 java/io/ObjectInputStream.java,
7766 java/io/ObjectStreamClass.java,
7767 java/io/PipedInputStream.java,
7768 java/io/PipedReader.java,
7769 java/io/PushbackInputStream.java,
7770 java/io/PushbackReader.java,
7771 java/io/RandomAccessFile.java,
7772 java/io/SerializablePermission.java,
7773 java/io/StreamTokenizer.java,
7774 java/io/StringWriter.java,
7775 java/io/WriteAbortedException.java,
7776 java/io/Writer.java:
7777 Fixed javadocs all over, rename arguments to match javadocs,
7778 fixed coding style.
7779
7780 2004-04-20 Ingo Proetel <proetel@aicas.com>
7781
7782 * java/awt/FontMetrics.java:
7783 (charsWidth): fixed accumulation of total_width
7784 (getWidth): simple default implementation
7785 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
7786 in Rectangle constructor.
7787 * java/awt/image/Raster.java (toString): Added method.
7788 * java/awt/image/SampleModel.java (<init>): Added error cause
7789 information to thrown exception.
7790 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
7791 New method.
7792 (setDataElements): New method.
7793 (setPixels): New method.
7794 (toString): New method.
7795
7796 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7797
7798 * java/awt/image/ComponentColorModel.java
7799 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
7800 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
7801 Mauve tests on this method. Improved documentation.
7802
7803 2004-04-20 Michael Koch <konqueror@gmx.de>
7804
7805 * javax/swing/JLayeredPane.java,
7806 javax/swing/plaf/BorderUIResource.java,
7807 javax/swing/plaf/ComponentUI.java,
7808 javax/swing/undo/CompoundEdit.java,
7809 javax/swing/undo/StateEdit.java:
7810 Fixed HTML tags in javadocs all over.
7811
7812 2004-04-20 Michael Koch <konqueror@gmx.de>
7813
7814 * javax/print/attribute/EnumSyntax.java
7815 (getOffset): Made protected.
7816 * javax/print/attribute/HashAttributeSet.java
7817 (HashAttributeSet): Likewise.
7818 * javax/print/attribute/ResolutionSyntax.java
7819 (getFeedResolution): Fixed typo in exception name.
7820 (getCrossFeedResolution): Likewise.
7821 * javax/print/attribute/SetOfIntegerSyntax.java
7822 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
7823 * javax/print/attribute/TextSyntax.java
7824 (TextSyntax): Handle locale correctly.
7825 (hashCode): Calc better hashcode value.
7826 (equals): Fixed @return tag.
7827 (toString): New method.
7828
7829 2004-04-20 Michael Koch <konqueror@gmx.de>
7830
7831 * gnu/java/nio/FileLockImpl.java
7832 (static): Removed, not needed anymore.
7833 * gnu/java/nio/channels/FileChannelImpl.java
7834 (FileChannelImpl): Made final.
7835 (mode): Made private.
7836 (READ, WRITE, APPEND): Made public.
7837 (EXCL, SYNC, DSYNC): Likewise.
7838 (static): Load native JNI library, when needed.
7839 (length): Unused, removed.
7840 (available): Made public.
7841 (implPosition): Throws IOException.
7842 (seek): Likewise.
7843 (implTruncate): Likewise.
7844 (unlock): Likewise.
7845 (lock): Likewise.
7846
7847 2004-04-20 Michael Koch <konqueror@gmx.de>
7848
7849 * java/awt/AWTPermission.java,
7850 java/awt/Component.java,
7851 java/awt/ComponentOrientation.java,,
7852 java/awt/Dialog.java,
7853 java/awt/FontMetrics.java,
7854 java/awt/Graphics.java,
7855 java/awt/datatransfer/DataFlavor.java,
7856 java/beans/Introspector.java,
7857 java/beans/PropertyEditor.java,
7858 java/beans/PropertyEditorManager.java,
7859 java/beans/beancontext/BeanContextServiceProvider.java:
7860 Fixed HTML tags in javadocs all over.
7861
7862 2004-04-20 Mark Wielaard <mark@klomp.org>
7863
7864 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
7865 MissingResourceException is thrown.
7866 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
7867 null when a MissingResourceException is thrown. Should never happen.
7868
7869 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7870
7871 * java/awt/image/DataBufferShort.java,
7872 java/awt/image/DataBufferFloat.java,
7873 java/awt/image/DataBufferDouble.java,
7874 java/awt/image/PixelInterleavedSampleModel.java: New files.
7875 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
7876 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
7877
7878 2004-04-20 Michael Koch <konqueror@gmx.de>
7879
7880 * Makefile.am (java_source_files): Added
7881 java/awt/image/DataBufferDouble.java,
7882 java/awt/image/DataBufferFloat.java,
7883 java/awt/image/DataBufferShort.java and
7884 java/awt/image/PixelInterleavedSampleModel.java.
7885 * Makefile.in: Regenerated.
7886
7887 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
7888
7889 * gcj/cni.h (JvAllocObject): Remove these obsolete,
7890 undocumented CNI calls.
7891 * include/java-interp.h (_Jv_InterpClass): No longer
7892 extends java.lang.Class.
7893 * java/lang/Class.h (Class): Add new field `aux_info'.
7894 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
7895 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
7896 Use Class->aux_info instead.
7897 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
7898 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
7899 Use Class->aux_info instead.
7900 * java/io/natObjectInputStream.cc (allocateObject): Use
7901 _Jv_AllocObject.
7902 * java/lang/natClass.cc (newInstance): Likewise.
7903 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
7904 * java/lang/natObject.cc (clone): Likewise.
7905 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
7906 * java/lang/natVMClassLoader.cc (defineClass): Don't use
7907 JvAllocObject. Allocate klass->aux_info here for interpreted
7908 class.
7909
7910 2004-04-17 Mark Wielaard <mark@klomp.org>
7911
7912 * javax/swing/JToggleButton.java (ToggleButtonModel):
7913 Make public static inner class.
7914 * javax/swing/JTabbedPane.java (setComponentAt):
7915 Call Page.setComponent().
7916 (SCROLL_TAB_LAYOUT): Make public, value is 1.
7917 (WRAP_TAB_LAYOUT): Make public, value is 0.
7918 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
7919 Make private static inner class.
7920
7921 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
7922
7923 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
7924 arguments to match new signature. Remove FIXME comments.
7925
7926 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
7927
7928 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
7929 Remove method.
7930 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
7931 unused code.
7932
7933 2004-04-02 Olga Rodimina <rodimina@redhat.com>
7934
7935 * Makefile.am: Added new file.
7936 * Makefile.in: Regenerate.
7937 * javax/swing/ImageIcon.java:
7938 (ImageIcon(file)): set description of the icon
7939 to the file name
7940 * javax/swing/JCheckBoxMenuItem.java:
7941 Mostly Implemented. Work in progress.
7942 * javax/swing/JRadioButtonMenuItem.java:
7943 Reimplement constructors to use JToggleButtonModel.
7944 * javax/swing/plaf/basic/BasicIconFactory.java:
7945 (getCheckBoxMenuItemIcon): return check box
7946 icon.
7947 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7948 paint menu item selected only when it is armed and
7949 pressed.
7950
7951 2004-04-02 David Jee <djee@redhat.com>
7952
7953 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
7954 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
7955 * java/awt/Component.java
7956 (add): Set the parent of the popup as this component.
7957 * java/awt/PopupMenu.java
7958 (addNotify): Create popup menu when peer is null.
7959 (show): Call addNotify() if peer is null.
7960 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
7961 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
7962 argument for gtk_menu_popup() as zero. This causes the popup menu to
7963 respond to any mouse button.
7964
7965 2004-03-31 Olga Rodimina <rodimina@redhat.com>
7966
7967 * Makefile.am: Added new file.
7968 * Makefile.in: Regenerate.
7969 * javax/swing/JRadioButtonMenuItem.java:
7970 Implemented.
7971 * javax/swing/plaf/basic/BasicIconFactory.java:
7972 (getRadioButtonMenuItemIcon): Return
7973 radio button icon.
7974 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7975 (getPreferredSize): Add size of checkIcon if it
7976 exists.
7977 (installDefaults): Don't initialize checkIcon.
7978 It's value will be set in subclasses.
7979 (uninstallDefaults): remove uninstallation of
7980 checkIcon.
7981 (paint): Moved code to paintMenuItem().
7982 (paintMenuItem): Implemented.
7983 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
7984 UI delegate for JRadioButtonMenuItem.
7985
7986 2004-03-29 Olga Rodimina <rodimina@redhat.com>
7987
7988 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7989 Corrected position of the accelerator.
7990
7991 2004-03-29 Olga Rodimina <rodimina@redhat.com>
7992
7993 * Makefile.am: Added new file.
7994 * Makefile.in: Regenerate.
7995 * javax/swing/JMenuItem.java: Partly
7996 implemented. Work in progress
7997 * javax/swing/plaf/basic/BasicLookAndFeel.java:
7998 Changed default value of acceleratorDelimiter.
7999 * javax/swing/plaf/basic/BasicMenuItemUI.java:
8000 New class. Partly implemented.
8001
8002 2004-03-26 Mark Wielaard <mark@klomp.org>
8003
8004 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8005 (item_activate): Declare label before use.
8006 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8007 (gtkSetFont): Removed unused variable label.
8008 (addExposeFilter): Declare variables before use.
8009 (removeExposeFilter): Likewise.
8010 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8011 (ok_clicked): Declare str_fileName before use.
8012
8013 2004-03-26 David Jee <djee@redhat.com>
8014
8015 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
8016 (addSeparator): Remove.
8017 * java/awt/Menu.java
8018 (separator): Remove static final MenuItem field.
8019 (separatorLabel): New static final String field.
8020 (addSeparator): Do not use peer method; use add(MenuItem) instead.
8021 Use separatorLabel to denote that it is a separator.
8022 (insertSeparator): Create a new MenuItem with separatorLabel, instead
8023 of reusing the static separator instance, because a MenuItem instance
8024 can't be added more than once without being cloned.
8025 * java/awt/peer/MenuPeer.java
8026 (addSeparator): Remove from interface.
8027
8028 2004-03-26 David Jee <djee@redhat.com>
8029
8030 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
8031 (connectSignals): New native method declaration.
8032 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
8033 * java/awt/MenuItem.java
8034 (getActionCommand): Return the label if the action command is not set.
8035 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
8036 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
8037 gtk_menu_shell_append().
8038 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
8039 (item_activate): Fix argument type.
8040 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
8041 signal here.
8042 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
8043 method.
8044 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
8045 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
8046 given. Add the menu widget's top-level GtkWindow to the global window
8047 group, so it can grab the pointer.
8048 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
8049 gtk_menu_shell_append().
8050
8051 2004-03-23 Graydon Hoare <graydon@redhat.com>
8052
8053 * java/text/AttributedString.java
8054 (addAttribute): Fix off-by-one.
8055 (getIterator): Likewise.
8056 * java/text/AttributedStringIterator.java
8057 (getRunLimit): Correct logic.
8058 (getRunStart): Likewise.
8059 (getAttribute): Fix inequality.
8060 (getAttributes): Likewise.
8061 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
8062
8063 2004-03-23 Kim Ho <kho@redhat.com>
8064
8065 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
8066 (calculateSizes): Return real width and height.
8067
8068 2004-03-23 Kim Ho <kho@redhat.com>
8069
8070 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
8071 (calculateTabRects): Set the selectedRun before
8072 trying to rotate tabs.
8073
8074 2004-03-23 Kim Ho <kho@redhat.com>
8075
8076 * Makefile.am: New file
8077 * Makefile.in: Regenerate
8078 * java/awt/Graphics.java: (drawRect):
8079 Draw to the correct point.
8080 * javax/swing/DefaultSingleSelectionModel.java
8081 (isSelected): Return true if the selected index
8082 is not -1.
8083 * javax/swing/JLabel.java: Do not change mnemonic
8084 index if text is null.
8085 * javax/swing/JProgressBar.java: Use JComponent's
8086 EventListenerList.
8087 * javax/swing/JScrollBar.java: Ditto.
8088 * javax/swing/JSlider.java: Ditto.
8089 * javax/swing/JTabbedPane.java: Reimplement.
8090 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8091 Add defaults for TabbedPane.
8092 * javax/swing/plaf/basic/BasicArrowButton.java:
8093 Implement
8094 * javax/swing/plaf/basic/BasicProgressBarUI.java:
8095 (paintDeterminate): Don't paint String if it's
8096 empty.
8097 (paintIndeterminate): ditto.
8098 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
8099 Reimplement.
8100
8101 2004-03-19 Michael Koch <konqueror@gmx.de>
8102
8103 * java/awt/image/AffineTransformOp.java
8104 (AffineTransformOp): Made public.
8105 * javax/swing/JComponent.java
8106 (listenerList): Made protected.
8107 (accessibleContext): Likewise.
8108 * javax/swing/JList.java
8109 (valueChanged): Dont use internal fields of ListSelectionEvent.
8110 * javax/swing/JViewport.java
8111 (getView): Dont use internal fields of Component.
8112 (addImpl): Likewise.
8113 * javax/swing/Timer.java
8114 (isRunning): Made public.
8115 (start): Likewise.
8116 (stop): Likewise.
8117 * javax/swing/UIDefaults.java
8118 (getInt): Made public.
8119 * javax/swing/plaf/basic/BasicListUI.java
8120 (mousePressed): Dont use internal fields of MouseEvent.
8121 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
8122 * javax/swing/plaf/basic/BasicScrollBarUI.java
8123 (arrowIcon): Made static.
8124 * javax/swing/plaf/basic/BasicViewportUI.java
8125 (stateChanged): Dont use internal field on ChangeEvent.
8126 * javax/swing/text/JTextComponent.java
8127 (getUI): Call UIManager.getUI().
8128 (updateUI): Use getUI().
8129
8130 2004-03-19 Graydon Hoare <graydon@redhat.com>
8131
8132 * javax/swing/JComponent.java: Turn off double buffer by default.
8133 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
8134 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8135 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
8136 Use cairo to copy areas.
8137 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
8138 Initialize and set clip region.
8139
8140 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
8141
8142 * java/applet/Applet.java (preferredSize): Override deprecated
8143 variant of getPreferredSize.
8144 (minimumSize): Override deprecated variant of getMinimumSize.
8145
8146 2004-03-15 Olga Rodimina <rodimina@redhat.com>
8147
8148 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8149 (drawImage(img,xform,bgcolor,obs)): New Method.
8150 Helper function that every drawImage method will
8151 use.
8152 (drawRaster): Added new parameter, bgcolor. All
8153 transparent pixels are changed to bgcolor before
8154 image is drawn.
8155 (drawRenderedImage): Fixed to use changed drawRaster().
8156 (drawImage(image,xform,obs): Fixed to use new helper function
8157 (drawImage(image,op,x,y)): Ditto.
8158 (drawImage (img,x,y,observer)): Ditto.
8159 ((PainterThread) bgcolor): New Field.
8160 ((PainterThread) (setPixels)): Changed all transparent pixels
8161 to bgcolor.
8162 (drawImage(img,x,y,width,height,bgcolor,observer)):
8163 Fixed FIXME - all the transparent pixels are
8164 changed to the specified bgcolor.
8165 (drawImage(img, x, y, width, height, observer): Changed to
8166 use function above.
8167 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
8168 Fixed FIXME- changed all transparent pixels to bgcolor.
8169 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
8170 Changed to use function above.
8171
8172 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
8173
8174 * java/applet/Applet.java (dimensions): New field.
8175 (getDimensions): New method.
8176 (getPreferredSize): Call getDimensions.
8177 (getMinimumSize): Likewise.
8178
8179 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8180
8181 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
8182 * jni/classpath/jnilink.c: Likewise.
8183
8184 * java/applet/Applet.java (getPreferredSize): New method.
8185 (getMinimumSize): New method.
8186
8187 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
8188
8189 * prims.cc (_Jv_AllocObject): Remove `size' argument.
8190 (_Jv_AllocObjectNoFinalizer): Likewise.
8191 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
8192 (_Jv_AllocPtrFreeObject): Likewise.
8193 (_Jv_AllocString): Moved from natString.cc. Call collector interface
8194 directly even in the JVMPI case.
8195 * gcj/cni.h (JvAllocObject): Remove `size' argument from
8196 _Jv_AllocObject calls.
8197 * gcj/javaprims.h: Update prototypes.
8198 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
8199 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
8200 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
8201
8202 2004-04-14 Andrew Haley <aph@redhat.com>
8203 Bryce McKinlay <mckinlay@redhat.com>
8204
8205 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
8206 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
8207 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
8208
8209 * testsuite/libjava.lang/InvokeInterface.java: New file.
8210 * testsuite/libjava.lang/InvokeInterface.out: New file.
8211
8212 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
8213
8214 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
8215 modified lookup().
8216 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
8217 StackTraceElement directly.
8218 (newElement): New native helper method to create StackTraceElement
8219 bypassing Java access control.
8220 (createStackTraceElement): Use newElement() instead of directly
8221 calling StackTraceElement's constructor.
8222 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
8223
8224 2004-04-01 Michael Koch <konqueror@gmx.de>
8225
8226 * java/lang/SecurityManager.java
8227 (checkAwtEventQueueAccess): Implemented.
8228
8229 2004-04-01 Gary Benson <gbenson@redhat.com>
8230
8231 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
8232 (_Jv_SearchMethodInClass): Likewise.
8233
8234 2004-03-26 Peter Moon <peterm@miraculum.com>
8235
8236 * java/text/NumberFormat.java: Fix spelling of setCurrency
8237 method.
8238
8239 2004-03-21 Anthony Green <green@redhat.com>
8240
8241 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
8242 recursion when searching for the system ClassLoader.
8243
8244 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
8245
8246 * java/net/ServerSocket.java
8247 (accept): Close the socket when error occured.
8248
8249 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
8250
8251 * java/net/URI.java (parseURI): Added unquoting.
8252 (unquote): New method.
8253 (quoteAuthority): Implemented.
8254 (quote(String,String)): New method.
8255 (quotePath): Implemented.
8256 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
8257 (getSchemeSpecificPart): Removed FIXME comment.
8258 (getRawAuthority): Return new rawAuthority field.
8259 (getAuthority): Removed FIXME comment.
8260 (getRawUserInfo): Return new rawUserInfo field.
8261 (getUserInfo): Removed FIXME comment.
8262 (getRawPath): Return new rawPath field.
8263 (getPath): Removed FIXME comment.
8264 (getRawQuery): Return new rawQuery field.
8265 (getQuery): Removed FIXME comment.
8266 (getRawFragment): Return new rawFragment field.
8267 (getFragment): Removed FIXME comment.
8268
8269 2004-03-20 Michael Koch <konqueror@gmx.de>
8270
8271 * java/net/URLConnection.java: Merged copyright year with classpath.
8272
8273 2004-03-20 Norbert Frese <postfach@nfrese.net>
8274
8275 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
8276 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
8277 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
8278 rmi-message.
8279 (getObjectInputStream): Return object reference, throw IOException if null.
8280 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
8281 (getObjectOutputStream): Return object reference, throw IOException if null.
8282 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
8283 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
8284 (UnicastConnectionManager): Throw RemoteException if port is not available.
8285 (getInstance): Throw RemoteException.
8286 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
8287 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
8288 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8289 Collect Exceptions which are returned by a rmi-call and fix void returns.
8290 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
8291 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
8292 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
8293 (dispatch): Answer ping messages which are sent by other java implementions.
8294 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
8295 for every rmi-message and fix void return problems.
8296 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
8297 (UnicastServerRef): Throw RemoteException.
8298 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
8299 In some situations it is necessary to export a subclass of the class which has the _Stub.
8300 For instance when the class with has the _Stub is abstract.
8301 (findStubSkelClass): New method which looks for the class which has the _Stub.
8302 (getClientHost): Implementated.
8303 * gcc/libjava/java/rmi/server/RemoteServer.java
8304 (getClientHost): Implementated.
8305 * gcc/libjava/Makefile.am (rmi_java_source_files):
8306 Added gnu/java/rmi/server/RMIIncomingThread.java.
8307 * Makefile.in: Regenerated.
8308
8309 2004-03-20 Michael Koch <konqueror@gmx.de>
8310
8311 * java/net/InetAddress.java
8312 (getLocalHostname): Added javadoc.
8313
8314 2004-03-19 Per Bothner <per@bothner.com>
8315
8316 * configure.in: FILE variable overrides FLATFORM when linking
8317 natFileChannelXXX.cc.
8318
8319 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
8320 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
8321
8322 2004-03-19 Per Bothner <per@bothner.com>
8323
8324 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
8325 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
8326 * Makefile.am: Update accordingly.
8327 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
8328 as aliases for UnicodeLittle and UnicodeBig.
8329
8330 2004-03-20 Mark Wielaard <mark@klomp.org>
8331
8332 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8333 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
8334 Don't access ws when it is null.
8335 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
8336 Likewise.
8337
8338 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
8339
8340 * java/lang/ThreadGroup.java (list): Changed print to println.
8341
8342 2004-03-19 Mark Wielaard <mark@klomp.org>
8343
8344 * java/io/BufferedReader.java: Use &lt;=, not &lt;&eq; to make gjdoc
8345 happy.
8346
8347 2004-02-10 Randolph Chung <tausq@debian.org>
8348
8349 * configure.in: Build java for hppa target.
8350 * configure: Regenerate.
8351 * libjava/configure.host (hppa-*): Add target.
8352 * libjava/sysdeps/pa/lock.h: New file.
8353
8354 2004-03-19 Mark Wielaard <mark@klomp.org>
8355
8356 Reported by Stephen Crawley
8357 * java/io/FilePermission.java (implies): Use String.length() -1 to
8358 access last char of String.
8359
8360 2004-03-19 Michael Koch <konqueror@gmx.de>
8361
8362 * java/awt/image/AffineTransformOp.java
8363 (AffineTransformOp): Made public.
8364 * javax/swing/JComponent.java
8365 (listenerList): Made protected.
8366 (accessibleContext): Likewise.
8367 * javax/swing/JList.java
8368 (valueChanged): Dont use internal fields of ListSelectionEvent.
8369 * javax/swing/JViewport.java
8370 (getView): Dont use internal fields of Component.
8371 (addImpl): Likewise.
8372 * javax/swing/Timer.java
8373 (isRunning): Made public.
8374 (start): Likewise.
8375 (stop): Likewise.
8376 * javax/swing/UIDefaults.java
8377 (getInt): Made public.
8378 * javax/swing/plaf/basic/BasicListUI.java
8379 (mousePressed): Dont use internal fields of MouseEvent.
8380 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
8381 * javax/swing/plaf/basic/BasicScrollBarUI.java
8382 (arrowIcon): Made static.
8383 * javax/swing/plaf/basic/BasicViewportUI.java
8384 (stateChanged): Dont use internal field on ChangeEvent.
8385 * javax/swing/text/JTextComponent.java
8386 (getUI): Call UIManager.getUI().
8387 (updateUI): Use getUI().
8388
8389 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8390
8391 * verify.cc: Undef PC.
8392
8393 2004-03-18 Michael Koch <konqueror@gmx.de>
8394
8395 * java/nio/channels/spi/AbstractSelectableChannel.java
8396 (keys): Initialize at declaration.
8397 (locate): keys cant be null.
8398 (add): Removed.
8399 (addSelectionKey): New method.
8400 (removeSelectionKey): New method.
8401 * java/nio/channels/spi/AbstractSelectionKey.java
8402 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
8403 * java/nio/channels/spi/AbstractSelector.java
8404 (provider): Javadoc added.
8405 (cancelledKeys): Javadoc added.
8406 (cancelKey): Javadoc added, add key to cancelledKeys.
8407 (deregister): Implemented.
8408
8409 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8410
8411 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
8412 MAP_FAILED to void *.
8413
8414 2004-03-12 Graydon Hoare <graydon@redhat.com>
8415
8416 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
8417 * javax/swing/JComponent.java (paint): Use persistent double buffer.
8418 * javax/swing/JList.java (ListListener): Revalidate on changes.
8419 * javax/swing/JScrollPane.java: Reimplement.
8420 * javax/swing/JViewport.java: Reimplement.
8421 * javax/swing/ScrollPaneLayout.java: Reimplement.
8422 * javax/swing/ViewportLayout.java: Tidy up.
8423 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
8424 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
8425 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
8426 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
8427 backing store only.
8428
8429 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
8430
8431 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8432 (window_wm_protocols_filter): New function.
8433 (window_focus_in_cb): Remove function.
8434 (window_focus_out_cb): Likewise.
8435 (window_focus_or_active_state_change_cb): New function.
8436 (create): Add filter that removes WM_TAKE_FOCUS client messages.
8437 (connectSignals): Don't attach handlers to focus-in-event or
8438 focus-out-event signals. Handle notify signal.
8439
8440 2004-03-11 David Jee <djee@redhat.com>
8441
8442 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8443 (gtkSetLabel): New native method declaration.
8444 (setLabel): Use gtkSetLabel.
8445 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8446 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
8447
8448 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
8449
8450 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
8451 black when color argument is null.
8452
8453 2004-03-10 Kim Ho <kho@redhat.com>
8454
8455 * java/awt/Container.java: Remove check
8456 for drag events.
8457
8458 2004-03-10 Kim Ho <kho@redhat.com>
8459
8460 * java/awt/Container.java: (visitChild):
8461 Remove candidate clip. Use the component
8462 clip to intersect.
8463 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8464 (handleEvent): Use the PaintEvent's clip.
8465
8466 2004-03-10 Kim Ho <kho@redhat.com>
8467
8468 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8469 (handleEvent): Don't set the clip for the
8470 Graphics object.
8471
8472 2004-03-09 Graydon Hoare <graydon@redhat.com>
8473
8474 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
8475 Fix double <-> fixed macros, reset font transform.
8476 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
8477 Likewise.
8478
8479 2004-03-09  Kim Ho <kho@redhat.com>
8480
8481 * java/awt/Container.java: (visitChild): Move
8482 the x and y coordinate of the component rectangle
8483 to correct position.
8484 (handleEvent): Forward drag events to the pressed
8485 component.
8486 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8487 Fix comments.
8488 (ArrowButtonListener::mousePressed): Stop the
8489 existing timer.
8490 (mouseDragged): Implement.
8491 (TrackListener::mousePressed): Only react if
8492 the press doesn't occur on the thumb, otherwise
8493 just set the offset.
8494 (TrackListener::mouseReleased): Unset the isAdjusting
8495 value.
8496 (createIncreaseIcon): Switch icon.
8497 (createDecreaseIcon): Switch icon.
8498 (calculatePreferredSize): Use width.
8499 (getThumbBounds): Use the top as the lower value.
8500 (layoutVScrollBar): Switch the button locations.
8501 (paintIncreaseHighlight): Paint correct side of thumb.
8502 (paintDecreaseHighlight): ditto.
8503 (valueForYPosition): Use top as the lower value.
8504 * javax/swing/plaf/basic/BasicSliderUI.java:
8505 Fix comments.
8506 (mouseDragged): Implement.
8507 (mousePressed): Only react when the thumb isn't
8508 pressed, otherwise just set offset.
8509 (mouseReleased): Handle a release of the thumb.
8510 (scrollDueToClickInTrack): Stop the timer first.
8511 * javax/swing/JProgressBar.java:
8512 (setString): Fix change condition.
8513 * javax/swing/JSeparator.java:
8514 Remove println's.
8515
8516 2004-03-08 David Jee <djee@redhat.com>
8517
8518 * java/awt/image/AffineTransformOp.java:
8519 (filter): Use Graphics2D interface instead of directly using the
8520 GdkGraphics2D peer.
8521
8522 2004-03-05 David Jee <djee@redhat.com>
8523
8524 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
8525 (handleEvent): Action events are generated upon MOUSE_RELEASED.
8526 * java/awt/Container.java
8527 (acquireComponentForMouseEvent): Fixed.
8528 (handleEvent): Fixed.
8529 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8530 (state_to_awt_mods_with_button_states): New method.
8531 (pre_event_handler): Fixed mouse event generation.
8532
8533 2004-03-05 Olga Rodimina <rodimina@redhat.com>
8534
8535 gnu/java/awt/peer/gtk/GdkGraphics2D.java
8536 (GdkGraphics2D (BufferedImage)): Initialize
8537 pixmap associated with specified BufferedImage.
8538 (setPaint): Changed implementation of Texture
8539 Paint to use AffineTransformOp.
8540 * java/awt/image/AffineTransformOp.java
8541 (createCompatibleDestRaster): Throw RasterFormatException
8542 if resulting width or height of raster is 0.
8543
8544 2004-03-04 Olga Rodimina <rodimina@redhat.com>
8545
8546 * java/awt/image/AffineTransformOp.java:
8547 Removed unnecessary field interpolationType.
8548 Formatted some of the lines to be consistent with
8549 the GNU style.
8550 (AffineTransformOp): Create new RenderingHints
8551 containing specified interpolation type.
8552 (createCompatibleDestImage): Implemented.
8553 (createCompatibleDestRaster): Implemented.
8554 (filter): Implemented.
8555 (getBounds2D(BufferedImage)): Implemented.
8556 (getBounds2D(Raster)): Implemented.
8557 (getInterpolationType): Get interpolation value from
8558 rendering hints.
8559
8560 2004-03-04 David Jee <djee@redhat.com>
8561
8562 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8563 (setFont): Check if child peers are null.
8564
8565 2004-03-04 Graydon Hoare <graydon@redhat.com>
8566
8567 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
8568 .libs in -L option.
8569 (libjava_arguments): Add new libraries to argument list.
8570
8571 2004-03-02 Olga Rodimina <rodimina@redhat.com>
8572
8573 * Makefile.am: Added java/awt/image/AffineTransformOp.java
8574 * Makefile.in: Re-generated.
8575 * java/awt/image/AffineTransformOp.java: New Class.
8576
8577 2004-03-01 Olga Rodimina <rodimina@redhat.com>
8578
8579 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8580 (setPaint): Interpret correctly TexturePaint's
8581 anchor rectangle.
8582 (drawImage): Fixed scale factors of the affine
8583 transform.
8584
8585 2004-02-27 David Jee <djee@redhat.com>
8586
8587 * gnu/java/awt/peer/gtk/GdkGraphics.java
8588 (GdkGraphics(Component)): Inherit font from component.
8589 (drawString): Use font style.
8590 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8591 (gtkSetFont): New native method declaration.
8592 (setFont): New method.
8593 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8594 (gtkSetFont): New native method declaration.
8595 (setFont): Call new native method gtkSetFont.
8596 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8597 (setFont): For all child components who do not their fonts set,
8598 set their peers' fonts with this container's font.
8599 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
8600 Move all native method declarations to the top for readability.
8601 (gtkSetFont): New native method declaration.
8602 (setFont): New method.
8603 * java/awt/Component.java
8604 (setFont): Invalidate after setting the font.
8605 * java/awt/Container.java
8606 (invalidateTree): New method.
8607 (setFont): Invalidate the container tree after setting the font.
8608 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
8609 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
8610 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8611 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
8612 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8613 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
8614 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
8615 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
8616
8617 2004-02-27 Olga Rodimina <rodimina@redhat.com>
8618
8619 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8620 (updateBufferedImage): New helper function.
8621 Updates BufferedImage in memory if it was changed.
8622 (draw): changed to update BufferedImage in memory after
8623 this drawing operation
8624 (fill): Ditto.
8625 (draw3DRect): Ditto.
8626 (fill3DRect): Ditto.
8627 (clearRect): Ditto.
8628 (drawRaster): Ditto.
8629 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
8630 no affine transformation.
8631 (drawGlyphVector): Ditto.
8632
8633 2004-02-26 Olga Rodimina <rodimina@redhat.com>
8634
8635 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8636 (isBufferedImageGraphics): New Helper function.
8637 Returns true if this graphics2d can be used to draw
8638 into buffered image and false otherwise.
8639 (updateImagePixels): New Helper function.
8640 Updates pixels in the BufferedImage.
8641 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8642 (getImagePixels): New function. Returns pixels
8643 of the buffered image associated with
8644 this Graphics2D.
8645
8646 2004-02-26 David Jee <djee@redhat.com>
8647
8648 * java/awt/BorderLayout.java
8649 (layoutContainer): Fix width and height calculations to ensure
8650 that they're non-negative.
8651 * java/awt/Component.java
8652 (setBackground): If c is null, inherit from closest ancestor whose
8653 background color is set.
8654
8655 2004-02-26  Kim Ho  <kho@redhat.com>
8656
8657 * Makefile.am: Add new files.
8658 * Makefile.in: Re-generate.
8659 * javax/swing/JProgressBar.java:
8660 (JProgressBar(int, int int)): Throw
8661 IllegalArgumentException if orientation is
8662 invalid.
8663 (JProgressBar(BoundedRangeModel)): Create
8664 ChangeListener and register it. UpdateUI.
8665 (getChangeListeners): Implement.
8666 (setModel): Reset ChangeListener.
8667 * javax/swing/JScrollBar.java: Implement.
8668 * javax/swing/JSeparator.java: Implement.
8669 * javax/swing/JSlider.java:
8670 (JSlider(int, int, int, int)): Throw
8671 IllegalArgumentException if orientation
8672 is invalid.
8673 (getChangeListeners): Fix method name.
8674 * javax/swing/SwingUtilities.java:
8675 (layoutCompoundLabel): If there is no text,
8676 set the text rectangle dimensions to 0.
8677 * javax/swing/plaf/basic/BasicButtonUI.java:
8678 (paint): If there is no text, don't paint it.
8679 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8680 Implement.
8681 * javax/swing/plaf/basic/BasicSeparatorUI.java:
8682 Implement.
8683 * javax/swing/plaf/basic/BasicSliderUI.java:
8684 (propertyChange): If the model changes, change
8685 the listeners accordingly.
8686
8687 2004-02-25 Graydon Hoare <graydon@redhat.com>
8688
8689 * javax/swing/AbstractButton.java: Add "final" qualifiers.
8690 * javax/swing/JList.java: Reimplement.
8691 * javax/swing/DefaultListSelectionModel.java: Reimplement.
8692 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
8693 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
8694 * javax/swing/ListModel.java: Javadoc.
8695 * javax/swing/ListSelectionModel.java: Add missing methods.
8696 * javax/swing/AbstractListModel.java: Javadoc and corrections.
8697 * javax/swing/DefaultListModel.java: Javadoc and corrections.
8698 * javax/swing/ListModel.java: Javadoc and corrections.
8699 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
8700
8701 2004-02-25 David Jee <djee@redhat.com>
8702
8703 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8704 (GtkFontPeer): Change default size to 12.
8705 * gnu/java/awt/peer/gtk/GtkToolkit.java
8706 (getFontPeer): Change default size to 12.
8707 (getClasspathFontPeer): Likewise. Set default name to "Default".
8708 * java/awt/Font.java
8709 (Font(Map)): Call Font(String,Map).
8710 (Font(String,Map)): If attrs is null, initialize it as an empty
8711 HashMap, which will ensure that the Font will get default attributes.
8712
8713 2004-02-25 David Jee <djee@redhat.com>
8714
8715 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8716 (GtkFontPeer(String,int)): Call the new constructor with size 1.
8717 (GtkFontPeer(String,int,int)): New constructor with size attribute.
8718 * gnu/java/awt/peer/gtk/GtkToolkit.java
8719 (getFontPeer(String,int)): Call the new overload method with size 1.
8720 (getFontPeer(String,int,int)): New method. Overloaded with size
8721 attribute.
8722 (getClasspathFontPeer): Set the size of the font.
8723
8724 2004-02-24 Olga Rodimina <rodimina@redhat.com>
8725
8726 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8727 (bimage): New field.
8728 (GdkGraphics2D): New Constructor. Constructs Graphics
8729 object that can be used to draw into the Buffered Image.
8730 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8731 (GdkGraphicsEnvironment): Fixed to include public
8732 keyword.
8733 (createGraphics): Implemented.
8734 * gnu/java/awt/peer/gtk/GtkToolkit.java
8735 (getLocalGraphicsEnvironment): Implemented.
8736 * java/awt/GraphicsEnvironment.java:
8737 (getLocalGraphicsEnvironment): Implemented.
8738 * java/awt/image/BufferedImage.java:
8739 (createGraphics): Implemented.
8740
8741 2004-02-24 David Jee <djee@redhat.com>
8742
8743 * java/awt/Component.java
8744 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
8745 * java/awt/Container.java
8746 (addNotifyContainerChildren): Fix event enabling.
8747
8748 2004-02-23 Olga Rodimina <rodimina@redhat.com>
8749
8750 * Makefile.am: Added
8751 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
8752 * Makefile.in: Re-generated.
8753 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8754 New Class.
8755
8756 2004-02-19 Kim Ho <kho@redhat.com>
8757
8758 * Makefile.am: Add BasicProgressBarUI
8759 * Makefile.in: Regenerate.
8760 * javax/swing/JProgressBar.java:
8761 Re-implement.
8762 * javax/swing/plaf/basic/BasicLookAndFeel.java
8763 Add constants for JProgressBar.
8764 * javax/swing/plaf/basic/BasicProgressBarUI.java
8765 Implement.
8766 * javax/swing/plaf/basic/BasicSliderUI.java
8767 Change comments.
8768 (calculateGeometry): New method
8769 (paint): Remove unnecessary size calculations.
8770
8771 2004-02-18 Olga Rodimina <rodimina@redhat.com>
8772
8773 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8774 (drawRaster): Fixed small error that caused
8775 imageToUser transformation to be set incorrectly.
8776 (toString): Implemented.
8777
8778 2004-02-18 David Jee <djee@redhat.com>
8779
8780 * java/awt/CardLayout.java
8781 (addLayoutComponent): Show the first component added as the default.
8782 (removeLayoutComponent): After removing, show the next component.
8783 (gotoComponent): If there is only one component, show it and return.
8784
8785 2004-02-18 Kim Ho <kho@redhat.com>
8786
8787 * javax/swing/JSlider.java: Re-order
8788 modifiers.
8789 * javax/swing/JLabel.java: Re-order
8790 modifiers.
8791 * javax/swing/JComponent.java:
8792 (addPropertyChangeListener):
8793 Implement.
8794 (removePropertyChangeListener):
8795 ditto.
8796 (firePropertyChangeEvent):
8797 ditto.
8798
8799 2004-02-17 David Jee <djee@redhat.com>
8800
8801 * java/awt/Component.java
8802 (show): Dispatch ComponentEvent via system event queue.
8803 (hide): Likewise.
8804 (move): Likewise.
8805 (resize): Likewise.
8806 (reshape): Likewise.
8807 * java/awt/Window.java
8808 (setBoundsCallback): Likewise.
8809
8810 2004-02-17 David Jee <djee@redhat.com>
8811
8812 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8813 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
8814 Use gtk_widget_set_size_request() instead of the deprecated
8815 gtk_widget_set_usize().
8816
8817 2004-02-17 Kim Ho <kho@redhat.com>
8818
8819 * javax/swing/JSlider.java: Fix comments and
8820 make property strings constants.
8821 (createStandardLabels): Use the labels
8822 preferred size as bounds.
8823 * javax/swing/plaf/basic/BasicSliderUI.java
8824 Fix comments.
8825 (ScrollHandler::actionPerformed): Don't
8826 calculate the timer stop value. Let the
8827 MouseListeners find the stop location.
8828 (getPreferredHorizontalSize): Re-implement.
8829 (getPreferredVerticalSize): ditto.
8830 (getMinimumHorizontalSize): ditto.
8831 (getMinimumVerticalSize): ditto.
8832 (getPreferredSize): ditto.
8833 (getMinimumSize): ditto.
8834 (getMaximumSize): ditto.
8835 (paintTicks): Use doubles to find the
8836 tick location.
8837 (paintHorizontalLabel):  Use preferredSize
8838 as initial width and height.
8839 (paintVerticalLabel): ditto.
8840
8841 2004-02-17 Kim Ho <kho@redhat.com>
8842
8843 * javax/swing/JLabel.java: Changed
8844 property strings to constants.
8845 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
8846 New property.
8847 (setText): Change mnemonic index if
8848 text is too short.
8849 (setDisplayedMnemonicIndex): Fire property
8850 change event.
8851 (getDisplayedMnemonicIndex): Remove check
8852 against short text.
8853
8854 2004-02-17 Olga Rodimina <rodimina@redhat.com>
8855
8856 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8857 (drawImage(img,xform,obs)): Invert xform before
8858 passing the xform to cairo.
8859 (drawImage(img,x,y,bgcolor,obs)): Implemented.
8860 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
8861 implemented.
8862 (drawImage (img,x,y,w,h,obs)): Implemented.
8863 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
8864 bgcolor,obs)): Partly implemented.
8865 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
8866 Implemented.
8867 * java/awt/image/BufferedImage.java:
8868 (copyData): if dest is null, create raster with same
8869 dimensions as the current image.
8870
8871 2004-02-16 Graydon Hoare <graydon@redhat.com>
8872
8873 * javax/swing/plaf/basic/BasicLabelUI.java
8874 (getPreferredSize): Use layoutCL.
8875 * javax/swing/plaf/basic/BasicGraphicsUtils.java
8876 (getPreferredButtonSize): Start with empty view rect, layout using
8877 component's preferred alignment.
8878 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
8879 List defaults.
8880
8881 2004-02-16 David Jee <djee@redhat.com>
8882
8883 * java/awt/Component.java
8884 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
8885 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
8886 (move): Erase old bounds and repaint new bounds. Dispatch
8887 COMPONENT_MOVED ComponentEvent.
8888 (resize): Erase old bounds and repaint new bounds. Dispatch
8889 COMPONENT_RESIZED ComponentEvent.
8890 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8891 ComponentEvents.
8892 * java/awt/Window.java
8893 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8894 ComponentEvents.
8895
8896 2004-02-16 Olga Rodimina <rodimina@redhat.com>
8897
8898 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8899 (setRenderingHint): Added implementation of
8900 Interpolation rendering hints.
8901 (setRenderingHints): Ditto.
8902 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
8903 (drawPixels): fixed to allow user to choose type
8904 of filtering that should be used when displaying images.
8905 (cairoSurfaceSetFilter): New method. Sets filter type for
8906 interpolation of pixel values.
8907
8908 2004-02-16 David Jee <djee@redhat.com>
8909
8910 * java/awt/GridBagLayout.java
8911 (calcCellSizes): Rows or columns with zero sizes should still be
8912 considered for extra space distribution.
8913
8914 2004-02-16 Kim Ho <kho@redhat.com>
8915
8916 * javax/swing/JLabel.java: Re-implement.
8917 * javax/swing/plaf/basic/BasicLabelUI.java
8918 Re-implement.
8919 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8920 Added constant.
8921
8922 2004-02-16  Kim Ho  <kho@redhat.com>
8923
8924 * javax/swing/JSlider.java: Fix indentation and comments.
8925 (setModel): Remove null check to conform with Sun's.
8926 (setOrientation): Throw exception if not
8927 HORIZONTAL or VERTICAL.
8928 (getInverted): Use private variable instead of
8929 ComponentOrientation.
8930 (setInverted): ditto.
8931 * javax/swing/plaf/basic/BasicSliderUI.java:
8932 Fix indentation and comments.
8933 (propertyChange): Remove check for inverted slider, handle
8934 in main paint.
8935 (getMinimumSize): Return preferred size.
8936 (getMaximumSize): ditto.
8937 (calculateFocusRect): Don't relocate rectangle.
8938 (drawInverted): Return XOR of the slider's inversion and
8939 the component's orientation.
8940 (paint): Update leftToRightCache
8941
8942 2004-02-13 David Jee <djee@redhat.com>
8943
8944 * java/awt/GridBagLayout.java
8945 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
8946 code to helper methods.
8947 (sortBySpan): New helper method.
8948 (distributeSizeAndWeight): Likewise.
8949 (calcCellWeights): Likewise.
8950 (calcCellSizes): Add comments.
8951
8952 2004-02-13 David Jee <djee@redhat.com>
8953
8954 * java/awt/Component.java
8955 (show): Only do something if component is invisible at the moment.
8956 (hide): Only do something if component is visible at the moment.
8957 (reshape): If lightweight, erase old bounds and repaint new bounds.
8958
8959 2004-02-13  Kim Ho  <kho@redhat.com>
8960
8961 * Makefile.am: Updated for new file.
8962 * Makefile.in: Regenerated.
8963 * javax/swing/JSlider.java: Reimplement.
8964 * javax/swing/SwingUtilities.java
8965 (layoutCompoundLabel): Use icon height
8966 instead of width.
8967 (paintComponent): Implement.
8968 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8969 Add JSlider defaults.
8970 * javax/swing/plaf/basic/BasicSliderUI.java:
8971 Implement. New file.
8972
8973 2004-03-17 Michael Koch <konqueror@gmx.de>
8974
8975 * gnu/java/net/PlainDatagramSocketImpl.java
8976 (RECEIVE_LOCK): New member field.
8977 (SEND_LOCK): New member field.
8978 (send0): New method.
8979 (send): Synchronize on SEND_LOCK.
8980 (receive0): New method.
8981 (receive): Synchronize on RECEIVE_LOCK.
8982 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
8983 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
8984 gnu/java/net/natPlainDatagramSocketImplWin32.cc
8985 (send0): Renamed from send.
8986 (receive0): Renamed from receive.
8987 2004-03-17 Michael Koch <konqueror@gmx.de>
8988
8989 * gnu/java/net/natPlainSocketImplPosix.cc
8990 (write): Just call write(jbyteArray, offset, len).
8991 (read): Just call read(jbyteArray, offset, len).
8992
8993 2004-03-16 Michael Koch <konqueror@gmx.de>
8994
8995 * javax/swing/JTabbedPane.java
8996 (serialVersionUID): New field.
8997
8998 2004-03-16 Norbert Frese <postfach@nfrese.net>
8999
9000 * java/net/InetAddress.java
9001 (getByName): Handle hostname == "" case.
9002
9003 2004-03-16 Dalibor Topic <robilad@kaffe.org>
9004
9005 Reported by: Adam Heath <doogie@debian.org>
9006 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
9007 class loader.
9008
9009 2004-03-15 Michael Koch <konqueror@gmx.de>
9010
9011 * java/util/Locale.java: Reverting my last patch
9012 and add a comment why the original version was okay.
9013
9014 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
9015
9016 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
9017 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
9018 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
9019 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
9020
9021 2004-03-12 Michael Koch <konqueror@gmx.de>
9022
9023 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
9024
9025 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
9026
9027 * java/net/URI.java (toURL): Implemented.
9028
9029 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
9030
9031 * java/net/URI.java
9032 (URI_REGEXP) updated to contain scheme specific part.
9033 (SCHEME_SPEC_PART_GROUP) new constant.
9034 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
9035 updated to make room for SCHEME_SPEC_PART_GROUP.
9036 (parseURI) parse scheme specific part.
9037 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
9038 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
9039 getQuery, getFragment) implemented.
9040
9041 2004-03-12 Dalibor Topic <robilad@kaffe.org>
9042
9043 * libraries/javalib/java/net/URI.java
9044 partially implemented using java.util.regex.
9045 (URI_REGEXP) new constant. Used to parse URIs.
9046 (SCHEME_GROUP) new constant representing index of scheme group
9047 in parsed URI.
9048 (AUTHORITY_GROUP) new constant representing index of authority
9049 group in parsed URI.
9050 (PATH_GROUP) new constant representing index of path group in
9051 parsed URI.
9052 (QUERY_GROUP) new constant representing index of query group in
9053 parsed URI.
9054 (FRAGMENT_GROUP) new constant representing index of fragment
9055 group in parsed URI.
9056 (getURIGroup) new static utility method.
9057 (parseURI) implemented.
9058 (quote) stub for new static utility method.
9059 (quoteAuthority) stub for new static utility method.
9060 (quoteHost) stub for new static utility method.
9061 (quotePath) stub for new static utility method.
9062 (quoteUserInfo) stub for new static utility method.
9063 (URI) implemented.
9064 (create) don't throw URISyntaxException. Implemented.
9065 (toString) implemented.
9066
9067 2004-03-12 Michael Koch <konqueror@gmx.de>
9068
9069 * java/net/HttpURLConnection.java
9070 (getResponseCode): Fix another typo in javadoc.
9071
9072 2004-03-11 Michael Koch <konqueror@gmx.de>
9073
9074 * java/util/logging/Level.java
9075 (parse): Use String.equals() instead of ==.
9076
9077 2004-03-11 Michael Koch <konqueror@gmx.de>
9078
9079 * gnu/java/net/protocol/jar/Connection.java
9080 (getContentLength): New method.
9081
9082 2004-03-11 Michael Koch <konqueror@gmx.de>
9083
9084 * gnu/java/net/PlainSocketImpl.java:
9085 Reformated to merge better with classpath's version.
9086
9087 2004-03-11 Michael Koch <konqueror@gmx.de>
9088
9089 * java/util/Locale.java
9090 (getISO3Language): Use String.equals() instead of ==.
9091 (getISO3Country): Likewise.
9092
9093 2004-03-11 Dalibor Topic <robilad@kaffe.org>
9094
9095 * java/text/AttributedString.java
9096 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
9097 Use HashMap instead of Hashtable since value can be null, and
9098 you can not store a null value in a Hashtable.
9099
9100 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
9101
9102 * java/text/AttributedStringIterator.java
9103 (getAllAttributesKey): Return only keys concerned
9104 by the current iterator.
9105 (getAttributes): Use strict inequality for
9106 end_index.
9107
9108 2004-03-11 Michael Koch <konqueror@gmx.de>
9109
9110 * java/net/HttpURLConnection.java:
9111 Fixed typo in javadoc.
9112
9113 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
9114
9115 * java/io/BufferedInputStream.java (marktarget): New field for max
9116 mark limit.
9117 (CHUNKSIZE): New constant for incremental mark buffer allocation.
9118 (mark): Use new fields.
9119 (read): Likewise.
9120 (read(byte[],int,int)): Likewise.
9121 (skip): Likewise.
9122 (refill): Likewise.
9123
9124 2004-03-11 Mark Wielaard <mark@klomp.org>
9125
9126 * java/beans/BeanDescriptor.java (BeanDescriptor):
9127 Set the FeatureDescriptor programmatic name.
9128
9129 2004-03-11 Michael Koch <konqueror@gmx.de>
9130
9131 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
9132 This file was was just copied form java/io/natFileDescriptorEcos.cc
9133 and never changed to compile correctly.
9134
9135 2004-03-11 Michael Koch <konqueror@gmx.de>
9136
9137 * gnu/java/nio/PipeImpl.java
9138 (SourceChannelImpl): Made final.
9139 (read): Implemented.
9140 (SinkChannelImpl): Made final.
9141 (write): Implemented.
9142
9143 2004-03-11 Michael Koch <konqueror@gmx.de>
9144
9145 * gnu/java/net/PlainDatagramSocketImpl.java:
9146 Reformated to match classpath's version more.
9147
9148 2004-03-11 Michael Koch <konqueror@gmx.de>
9149
9150 * gnu/java/awt/peer/ClasspathFontPeer.java:
9151 Fixed javadoc to be correct xhtml.
9152 * gnu/java/awt/peer/gtk/GtkArgList.java
9153 (add): Use Boolean.valueOf() instead of new Boolean().
9154
9155 2004-03-09 Michael Koch <konqueror@gmx.de>
9156
9157 * java/lang/Thread.java
9158 (runnable): Moved around.
9159 (daemon): Renamed from daemon_flag.
9160 (contextClassLoader): Renamed from context_class_loader.
9161 (Thread): Reordered constructors.
9162 (activeCount): Use group directly.
9163 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
9164 (holdsLock): Reworked javadoc.
9165 (setDaemon): Reworked.
9166 * java/lang/natThread.cc
9167 (destroy): Removed.
9168
9169 2004-03-08 Anthony Green <green@redhat.com>
9170
9171 * Makefile.am: Build property resource files into libgcj.
9172 * Makefile.in: Rebuilt.
9173 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
9174 java/util/regex/PatternSyntaxException.java,
9175 gnu/regexp/CharIndexed.java,
9176 gnu/regexp/CharIndexedCharArray.java,
9177 gnu/regexp/CharIndexedInputStream.java,
9178 gnu/regexp/CharIndexedReader.java,
9179 gnu/regexp/CharIndexedString.java,
9180 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
9181 gnu/regexp/REException.java,
9182 gnu/regexp/REFilterInputStream.java,
9183 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
9184 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
9185 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
9186 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
9187 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
9188 gnu/regexp/RETokenLookAhead.java,
9189 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
9190 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
9191 gnu/regexp/RETokenStart.java,
9192 gnu/regexp/RETokenWordBoundary.java,
9193 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
9194
9195 2004-03-03 Per Bothner <per@bothner.com>
9196
9197 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
9198 Optimize when argument is a FileChannelImpl.
9199 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
9200 New native methods.
9201 * java/nio/channels/natChannels.cc: New file for new native methods.
9202 * Makefile.am: Update accordingly.
9203
9204 2004-03-02 Jan Hubicka <jh@suse.cz>
9205
9206 * configure.host: Pass -fno-omit-frame-pointer for i386.
9207 * configure.in: Likewise.
9208 * configure: Regenerate.
9209
9210 2004-03-01 Per Bothner <per@bothner.com>
9211
9212 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
9213
9214 2004-02-29 Per Bothner <per@bothner.com>
9215
9216 * java/nio/channels/FileChannelImpl.java: Moved to package
9217 gnu/java/nio/channels, since we need to refer to it from java.io.
9218 * java/nio/channels/natFileChannelImpl.cc: Removed file.
9219 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
9220 from java/nio/channels. Don't depend on FileDescriptor.
9221 (in, out, err): New static fields.
9222 (mode): New field.
9223 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
9224 from FileDescriptor.
9225 (by): Removed MappedByteBuffer field.
9226 (map): New working implementation.
9227 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
9228 some code "ported" from natFileDescriptoPosix.cc.
9229 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
9230 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
9231 * java/io/FileDescriptor.java: Implement on top of FileChannel.
9232 Remove native methods.
9233 * Makefile.am, configure.in: Updated accordingly.
9234
9235 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
9236 (ch): New FileChannelImpl field. Update constructor to match.
9237 (releaseImpl): Remove native method. Instead ...
9238 (release): Call unlock on channel.
9239 * gnu/java/nio/natFileLockImpl.cc: Removed file.
9240
9241 * java/io/natFileDescriptorEcos.cc: Remove file.
9242 * java/io/natFileDescriptorPosix.cc: Remove file.
9243 * java/io/natFileDescriptorWin32.cc: Remove file.
9244 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
9245 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
9246 (<init>(FileChannelImpl)): New package-private constructor.
9247 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
9248 (available, close, read, skip): Implement using FileChannelImpl.
9249 (getFD): Allocate FileDescriptor if needed.
9250 (getChannel): Is now trivial.
9251 * java/io/FileOutputStream.java: Corresponding changes.
9252 * java/io/RandomAccessFile.java: Corresponding changes.
9253
9254 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
9255 unmapImpl): New dummy methods, to be overridden by subclass.
9256 (finalize, isLoaded, load, force): New methods.
9257 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
9258 Now works, at least for read mapping.
9259
9260 * java/lang/natPosixProcess.cc (startProcess): Implement standard
9261 streams using FileChannelImpl, not FileDescriptor.
9262 * java/lang/natWin32Process.cc (startProcess): Likewise.
9263
9264 2004-02-28 Michael Koch <konqueror@gmx.de>
9265
9266 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
9267 wrong code.
9268
9269 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
9270
9271 * java/io/ObjectInputStream.java
9272 (readClassDescriptor): Keep elements of the mapping non null.
9273 (checkTypeConsistency): New method.
9274 (readFields): Fixed main loop and base logic. Small reindentation.
9275 * java/io/ObjectStreamField.java
9276 (lookupField): New method to update the field reference.
9277 (checkFieldType): New method.
9278 * java/io/ObjectStreamClass.java
9279 (setClass, setFields): Call lookupField when building the field
9280 database. Check the real field type.
9281
9282 2004-02-28 Michael Koch <konqueror@gmx.de>
9283
9284 * java/nio/ByteOrder.java
9285 (nativeOrder): Use equals() to compare strings.
9286
9287 2004-02-26 Michael Koch <konqueror@gmx.de>
9288
9289 * gnu/java/nio/FileLockImpl.java
9290 (finalize): Made protected.
9291 * java/nio/channels/FileChannel.java
9292 (MapMode.READ_ONLY): Made final.
9293 (MapMode.READ_WRITE): Made final.
9294 (MapMode.PRIVATE): Made final.
9295 * java/nio/channels/SocketChannel.java
9296 (open): Simplified code.
9297 * java/nio/channels/spi/AbstractSelectableChannel.java
9298 (registered): Unused, removed.
9299 (keyFor): Check channel is open, only locate key
9300 and not add a new one.
9301 (register): Don't delete attachments.
9302
9303 2004-02-26 Michael Koch <konqueror@gmx.de>
9304
9305 * gnu/java/awt/ComponentDataBlitOp.java
9306 (INSTANCE): Made final.
9307 * gnu/java/awt/image/ImageDecoder.java:
9308 Reworked imports.
9309 (cm): Unused, removed.
9310
9311 2004-02-26 Michael Koch <konqueror@gmx.de>
9312
9313 * gnu/java/nio/DatagramChannelImpl.java
9314 (send): Check if target address is resolved.
9315
9316 2004-02-26 Michael Koch <konqueror@gmx.de>
9317
9318 * Makefile.am: Generate and install headers for inner classes in
9319 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
9320 * Makefile.in: Regenerated.
9321
9322 2004-02-24 Anthony Green <green@redhat.com>
9323
9324 * java/lang/StringBuffer.java: No need to NULL out remainder of
9325 buffer since ensureCapacity_unsynchronized will have done this for
9326 us.
9327
9328 2004-02-20 Michael Koch <konqueror@gmx.de>
9329
9330 * gnu/java/net/protocol/jar/Handler.java
9331 (): Removed unneeded check for file != null. java.net.URL.getFile()
9332 returns an empty string but never null.
9333
9334 2004-02-20 Michael Koch <konqueror@gmx.de>
9335
9336 * gnu/gcj/convert/Convert.java
9337 (main): Use equals() to compare strings.
9338
9339 2004-02-20 Michael Koch <konqueror@gmx.de>
9340
9341 * javax/swing/AbstractButton.java: Made several constants final.
9342 (getRolloverSelectedIcon): Made public.
9343 (getSelectedIcon): Made public.
9344
9345 2004-02-16 Per Bothner <per@bothner.com>
9346
9347 * java/nio/CharBufferImpl.java: Inline super constructor.
9348 * java/nio/DoubleBufferImpl.java: Likewise.
9349 * java/nio/FloatBufferImpl.java: Likewise.
9350 * java/nio/IntBufferImpl.java: Likewise.
9351 * java/nio/LongBufferImpl.java: Likewise.
9352 * java/nio/ShortBufferImpl.java: Likewise.
9353 * java/nio/CharBuffer.java: Remove unused constructor.
9354 * java/nio/DoubleBuffer.java: Likewise.
9355 * java/nio/FloatBuffer.java: Likewise.
9356 * java/nio/IntBuffer.java: Likewise.
9357 * java/nio/LongBuffer.java: Likewise.
9358 * java/nio/ShortBuffer.java: Likewise.
9359 * java/nio/CharViewBufferImpl.java: New convenience constructor.
9360 Fix buggy call to super constructor.
9361 * java/nio/DoubleViewBufferImpl.java: Likewise.
9362 * java/nio/FloatViewBufferImpl.java: Likewise.
9363 * java/nio/IntViewBufferImpl.java: Likewise.
9364 * java/nio/LongViewBufferImpl.java: Likewise.
9365 * java/nio/ShortViewBufferImpl.java: Likewise.
9366
9367 * java/nio/ByteBuffer.java (endian): Make non-private so other
9368 java.nio classes can inherit it.
9369 (<init>): Don't bother clearing array_offset.
9370 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
9371 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
9372 Remove redundant test.
9373
9374 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
9375 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
9376 Use new XxxViewBufferImpl constructors.
9377 * java/nio/MappedByteBufferImpl.java: Likewise.
9378 * java/nio/DirectByteBufferImpl.java: Likewise.
9379
9380 * java/nio/ByteBufferImpl.java: Remove one constructor.
9381 Inline super in remaining constructor.
9382 * java/nio/ByteBuffer.java: Remove unused constructor.
9383
9384 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
9385
9386 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
9387 * java/nio/DirectByteBufferImpl.java (owner): New field.
9388 (offset): Remove unused field.
9389 (<init>): Modify one and add another constructor. Change callers.
9390 (allocateDirect): Removed - not used.
9391 (getImpl, putImpl): Make static and pass address explicitly,
9392 to make them useful for MappedByteBufferImpl.
9393 (get, put): Check for underflow. Modify for new getImpl.
9394 (getImpl): New native method where target is array.
9395 (get(byte[],int,int)): Use the above.
9396 (adjustAddress): New static native method.
9397 (slice, duplicate, asReadOnly): New implementations.
9398 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
9399 adjustAddress): New or updated native methods.
9400
9401 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
9402
9403 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
9404 overflow of fieldmapping.
9405
9406 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
9407
9408 * javax/swing/undo/UndoManager.java: Re-written from scratch.
9409
9410 2004-02-14 Per Bothner <per@bothner.com>
9411
9412 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
9413 Set closed before calling implCloseChannel, as in the spec.
9414
9415 2004-02-09 Graydon Hoare <graydon@redhat.com>
9416
9417 * javax/swing/ToggleButtonModel.java: Remove dead class.
9418 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
9419 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
9420 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
9421 * Makefile.am: Update for new and removed files.
9422 * Makefile.in: Regenerate.
9423
9424 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
9425 * javax/swing/AbstractButton.java
9426 (AbstractButton): Initialize fields correctly in ctor.
9427 * javax/swing/JCheckbox.java
9428 (JCheckBox): Override painting flags.
9429 * javax/swing/DefaultButtonModel.java: Conform to sun.
9430 * javax/swing/JComponent.java (paint): Fill with background color
9431 if available.
9432 (processComponentKeyEvent)
9433 (processFocusEvent)
9434 (processKeyEvent)
9435 (processMouseMotionEvent): Remove event-consuming empty methods.
9436 (getUIClassID): Return "ComponentUI" not "JComponent"
9437 * javax/swing/JFrame.java: Remove some debugging chatter.
9438 (JFrame): Subscribe to window events.
9439 * javax/swing/JRadioButton.java
9440 (JRadioButton): Override painting flags.
9441 * javax/swing/JRootPane.java
9442 (JRootPane): Set background from UIDefaults.
9443 * javax/swing/JToggleButton.java
9444 (ToggleButtonModel): New inner class.
9445 (JToggleButton): Override layout alighment.
9446 * javax/swing/SwingUtilities.java:
9447 (getLocalBounds): Return width and height, not x and y.
9448 (calculateInnerArea): Use local bounds, not bounds.
9449 (layoutCompoundLabel): Provide overridden form.
9450 (layoutCompoundLabel): Correct bugs.
9451 * javax/swing/UIDefaults.java: Correct comment.
9452 * javax/swing/plaf/basic/BasicButtonUI.java:
9453 Move most logic into defaults, external listener.
9454 (paintIcon): Implement icon painting.
9455 (paint): Fix state painting to conform to changes in model.
9456 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
9457 Remove most dead/wrong methods.
9458 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
9459 * javax/swing/plaf/basic/BasicIconFactory.java:
9460 (DummyIcon): New class.
9461 (getMenuItemCheckIcon)
9462 (getMenuItemArrowIcon)
9463 (getMenuArrowIcon)
9464 (getCheckBoxMenuItemIcon)
9465 (getRadioButtonMenuItemIcon)
9466 (createEmptyFrameIcon): Return DummyIcons, not null.
9467 (getCheckBoxIcon): Implement an icon that looks like sun's.
9468 (getRadioButtonIcon): Implement an icon that looks like sun's.
9469 * javax/swing/plaf/basic/BasicLookAndFeel.java
9470 (initComponentDefaults): Fix impossible values, add some missing.
9471 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
9472 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
9473 Remove most dead/wrong methods.
9474 (icon): New field.
9475 (getDefaultIcon): New method.
9476 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
9477 Remove most dead/wrong methods.
9478 * javax/swing/plaf/metal/MetalLookAndFeel.java
9479 (getDefaults): Return super.getDefaults(), not BasicDefaults.
9480 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
9481 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
9482 Implement "clearing" as drawing, when on pixmap drawables.
9483
9484 * javax/swing/JButton.java (getUIClassID):
9485 * javax/swing/JCheckBox.java (getUIClassID):
9486 * javax/swing/JEditorPane.java (getUIClassID):
9487 * javax/swing/JLabel.java (getUIClassID):
9488 * javax/swing/JList.java (getUIClassID):
9489 * javax/swing/JOptionPane.java (getUIClassID):
9490 * javax/swing/JPanel.java (getUIClassID):
9491 * javax/swing/JPasswordField.java (uiClassID):
9492 * javax/swing/JRadioButton.java (getUIClassID):
9493 * javax/swing/JRootPane.java (getUIClassID):
9494 * javax/swing/JScrollPane.java (getUIClassID):
9495 * javax/swing/JTabbedPane.java (getUIClassID):
9496 * javax/swing/JToggleButton.java (getUIClassID):
9497 * javax/swing/JTree.java (getUIClassID):
9498 * javax/swing/JViewport.java (getUIClassID):
9499 * javax/swing/text/JTextComponent.java (getUIClassID):
9500 Return "fooUI" not "Jfoo"
9501
9502 2004-02-11 Michael Koch <konqueror@gmx.de>
9503
9504 * java/net/DatagramSocket.java
9505 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
9506 Boolean object.
9507 (setBroadcast): Likewise.
9508 * java/net/MulticastSocket.java
9509 (setLoopbackMode): Likewise.
9510 * java/net/ServerSocket.java
9511 (setReuseAddress): Likewise.
9512 * java/net/Socket.java
9513 (setTcpNoDelay): Likewise.
9514 (setSoLinger): Likewise.
9515 (setOOBInline): Likewise.
9516 (setKeepAlive): Likewise.
9517 (setReuseAddress): Likewise.
9518 * java/net/URLConnection.java
9519 (setContentHandler): Replace == with equals().
9520 * java/net/URLStreamHandler.java
9521 (hostSEquals): Fix checking host addresses.
9522 (toExternalForm): Dont check protocol for null. We know already its
9523 not null.
9524
9525 2004-02-10 David Jee <djee@redhat.com>
9526
9527 * java/awt/BorderLayout.java
9528 (calcCompSize): Invisible components get zero dimensions.
9529 * java/awt/Button.java
9530 (setLabel): Set actionCommand.
9531 * java/awt/Component.java
9532 (show): Invalidate component and parent container.
9533 (hide): Likewise.
9534
9535 2004-02-10 David Jee <djee@redhat.com>
9536
9537 * java/awt/GridBagLayout.java
9538 (GridBagLayout): New private field, internalcomptable.
9539 (lookupInternalConstraints): New method.
9540 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
9541 (GetLayoutInfo): Reimplement.
9542 (calcCellSizes): Ignore rows/columns with size 0.
9543
9544 2004-02-10 Michael Koch <konqueror@gmx.de>
9545
9546 * gnu/java/awt/EmbeddedWindow.java
9547 (setHandle): Use java.awt.Component.getPeer() instead of
9548 java.awt.Component.peer directly.
9549
9550 2004-02-10 David Jee <djee@redhat.com>
9551
9552 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
9553 (gtkSetLabel): New native method definition.
9554 (setLabel): Use gtkSetLabel.
9555 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
9556 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
9557
9558 2004-02-10 Alan Modra <amodra@bigpond.net.au>
9559
9560 * include/powerpc-signal.h: Revert 2004-01-21 change.
9561 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
9562 from syscall for ppc32 versions.
9563
9564 2004-02-08 Per Bothner <per@bothner.com>
9565
9566 * java/nio/ByteBuffer.java (shiftDown): New helper method.
9567 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
9568 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
9569 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
9570 Pass ByteOrder parameter to most methods, since the underlying
9571 ByteBuffer's order isn't always what we should use.
9572 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
9573 * java/nio/DirectByteBufferImpl.java: Likewise.
9574 Use ByteBufferHelper methods.
9575 * java/nio/MappedByteBufferImpl.java: Likewise.
9576 (compact): Use shiftDown.
9577 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
9578 (get, put): Use ByteBufferHelper.
9579 (compact): Use new shiftDown method.
9580 (duplicate(boolean)): New helper method.
9581 (duplicate, asReadOnlyBuffer): Use it.
9582 (order): Return endian field.
9583 * java/nio/DoubleViewBufferImpl.java: Likewise.
9584 * java/nio/FloatViewBufferImpl.java: Likewise.
9585 * java/nio/IntViewBufferImpl.java: Likewise.
9586 * java/nio/LongViewBufferImpl.java: Likewise.
9587 * java/nio/ShortViewBufferImpl.java: Likewise.
9588 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
9589 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
9590 (compact): Re-implement using shiftDown.
9591
9592 2004-02-08 Andreas Jaeger <aj@suse.de>
9593
9594 * include/x86_64-signal.h: Fix typo.
9595
9596 2004-02-08 Diego Novillo <dnovillo@redhat.com>
9597
9598 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
9599 qualifier to _regs.
9600 (HANDLE_DIVIDE_OVERFLOW): Likewise.
9601
9602 2004-02-06 Michael Koch <konqueror@gmx.de>
9603
9604 * java/io/ObjectInputStream.java
9605 (currentClassLoader): Reverted to old version of this method.
9606
9607 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
9608
9609 * java/io/ObjectInputStream.java: Made all calls
9610 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
9611 use cached info from ObjectStreamClass. (readClassDescriptor):
9612 Cache more information in ObjectStreamClass. (processResolution,
9613 readFields): Use cached info from ObjectStreamClass.
9614 (newObject): Throw exception instead of returning null for failure.
9615 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
9616 setCharField, setDoubleField, setFloatField, setIntField,
9617 setLongField, setShortField, setObjectField, readObjectParams):
9618 Removed. (dumpElement, dumpElementln): Removed dump flag condition
9619 check.
9620 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
9621 (setClass): Added call to cacheMethods() (findMethod): New method.
9622 (cacheMethods): New method. (ObjectStreamClass): Added call to
9623 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
9624 AccessController.doPrivileged to invoke setAccessible.
9625 (readObjectMethod, readResolveMethod, realClassIsSerializable,
9626 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
9627 New fields.
9628 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
9629 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
9630 isPrimitive): Made safe for cases where type == null.
9631 (setBooleanField, setByteField, setCharField, setShortField,
9632 setIntField, setLongField, setFloatField, setDoubleField,
9633 setObjectField): New methods.
9634
9635 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
9636
9637 * java/awt/Component.java (getFont): Return a default font
9638 instead of null.
9639
9640 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
9641 (Scrollbar (int, int, int, int, int)): Make default page
9642 increment 10.
9643 (setValues): Only call peer.setValues if one of the values has
9644 changed.
9645 (generateName): New method.
9646 (getUniqueLong): New method.
9647 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
9648 (range_scrollbar): Remove structure.
9649 (post_adjustment_event): Remove function.
9650 (post_change_event): Accept jobject argument.
9651 (create): Cast jints to gdoubles. Round scrollbar values to the
9652 nearest integer. Clamp min, max and value settings.
9653 (connectJObject): Connect hook to widget->window.
9654 (connectSignals): Remove range_scrollbar structure variables.
9655 Remove "move-slider" connection. Pass global peer reference to
9656 "value-changed" callback.
9657 (setLineIncrement): Cast jint value to gdouble.
9658 (setPageIncrement): Likewise.
9659 (setValues): Likewise. Clamp min, max and value settings.
9660
9661 2004-02-05 Michael Koch <konqueror@gmx.de>
9662
9663 * javax/swing/AbstractCellEditor.java
9664 (getCellEditorValue): Removed.
9665 * javax/swing/Box.java: Reformated.
9666 (serialVersionUID): New field.
9667 * javax/swing/ButtonGroup.java:
9668 Removed some weird whitespace.
9669 * javax/swing/CellEditor.java: Reformated.
9670 * javax/swing/CellRendererPane.java
9671 (serialVersionUID): New field.
9672 (AccessibleCellRendererPaneserialVersionUID): New field.
9673 * javax/swing/DefaultListModel.java
9674 (serialVersionUID): New field.
9675 * javax/swing/JEditorPane.java
9676 (serialVersionUID): New field.
9677 (setPage): Throws IOException.
9678 (addHyperlinkListener): Implemented.
9679 (removeHyperlinkListener): Implemented.
9680 (getHyperlinkListener): New method.
9681 * javax/swing/JFileChooser.java
9682 (serialVersionUID): New field.
9683 (AccessibleJFileChooser.serialVersionUID): New field.
9684 (addActionListener): Implemented.
9685 (removeActionListener): Implemented.
9686 (getActionListeners): New method.
9687 * javax/swing/JFormattedTextField.java
9688 (serialVersionUID): New field.
9689 (AbstractFormatter.serialVersionUID): New field.
9690 (clone): Throws CloneNotSupportedException
9691 (setEditValid): Add missing argument.
9692 (stringToValue): Throws ParseExcpetion.
9693 (valueToString): Throws ParseException.
9694 (commitEdit): Throws ParseException.
9695 * javax/swing/JLabel.java
9696 (serialVersionUID): New field.
9697 * javax/swing/JList.java
9698 (serialVersionUID): New field.
9699 (addListSelectionListener): Reformated.
9700 (removeListSelectionListener): Reformated.
9701 (getListSelectionListeners): New method.
9702 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
9703 Reformated.
9704 (serialVersionUID): New field.
9705 * javax/swing/table/AbstractTableModel.java
9706 (getValueAt): Removed.
9707 (getColumnCount): Removed.
9708 (getRowCount): Removed.
9709
9710 2004-02-05 Michael Koch <konqueror@gmx.de>
9711
9712 * java/awt/datatransfer/DataFlavor.java
9713 (imageFlavor): Javadoc added.
9714 (javaJVMLocalObjectType): Fixed.
9715
9716 2004-02-05 Michael Koch <konqueror@gmx.de>
9717
9718 * java/lang/Thread.java
9719 (Thread): Reordered.
9720 (setContextClassLoader): Fixed javadoc comment.
9721 (setPriority): Reordered.
9722 (yield): Reordered.
9723 (initialize_native): Reordered.
9724 (gen_name): Reordered.
9725
9726 2004-02-05 Michael Koch <konqueror@gmx.de>
9727
9728 * java/lang/Thread.java: Reordered fields, reformated much code,
9729 no functional changes, some variables renamed, javadoc comments
9730 merged.
9731
9732 2004-02-05 Michael Koch <konqueror@gmx.de>
9733
9734 * java/util/zip/Deflater.java,
9735 java/util/zip/DeflaterOutputStream.java,
9736 java/util/zip/GZIPInputStream.java:
9737 Reformated and javadoc comments merged from classpath.
9738
9739 2004-02-05 Michael Koch <konqueror@gmx.de>
9740
9741 * gnu/java/nio/NIOServerSocket.java
9742 (impl): Unused, removed.
9743 * gnu/java/nio/SocketChannelImpl.java
9744 (finnishConnect): Don't throw NoConnectionPendingException if not
9745 connected or no connection pending.
9746
9747 2004-02-02 Graydon Hoare <graydon@redhat.com>
9748
9749 * javax/swing/SwingUtilities.java: Many new functions.
9750 * java/awt/Container.java (LightweightDispatcher): Reimplement.
9751 * javax/swing/basic/BasicGraphicsUtils.java
9752 (getPreferredButtonSize): Start layout from top-left corner.
9753
9754 2004-02-04 Olga Rodimina <rodimina@redhat.com>
9755
9756 * java/awt/geom/AffineTransform.java:
9757 Corrected comments on the field definitions for
9758 m11 and m10.
9759 (shear): Fixed few errors that caused shear
9760 transformation to be performed incorrectly.
9761 (createInverse): Fixed to return correct
9762 inverse of the given matrix.
9763
9764 2004-02-03 Tom Tromey <tromey@redhat.com>
9765
9766 * java/lang/natPosixProcess.cc (startProcess): Handle case where
9767 PATH or LD_LIBRARY_PATH is not set in parent environment.
9768
9769 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
9770
9771 * gnu/java/awt/peer/gtk/GtkListPeer.java,
9772 java/awt/BorderLayout.java, java/awt/CardLayout.java,
9773 java/awt/CheckboxGroup.java, java/awt/Choice.java,
9774 java/awt/Component.java, java/awt/Container.java,
9775 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
9776 java/awt/LayoutManager2.java, java/awt/List.java,
9777 java/awt/Menu.java, java/awt/MenuBar.java,
9778 java/awt/MenuItem.java, java/awt/Polygon.java,
9779 java/awt/Rectangle.java, java/awt/ScrollPane.java,
9780 java/awt/Scrollbar.java, java/awt/TextArea.java,
9781 java/awt/TextField.java,
9782 java/awt/image/renderable/RenderContext.java,
9783 javax/swing/JApplet.java: Fix handling of alias methods, where a
9784 method has been deprecated in favour of a new one with the same
9785 funtion but a different name. Put the method implementation in
9786 the deprecated method and have the new method call the
9787 deprecated one. Make all other code call the new method.
9788
9789 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
9790
9791 * gnu/java/nio/DatagramChannelImpl.java
9792 (inChannelOperation): New field.
9793 (isInChannelOperation): New accessor.
9794 (setInChannelOperation): New modifier.
9795 (receive): Use capacity() - position() of destination
9796 buffer instead of remaining(). Set and reset our "in
9797 channel operation indicator" before and after delegating
9798 the receive to our datagram socket. Removed testing code.
9799 Update destination buffer's current position if it is
9800 backed by a byte array (hasArray() is true).
9801 (send): Set and reset our "in channel operation indicator"
9802 before and after delegating the send to our datagram socket.
9803 Removed testing code. Update source buffer's current position
9804 if it is backed by a byte array (hasArray() is true).
9805 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
9806 Use capacity() - position() of destination buffer instead
9807 of remaining().
9808 * java/net/DatagramSocket.java (receive): Don't throw an
9809 IllegalBlockingModeException if we have a non-blocking
9810 channel which initiated this operation.
9811 (send): Likewise.
9812
9813 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
9814
9815 * configure.in: Add pkgconfig check for glib and gthread.
9816 * configure: Regenerate.
9817
9818 2004-02-01 Michael Koch <konqueror@gmx.de>
9819
9820 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
9821 arguments.
9822 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
9823 * verify.cc (debug_print): Mark 'fmt' unused.
9824
9825 2004-01-30 Michael Koch <konqueror@gmx.de>
9826
9827 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
9828 * configure: Regenerated.
9829 * glib-2.0.m4: Removed.
9830 * gtk-2.0.m4: Removed.
9831 * libart.m4: Removed.
9832 * pkg.m4: New file.
9833
9834 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
9835
9836 * gnu/java/net/PlainSocketImpl.java
9837 (inChannelOperation): New field.
9838 (isInChannelOperation): New accessor.
9839 (setInChannelOperation): New modifier.
9840 * gnu/java/nio/ServerSocketChannelImpl.java
9841 (accept): Set and reset our server socket's PlainSocketImpl's
9842 "in channel operation" indicator before and after delegating
9843 the accept to our server socket.
9844 * gnu/java/nio/SocketChannelImpl.java
9845 (connect): Set and reset our socket's PlainSocketImpl's "in channel
9846 operation" indicator before and after delegating the operation to
9847 our socket.
9848 (read): Likewise.
9849 (write): Likewise.
9850 * java/net/ServerSocket.java (implAccept): Don't throw an
9851 IllegalBlockingModeException if we have a non-blocking
9852 channel which initiated this accept operation.
9853 * java/net/Socket.java (connect): Don't throw an
9854 IllegalBlockingModeException if we have a non-blocking
9855 channel which initiated this connect operation.
9856 * java/nio/channels/spi/AbstractSelectableChannel.java
9857 (configureBlocking): Only call implConfigureBlocking() if
9858 the desired blocking mode is different from our current one.
9859
9860 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
9861
9862 * java/io/BufferedReader.java (sbuf): New field.
9863 (readLine): Use String.valueOf instead of new String() as per
9864 Per Bothner's suggestion. Use instance sbuf field instead of a
9865 local StringBuffer instance.
9866 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
9867 caller's buffer to refill().
9868 (read(void)): Pass our internal work buffer to refill if our
9869 input queue is empty.
9870 (refill): Changed return type to int. Use the specified buffer
9871 instead of our work buffer as per Bryce McKinlay's suggestion.
9872 Return the number of characters read or -1 for EOF.
9873
9874 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9875
9876 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
9877
9878 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9879
9880 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
9881 * Makefile.in: Re-generated.
9882 * gnu/awt/xlib/XFontPeer.java: New file.
9883 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
9884 (setClip): Commented out debug printout.
9885 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
9886 (getFontPeer): Return XFontPeer.
9887 (getLocalGraphicsEnvironment): New method.
9888 (getClasspathFontPeer): New method.
9889 (createFont): New method.
9890
9891 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9892
9893 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
9894 return null.
9895
9896 2004-01-29 Kim Ho <kho@redhat.com>
9897
9898 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9899 (gtkLayoutSetVisible): New method
9900 (setMenuBar): Hide layout before setting MenuBar
9901 and reshow it after.
9902 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9903 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
9904
9905 2004-01-28 Michael Koch <konqueror@gmx.de>
9906
9907 * gnu/java/lang/ClassHelper.java
9908 (getPackagePortion): Removed.
9909
9910 2004-01-28 Michael Koch <konqueror@gmx.de>
9911
9912 * javax/swing/JComponent.java
9913 (listenerList): Initalize globally.
9914 (ancestor_list): Removed.
9915 (veto_list): Removed.
9916 (change_list): Removed.
9917 (get_veto_list): Removed.
9918 (get_change_list): Removed.
9919 (get_ancestor_list): Removed.
9920 (removeAncestorListener): Reimplemented.
9921 (removePropertyChangeListener): Likewise.
9922 (removeVetoableChangeListener): Likewise.
9923 (addAncestorListener): Likewise.
9924 (addPropertyChangeListener): Likewise.
9925 (addVetoableChangeListener): Likewise.
9926 (getListeners): New method.
9927 (getAncestorListeners): Likewise.
9928 (getVetoableChangeListeners): Likewise.
9929 (fireVetoableChange): Throws PropertyVetoException.
9930 * javax/swing/JEditorPane.java
9931 (JEditorPane): Throws IOException.
9932
9933 2004-01-28 David Jee <djee@redhat.com>
9934
9935 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9936 (create): Set the default foreground color to
9937 java.awt.SystemColor.windowText.
9938
9939 2004-01-27 Michael Koch <konqueror@gmx.de>
9940
9941 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
9942 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
9943 Reindented to merge with classpath.
9944
9945 2004-01-27 David Jee <djee@redhat.com>
9946
9947 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9948 (addExposeFilter): Handle GtkFramePeer separately.
9949 (removeExposeFilter): Likewise.
9950
9951 2004-01-27 Michael Koch <konqueror@gmx.de>
9952
9953 * gnu/java/net/protocol/http/Connection.java
9954 (getOutputStream): Fixed typo.
9955
9956 2004-01-27 Michael Koch <konqueror@gmx.de>
9957
9958 * java/lang/Class.java
9959 (getConstructor): Removed SecurityException from throws clause.
9960 (_getConstructors): Likewise.
9961 (getConstructors): Likewise.
9962 (getDeclaredConstructor): Likewise.
9963 (getDeclaredClasses): Likewise.
9964 (getDeclaredConstructors): Likewise.
9965 (getDeclaredField): Likewise.
9966 (getDeclaredMethod): Likewise.
9967 (getDeclaredMethods): Likewise.
9968 (getField): Likewise.
9969 (getMethod): Likewise.
9970 (getMethods): Likewise.
9971
9972 2004-01-27 Kim Ho <kho@redhat.com>
9973
9974 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9975 (removeMenuBarPeer): Remove MenuBarPeer argument.
9976 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
9977 (dispose): Call native method.
9978 * java/awt/Frame.java (setMenuBar): Create and remove
9979 MenuBar peers only if the Frame has a peer.
9980 (addNotify): Create the MenuBar peer if one exists.
9981 (removeNotify): Remove MenuBar peer if one exists.
9982 * java/awt/Menu.java: Fix imports.
9983 (addNotify): Don't use full class name.
9984 (removeNotify): Call removeNotify on all children.
9985 * java/awt/MenuBar.java (removeNotify): Call
9986 removeNotify on all children.
9987 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9988 (removeMenuBarPeer): Remove MenuBarPeer argument.
9989 Iterate through children to find the Frame's MenuBar.
9990 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
9991 New file.
9992 (dispose): Remove references to the MenuComponent.
9993
9994 2004-01-27 Michael Koch <konqueror@gmx.de>
9995
9996 * javax/swing/AbstractCellEditor.java: Reformated.
9997 * javax/swing/DefaultListSelectionModel.java
9998 (listenerList): Made protected.
9999 (addListSelectionListener): Javadoc added.
10000 (removeListSelectionListener): Likewise.
10001 (getListeners): Likewise.
10002 (getListSelectionListeners): Likewise.
10003 * javax/swing/JComboBox.java: Merged copyright year.
10004 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
10005
10006 2004-01-26 Andrew Haley <aph@redhat.com>
10007
10008 * javax/swing/table/JTableHeader.java: Extend JComponent
10009
10010 2004-01-26 Kim Ho <kho@redhat.com>
10011
10012 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
10013 Fix spacing.
10014
10015 2004-01-26 Kim Ho <kho@redhat.com>
10016
10017 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
10018 method.
10019 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
10020 height and let the Layout Managers readjust anything that
10021 needs to move.
10022 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10023 (moveLayout): New method. Shift everything in the Gtk
10024 layout in the Y direction by an offset.
10025
10026 2004-01-26 David Jee <djee@redhat.com>
10027
10028 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10029 (handleEvent): Implemented. Handles PaintEvents.
10030 (paint): Implemented. Use GTK native methods to queue updates
10031 for this heavyweight peer.
10032 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10033 (handleEvent): Removed.
10034 * java/awt/Component.java
10035 (paint): Implemented. Explictly paint the heavyweight peer.
10036 (update): Clear the background for heavyweight components.
10037 (paintAll): No need to call peer.paint() anymore.
10038 (processEvent): Don't process PaintEvents here. It's now done in
10039 the peer's handleEvent().
10040 (processPaintEvent): Removed.
10041 * java/awt/Container.java
10042 (paint): No need to call super.paint(). Visit heavyweight
10043 children as well.
10044 (update): Don't clear the background here. It's done in
10045 Component.update().
10046 (visitChildren): Added check to not recurse into Containers.
10047 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10048 (filter_expose_event_handler): New method. Filter unwanted
10049 expose events while painting heavyweight peers.
10050 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
10051 New method. Connect filter and block pre_event_handler.
10052 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
10053 New method. Disconnect filter and unblock pre_event_handler.
10054 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
10055 New method. Invalidate and update given area.
10056 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10057 (pre_event_handler): Add checks for unwanted expose events.
10058
10059 2004-01-26 David Jee <djee@redhat.com>
10060
10061 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10062 (find_bg_color_widget): For GtkButton, return its child.
10063
10064 2004-01-26 Kim Ho <kho@redhat.com>
10065
10066 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
10067 private.
10068 (setMenuBar): Grab MenuBar height and change insets.
10069 (setBounds): Account for MenuBar height.
10070 (postInsetsChangedEvent): Ditto.
10071 (postSizeAllocateEvent): Remove.
10072 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10073 (menubar_resize_cb): Remove
10074 (setMenuBarPeer): Remove callback.
10075 (getMenuBarHeight): Use size requisition instead of
10076 allocation.
10077
10078 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
10079
10080 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
10081 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
10082 when peer is null.
10083 (setColumns): Remove FIXME -- peer will retrieve number of
10084 columns by calling getColumns.
10085 (setRows): Likewise for number of rows.
10086 (next_text_number): New field.
10087 (paramString): Fix param string.
10088 (generateName): New method.
10089 (getUniqueLong): New method.
10090
10091 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
10092
10093 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
10094 image observer of image loading status.
10095 (getImage (String)): Start image production.
10096 (getImage (URL)): Likewise.
10097
10098 2004-01-25 Michael Koch <konqueror@gmx.de>
10099
10100 * java/lang/Class.java: Imports reworked, reformated.
10101 (Class): Javadoc added.
10102 (forName): Likewise.
10103 (getClasses): Likewise.
10104 (getClassLoader): Likewise.
10105 (getComponentType): Likewise.
10106 (getConstructor): Likewise.
10107 (getConstructors): Likewise.
10108 (getDeclaredConstructor): Likewise.
10109 (getDeclaredClasses): Likewise.
10110 (getDeclaredConstructors): Likewise.
10111 (getDeclaredField): Likewise.
10112 (getDeclaredMethod): Likewise.
10113 (getDeclaredMethods): Likewise.
10114 (getDeclaringClass): Likewise.
10115 (getField): Likewise.
10116 (getInterfaces): Likewise.
10117 (getMethod): Likewise.
10118 (getMethods): Likewise.
10119 (getModifiers): Likewise.
10120 (getName): Likewise.
10121 (getResource): Likewise.
10122 (getResourceAsStream): Likewise.
10123 (getSigners): Likewise.
10124 (setSigners): Likewise.
10125 (getSuperclass): Likewise.
10126 (isArray): Likewise.
10127 (isAssignableFrom): Likewise.
10128 (isInstance): Likewise.
10129 (isInterface): Likewise.
10130 (isPrimitive): Likewise.
10131 (newInstance): Likewise.
10132 (getProtectionDomain): Likewise.
10133 (toString): Likewise.
10134 (Class): Moved.
10135 (initializeClass): Likewise.
10136 (finalize): Likewise.
10137
10138 2004-01-24 Michael Koch <konqueror@gmx.de>
10139
10140 * gnu/java/net/protocol/jar/Connection.java
10141 (hdrHash): Removed.
10142 (hdrVec): Removed.
10143 (gotHeaders): Removed.
10144 (getHeaderField): Removed.
10145 (getHeaderFields): Removed.
10146 (getHeaderFieldKey): Removed.
10147 (getKey): Removed.
10148 (getField): Removed.
10149 (getHeaders): Removed.
10150
10151 2004-01-24 Michael Koch <konqueror@gmx.de>
10152
10153 * Makefile.am: Added library version to gtk peer lib.
10154 * Makefile.in: Regenerated.
10155
10156 2004-01-24 Michael Koch <konqueror@gmx.de>
10157
10158 * java/util/zip/InflaterInputStream.java: Merged class documentation
10159 with classpath.
10160
10161 2004-01-21 Jakub Jelinek <jakub@redhat.com>
10162
10163 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
10164 header. For __powerpc64__ provide the default-signal.h definitions
10165 for now.
10166 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
10167 instead of the dummy definitions.
10168 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
10169 (powerpc64*-*): Remove with_libffi_default.
10170 Only add -mminimal-toc for 64-bit compilations.
10171 * configure.in: Use powerpc-signal.h on powerpc64 as well.
10172 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
10173 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
10174 * configure: Rebuilt.
10175
10176 2004-01-23 Michael Koch <konqueror@gmx.de>
10177
10178 * gnu/java/nio/FileLockImpl.java: Compile fixes.
10179
10180 2004-01-23 Michael Koch <konqueror@gmx.de>
10181
10182 * java/lang/VMClassLoader.java: Reworked imports.
10183
10184 2004-01-23 Michael Koch <konqueror@gmx.de>
10185
10186 * javax/swing/AbstractAction.java: Reformated.
10187
10188 2004-01-23 Michael Koch <konqueror@gmx.de>
10189
10190 * java/text/CollationElementIterator.java:
10191 (setText): New method.
10192
10193 2004-01-23 Michael Koch <konqueror@gmx.de>
10194
10195 * gnu/java/nio/FileLockImpl.java:
10196 Fixed filename in copyright.
10197 (released): Removed.
10198 (finalize): New method.
10199 * gnu/java/nio/natFileLockImpl.cc
10200 (releaseImpl): Implemented.
10201 * java/nio/channels/FileChannelImpl.java:
10202 Reworked imports.
10203 (lock): Implemented.
10204 (lockImpl): New method.
10205 (tryLock): Implemented.
10206 (tryLockImpl): New method.
10207 * java/nio/channels/natFileChannelImpl.cc
10208 (lockImpl): New method.
10209 (tryLockImpl): New method.
10210
10211 2004-01-23 Michael Koch <konqueror@gmx.de>
10212
10213 * java/io/FileDescriptor.java
10214 (lock): New method.
10215 (tryLock): New method.
10216 (unlock): New method.
10217 * java/io/natFileDescriptorEcos.cc
10218 (lock): New method.
10219 (tryLock): New method.
10220 (unlock): New method.
10221 * java/io/natFileDescriptorPosix.cc
10222 (lock): New method.
10223 (tryLock): New method.
10224 (unlock): New method.
10225 * java/io/natFileDescriptorWin32.cc
10226 (lock): New method.
10227 (tryLock): New method.
10228 (unlock): New method.
10229
10230 2004-01-23 Michael Koch <konqueror@gmx.de>
10231
10232 * java/io/FileDescriptor.java
10233 (sync): Moved around, added javadoc.
10234 (valid): Likewise.
10235 (open): Likewise.
10236 (write): Likewise.
10237 (close): Likewise.
10238 (setLength): Likewise.
10239 (seek): Likewise.
10240 (getLength): Likewise.
10241 (getFilePointer): Likewise.
10242 (read): Likewise.
10243 (available): Likewise.
10244 (finalize): Likewise.
10245
10246 2004-01-23 Michael Koch <konqueror@gmx.de>
10247
10248 * javax/swing/AbstractAction.java: Reformated.
10249 (getPropertyChangeListeners): New method.
10250 * javax/swing/AbstractCellEditor.java: Reformated.
10251 (getCellEditorListeners): New method.
10252 * javax/swing/DefaultListSelectionModel.java
10253 (listenerList): New field.
10254 (listeners): Removed.
10255 (get_listeners): Removed.
10256 (addListSelectionListener): Rewritten.
10257 (removeListSelectionListener): Rewritten.
10258 (getListSelectionListeners): New method.
10259 (getListeners): New method.
10260 * javax/swing/JComboBox.java: Imports reworked.
10261 (addActionListener): Implemented.
10262 (removeActionListener): Implemented.
10263 (addItemListener): Implemented.
10264 (removeItemListener): Implemented.
10265 (addPopupMenuListener): Implemented.
10266 (removePopupMenuListener): Implemented.
10267 (getActionListeners): New method.
10268 (getItemListeners): New method.
10269 (getPopupMenuListeners): New method.
10270
10271 2004-01-23 Michael Koch <konqueror@gmx.de>
10272
10273 * gnu/java/net/protocol/http/Connection.java
10274 (connect): Don't initialize bufferedOutputStream if not needed.
10275 (sendRequest): Set property for content length if content is present.
10276 Write content only if present.
10277 (getOutputStream): Check if already connected, dont connect,
10278 initalize bufferedOutputStream if needed.
10279
10280 2004-01-23 Michael Koch <konqueror@gmx.de>
10281
10282 * java/io/FileDescriptor.java
10283 (in, out, err): Added javadoc.
10284 (static): Merged loading code.
10285 (fd, position): Moved around.
10286
10287 2004-01-23 Michael Koch <konqueror@gmx.de>
10288
10289 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
10290 New file.
10291
10292 2004-01-23 Michael Koch <konqueror@gmx.de>
10293
10294 * java/lang/Class.java,
10295 java/lang/Object.java,
10296 java/lang/Thread.java: Merged copyright with classpath.
10297
10298 2004-01-23 Michael Koch <konqueror@gmx.de>
10299
10300 * java/io/FileDescriptor.java: Merged copyright with classpath to
10301 start merging this class.
10302
10303 2004-01-22 Tom Tromey <tromey@redhat.com>
10304
10305 PR libgcj/13107:
10306 * testsuite/libjava.lang/pr13107_2.xfail: New file.
10307 * testsuite/libjava.lang/pr13107_3.xfail: New file.
10308 * testsuite/libjava.lang/pr13107_3.java: New file.
10309 * testsuite/libjava.lang/pr13107_3.out: New file.
10310 * testsuite/libjava.lang/pr13107_2.java: New file.
10311 * testsuite/libjava.lang/pr13107_2.out: New file.
10312 * testsuite/libjava.lang/pr13107.java: New file.
10313 * testsuite/libjava.lang/pr13107.out: New file.
10314 * verify.cc (jsr_ptrs): Removed.
10315 (entry_points): Likewise.
10316 (struct subr_info): Likewise.
10317 (struct subr_entry_info): Likewise.
10318 (type_val::unused_by_subroutine_type): Likewise.
10319 (type::merge): Don't handle unused_by_subroutine_type.
10320 (type::print): Likewise.
10321 (state::flags): Removed.
10322 (state::subroutine): Likewise.
10323 (state::seen_subrs): Likewise.
10324 (state::NO_STACK): Likewise.
10325 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
10326 (state): Updated all methods.
10327 (state::clean_subrs): Removed.
10328 (state::state): Removed `ret_semantics' flag.
10329 (state::copy): Likewise.
10330 (state::add_subr): Removed.
10331 (state::enter_subroutine): Likewise.
10332 (type::set_return_address): New method.
10333 (handle_jsr_insn): Set return address on the type. Always
10334 invalidate PC after call.
10335 (check_nonrecursive_call): Removed.
10336 (~_Jv_BytecodeVerifier): Updated.
10337 (branch_prepass): Removed special handling of jsr.
10338 (note_branch_target): Likewise.
10339 (get_subroutine): Removed.
10340 (state::merge): Don't merge subroutines and don't handle
10341 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
10342 (state::note_variable): Removed.
10343 (state::is_unmerged_ret_state): Likewise.
10344 (state::print): Updated.
10345 (set_variable): Likewise.
10346 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
10347 and jsr_semantics arguments. Updated for new reverification
10348 list.
10349 (pop_jump): Rewrote.
10350 (construct_primitive_array_type): Updated.
10351 (state::next): Removed.
10352 (INVALID_STATE): New define.
10353 (state::INVALID): Removed.
10354 (state::NO_NEXT): New value.
10355 (state::pc, state::next): New fields.
10356 (state::get_pc): New method.
10357 (next_verify_pc): Removed.
10358 (next_verify_state): New field.
10359 (verify_instructions_0): Always check for falling off end.
10360 (linked): New type.
10361 (linked_utf8): Removed.
10362 (states): Changed type.
10363 (type::state_mergeable_p): New method.
10364 (state::state_mergeable_p): Likewise.
10365 (handle_ret_insn): Removed most code.
10366 (state::reverify): New method.
10367 (add_new_state): Likewise.
10368 (state::set_pc): Likewise.
10369
10370 2004-01-22 Jeff Sturm <jsturm@one-point.com>
10371
10372 PR java/13733
10373 * testsuite/libjava.compile/PR13733.java: New file.
10374 * testsuite/libjava.compile/PR13733.xfail: New file.
10375
10376 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
10377 Michael Koch <konqueror@gmx.de>
10378
10379 * javax/swing/table/DefaultTableCellRenderer.java
10380 (DefaultTableCellRenderer): Added javadoc for the class and for
10381 the constructor, Border instance, create an EmptyBorder.
10382 (UIResource): Removed the comment at the end of the class
10383 (setForeground): New method.
10384 (setBackground): New method.
10385 (updateUI): New method.
10386 (getTableCellRendererComponent): Rewritten with the help of
10387 dvholten and Stephane Meslin-Weber.
10388 (validate): New method.
10389 (repaint): New method.
10390 (firePropertyChange): New method.
10391 (setValue): New method.
10392
10393 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
10394
10395 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10396 (connectJObject): Replace printf calls with g_assert statements.
10397 Move property-notify-event signal connection to ...
10398 (connectSignals): Connect property-notify-event signal. Iterate
10399 through the vbox's children to find layout.
10400
10401 2004-01-22 Graydon Hoare <graydon@redhat.com>
10402
10403 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
10404 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
10405 Predicate static initialization on GtkToolkit.useGraphics2D().
10406 * java/awt/Component.java (processPaintEvent): Consume event.
10407 * javax/swing/AbstractButton.java: Reimplement, document.
10408 * javax/swing/DefaultButtonModel.java: Reimplement, document.
10409 * javax/swing/JComponent.java (paint): Use double buffer.
10410 (listenerList): Enable member.
10411 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
10412 * javax/swing/JToggleButton.java
10413 (JToggleButton): Modify model constructor.
10414 * javax/swing/SwingUtilities.java
10415 (layoutCompoundLabel): Adjust arithmetic.
10416 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
10417 * javax/swing/plaf/basic/BasicGraphicsUtils.java
10418 (getPreferredButtonSize): Include margins in calculation.
10419 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10420 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
10421 Receive up events from subordinate layout component.
10422
10423 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
10424
10425 * java/awt/Component.java (show): Set visible to true before
10426 showing the peer.
10427
10428 2004-01-21 Kim Ho <kho@redhat.com>
10429
10430 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
10431 Fix comments.
10432 (removeMenuBarPeer): Make package private.
10433 (setMenuBarPeer): Make package private.
10434 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10435 (menubar_resize_cb): Mark attributes unused.
10436 (getMenuBarHeight): ditto.
10437
10438 2004-01-21 David Jee <djee@redhat.com>
10439
10440 * java/awt/Container.java
10441 (LightweightDispatcher.handleEvent): Add an extra check to avoid
10442 dispatching MOUSE_ENTERED event twice. Translate the point for
10443 the mouse event target before dispatching the event.
10444
10445 2004-01-20 Jakub Jelinek <jakub@redhat.com>
10446
10447 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
10448 lib_org_w3c_dom_la_LDFLAGS): New.
10449 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
10450 * Makefile.in: Rebuilt.
10451
10452 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
10453
10454 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
10455 Calculate proper offsets for heavyweight components packed in
10456 lightweight containers.
10457
10458 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
10459 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
10460 (native create): Add width parameter.
10461 (create): Calculate text entry width based on current font's
10462 metrics and number of columns. Set TextField's font if not
10463 already set. Call native create.
10464 (gtkEntryGetBorderWidth): New native method.
10465 (gtkEntryGetSize): Remove method.
10466 (getMinimumSize): Call minimumSize.
10467 (getPreferredSize): Call preferredSize.
10468 (minimumSize): Calculate minimum size based on backing
10469 GtkEntry's borders, font metrics and number of columns.
10470 (preferredSize): Likewise for preferred size.
10471 (get_border_width): New static function.
10472
10473 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
10474 Override GtkWindowPeer's setResizable method to account for menu
10475 bar height when setting the frame's size.
10476
10477 2004-01-19 Matthias Klose <doko@debian.org>
10478
10479 * libtool-version: Increased `current' to 6.
10480
10481 2004-01-19 Kim Ho <kho@redhat.com>
10482
10483 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10484 (connectJObject): Iterate through the vbox's children to find layout.
10485
10486 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10487
10488 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
10489 isDispatchThread method to replace wrong test condition.
10490
10491 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10492
10493 * java/awt/EventQueue.java (pop): Prevent racing condition to add
10494 events to the queue out of order by acquiring locks in the proper
10495 order and not by releasing one before acquiring the other.
10496
10497 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10498
10499 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
10500 visible so that dialog can be reused.
10501
10502 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10503
10504 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
10505 events may be handled by any queue in the stack.
10506
10507 2004-01-19 Kim Ho <kho@redhat.com>
10508
10509 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
10510 MenuBarPeer parameter.
10511 (removeMenuBarPeer): New native method.
10512 (setMenuBar): Call remove if menu bar is null. Adjust insets
10513 appropriately.
10514 (postSizeAllocateEvent): New method. Called when menu bar size is
10515 allocated. Adjust insets and redo layout.
10516 (GtkFramePeer): Set menu bar during frame creation.
10517 (postConfigureEvent): Adjust position and size to accomodate
10518 menu bar.
10519 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
10520 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
10521 (addNotify): Create the peer if it doesn't exist and call addNotify
10522 for the menu's items.
10523 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
10524 * java/awt/MenuItem.java (addNotify): Create the peer if it
10525 doesn't exist.
10526 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10527 (removeMenuBarPeer): New method. Remove menu bar on the current
10528 frame.
10529 (setMenuBarPeer): Add the menu bar to the current frame and the
10530 callback for size-allocate events on the menu bar.
10531 (getMenuBarHeight): Add menu bar parameter.
10532 (menubar_resize_cb): New callback method for postSizeAllocate events.
10533
10534 Also: Fix indentation on last ChangeLog entry.
10535
10536 2004-01-16 Kim Ho <kho@redhat.com>
10537
10538 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10539 (gtkWidgetGetDimensions): Remove.
10540 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10541 (gtkWidgetGetDimensions): Remove.
10542
10543 2004-01-16 Tom Tromey <tromey@redhat.com>
10544
10545 * java/awt/Container.java: Typo and indentation fixes.
10546
10547 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
10548 * java/lang/natVMClassLoader.cc: ...here. New file.
10549 * Makefile.in: Rebuilt.
10550 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
10551
10552 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10553
10554 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
10555 Discard GDK_ENTER_NOTIFY related to ungrabs.
10556
10557 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10558
10559 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
10560 is called for an intermediate queue.
10561
10562 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
10563
10564 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10565 (window_property_changed_cb): Set id_set.
10566
10567 2004-01-16 Kim Ho <kho@redhat.com>
10568
10569 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
10570 it is a FileDialog and has dimensions of 0 by 0, then the initial
10571 size is set to size request plus insets.
10572 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10573 (gtkWidgetGetDimensions): Override method.
10574 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10575 (gtkWidgetGetDimensions): Override method. Returns size request plus
10576 insets.
10577
10578 2004-01-16 Andrew Haley <aph@redhat.com>
10579
10580 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
10581 * sysdep/i386/locks.h: Likewise.
10582
10583 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10584
10585 * java/awt/EventDispatchThread.java (run): Stop running when
10586 interrupted.
10587 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
10588 Reset the queue after transferring its contents.
10589 (push): Start a new dispatch thread if none is running.
10590
10591 2004-01-16  Olga Rodimina <rodimina@redhat.com>
10592
10593 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10594 (doPolygon): set fill rule of polygon to
10595 WIND_EVEN_ODD by default.
10596
10597 2004-01-15 Olga Rodimina <rodimina@redhat.com>
10598
10599 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10600 Implemented rendering hints related methods.
10601 (getDefaultHints): New helper method. Returns
10602 default rendering hints.
10603 (walkPath): changed to normalize path if
10604 the KEY_STROKE_CONTROL key is in "normalize" mode.
10605 (draw3DRect): changed coordinates of rectangle by +0.5
10606 if in "normalize" mode.
10607
10608 2004-01-15 Tom Tromey <tromey@redhat.com>
10609
10610 * Makefile.in: Rebuilt.
10611 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
10612 (%.lo: %.java) Filter out StackTrace.lo.
10613
10614 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
10615
10616 * configure.in: Add in AC_PREREQ(2.13)
10617 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
10618 FIXME comment.
10619
10620 2004-01-14 Nathan Bryant <nbryant@optonline.net>
10621 Tom Tromey <tromey@redhat.com>
10622
10623 PR libgcj/12001:
10624 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
10625 array to superclass.
10626 (init): Changed interface; add URLs here.
10627 (initialize): New static method.
10628 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
10629 (_Jv_RunMain): ... not here.
10630
10631 2004-01-14 Michael Koch <konqueror@gmx.de>
10632
10633 * java/text/MessageFormat.java:
10634 Added descriptions to exceptions.
10635 This fixes PR libgcj/2429.
10636
10637 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10638
10639 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
10640 (push): Make sure push is performed at the top of the thread stack.
10641
10642 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10643
10644 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
10645 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
10646 (native create): Add width and height parameters. Set text
10647 view's size request according to new parameters.
10648 (create): Calculate text view size based on current font's
10649 metrics and number of rows and columns. Set TextArea's font if
10650 not already set. Call native create.
10651 (getMinimumSize): Call minimumSize.
10652 (getPreferredSize): Call preferredSize.
10653 (getHScrollbarHeight): New method.
10654 (getVScrollbarWidth): New method.
10655 (minimumSize): Calculate minimum size based on scrollbar
10656 visibility, scrollbar sizes, font metrics and number of rows and
10657 columns.
10658 (preferredSize): Likewise for preferred size.
10659 (gtkTextGetSize): Remove method.
10660
10661 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10662
10663 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10664 (initializeInsets): Remove method.
10665 (GtkComponentPeer): Initialize insets field. Remove call to
10666 initializeInsets.
10667 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
10668 Remove method.
10669 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
10670 Remove method.
10671 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
10672 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
10673 (latestInsets): Remove field.
10674 (native create): Add insets parameter. Call
10675 window_get_frame_extents. Set the window's default size and
10676 size request based on its frame extents.
10677 (create): Initialize insets.
10678 (postInsetsChangedEvent): New method.
10679 (postConfigureEvent): Remove parameters top, left, bottom,
10680 right. Remove insets-related logic.
10681 (connectJObject): Handle property-notify-event.
10682 (window_get_frame_extents, request_frame_extents,
10683 property_notify_predicate, window_property_changed_cb): New
10684 static functions.
10685 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10686 (pre_event_handler): Remove insets-related logic for configure
10687 events.
10688 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
10689 Update postConfigureEvent signature.
10690
10691 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10692
10693 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
10694 to handle Window "Closing" events.
10695
10696 2004-01-13  David Jee  <djee@redhat.com>
10697
10698 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10699 (setBackground): New method. Children with no explicitly-set
10700 background will be repainted with the parent container's new
10701 background color.
10702
10703 2004-01-13  David Jee  <djee@redhat.com>
10704
10705 * Makefile.am: Add BitwiseXORComposite.java.
10706 * Makefile.in: Regenerated.
10707 * gcj/Makefile.in: Regenerated.
10708 * include/Makefile.in: Regenerated.
10709 * testsuite/Makefile.in: Regenerated.
10710
10711 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10712
10713 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
10714 not show modal dialogs twice and so that it allows showing a modal
10715 dialog from another modal dialog.
10716
10717 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10718
10719 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
10720 and run secondary dispatch thread to process event queue while this
10721 thread is blocked.
10722
10723 2004-01-12 Graydon Hoare <graydon@redhat.com>
10724
10725 * gnu/java/awt/gtk/GdkGraphics2D.java
10726 (static): Check GtkToolkit before initializing static state.
10727 (Graphics2D): Don't construct transform with 0.5 unit offset.
10728
10729 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
10730
10731 * gnu/java/awt/BitwiseXORComposite.java: Add.
10732 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
10733 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
10734 (BitwiseXORComposite): Remove inner class.
10735
10736 2004-01-11 Michael Koch <konqueror@gmx.de>
10737
10738 * gnu/java/lang/reflect/TypeSignature.java
10739 (getEncodingOfClass): Documentation fixed.
10740 (getClassForEncoding): Give class loader to Class.forName().
10741 Documentation fixed.
10742
10743 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
10744
10745 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
10746
10747 2004-01-11 Michael Koch <konqueror@gmx.de>
10748
10749 * javax/swing/undo/StateEditable.java
10750 (RCSID): Removed redundant modifiers.
10751
10752 2004-01-10 Michael Koch <konqueror@gmx.de>
10753
10754 * javax/print/attribute/EnumSyntax.java
10755 (getStringTable): Made protected.
10756 (getEnumValueTable): Likewise.
10757 * javax/print/attribute/standard/JobKOctetsProcessed.java
10758 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
10759 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
10760 (JobMediaSheetsCompleted): Made class final.
10761 * javax/print/attribute/standard/OutputDeviceAssigned.java
10762 (getName): Fixed typo.
10763 * javax/print/attribute/standard/RequestingUserName.java
10764 (serialVersionUID): Fixed value.
10765
10766 2004-01-10 Michael Koch <konqueror@gmx.de>
10767
10768 * javax/swing/plaf/basic/BasicButtonUI.java,
10769 javax/swing/plaf/basic/BasicCheckBoxUI.java,
10770 javax/swing/plaf/basic/BasicListUI.java,
10771 javax/swing/plaf/basic/BasicOptionPaneUI.java,
10772 javax/swing/plaf/basic/BasicPanelUI.java,
10773 javax/swing/plaf/basic/BasicRadioButtonUI.java,
10774 javax/swing/plaf/basic/BasicScrollPaneUI.java,
10775 javax/swing/plaf/basic/BasicToggleButtonUI.java,
10776 javax/swing/plaf/basic/BasicViewportUI.java:
10777 Fixed import statements.
10778
10779 2004-01-10 Michael Koch <konqueror@gmx.de>
10780
10781 * gnu/java/awt/image/ImageDecoder.java
10782 (produce): Made public.
10783 * gnu/java/awt/peer/GLightweightPeer.java,
10784 gnu/java/awt/peer/gtk/GtkToolkit.java:
10785 Reformated.
10786
10787 2004-01-10 Michael Koch <konqueror@gmx.de>
10788
10789 * javax/swing/JRadioButtonMenuItem.java,
10790 javax/swing/JSeparator.java,
10791 javax/swing/JSplitPane.java,
10792 javax/swing/JTextPane.java,
10793 javax/swing/JToolBar.java,
10794 javax/swing/ListCellRenderer.java,
10795 javax/swing/ListModel.java,
10796 javax/swing/MenuElement.java,
10797 javax/swing/OverlayLayout.java,
10798 javax/swing/ProgressMonitor.java,
10799 javax/swing/ProgressMonitorInputStream.java,
10800 javax/swing/Renderer.java,
10801 javax/swing/RootPaneContainer.java,
10802 javax/swing/Scrollable.java,
10803 javax/swing/SingleSelectionModel.java,
10804 javax/swing/ToolTipManager.java,
10805 javax/swing/ViewportLayout.java,
10806 javax/swing/event/DocumentEvent.java,
10807 javax/swing/event/SwingPropertyChangeSupport.java,
10808 javax/swing/event/TreeSelectionEvent.java,
10809 javax/swing/event/UndoableEditEvent.java,
10810 javax/swing/text/AbstractDocument.java,
10811 javax/swing/text/AttributeSet.java,
10812 javax/swing/text/Caret.java,
10813 javax/swing/text/ComponentView.java,
10814 javax/swing/text/DefaultCaret.java,
10815 javax/swing/text/DefaultEditorKit.java,
10816 javax/swing/text/Document.java,
10817 javax/swing/text/EditorKit.java,
10818 javax/swing/text/GapContent.java,
10819 javax/swing/text/Keymap.java,
10820 javax/swing/text/MutableAttributeSet.java,
10821 javax/swing/text/PlainEditorKit.java,
10822 javax/swing/text/Segment.java,
10823 javax/swing/text/Style.java,
10824 javax/swing/text/StyledDocument.java,
10825 javax/swing/text/StyledEditorKit.java,
10826 javax/swing/text/TextAction.java,
10827 javax/swing/text/View.java: Fixed import statements.
10828
10829 2004-01-08 Graydon Hoare <graydon@redhat.com>
10830
10831 * javax/swing/JLayeredPane.java: Rewrite to accomodate
10832 djee@redhat.com's recent inverse ordering of Container elements.
10833
10834 2004-01-09 Michael Koch <konqueror@gmx.de>
10835
10836 * gnu/java/lang/ArrayHelper.java
10837 (equalsArray): Removed.
10838
10839 2004-01-09 Andrew Haley <aph@redhat.com>
10840
10841 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
10842 a Utf8Const field before looking at its class.
10843
10844 2004-01-09 Michael Koch <konqueror@gmx.de>
10845
10846 * javax/print/attribute/standard/DocumentName.java,
10847 javax/print/attribute/standard/JobHoldUntil.java,
10848 javax/print/attribute/standard/JobMessageFromOperator.java,
10849 javax/print/attribute/standard/JobName.java,
10850 javax/print/attribute/standard/JobOriginatingUserName.java,
10851 javax/print/attribute/standard/OutputDeviceAssigned.java,
10852 javax/print/attribute/standard/PrinterInfo.java,
10853 javax/print/attribute/standard/PrinterLocation.java,
10854 javax/print/attribute/standard/PrinterMakeAndModel.java,
10855 javax/print/attribute/standard/PrinterMessageFromOperator.java,
10856 javax/print/attribute/standard/PrinterName.java,
10857 javax/print/attribute/standard/RequestingUserName.java: New files.
10858 * Makefile.am (javax_source_files): Added new files.
10859 * Makefile.in: Regenerated.
10860
10861 2004-01-09 Michael Koch <konqueror@gmx.de>
10862
10863 * javax/swing/AbstractAction.java,
10864 javax/swing/AbstractSet.java,
10865 javax/swing/Action.java,
10866 javax/swing/ActionMap.java,
10867 javax/swing/BoundedRangeModel.java,
10868 javax/swing/ButtonModel.java,
10869 javax/swing/CellEditor.java,
10870 javax/swing/CellRendererPane.java,
10871 javax/swing/ComboBoxEditor.java,
10872 javax/swing/DebugGraphics.java,
10873 javax/swing/DefaultCellEditor.java,
10874 javax/swing/DefaultCellRenderer.java,
10875 javax/swing/DefaultComboBoxModel.java,
10876 javax/swing/DefaultDesktopManager.java,
10877 javax/swing/DefaultFocusManager.java,
10878 javax/swing/DefaultListCellRenderer.java,
10879 javax/swing/Icon.java,
10880 javax/swing/JButton.java,
10881 javax/swing/JCheckBoxMenuItem.java,
10882 javax/swing/JDesktopPane.java,
10883 javax/swing/JEditorPane.java,
10884 javax/swing/JMenu.java,
10885 javax/swing/JPanel.java,
10886 javax/swing/JPasswordField.java,
10887 javax/swing/JPopupMenu.java,
10888 javax/swing/JProgressBar.java: Reworked imports.
10889
10890 2004-01-09 Michael Koch <konqueror@gmx.de>
10891
10892 * java/awt/geom/PathIterator.java
10893 (WIND_EVEN_ODD): Removed redundant modifiers.
10894 (WIND_NON_ZERO): Likewise.
10895 (SEG_MOVETO): Likewise.
10896 (SEG_LINETO): Likewise.
10897 (SEG_QUADTO): Likewise.
10898 (SEG_CUBICTO): Likewise.
10899 (SEG_CLOSE): Likewise.
10900 * java/awt/image/SinglePixelPackedSampleModel.java:
10901 Removed redundant semicolon.
10902 * java/io/ObjectInputStream.java
10903 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
10904 * java/util/logging/Filter.java
10905 (isLoggable): Removed redundant modifier.
10906 * java/util/logging/LogManager.java:
10907 Removed redundant semicolon.
10908 * java/util/logging/XMLFormatter.java
10909 (format): Removed unused variable "key".
10910
10911 2004-01-08 Fernando Nasser <fnasser@redhat.com>
10912
10913 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
10914 New name for the former setFile native method.
10915 (setFile): New method.
10916 (setDirectory): Implemented.
10917 (connectSignals): New native method.
10918 (setFilenameFilter): Improve comment.
10919 (getGraphics): Comment.
10920 (gtkHideFileDialog): New method.
10921 (gtkDisposeFileDialog): New method.
10922 (gtkSetFilename): New method.
10923 * java/awt/Dialog.java (show): Block on modal dialogs, but only
10924 for FileDialog for now.
10925 (hide): New method.
10926 (dispose): New method.
10927 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
10928 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
10929 deprecated creation functions. Make dialog modal. Add it to the
10930 window group.
10931 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
10932 function.
10933 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
10934 Rename to...
10935 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
10936 name.
10937 (window_closed): New function.
10938 (ok_clicked): New function.
10939 (cancel_clicked): New function.
10940
10941 2004-01-08 Michael Koch <konqueror@gmx.de>
10942
10943 * javax/swing/JLayeredPane.java: Revert changes to standard
10944 boilerplate, reworked imports.
10945
10946 2004-01-07 Tom Tromey <tromey@redhat.com>
10947
10948 PR libgcj/13439:
10949 * verify.cc (state::merge): Copy changed locals out of subroutine
10950 in NO_STACK case.
10951 (state::FLAG_CHANGED): New const.
10952 (state::FLAG_UNUSED): Likewise.
10953 (state::local_changed): Removed. Updated all users.
10954 (state::flags): New field.
10955 (state::merge): Added jsr_semantics argument, more logic.
10956 (push_jump_merge): Added jsr_semantics argument.
10957 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
10958 merging through the jsr instruction.
10959
10960 2004-01-07 Tom Tromey <tromey@redhat.com>
10961
10962 * scripts/MakeDefaultMimeTypes.java: Use \n, not
10963 backslash-newline.
10964
10965 2004-01-07 Graydon Hoare <graydon@redhat.com>
10966
10967 * java/awt/Container.java (LightweightDispatcher): Implement.
10968 (visitChild): Reuse graphics object.
10969 (dispatchEventImpl): Optionally dispatch to lightweight.
10970 (addNotifyContainerChildren): Build LightweightDispatcher.
10971
10972 2004-01-07 David Jee <djee@redhat.com>
10973
10974 * java/awt/Container.java
10975 (update): Clear only the clipped region, instead of clearing the
10976 entire Container.
10977 (visitChildren): Visit children in descending order.
10978
10979 2004-01-07 Michael Koch <konqueror@gmx.de>
10980
10981 * java/lang/reflect/Array.java: Merged documentation with classpath.
10982
10983 2004-01-07 Michael Koch <konqueror@gmx.de>
10984
10985 * java/text/CollationElementIterator.java
10986 (textIndex): Renamed from index.
10987 * java/text/CollationKey.java
10988 (collator): New member.
10989 (CollationKey): New argument for parent collator.
10990 (equals): Check for same collator, source string and key array.
10991 * java/text/RuleBasedCollator.java:
10992 Reformated.
10993 (RuleBasedCollator): Don't re-initialize frenchAccents with default
10994 value.
10995 (getCollationElementIterator): Rewritten.
10996 (getCollationKey): Added new argument to CollationKey constructor.
10997
10998 2004-01-07 Michael Koch <konqueror@gmx.de>
10999
11000 * gnu/java/nio/DatagramChannelImpl.java
11001 (blocking): Removed.
11002 (DatagramChannelImpl): Call configureBlocking().
11003 (implConfigureBlocking): Dont initialize blocking.
11004 * gnu/java/nio/ServerSocketChannelImpl.java
11005 (blocking): Removed.
11006 (ServerSocketChannelImpl): Call configureBlocking().
11007 (implConfigureBlocking): Dont initialize blocking.
11008 * gnu/java/nio/SocketChannelImpl.java
11009 (blocking): Removed.
11010 (SocketChannelImpl): Call configureBlocking().
11011 (implConfigureBlocking): Dont initialize blocking.
11012 (connect): Use isBlocking().
11013 * java/nio/channels/spi/AbstractSelectableChannel.java
11014 (configureBlocking): Use blockingLock() instead of LOCK.
11015 Set blocking after successfully called implConfigureBlocking().
11016 (register): Use blockingLock() instead of LOCK.
11017
11018 2004-01-07 Michael Koch <konqueror@gmx.de>
11019
11020 * java/net/ServerSocket.java (isBound): Fixed documentation.
11021
11022 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
11023
11024 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
11025 (changeEvent): Create event object on demand.
11026 (DefaultBoundedRangeModel, toString, setValue, setExtent,
11027 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
11028 fireStateChanged): Re-written.
11029 * javax/swing/event/EventListenerList.java: Reformatted, document
11030 typical usage.
11031 (toString): Implemented.
11032 (getListeners): Re-written.
11033 (remove): Re-written.
11034 (add): Re-written.
11035 (NO_LISTENERS): New singleton field.
11036 (listenerList): Declare as transient; document.
11037 (serialVersionUID): Document.
11038 (getListenerCount(Class)): More efficient implementation,
11039 also accepts null argument. Improve Javadoc.
11040 (getListenerCount()): Remove unnecessary cast; docfix.
11041 * javax/swing/undo/UndoableEditSupport.java:
11042 Re-format, document.
11043 (UndoableEditSupport): Set realSource field. Improve documentation.
11044 (_postEdit): Iterate over cloned listener vector.
11045 (toString): Don't emit realSource.
11046 (beginUpdate, endUpdate): Support nested updates.
11047 (postEdit): Use compound edit if present.
11048
11049 2004-01-06 Graydon Hoare <graydon@redhat.com>
11050
11051 * java/awt/Container.java (swapComponents): Add forgotten
11052 function, required for JLayeredPane change.
11053
11054 2004-01-06 Michael Koch <konqueror@gmx.de>
11055
11056 * java/text/CollationElementIterator.java: Reformated.
11057 (CollationElementIterator): Changed order of arguments.
11058 * java/text/RuleBasedCollator.java
11059 (RuleBasedCollator): Merged class documentation.
11060 (CollationElement): Added documentation.
11061 (compare): Reformated, renamed arguments.
11062 (equals): Likewise.
11063 (getCollationElementIterator): Likewise.
11064 (getCollationKey): Likewise.
11065
11066 2004-01-06 Graydon Hoare <graydon@redhat.com>
11067
11068 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
11069
11070 2004-01-06 Michael Koch <konqueror@gmx.de>
11071
11072 * gnu/java/net/protocol/file/Connection.java:
11073 Reformated copyright.
11074 (hdrHash): Removed.
11075 (hdrVec): Removed.
11076 (gotHeaders): Removed.
11077 (getHeaderField): Removed.
11078 (getHeaderField): Removed.
11079 (getHeaderFieldKey): Removed.
11080 (getKey): Removed.
11081 (getField): Removed.
11082 (getHeaders): Removed.
11083
11084 2004-01-06 Michael Koch <konqueror@gmx.de>
11085
11086 * javax/print/attribute/standard/DateTimeAtCompleted.java,
11087 javax/print/attribute/standard/DateTimeAtCreation.java,
11088 javax/print/attribute/standard/DateTimeAtProcessing.java,
11089 javax/print/attribute/standard/JobImpressionsCompleted.java,
11090 javax/print/attribute/standard/JobKOctets.java,
11091 javax/print/attribute/standard/JobKOctetsProcessed.java,
11092 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
11093 javax/print/attribute/standard/JobPrioritySupported.java: New files.
11094 * Makefile.am (javax_source_files): Added new files.
11095 * Makefile.in: Regenerated.
11096
11097 2004-01-06 Michael Koch <konqueror@gmx.de>
11098
11099 * java/net/URLConnection.java
11100 (contentHandler): Removed.
11101 (locale): Removed.
11102 (getHeaderFields): Return an empty map instead of null.
11103 (getContent): Connect if needed, renamed "cType" to "type" and
11104 "contentHandler" to "ch" and made it a local variable.
11105 (getPermission): Don't use package in class name.
11106 (setDefaultRequestProperty): Fixed typo in documentation.
11107 (initializeDateFormats): Made locale a local variable.
11108
11109 2004-01-06 Michael Koch <konqueror@gmx.de>
11110
11111 * java/lang/Package.java
11112 (getPackage): Get the current class loader directly.
11113 * java/lang/SecurityManager.java
11114 (currentLoadedClass): Dont iterate over class contexts.
11115 (classLoaderDepth): Don't check class loaders if everything is allowed.
11116
11117 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
11118
11119 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
11120 (pre_event_handler): Set all insets to 0 when a Configure event
11121 is received for a GtkPlug.
11122 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
11123 Make handle long, not int.
11124 (EmbeddedWindow()): New constructor.
11125 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
11126 long, not int.
11127 (setHandle): New method.
11128 (getHandle): Return long, not int.
11129 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
11130 declaration.
11131 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
11132 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
11133 (create(long)): Take long parameter, not int. Cast gtk_plug_new
11134 argument to GdkNativeWindow.
11135 (construct): New method.
11136 (embed): New method.
11137
11138 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
11139 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
11140 (create(int, int)): New method.
11141 (create): Call new create method.
11142 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
11143 methods.
11144 (childResized): Remove native implementation. Implement in
11145 Java.
11146 (getHScrollbarHeight, getVScrollbarWidth): Call
11147 gtk_widget_size_request to get scrollbar dimensions.
11148 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
11149 call getVScrollbarWidth and getHScrollbarHeight when vertical
11150 and horizontal scrollbars respectively are needed.
11151 (doLayout): Enlarge child if it is smaller than the viewport.
11152
11153 2004-01-05 Fernando Nasser <fnasser@redhat.com>
11154
11155 * java/awt/Dialog.java (constructor): Accept null title as per spec.
11156 * java/awt/FileDialog.java (constructor): Throw exception on invalid
11157 argument as per spec.
11158
11159 2004-01-05 Fernando Nasser <fnasser@redhat.com>
11160
11161 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
11162 (insert): Ditto.
11163 (remove): Ditto. Also, Check for valid argument.
11164 (removeAll): Use peer interface method.
11165 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
11166 native add function.
11167 (nativeRemove): New name for native remove function.
11168 (getHistory): New native function.
11169 (constructor): Generate ItemEvent.
11170 (add): Ditto, if selection is changed.
11171 (remove): Ditto, ditto.
11172 (removeAll): Add implementation.
11173 (handleEvent): Remove. Dead code.
11174 (choicePostItemEvent): Add comment.
11175 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
11176 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
11177 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
11178 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
11179 comments and fix condition to change selection.
11180 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
11181 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
11182 remove all capability.
11183 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
11184 (item_activate): Add cast to remove compiler warning.
11185
11186 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
11187
11188 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
11189 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
11190 (getPreferredSize): Call preferredSize.
11191 (preferredSize): Call gtkWidgetGetPreferredDimensions.
11192 (getMinimumSize): Call minimumSize.
11193 (minimumSize): Call gtkWidgetGetPreferredDimensions.
11194 (gtkWidgetGetDimensions): Return the peer widget's current size
11195 request.
11196 (gtkWidgetGetPreferredDimensions): Return the peer widget's
11197 natural size request.
11198
11199 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
11200
11201 Thanks to Brian Gough <bjg@network-theory.com>
11202 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
11203 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
11204
11205 2004-01-04 Matthias Klose <doko@debian.org>
11206
11207 * aclocal.m4: Rebuilt using "aclocal -I .".
11208 * configure: Rebuilt.
11209
11210 2004-01-03 Per Bothner <per@bothner.com>
11211
11212 * java/util/Date.java (parse): Fix a number of problems.
11213 (skipParens): Remove no-longer-needed method.
11214